xarrow:0.1.0

I am submitting

[x] a new package
[ ] an update for a package

I have read and followed the submission guidelines and, in particular, I

[x] selected a name in conformance with the guidelines
[x] added a typst.toml file with all required keys
[x] added a README.md with documentation for my package
[x] have chosen a license and added a LICENSE file or linked one in my README.md
[x] ensured that my submission does not infringe upon the rights of a third party
[x] tested my package locally on my system and it worked
[x] named this PR as name:version of the submitted package
[x] agree that my package will not be removed without good reason

xarrow is a small package providing variable-length arrow with correct alignment and spacing, as well as a few extra options. This is the equivalent of \xRightarrow in LaTeX, but with more options, including squiggly arrows :-)

Thank you!


Support dynamic metadata in route match

Title: Support dynamic metadata in route match
Description:
This can be used to support use cases like "JWT claim based routing" as described in https://github.com/envoyproxy/envoy/issues/3763. The jwt filter (or any other filters) can  populate the dynamic metadata which will later be used for routing decision.
Specifically, this is to add the Metadata Matcher to the  the RouteMatch. The same metadata matcher is also used in RBAC, ext_authz, etc. filters.
Please let me know if this feature is a good improvement to the routing or if Envoy prefers to do it in other ways. Thanks.
cc @mandarjog
[optional Relevant Links:]

Any extra documentation required to understand the issue.

At a high level this makes sense to me, but I would like to hear from @snowp on how this will fit into the new generic matching world that we are moving towards.

It would work just fine with the new generic matching (introduce a new input that reads dynamic metadata out of the stream info), probably even more so than in the old framework (where it requires adding another field to the oneof block)

@snowp thanks for the confirm. I think this means we can go ahead with the proposal, please let me know if you have any other high level comments, I can take this and send out a PR later, thanks.
The jwt claim based routing will be useful for customers and it has already been supported in many other proxies, e.g., (Solo.io) gloo-edge: JWT Claim Based Routing, Nginx Plus: Authentication and Content-Based Routing with JWTs and NGINX Plus


158/handle create project

closes #158
changes proposed in the pull request:

Change digitalocean client
Fix project struct
Sign out if wont exist integration

@thetonymaster

Coverage remained the same at 94.631% when pulling 630e13455db34c8697e47614caf65b1305d6a77b on 158/handle-create-project into f11463fb28a655cfa8ecb9944334bc63b34fbd35 on master.


Cron schedules for alerts

Is there an existing issue for this?

[X] I have searched existing issues, it hasn't been reported yet

Use case description
I want to create an alert that runs its query at a certain time of day. Currently, I need to wait until that time then set the frequency parameter to '1440' (i.e. minutes in a day) so that it runs once a day, at the time I created the alert.
This is inflexible and doesn't allow for more finely-tuned timings (e.g weekdays only, or less-
regular timing)
Proposed solution (optional)
Supporting the cron schedule syntax would be more convenient for the above use cases and allow a user to be more specific

Thanks for raising this @MerrittJ !
It's been added in this release: https://github.com/Baselime/cli/releases/tag/v0.0.19
You can now submit alerts with a schedule which is a corn job, following the AWS Specs.


Add page specific open graph data

Currently, all pages use the root open graph tags, but it should be possible to use Next.js Head component combined with the key prop to enable specific data such as the title or description depending on the page.


Add shortcut in the tooltip

Could we add the shortcut in the tooltip ? It should be platform dependent I guess.

@targos What is the best way to deal with the correct shortcut depending if it is a OsX or windows device ?
Is there anything in react-kbs that we could use or maybe there could be a utility in react-kbs that would deal with this issue.
I could not find in UTF-8 the actual symbols corresponding to the key ctrl and cmd. I found alt ⎇

I don't know. There's currently no relation between the button and the shortcut. They just call the same function.


Request to provide more functional Pipeline template

At present, our Pipeline template includes two pre-defined templates and one user-defined template. The two pre-defined
templates are defined by the console and can hardly be changed. The user-defined template is equivalent to re-editing an
empty Pipeline template, completely losing the function of template - REUSE. Even though we now have the function of
copying Pipeline, but we still can't solve the problem of Pipeline template:

The Pipeline template should be managed, like adding, modifying and deleting.
The Pipeline template shall have flexible input parameters, and system can generate the corresponding Pipeline
execution definition, Jenkinsfile or others, according to the input and template.

I request to provide more functional Pipeline template, see #452 for more design detail.
/kind feature-request

/reopen

This issue has been fixed by

https://github.com/kubesphere/ks-devops/pull/453
https://github.com/kubesphere/ks-devops/pull/460
https://github.com/kubesphere/ks-devops/pull/462
https://github.com/kubesphere/ks-devops/pull/468
https://github.com/kubesphere/ks-devops/pull/483
https://github.com/kubesphere/console/issues/2946
https://github.com/kubesphere/console/issues/2967

/close

Bili video above about the go template and Node JS template where can be seen? Can you verify your own use?

Hi @hengeek , thanks for your attention! Please see https://github.com/kubesphere-sigs/pipeline-templates for more.


Questionnaire

Meant to address Issue #46
The current plan of implementation:

Use a Table called "Questionnaires" to store responses to forms based on users.

Original:
{"questions":
[{"type": 1, "options": [], "question": "What's your occupation?", "required": false},
{"type": 3, "options": ["High School", "Bachelor", "Post graduate", "Other"], "question": "Latest education level", "required": false}]}

Sample in Questionnaires:
{"questions":
[{"type": 1, "options": ["TEXT INPUT FROM USER"], "question": "What's your occupation?", "required": false},
{"type": 3, "options": ["High School"], "question": "Latest education level", "required": false}]}

In order to re-render the form, we query the custom form table and render that first -> then we use the stored response and render that into the page as well.
Right now we need to get userid's working so that I can implement the API.

Merged with main again, is this branch ready for a pull into main?


BUG-000090614 Modifiers and designators are not applied correctly to some military symbols in the ArcGIS Runtime SDK for Qt C++ API

This Issues is an issue in the symbol dictionary and should be logged here.
It is already listed:
BUG-000090614 - Modifiers and designators are not applied correctly to some military symbols in the ArcGIS Runtime SDK for Qt C++ API.

LDF Update 2/7/2018
Reported on Runtime 10.2.6
data is here: ...\PRD\Attachments\Defects\BUG-000090614

Download the attached "ImageProblems2.zip" file. Unzip this folder and open the project in Qt Creator.
Download the attached "ms2525c.pdf" file. Open this file.
In the "ImageProblems2.cpp" scroll down to line 66. Here I am populating a QString List with military symbols SIC codes. These symbols are listed below along with the section of the military symbols document that describes how they should be drawn:

Chemically Contaminated Area - Page 618
Fire Support Area (Irregular) - Page 651
Obstacles General Zone - Page 548
Area Target Smoke - Page 649
Fire Support Coordination Line - Page 640
Land Mines - Page 254

Comment beside each SIC in the code describes the problem the customer has seen with this symbol.
Scroll down to lines 101 and 102 in the "ImageProblems2.cpp" file. Observe each message has a "datetimevalid" parameter and "uniquedesignation" parameter.
Run the application. Observe the problems described in step 4.

These symbols and modifiers do not represent the only ones that are not drawn correctly. Both the analyst and the customer feel there are numerous other symbols and modifiers that are not drawn correctly given the huge number of possible combinations.

@csmoore This issue is related to 2525C not APP6B

This issue is being addressed by multiple teams at esri. Moving this issue to the Military Symbology repo

This issue was moved to Esri/military-symbology#275


[dx/master] Rollup of DX Fixes

Got a little behind here; rolls up #3444 #3446 #3448 #3452 #3456 #3458 and #3465.
#3449 seems to have been obsoleted by a previous change in master: https://github.com/gfx-rs/gfx/blame/fa323527758d35a3913815e62bcb0e08511f7384/src/backend/dx12/src/device.rs#L2443-L2449. Could you just validate that this change does indeed serve the same purpose?

thats... an impressive list!
bors r+

Could you just validate that this change does indeed serve the same purpose?

the blame points to lines from 2017, so looks like the link is wrong

bors retry

Could you just validate that this change does indeed serve the same purpose?

the blame points to lines from 2017, so looks like the link is wrong

It was the line in the middle from two months ago: more precise blame: https://github.com/gfx-rs/gfx/blame/fa323527758d35a3913815e62bcb0e08511f7384/src/backend/dx12/src/device.rs#L2445

My change didn't check the target format features, so yours seems to still be needed.

Alright, I'll follow up with a proper merge of that, need to actually think about it.


IndexOptimize is failing azure sql

Description of the issue
IndexOptimize.sql is failing with an error that the database cannot be found.
The issue is that de database id in the sys.databases does not match with db_id('databaseName')
This can happen in rare cases only for azure sql databases when a failover happened.
From the documentation

When used with Azure SQL Database, DB_ID may not return the same result as querying database_id from sys.databases. If the caller of DB_ID is comparing the result to other sys views, then sys.databases should be queried instead.

Suggested/Possible solution
Change line 1357 of IndexOptimize.sql
from
 SELECT @CurrentDatabaseID = database_id
to
 SELECT @CurrentDatabaseID = db_id(@CurrentDatabaseName)
SQL Server version and edition
Execute SELECT @@VERSION
Microsoft SQL Azure (RTM) - 12.0.2000.8   Aug 23 2019 18:35:02   Copyright (C) 2019 Microsoft Corporation
Version of the script
Check the header of the stored procedure
2019-06-14 00:05:34
What command are you executing?
The indexoptimize script
What output are you getting?
Msg 2521, Could not find database ID 5. The database ID either does not exist, or the database was dropped before a statement tried to use it. Verify if the database ID exists by querying the sys.databases catalog view.

#255 most likely same issue, if so please close this issue

I am looking at this, and I am trying to understand what statement in IndexOptimize that is generating the error. Have you found out about that?

I am looking at this, and I am trying to understand what statement in IndexOptimize that is generating the error. Have you found out about that?

It's been some time, I don't remember exactly but I just checked the code again and I think it should have failed on this statement here:
EXECUTE sp_executesql @statement = @CurrentCommand05, @params = N'@ParamDatabaseID int, @ParamObjectID int, @ParamIndexID int, @ParamPartitionNumber int, @ParamFragmentationLevel float OUTPUT, @ParamPageCount bigint OUTPUT', @ParamDatabaseID = @CurrentDatabaseID, @ParamObjectID = @CurrentObjectID, @ParamIndexID = @CurrentIndexID, @ParamPartitionNumber = @CurrentPartitionNumber, @ParamFragmentationLevel = @CurrentFragmentationLevel OUTPUT, @ParamPageCount = @CurrentPageCount OUTPUT
As stated in the initial bug report the id is not found because we are on azure sql and a failover took place. Therefore the database id does not match when you compare the db id from sys.databases and db_id('databaseName') Hope this helps.

Now I understand. It is when IndexOptimize is querying sys.dm_db_index_physical_stats that it happens.

I have released a fix for this.
https://ola.hallengren.com/versions.html


I have multiple yaml files with different apis how do i import them in main swagger.ymal file ?

The same problem here!


Entity reference lost during submit cause unwanted insertion instead of update

Hello,
I'm using the dependent form fields in a project and I noticed I guess a bug.
In my form type, I have this code:
$builder
...
  ->addDependent('shippingAddress', 'shippingSameAsBillingAddress', function (DependentField $field, ?bool $billingSameAsShippingAddress) use ($options) {
      if (false === $billingSameAsShippingAddress) {
          $field->add(UserAddressType::class, [
              'mapped' => false,
              ...
          ]
          );
      }
  });

Notice this is an unmapped field.
During the POST_SET_DATA event, I populate the field with setData() and an entity of class UserAddress. Everything works well.
The problem comes with the submit operation. Doctrine tries to insert a new entity instead of updating the existing.
A. I checked the state of my form data, and in the form PRE_SUBMIT event, the id is still here:

Then I checked in the form SUBMIT event, and the id is lost at this point:

Thus, it tries to create a new userAdress.
B. I tried replacing the dependent field with a classic one, and it works as expected (updating the entity instead of trying to create a new one).
C. might be related to this issue as I didn't get the problem when creating a new one. Only when editing an existing.

Trying to pinpoint the problem further.
I noticed the modelData (that I change in the POST_SET_DATA form event) is reset to null (the initial value) when the dependable field is submitted. (by dependable field I mean shippingSameAsBillingAddress in my example).

The new field added does not take into account the data set in POST_SET_DATA.
Is this something that should be taken into account ? Any idea of a workaround ?
(setting data for those unmapped field when creating the form instead of using event ? a bit annoying as I use the form type sometimes embedded within another type that is class related).

Also, when checking the option shippingSameAsBillingAddress that make the field userAddress disappear and reappear, the data is empty. So the POST_SET_DATA event is called an unique time at the first form load.

Maybe found a workaround using Data mapper to set data, and still using POST_SUBMIT event to deal with the data processing. (The fields are now mapped to work with the data mapper)


fix: add OlojaMuyiwa

resolves #issueNumber
Checklist for profile addition

[x] Name the PR fix: add <your-username>.
[x] You've added file named your-username.json in the profiles directory.
[x] You've linked the PR to the correct issue.

Other additions/changes

[x] Changes made in this PR are mentioned below
[x] Search previous suggestions before making a new one, as yours may be a duplicate.
[x] I acknowledge that all my contributions will be made under the project's license.
[x] I've read the contributing guidelines

This PR adds/fixes

Notes

I've submitted a pr please review and merge thanks😊🚀


Register new HealthIndicator fails

I'm trying to register a Database health indicator to make it appear into the /health payload.
when only adding the actuatordependency including the spring-cloud-starter-consul-discoveryonly the following payload is returned
{
"description": "Spring Cloud Consul Discovery Client",
"status": "UP"
}

after adding one or many healthIndicator implementation only the following appears.
{
"status": "UP"
}

here's a minimal sample
It looks that the HealthAggregatorisn`t used or something I could not figure out.
Thanks

why do you think it fails? By default, spring boot doesn't display details.

I removed the spring-cloud-consul dependency and have the same behaviour. looks I missed something. thanks


aws: use http async client to fetch metadata credentials

Commit Message: aws: use http async client to fetch metadata credentials
Additional Description:
This is part #2 of set of changes to update common aws extension utility to make use of http async client to fetch aws credentials metadata instead of using libcurl.
Previous PR https://github.com/envoyproxy/envoy/pull/29880 introduced a class MetadataFetcher and a function in utility.cc to add internal static cluster config. In this PR we are adding functionality into InstanceProfileCredentialsProvider and TaskRoleCredentialsProvider to use MetadataFetcher object to fetch the credentials instead of using libcurl.
Risk Level: Low
Testing: Added unit testing to cover the new code path
Docs Changes: Updated
Release Notes: Updated
Platform Specific Features: NA
Runtime guard: envoy.reloadable_features.use_libcurl_to_fetch_aws_credentials
Deprecated: libcurl

General Description about the overall effort:
For the effort to remove curl from Envoy https://github.com/envoyproxy/envoy/issues/11816. This change will use http async client to make the call towards EC2 instance metadata & ECS task metadata service. To make http async client work it needs cluster manager with statically defined cluster configurations. If clusters with fixed names are not provided it will add the cluster during init.
There are 2 http filters with which this change works without issue

AwsRequestSigning ✅
AwsLambda ✅

However, with AWS IAM gRPC credentials provider plugin there is a problem ⚠ The http async client will not support AWS IAM gRPC plugin because it needs Envoy server fully initialized before using cluster manager. When gRPC service tries to use the Cluster Manager the static clusters are not available for reasons explained on https://github.com/envoyproxy/envoy/issues/27586. So in future changes if curl is removed entirely then we need to update docs to clearly state that AWS IAM gRPC plugin can only support Environment or File based credentials fetching. Other option is to add a curl version of AWS IAM gRPC credentials plugin into the contrib folder.
So far I am not aware if there are any Envoy users other than within AWS that uses AWS IAM gRPC plugin. Please let me know what is the best way to maintain it for everyone's convenience.
I have put a short doc to explain the implementation here https://docs.google.com/document/d/1m1KE_LGDnxrXwnUC1OEKYLmw8szy4r06OX_O3JcM-wM

In this PR already addressed the initial set of code review comments given in https://github.com/envoyproxy/envoy/pull/29880#pullrequestreview-1675107395

To @mattklein123 again for the senior maintainer pass, with the same caveats as last time (that it would have been nice if the CODEOWNERS did a pass first, but they were so conspicuously absent on the previous PR that it doesn't seem worth even inviting them this time.)

@suniltheta can this flag be flipped true? Otherwise it looks offhand like curl is still being used by default?


BaseModel.prepare() unexpected behaviour

According to the documentation of BaseModel.prepare() if there's no Lineage specified, the weights will be set to 1. In such case Line 366
probs = Lineage.from_adata(self.adata, backward=backward)

throws a KeyError: "Unable to find lineage data in adata.obsm['lineages_fwd']:
Therefore Line 432 is never reached :
if lineage is not None:
    weight_threshold, val = weight_threshold
    w = _densify_squeeze(probs.X, self._dtype)
    w[w < weight_threshold] = val
else:
    w = np.ones(len(x), dtype=self._dtype) ##432

I know having no lineage computed is non-standard functionality within your pipeline, but I thought it might be worth bringing it up.

Hi @nrclaudio , thanks a lot for pointing this out, will fix to match the docs!

Hi @michalk8, can we close this?


reproduction: show that body validation with json schema models is not applied & impl error masking

Description
This adds a reproduction that proves that the zod model for the JSON body input body is not used for validating the body.
After some debugging, we realized that this is due to the application/json header check here:
https://github.com/n1ru4l/feTS/blob/bff26b2fd98a2b7639e26d8649d9f2cc866a6742/packages/fets/src/zod/zod.ts#L53C6-L54
When you don't specify the header with the fetch call text content type is used by default, completely skipping the JSON body validation.
A possible solution could be to force the user to define the header validation object through types when the json body parameter is used.
Additionally we should probably raise a content-type mismatch error when invoking the route with the wrong content-type (text over application/json).
Type of change
Bug Reproduction
How Has This Been Tested?
See test case with a failing test
Closes #688
Closes #673

As a solution, instead of checking the content type header, the validation is applied whenever request.json is called. It throws HTTPError so error handling plugin can catch it. We need useErrorHandling plugin to be added in feTS by default, and this also solved the problem of leaking unexpected errors.


🐛 Data model objects with bytes don't round trip to/from json

Describe the bug
A data model instance, when loaded from its json representation should match the original object. If the object contains a bytes field, this does not happen due to the bytes being base64 serialized in to_json but not in from_json.
Sample Code
from caikit.core.data_model import dataobject, DataObjectBase

@dataobject
class Foo(DataObjectBase):
    foo: bytes

f = Foo("asdf")
f2 = Foo.from_json(f.to_json())
# This fails!
assert f.foo == f2.foo

Expected behavior
f.foo == f2.foo should be True

@gabe-l-hart Based on recent discussions, is this bug irrelevant? If the intention is to reject attempts to set fields with the wrong type, then ideally
f = Foo("asdf")

is incorrect
f = Foo(b"asdf")

and using this works as expected?

And ideally we should open a separate issue in which we explicitly reject attempts to set fields with the wrong type?


Query fails if no AAAA record is available in netbox

Hi,
I am using the latest version from master branch.
When a device has an IPv4 and IPv6 DNS name assigned in netbox, everything works fine. The name can be resolved, the answer contains both records.
However, if a device only has an IPv4 assigned, we are running into the following issue:
bash-5.1# ping device.blabla.local
ping: device.blabla.local: Name does not resolve
bash-5.1# nslookup   device.blabla.local
Server:		<IP_ADDRESS>
Address:	<IP_ADDRESS>#53

Name:	device.blabla.local
Address: <IP_ADDRESS>
** server can't find device.blabla.local: NXDOMAIN

When I check the logs, I can see the following info:
[INFO] <IP_ADDRESS>:1770 - 29865 "A IN device.blabla.local. udp 47 false 512" NOERROR qr,aa,rd 92 0.048924982s
[INFO] <IP_ADDRESS>:55350 - 33929 "AAAA IN device.blabla.local. udp 47 false 512" NXDOMAIN qr,aa,rd 47 0.044846348s
[INFO] <IP_ADDRESS>:4305 - 63751 "A IN device.blabla.local. udp 47 false 512" NOERROR qr,aa,rd 92 0.000204359s

I guess the problem is that NXDOMAIN is returned for AAAA, even if a record for A was found.

Which Plugin version are you using?
Which ping is it? (What os? Is it BusyBox?)
Does dig A device.blabla.local work as expected?

I guess we are using v0.3.0, however, at startup it prints [INFO] plugin/netbox: Version 0.1.1-dev (probably because of #32).
In our build process, we do:
&& sed -i '/^forward:forward/i netbox:github.com/oz123/coredns-netbox-plugin' plugin.cfg \
&& go get github.com/oz123/coredns-netbox-plugin@master \

Our currently running build was created 5 days ago.
With nslookup the query fails on Ubuntu 20.04 (native host, "ping from iputils s20190709") and alpine 3.16 (container, "ping from iputils v20220328-1499-gc662f01584").
Alpine does not even ping (error: "Name does not resolve"), Ubuntu does ping after some delay.
The host command on both systems returns:
user@ubuntu:~$ host device.blabla.local
device.blabla.local has address <IP_ADDRESS>
Host device.blabla.local not found: 3(NXDOMAIN)
Host device.blabla.local not found: 3(NXDOMAIN)

dig seems to be happy on both OSs. But, it returns IPv4 or IPv6 (with AAAA parameter) separately and not combined. For this case, the result is fine.
#dig @<IP_ADDRESS> device.blabla.local

; <<>> DiG 9.16.1-Ubuntu <<>> @<IP_ADDRESS> device.blabla.local
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21118
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 9eeb4d23b55940fe (echoed)
;; QUESTION SECTION:
;device.blabla.local.	IN	A

;; ANSWER SECTION:
device.blabla.local. 21 IN	A	<IP_ADDRESS>

;; Query time: 0 msec
;; SERVER: <IP_ADDRESS>#53(<IP_ADDRESS>)
;; WHEN: Tue Sep 06 07:51:50 CEST 2022
;; MSG SIZE  rcvd: 115


Restore 0.35 JUMP handling

Fixes #1270 #1311 and #1293 by restoring JUMP handling from v0.35

Thanks for your PR!

any new patch version for the fix?  IMO this is a critical issue.

@haibinyu Does master works well for you? Seems there are some other issues left...


CLOUD-46704 fixed tls mail sending

@keyki

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/periscope-build-pull-request/32/


pulumi convert turns references to resources into res.id which is not valid in other languages

Creating the default pulumi new serverless-aws-yaml and then pulumi convert --language typescript --out ./ts succeeds - but then fails to typescheck in TS with:
reviewing update (dev)

View Live: https://app.pulumi.com/lukehoban/demo2/dev/previews/158d94d9-3fcb-4d19-871c-0bf40984b85b

     Type                 Name       Plan     Info
     pulumi:pulumi:Stack  demo2-dev           1 error

Diagnostics:
  pulumi:pulumi:Stack (demo2-dev):
    error: Running program '/Users/lukehoban/dd/ced2022demos/demo2/demo2ts' failed with an unhandled exception:
    TSError: ⨯ Unable to compile TypeScript:
    index.ts(32,9): error TS2322: Type 'Output<string>' is not assignable to type 'Input<Function> | undefined'.
      Type 'Output<string>' is not assignable to type 'OutputInstance<Function>'.
        Types of property 'apply' are incompatible.
          Type '{ <U>(func: (t: string) => Promise<U>): Output<U>; <U>(func: (t: string) => OutputInstance<U>): Output<U>; <U>(func: (t: string) => U): Output<...>; }' is not assignable to type '{ <U>(func: (t: Function) => Promise<U>): Output<U>; <U>(func: (t: Function) => OutputInstance<U>): Output<U>; <U>(func: (t: Function) => U): Output<...>; }'.
            Types of parameters 'func' and 'func' are incompatible.
              Types of parameters 't' and 't' are incompatible.
                Type 'string' is not assignable to type 'Function'.

Similar code is generated in other languages - which will similarly not typecheck correctly for them.
The issue is that this:
eventHandler: ${fn}

Becomes this:
eventHandler: fn.id,

But should be this:
eventHandler: fn,

For more context on the problem:

The Pulumi YAML program
name: serverlesstest
description: A serverless app on AWS API Gateway and Lambda
runtime: yaml
resources:
    # An execution role to use for the Lambda function
    role:
        type: aws:iam:Role
        properties:
            assumeRolePolicy:
                Fn::ToJSON:
                    Version: 2012-10-17
                    Statement:
                        - Action: sts:AssumeRole
                          Effect: Allow
                          Principal:
                            Service: lambda.amazonaws.com
            managedPolicyArns:
                - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
    # A Lambda function to invoke
    fn:
        type: aws:lambda:Function
        properties:
            runtime: python3.9
            handler: handler.handler
            role: ${role.arn}
            code:
                Fn::FileArchive: ./function
    # A REST API to route requests to HTML content and the Lambda function
    api:
        type: aws-apigateway:RestAPI
        properties:
            routes:
                - path: /
                  localPath: www
                - path: /date
                  method: GET
                  eventHandler: ${fn}
outputs:
    # The URL at which the REST API will be served.
    url: ${api.url}

The generated PCL program
resource role "aws:iam/role:Role" {
	__logicalName = "role"
	assumeRolePolicy = toJSON({
		"Version" = "2012-10-17",
		"Statement" = [{
			"Action" = "sts:AssumeRole",
			"Effect" = "Allow",
			"Principal" = {
				"Service" = "lambda.amazonaws.com"
			}
		}]
	})
	managedPolicyArns = ["arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"]
}

resource fn "aws:lambda/function:Function" {
	__logicalName = "fn"
	runtime = "python3.9"
	handler = "handler.handler"
	role = role.arn
	code = fileArchive("./function")
}

resource api "aws-apigateway:index:RestAPI" {
	__logicalName = "api"
	routes = [
		{
			path = "/",
			localPath = "www"
		},
		{
			path = "/date",
			method = "GET",
			eventHandler = fn.id
		}
	]
}

output url {
	__logicalName = "url"
	value = api.url
}

It looks like the problem is not so much in codegen from pulumi/pulumi but rather from pulumi-yaml when converting the template into PCL

Tested that changing
https://github.com/pulumi/pulumi-yaml/blob/main/pkg/pulumiyaml/codegen/load.go#L64 from
Traversal: hcl.Traversal{hcl.TraverseRoot{Name: v.Name}, hcl.TraverseAttr{Name: "id"}},

to
Traversal: hcl.Traversal{hcl.TraverseRoot{Name: v.Name}}

Fixes the generated PCL program and does not assume an id property access for referenced resources. However, I am not sure whether this fix applies always. Deferring to @iwahbe who probably knows a lot more about the caveats of the situation

Unfortunately, that fix breaks existing examples, such as https://github.com/pulumi/pulumi/blob/1ccfa9fdc49a4540063b8fc1606b30995fcf6778/pkg/codegen/testing/test/testdata/transpiled_examples/azure-app-service-pp/azure-app-service.pp#L92.


PDF with data on top of it - all data is lost when opening via pdf.js

Here is the example file that fails to open correctly in pdf.js on your demo page (and in our instance):
dummkj19.pdf
It is a layered document (a pdf with data on top of it). Only the pdf opens, the data is lost.
Configuration:

Web browser and its version: any browser
Operating system and its version: any operating system
PDF.js version: Your own DEMO version
Is a browser extension: no

Steps to reproduce the problem:

Upload the above file via the Demo button on pdf.js website

Expected result: a pdf with data

Actual result: empty pdf (all data is lost)

We are happy to pay a modest fee for a quick fix.
Please contact<EMAIL_ADDRESS>if you would like to discuss this further.

I`m sure to resolve this issue.
Thank you.

I need to check your code right now.

There's something wrong with one of the ExtGState entries for the first page, either in the PDF file itself and/or in the way that PDF.js handles GState.
However, even if that would be fixed the PDF file is still corrupt since it doesn't embed all of its fonts (i.e. the same problem as outlined in https://github.com/mozilla/pdf.js/issues/11068#issuecomment-521589843).
Finally, given the two comments just above: Unless you have something add to an issue, please refrain from posting essentially meaningless/empty comments since that just clutters the discussion.

Amazingly, the font that is missing in the resources has the same name! (Ffcs1)

Should this be closed as fixed now, given the PR referenced above?


Playground breaks with template literals in child function

Bug Report
I get `SyntaxError: expected expression, got keyword 'var'" when using template literals.
To Reproduce
import styled from "styled-components";
import { Playground } from "docz";

<Playground>
    {() => {
		const i = styled.div``;
    }}
</Playground>

Expected behavior
Template literal works like in de the spec
Environment

OS: 4.19.36-1-MANJARO GNU/Linux
Node/npm version: Node 10.15.3/NPM 6.4.1

did you find a workaround for this?

Not really. You can manually desugar the template literals and turn it into a normal function cal, but then you're not really using template literals anymore.

yeah, damn. react-live seems to work with template literals. https://codesandbox.io/s/jpkk6vjjow


[fix] cms es feed_releases with deleted pages

Coverage decreased (-9.5%) to 70.543% when pulling 1d73cef9bae5130b83f2a3f00c2746ee95bc6517 on ShinjiTanimoto:site-search into f000a668f4419e8d7cec12f747173117a011fee4 on shirasagi:master.

Coverage decreased (-9.5%) to 70.543% when pulling 1d73cef9bae5130b83f2a3f00c2746ee95bc6517 on ShinjiTanimoto:site-search into f000a668f4419e8d7cec12f747173117a011fee4 on shirasagi:master.


Unable to read from file

I have here an apparently inoffensive rds file with one single character vector of two elements, each with the value "14901". When trying to read it "Unable to read from file" error arises. I don't see anything special on it. The file was saved using R 3.6.1.
File attached
Thanks for the help!
RR2.zip

Thanks for the report. It looks like some new internal attributes were added to the R format in version 3. I'll work on it.

This file appears to use an ALTREP structure - still trying to understand it. Can you please provide the EXACT steps used to create this file?

@pedrohcrocha could you please explain the steps to reproduce this file?

This file uses the deferred_string function, which stores strings in the file as double-precision numbers (!). Now that I have started to crack the ALTREP structure I should have a fix soon.

Try https://github.com/WizardMac/librdata/commit/49200c1bbac39ce2eb7ece60a95dc3ec0971918e

looks good! thanks!

Okay great. I expect there to be similar errors in the future, so don't hesitate to open new bug reports.
I have added debugging information, so if you have an error handler set up, it will now report the name of the unrecognized class (function) in an ALTREP structure.


Clusters and not clickable on Microsoft Edge.

I am using latest version of MarkerClusterer. I have set svg as a markercluster icon and I am not able to click on it. It does not work.

Do you have an online example where we can see the problem?

@Remo thanks for the reply. Turns out that I can not reproduce this issue on plnkr which lets me to conclude that problem is with my code and not gmaps-marker-clusterer. I will investigate further and If issue is due to gmaps-marker-clusterer will reopen the ticket.
Kind Regards


pull request for e2e test at 12/27/2016 09:45:11

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


az artifacts universal download - fetch latest version

If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at Azure/azure-cli

Extension name (the extension in question)
azure devops
Description of issue (in as much detail as possible)
Feature request! It would be nice to have a way of fetching the latest build of an artifact and using that (perhaps with the --version argument?)
For example:
az artifacts universal download \
  --organization "https://dev.azure.com/someOrganisation/" \
  --feed "someFeed" \
  --name "someName" \
  --version "latest" \
  --path "${PWD}/test/resources"

would be great! Thanks!

This is actually supported. See this.

@joelbourbon yeah thanks, I'll close this.
Bear in mind this feature didn't exist when I made the issue!
For future people who arrive here, proper documentation on the "grabbing latest version" feature is here!


Bugfixes to tf-singularity Recipe

I had to make a couple bugfixes to the recipe to get it working for me. Bundling up into a PR in case might be useful to other folks. Quick summary of changes in this PR:

s/Bootstrap/BootStrap/ in tf-gpu.def (I think was a typo previously)
Add a newline to "/environment" before appending new paths (was breaking the if statement in /environment for me otherwise).
I couldn't find NVIDIA driver version 367.48 on NVIDIA's download page. Substituted for 367.44 (hoping this doesn't cause errors)
Added a number of echo statements to help keep track of what build.sh is doing.

I'll close this for now unless you have further issues.


Fix bash prompt issue if newline character is removed from PS1.

When the last newline character is removed (prompt is only one line long), we have issues with line breaks.
With the fix:
Without the fix:

Thanks for this. Is there a way to solve the issue without resetting PS1 and PS2 every time the prompt is displayed?

@mathiasbynens
Unfortunately not. This is the only solution which works in every scenario.
Let me explain why:
The old way – the way it currently is in master branch – is a bit of a hack. It only works because you add a newline after calling prompt_git.
If you remove that PS1+="\n"; you see why: Lines get wrapped too soon and continue in the same line rather than the next.
That is, among other things, due to the fact that bash has "problems" with calculating the real prompt width when echo'ing colors. However there's an easy fix: Wrap colors in \[ \] (See here)
In addition to that, bash has another "problem" when colors are echo'ed from inside a function, which then find their way into PS1. See here.
If we don't have a function _install_custom_prompt which gets called every time the prompt is refreshed, the branch name in the prompt doesn't change, even if we switch to another branch.
This could be solved by "escaping" the prompt_git function call (like you did: PS1+="\$(pr..) but this doesn't work for us, as we would see \[in the shell (these characters come from the colors we escaped inside prompt_git function).
Maybe someone comes up with a better idea to solve the issue?

This got fixed in the meantime somehow.


stemcell file name matches previous instruction

@iainsproat Thanks for your hint. We did see the mismatch quite some time ago https://github.com/cloudfoundry/bosh-linux-stemcell-builder/pull/10
As this is not going to change, we are fixing this differently by using wget now.
This will download a file in the correct naming format.
Please reopen if you have further comments.


High CPU usage

Describe the bug:
High CPU usage
To Reproduce:
twt
Expected behavior:
low CPU
Screenshots:
TBD
System:

Twitch-tui version:1.6.0

Operating System:5.18.12-artix-1

Terminal:st

Shell:zsh

Add any other context about the problem here.
Issue is not consistent

Hello,
Could you define "high cpu usage", in your case?
This might be solved in one of the alphas that is currently under development for v2.0.

Close to 100% out of 400% which I thought should be unusual.
On Mon, 25 Jul 2022, 10:37 Xithrius, @.***> wrote:

Hello,
Could you define "high cpu usage", in your case?
This might be solved in one of the alphas that is currently under
development for v2.0.
—
Reply to this email directly, view it on GitHub
https://github.com/Xithrius/twitch-tui/issues/182#issuecomment-1193691224,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWXHMES7PLBDUMQEBWT3DWLVVY74DANCNFSM54RESTBA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Does this happen usually at launch or when the application is running for a while?
Are you able to connect and see messages before or after the CPU spikes?

I could not reproduce it again either. Maybe it's just a onetime thing.
Noticed it after about an hour of usage. Then restarted and it was still using 100% of CPU.
not applicable (it was a channel with zero viewers)
No. It did not solve it. I raised it to 1000 (ms). Maybe it did solve the issue. I will put it to test again.
[twitch]
# Your username on Twitch.
username = "aravinat21"
# The streamer's name.
channel = "aravinat21" # A channel with 0 viewers
# The IRC channel you'd like to connect to.
server = "irc.chat.twitch.tv"
# OAuth token that authenticates you into Twitch. Acquired through https://twitchapps.com/tmi/.
token = ""

[terminal]
# The delay in milliseconds between terminal updates.
tick_delay = 1000
# The maximum amount of messages to be stored.
maximum_messages = 150
# The file path to log to.
log_file = ""

[storage]
# If previous channels switched to should be tracked.
channels = true
# If previous username mentions should be tracked.
mentions = true

[filters]
# If filters should be enabled at all.
enabled = false
# If the regex filters should be reversed.
reversed = false

[frontend]
# If the time and date is to be shown.
date_shown = true
# The format of the date and time outputs. Formats can be found at https://strftime.org/.
date_format = "%a %b %e %T %Y"
# The longest a username can be.
maximum_username_length = 26
# Which side the username should be aligned to.
username_alignment = "right"
# The color palette for the username column: pastel (default), vibrant, warm, cool.
palette = "pastel"
# Show title with time and channel.
title_shown = true
# Show padding around chat frame.
padding = true
# Show twitch badges next to usernames.
badges = true

I haven't done lengthy tests in a while, so I'll definitely check this out.
However, my previous tests yielded no such results.
I'll be sure to be on the lookout for this, and if it does come up, I'll reopen this issue.

I'm sorry, but I'm completely not able to replicate this on multiple different machines.
I'll continue to do testing, and keeping an eye out for anomalies like this. As of now I am unable to solve this issue.

Do you think you could run https://github.com/brendangregg/FlameGraph on your system to see if anything wack happens?
Thanks!

I'll be closing this for now. If you're able to measure the problem on your computer, feel free to re-open this issue.


[KYUUBI #6156] Remove flink. prefix for create session configurations

:mag: Description
Issue References 🔗

This pull request fixes #6156
Describe Your Solution 🔧
Remove flink. prefix for open flink session configurations.
Types of changes :bookmark:

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪
Behavior Without This Pull Request :coffin:
Behavior With This Pull Request :tada:
Related Unit Tests

Checklist 📝

[X] This patch was not authored or co-authored using Generative Tooling

Be nice. Be informative.

Thanks, merged to master/1.8


include[].on get an error:  Error: Invalid value { '$col': '...' }

Versions

sequelize: 5.8.8
sequelize-typescript: 1.0.0-alpha.9
typescript: 3.4.3

I'm submitting a ...

[x] bug report
[ ] feature request
Actual behavior:

code as below
PSMUserRelation.findAll({
        include: [
          {
            model: User,
            as: 'maintainerInfo',
            on: {
              '$PSMUserRelation.maintainer$': { $col: 'maintainerInfo.user_id' }
            },
          }
        ]
      })

get the error:
Error: Invalid value { '$col': 'maintainerInfo.user_id' }
    at Object.escape (/server/node_modules/sequelize/lib/sql-string.js:65:11)
    at MySQLQueryGenerator.escape (/server/node_modules/sequelize/lib/dialects/abstract/query-generator.js:966:22)
    at MySQLQueryGenerator._whereParseSingleValueObject (/server/node_modules/sequelize/lib/dialects/abstract/query-generator.js:2433:41)
    at MySQLQueryGenerator.whereItemQuery (/server/node_modules/sequelize/lib/dialects/abstract/query-generator.js:2151:19)
    at Utils.getComplexKeys.forEach.prop (/server/node_modules/sequelize/lib/dialects/abstract/query-generator.js:2050:25)
    at Array.forEach (<anonymous>)
    at MySQLQueryGenerator.whereItemsQuery (/server/node_modules/sequelize/lib/dialects/abstract/query-gen...

Is there some thing I missing?
Expected behavior:

work as it is

Hey @dancon, the $col syntax isn't supported anymore by sequelize. Use the following instead:
import {Op} from 'sequelize';

...
            on: {
              '$PSMUserRelation.maintainer$': { [Op.col]: 'maintainerInfo.user_id' }
            },

See docs for further information.
Hope this helps. Feel free to close this issue if my answer solves your issue!

Got it, really appreciate it!

I get


don't use SubfieldBase as its removed in django 1.10

The main change here that django.db.models.SubfieldBase is now removed. As suggested in this class, they suggest to use from_db_value, and this is what I did here, a related question in stackoverflow:
http://stackoverflow.com/questions/35166085/how-to-deal-with-subfieldbase-has-been-deprecated-use-field-from-db-value-inst
The other thing that we lost as django.db.models.SubfieldBase is removed now is setting model field as class field. You can see that some of the test below had to field in a different way. Hopefully I fixed it in the right now.
@danaspiegel @waseem-omar Please review and let me know for any feedback.

 (2) 53 - Upgrade Django to 1.10

Could you also unpin the django version in requirements.txt as well?

@glow-mdsol Updated - thanks


Add missing 'sensor' to ABODE_PLATFORMS

Description:
This fixes missing light, humidity, temperature sensors from abode component.
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

Hi @jloutsenhizer,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!


Add resource / source bundling to pex cli

Pex supports adding sources and resources directly via the PEXBuilder API, but not the CLI. This adds flags to allow adding sources and resources via directories.
Fixes #490
Fixes #491
I paired on this with @dotordogh!
Two questions came up while working on this

what should happen if the output location is inside the input path?
it looks like if the entry point doesn't exist, pex won't complain. Maybe it should?

@baroquebobcat @dotordogh looks like there's one failure remaining on the 3.6 shard here:
https://travis-ci.org/pantsbuild/pex/jobs/388099378#L1324
looks like a unicode handling thing in python3.6. you should be able to get to a local repro by running:
$ tox -e py36-integration -- -k test_pex_resource_bundling

Oddly enough, that didn't get me a repro. But, my local python 3.6 is 3.6.5. Could there be a difference between 3.6.3 and 3.6.5?

Could there be a difference between 3.6.3 and 3.6.5?

I wouldn't think so.. I'm also on python 3.6.5 and I repro locally:
[omerta pex (pr507)]$ tox -e py36-integration -- -k test_pex_resource_bundling
GLOB sdist-make: /Users/kwilson/dev/pex/setup.py
py36-integration inst-nodeps: /Users/kwilson/dev/pex/.tox/dist/pex-1.4.3.zip
py36-integration installed: atomicwrites==1.1.5,attrs==18.1.0,more-itertools==4.2.0,packaging==16.8,pex==1.4.3,pluggy==0.6.0,py==1.5.3,pyparsing==2.2.0,pytest==3.6.0,six==1.11.0,twitter.common.contextutil==0.3.9,twitter.common.dirutil==0.3.9,twitter.common.lang==0.3.9,twitter.common.testing==0.3.9
py36-integration runtests: PYTHONHASHSEED='1789156364'
py36-integration runtests: commands[0] | py.test tests/test_integration.py -k test_pex_resource_bundling
================================================= test session starts ==================================================
platform darwin -- Python 3.6.5, pytest-3.6.0, py-1.5.3, pluggy-0.6.0
rootdir: /Users/kwilson/dev/pex, inifile:
collected 39 items / 38 deselected

tests/test_integration.py F                                                                                [100%]

======================================================= FAILURES =======================================================
______________________________________________ test_pex_resource_bundling ______________________________________________

    def test_pex_resource_bundling():
      with temporary_dir() as output_dir:
        with temporary_dir() as input_dir, temporary_dir() as resources_input_dir:
          with open(os.path.join(resources_input_dir, 'greeting'), 'w') as fh:
            fh.write('hello')
          pex_path = os.path.join(output_dir, 'pex1.pex')

          with open(os.path.join(input_dir, 'exe.py'), 'w') as fh:
            fh.write(dedent('''
              import pkg_resources
              with pkg_resources.resource_stream('__main__', 'greeting') as f:
                print(f.read())
              '''))

          res = run_pex_command([
            '-o', pex_path,
            '-D', input_dir,
            '-R', resources_input_dir,
            '-e', 'exe',
          ])
          res.assert_success()

          stdout, rc = run_simple_pex(pex_path)

          assert rc == 0
>         assert stdout == b'hello\n'
E         assert b"b'hello'\n" == b'hello\n'
E           At index 0 diff: 98 != 104
E           Left contains more items, first extra item: 111
E           Use -v to get the full diff

tests/test_integration.py:962: AssertionError
------------------------------------------------- Captured stdout call -------------------------------------------------
b'hello'

------------------------------------------------- Captured stderr call -------------------------------------------------
pex: Building pex
pex: Building pex :: Resolving interpreters
pex: Building pex :: Resolving interpreters :: Setting up interpreter /Users/kwilson/dev/pex/.tox/py36-integration/bin/python3.6
pex: Building pex :: Resolving distributions
pex: Warning, using a UrllibContext which is known to be flaky.
pex: Please build pex with the requests module for more reliable downloads.
pex: Constructed UrllibContext context <pex.http.UrllibContext object at 0x10e134550>
pex: Building pex: 3.4ms
pex:   Resolving interpreters: 1.5ms
pex:     Setting up interpreter /Users/kwilson/dev/pex/.tox/py36-integration/bin/python3.6: 1.5ms
pex:   Resolving distributions: 0.9ms
======================================= 1 failed, 38 deselected in 1.05 seconds ========================================
ERROR: InvocationError: '/Users/kwilson/dev/pex/.tox/py36-integration/bin/py.test tests/test_integration.py -k test_pex_resource_bundling'
_______________________________________________________ summary ________________________________________________________
ERROR:   py36-integration: commands failed

@baroquebobcat @dotordogh looks like this is still failing the same test on the 3.6 shard - but that should be the last remaining blocker to landing this.
noting that this patch fixes that locally for me:
diff --git a/tests/test_integration.py b/tests/test_integration.py
index 0a7a6c9..6df25cf 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -945,7 +945,7 @@ def test_pex_resource_bundling():
         fh.write(dedent('''
           import pkg_resources
           with pkg_resources.resource_stream('__main__', 'greeting') as f:
-            print(f.read())
+            print(f.read().decode('utf-8'))
           '''))

       res = run_pex_command([

looks good mod the expected pypy shard failure tracked in #497. thanks @dotordogh and @baroquebobcat!
will cut pex 1.4.4 in #512 later today to unblock consumption of these changes in pants.


Cql optimization cleanup

The cross-shard metric is more confusing than helping, removing it for this version.
Make it clearer that batches will make the token-aware shows wrong value.

After removing the metrics, the dashboard looks like:


Added vis-icontwo to stable &  updated vis-inventwo

Updated vis-inventwo to 1.3.8
Added vis-icontwo to stable (v0.1.11)

RE-CHECK!

Automated adapter checker
ioBroker.vis-icontwo

[ ] :heavy_exclamation_mark: [E124] Main file not found under URL: https://raw.githubusercontent.com/inventwo/ioBroker.vis-icontwo/master/main.js
[ ] :heavy_exclamation_mark: [E301] Tests on Travis-ci.com are broken. Please fix.
[ ] :heavy_exclamation_mark: [E504] "main.js found in package.json, but not found as file

Add comment "RE-CHECK!" to start check anew

@jkvarel ok for now. But please remove main file also from
Package.json


Bump timeout in cleanup, remove "should pause on IO error" from quarantine

This test only failed once on a periodic in the past 14 days.
It failed with a timeout in the cleanup after the test.
Let's bump that timeout from the low 30 seconds (might be too low for a very busy cluster) and remove it from quarantine.
Release note:

NONE

/lgtm

failed again:
https://prow.ci.kubevirt.io/view/gcs/kubevirt-prow/logs/periodic-kubevirt-e2e-k8s-1.22-sig-storage/1557366231957245952
maybe we need to look into it

Closing PR as the test still flakes, will need some more inspection.


Added ability to listen to upgrades via ComponentHandler

Added extra function to register callback functions on a component class basis such that you can be alerted when a DOM element gets upgraded. This is useful in a situation such as this:

User decides to use wskCheckbox.
When the checkbox is clicked the user wishes to update some parent node's class (to change the visual style of a table row for example).
All they need to do now is register an event listener using componentHandler.registerUpgradedCallback(JSClass, callback) so that their callback is called every time any DOM element is upgraded to type JSClass. The callback function takes 1 parameter which is the HTMLElement that was upgraded.
This saves the user much time and efficiency as they don't need to "Monitor the DOM" for changes. It also allows them to be notified when things are added after page load too.

@jasonmayes could you kindly rebase against the material-sprint branch? It looks like the team have landed some updates since you started working on this.


define how to handle things that need a configuration per-telecope in a standard way

Many algorithms have telescope or camera-specific parameters that need to be tuned. Right now our config system doesn't handle that well, and some people have hard-coded scripts that read YAML files, tables, etc.
Let's pick a standard way.
It should support:

setting parameters for all cameras of the same type/version
setting parameters for a specific camera by tel_id
setting parameters for a group of telescopes specifid by tel_id.
May be useful to have some execution ordering to the configuration so one can e.g. first set defaults for all telescopes, change a few parameters for a group of telescopes(e.g. by type), and then override a few parameters for specific telescopes.

May be useful to have some execution ordering to the configuration so one can e.g. first set defaults for all telescopes, change a few parameters for a group of telescopes(e.g. by type), and then override a few parameters for specific telescopes.

I think a default configuration is correct, which might specify some things per type, and others per telescope. But I think the user should then be allowed to override the defaults in any way they wish. I.e. if the user configures all telescope types in some way, this also overrides the default "per telescope" configuration for that telescope type.
This should be very simple to implement, and most intuitive. The configurations are just applied in the order they are specified. E.g.
config = {**default_config, **user_config}

Okay, actually probably more complicated than that, as you will need some way of overwriting the "per telescope" configuration with the "per telescope type" configuration... but I think this entire topic is a step in the right direction

see some discussion in #1022

Just as another use-case, here is an example of what is used in Julien's pipeline for configuring 2 cleaning types (tailcuts + wavelet) as a yaml file.
cleaning_reco:  # note that there are more than one image cleaner defined, this is just the reco one
  tail:
   thresholds:  # picture, boundary
    - LSTCam: [6, 3]
    - NectarCam: [6, 3]
   keep_isolated_pixels: False
   min_number_picture_neighbors: 2

  wave:
   # Directory to write temporary files
   #tmp_files_directory: '/dev/shm/'
   tmp_files_directory: './'
   options:
    LSTCam:
     type_of_filtering: 'hard_filtering'
     filter_thresholds: [3, 0.2]
     last_scale_treatment: 'drop'
     kill_isolated_pixels: True
     detect_only_positive_structures: False
     clusters_threshold: 0
    NectarCam:  # TBC
     type_of_filtering: 'hard_filtering'
     filter_thresholds: [3, 0.2]
     last_scale_treatment: 'drop'
     kill_isolated_pixels: True
     detect_only_positive_structures: False
     clusters_threshold: 0

cleaning_energy:
 ...

This is now implemented using TelescopeComponent


How?

[Enter feedback here]>>Session affinity can be enabled the origin group level in Azure Front Door Standard and Premium tier and front end host level in Azure Front Door (classic) for each of your configured domains (or subdomains).
How?

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

ID: 31f1dbc3-4bd2-7238-2f2e-8b31e72d4f7c
Version Independent ID: 7528e36e-ab2e-4b40-f7a9-4dc92c279458
Content: Traffic routing methods to origin - Azure Front Door
Content Source: articles/frontdoor/routing-methods.md
Service: frontdoor
GitHub Login: @duongau
Microsoft Alias: duau

@bizinbarefeet
Thank you for reaching out.
You can enable Session affinity for your origin as shown here
Hope this answers your question, please tag me in your response if you have any additional questions thank you!


add FreeBSD support

Description
From my limited understanding, besu should be able to be compiled (and run) on FreeBSD quite easily. If I try to compile it however, it fails with the following messages.
        at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.IllegalArgumentException: Unknown os.name 'freebsd'.
        at com.diffplug.common.swt.os.OS.calculateNative(OS.java:153)
        at com.diffplug.common.swt.os.OS.detectPlatform(OS.java:116)
        at com.diffplug.common.swt.os.OS.detectPlatform(OS.java:123)
        at com.diffplug.common.swt.os.OS.getRunning(OS.java:109)
        at com.diffplug.common.swt.os.SwtPlatform.getRunning(SwtPlatform.java:124)
        at dev.equo.solstice.BundleContextShim.getProperty(BundleContextShim.java:264)
        at dev.equo.solstice.BundleContextDelegate.getProperty(BundleContextDelegate.java:40)
        at org.eclipse.core.internal.runtime.InternalPlatform.getOS(InternalPlatform.java:396)
        at org.eclipse.core.runtime.Platform.getOS(Platform.java:1192)
        at org.eclipse.core.internal.resources.Workspace.<clinit>(Workspace.java:89)
        ... 148 more

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spotlessGroovyGradle'.
> java.lang.ExceptionInInitializerError (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 4m 36s
107 actionable tasks: 105 executed, 2 up-to-date

I think the relevant info is at the beginning at line "Caused by: java.lang.IllegalArgumentException: Unknown os.name 'freebsd'.", which seems to indicate that freebsd is not included in a list of known OS. Could it be as simple as adding this OS to the list?
Acceptance Criteria

make besu compilable and executable on FreeBSD

Versions (Add all that apply)

Software version: 24.1.1
Java version: OpenJDK 17.0.9
OS Name & Version: FreeBSD 13.1-RELEASE-p9

Hi @airflow2010 we're using the spotless plugin for code formatting: https://plugins.gradle.org/plugin/com.diffplug.gradle.spotless
Not sure about their support for freebsd, but besu won't be doing anything too unusual in the configuration of spotless.
A workaround for now is to use gradle to skip the spotless tasks...
e.g. ./gradlew build -x spotlessGroovyGradle
You might find other tasks fail for similar reason along the way.
If you just want to build the besu distribution binaries, you can skip all the formatting, tests, etc and try
./gradlew installDist

Closing for @siladu's suggestions - if these suggestions do not help, please re-open with more detail. Thank you!

Hi! Thanks for your comment!

If you just want to build the besu distribution binaries, you can skip all the formatting, tests, etc and try ./gradlew installDist

That was a helpful advice - as I tried to build with just "./gradlew installDist" the compilation run through without errors.
BUILD SUCCESSFUL in 3s
98 actionable tasks: 2 executed, 96 up-to-date

When I startup the daemon, it crashes with information about librocksdbjni missing:
2024-02-06 15:49:20.936+00:00 | main | INFO  | ProtocolScheduleBuilder | Protocol schedule created with milestones: [Paris:0, Paris:1150000, Paris:1920000, Paris:1920001, Paris:1920010, Paris:2463000, Paris:2675000, Paris:4370000, Paris:7280000, Paris:9069000, Paris:9200000, Paris:12244000, Paris:12965000, Paris:13773000, Paris:15050000, Shanghai:1681338455]
2024-02-06 15:49:21.385+00:00 | main | INFO  | RocksDBKeyValueStorageFactory | No existing database detected at /usr/local/share/besu-24.1.1/build/install/besu. Using version 1
2024-02-06 15:49:21.459+00:00 | main | ERROR | Besu | Uncaught exception in thread "main"
java.lang.ExceptionInInitializerError
        at org.hyperledger.besu.plugin.services.storage.rocksdb.RocksDbUtil.loadNativeLibrary(RocksDbUtil.java:32)
        at org.hyperledger.besu.plugin.services.storage.rocksdb.segmented.RocksDBColumnarKeyValueStorage.<clinit>(RocksDBColumnarKeyValueStorage.java:91)
        at org.hyperledger.besu.plugin.services.storage.rocksdb.RocksDBKeyValueStorageFactory.create(RocksDBKeyValueStorageFactory.java:197)
        at org.hyperledger.besu.ethereum.storage.keyvalue.KeyValueStorageProviderBuilder.lambda$build$0(KeyValueStorageProviderBuilder.java:62)
        at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
        at org.hyperledger.besu.ethereum.storage.keyvalue.KeyValueStorageProvider.getStorageBySegmentIdentifier(KeyValueStorageProvider.java:97)
        at org.hyperledger.besu.ethereum.storage.keyvalue.KeyValueStorageProvider.createVariablesStorage(KeyValueStorageProvider.java:66)
        at org.hyperledger.besu.controller.BesuControllerBuilder.build(BesuControllerBuilder.java:598)
        at org.hyperledger.besu.controller.TransitionBesuControllerBuilder.build(TransitionBesuControllerBuilder.java:295)
        at org.hyperledger.besu.cli.BesuCommand.buildController(BesuCommand.java:2156)
        at org.hyperledger.besu.cli.BesuCommand.initController(BesuCommand.java:2144)
        at org.hyperledger.besu.cli.BesuCommand.run(BesuCommand.java:1456)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:61)
        at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:33)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1621)
        at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1417)
        at org.hyperledger.besu.Besu.main(Besu.java:39)
Caused by: java.lang.RuntimeException: librocksdbjni-freebsd64.so was not found inside JAR.
        at org.rocksdb.NativeLibraryLoader.loadLibraryFromJarToTemp(NativeLibraryLoader.java:118)
        at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:102)
        at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:82)
        at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:67)
        at org.rocksdb.RocksDB.<clinit>(RocksDB.java:36)
        ... 28 more

I then searched if "rocksdb" could be installed as a dependency of besu, and I installed rocksdb-8.9.1 on the system. The besu executable however still crashes missing that libraries. It seems this specific library is not included or not available on FreeBSD. Would you agree, is there some direction I could investigate or something I should try?


Quick open file search: flickers when typing while open

Looks like a regression from 1.4.

@chrmarti this seems to be caused by your changes in the last PR we merged. Steps to reproduce:

open quick open for file search
start to type until you see "no results"
continue typing and notice each keystroke flickers
same happens when you widen the search by removing characters

My first feeling is this might be related to moving the cache out of process so it takes time to get the results back and as such the UI has a chance to render quickly and we see flicker?

The time to get the results from the cache is similar to before. The main difference is that we no longer do that synchronously, so now the UI can redraw during that time.
What if we let the old results display for a few more 100ms before we remove them and indicate progress?

But the file search could always take some time, at least when widening the search I would expect flicker in previous versions too.

Previously OpenAnythingHandler.getResults() would return a resolved promise with the result if that was available from the cache. With the cache residing in the search process, the returned promise is always pending when returned.
When the returned promise was resolved, the UI would not redraw without results, but directly show the new results.
In 1.4.0 a widening search flickers only if it can't be served from the cache. For that you need to be quick in typing a few characters for the first search and then backspace one by one to see the flicker.

Right. As it works now I do not have a good idea how to improve the situation. I think quick open handlers need more control over the underlying model and tree in order to implement the logic we want. Currently the model is so disconnected that introducing a delay before updating the tree would cause issues for all other handlers of quick open.

I can investigate for a fix for August that quick open can be configured to have a certain delay before updating the UI.

That would be great. I was wondering if maybe getResults() could return either TPromise or an object holding the promise and additionally a flag to indicate that the UI should not update immediately. That would be non-breaking for existing handlers.

Still bad.


Godot 4 port

This is a start of a port to Godot 4. It makes the changes to port the
main application to Godot 4. Some notes:

Disables GIF export for now. This will require porting the stuff under  addons/gdgifexporter.

The color selector is a lot larger in Godot 4. I haven't found a nice solution for this.

The background stars particle system isn't correct. (i think this is fixed now)

I've made you a pull request (GIF, web support, Godot 4.1) vmedea, for information.


Increment version for privatedns releases

Increment package version after release of Azure.ResourceManager.PrivateDns

API change check
API changes are not detected in this pull request.

/check-enforcer override


APIM 2.6.0 vagrant setup doesn't start up on macOS Mojave 10.14.6 with Vagrant 2.2.5

Description:
APIM 2.6.0 vagrant setup doesn't start up on macOS Mojave 10.14.6 with Vagrant 2.2.5
Steps to reproduce:
Install vagrant through brew,
$ brew cask install vagrant
==> Satisfying dependencies
==> Downloading https://releases.hashicorp.com/vagrant/2.2.5/vagrant_2.2.5_x86_64.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'vagrant'.
==> Installing Cask vagrant
==> Running installer for vagrant; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Password:
installer: Package name is Vagrant
installer: Upgrading at base path /
installer: The upgrade was successful.
🍺  vagrant was successfully installed!

Create a vagrant box,
$ vagrant init wso2/wso2am --box-version 2.6.0
A `Vagrantfile` has been placed in this directory.  Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

Start IS vagrant box,
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'wso2/wso2am' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: 2.6.0
==> default: Loading metadata for box 'wso2/wso2am'
    default: URL: https://vagrantcloud.com/wso2/wso2am
==> default: Adding box 'wso2/wso2am' (v2.6.0) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/wso2/boxes/wso2am/versions/2.6.0/providers/virtualbox.box
    default: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
==> default: Successfully added box 'wso2/wso2am' (v2.6.0) for 'virtualbox'!
==> default: Importing base box 'wso2/wso2am'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'wso2/wso2am' version '2.6.0' is up to date...
==> default: Setting the name of the VM: vagrant_default_1566852030657_71896
Vagrant is currently configured to create VirtualBox synced folders with
the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
guest is not trusted, you may want to disable this option. For more
information on this option, please refer to the VirtualBox manual:

  https://www.virtualbox.org/manual/ch04.html#sharedfolders

This option can be disabled globally with an environment variable:

  VAGRANT_DISABLE_VBOXSYMLINKCREATE=1

or on a per folder basis within the Vagrantfile:

  config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "477aa00c-ecf4-494b-a508-7da474a63998", "--type", "headless"]

Stderr: VBoxManage: error: RawFile#0 failed to create the raw output file /home/vimukthi/Desktop/git-repo/vagrant-boxes/vagrant-boxes/ubuntu-bionic-18.04-cloudimg-console.log (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

The box hosted in public Vagrant cloud should run with the Vagrantfile in this repository. Therefore this error should not come. But when those boxes were built, that is using https://github.com/wso2/vagrant-boxes, it might not have been fixed at the time. I will transfer the issue to the relevant repo. We can update the box if the issue still exists.


Github Pages not working

Hey contributors! This is a good first issue. Or if you're tired making advanced commits, here's an easy issue to give you solace.
The Github Pages is active but not working
If you're able to host from your side, just make a pr to the read.me and append the link of the site on the read.me

Hey @KaizenGirl1111 assign me

@gurjeetsinghvirdee you may start working on it
Sorry had some tests going on, so responded late


Improve visual settings of output panels

I found some further settings to improve the look and feel of the output panel yesterday, which I forgot to push to the recently merged branch. So here it is as another PR

formatting line:column to ensure the colons being aligned
(hopefully) provide enough space for each column so the tab_size can be reduced to 4 which makes the output look more compact
added a bunch of settings to ensure to make the output panel look nicer for everyone removing unnecessary stuff
removed the base_dir setting as it not used anywhere and would possibly not make sense to as it is created once but might change during lifetime of the panel, if the open project is changed on the fly.

I like the attention to detail!. Wish we could extract all the settings to a file and apply that on one line.
The result_base_dir is used by ST itself to look up where the relative file_with_errors.py lives on disk. See: http://docs.sublimetext.info/en/stable/reference/settings.html
We should keep it :)
Was this tested against the recently merged syntax changes ?

Wish we could extract all the settings to a file and apply that on one line.

Already thought about creating a dict object which is then applied in a loop. Most settings are ok to be hard coded but maybe a LSP Widget.sublime-settings or LSP Output.sublime file could hold that defaults and may be customized by user. Not that bad.

The result_base_dir is used by ST itself ...

This answers my question how file navigation works from the output panel. I just experienced some issues with paths containing whitespace. Those settings would fix it.
Thanks for the good link. Didn't know about it. Good stuff.
Will check that out.
Btw.: Did you consider splitting main.py into seperate modules?

Looks like that. But you may be right, the result_line_regex may fail, if the line number is 8 or more characters in length. 10.000.000 lines - ST dies before this happens 😈. A leading tab causes too much indention - will add one space for security.

Thanks for the screenshot, I'll merge both your PRs now in case they had a dependency on one another.


Need accelerate to use CUDA (even though accelerate is installed)

Describe the issue as clearly as possible:
Cannot set device due to missing accelerate error even though accelerate is installed
Steps/code to reproduce the bug:
https://colab.research.google.com/drive/1fxUkcPXJXFVUeOomz_LKPC9CkfGQ1o4g?usp=sharing

Expected result:
shouldnt complain about accelerate dependency and should proceed to use GPU for inference.

Error message:
No response
Outlines/Python version information:
Version information

```
(command output here)
```

Context for the issue:
No response

This appears to be an issue involving using accelerate with Colab. Could you try this solution and report back whether it works? https://stackoverflow.com/a/76902764

Please re-open this issue if the reproduction steps don't work and you determine that the issue is with Outlines specifically.


Python scripts can't access global site package dir

Issue description
I recognize that this is by design, however I have to install a python script from inside a regular build, and I can't seem to manage to install it.
Exact error:
installing lammps.py in Python site-packages dir
running install
running build
running build_py
creating build
creating build/lib
copying lammps.py -> build/lib
running install_lib
copying build/lib/lammps.py -> /nix/store/pjxvh01jhjm9m62lwm5vbnn0ml5xd35s-python-2.7.14/lib/python2.7/site-packages
Installation into global site-packages dir failed.
Trying user site dir /homeless-shelter/.local/lib/python2.7/site-packages now.
running install
Installation into user site package dir failed.
Go to ../python and install manually.
'lmp_mpi' -> '/nix/store/gz9shiwih1jzm0fbp10isn7m885rd4n7-lammps-2017-10-23/bin/lammps'
'liblammps.so' -> '/nix/store/gz9shiwih1jzm0fbp10isn7m885rd4n7-lammps-2017-10-23/lib/liblammps.so'
'liblammps_mpi.so' -> '/nix/store/gz9shiwih1jzm0fbp10isn7m885rd4n7-lammps-2017-10-23/lib/liblammps_mpi.so'

Steps to reproduce
Try using the attached lammps build script.
default.txt
Technical details
 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.3-1-zen, Arch Linux, noversion`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 1.11.16`
 - channels(haozeke): `"nixpkgs-18.03pre122585.b212125b541"`
 - nixpkgs: `/home/haozeke/.nix-defexpr/channels/nixpkgs`

Whatever this install script is doing needs to be patched. I suggest you take this question to either the mailing list or maybe Stack Overflow as its not a Nixpkgs issue.


asApi is deprecated, 'react-query' isn't latest version

Noticed that the asApi function from @zodios/core is gone as of v10 of @zodios/core.
The example in the README still calls asApi.
Also, the 'react-query' import is v3, should update to<EMAIL_ADDRESS>Could even update to<EMAIL_ADDRESS>https://github.com/TanStack/query/discussions/4252#discussioncomment-5641490

Looks like this repo is outdated because v11 is a monorepo: https://github.com/ecyrbe/zodios/pull/237

Here's example from v11: https://github.com/ecyrbe/zodios/blob/feature/v11/packages/react/examples/react.tsx

Here's example from v11: https://github.com/ecyrbe/zodios/blob/feature/v11/packages/react/examples/react.tsx
If the link becomes broken, v11 is probably been merged, check master

If using astahmer/openapi-zod-client, it generates a client using makeApi instead of asApi. The react example code is therefore not relevant to me, since I am using astahmer/openapi-zod-client.


fix auth for job runs to be constant time

Summary:
Fixes timeout issue associated with multi calls to job runs
JIRA issues:  COPS-5143

Fixes timeout issue associated with multi calls to job runs

I tested this manually and it did not fix the issue in Metronome 0.4
The problem does not occur on Metronome master with 1500 JobRuns, so I couldn't confirm the change has any implication wrt COPS-5143
(It does lool like a reasonable improvement though!)


Read-only mode

My team would like to run admin-ui with read permissions only, since we rarely use it for writes and would like to scale back the permissions we give to the application. Can we just drop the client authorities from cloud_controller.admin to cloud_controller.global_auditor and omit database credentials? It would also be useful to have a read-only mode for the application that drops UI around writes.
cc @wjwoodson @brittag

@jmcarp If you only give your admin ui users your selection for uaa_groups_user (see the readme), those users won't be able to exercise any actions.

@jmcarp Also realize that UAA-related actions are not controlled by cloud_controller.admin, but specific UAA permissions.

Right, so we'll drop uaa authorities related to writes for cloud controller and uaa, and drop database credentials entirely. Does that sound right?

@jmcarp If you drop database credentials, then the admin ui won't be able to retrieve CCDB or UAADB records. The admin ui does not use the CC API to retrieve information (or at least not much information), but only for non-read operations.
I was not suggesting changing the admin_ui_client, but instead only giving users the non-admin capability when using the admin ui. See the readme and contrast uaa_groups_admin and uaa_groups_user.

The admin ui does not use the CC API to retrieve information (or at least not much information), but only for non-read operations.

Do you mean "does not use the CC DB"?
Anyway, we're looking to drop the permissions of the uaa client so that a vulnerability in the admin-ui application code or credential leak wouldn't have as much impact. I understand that we can just hand out admin_ui.read permission to our users, but we're looking to go farther than that and prevent admin-ui from doing writes at all.

@jmcarp For reading Cloud Controller data, the Admin UI goes direct to the CCDB. For write-type operations, the Admin UI uses the Cloud Controller REST API. UAA is similar. UAA reads are directed to the UAADB and writes are directed to the UAA REST API. Then you separately have reads from doppler and nats.
I suggest keeping dopper.firehose (for reading info on application instances and components stats) and openid and adding cloud_controller.global_auditor and remove the rest and see how well you fare. All of the other authorities are really for write access.


chore: release main

:robot: I have created a release beep boop
dev-dependencies-client: 1.2.1
1.2.1 (2023-11-13)
Bug Fixes

bump to latest common (03c40f9)

dev-dependencies-server: 1.2.1
1.2.1 (2023-11-13)
Bug Fixes

bump to latest common (03c40f9)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/aversini/dev-dependencies/releases/tag/dev-dependencies-client-v1.2.1 :sunflower:

:robot: Release is at https://github.com/aversini/dev-dependencies/releases/tag/dev-dependencies-server-v1.2.1 :sunflower:


Move most of the tarball build into MSBuild

Modify build-source-tarball.sh as an entry point into the build. Trim some now-unused code (now shared with rest of the build) and pass info into build.sh.
Refactor Darc acquisition as a project, using this pattern for MSBuild concurrency handling. This also means it won't happen twice in one MSBuild call, but will happen if it hasn't already.

For https://github.com/dotnet/source-build/issues/1566, "some info is set up in the build scripts rather than in MSBuild logic."

Bootstrap smoke-test error is known issue: https://github.com/dotnet/source-build/issues/1553
Bootstrap tarball copy warning (bin doesn't exist) was introduced by https://github.com/dotnet/source-build/pull/1573 but didn't notice it until now. Filed https://github.com/dotnet/source-build/issues/1584 to track.
"Run unit tests" timeouts are known issue: https://github.com/dotnet/source-build/issues/1487

Bootstrap smoke test failure is known issue: https://github.com/dotnet/source-build/issues/1553


upgrade to nacos-client 2.0.4 due to cve

Fixes #3784

Make sure that:

[x] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #3787 (07be32d) into master (128dbd2) will decrease coverage by 0.17%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #3787      +/-   ##
============================================
- Coverage     64.14%   63.97%   -0.18%
+ Complexity     6027     5997      -30
============================================
  Files           898      898
  Lines         24649    24649
  Branches       2232     2230       -2
============================================
- Hits          15812    15769      -43
- Misses         7441     7480      +39
- Partials       1396     1400       +4

Impacted Files
Coverage Δ

...ache/shenyu/plugin/grpc/cache/GrpcClientCache.java
87.50% <0.00%> (-12.50%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
67.85% <0.00%> (-10.72%)
:arrow_down:

.../apache/shenyu/admin/model/dto/BatchCommonDTO.java
50.00% <0.00%> (-7.15%)
:arrow_down:

...apache/shenyu/admin/model/dto/AuthPathWarpDTO.java
57.14% <0.00%> (-7.15%)
:arrow_down:

...org/apache/shenyu/admin/model/dto/AuthPathDTO.java
58.82% <0.00%> (-5.89%)
:arrow_down:

...rg/apache/shenyu/plugin/rewrite/RewritePlugin.java
66.66% <0.00%> (-5.56%)
:arrow_down:

...che/shenyu/admin/model/vo/DashboardUserEditVO.java
60.86% <0.00%> (-4.35%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
54.25% <0.00%> (-4.26%)
:arrow_down:

...in/response/strategy/NettyClientMessageWriter.java
66.66% <0.00%> (-4.17%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
85.71% <0.00%> (-4.09%)
:arrow_down:

... and 25 more

Help us with your feedback. Take ten seconds to tell us how you rate us.


Partition the final merge + shuffle

got a new idea while talking to https://chat.openai.com/
why not partition the data (for example by taking modulo over uid) over N parts, dedup these parts first. That would limit disk requirement
for random shuffling of the final set, same idea but instead of partitioning by uid, partition by randomId, hence doing 2 uniform shuffling.
Then the final dataset is N parts.
Implementing this would

reduce the cost of the shuffling as we cap the max amount needed to shuffle, independently of input collection
cap the amount of local space required, independently of input collection
for both dedup and random shuffle

to do this in a more efficient way, it would be ideal to pregenerate the random id in the first map
then code will look like this:
def sort_by_part(number_parts, input_paths, output_path, id_col, output_partition_by_part, mode):
  dfs = [spark.read.parquet(input_path) for input_path in input_paths]
  output_paths = []
  for i in range(number_parts):
     union_df = None
     for df in dfs:
       part_df = df.filter(col(id_col) % number_parts == i)
       union_df = part_df if union_df is None else part_df.union(part_df)
    if mode == "dedup":
      shuffled_df = union_df.drop_duplicates("uid")
    else if mode == "sort":
      shuffled_df = union_df.sort("randomId")
    else:
      raise ValueError("non supported mode "+mode)
    part_output_path  = output_path +"/path_"+str(i)
    output_paths.append(part_output_path)
    shuffled_df = shuffled_df.repartition(output_partition_by_part)
    shuffled_df.write.parquet(part_output_path)

  return output_paths

only one problem to solve:

need to make it so the id is an int to take the modulo / convert it to int
best way to generate a random id (uuid ?)

seems like spark doesn't clean up very well between multiple stages so would need to do it explictely somehow

org.apache.spark.shuffle.FetchFailedException

actually it cleans up, just need to do parts small enough.
50TB if doing in 200 parts

22min per part with 1280 cores -> 73h
will need above strategies, but seems using parts allow to fully cap space requirements

Partition by modulo of uid in each part
Then read one part of each folder and dedup, generate random number between 0 and N and write partition by
Read one part of each part and shuffle this part
Final output is N folders with parquet files
Everything dedup and shuffled
2 additional read/write

https://stackoverflow.com/a/38503794

so either:

hash the hash : issue 64bit so some collision, benefit no need to use an udf
use an udf to compute the modulo in python which supports 128bit number

let's try to compute on a few parts and save with partition by to understand the speed of method 2

filter is fairly fast, maybe not materializing is possible

partitioning by modulo of hash is quite slow, all ways
remaining ideas:

bloom filter
don't dedup fully
use more nodes so it fits on disk / ram

ah maybe 10 would be ok
do:

compute modulo
cache
loop to filter and save
takes 5min per partition (of 200) -> 16h
then do 10 dedup of 20B

not amazing...

actually this is not truly needed, and it's very slow, let's not do it.
Might re-explore in the future if this becomes useful


added period at end of 1st bullet

added period at end of first bullet

[x ] I have read freeCodeCamp's contribution guidelines.
[x ] My pull request has a descriptive title (not a vague title like Update index.md)
[x ] My pull request targets the master branch of freeCodeCamp.
[ x] None of my changes are plagiarized from another source without proper attribution.
[x ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for opening this pull request.
This is a standard message notifying you that we’ve reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Thank you and happy coding.


Use slash rather than hash in IRIs

When I submitted #105 I forgot to include mention of the choice of separator, so I'm opening a new issue to address that. The main reason to use slash versus hash IRIs is that the former allows single term access and display. Since the URI fragment is not included in the IRI that is accessed when following a link, requesting a single hash IRI results in retrieval of the whole ontology.

@alanruttenberg All CCO IRIs should be in the form:
http://www.ontologyrepository.com/CommonCoreOntologies/TERM_ID
Where are you seeing hashes? Are you looking at the default or base prefixed namespaces in the .ttl files? These sometimes get autogenerated during updates, often from the ontology IRI. All CCO files explicitly declare the "cco:" prefix for the correct namespace.

Closing this issue now that it is clear that CCO uses slashes.


system/core/Config.php 3.0 There is an error in line 89

// Set the base_url automatically if none was provided
if ($this->config['base_url'] == '')
{
if (isset($_SERVER['HTTP_HOST']))
{
$base_url = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https' : 'http';
$base_url .= '://'. $_SERVER['HTTP_HOST'];
$base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
}
		else
		{
			$base_url = 'http://localhost/';
		}

		$this->set_item('base_url', $base_url);
	}

Need to change the previous code, or an error occurs, it can not determine the IP address, because there are many virtual hosts an IP next

This code has never existed in 3.0.x and I don't understand what you're trying to say anyway.

branch 3.0-stable system/core/Config.php is error.
Analyzing IP is wrong, because there are a lot of virtual machines. You can test under local tie the domain name, as bash_url () will become <IP_ADDRESS>, resulting in a reference to CSS and JS failure.
The need to replace the following code into a branch of the 2.2-stable or dev.
if (empty($this->config['base_url']))
{
if (isset($_SERVER['SERVER_ADDR']))
{
$base_url = (is_https() ? 'https' : 'http').'://'.$_SERVER['SERVER_ADDR']
.substr($_SERVER['SCRIPT_NAME'], 0, strpos($_SERVER['SCRIPT_NAME'], basename($_SERVER['SCRIPT_FILENAME'])));
}
else
{
$base_url = 'http://localhost/';
}
$this->set_item('base_url', $base_url);
}

Everything is wrong, depending on the use case. The IP address is the only safe option and won't be changed.
Read the upgrade instructions and properly configure 'base_url'.


How to start using spyder-vim?

Hi Guys,
I've installed spyder-vim. Expected it to work like a vim in the editor. But it still behaves like normal.
I've searched through all the documentations, but did not find any clue to "start" using it. Is there any start command that I've missed?
Thanks.

Also I've installed running python setup.py install, and when I esc on the editor nothing happens.

Sorry, this plugin is not ready yet to be used. We'll try to come back to it before the end of the year.

Seems like a note stating that should be somewhere more prominent. Would have saved me a bunch of trouble trying to get it working...

@CAM-Gerlach, please don't forget to help me with when you're fixing the Readme of this repo.

Yes indeed, I was actually working on the Spyder-Vim readme as we speak, and that's the main reason for including the funding status section in the readme as discussed in spyder-ide/spyder-terminal#143, The heading of the section is Plugin development paused until Spyder 4 release and the first lines discusses the development freeze and the planed Spyder 4 release window. I'll note it fixes this issue in the forthcoming PR.

Thanks @CAM-Gerlach!

@MaxGyver83 were you ever able to get this working? There doesn't seem to be any recent active development, but there's definitely been some changes since you posted.

@mochsner : No, I wasn't. I switched to VSCodium + vscode-neovim. But currently, I just use vim for writing Python code.

@ok97465, after installing this plugin and restarting Spyder, users shouldn't need to do anything else to use it, right?

@ok97465, after installing this plugin and restarting Spyder, users shouldn't need to do anything else to use it, right?

Yes, that's right.

Thanks @ok97465. I pushed PR #82 with a small Usage section to the Readme to address this issue.


brew info passes argument as lowercase

[√] are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh
[√ ran a brew command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
[√] ran brew update and can still reproduce the problem?
[√] ran brew doctor, fixed all issues and can still reproduce the problem?
[√] ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)
brew info Caskroom/cask/dbeaver-community
Trying to see if new version of a cask is out.
What happened (include command output)
The argument of Caskroom/cask/dbeaver-community was changed to lowercase on execution causing the command to error.
It suggests a cask of the same name and capitalization which just seems odd to a user.

Command output
brew info Caskroom/cask/dbeaver-community
Error: No available formula with the name "caskroom/cask/dbeaver-community"
Found a cask named "Caskroom/cask/dbeaver-community" instead.

brew doctor output
brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: The following directories do not exist:
/usr/local/sbin
You should create these directories and change their ownership to your account.
sudo mkdir -p /usr/local/sbin
sudo chown -R $(whoami) /usr/local/sbin
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libtcl8.6.dylib
/usr/local/lib/libtk8.6.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/fakemysql.h
/usr/local/include/fakepq.h
/usr/local/include/fakesql.h
/usr/local/include/itcl.h
/usr/local/include/itcl2TclOO.h
/usr/local/include/itclDecls.h
/usr/local/include/itclInt.h
/usr/local/include/itclIntDecls.h
/usr/local/include/itclMigrate2TclCore.h
/usr/local/include/itclTclIntStubsFcn.h
/usr/local/include/mysqlStubs.h
/usr/local/include/odbcStubs.h
/usr/local/include/pqStubs.h
/usr/local/include/tcl.h
/usr/local/include/tclDecls.h
/usr/local/include/tclOO.h
/usr/local/include/tclOODecls.h
/usr/local/include/tclPlatDecls.h
/usr/local/include/tclThread.h
/usr/local/include/tclTomMath.h
/usr/local/include/tclTomMathDecls.h
/usr/local/include/tdbc.h
/usr/local/include/tdbcDecls.h
/usr/local/include/tdbcInt.h
/usr/local/include/tk.h
/usr/local/include/tkDecls.h
/usr/local/include/tkPlatDecls.h
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/tcl.pc
/usr/local/lib/pkgconfig/tk.pc
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libtclstub8.6.a
/usr/local/lib/libtkstub8.6.a
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run brew link on these:
nano
r

brew config output
brew config
HOMEBREW_VERSION: 2.1.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: 3dab11263c7d3ae568bd585932b393ef526fc5b2
Last commit: 7 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 91efd0ce3f57f0eb48b20f7a029ea6014e0ee21b
Core tap last commit: 5 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: octa-core 64-bit kabylake
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 11.0 build 1100
Git: 2.21.0 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_171
macOS: 10.14.6-x86_64
CLT: <IP_ADDRESS>.1.1559496560
Xcode: N/A
CLT headers: <IP_ADDRESS>.1.1559496560

What you expected to happen
To execute the command with no error or suggestion.
Step-by-step reproduction instructions (by running brew commands)
run command: brew info Caskroom/cask/dbeaver-community

The reason you're getting the error is because you're using brew info on a cask instead of brew cask info. See #5456.
If you use brew cask info dbeaver-community brew should output the same information without the error message.


[wip] Fix cuDNN test

I found an error in tests of activation functions which appear when v1.22.0 is merged.

Does it really caused by the merge of v1.22.0 to _v2? I do not think so as the PR (#2421) that does it is not merged yet.

I found that v1.22.0 is merged into cupy already. That is why v2 is now unstable. Please check #2421 and i'll close this pr.

BTW, chainer test needs not depend on internal implementation of cupy.


WSO2 APIM-3.1.0: APIs are not lined properly when the UI is minimized

Description:
The APIs were not properly aligned and there were some alignment issues in the API thumbnail as well when the publisher UI is minimized. I was able to reproduce this issue using wso2am-3.1.0 pack and we tested this in chrome version 83.0.4103.116.
Steps to reproduce:

Create at least 5 APIs in the publisher portal
Go to API list view
Minimize the UI

Affected Product Version:
wso2am-3.1.0

This issue is fixed in the latest build.


release version 1.60 with login fixes

This should handle the recent login flow issues as well as recent improvements to categories and such :)
The main reason for the PR is to double check releasing them is good and that I'm not missing anything!

@mrooney I think because this one has a lot of sign in improvements, it'd make sense to also include #366 .

@mrooney I think because this one has a lot of sign in improvements, it'd make sense to also include #366 .

Sure thing, it does now, updated!