Optional dependency shouldn't treat its own dependencies as optional

Hi Maksim!
Consider a class with an optional dependency:
public class Computer
{
  [Import(AllowDefault = true)]
  private IHardDrive HardDrive { get; set; } // a computer can work without a hard drive
}

If IHardDrive is registered in the container, it's imported, otherwise the import is ignored. So far so good.
Now, consider an implementation of IHardDrive that itself has a required dependency:
public class SamsungHardDrive : IHardDrive
{
  [Import]
  private ILogicBoard LogicBoard { get; set; } // a hard drive cannot work without a logic board
}

If ILogicBoard is registered in the container, both IHardDrive and ILogicBoard should be imported.
If ILogicBoard is not registered, IHardDrive shouldn't be imported.
But it turns out that in the latter case IHardDrive is imported and its ILogicBoard is not set.
The container produces a computer with a broken hard drive that's missing a logic board.
Accessing the hard drive throws a null reference exception.
Perhaps I'm missing some container settings?
Let me create a unit test demonstrating this issue.

@yallie Hi here, it supposed to work, so I will look. Thanks as usual for posting with the PR.

Thanks a lot Maksim! That's awesome! 🚀

Looks like it's still broken 🤔
If optional dependency it lazy, it's still resolved even if it's missing its own dependencies...

@yallie Before doing anything on the last case of Lazy dependency with a send dependency.
I am questioning if I need to check this in principle because it should stay lazy, right?
If I try to follow the dependencies I need to potentially materialize the Types, load things, prevent caching and singleton creation...
So I can try to do some if this, by setting the special flag in Request and checking it on each nested level, but it is a comlex rask and probably there will be holes.
What do you think?

I am questioning if I need to check this in principle, because it should stay lazy, right?
If I try to follow the dependencies I need to potentially materialize the Types, load things, prevent caching and singleton creation...

That's an interesting question...
It used to work in DryIoc v2, but I didn't know if it instantiated singletons, etc.
Perhaps it should throw when accessing Lazy.Value property?

Everything works great! 👍
Thanks a lot Maksim!

@yallie I have released DI v4.8.7 and DI.MEF v6.2.0 which point the latest DI.

Thanks a lot!

Thanks to you @yallie for the interesting issues and the PRs.


Is it possible to support verification of client certificates?

if add a new param to control whether check $ssl_client_verify, would be helpful authentication,
such as
proxy_connect_ssl_client_verify on/off;   [default off]
if proxy_connect_ssl_client_verify on then check ssl_client_verify for each request, if failed, return 400, if successed, authenticated!
I think this function would be very helpful, thanks for considering.

Note that proxy_connect module does not parse the proxied tcp stream after CONNECT request.
Although it can be doable for ssl-client-verify if we think the proxied tcp stream is SSL protocol, but implementation is not easy. Current imeplementation is just proxing the raw stream, if we do ssl-client-veirfy, the proxy core should do much SSL working.
I think a good way is that upstream peer does ssl-client-verify. It is real consumer of the raw stream.

May be I have some misunderstanding....
For my consideration, ssl-client-verify happens on the TLS layer, before CONNECT method be procedured.
In my mind, CONNECT module only need to see the result of $ssl-client-verify, no much code work should be done.
I could describe one situation, which required this function
I have a nginx server, I could set
    ssl_verify_client 		optional;

IMPORTANT, ssl_verify_client is a configure item, $ssl-client-verify is a variable, which indicates whether cert verify be succeed.
In the connect module, I could check $ssl_client_verify, if equal to 'SUCCESS', I process the connect method, otherwise, return 400
In the location /.well_known/ no $ssl_client_verify check required, as .acme.sh could use this path to renew my certificate
In the Location /, $ssl_client_verify is required, if 'SUCCESS', proxy_pass works, otherwise, return 404;

Will check it later, please wait:)

Will check it later, please wait:)

Happy to wait

Hi, you can check $ssl_client_verify in lua-nginx-module.
proxy_connect module can support lua-nginx-module:

In the location /.well_known/ no $ssl_client_verify check required, as .acme.sh could use this path to renew my certificate
In the Location /, $ssl_client_verify is required, if 'SUCCESS', proxy_pass works, otherwise, return 404;

Do you want proxy_connect module to check different location?
Proxy_connect module cannot get location (proxied request URI) info from raw tcp stream.

In the location /.well_known/ no $ssl_client_verify check required, as .acme.sh could use this path to renew my certificate
In the Location /, $ssl_client_verify is required, if 'SUCCESS', proxy_pass works, otherwise, return 404;

Do you want proxy_connect module to check different location?
Proxy_connect module cannot get location (proxied request URI) info from raw tcp stream.

I don't think connect module support location is a good idea, this function may made connect module more flexible but too heavy.
I think authentication support might be a useful enhancement, as authentication is quite common function.
Support $ssl_client_verify by lua may be a solution.
In my mind(neither right nor wrong), lua solution might be good, but authentication might be more common requirement, haha.
Anyway, wait your decision, if you decide to support, I wait. If not, I will try lua support:)

BTW, rewrite module still can work. For example configuration, it maybe:
if ($ssl_client_verify = "..." ) {
  return 400;
}

$request_method =

just let you know

It seems that, CONNECT method has no location, if I am wrong, let me know
Outside location, you can not specify verification for CONNECT method
As a result, we can handle GET/POST with authentication process, but CONNECT, not.

Related configuration pasted here, I think you could understand :P
ssl_verify_client 		on;
#ssl_verify_client		optional;
server {
    	listen 443 ssl;
	proxy_connect;
	proxy_connect_allow all;
	proxy_connect_connect_timeout  10s;
	proxy_connect_read_timeout     10s;
	proxy_connect_send_timeout     10s;
	if ($ssl_client_verify != "SUCCESS")
		{
	#		if ($request_method = CONNECT)	{return 400;}
		}
	location / {
		#if ($ssl_client_verify != "SUCCESS") {return 404;}
		proxy_pass http://$host;
		proxy_set_header Host $host;
	}
    }

Try this configuration:
        set $ssl_client_verify_connect "$request_method $ssl_client_verify";
        if ($ssl_client_verify_connect ~ "CONNECT FAILED") { return 401; }

Funny solution, Finally configuration is
	set $ssl_client_verify_connect "$request_method $ssl_client_verify";
	if ($ssl_client_verify_connect ~ "CONNECT FAILED") { return 401; }
	if ($ssl_client_verify_connect ~ "CONNECT NONE") { return 401; }

In the connect module, I could check $ssl_client_verify, if equal to 'SUCCESS', I process the connect method, otherwise, return 400

I think this function is better to be implemented in nginx SSL core logic, should not be implemented in any 3rd module. But using $ssl_client_verify is a more flexible way to control client verification.
I found that most nginx user uses $ssl_client_verify to do client verification. For example, https://serverfault.com/questions/327002/how-to-use-ssl-verify-client-on-on-one-virtual-server-and-ssl-verify-client-off.

That's ok, I have seen the same topic before.
My configuration works properly, Thanks for the help, haha
I think I could close this issue.


Complete revise

Main achievements

The callback which is called when the dialog becomes ready receives a dictionary of (name, html element)-pairs for all HTML form elements. This way the calling code can add event listeners to theses elements without using CSS selectors.
The callbacks which are called when the dialog is closed or cancelled receive a dictionary of (name, values)-pairs for HTML input, select and textarea elements with proper converted types, i.e. checkboxes return proper booleans, number fields numbers, etc.
Support for textareas added

Minor achievements

Added a lot of jsDoc type annotation
No repeated, unnecessary and inefficient CSS selectors anymore; HTML elements which have once been queried for are cached

Problems
I was not able to build the project. When I run npm install to install the necessary dependencies, npm install breaks with
../src/create_string.cpp:17:37: Error: no matching function signature for calling v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>&)«

while some tool named gyp tries to build the package sass/node-sass. Probably, the dependencies are completely ancient and not compatible with modern Node.js. I have not yet looked into updating the dependencies. If someone finds the time for that, this would be awesome.

Btw Modal will be nuked once Livewire front-end is done :)

Yes, originally I didn't remember you demand for textareas, but I was annoyed by two problems in the frontend:
a) the action handler received result data which was unusable in most of the cases, in particular for checkboxes, because the values of checkboxes were reported wrongly;
b) we had to hack into the method show to install some additional event handlers on input elements the allow correct interactions of input elements (setPublic in the frontend is a prime example for that).
So I decided to see if I can do something about it. Only later I remembered that you needed textareas, too.

That's quite a complete rewrite, also am I wrong or you tried to nuke jQuery deps ? :)
Code LGTM.

Officially, there has never been a dependency on jQuery (see README.md and package dependencies in package.json). I believe the only jQuery selectors were added to the code at some later point.
However, queriing the DOM over and over again for a HTMLNode you already have is not advised. (My IDE also yells at me for that in the frontend code).
Moreover, nowadays with the standardization of the Web APIs jQuery mostly lost its primary purpose. jQuery had its right for existence when each browser had its own proprietary DOM, but these times are gone.

Moreover, nowadays with the standardization of the Web APIs jQuery mostly lost its primary purpose. jQuery had its right for existence when each browser had its own proprietary DOM, but these times are gone.

Syntactic sugar & conciseness ? :)

I would like to leave this PR open until I adopted the Lychee frontend to it. Maybe, this will unveil one or another bug. I see no other chance to test this PR.


Reverse ghi from ipoa

Like Bill Marion's paper, only better

Are these just teasers??

You mean the GTI-DIRINT paper? http://dx.doi.org/10.1016/j.solener.2015.10.024

I emailed two papers to Will H. I will try to implement the gti-dirint, but probably not until q2


DeepL declared bad without explanation

DeepL is by far the most accurate translator. It is even open source iirc. Why is it on "dont use"?

Hi! I can provide information about why DeepL is bad in my opinion. Then, with the provided information, we can discuss in this issue if it is bad or not. Here we go.
From their privacy policy:
1. DeepL states that you should only enter data that you want to be transmitted to their servers:

When using our translation service, please only enter texts that you wish to transfer to our servers.

Specifically it states that:

Please note that according to its Terms and Conditions, you may not use DeepL Translator for the translation of texts containing personal data of any kind.

2. DeepL stores automatically some data from their users:

Regardless of whether you use our paid or free service, your device automatically transmits certain data for technical reasons when you access our website www.deepl.com. The following data that you may send us will be stored:

Date and time of access
Browser type and version
Operating system
URL of the website previously visited
Volume of data transmitted
Requested domain
Search term when using a web browser
Full IP address
Diagnostic information in the event of errors

From their Terms of Service of the Pro version:

3.1.3 DeepL will only access the Content and/or the Processed Content in the event and to the extent required to carry out a diagnosis and to solve technical issues which may eventually compromise the availability of the service. To the extent required for the purposes mentioned above and in derogation from Section 3.1.2 DeepL may, in exceptional cases, automatically store Content and/or Processed Content for a maximum period of 72 hours in case certain error patterns occur during the processing of the translation request. The Content and/or the Processed Content will be stored in an encrypted form for the duration of the debugging process and will be automatically deleted afterwards. The access to the cryptographic keys for the decryption of the Contents and/or of the Processed Contents will only be granted in individual cases in the context of a logged process for selected employees of DeepL who are bound to secrecy and after the access has been approved by the company management. The Contents and/or Processed Contents stored for debugging purposes will not be linked to any individual Customer.


Add DataSources to OpenStackDataPlaneService

Add DataSources to OpenStackDataPlaneService
The DataSource struct is added to OpenStackDataPlaneService as an
additional way to specify ConfigMaps and Secrets.
This allows for specifying additional properties of the ConfigMaps and
Secrets, and for using the optional field on ConfigMapRef and SecretRef.
Deploying the service will no longer fail if the ConfigMap or Secret
doesn't exist when optional is true.
The existing ConfigMaps and Secrets fields are kept with the same
functionality for now for backwards compatibility with CI. Once CI
resources are updated to use OpenStackDataPlaneService.Spec.DataSources,
then these fields may be dropped.
AnsibleVarsFrom is also refactored to use the common DataSource code.
Signed-off-by: James Slagle<EMAIL_ADDRESS>

/test all

/test all

/test all

the service samples need to be updated

i may do that in the followup that drops the backwards compatibility if you don't object. Just to make sure that's still working.


refactoring

refactoring
update phpDoc

Please give a rationale as to why this PR improves the current code.

No problem, if updating the documentation, shorter class calls and removing meaningless variables are not an improvement for this code, you can reject the PR, I do not insist


Added Bossa Nova stack from Clerk's examples

H/t to @marcelscruz for creating this stack! 🎩

Great initiative to put all these stacks together, thank you!

Thank you all for creating all these amazing stacks!


Is there a reliable way of getting the variant ID or product ID (if no variants) through JS?

I developed a little script to add items to the cart via an ajax request. Works perfectly if I supply it the variant ID.
However, I'm having a hard time getting the variant ID through JS. I know Shopify is doing something when options are changed because I see the variant change in the address bar. Is there a way to tap into that to get the current variant ID through JS? Something like a window.variant_id variable or something that gets exposed? Ideally this var should be set as soon as the DOM is done loading, even if an option hasn't been selected yet (essentially the same as liquid's {{ product.selected_or_first_available_variant.id }})

I usually grab it via data-attributes.

console.log($('#variant').data('variant');

Another option is to read it from window location:
window.location.search.split('variant=')[1]

Another way is by getting it from console.log(ShopifyAnalytics.meta.selectedVariantId); (will be empty if variant is out of stock)

@tom-it But I've found in some stores have selectedVariantId value is blank


Where Expression object gets quoted

What steps will reproduce the problem?
I have the following expression in my SearchModel along with few similar (generated) lines:
->andFilterWhere(['ilike', new Expression("first_name || ' ' || middle_name || ' ' || last_name"), $this->name])
What is the expected result?
The expression should be inserted in its raw form.
What do you get instead?
Database Exception – yii\db\Exception

SQLSTATE[42703]: Undefined column: 7 ERROR: column "first_name || ' ' || middle_name || ' ' || last_name" does not exist
LINE 1: SELECT COUNT(*) FROM "user" WHERE "first_name || ' ' || midd...
^
The SQL being executed was: SELECT COUNT(*) FROM "user" WHERE "first_name || ' ' || middle_name || ' ' || last_name" ILIKE '%martin%'

Additional info
The query which threw the error was called by the GridView widget.
After a little debugging I traced back the problem to generating the query in the QueryBuilder.
The condition (where) is built by the buildCondition method.
Since this form is the 3 operand type, this funtion selects the appropriate method to process this condtion.
Finally, the buildLikeCondition gets called which quotes the column if it doesn't contain an opening parenthesis.
This line quotes the expression:
if (strpos($column, '(') === false) {
    $column = $this->db->quoteColumnName($column);
}

I replaced the referenced line with the following:
if (!($column instanceof Expression) && strpos($column, '(') === false) {
    $column = $this->db->quoteColumnName($column);
}

This resolved my issue.
As I noticed other builder methods have this issue as well, for example the buildSimpleCondition

Q
A

Yii version
2.0.12

PHP version
7.1.5

PostgreSQL
9.6.2

Operating system
Ubuntu 16.04

Hi, I've been affected too by this issue. I was wondering when this happened, because of a problematic commit? This issue is rather important for me (and I'm pretty sure for others too), so wouldn't maybe a fix release made?

I don't understand where the issue is. I'm var_dumping variables in the framework classes and every statement is not quoted, but still fails in my case:
Invalid datetime format: 7 ERROR: invalid input syntax for type date: "TO_DATE('11/05/2017', 'DD/MM/YYYY')"
The SQL being executed was: UPDATE "ekmetalleush" SET "hmer_tropopoihshs"=CURRENT_DATE, "hmer_epitopiou_elegxou"='TO_DATE(''11/05/2017'', ''DD/MM/YYYY'')', "id_trexousa_katastash"=33 WHERE "id"=1

The above statement shows the quoted statement for the hmer_epitopiou_elegxou field.

What I noticed is that the double quoting happens if you call twice the save() method in the model. At first time, the Expression works fine, but if for some reason you call a successive save() in the model, you get the error described in this issue. For example:
$model = new Actor();
$model->birthDate = new Expression('TO_DATE(:date, \'DD/MM/YYYY\')', [':date' => '15/05/1990']);
$model->save(); // this works
$model->save(); // exception raised

What database is that?

PostgreSQL 9.x.

I think I have the same issue with mysql
What steps will reproduce the problem?
Yii::$app->db->createCommand()
    ->update(ProposalPage::tableName(), [
        'layout' => new Expression("REPLACE(layout, '[[Yearly savings]]', '[[Yearly Bill Savings]]')]]")
    ], ['like', 'layout', '[[Yearly savings]]'])->rawSql

What is the expected result?
UPDATE proposal_pages
    SET `layout`=REPLACE(layout, '[[Yearly savings]]', '[[Yearly Bill Savings]]')
    WHERE `layout` LIKE '%[[Yearly savings]]%'

What do you get instead?
UPDATE `proposal_pages`
    SET `layout`=REPLACE(layout, '`Yearly savings`', '`Yearly Bill Savings`')
    WHERE `layout` LIKE '%`Yearly savings`%'

Q
A

Yii version
2.0.7

PHP version
7.0.2-1

MySQL version
5.0

Operating system
Debian jessie

Various builders operate differently.
For example yii\db\conditions\LikeConditionBuilder vs yii\db\conditions\InConditionBuilder
I found this Example from an REST-API call the filter built this where-condition:
[
	'AND',
	['LIKE', new Expression("data->>'eppo_code'"), 'AAB']
	['LIKE', new Expression("data->>'type'"), ['GAF', 'PFL', 'GAI']]
]

What is the expected result?
SELECT * FROM "eintrag"
	WHERE (data->>'eppo_code' LIKE '%AAB%')
	AND (data->>'type' IN ('GAF', 'PFL', 'GAI'))

What do you get instead?
SELECT * FROM "eintrag"
	WHERE (data->>'eppo_code' LIKE '%AAB%')
	AND ("data->>'type'" IN ('GAF', 'PFL', 'GAI'))

As mentioned in the original comment, I have to bracket the expression for the IN condition. The LIKE condition also works without
[
	'AND',
	['LIKE', new Expression("data->>'eppo_code'"), 'AAB']
	['LIKE', new Expression("(data->>'type')"), ['GAF', 'PFL', 'GAI']]
]

Result
SELECT * FROM "eintrag"
	WHERE (data->>'eppo_code' LIKE '%AAB%')
	AND ((data->>'type') IN ('GAF', 'PFL', 'GAI'))

Q
A

Yii version
2.0.50

PHP version
8.3.10

PostgreSQL
14.13

Various builders operate differently.
For example yii\db\conditions\LikeConditionBuilder vs yii\db\conditions\InConditionBuilder
I found this Example from an REST-API call the filter built this where-condition:
[
	'AND',
	['LIKE', new Expression("data->>'eppo_code'"), 'AAB']
	['LIKE', new Expression("data->>'type'"), ['GAF', 'PFL', 'GAI']]
]

What is the expected result?
SELECT * FROM "eintrag"
	WHERE (data->>'eppo_code' LIKE '%AAB%')
	AND (data->>'type' IN ('GAF', 'PFL', 'GAI'))

What do you get instead?
SELECT * FROM "eintrag"
	WHERE (data->>'eppo_code' LIKE '%AAB%')
	AND ("data->>'type'" IN ('GAF', 'PFL', 'GAI'))

As mentioned in the original comment, I have to bracket the expression for the IN condition. The LIKE condition also works without
[
	'AND',
	['LIKE', new Expression("data->>'eppo_code'"), 'AAB']
	['LIKE', new Expression("(data->>'type')"), ['GAF', 'PFL', 'GAI']]
]

Result
SELECT * FROM "eintrag"
	WHERE (data->>'eppo_code' LIKE '%AAB%')
	AND ((data->>'type') IN ('GAF', 'PFL', 'GAI'))

Q
A

Yii version
2.0.50

PHP version
8.3.10

PostgreSQL
14.13


MLM head pre-trained weights of character-bert

Hi,
I just found that the input embeddings of character-bert encoder are not tied with the output MLM weights. I would appreciate it if you could also release the pre-trained general-character-bert models with the MLM head pre-trained weights, as our group would like to explore further pre-training using character-bert.
Many Thanks

You can try and use the code from: https://huggingface.co/helboukkouri/character-bert/discussions/1
I'll work on an official integration into the tranformers library when I can :)


Implement scrypt and/or argon2 password hasher and/or increase work factor for blowfish hasher

According to owasp, bcrypt (aka blowfish) is recommended for "legacy systems". Furthermore, their minimum recommended work factor is 10, which is what our blowfish encryptor's default work factor is set at. Basically, out of the box we're providing the bare minimum security for password hashing according to owasp - which is fine for now, but as time goes on we'll want to at the very least bump up that work factor, if not implement a more modern hasher.
Their recommendation is to use argon2id if available, and to use scrypt otherwise.
Having given a decent look around online, I have found the following:
Argon2 and scrypt are both more memory intensive than bcrypt by design, so that attackers require more specialised and expensive equipment to attack them - it makes them more resistant to attacks run on the GPU, which bcrypt is somewhat resistant to, but to a much lesser degree than these algorithms.
Argon2 is reportedly more of a resource hog than scrypt and may not be suitable for sites with high traffic. For this reason I'm leaning more towards scrypt.
This graph from the scrypt paper [PDF] shows a comparison of scrypt vs bcrypt and PBKDF2:

Options

Implement argon2 hasher
Implement bcrypt hasher
Increase work factor for blowfish hasher
Any combination of the above
Leave as is for now

Additional considerations

The password encryption for a given password is stored on the member record - we will likely want to introduce a mechanism that updates the password encryption and re-encrypts the password if the default was changed since the last time a member logged in.
Changing the work factor for the blowfish hasher will effectively invalidate any existing passwords. We may want to introduce a mechanism that notes whether a member has logged in since the change, and uses the old work factor to authenticate them before rolling them over to the new workfactor and rehashing their password.

I remember this coming up a while back, this may be good for some inspiration, particularly with re-hashing passwords: https://github.com/silverstripe/silverstripe-framework/pull/8806. We never actually implemented support for PHP’s native password_hash() function, it looks like that could allow us to make argon2 (and cost for bcrypt) an option that’s configurable


Index signature missing for OAuth.Header (typescript)

Hi,
I am using the output of toHeader in the fetch API and I see the following error:
error TS2322: Type 'Header' is not assignable to type 'Record<string, string> | Headers | string[][] | undefined'.
      Type 'Header' is not assignable to type 'Record<string, string>'.
        Index signature is missing in type 'Header'.

    136             headers: this.client.toHeader(body)

Any thoughts on how to fix it?

This seems to be an odd behavior with Typescript, Data, Header & Authorization interfaces need to be declared as a type instead of an interface. For now you can use headers: this.client.toHeader(body) as Record<string, string> while it's solved at library level.


Extensions not enabled on clean deployment

Steps to reproduce

Deploy postgresql-k8s with enabled extensions

postgresql_config = {
    "plugin_pg_trgm_enable": True,
    "plugin_unaccent_enable": True,
}
ops_test.model.deploy(
    "postgresql-k8s", channel="14/edge", config=postgresql_config, trust=True
)
## Expected behavior
The database ha the specified extensions enabled.

## Actual behavior
Although the charm configuration is fine when running a `juju status`, the extensions have not been enabled.

## Versions

<!-- Run `lsb_release -sd` -->
Operating system: Ubuntu 20.04.6 LTS

<!-- Run `juju version` -->
Juju CLI: 2.9.44-ubuntu-amd64

<!-- Model version from `juju status` -->
Juju agent: 2.9.44

<!-- App revision from `juju status` or (advanced) commit hash -->
Charm revision: 132

<!-- Run `microk8s version` -->
microk8s: None, this is a full k8s distro

## Log output
<!-- Please enable debug logging by running `juju model-config logging-config="<root>=INFO;unit=DEBUG"` (if possible) -->
<!-- Then, run `juju debug-log --replay > log.txt` and upload "log.txt" file here -->
Juju debug log: Not relevant

<!-- (Optional) Copy the logs that are relevant to the bug & paste inside triple backticks below -->

## Additional context
<!-- (Optional) Add any additional information here -->

Look like extensions behaviour is confusing and doesn't give an indication of when the changes are applied. We'll add a unit status update, to improve visibility.

Should be solved in latest edge (rev. 159)

Looks like we still need to do more checks here.

Investigating further, it looks to me that postgresql work as intended and the new failures happen due to some kind of race in the redis relation. Testing on a forked repo, tests (bar the SAML test) succeed consistently. Leaving this issue open until @arturo-seijas has a chance to confirm.

I've been able to confirm it @dragomirp , and it seems like it might be related to the Indico charm itself.
I'm closing the ticket.
Thank you very much :)


Code of Cross View Fusion

Hello. Thanks for your work.
I saw that the comparison between your algorithm and the one in "Cross View Fusion for 3D Human Pose Estimation". However, the official implementation of it doesn't contain the training code. Will your release this part?

I have no plan yet.


Language server failure: go (failed to install gopls)

Before you begin
Check the backlog of issues to reduce the chances of creating duplicates; if an issue already exists, place a +1 (👍) on it.
Describe the bug
When opening a Golang file, I encounter the following error.
Language server error: Go

failed to install gopls. Is go installed?

To reproduce

Use asdf-vm to install Go
Ensure it is correctly setup
Attempt to open a Golang file
See error reported

Expected behavior

Go file opens and gopls can be installed (or use the existing one on my $PATH

Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Zed 0.45.0 – /Applications/Zed.app
macOS 12.4
architecture x86_64
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/jacob/Library/Caches/go-build"
GOENV="/Users/jacob/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/jacob/.asdf/installs/golang/1.17.9/packages/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/jacob/.asdf/installs/golang/1.17.9/packages"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/jacob/.asdf/installs/golang/1.17.9/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/jacob/.asdf/installs/golang/1.17.9/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.17.9"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/jacob/go/src/github.com/cloudflare/cloudflare-go/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/36/zlscnhfn27n1yxx52cr1kdmr0000gp/T/go-build632993627=/tmp/go-build -gno-record-gcc-switches -fno-common"

$ which go gopls
/Users/jacob/.asdf/shims/go
/Users/jacob/.asdf/shims/gopls

Is there a way I can manually work around this in the meantime? Either by downloading the language server manually or forcing it in? Docs state Go isn't yet supported but the invite email said it was so unsure if this is still in progress.

running those two manually then opening zed . works
$ GO111MODULE=on GOBIN=~/.zed/gopls/gobin go install golang.org/x/tools/gopls@latest
go: downloading golang.org/x/tools/gopls v0.9.0
go: downloading golang.org/x/tools v0.1.11
go: downloading golang.org/x/tools v0.1.12-0.20220630195555-6178576f8ba1
go: downloading honnef.co/go/tools v0.3.2

$ mv ~/.zed/gopls/gobin/gopls ~/.zed/gopls/gopls_0.9.0
$ zed .

another tidbit to include here is that my env has GOPROXY unset for this directory, however, when firing up zed, it thinks the value is GOPROXY=off (which is my global). is this inheriting the env from somewhere globally as opposed to locally? that would explain why asdf-vm wasn't working too.

running those two manually then opening zed . works

Interesting, thanks for the update!

is this inheriting the env from somewhere globally as opposed to locally?

Actually yes; I was incorrect in my earlier comment. We currently always just load environment variables from your default login shell, as opposed to capturing the environment variables from the zed CLI process.
So in this case, do you think GOPROXY being set to off was the reason for the installation failure?

if i'm following correctly, i think the GOPROXY=off is a symptom of the larger issue of not loading the correct environment when calling zed .. due to the environment not loading correctly, go and gopls weren't detected (even though both were installed via asdf-vm) and subsequently, the environment variables were incorrect.

I see, so go would not be on your PATH without detecting the environment from the shell that called zed ?

correct. as asdf-vm is responsible for loading/unloading the environment ($PATH, $GO..), if i have a project specific version and launch zed from inside that directory, it won't have the correct paths resulting in binaries missing.
does GOBIN (from the commands above) ever pick up the value from the env if it is defined? reusing that may help here too if it doesn't already.

does GOBIN (from the commands above) ever pick up the value from the env if it is defined? reusing that may help here too if it doesn't already.

We currently always try to install language servers ourselves, rather than looking for existing binaries, but we could add logic for finding existing language servers on your system.

that would be rad; potentially save debugging version mismatches or why the language server in editor doesn't match the CLI invocation. will leave it up to you though 👍
thanks for the speedy support! you folks rock.

What's the workaround for this issue with zed 0.75.2+?

@zlpkhr this isn't possible right now. Feel free to upvote https://github.com/zed-industries/community/issues/130.

gopls is not compatible with golang version before 1.16. try upgrading golang first, it works for me

Before you begin Check the backlog of issues to reduce the chances of creating duplicates; if an issue already exists, place a +1 (👍) on it.
Describe the bug
When opening a Golang file, I encounter the following error.
Language server error: Go

failed to install gopls. Is go installed?

To reproduce

Use asdf-vm to install Go
Ensure it is correctly setup
Attempt to open a Golang file
See error reported

Expected behavior

Go file opens and gopls can be installed (or use the existing one on my $PATH

Screenshots If applicable, add screenshots to help explain your problem.
Environment:
Zed 0.45.0 – /Applications/Zed.app macOS 12.4 architecture x86_64
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/jacob/Library/Caches/go-build"
GOENV="/Users/jacob/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/jacob/.asdf/installs/golang/1.17.9/packages/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/jacob/.asdf/installs/golang/1.17.9/packages"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/jacob/.asdf/installs/golang/1.17.9/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/jacob/.asdf/installs/golang/1.17.9/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.17.9"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/jacob/go/src/github.com/cloudflare/cloudflare-go/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/36/zlscnhfn27n1yxx52cr1kdmr0000gp/T/go-build632993627=/tmp/go-build -gno-record-gcc-switches -fno-common"

$ which go gopls
/Users/jacob/.asdf/shims/go
/Users/jacob/.asdf/shims/gopls

Is there a way I can manually work around this in the meantime? Either by downloading the language server manually or forcing it in? Docs state Go isn't yet supported but the invite email said it was so unsure if this is still in progress.

gopls is not compatible with golang version before 1.16. try upgrading golang first, it works for me

@coooold i think you may have misread here. the go version used in this example is 1.17 so gopls is definitely available.

Here is the translation of your solution:
I'll share my solution. Today, I downloaded support for Rust and Go programming language server. The Rust setup didn't work initially, but after using "workspace restart", Rust started working. As for Go, I struggled with it for at least 20 attempts, going back and forth with the issue. Finally, by chance, it worked.
I performed the following steps:
Navigated to the directory: cd ~/Library/Application\ Support/Zed/languages
Removed the gopls directory: rm -dr gopls
run "workspace restart"
After following these steps, Go started working successfully. If you encounter permission issues, you can use sudo zed {your-go-project} and then follow the same steps mentioned above.

I didn't encounter any permissions issue but the sudo zed . fixed the issue for me. Thanks @springzero

MacOS 11.6.2 (20G314)
Zed 0.106.2

I encountered a similar issue where Zed couldn't find the "go" command when starting. This might be due to Zed not having access to the complete $PATH. To resolve my issue, I used the following approach:

create a openzed.app from Automator (Run Shell Script)

source ~/.zshrc && zed

open openzed.app

Can confirm these were still necessary w/ Zed 0.110.2

At this point, gopls is 0.14.2

$ GO111MODULE=on GOBIN=~/.zed/gopls/gobin go install golang.org/x/tools/gopls@latest
$ mv ~/.zed/gopls/gobin/gopls ~/.zed/gopls/gopls_0.14.1
$ zed .


[SelectField] Object as value fails equality check

Working with the Select field which states that the value can be any kind does not work properly with objects. The onChange will produce the correct result, but trying to set value = to an object will fail when selecting the value.
Example
<SelectField value={{ foo: 'bar' }}>
  <MenuItem value={{ foo: 'bar' }} primaryText={p.key} label={p.key} />
</SelectField>

The issue seems to come from here https://github.com/callemall/material-ui/blob/master/src/DropDownMenu/DropDownMenu.js#L297 where just a normal equality check is used.
Possible solution is to check type of and if it is object then stringify the values

where just a normal equality check is used

Why does that equality check fail on your end?

Possible solution is to check type of and if it is object then stringify the values

I don't think that we want to go into that direction. The simple equality check should be enough.
That's gonna increase complexity and reduce performance for a use case that feels odd.

I have also come across this when working with objects as values for the SelectField recently.
Testing @patrickml example yields the behavior described.
Modifying it to
let foo = { foo: 'bar' };
<SelectField value={foo}>
  <MenuItem value={foo} primaryText={p.key} label={p.key} />
</SelectField>

allows the === check to pass since they are indeed the same object.
I agree with @oliviertassinari that the proposed possible solution would not be ideal. Would it be possible to instead pass a function along to do the comparison?

@patrickml Is @MPiccinato's modified example sufficient for your use case?

@mbrookes sadly it doesn't since we are using redux and graphql to power our input fields the object is not guaranteed to be the same. If it doesn't fit the scope of the project I have it working with the JSON.stringify hack for now.

I'll leave it open and we can see if it gets any reactions.

Sounds like a plan. And btw thanks for all the great work on this project
thus far
On Wed, Jan 18, 2017 at 5:10 PM Matt Brookes<EMAIL_ADDRESS>wrote:

I'll leave it open and we can see if it gets any reactions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/callemall/material-ui/issues/5818#issuecomment-273617932,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHOuueMKkMJX91RskjZgYgWZWFKR6mTTks5rTo3tgaJpZM4LVHQC
.

Is it feasible to add a property to specify a key in the object to be used in the comparison?
<MenuItem value={{key: "asdf", "etc": "etc"}} key={"key"} ... />

@hyperbrave I like the idea of that. or maybe a function callback for more customization?
const check = (value) => (item) => item.key === value;

<DropDownMenu value={this.state.dropDownValue} checkActive={check(this.state.active)} onChange...>
  <MenuItem value={{key: "asdf", et: "cetera"}} label... />
  <MenuItem value={{key: "1234", and: "whatnot"}} label... />
</DropDownMenu>

@patrickml Providing a callback property sounds fair. It would be good to benchmark what the other libraries are doing to solve that issue.

My be it will be better to add "trackBy" property to "DropDownMenu" as Angular do for "ng-repeat" ?

Hi guys, any update on this one?

@MarcMagnin i think i ended up doing something with indexes so options = [{}, {}] value = i onChange = (v) => doSomething(options[v]) then on restore i can just find the index of the value

Also interested in this one. We have intercepted the menu items and onChange in an intermediary component to get this to work in the meantime. However, built in support for this would be appreciated. Either the "trackBy" or the comparison function solutions would work for us.

@patrickml Providing a callback property sounds fair. It would be good to benchmark what the other libraries are doing to solve that issue.

Angular resolves this question providing a compareWith function.
It seems to be an elegant solution.
Can this be applied to this library?
Bellow, Angular code:
`<select [compareWith]="compareFn"  [formControl]="selectedCountriesControl">
<option *ngFor="let country of countries" [ngValue]="country">
{{country.name}}

compareFn(c1: Country, c2: Country): boolean {
return c1 && c2 ? c1.id === c2.id : c1 === c2;
}`
https://angular.io/api/forms/SelectControlValueAccessor#caveat-option-selection

@marceloloureiro Which version of Material-UI are you using? This issue is for v0.

See https://github.com/mui-org/material-ui/issues/24201 for the latest version.

@marceloloureiro Which version of Material-UI are you using? This issue is for v0.

I'm using v 4.11.0
I checked the link you provided. Thanks.
In the end it was not what I expected, but okay. I made a workaround in my application to handle this issue.
Firstly I get a list of options, then I remove all the options that are equal to the selected values, the equality being checked by a predicate, then I spread the list of selected values, with their references, in the list of options.
I know it's not ideal, but it's what's working for me.
import { differenceBy, isEmpty } from 'lodash';

function fillOptionsWithSameReferencesOfSelectedValues(options, multiple, selectedValue, compareWithPath) {
  if (multiple) {
    return selectedValue?.length ?  [...differenceBy(options, selectedValue, compareWithPath), ...selectedValue] : options;
  } else {
    return !isEmpty(selectedValue) ? [...differenceBy(options, [selectedValue], compareWithPath), selectedValue]: options ;
  }
};


Event / hook where I can check for log event size before it gets logged

I am using serilog, and facing issue with ElasticsearchSink when a batch exceeds 10MB payload, I am on AWS ES service which restricts more than 10MB log. Is there any hook where I can check if a particular log entry is more than x bytes? I would like to skip such log events and replace it with a smaller log entry to say too big log message was generated and truncated.

Any suggestion?

You might be able to implement your own ElasticsearchJsonFormatter and do a check in there. When the size is more, then return your own message instead.


This is my first pull request.

          This is my first pull request.

Originally posted by @devjdrd in https://github.com/devjdrd/helloworld/issues/1#issuecomment-1739761940

#1

#1

Issue closed.


Issue with book_info.sql importing in MariaDB

Chose not to import the main mysql.sql file due to the DROP TABLE user command in it.
So I imported all the files manually. Ran into this error:
ERROR 1170 (42000) at line 1 in file: '/.../bible_databases/sql/book_info.sql': BLOB/TEXT column 'title_short' used in key specification without a key length
Had to modify the very beginning of the .sql file to this:
CREATE TABLE IF NOT EXISTS book_info (
order INT NOT NULL AUTO_INCREMENT,
title_short VARCHAR(255) NOT NULL UNIQUE,
title_full VARCHAR(255) NOT NULL UNIQUE,
abbreviation VARCHAR(255) NOT NULL UNIQUE,
category VARCHAR(255) NOT NULL,
otnt VARCHAR(255) NOT NULL,
chapters INT,
PRIMARY KEY (order)
);
Switched the type from text to varchar. Presumably the issue can also be fixed by removing the "UNIQUE" flag from each of the TEXT fields.

This issue occurs because you are attempting to import the mysql.sql file into MySQL when it is only compatible with MariaDB.  #69 fixes this issue and allows import into MySQL.

For reference, I’m curious if #69 fixes this issue for newer versions of MairaDB.  The intention of #69 was to fix the import into MySQL, but may fix issues on MariaDB as well.

Thanks for your feedback paulforbes42,
Just a cursory glance at #69, I would agree that probably would fix the issue. In my view, the issue is fixed either by dropping the UNIQUE keyword or by changing the type to VARCHAR.
"Removed mysql system database and tables that were included in this dump file"
This change also would have probably fixed it for me, as I wouldn't have used the individual sql files in the first place had the core mysql tables not been included in the main file.
Thanks,
Squid

This may be fixed now. Open a new issue if the problem continues. @squidsworld @paulforbes42 Thank you for your help.


Analysis Output Column Naming Suggestions

Below are two proposals for column names produced by analysis methods. The goal with both suggestions is to make column names more descriptive and less ambiguous.

Keep column names connected to the field they were derived from

Example workflow

augment a point dataset with “Population” from the Data Observatory function
set the column name to population
if we run the Moran’s i function on the augmented point dataset, the default column names will be quads and significance instead, we think it would be better if they were named something closer to their origin like population_quads and population_significance

Make output column names less ambiguous (related to point 1)

Example

with Cluster Analysis, if you aggregate by some method (sum, count, avg...), the output is written into a column value. We think it would make more sense for the output column name to be more descriptive of the aggregation, like value_sum, value_count, etc.

cc @andrewxhill @stuartlynn @ohasselblad @talos

Can you create separate tickets for these? All looks pretty good to me :)

@salveia just to be clear, you mean add a separate ticket for each analysis method and what we would like the column names to be?

Yep, I think that will work better

ok, cool.
@andrewxhill @stuartlynn @ohasselblad @talos will need your help with this!

@andrewxhill @stuartlynn @ohasselblad @talos
also related to which columns should be output as widgets as a result of each analysis. definitely think step one of the ticket below and this are related...
https://github.com/CartoDB/cartodb/issues/8776

@hannahblue tagging you here to look over and decide if we should keep open.

Thanks @makella. We'll keep this open, and look into it.


Regenerate test to include NotificationChannelService

Hi, this is a refresh of an auto-generated test to include NotificationChannelService. This has been tested locally. The pull request is sent on behalf of @michaelsafyan.

Oops. Mistakenly included more commits than needed. Close and will resubmit.


feat(docs): new section FAQ

New section FAQ
Resolves #195
FAQ template
Steps to test

yarn start
Go to Tools -> FAQ

CheckList

[x] Follow proper Markdown format
[x] The content is adequate
[ ] The content is available in both english and spanish
[x] I Ran a spell check

.vs folder added to the .gitignore , and changed the FAQ content for new one.

.vs folder added to the .gitignore , and changed the FAQ content for new one.

@ldrojas Please check the FAQ content

@ldrojas Please check the FAQ content

@xavier506 Please check if the given FAQ content approach was the wished one

@xavier506 Please check if the given FAQ content approach was the wished one

@edgarEOS @leisterfrancisco @ldrojas
What do you guys think about merging the different FAQs from English and Spanish?

On the morning we did a meeting on which we (@leisterfrancisco ) organized and planned the structure and content ,and agree the spanish version would be the same

@edgarEOS @leisterfrancisco @ldrojas
What do you guys think about merging the different FAQs from English and Spanish?

On the morning we did a meeting on which we (@leisterfrancisco ) organized and planned the structure and content ,and agree the spanish version would be the same

@edgarEOS @leisterfrancisco @ldrojas
What do you guys think about merging the different FAQs from English and Spanish?

I agree, we did it together, so we agree with that option.

@edgarEOS @leisterfrancisco @ldrojas
What do you guys think about merging the different FAQs from English and Spanish?

I agree, we did it together, so we agree with that option.


iOS Fails to build.

Fails to build in Alpha channel. (No idea if it is related to that ATM)
VS 2015 Update 2 in Alpha channel fails at the end with:

C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(680,3): error : Native linking error: clang: error: no such file or directory: '/Users/adamhill/Library/Caches/Xamarin/mtbs/builds/XamarinEvolveiOS/a0b5d69e48e6689bcfd6f496fc9d6613/obj/iPhone/Debug/mtouch-cache/GoogleAppIndexing'

C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(680,3): warning : References to 'sqlite3' might require additional -framework=XXX or -lXXX instructions to the native linker

C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(680,3): error : Native linking failed. Please review the build log.

Package Manager Console is clear. Other iOS apps build fine.
Can someone tell me where more detailed Build logs might be?

Can you validate that the component from the components folder installed?
You will need to login with your Xamarin account.
On May 2, 2016 8:14 PM, "Adam Hill"<EMAIL_ADDRESS>wrote:

Fails to build in Alpha channel. (No idea if it is related to that ATM)
VS 2015 Update 2 in Alpha channel fails at the end with:
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(680,3): error : Native linking error: clang: error: no such file or directory: '/Users/adamhill/Library/Caches/Xamarin/mtbs/builds/XamarinEvolveiOS/a0b5d69e48e6689bcfd6f496fc9d6613/obj/iPhone/Debug/mtouch-cache/GoogleAppIndexing'
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(680,3): warning : References to 'sqlite3' might require additional -framework=XXX or -lXXX instructions to the native linker
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(680,3): error : Native linking failed. Please review the build log.
Package Manager Console is clear. Other iOS apps build fine.
Can someone tell me where more detailed Build logs might be?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/xamarinhq/app-evolve/issues/5

How do I validate them?
I can see Azure, Google and Toast in the Components folder, there are no obvious warning symbols on the nodes.

If you go into the repo folder you will see "Components/" and a bunch of stuff in it.
Maybe clean/rebuild?
Full logs can be found: https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/troubleshooting/#Log_File_Location


Cluster in pending state with nodes on VM

Rancher Server Setup

Rancher version: 2.6
Installation option (Docker install/Helm Chart): Docker compose
Proxy/Cert Details: Default certificate

Information about the Cluster

Kubernetes version: K3S v1.22.2+k3s2
Cluster Type (Local/Downstream): Downstream K3S

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): Imported

Describe the bug
I've set up a master node and two worker nodes.
Master is on an Linux server (<IP_ADDRESS>) while workers are installed on Vagrant VMs on the same host (<IP_ADDRESS>).

Master: <IP_ADDRESS>
Worker 01: Internal IP <IP_ADDRESS> / External IP <IP_ADDRESS>
Worker 02: Internal IP <IP_ADDRESS> / External IP <IP_ADDRESS>

Worker nodes are correctly connected to Master node:
$ kubectl get nodes -o wide
NAME                         STATUS     ROLES                       AGE     VERSION        INTERNAL-IP     EXTERNAL-IP     OS-IMAGE                       KERNEL-VERSION      CONTAINER-RUNTIME
master                       Ready      control-plane,etcd,master   5d22h   v1.22.2+k3s2   <IP_ADDRESS>   <none>          Ubuntu 20.04.3 LTS             5.4.0-88-generic    containerd://1.5.7-k3s1
worker01                     Ready      <none>                      2d20h   v1.22.2+k3s2   <IP_ADDRESS>   <IP_ADDRESS>   Ubuntu 18.04.3 LTS             4.15.0-58-generic   docker://19.3.15
worker02                     Ready      <none>                      2d21h   v1.22.2+k3s2   <IP_ADDRESS>   <IP_ADDRESS>   Ubuntu 18.04.3 LTS             4.15.0-58-generic   docker://19.3.15

I can successfully deploy a pod on my nodes which means the connection between the master and the workers is correctly set.
If I try to import a existing cluster to Rancher, the following command must be run on cluster:
curl --insecure -sfL https://<IP_ADDRESS>:4443/v3/import/8lj6t8h2sfrhzj2tnvv6tlqz9mkn5rh7ndmvqv4x7skvcfkpvpf62z_c-m-4ftg78kr.yaml | kubectl apply -f -
The cattle agent seems to be deployed successfully:
$ kubectl get all -n cattle-system
NAME                                        READY   STATUS    RESTARTS      AGE
pod/cattle-cluster-agent-59749d4bf6-bt946   1/1     Running   6 (14m ago)   40h

NAME                           TYPE        CLUSTER-IP    EXTERNAL-IP   PORT(S)          AGE
service/cattle-cluster-agent   ClusterIP   <IP_ADDRESS>   <none>        80/TCP,443/TCP   40h

NAME                                   READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/cattle-cluster-agent   1/1     1            1           40h

NAME                                              DESIRED   CURRENT   READY   AGE
replicaset.apps/cattle-cluster-agent-59749d4bf6   1         1         1       40h

On the Rancher dashboard, the cluster is marked as active but can't be managed. There is no nodes linked to the cluster and no RAM nor CPU displayed.
Complete status in YAML:
apiVersion: provisioning.cattle.io/v1
kind: Cluster
metadata:
  annotations:
    field.cattle.io/creatorId: user-5bk6w
  creationTimestamp: "2021-10-12T14:48:40Z"
  finalizers:
  - wrangler.cattle.io/provisioning-cluster-remove
  generation: 1
  managedFields:
  - apiVersion: provisioning.cattle.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:finalizers:
          .: {}
          v:"wrangler.cattle.io/provisioning-cluster-remove": {}
      f:spec: {}
      f:status:
        .: {}
        f:clientSecretName: {}
        f:clusterName: {}
        f:conditions: {}
        f:observedGeneration: {}
        f:ready: {}
    manager: rancher
    operation: Update
    time: "2021-10-12T14:50:22Z"
  name: ofb
  namespace: fleet-default
  resourceVersion: "521910"
  uid: 601f99f6-3370-40c8-9b82-904048e1e8a9
spec: {}
status:
  clientSecretName: ofb-kubeconfig
  clusterName: c-m-4ftg78kr
  conditions:
  - lastUpdateTime: "2021-10-12T14:50:22Z"
    status: "False"
    type: Reconciling
  - lastUpdateTime: "2021-10-12T14:48:40Z"
    status: "False"
    type: Stalled
  - lastUpdateTime: "2021-10-14T07:11:33Z"
    status: "True"
    type: Created
  - lastUpdateTime: "2021-10-12T14:48:40Z"
    status: "True"
    type: RKECluster
  - lastUpdateTime: "2021-10-12T14:48:40Z"
    status: "True"
    type: BackingNamespaceCreated
  - lastUpdateTime: "2021-10-12T14:48:40Z"
    status: "True"
    type: DefaultProjectCreated
  - lastUpdateTime: "2021-10-12T14:48:40Z"
    status: "True"
    type: SystemProjectCreated
  - lastUpdateTime: "2021-10-12T14:48:40Z"
    status: "True"
    type: InitialRolesPopulated
  - lastUpdateTime: "2021-10-12T14:48:41Z"
    status: "True"
    type: CreatorMadeOwner
  - lastUpdateTime: "2021-10-12T14:50:07Z"
    status: "True"
    type: Pending
  - lastUpdateTime: "2021-10-12T14:50:07Z"
    message: waiting for full cluster configuration
    reason: Pending
    status: "True"
    type: Provisioned
  - lastUpdateTime: "2021-10-14T07:11:33Z"
    message: Waiting for API to be available
    status: "True"
    type: Waiting
  - lastUpdateTime: "2021-10-12T14:48:41Z"
    status: "True"
    type: NoDiskPressure
  - lastUpdateTime: "2021-10-12T14:48:41Z"
    status: "True"
    type: NoMemoryPressure
  - lastUpdateTime: "2021-10-12T14:48:45Z"
    status: "False"
    type: Connected
  - lastUpdateTime: "2021-10-14T07:05:33Z"
    status: "True"
    type: Ready
  observedGeneration: 1
  ready: true

To Reproduce

Step 1: Install K3S on Master node

curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=latest K3S_KUBECONFIG_MODE="644" INSTALL_K3S_EXEC="server --cluster-init" sh -
NODE_TOKEN=`sudo cat /var/lib/rancher/k3s/server/node-token`
LOCAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')

Step 2: Install Rancher dashboard

mkdir -p rancher && cd rancher && sudo cat >> docker-compose.yaml <<EOF
version: '2'
services:
  rancher:
    image: rancher/rancher:latest
    restart: always
    ports:
    - "8080:80/tcp"
    - "4443:443/tcp"
    volumes:
    - "rancher-data:/var/lib/rancher"
    privileged: true
volumes:
  rancher-data:
EOF
sudo docker-compose up -d && cd ..
sleep 20
# Read Rancher temporary password
RANCHER_ID=`sudo docker ps -aqf "name=rancher"` && RANCHER_PWD=`sudo docker logs $RANCHER_ID 2>&1| grep "Bootstrap Password:"`
echo $RANCHER_PWD

Step 3: Run Vagrant VMs

LOCAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
mkdir -p vms && cd vms
sudo cat << EOF > Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :

IMAGE_NAME = "hashicorp/bionic64"

Vagrant.configure("2") do |config|
    # Worker node config
	config.vm.define "worker01" do |worker|

		# Hostname and network config
		worker.vm.box = IMAGE_NAME
		worker.vm.hostname = "worker01"
		worker.vm.network "private_network", ip: "<IP_ADDRESS>"

		# Install K3S as worker
		worker.vm.provision "shell", inline: <<-SHELL
			NODE_IP=\$(/sbin/ip -o -4 addr list eth1 | awk '{print \$4}' | cut -d/ -f1)
			apt-get update
			apt-get install -y apt-transport-https curl gnupg
			curl https://releases.rancher.com/install-docker/19.03.sh | sh
			curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=latest K3S_KUBECONFIG_MODE="644" K3S_URL="https://$CFG_MASTER_IP:6443" K3S_TOKEN="$CFG_NODE_TOKEN" INSTALL_K3S_EXEC="--node-ip=\$NODE_IP --node-external-ip=$LOCAL_IP --flannel-iface=eth1" sh -s - --docker
			sleep 30
		SHELL

		# Forward ports
		for i in 30000..30998
			worker.vm.network :forwarded_port, guest: i, host: i
		end
	end

	# Worker node config
	config.vm.define "worker02" do |worker|

		# Hostname and network config
		worker.vm.box = IMAGE_NAME
		worker.vm.hostname = "worker02"
		worker.vm.network "private_network", ip: "<IP_ADDRESS>"

		# Install K3S as worker
		worker.vm.provision "shell", inline: <<-SHELL
			NODE_IP=\$(/sbin/ip -o -4 addr list eth1 | awk '{print \$4}' | cut -d/ -f1)
			apt-get update
			apt-get install -y apt-transport-https curl gnupg
			curl https://releases.rancher.com/install-docker/19.03.sh | sh
			curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=latest K3S_KUBECONFIG_MODE="644" K3S_URL="https://$CFG_MASTER_IP:6443" K3S_TOKEN="$CFG_NODE_TOKEN" INSTALL_K3S_EXEC="--node-ip=\$NODE_IP --node-external-ip=$LOCAL_IP --flannel-iface=eth1" sh -s - --docker
			sleep 30
		SHELL

		# Forward ports
		for i in 31000..31998
			worker.vm.network :forwarded_port, guest: i, host: i
		end
	end
end
EOF

# Run vagrant
vagrant up

Step 4: Import existing cluster in Rancher

curl --insecure -sfL https://<IP_ADDRESS>:4443/v3/import/8lj6t8h2sfrhzj2tnvv6tlqz9mkn5rh7ndmvqv4x7skvcfkpvpf62z_c-m-4ftg78kr.yaml | kubectl apply -f -
Result
Expected Result
The cluster should be active and fully accessible.
Screenshots

Additional context
<!--Add any other context about the problem here.—>

Surprisingly, problem was solved downgrading versions to:

K3S v1.21.5 (stable)
Rancher v2.5.8


Version 19 is missing from this page..

[Enter feedback here]
Version 19 is missing from this page..

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

ID: 9ad2a569-9830-92a8-300a-3ddd2c38d86c
Version Independent ID: bbe7bdcf-76bd-48a3-38f6-67317cb61bd2
Content: Version numbers in Business Central and what they mean - Business Central
Content Source: dev-itpro/administration/version-numbers.md
Service: dynamics365-business-central
GitHub Login: @edupont04
Microsoft Alias: edupont

Oops, you're right. We'll get that fixed in the next doc update.

Fixed a month ago.


Add support for P5 FutureNow light platform

Description:
Add support for P5 FutureNow light platform
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#5875
Example entry for configuration.yaml (if applicable):
light:
  - platform: futurenow
    driver: FNIP6x10ad
    host: <IP_ADDRESS>
    port: 7078
    devices:
      5:
        name: Dimmer Channel 5
        dimmable: 1
      6:
        name: Dimmer Channel 6
        dimmable: 1

Checklist:

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

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[x] New dependencies have been added to the REQUIREMENTS variable (example).
[x] New dependencies are only imported inside functions that use them (example).
[x] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[x] New files were added to .coveragerc.

Hi @juhaniemi,
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!

Thanks for spotting that, @MartinHjelmare! Sorry, I missed that one as I set the states manually in the actuator methods.

Can be merged when build passes


Mac: Check and pass up (only) "Data Request" frames from a child being restored

In Mac::ProcessReceiveSecurity(), if the frame is from a neighbor
not in valid state (e.g., it is from a child being restored), we
skip the key sequence and frame counter checks but continue to
verify the security tag/MIC. Such a frame is later filtered in
RxDoneTask() which only allows "MAC Data Request" frames from a
child being restored.

Codecov Report

Merging #1325 into master will decrease coverage by -0.02%.
The diff coverage is 26.66%.

@@            Coverage Diff             @@
##           master    #1325      +/-   ##
==========================================
- Coverage   69.68%   69.67%   -0.02%
==========================================
  Files         169      170       +1
  Lines       26595    26614      +19
  Branches     3333     3306      -27
==========================================
+ Hits        18533    18543      +10
- Misses       6652     6660       +8
- Partials     1410     1411       +1

Impacted Files
Coverage Δ

src/core/mac/mac.cpp
79.32% <26.66%> (-0.59%)
:x:

examples/platforms/posix/random.c
85% <ø> (-15%)
:x:

src/core/thread/lowpan.hpp
86.84% <ø> (-13.16%)
:x:

third_party/mbedtls/repo/library/ecp_curves.c
90.16% <ø> (-3.06%)
:x:

src/core/thread/lowpan.cpp
92.29% <ø> (-1.44%)
:x:

src/core/net/udp6.cpp
82% <ø> (-1%)
:x:

src/core/thread/mle.cpp
80.57% <ø> (-0.65%)
:x:

src/ncp/ncp_base.cpp
37.14% <ø> (-0.41%)
:x:

...d_party/mbedtls/repo/library/memory_buffer_alloc.c
60.25% <ø> (-0.39%)
:x:

src/core/thread/mesh_forwarder.cpp
75.58% <ø> (-0.24%)
:x:

... and 10 more

Continue to review full report at Codecov.

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


Refactor code to improve traceability and maintenance

3 of the 4 tests pass (1 fail), don't know why,
Any help could be greatly appreciated :blush:

Well, I'm currently recoding and refactoring even more, fixing more things and splitting main/renderer as requested on #16, so this is a WIP PR.

Closing this PR in favor of #19


Would using edlib be interesting option?

Hi,
great job on the library! Especially on using js implementation for shorter strings, that is they way to go I believe.
I am author of https://github.com/Martinsos/edlib, which is implementation of Myers in C++, same as yours, and is well-featured and optimized after years of usage. However, it supports only single-char strings for now, although that is not so hard to add and might be added in next couple of months.
Anyway, I just wanted to point this out in case you find it useful, maybe it would make sense to use edlib in your library, and if not, you might find some useful bits in the code!
Edlib also has python binding/package which is well used I believe, and 3 years ago I also made node package (node-edlib), similar to yours, but I never put enough work into it to make it well suited for all sizes of sequences, as you did in your library, and it did not take off (nor would I recommend anybody to use it at the moment, next to other alternatives).
Keep up the good work!

Thank you for the kind words! I'll definitely consider using edlib if it proves to be the same speed or better than my implementation of Myers. I've not had time to work on this for a while, but I will soon upgrade the JS used for shorter strings (to a much faster version), and then I will look into using edlib.
Keep up the good work with edlib!

Awesome, and thanks! Just be aware of what I mentioned, that edlib does not support complex characters yet -> I would wait for that to be implemented, if I was you. good luck, closing the isssue!


Add generated comment

The files generated by this tool should contain a comment like this:
# This file was generated by nwg-display at 2023-06-25 11:45

Why not? I'll add this.

done


ENH: Add Ert experiment id to case metadata

Resolves #670
Include _ERT_EXPERIMENT_ID from the enviroment variables in the exported case metadata.
If the environment variable _ERT_EXPERIMENT_ID is present, it will be appended to the exported case metadata. For this, a new "ert" field has been added to the metadata file, in addition to a child field "experiment", which will contain the _ERT_EXPERIMENT_ID of type UUID:
data:
  ...
fmu:
  case:
    name: ...
    uuid: ...
  ert:
    experiment:
      id: <_ERT_EXPERIMENT_ID>  #UUID

Two new tests have been added to test if the _ERT_EXPERIMENT_ID is part of the case metadata when it is present in the environment variables.

Ref PR description

it will be appended to the exported case metadata

I think it is correct to say it will be added to the fmu metadata block


feat(forward): Added functionality to Forward button

PR related to this trello task --> https://trello.com/c/YJAnPKXa

:tada: This PR is included in version 1.22.0 :tada:
Your semantic-release bot :package::rocket:


BG2-2526: add throw error flag to http handler

Without this we get a TypeError anyway, adding the throw on error just makes it easier to find out what the root cause error is.


Logs plugin enhancements

The logs plugin currently sorts from oldest to newest log. I would expect the exact opposite behavior. For monitoring I would want to know what's happening in the application right now. There could optionally be a toggle to sort as the users want it.

Hi Martin, I can look at this.

Closing as already done in https://github.com/hawtio/hawtio-next/pull/1063


I win the game by moving on a dot myself?

In this state, if I move left I see the "A Winner is You" Screen.. Also I can keep moving right to keep playing.

Heh yeah, I don't clear the game state when you win so you can keep playing and un-win. Should be an easy fix.

I think it is not related to game state. I proposed a fix: https://github.com/taniarascia/sokoban/pull/5
Feel free to improve and or close it.
Thank you.

I think I was not successful at explaining the issue. In the state I share in the screenshot - if I move left with player I see the "The winner is you" screen. But I am only covering the cell with the player icon, not with a block. It is not about winning and un-winning I think.

I've noticed that issue, too. Thanks for your fix!

@cniklas I think a more proper way to fix this is to introduce a new boolean isPlayerOnVoid and then adding it to the condition where isWin is determined..

@cniklas I think a more proper way to fix this is to introduce a new boolean isPlayerOnVoid and then adding it to the condition where isWin is determined..

Right!


VersionedApiExplorer breaks something in OpenIddict or ASOS

After I added services.AddMvcCore().AddVersionedApiExplorer(); the request to http://localhost:1966/connect/token ends with 404
@PinpointTownes, how can we investigate this?
Microsoft.AspNetCore.Hosting.Internal.WebHost: Information: Request starting HTTP/1.1 POST http://localhost:1966/connect/token application/x-www-form-urlencoded 158
The thread 0xd54 has exited with code 0 (0x0).
Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory: Information: Executed DbCommand (34ms) [Parameters=[@__get_Item_0='?'], CommandType='Text', CommandTimeout='30']
SELECT TOP(1) [e].[Id], [e].[AccessFailedCount], [e].[ConcurrencyStamp], [e].[Email], [e].[EmailConfirmed], [e].[IsDriver], [e].[LockoutEnabled], [e].[LockoutEnd], [e].[NormalizedEmail], [e].[NormalizedUserName], [e].[PasswordHash], [e].[PhoneNumber], [e].[PhoneNumberConfirmed], [e].[PictureUrl], [e].[QuickBloxId], [e].[QuickBloxPassword], [e].[SecurityStamp], [e].[TwilioSid], [e].[TwoFactorEnabled], [e].[UserName]
FROM [Users] AS [e]
WHERE [e].[IsDriver] IN (0, 1) AND ([e].[Id] = @__get_Item_0)
The thread 0x2130 has exited with code 0 (0x0).
Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory: Information: Executed DbCommand (11ms) [Parameters=[@p0='?' (Size = 4000)], CommandType='Text', CommandTimeout='30']

SELECT * FROM BhutanDrivers
WHERE [UserId] = @p0
The thread 0x1bd4 has exited with code 0 (0x0).
Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory: Information: Executed DbCommand (25ms) [Parameters=[@__userId_0='?'], CommandType='Text', CommandTimeout='30']
SELECT [role].[Name]
FROM [RolesOfUsers] AS [userRole]
INNER JOIN [UserRoles] AS [role] ON [userRole].[RoleId] = [role].[Id]
WHERE [userRole].[UserId] = @__userId_0
The thread 0x2384 has exited with code 0 (0x0).
Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory: Information: Executed DbCommand (6ms) [Parameters=[@__user_Id_0='?'], CommandType='Text', CommandTimeout='30']
SELECT [uc].[Id], [uc].[ClaimType], [uc].[ClaimValue], [uc].[UserId]
FROM [UserClaims] AS [uc]
WHERE [uc].[UserId] = @__user_Id_0
Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware: Information: HttpContext.User merged via AutomaticAuthentication from authenticationScheme: Identity.Application.
AspNet.Security.OpenIdConnect.Server.OpenIdConnectServerMiddleware: Information: The token request was successfully extracted from the HTTP request: {
  "username": "andriicsharp",
  "password": "[removed for security reasons]",
  "client_id": "postman",
  "grant_type": "password",
  "scope": "openid email phone profile qb tw offline",
  "device_id": "Lumia929"
}.
Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory: Information: Executed DbCommand (3ms) [Parameters=[@__identifier_0='?' (Size = 450)], CommandType='Text', CommandTimeout='30']
SELECT TOP(2) [application].[Id], [application].[ClientId], [application].[ClientSecret], [application].[DisplayName], [application].[LogoutRedirectUri], [application].[PushService], [application].[RedirectUri], [application].[Type]
FROM [OpenIddictApplications] AS [application]
WHERE [application].[ClientId] = @__identifier_0
OpenIddict.OpenIddictProvider: Information: The token request validation process was not fully validated because the client 'postman' was a public application.
AspNet.Security.OpenIdConnect.Server.OpenIdConnectServerMiddleware: Information: The token request was successfully validated.
Microsoft.AspNetCore.Hosting.Internal.WebHost: Information: Request finished in 808.0164ms 404

[ApiVersionNeutral]
[Route("[controller]")]
public class AuthorizeController : Controller
{
    [HttpPost("~/connect/token")]
    [Produces("application/json")]
    [ProducesResponseType(typeof(void), (int)HttpStatusCode.OK)]
    [ProducesResponseType(typeof(OpenIdConnectResponse), (int)HttpStatusCode.BadRequest)]
    public async Task<IActionResult> Exchange([FromServices] OpenIdConnectRequest request)

@PinpointTownes, how can we investigate this?

It's likely not an OpenIddict issue. To confirm it, change the default log level to Debug or Verbose: if you see the AspNet.Security.OpenIdConnect.Server.OpenIdConnectServerMiddleware: Debug: The default token request handling was skipped from user code. message (that indicates that ASOS was asked to invoke the next middleware in the pipeline), you can be sure it's not caused by OpenIddict.
I guess adding the API versioning stack changes how MVC handles the /connect/token route and indirectly prevents your Exchange action from being properly invoked.

@PinpointTownes, this way?
  "Logging": {
    "Console": {
      "IncludeScopes": true,
      "LogLevel": {
        "Default": "Debug",
        "System": "Error",
        "Microsoft": "Error"
      }
    }
  },

The API explorer has no influence on routing. I don't see how (yet) that would adversely affect anything. @xperiandri is this on the 1.1 RC? If so, this issue is probably related to #133. There's a regression that could cause this. I'm working on the fix as fast as possible. If things were working up until Beta 2, then I suspect that's the culprit.

@xperiandri you should consider using the Debug logger. VS's debug output window is way better for logging than the default console :smile:

@PinpointTownes, could you drop a sample or a link to some info?

Google is your friend. But since I'm a cool guy... the documentation is here: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging.

@PinpointTownes, thanks.
So I had to put LogLevel instead of Console in my config?
@commonsensesoftware, looks like that.

@commonsensesoftware, after downgrading to Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer 1.0.0-beta1 it works fine

@xperiandri  What about Microsoft.AspNetCore.Mvc.Versioning itself? Is that 1.1.0-beta1, 1.1.0-beta2, 1.1.0-rc1? If you're only taking the dependency on Microsoft.AspNetCore.Mvc.Versioning, then it will transitively match 1.1.0-beta2. That's generally good news because this and several other issues appear to be all caused by the same regression.
I'm trying to get a fix out ASAP. I have things fixed, but I'm expanding my acceptance test coverage to add more of the issues reported to make sure things are really fixed. I don't want to just arbitrarily throw something out there though.

Yes, transitively 1.1.0-beta2
Agree, you are doing right.

RC2 has been officially published. Let me know if you run into any other issues.

Doesn't work. Still getting 404

A repro project would be useful; however, before I ask you to do a lot of work, can you share you Startup.cs configuration? Thanks.

I looked at your configuration and you're missing the call to UseApiVersioning.  This is a behavioral, break-breaking change in ASP.NET Core in the RC. It's called out as loudly as I could in the release notes. It was the only option in ASP.NET Core's current design to enable a comprehensive set of out-of-the-box routing behaviors. I've also updated the wiki to reflect this.
Your Configure method must now have:
// ...
app.UseMvc();
app.UseApiVersioning();
// ...

Try that and see if things work.

Indeed, thanks for assistance!


Make preprint head tags show correct created/published dates

Ticket: []
Feature flag: n/a

Purpose

Make sure preprint detail page head tags show correct date, and not show that all preprints were published today

Summary of Changes

Use Preprint.datePublished instead of non-existent Preprint.dateRegistered

Screenshot(s)

Before

After

Side Effects

QA Notes

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 69.029%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
6076

Relevant Lines:
8550

💛  - Coveralls


[Toothpick] Adding a loader when trying to connect

Extension
https://github.com/raycast/extensions/tree/34c65c7f190ad172e46c75384600aa938f932e98/extensions/toothpick/
Description
It could be great to have a loader, the same way that macOS provides, when you try to connect to a bluetooth item. Because otherwise you've got no feedback and it's confusing.
Who will benefit from this feature?
The people.
Anything else?
No response

Alright, thank you :)


Fix broken remove/clear_figure link.

Fix #1857

This was a separate issue, but is now fixed as well.

There is a difference on clearing
On sideview the vertical line markers are kept. We keep also on topview the flightpath. So I think if that is not a tremdemous effort we should keep the vertical lines, indicating the flightpath in linearview too.

This is not easily possible as the lines are not stored as separate patches in contrast to the image in SideView. This requires refactoring beyond a stable fix. Please transfer this request to a new issue, which I will take care of in develop.


Future plans for react automata

Hi Michele,
I am curious if and how you are going to evolve this library in the coming month. I am sure there some new interesting ways to do things with the changes recently introduced to react and xstate. Anyway, just dropping by to say that I am happily using react automata in two of my projects and look forward to all the things statecharts and react that are happening.
👋 Ferdinand

I'll be making a pull request 🔜 to get XState V4 integrated into React Automata, so it can get all the new features.

Thank you very much for opening this issue, @ferdinandsalis.
I really appreciate your feedback, and I'm glad you enjoy using this library.
I saw @davidkpiano's awesome talk at the ReactiveConf, but I didn't have time to play around with v4 yet.
I'm open to suggestions, and I'll be happy to review a PR :)

Just an update: I'll have the PR by today.

EDIT: Bigger task than expected 😓 it would be a huge change.

Bummer!  What are some of the challenges?

Bummer! What are some of the challenges?

The way that react-automata handles executing actions is a bit different than how the XState built-in interpreter handles them. Not sure how to remedy this besides changing many files and ripping out a lot of code.
For reference, here is how XState can be implemented with React (using classes or hooks): https://xstate.js.org/docs/recipes/react.html


Use cachetool recipe with deployer.phar

Q
A

Issue Type
Question

Deployer Version
6.4.3

Local Machine OS
Windows

Remote Machine OS
Linex (Debian)

How can I use the cachetool recipe with deployer.phar?
I don't want to use Deployer with Composer...

Take a look at recioes repo

@antonmedv well I did, but it's only talking about the Composer install, which I don't want as I'm using the .phar file...

@picks44 even if you use deployer.phar, you need to create deploy.php with your configs, right? Include desired recipes there:
<?php
namespace Deployer;
require 'recipe/symfony4.php'; // or any other

// Application settings
set('application', 'Your App');
set('keep_releases', 3);
...

@picks44 even if you use deployer.phar, you need to create deploy.php with your configs, right? Include desired recipes there:
<?php
namespace Deployer;
require 'recipe/symfony4.php'; // or any other

// Application settings
set('application', 'Your App');
set('keep_releases', 3);
...

The symfony recipe is built-in to this repo, while third-party recipes for Bugsnag, Cachetool, Sentry and Slack (to mention some), are in a separate repo.
I am also wondering if there is a way to use these with the .phar file though.

I am cleaning up on issues. Fill free to reopen if needed.
Also, we have a new section available: discussions.


Konfetti doesn't work onAnimationEnd

KonfettiView doesn't work onAnimationEnd in an class that  implements Animation.AnimationListener. Still, it doesn't give any kind of error.
` public void onAnimationEnd(Animation animation) {
Toast toast = Toast.makeText("test");
toast.show();
    konfettiView.build()
            .addColors(Color.YELLOW, Color.GREEN, Color.MAGENTA)
            .setDirection(0.0, 359.0)
            .setSpeed(1f, 5f)
            .setFadeOutEnabled(true)
            .setTimeToLive(2000L)
            .addShapes(Shape.RECT, Shape.CIRCLE)
            .addSizes(new Size(12, 5f))
            .setPosition(-50f, konfettiView.getWidth() + 50f, -50f, -50f)
            .streamFor(300, 5000L);

}`

Any ideas?

I don't see anything that's wrong here. Are you sure the KonfettiView is visible/big enough on the screen?


Add support for UUID encoded string

Summary
Made the following changes to enhance ULID utility in this library.

Split out the encoder and decoder to separate files for easier file management
Add generation function directly to UUID
Add encoding to and decoding from UUID
Add conversion to/from UUID

Compatible with existing APIs and verified it working with internal projects.


Uc1

please test me

Test FAILed

hmmm jorc ping is taking more time in case of overcast, as it will not be using proxy at this moment.

please test this

ping test me

please test me

Test FAILed

increased ping_time to 2000 secs, but still package installation is not completed, increasing to 3000 secs and trying.

I see last test took ~2430 secs to finish the cloud init itself.

please test me

Test FAILed

please test me

Test FAILed

please test me

Test FAILed

please test me

please test me

Test FAILed

please test me

Test FAILed

Test FAILed

please test me

Test FAILed

please test me

Test FAILed

First green undercloud build :)

overcloud failed because of neutron network id resolution problem for tempest (we disabled self.instances for neutron_network), will check this.

please test me

Fixed the neutron_network issue in the puppet_neutron patch

Test FAILed

please test me

This build should be green I hope :)

Test FAILed

man bad status line :(

please test me

Test PASSed

please test overcloud

please test undercloud

please test me

Test FAILed

please test this

Test FAILed

please test me

Test FAILed

please test me

Test FAILed

please test me

Test FAILed

please test me

please test me

Test FAILed

Test FAILed

please test me

Test FAILed

please test me

Test FAILed

please test me

Test FAILed

please test me

now nova boot also throwing "bad status line" error :(
Creating server st1_testjenkins-puppet-rjil-gate-overcloud-112
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File<EMAIL_ADDRESS>line 254, in
num_retry=args.retry)
File<EMAIL_ADDRESS>line 88, in create_servers
server_id = self.create_server(userdata_file, key_name, **s)
File<EMAIL_ADDRESS>line 163, in create_server
config_drive=config_drive,
File<EMAIL_ADDRESS>line 926, in create
**boot_kwargs)
File<EMAIL_ADDRESS>line 540, in _boot
return_raw=return_raw, **kwargs)
File<EMAIL_ADDRESS>line 161, in _create
_resp, body = self.api.client.post(url, body=body)
File<EMAIL_ADDRESS>line 454, in post
return self._cs_request(url, 'POST', **kwargs)
File<EMAIL_ADDRESS>line 429, in _cs_request
resp, body = self._time_request(url, method, **kwargs)
File<EMAIL_ADDRESS>line 402, in _time_request
resp, body = self.request(url, method, **kwargs)
File<EMAIL_ADDRESS>line 373, in request
**kwargs)
File<EMAIL_ADDRESS>line 50, in request
response = session.request(method=method, url=url, **kwargs)
File<EMAIL_ADDRESS>line 465, in request
resp = self.send(prep, **send_kwargs)
File<EMAIL_ADDRESS>line 573, in send
r = adapter.send(request, **kwargs)
File<EMAIL_ADDRESS>line 415, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))

Test FAILed

please test me

Test FAILed

please test me

Test FAILed

please test me

Test FAILed

please test me

Test FAILed

please test me

overcloud was green(puppet-rjil-gate-overcloud/119/) , but underclould failed for last test, testing again

please test me

Test FAILed

Test FAILed

please test me

Test FAILed

please test me

Test FAILed

Last one was actually passed - undercloud passed, overcloud failed because of some reason cronjob for maybe-upgrade.sh did not run even a single time on oc1 even though the cron job was added. testing again

please test me

Test PASSed

yey!! both undercloud and overcloud passed!

please test me

Test FAILed


Use auth role for Meeting Assistant bot, and remove all permissions for unauthenticated Cognito identities

Remove Privileges for Unauthenticated Cognito Identities
identityPoolName: LMA-AISTACK-XXX-AgentAssistBot-IdentityPool
nonCompliantActions: ["lex:DeleteSession","lex:RecognizeText","lex:RecognizeUtterance","lex:PutSession"]
To remediate this issue, we will need to move to a different user authorization mechanism and remove the IAM action permissions that are listed as non-compliant on the Shepherd issue from the Cognito Identity unauthenticated role.
Related to Lex Web UI in LMA.  I think the embedded Lex Web UI (in the LMA CallDetail page) is using the unauth role, but it should probably be configured instead to use the auth role, based on the login token of the LMA UI page itself.

fixed in Feature/unauth role fix #61


Load balancing refactor

This PR is a draft of how the new load balancing code could look like. This is a continuation of efforts by havaker in #449, although I deviated from his ideas.
Design goals

Get rid of policy composability - it made the code hard to understand and slow, while not being that useful
Improve performance - the new design avoids any allocations on the fast path - the first few nodes in a plan are always outputted without allocation anything

New traits
The interface has been changed a bit:

LoadBalancingPolicy returns a special struct instead of Box<dyn Iterator>. This struct is an enum which can hold the common plan types implemented by the driver. This way we are able to avoid allocating the iterator when planning a query.
A load balancing plan operates on &Arc<Node> instead of Arc<Node> to avoid needless atomic operations
The plan iterator can borrow the policy, statement_info and ClusterData

pub struct StatementInfo<'a> {
    pub token: Option<Token>,
    pub keyspace: Option<&'a str>,
}

/// Policy that decides which nodes to contact for each query
pub trait LoadBalancingPolicy: Send + Sync {
    /// It is used for each query to find which nodes to query.\
    /// The generated plan can borrow any of the arguments for the whole query.
    fn plan<'a>(
        &'a self,
        statement_info: &'a StatementInfo,
        cluster: &'a ClusterData,
    ) -> LBPlan<'a>;

    /// Returns name of this load balancing policy
    fn name(&self) -> Cow<'_, str>;
}

/// Represents a load balancing plan generated by a load balancing policy.\
/// Common policies have their plan added as an enum to avoid needless allocations.\
/// In case of a custom policy it has to allocate a Box with its plan inside.
pub enum LBPlan<'a> {
    Dumb(DumbPlan<'a>),
    SimpleStrategyPlan(SimpleStrategyPlan<'a>),
    NoTokenNetworkStrategyPlan(NoTokenNetworkStrategyPlan<'a>),
    NetworkStrategyPlan(NetworkStrategyPlan<'a>),
    Custom(Box<dyn LoadBalancingPlan<'a> + Send + 'a>),
}

/// Each load balancing plan implements this trait.\
/// A plan is almost like an Iterator<Item = &Arc<Node>> but the lifetimes must be correct.\
pub trait LoadBalancingPlan<'a> {
    fn next(&mut self) -> Option<&'a Arc<Node>>;
}

Precomputing replica sets
Currently replica sets are computed dynamically for each query plan. While walking the token ring we have too keep track of already visited nodes, which causes allocations. This refactor introduces precomputing of these sets.
The driver looks at all existing keyspaces and finds maximum replication factors in the global ring and datacenter rings.
Then for each ring and each token it computes replica set for this ring's maximum replication factor.
Lower replication factor replica sets can be found by taking a prefix of maximum replication factor replicas.
This way we compute just enough data to serve any query instantly. When a replica set is needed the driver tries to find it in the precomputed data, but if for some reason the right replica set isn't currently available it falls back to dynamically generating one.
MainPolicy
Instead of having multiple load balancing policies there's now only MainPolicy. It can be provided with a local datacenter name and it does the right thing™.
Do we even need other policies?
Events?
The previous load balancing refactor PR (#449) considered adding events based on which load balancing policies can build their view of the cluster. Having events would also possibly remove the need to rebuild ClusterData from scratch each time cluster topology changes.
I'm not really convinced that they should be introduced along with this load balancing refactor, they introduce a lot of complexity, while the benefits don't seem that big to me. Not having to rebuild ClusterData would be nice, but it doesn't take that long. Precomputed replicas would probably need to be recomputed anyway, or would require some complex and error prone algorithm for dynamic updates. Maybe @havaker has something to comment about them.
TODO:

[ ] Is this the right direction to go in?
[ ] Is the code correct?
[ ] Is it faster? How much?
[ ] How do NetworkTopologyStrategy replicas work when a node doesn't have a rack?
[ ] How long does precomputing replica sets take for a reasonably sized cluster? How much memory does it use?
[ ] I do precomputing each time ClusterData is created, but that might be every 60 seconds when topology is updated (?) That would be really wasteful, it should only be recomputed when topology changes
[ ] Do we need other policies than the Main one?
[ ] Write documentation: comments, commit messages, book
[ ] Write tests, maybe even integration ones?

Pre-review checklist

[x] I have split my patch into logically separate commits.
[ ] All commit messages clearly explain what they change and why.
[ ] I added relevant tests for new features and bug fixes.
[x] All commits compile, pass static checks and pass test.
[ ] PR description sums up the changes and reasons why they should be introduced.
[ ] I added appropriate Fixes: annotations to PR description.

There are merge conflicts because I started my branch before e66c6d8f20817a119d5f813eab191d286a110f1d to avoid problems with  #487, #490

cc @havaker @psarna @piodul

This way we compute just enough data to serve any query instantly. When a replica set is needed the driver tries to find it in the precomputed data, but if for some reason the right replica set isn't currently available it falls back to dynamically generating one.

Is the implementation fully lazy, i.e. it only recomputes once it finds out that some replica isn't available? That might make the pessimistic case considerably more costly, so perhaps we should also periodically recompute as well, to keep the information sufficiently up-to-date.

Instead of having multiple load balancing policies there's now only MainPolicy. It can be provided with a local datacenter name and it does the right thing™.
Do we even need other policies?

(I know I'm answering a rhetorical question here) Yup, we already had users that implemented their own policies for their specific use cases.

Events?

I'm personally fine with dropping the idea of events if it simplifies the implementation.

@cvybhu can we close this? All of the work is being continued here: https://github.com/scylladb/scylla-rust-driver/pull/612 , right?


About editor tab multi-line display

Can you add the ability to display the editor tabs on multiple lines?
Currently only one line can be displayed and the others are inconvenient to view in an indented display list.
Just like idea can display tabs in multiple lines, thanks!

Hello @yexinfo,
Thanks for the feature request.

Multiple rows of editor tabs is really needed for many of us... I hope you'll consider implementing it soon. Thanks!

I'm afraid it is a limitation of external dependency for DBeaver and should be fixed there first:
https://stackoverflow.com/q/3059690/4662807
Unfortunately, there is a little the devs may do with it currently.


"nanoscope emulator" command fails with "no such file or directory"

I just installed nanoscope for the first time and get this when I try to run it. my $ANDROID_HOME is set.
$ nanoscope emulator
Zip already downloaded: /Users/munn/.nanoscope/roms/MZqhtX7x1poNum1SotQmpw==...
Launching emulator...
./emulator.sh: line 12: /Users/munn/Library/Android/sdk/emulator/emulator64-x86: No such file or directory

Any ideas how to fix it?

Unfortunately, updating emulator.sh to point to $ANDROID_HOME/emulator/qemu/darwin-x86_64/qemu-system-x86_64 results in:
Launching emulator...
emulator: autoconfig: -vendor ./vendor.img
emulator: autoconfig: -datadir .
emulator: Cannot find boot properties file: ./boot.prop

emulator: Found target API sdkVersion: 25

emulator: Invalid int property: 'ro.build.version.incremental:eng.leland.20180507.124526'
emulator: Target arch = 'x86'
emulator: Auto-config: -qemu -cpu qemu32
emulator: ERROR: New emulator backend requires minimum kernel version 3.10+ (currently got lower)
Please make sure you've got updated system images and do not force the specific kernel image together with the engine version

I think we need to build a new version of the emulator with a more recent Kernel.

Hey!
I really hope that you fixed your issue, but I'll post mine suggestion anyway (:
Had the same issue, fixed it by updating in file ~/.nanoscope/rom/<...>/emulator.sh
KERNEL_FILE=$ANDROID_HOME/system-images/android-25/google_apis/x86/kernel-qemu to
KERNEL_FILE=$ANDROID_HOME/system-images/android-27/google_apis/x86/kernel-ranchu-64
and
$ANDROID_HOME/tools/bin/sdkmanager "system-images;android-25;google_apis;x86" to
$ANDROID_HOME/tools/bin/sdkmanager "system-images;android-27;google_apis;x86"
and your suggestion too ($ANDROID_HOME/emulator/qemu/darwin-x86_64/qemu-system-x86_64)
It may be different for your installed emulator versions, I guess. Hope it helps!

The latest version of Nanoscope creates a proper AVD with the nanoscope emulator command. Please update to the latest version brew upgrade nanoscope and re-open if this doesn't fix your issue.


No such module 'SWXMLHash' on xCode 8.3.3

I'm having trouble adding SWXMLHash to my project under xCode 8.3.3.  I have followed the installation procedures exactly except I can not have the deployment target downgraded to 8.0 I need it at 9 and above or other things fail.  Can you direct me how to address this issue.

Which installation procedures are you using? Carthage? CocoaPods? Manual? If one of those, then can you also share the contents of your Podfile or Cartfile please?

CocaPods
Uncomment this line to define a global platform for your project
platform :ios, '10.0'
source 'https://github.com/CocoaPods/Specs.git'
target 'MyApp' do
Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
Pods for AWS Cognito User Pool
  pod 'AWSCognitoIdentityProvider'
  pod 'AFNetworking'
  pod 'SwiftCircularIconButtonWithProgressBar'
  pod 'SwiftyJSON', '3'
  pod 'Alamofire', '~> 4.4'
  pod 'HanekeSwift', :git => 'https://github.com/Haneke/HanekeSwift.git', :branch => 'feature/swift-3'
  pod 'AWSCloudWatch'
  pod 'AWSCognito'
  pod 'AWSEC2'
  pod 'AWSElasticLoadBalancing'
  pod 'AWSMobileAnalytics'
  pod 'AWSS3'
  pod 'AWSSES'
  pod 'AWSSimpleDB'
  pod 'AWSSNS'
  pod 'AWSSQS'
  pod 'Google/SignIn'
  pod 'PopupDialog', '~> 0.5'
  pod 'SwiftRangeSlider'
  pod 'SWXMLHash', '~> 4.0.0'

end

I was able to discern what was causing my issue.  I had previously renamed my cocoapods project before I ever loaded the SWXMLHash pods.  This caused the problem becuase it was targeting the prior project name.

Ahh, gotcha. Glad you got it figured out and thanks for updating the issue! Hope things are well.


alias 'gcs' doesn't work

running into an alias problem:
2024-03-01 01:52:32 /home/scripts/download.sh: line 12: gcs: command not found
Docker versions: 4.28.0, 4.17.0 (Win11)
tried to change download.sh file. now it says:
chmod: changing permissions of '/home/scripts/download.sh': Operation not permitted
any solutions?

Sorry for that!


block discovery doesn't account for parens, etc., in strings

An example from exercism.io (slightly modified to fit in the editor width):
(def fawls (= "" "("))

In the preceding code, if the cursor is at the beginning of the block and the proto-repl:execute-block command is sent, proto-repl is unable to find the end of the block, and if the cursor is at the end of the block, proto-repl identifies the block as:
(= "" "("))

and evaluates the expression as false, but does not define fawls.
Loving the package otherwise!

Thanks for letting me know about the issue.

Bug fix is released with 0.2.2 version.


Invalid Field Names

Describe the bug
“cn_length” instead of “cn_lenght”
“issuer_cn_length” instead of “issure_cn_length"
“ip_protocol”          instead of  “OP_PROTOCOL”
Expected behavior

Current behavior

Possible solution

Steps to reproduce

Screenshots

Context

Your Environment

Version used: 7.0.3
Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3):
Operating System and version (desktop or mobile):
Link to your project:

fixed with #227


Route::when() for Middleware

In L4 we were able to set filters for single route patterns,i.e. Route::when('api', 'filter');
Now with L5 we can apply Middleware  to single routes, route groups, or all http requests but seems like we are not able to select url patterns.
Is there any way to achieve this? Or is it a planned feature?

Please direct questions to the forums, or other mediums. I'm sure someone can help you there. :)

We have to keep our issues strictly for bugs so we can stand any chance of keeping track of everything. :)

@GrahamCampbell Where to request or discuss a new feature? I was also searching for an answer to why this was deprecated. Filters got replaced by middleware, but I see no reason to remove this route pattern (and even URI regex) feature. Desperately need this.

Forums and/or slack.

Which forums exactly? https://laracasts.com/discuss/channels/general-discussion/l5-routewhen-loading-filters-instead-of-middlewares?page=0 ?

@brazorf and anyone interested: I quickly mashed up the following example to add middleware to routes of a certain name like you can/could do with filters without changed the Router or Route class. You can easily change this to check the URI path.
$routes = $this->router->getRoutes()->getIterator();
$filters = 'admin.users';
$middleware = SiteContextMiddleware::class;

// Middleware route filter
// AKA Route::when() but for middleware
/** @var \Illuminate\Routing\Route $route */
foreach ($routes as $route) {
    // Add middleware to routes contained in filter
    if (starts_with($route->getName(), $filters)) {
        $route->middleware($middleware);
    }
}