Register account fails

Registering account...  fails with the traceback

Traceback (most recent call last):
File "/usr/share/univention-letsencrypt/acme_tiny.py", line 209, in
main(sys.argv[1:])
File "/usr/share/univention-letsencrypt/acme_tiny.py", line 205, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact)
File "/usr/share/univention-letsencrypt/acme_tiny.py", line 123, in get_crt
account, code, acct_headers = _send_signed_request(directory['newAccount'], reg_payload, "Error registering")
File "/usr/share/univention-letsencrypt/acme_tiny.py", line 69, in _send_signed_request
return _do_request(url, data=data.encode('utf8'), err_msg=err_msg, depth=depth)
File "/usr/share/univention-letsencrypt/acme_tiny.py", line 36, in _do_request
resp = urlopen(Request(url, data=data, headers={"Content-Type": "application/jose+json", "User-Agent": "acme-tiny"}))
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
....
File "/usr/lib/python2.7/httplib.py", line 1121, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 438, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 402, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ''

Running the data acme-tiny generates manually I get:

{
"type": "urn:ietf:params:acme:error:malformed",
"detail": "Parse error reading JWS",
"status": 400
}

Network etc works. nonce returned and looks good.

@tomdakl do you still get this error? Can you provide more details about your setup (python version, certificate details, etc.)?

Hello,
Should I hijack this or open a different issue ? please advise.
I have the same problem, namely urn:ietf:params:acme:error:malforme. I'm not using the entire acme-tiny script, just parts of it. I only needed the script to update my contact information. Since the script isn't really modular, I extracted the only functions needed to perform the operation. Help is appreciated although I understand that nobody is required to, especially since I'm not using the original acme-tiny script.
So, this is the error I get :
root@messagerie LETSENCRYPT # ./update_email.py
this is main
Traceback (most recent call last):
  File "./update_email.py", line 89, in <module>
    print _send_signed_request(url,reg_payload,error_msg)
  File "./update_email.py", line 59, in _send_signed_request
    return _do_request(url, data=data.encode('utf8'), err_msg=err_msg, depth=depth)
  File "./update_email.py", line 45, in _do_request
    raise ValueError("{0}:\nUrl: {1}\nData: {2}\nResponse Code: {3}\nResponse: {4}".format(err_msg, url, data, code, resp_data))
ValueError: something went wrong:
Url: https://acme-v02.api.letsencrypt.org/acme/new-acct
Data: {"protected": "eyJ1cmwiOiAiaHR0cHM6Ly9hY21lLXYwMi5hcGkubGV0c2VuY3J5cHQub3JnL2FjbWUvbmV3LWFjY3QiLCAiYWxnIjogIlJTMjU2IiwgImp3ayI6IHsiZSI6ICJBUUFCIiwgImt0eSI6ICJSU0EiLCAibiI6ICJ6NUVtWXNYQjlYOUt1MFpCMm9UcC1iNGo3S3NZdTJsU1Y0SjBkWnhWZ0t1ejV4aHJwZEpfcmltQWtwWU5qMlJ1LW5zW\
EVlQXlCVWtRemZVNlhSVHZVelBNcjZia0l5TzgxbThLTncwemxIUXpSQklURXd1MkNzRkEyOHdRZG0yWWhlNGRXX2RJcmJ6VnMyU3hFMTdDc2JlY3QxazdZa3h0RjNSUHRmV0p4SU1hTDFGaXJiRktPT21vX2t0TVVNM3kxS1BNVG0zQ2NBYXljTUhqMFBvZ3ZxWGJHbjk4bkV0NnhMWHpaTm0xV2p1dWZTWUZrS3doempSSVVaX1UwemN5WFlWWkdfa1F5bDIxd3Z\
DeDd4TnpZZTBockVMUnE0M1NyUXNicGc3NXB5VFdsMkh1Ri1LTDYyVHJRWGNpRERtU3FTcklkaGJYcmppSVExNkdfVWJ3eXRTQ09jNjNnQ0FnYzBIZjduTkZEZ01YN3JTdTR5OW4wdEMyLUZrTGx5UDdGR3FnaUxTdFpBUld4TjE1ajBEZjdFZEhETzhyZW96OEp3Zi0xb3pidmIzckNJM0xvQk95YzZwMG9ZSl9oRDNDenRXWEhUTFhtSDZteEdrYmF6WWkzU0p1N\
zllU1dhbGpxdThXRTJHRy0xWlZoNFh4VEhOamx6dUkxQlJneG9BcWFWbEZYWUVTTzVLN19JY2pKMzFnc2U2MVNXUEtYcHlnOGNHcXlvd0ZoRmwtV1ZpRk9vcjZwWHBwY195UmhUTTlRTDJVdTZvQU5jSDRDZGxRX3RvT1VBYlZjaDFIMF9xaC0tRk1UcThkSU0tZ19RRnIxOHBuX21qX05HNS1ZaTB1a2hFaGlmYk43TlBlaWpxYVBCa2xKenhtUHRHSGpxMDVENWp\
BbFhNZEM2YyJ9LCAibm9uY2UiOiAiMDAwMVRPc0ktYWtLaUV6SUJ4YUZuVXJCbUtvVVZ6c2JRTHQ5bGFYZmJEN0x6cFEifQ", "payload": "eyJjb250YWN0IjogIml0X3N5c0BhbGdlcmlhbi1yYWRpby5keiJ9", "signature": "c2HGtJ7bOBzog3ZPULGIdqTbftdjYvv9pb6f2AfC89ZZ-9dbsipl92VM0TAUbUmBttniSrV1KzbL-eD65gvi1x73XZG\
Q6W4FwRyCTUnB-oCgpuwZiRUOsUjxzybHYxGUupDTr6JnsWlYbhlwoO_M19RJTl4y4gtwSYc4HvLPau8keNJG7YPtQVxjUffcEAznJq2AzGvIsiww0OIMd_EfDI7Y7kEUsen7oXLHboccTFkcQUkQYgR8zuR_KQukpxGozOBceqN6rj-WZRd4sewkoPJ5hlcaQAATpD5HYwUD51zTHKkTWFXFLOn7r9AruVou7Vjzd_jvrRvDFEubjJhRoFNgjikxQKCrk58nF3mSO\
BR0vOTDbdD7LuP_lCpRKfnK5ZkQagsF40oRYaPOZg1NBsQPMT_J48TfG7ljKFc3Y9e2eyPtv2wE_PV2Y2S4wqfywImTDi-eERqG7IP_vqPGRx0P89_gWWcBWYl8DTm9XwwO4gcaIxaxT9yxKbO8jPzZ9x9u8q2by8zEFG_7_DHfUCsPKu2IIPY_iQn7DV84lxI34jSMbW3p2F0Ki0QS-kYKoxmk_HecIZ1GgkdZqFzD12i2qBrM36Ys7O9PHHEfXvFvwxChKEpR3iG\
8fQJ2Zm8Hg8sH9m4MsTDh6u8VQAI83lK8n0bA-LmQssTgJ2TiunY"}
Response Code: 400
Response: {u'status': 400, u'type': u'urn:ietf:params:acme:error:malformed', u'detail': u'Error unmarshaling JSON'}
root@messagerie LETSENCRYPT #

And this is the borrowed script from acme-tiny. I copy/pasted all functions. I only wrapped the lines that create the jwk dictionary inside a create_jwk function and call it in the main section. Also, I am using the URL directly instead of getting the URL from the directory.
#!/usr/bin/env python

# Stolen from https://github.com/diafygi/acme-tiny/blob/master/acme_tiny.py#L50
# Apparently, in order to perform any operation on letsencrypt servers, you need
# to call the related URI and pass its parameters through a json payload
# that you send along with the request. The payload needs to be signed with your account key.
# This is the only way for letsencrypt servers to authenticate you (no password needed).

import base64
import json
import subprocess
import binascii
import re

from urllib2 import urlopen, Request

# helper function - run external commands
def _cmd(cmd_list, stdin=None, cmd_input=None, err_msg="Command Line Error"):
    proc = subprocess.Popen(cmd_list, stdin=stdin, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    out, err = proc.communicate(cmd_input)
    if proc.returncode != 0:
        raise IOError("{0}\n{1}".format(err_msg, err))
    return out

# helper functions - base64 encode for jose spec
def _b64(b):
    return base64.urlsafe_b64encode(b).decode('utf8').replace("=", "")

# helper function - make request and automatically parse json response
def _do_request(url, data=None, err_msg="Error", depth=0):
    try:
        resp = urlopen(Request(url, data=data, headers={"Content-Type": "application/jose+json", "User-Agent": "acme-tiny"}))
        resp_data, code, headers = resp.read().decode("utf8"), resp.getcode(), resp.headers
    except IOError as e:
        resp_data = e.read().decode("utf8") if hasattr(e, "read") else str(e)
        code, headers = getattr(e, "code", None), {}
    try:
        resp_data = json.loads(resp_data) # try to parse json results
    except ValueError:
        pass # ignore json parsing errors
    if depth < 10 and code == 400 and resp_data['type'] == "urn:ietf:params:acme:error:badNonce":
        raise IndexError(resp_data) # allow 100 retrys for bad nonces
    if code not in [200, 201, 204]:
        raise ValueError("{0}:\nUrl: {1}\nData: {2}\nResponse Code: {3}\nResponse: {4}".format(err_msg, url, data, code, resp_data))
    return resp_data, code, headers

def _send_signed_request(url, payload, err_msg, depth=0):
    payload64 = "" if payload is None else _b64(json.dumps(payload).encode('utf8'))
    new_nonce = _do_request("https://acme-v02.api.letsencrypt.org/acme/new-nonce")[2]['Replay-Nonce']
    protected = {"url": url, "alg": alg, "nonce": new_nonce}
    protected.update({"jwk": jwk} if acct_headers is None else {"kid": acct_headers['Location']})
    protected64 = _b64(json.dumps(protected).encode('utf8'))
    protected_input = "{0}.{1}".format(protected64, payload64).encode('utf8')
    out = _cmd(["openssl", "dgst", "-sha256", "-sign", account_key], stdin=subprocess.PIPE, cmd_input=protected_input, err_msg="OpenSSL Error")
    data = json.dumps({"protected": protected64, "payload": payload64, "signature": _b64(out)})
    try:
        return _do_request(url, data=data.encode('utf8'), err_msg=err_msg, depth=depth)
    except IndexError: # retry bad nonces (they raise IndexError)
        return _send_signed_request(url, payload, err_msg, depth=(depth + 1))

def create_jwk(account_key):
    out              = _cmd(["openssl", "rsa", "-in", account_key, "-noout", "-text"], err_msg="OpenSSL Error")
    pub_pattern      = r"modulus:\n\s+00:([a-f0-9\:\s]+?)\npublicExponent: ([0-9]+)"
    pub_hex, pub_exp = re.search(pub_pattern, out.decode('utf8'), re.MULTILINE|re.DOTALL).groups()
    pub_exp          = "{0:x}".format(int(pub_exp))
    pub_exp          = "0{0}".format(pub_exp) if len(pub_exp) % 2 else pub_exp
    d                = {
        "e"   : _b64(binascii.unhexlify(pub_exp.encode("utf-8"))),
        "kty" : "RSA",
        "n"   : _b64(binascii.unhexlify(re.sub(r"(\s|:)", "", pub_hex).encode("utf-8"))),
    }
    return d

if __name__ == "__main__" :
    print "this is main"
    acct_headers = None
    reg_payload  =<EMAIL_ADDRESS>    url          = "https://acme-v02.api.letsencrypt.org/acme/new-acct"
    error_msg    = "something went wrong"
    account_key  = "user_account.private_key"
    alg          = "RS256"
    jwk          = create_jwk(account_key)

    print _send_signed_request(url,reg_payload,error_msg)

@ychaouche there are two problems:

contact should be a list of strings, not a string;
email addresses in contact should be prefixed with mailto:.

See https://tools.ietf.org/html/rfc8555#section-7.3 for details.

@felixfontein superbe ! the error has disappeared. I can't see anything in particular that transforms the--contactargument in acme_tiny.py into a list, so I assumed it to be a string.
contact is taken from the command line argument
parser.add_argument("--contact", metavar="CONTACT", default=None, nargs="*", help="Contact details (e.g<EMAIL_ADDRESS>for your account-key")
Passed as is to the main function get_crt
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact)
And is also passed as is to the _send_signed_request function
account, _, _ = _send_signed_request(acct_headers['Location'], {"contact": contact}, "Error updating contact details")
Could this be a hint to OP ?

@ychaouche the nargs="*" tells the parser that you can specify --contact multiple times, and that the result should be a list. See the documentation of argparse: https://docs.python.org/3/library/argparse.html#nargs
(BTW: you should migrate to Python 3 syntax; Python 2 is almost End of Life now.)

Could this be a hint to OP ?

I think not, that seems to be a different problem. The error detail for OP was Parse error reading JWS, while the one for you was Error unmarshaling JSON. Yours mean that Boulder (Let's Encrypt's server software) was not able to decode the JSON to its internal data structures (i.e. your JSON did not conform to the RFC5888 specs), after verifying that the signature is correct. The one for OP means that there was a problem with the signature (or something required for it).

Close this issue as obsolete. Please comment if you are still experiencing it. I've updated the test suite to be way easier to set up and run on your local system, so that may help you troubleshoot.


robin-map: 1.0.0 -> 1.0.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/robin-map/versions.
meta.description for robin-map is: "C++ implementation of a fast hash map and hash set using robin hood hashing"
meta.homepage for robin-map is: "https://github.com/Tessil/robin-map"
meta.changelog for robin-map is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.0.1 with grep in /nix/store/200s1fl8rvmkci8b547ziafq22lcd7ln-robin-map-1.0.1

found 1.0.1 in filename of file in /nix/store/200s1fl8rvmkci8b547ziafq22lcd7ln-robin-map-1.0.1

Rebuild report (if merged into master) (click to expand)

12 total rebuild path(s)

6 package rebuild(s)

6 x86_64-linux rebuild(s)
6 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
blender
opencolorio
openimageio2
python310Packages.bpycv
python39Packages.bpycv
robin-map

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/200s1fl8rvmkci8b547ziafq22lcd7ln-robin-map-1.0.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A robin-map https://github.com/r-ryantm/nixpkgs/archive/76177a7ec69a0e92b9d0d1868b380257014e3fc9.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/200s1fl8rvmkci8b547ziafq22lcd7ln-robin-map-1.0.1
ls -la /nix/store/200s1fl8rvmkci8b547ziafq22lcd7ln-robin-map-1.0.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package failed to build:

python310Packages.bpycv

5 packages built:

blender
opencolorio
openimageio2
python39Packages.bpycv
robin-map

Maintainer pings
cc @cillianderoiste @jtojnar for testing.

Changes look okay, not building tests.


Wordpress Example: clarify GCE zone

Fixes  #8825

oops, editing in github is using a different email

yep, will do

@krousey updated =)

LGTM


Check scenarios were a modification of the operator deployments is needed

Is your feature request related to a problem? Please describe.
Like tls, vault ecc (this issue as an example https://github.com/rabbitmq/messaging-topology-operator/issues/500)
It looks like we can't directly modify a deployment but the csv which will eventually modify the deployment.
To see if this has some drawbacks on upgrade for example or some other edge cases to cover
Describe the solution you'd like
Nothing in particular, to better tests all these scenarios
Describe alternatives you've considered
No response
Additional context
No response

Regarding this issue after some exploration/research done:
The operators deployments can't be edited directly (adding env variables or mounting volumes ecc..) because the csv (cluster service version) will revert the modifications back.
We can directly modify the csv, the csv will upgrade the deployment.
The issue with this strategy is that whenever the operator get upgraded (with a newer version) OLM is reverting back the deployment modifications done.
A persistent solution is that the deployment can be overridden with the Subscription itself for some fields like env and volume/volume mounts: https://github.com/operator-framework/operator-lifecycle-manager/blob/master/doc/design/subscription-config.md#configuring-operators-deployed-by-olm
This fields are the ones we need for our scenarios (adding env variables to the container for example for the vault scenarios) or mounting a volume for the messaging operator in case of tls.
I tested this strategy and is working fine.

Hi think all scenarios and limitations have been covered including: https://github.com/rabbitmq/OLM-Package-Repo/issues/21
I'll cose this issue


Minor: Replace BooleanArray::extend with append_n

Which issue does this PR close?

Closes https://github.com/apache/datafusion/issues/13144.
Rationale for this change
More concise and potentially more performant API

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Thanks for the review


Build(deps-dev): Bump eslint-plugin-testing-library from 5.2.1 to 5.3.0 (#3341)

Pull request opened by the merge tool on behalf of #3341

Merged in 9f65779cd854ca340799ca11155fc54c5b50971e


[WIP] Format interior of brace macros

Resolves #3445.
The primary change is in macros.rs and un-skips formatting of brace macros (simply removes the conditional).
The other change is in imports.rs and address what seems to be a general bug in which Use statements aren't formatted when there's an empty attrs array. Perhaps it would be better to address the underlying cause of Some([]) (or even why use Option when an empty Vec has the same semantics as None).

Sorry for the delay in commenting! Can you move the change of imports.rs into a separate PR and add a test for it ? This way we could solve the problem you found while still pondering the formatting of brace macros.

Looks like someone already applied the fix to imports. Still would be nice to have formatting inside of brace macros when the interior is rust code (e.g., in quote!).

My apologies for the late review.

The primary change is in macros.rs and un-skips formatting of brace macros (simply removes the conditional).

IMHO, the current macro formatting is not good enough for enabling this. As such, I am closing this PR as won't merge. Thanks!


onSave method called twice if both saveOnBlur and saveOnEnter attributes set to true

We are using ngx-inline-editor with hideButtons set to true and want to have the input text value saved either when the user presses Enter or clicks outside the input, causing the the input to blur, so we have set both saveOnBlur and saveOnEnter to true. This causes the method bound to onSave to be called twice if the user presses Enter, perhaps because that action causes the input to blur. Since the same user action is triggering the save, I think that the onSave method should only be invoked once.

I understand your problem and you are right! onSave should only trigger once
Thanks for your reporting 👍

It is fixed in 0.2.0-alpha.9 😄


(wip) Add form-based/zgram-based slash commands with ephemeral messages.

This is very raw, and it's currently stacked on #9424.
@lonerz This is the zgram PR.
You can do things like "/form_letter quiz" or "/form_letter convert".

There's still nothing to merge here, but I did push up a prototype way of documenting the JS-based widgets.

Closing.  Some of this has been merged, and the remaining pieces are on #9729.


Add device registryID

I don't have access to a MacOS device right now, but this should compile and run fine. If you would like to wait a couple days I might be able to get access to an Apple device to test this on. More documentation found here https://developer.apple.com/documentation/metal/mtldevice/2915737-registryid

Published in https://crates.io/crates/metal-rs/0.6.6


extend list of supported OS by Debian bullseye, sid.

Signed-off-by: corbolais<EMAIL_ADDRESS>

Noticed one patch slipped in not concerngin Debian sid: valid_ip_wPort(). This function is additionally checking for a port. Syntax:
<IP_ADDRESS>:5353

Rationale: I am running a validating recursive nameserver (unbound) on <IP_ADDRESS>:5353 . I want vpn clients to use this service on that port instead of a default port of 53/udp.

valid_ip_wPort: sorry for the noise.

@corbolais Thanks a lot for this, however i have to Deny this one,
1 - No changes are pushed directly to master,
2 - We are locking down Master branch as Test has a lot of new code and changes that will after take over the master branch, you should pull that one and push those fixes there if they still exist.
Once again, sorry for this, and thanks a lot for helping to improve pivpn.


The must-see 3D demo youtube video is private?

Hey, I am new to velocity and I would like to learn how you made the 3d effect.

It's mentioned that the must-see video is at https://www.youtube.com/watch?v=MDLiVB6g2NY, but unfortunately, the video is  private. Any chance to make it public again? Or is there another resource where this example is explained?

Hi any chance that the video is set to public again?

Sorry, I don't know who that was created by, and have no control over it, @julianshapiro any clue?


Release Work Items Variable

Hello,
Is there a way to retrieve the release work items via a variable?
We'd like to automate our release notes via such a variable.
Looking at https://docs.microsoft.com/en-us/azure/devops/pipelines/release/variables?view=azure-devops&tabs=batch we weren't able to find it.
As an alternative, maybe you could change the default value of Release.ReleaseDescription to be the list of linked worked items.
Thank you,
Cosmin

Thank you for your feedback. I have passed this on to the product team for advice. In addition, suggestions and feature requests related to the product rather than the documentation can be posted on the Developer Community website at https://developercommunity.visualstudio.com/spaces/21/index.html, where they are tracked by the product teams.

No, work items associated with the release are not available as release variables.


Fix GroupNorm type hint for param num_groups.

What does this PR do?
In GroupNorm, num_group can be set to None if group_size is set. However, currently doing so the linter (LSP) will throw an error: "Argument of type None cannot be assigned to parameter "num_group" of type "int" ..."
This PR fix that.
Checklist

[x] This PR fixes a minor issue (e.g.: typo or small bug) or improves the docs

Codecov Report

Merging #1657 (fdf66c0) into main (004a118) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1657   +/-   ##
=======================================
  Coverage   83.10%   83.10%
=======================================
  Files          69       69
  Lines        5836     5836
=======================================
  Hits         4850     4850
  Misses        986      986

Impacted Files
Coverage Δ

flax/linen/normalization.py
96.61% <100.00%> (ø)

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 004a118...fdf66c0. Read the comment docs.


3djan/improve api

Applying suggestions from review of #394 regarding the API

Fixing typos
InverseNode -> AddInverseNode
Zero based enums

@3dJan, does this PR encompass the complete set of API changes you intended to make?

Yes


Check K8s config is valid during k8s integration validation

Describe your changes and why you are making these changes
We check whether a cluster is ready by querying its kube-system namespace.
@kenxu95 not sure how to add test for this one, but I tested it manually and it works. :)
Related issue number (if any)
Loom demo (if any)
Checklist before requesting a review

[ ] I have created a descriptive PR title. The PR title should complete the sentence "This PR...".
[ ] I have performed a self-review of my code.
[ ] I have included a small demo of the changes. For the UI, this would be a screenshot or a Loom video.
[ ] If this is a new feature, I have added unit tests and integration tests.
[ ] I have run the integration tests locally and they are passing.
[ ] I have run the linter script locally (See python3 scripts/run_linters.py -h for usage).
[ ] All features on the UI continue to work correctly.
[ ] Added one of the following CI labels:

run_integration_test: Runs integration tests
skip_integration_test: Skips integration tests (Should be used when changes are ONLY documentation/UI)

@kenxu95 added the commented out test and linked to an issue.


Verify that Node 14 is installed in development

Avoids weird async await errors when running service tests!
Follow-on to #6652

Warnings

:warning:

This PR modified package.json, but not package-lock.json - Perhaps you need to run npm install?

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @paulmelnikow!

  Generated by :no_entry_sign: dangerJS against c55044eb829c700f60db73f59ee448b56827c368


Update HeroImg.jsx

MY FIRST CONTRIBUTUON

MY FIRST CONTRIBUTUON

Instead of writing "My first contribution" write what changed youve made in this PR, that way it would be easier for it to get merged

https://github.com/ArslanYM/StarterHive/pull/118
is this ok sir


deis run doesn't work

run should be a job template than a pod and shoudl change according to the app type.

@smothiki What do we need to do here? The Job Template is out of scope unless we can guarantee k8s 1.2 being our target.

I created this issue to keep track not as a part of deis v2.

closing this in favor of https://github.com/deis/workflow/issues/362


flutter docto FormatException: Unexpected extension byte (at offset 5) in IntelliJ IDEA 2021.3.2 (Ultimate Edition)

Hi,
I'm getting error with flutter doctor and IntelliJ IDEA 2021.3.2 (Ultimate Edition). Does someone know the solution?
Thanks a lot!
Logs:
[☠] IntelliJ IDEA Ultimate Edition (the doctor check crashed)
    X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know
      about this issue at https://github.com/flutter/flutter/issues.
    X FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
      #2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1426:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1861:10)
      #15     runZonedGuarded (dart:async/zone.dart:1849:12)
      #16     runZoned (dart:async/zone.dart:1780:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:205:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:309:47)
      #20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:50:48)
      #21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1320:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure>
      (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>

I am getting exactly the same error on my MacBook Pro. Flutter version: Channel stable, 2.10.1, on macOS 12.1 21C52 darwin-arm, locale en-SE).

I'm using Win10 Pro 21H2. And also flutter stable 2.10.1

Flutter (Channel stable, 2.10.1, on Microsoft Windows [Version 10.0.19044.1526])
[√] IntelliJ IDEA Community Edition (version 2019.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at
https://github.com/flutter/flutter/issues.
X FormatException: Unexpected extension byte (at offset 5)
• #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
#1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
#2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
#3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
#4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
#5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
#6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
#7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
#8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
#9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
#10     asyncGuard. (package:flutter_tools/src/base/async_guard.dart:111:32)
#11     asyncGuard. (package:flutter_tools/src/base/async_guard.dart:109:18)
#12     _rootRun (dart:async/zone.dart:1426:13)
#13     _CustomZone.run (dart:async/zone.dart:1328:19)
#14     _runZoned (dart:async/zone.dart:1861:10)
#15     runZonedGuarded (dart:async/zone.dart:1849:12)
#16     runZoned (dart:async/zone.dart:1780:12)
#17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
#18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:205:9)
#19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:309:47)
#20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:50:48)
#21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1320:12)

#22     FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1161:27)

#23     AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)

#25     FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)

#26     AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)

#28     run.. (package:flutter_tools/runner.dart:62:9)

#29     AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#30     main (package:flutter_tools/executable.dart:94:3)

Just after updating Flutter Plugin to 64.1.4 and Dart to 213.5744.122

The same thing happens to me from mac:
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.6 20G165 darwin-arm, locale es-ES)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
✗ FormatException: Unexpected extension byte (at offset 5)
[✓] VS Code (version 1.64.2)
[✓] Connected device (1 available)

@0xMLNK and everyone facing this issue, please note below:
This was a known issue that has since been fixed. The initial report was in https://github.com/flutter/flutter/issues/94060.
The fix is available on the master channel not yet rolled out to latest stable. Check this issue comment for your reference: https://github.com/flutter/flutter/issues/94060#issuecomment-1018801980
Closing this, since it is already fixed and a duplicate of original linked issue.

Thanks for advice. Everything works.
PS D:\dev> flutter doctor Checking Dart SDK version... Downloading Dart SDK from Flutter engine ... Expanding downloaded archive... Building flutter tool... Running pub upgrade... Downloading Material fonts...                                      235ms Downloading Gradle Wrapper...                                       13ms Downloading package sky_engine...                                   57ms Downloading flutter_patched_sdk tools...                           138ms Downloading flutter_patched_sdk_product tools...                   139ms Downloading windows-x64 tools...                                 1,578ms Downloading windows-x64/font-subset tools...                        52ms Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel master, 2.11.0-0.0.pre.582, on Microsoft Windows [Version 10.0.19044.1526], locale en-DE) [✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) [✓] Chrome - develop for the web [✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.6) [✓] Android Studio (version 2021.1) [✓] IntelliJ IDEA Ultimate Edition (version 2021.3) [✓] VS Code (version 1.64.2) [✓] Connected device (3 available) [✓] HTTP Host Availability


rgbcolormap with segmentation overlay

Hello,
I´m trying to write some .png files from the slices of some medical images. So far everything worked fine. The problem comes when I try to do this with a segmentation overlay. The code where it fails:
    image = sitk.GetImageFromArray(image)
    maxi = sitk.MinimumMaximumImageFilter()
    maxi.Execute(image)
    rang = maxi.GetMaximum() - maxi.GetMinimum()
    img = image + np.abs(maxi.GetMinimum())
    img = 65535 * (img / rang)
    img = sitk.Cast(img, sitk.sitkUInt16)
    colormap = 'jet'
    if color=='grey':
        pass
    elif color=='jet':
        img = sitk.ScalarToRGBColormap(img, sitk.ScalarToRGBColormapImageFilter.Jet)
    elif color=='hot':
        img = sitk.ScalarToRGBColormap(img, sitk.ScalarToRGBColormapImageFilter.Hot)

    final_mask = sitk.GetImageFromArray(final_mask)

    green = [0, 255, 0]
    combined = sitk.LabelOverlay(image=sitk.Cast(img,sitk.sitkUInt16),
                                 labelImage=sitk.Cast(final_mask, sitk.sitkUInt8),
                                 opacity=0.8,colormap=green)

You can assume that image and final_mask come from numpy arrays. The problems seems that the labelOverlay does not work when I previously apply the jet colormap to the image. If I don´t apply the  sitk.ScalarToRGBColormapImageFilter.Jet everything works fine, but the final image is in grayscale, I would like to get the same result that appears in the attached file, but instead of greyscale I want to be able to specify any colormap (jet in this case, but it can vary). The segmentation overlay should be as in the attached file as well. The error I get:

RuntimeError: Exception thrown in SimpleITK LabelOverlay: d:\a\1\sitk\code\common\include\sitkDualMemberFunctionFactory.hxx:201:
sitk::ERROR: Pixel type: vector of 8-bit unsigned integer is not supported in 3D byclass itk::simple::LabelOverlayImageFilter

Assuming the combined variable is created without errors I can then write the slices of that image.
I understand that basically it can´t be done the way I tried. But I couldn´t find any workaround this.

PD: I know this can be somehow solved using matplotlib, but simpleitk is way faster at writing multiple slices, so I would prefer to stick to it if possible
Thanks in advance

Hello @manuel-lincbiotech,
Please take a look at the results visualization notebook for a guide on how to visualize results using SimpleITK, it describes how to do the label overlay on high dynamic range images and a variety of other ways to visualize results.

Thanks @zivy
The code I provided is already based on what I saw in the segmentation overlay section. Maybe is there another way of doing it like the alpha blending method? the segmentation overlay method seemed easier though.

Hello @manuel-lincbiotech,
Took a second look at your code and it looks a bit strange. The first section, ending before final_mask =..., creates a single channel image img which is then either left alone, color=='grey', or converted to a three channel color image using one of two colormaps. Is the original, image, supposed to be the segmentation/labelmap/overlay or is this your anatomical image? Based on the call to sitk.LabelOverlay it appears that this should be the anatomical image. The conversions to three channel color images is strange, and won't work with the LabelOverlay.
To use the LabelOverlay you supply it with a single channel (anatomical image), a segmentation image (`sitk.sitkUInt8, sitk.sitkUInt16...) and the colormap.
If you can share the anatomical image and segmentation we can probably resolve this quickly.

Yes, I attach a file with both the image and the segmentation. The thing is that I want sometimes the final .png to have the anatomical image in greyscale (like in the previous image) and sometimes I want it in a specific colormap (like hot or jet). Then I want to overlay a segmentation with a specific color (which I specified in the green variable, as in this case I wanted it green, other times I might want it red). I also attach an example of how I would like the final png to appear (obtained with itk-snap), the only difference is that I would like the segmentation to appear green intead of red.
*For the attached image and segmentation it might be flipped (not important, but to get the exact same image orientation you would need to apply img = img[:,::-1,:]).
example.zip

Hello @manuel-lincbiotech,
Now I have a better understanding of what you want, solution below.
Some things to note, you were manually rescaling the intensities to [0, 65535] using multiple operations this can be done in one line:  img = sitk.Cast(sitk.RescaleIntensity(image, 0, 65535.0), sitk.sitkUInt16).
The code below uses the alpha_blend and make_isotropic functions found in the notebook:
#Dictionary with functions mapping a scalar image to a three component vector image
image_mappings = {'grey': lambda x: sitk.Compose([x]*3),
                  'jet' : lambda x: sitk.ScalarToRGBColormap(x, sitk.ScalarToRGBColormapImageFilter.Jet),
                  'hot' : lambda x: sitk.ScalarToRGBColormap(x, sitk.ScalarToRGBColormapImageFilter.Hot)}

image = sitk.ReadImage('example/image.nii')
segmentation = sitk.ReadImage('example/seg.nii')

#Make the images isotropic so that when we save a slice along any axis
#it will be fine (most image formats assume isotropic pixel sizes).
#Segmentation is interpolated with nearest neighbor so we don't introduce new
#labels.
image = make_isotropic(image, interpolator = sitk.sitkLinear)
segmentation = make_isotropic(segmentation, interpolator = sitk.sitkNearestNeighbor)

#Convert image to sitkUInt8 after rescaling, color image formats only work for [0,255]
image_255 = sitk.Cast(sitk.RescaleIntensity(image, 0, 255), sitk.sitkUInt8)

colormap = 'jet'
vec_image = image_mappings[colormap](image_255)
vec_segmentation = sitk.ScalarToRGBColormap(segmentation, sitk.ScalarToRGBColormapImageFilter.Green)
vec_combined = sitk.Cast(alpha_blend(image1=vec_image, image2=vec_segmentation,alpha=0.0, mask2=segmentation==1), sitk.sitkVectorUInt8)

sitk.Show(vec_image, 'image')
sitk.Show(vec_segmentation, 'segmentation')
sitk.Show(vec_combined, 'blended')

Thanks @zivy  that did work,
I think I understand a bit better how to do it, I had some fundamental issues I didn´t understand. But that worked just fine.


Jquery Plugin

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

I'm submitting a ...
[ ] bug report
[X ] feature request
[ ] question about the decisions made in the repository

Do you want to request a feature or report a bug?

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).

What is the expected behavior?

How to add Jquery Plugin (datatables.net) ?

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Angular version: 2.0.0-beta.X
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

I've been trying to add a jQuery plugin to this seed literally for a week.  I've spent around 60 hours looking at this, dug through blog posts tried every plugin imaginable but it doesn't work  and have now given up and am going to try other options.
My plugin is a commercial stock charting product.  It has many dependencies on other jQuery plugins and Modernizr/Detectizr etc and nothing I can do can get Webpack to play nice with it.
I wish I could get it to work but I just can't.  Frustratingly the System.js angualr 2 seed doesn't support debugging in vscode.

You definitely should have a look to #723 and the Wiki ;)


Feature/sg 747 add full pipeline with preprocessing

Includes code from https://github.com/Deci-AI/super-gradients/pull/804, so https://github.com/Deci-AI/super-gradients/pull/804 needs to be merged first

@shaydeci I also updated the Results  classes to work with the changes that were introduced in the previous PR, so you can check it out now src/super_gradients/training/models/results.py


Change 'master' branch labels to 'main'

Why:
Following the guide leads a confusing extra non-default 'master' branch on new repositories
What's being changed:
instructions lead to files being pushed to 'main' instead of 'master' on Windows/Linux (Mac already changed as of this PR)
Check off the following:

[x ] All of the tests are passing.
[ x] I have reviewed my changes in staging.
[x ] For content changes, I have reviewed the localization checklist
[x ] For content changes, I have reviewed the Content style guide for GitHub Docs.
I've actually done none of these, it's literally a two word change. MWAHAHAHA

If you haven't already, you can add yourself to the list of contributors by creating a new comment in this PR using these instructions. Thanks again! :sparkles:


The BoundingBox could not be found

The BoundingBox structure definition could not be found in palmlib.cpp and palmlib.h

We have fixed this issue: in palmlib.h file, the Landmarks structure has been modified into the BoundingBox structure

Thank you very much for your prompt answer to my question.
I am a beginner of c and not very familiar with it. I found some other problems when running the code. I would appreciate it if you could help me with them:

undeclared identifier error (C2065) on those names: t3(lines528,1344), edge_begin(line582,609), edge_end(line581,608), binaryImage(line1292,)
"scale" is not a member of "Landmarks" (C2039)in line 1467.

We have fixed this issue: in palmlib.h file, the Landmarks structure has been modified into the BoundingBox structure

Thank you very much for your prompt answer to my question.
I am a beginner of c and not very familiar with it. I found some other problems when running the code. I would appreciate it if you could help me with them:
undeclared identifier error (C2065) on those names: t3(lines528,1344), edge_begin(line582,609), edge_end(line581,608), binaryImage(line1292,)
"scale" is not a member of "Landmarks" (C2039)in line 1467.

Thank you for your detection. In our cleaning code process, we have lost some definitions. We have updated them in palmlib.h and palmlib.cpp files.

Thank you for your detection. In our cleaning code process, we have lost some definitions. We have updated them in palmlib.h and palmlib.cpp files.

I read your article Recognizing Palm Vein in Smartphones Using RGB Images. I am not really understand how to crop such a piece to a 160 * 160 palm center area [Algorithm 2: Extracting palm vein ROI: 1) crop to the center square image Ic and scale down to smaller image Is (160 × 160 pixels)].
Does this have anything to do with the frame(line1270)? At first I changed the frame to rgbImage, but I find this is not correct.
Could you add the definition of frame(line1270)?

We have changed frame to rgbImage. Please see example croppedImage


Please invite me to the GitHub Community Organization

Please invite me to the GitHub Community Organisation.

Name:Sweta Barnwal

Discord Username(if exists):swetakb15#2162

Additional Context:

Hello
My name is Sweta Barnwal. Currently, I'm pursuing B.tech in the CSE stream from the Indian Institute of Information Technology, Kalyani. I am new to open-source contributions. As of now, I have worked in development with technologies like Frontend, different libraries of python, languages in my box are  C,C++,Java and Python . I explore a new tech field and as of now, I want to concentrate in the field of data structures and algorithm. I am an enthusiastic learner and explorer.

:nerd_face:

I am getting a 404 error.

hi @swetakb15 , could you be more specific about where you are getting the 404? The GitHub org got renamed recently, so some links have still not be updated - sorry for the confusion (it was EddieJaoudeCommunity but is now EddieHubCommunity)
You should still get the invitation. I see your invitation is pending, you can accept it by visiting the organisation page and there should be a message at the top, and you should receive an email with a link too. Any issues let us know


"Balota de Jos" , "Balota de Sus" , "Bușteni" . "Gaia" are listed in the drop-down menu

Description:
When user writes ”Balota de Jos" , "Balota de Sus" , "Bușteni" . "Gaia" the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Balota de Jos"

Expected results
The location appears in the drop-down menu as "Sat Balota de Jos, DOLJ (Murgași)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Balota de Sus"

Expected results
The location appears in the drop-down menu as "Sat Balota de Sus, DOLJ (Murgași)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Bușteni"

Expected results
The location appears in the drop-down menu as "Sat Bușteni, DOLJ (Murgași)".

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Write in the search bar "Gaia"

Expected results
The location appears in the drop-down menu as "Sat Gaia, DOLJ (Murgași)".


RETRY operation did not work on botium-cli

Hi,
One or two tests in my automation are failing with an api error and I wanted to use the retry operation but it did not work on botium-cli.  I tried with 'RETRY_USERINPUT_ONERROR_REGEXP' set to the error message and retry count set to 1 in the botium capabilities. I also tried with RETRY_USERSAYS_ONERROR_REGEXP but the result was the same. Can you please help with the right example on how to use the retry operation on botium-cli?
Thanks,
Ram

Hello,
I suppose error is coming on conversation, not on establishing connection? In this case this has to work:
"Capabilities": {
  "CONTAINERMODE": "...",
  "RETRY_USERSAYS_NUMRETRIES": 1,
  "RETRY_USERSAYS_ONERROR_REGEXP": "<text to filter the error message, like 'timeout error'>"
}

Hi @ujja , I tried this and it didn't work.
"RETRY_USERSAYS_ONERROR_REGEXP": "Hmm … something did not work. Please try again in a bit.",
"RETRY_USERSAYS_NUMRETRIES": 1,


Construction from iterator

The from_slice() constructor could be supplemented (or replaced?) by a from_iterator() constructor.

FromIterator has been implemented. I may keep the from_slice() for now, as it allows construction using cloning. Still thinking about this one, though.

I'm going to close this. For now, I'm keeping from_slice() as a method, but I will likely investigate a better way to clone values later (perhaps &[..].into_iter().cloned().collect::<NestedContainmentList>() would be the best way for slice conversion, honestly?). Conversion from slices is a separate issue than what is involved here.


Update SiTcp.py

Increased buffer size

Can you pull this to development?

@MarcoVogt  Can you pull this to development?


Resource Response make() method

Parameter #1 ...$parameters of static method
Illuminate\Http\Resources\Json\JsonResource::make() expects
Illuminate\Http\Resources\Json\dynamic, App\UserResource given.

The issue is the type dynamic that doesn't exist on phpstan.
     * Create a new resource instance.
     *
     * @param  dynamic  $parameters
     * @return static
     */
    public static function make(...$parameters)```

@ondrejmirtes Any plans supporting this? Otherwise I can try do something on Larastan.

The issue is the type dynamic that doesn't exist on phpstan.
    /**
     * Create a new resource instance.
     *
     * @param  dynamic  $parameters
     * @return static
     */
    public static function make(...$parameters)

@ondrejmirtes Any plans supporting this? Otherwise I can try do something on Larastan.

What does dynamic mean? Guessing from the code "a mixed type, but all arguments may be the same" ?

@brendt Yeah. Anyway, I will try to take a look at that ☺

I think I fixed this one: https://github.com/laravel/framework/pull/25078


Type .

For some situations the hover-for-type-info shows as <none>.<none>.  Here's a screen grab where I'm hovering over code on line 15:

I also note that if I hover over code as my first inspection after starting Atom, I do get a type information for code of java.lang.String.  But if I hover elsewhere first, and then go to code I get <none>.<none>.
Presumably related to https://github.com/ensime/ensime-server/issues/765

Thanks for reporting!
I have noticed this too. I haven't digged really deep, but it is the Ensime server that answers this way. For me it seems to happen if I look around too much before the server has been warmed up. I was going to try to report it as an issue in Ensime server but I see it has already been reported. And with a reference to this issue I guess we can guess that it is a server issue and not Emacs + Atom :)

The work around mentioned on the Ensime ticket seems to be some combination of keys to manually trigger the type lookup.  Is something like that worth thinking about here until it's sorted?
BTW, thanks for starting this project. Looks very interesting!

Ah, will look into that!
Thanks for encouragement!

@d6y That workaround doesn't help for me in either Emacs or Atom. The server basically just answers . whoever asks however. Sometimes. The same location can work just fine after a reload.
Either this is a pure server issue or some stateful thing that I've missed in Atom, like "you need to do this thing first before asking that", but since I get the same in Emacs, I'll bet server. It's a bit of a threshold right now for me to do anything server related but the Ensime guys seems really responsive so maybe if we scream loud enough and provide a good isolated test case. Hint, hint :)

I just noticed that it often gets better after a forced "typecheck all". In my test project it starts to show types on everything :) Maybe this is something the Emacs client does automatically…

yup, this happens when the analyser is not yet ready. I'd recommend not doing hover overs until the analyser is ready (and perhaps even filtering this exact response and not showing it)

I'm going to do a little rehaul on the Atom package's "state". Atom's normal way with "activation commands" doesn't seem to support things like stopping your package so that whole thing is a bit broken at the moment. For instance you can do "start ensime, stop ensime, stop ensime again" (no commands are removed when deactivating the package) . I therefore need to do some kind of manual handling of what commands are available. I bet I can fix this one on the same go.
See https://github.com/hedefalk/atom-ensime/issues/12#issuecomment-110918235

Just wanted to comment that I'm on 0.9.0 of this plugin, and after running ensime-start, seeing ensime update, and then getting the "Full typecheck finished!" message, things are looking much better.
I've only seen the <none>.<none> tooltip when I opened a build.sbt file, and only in that file.  Which probably isn't a surprise.
Thank you.

oh, yeah, support for the build files (and even then just .scala files) depends on a separate ENSIME server (it's a totally different classpath and scala version) with its own config (which currently is blocked by my lack of sbt foo) https://github.com/ensime/ensime-server/issues/669

I think I'll close this issues. It's totally server related. Maybe there could be a setting to run typecheckAll on startup that is attached to the atom project model, but for now it's probably best to leave it to the user to decide. There could also be filtering of those to not show anything of course. But I'll fix that when doing code-links instead of those pixel-hoverings.


When could @chainsafe/blst support mac M1, I can not build in M1

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Installing python locally should solve the issue. Was facing similar issue
linking - https://github.com/ChainSafe/blst-ts/issues/75#issuecomment-1316648765

Thanks @AmanRaj1608 , please re-open if you continue to have issues @bijianing97 .


Support offset parameter in Object List to support pagination

The list method uses the offset query parameter to do pagination
https://weaviate.io/developers/weaviate/api/rest/objects#list-all-data-objects
It looks like the code is missing a method e.g. WithOffset to actually set the offset. buildPathParams looks like it is missing code to set the offset as well.
https://github.com/weaviate/weaviate-go-client/blob/9dc91c57f9b1963cbdcfda1cf2e129fe55deb9b7/weaviate/data/objectsGetter.go#L128
It doesn't look like WithAdditionalParameters is the right way to do this; it looks like that method is setting the value of the include argument.
Related to #127

I will try this.


add ca proto definition

check in on behalf of @justinburke

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: quanjielin
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: kyessenov
Assign the PR to them by writing /assign @kyessenov in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/cc @justinburke

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: quanjielin
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: wattli
Assign the PR to them by writing /assign @wattli in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

security/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

You should have the original proto file, right?


Unexpected response code 400

When I try to save the credentials for the first time, I have this message in the logcat:
E/Volley  ( 1070): [250] BasicNetwork.performRequest: Unexpected response code 400 for https://www.googleapis.com/credentials/v1/credentials?alt=proto&header.playServicesVersion=7571000&obfuscationKey=44838BE022CB8E787432945F2B755C422766B72D16B5DDB5CBD56C525143C8AE
E/CredentialsApi( 1309): Error when saving credential.
E/CredentialsApi( 1309): com.google.android.gms.auth.api.credentials.a: java.io.IOException: Server error.
E/CredentialsApi( 1309):    at com.google.android.gms.auth.api.credentials.d.a(SourceFile:329)
E/CredentialsApi( 1309):    at com.google.android.gms.auth.api.credentials.be.b.e.a(SourceFile:181)
E/CredentialsApi( 1309):    at com.google.android.gms.auth.api.credentials.be.b.e.a(SourceFile:33)
E/CredentialsApi( 1309):    at com.google.android.gms.common.service.g.run(SourceFile:178)
E/CredentialsApi( 1309):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/CredentialsApi( 1309):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/CredentialsApi( 1309):    at java.lang.Thread.run(Thread.java:818)
E/CredentialsApi( 1309): Caused by: java.io.IOException: Server error.
E/CredentialsApi( 1309):    at com.google.android.gms.auth.api.credentials.be.c.d.a(SourceFile:124)
E/CredentialsApi( 1309):    at com.google.android.gms.auth.api.credentials.be.s.a(SourceFile:95)
E/CredentialsApi( 1309):    at com.google.android.gms.auth.api.credentials.be.d.a(SourceFile:279)
E/CredentialsApi( 1309):    at com.google.android.gms.auth.api.credentials.be.d.a(SourceFile:92)
E/CredentialsApi( 1309):    at com.google.android.gms.auth.api.credentials.be.z.onTransact(SourceFile:135)
E/CredentialsApi( 1309):    at android.os.Binder.execTransact(Binder.java:446)
E/CredentialsApi( 1309): Caused by: com.google.android.gms.auth.api.credentials.be.a.c
E/CredentialsApi( 1309):    at com.google.android.gms.auth.api.credentials.be.a.b.a(SourceFile:469)
E/CredentialsApi( 1309):    at com.google.android.gms.auth.api.credentials.be.a.b.a(SourceFile:156)
E/CredentialsApi( 1309):    at com.google.android.gms.auth.api.credentials.be.c.d.a(SourceFile:117)
E/CredentialsApi( 1309):    ... 5 more

I don't think the error is on the client-side, but the Intent in the onActivityResult is empty.

@g123k can you show me the code you are using to save credentials?  Also have you created a client ID in the Google Developers Console?

Hello,
I'm using the code from this git. What do you want exactly?
And yes, I have a working client ID (the Google sign-in is OK).

Hi, any progress here? I see same behavior. What's interesting is that onActivityResult has Activity.RESULT_OK, but in fact the credentials aren't saved.

@ValleZ when you get RESULT_OK are there any errors in the logs?

Yes, the very same stacktrace - Unexpected response code 400

if building app in a new/different machine then you'll probably need to add a new SHA1 code on Firebase

I am closing this issue/PR, as it has been migrated to the new repo linked above in the comments. Thank you!


gitVersion detection on checkout randomly fails

Agent Version and Platform
2.187.2, on Red Hat Enterprise Linux 7.9
Azure DevOps Type and Version
dev.azure.com
What's not working?
All checkout steps in our pipelines fail about half of the time with the error: Value cannot be null. (Parameter 'gitVersion')
The rest of the time, they correctly manage to detect the git version as 2.32.0 and then complete without problems. We have not been able to determine any pattern in when the git version fetching fails, it seems entirely random. Rerunning the failed jobs normally fixes the problem, but it's a major impediment since it happens so frequently.
This seems very similar to issue 1627.
The log extract below is with system.debug = true. Please note that the UnauthorizedAccessException often occurs even when the git version retrieval works and then the checkout steps completes despite it.
Agent and Worker's Diagnostic Logs
##[debug]Evaluating condition for step: 'Checkout ***'
##[debug]Evaluating: SucceededNode()
##[debug]Evaluating SucceededNode:
##[debug]=> True
##[debug]Result: True
Starting: Checkout ***
==============================================================================
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
==============================================================================
##[debug]Processed: ##vso[plugininternal.updaterepositorypath alias=self;]***
##[debug]Repository requires to be placed at '***', current location is '***'
Syncing repository: *** (Git)
##[debug]repository url=***
##[debug]targetPath=***
##[debug]sourceBranch=***
##[debug]sourceVersion=a6b4d4c984c452f1dc2e2a4b3702036f261f4ddd
##[debug]clean=True
##[debug]checkoutSubmodules=False
##[debug]checkoutNestedSubmodules=False
##[debug]exposeCred=False
##[debug]fetchDepth=1
##[debug]gitLfsSupport=False
##[debug]acceptUntrustedCerts=False
##[debug]schannelSslBackend=False
##[debug]Which: 'git'
##[debug]Location: '{matches.First()}'
##[debug]Get git version.
git version
##[debug]Starting process:
##[debug]  File name: '/usr/local/bin/git'
##[debug]  Arguments: 'version'
##[debug]  Working directory: '***'
##[debug]  Require exit code zero: 'False'
##[debug]  Encoding web name:  ; code page: ''
##[debug]  Force kill process on cancellation: 'False'
##[debug]  Redirected STDIN: 'False'
##[debug]  Persist current code page: 'False'
##[debug]  Keep redirected STDIN open: 'False'
##[debug]  High priority process: 'False'
##[debug]Failed to update oom_score_adj for PID: 14582.
##[debug]Exited process 14582 with exit code 0
##[debug]System.UnauthorizedAccessException: Access to the path '/proc/14582/oom_score_adj' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamWriter..ctor(String path)
   at System.IO.File.WriteAllText(String path, String contents)
   at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.WriteProcessOomScoreAdj(Int32 processId, Int32 oomScoreAdj)
##[debug]Process started with process id 14582, waiting for process exit.
##[debug]STDOUT/STDERR stream read finished.
##[debug]Finished process 14582 with exit code 0, and elapsed time 00:00:06.7745311.

##[error]Value cannot be null. (Parameter 'gitVersion')
##[debug]Processed: ##vso[task.logissue type=error;]Value cannot be null. (Parameter 'gitVersion')
##[debug]Processed: ##vso[task.complete result=Failed;]
##[debug]STDOUT/STDERR stream read finished.
##[debug]   at Microsoft.VisualStudio.Services.Agent.Util.ArgUtil.NotNull(Object value, String name)
   at Agent.Plugins.Repository.GitCliManager.LoadGitExecutionInfo(AgentTaskPluginExecutionContext context, Boolean useBuiltInGit)
   at Agent.Plugins.Repository.GitSourceProvider.GetSourceAsync(AgentTaskPluginExecutionContext executionContext, RepositoryResource repository, CancellationToken cancellationToken)
   at Agent.Plugins.Repository.CheckoutTask.RunAsync(AgentTaskPluginExecutionContext executionContext, CancellationToken token)
   at Agent.PluginHost.Program.Main(String[] args)

Hello @ralfdamaschkehiq Could you please provide agent logs for the failed job?

Hi @kuleshovilya, here you go: Worker_20210825-143428-utc.log

Yeah, it doesn't seem as agent issue so far. Both Pipeline and Agent logs both point to permission issue with process.
Does agent run in container?

No, it runs on an Azure virtual machine.

I'd say it looks more like:
https://unix.stackexchange.com/questions/297190/owner-cant-read-proc-pid-io
And more of a system issue. You could try to reinstall agent, clean cash, update OS and packet manager etc
Basic troubleshooting might help with that. That seems like recurring issue with a lot of CentOS\RedHat distros.
Since this is not an agent issue, I'll close it for now.
You can reopen it, if needed or ping me at<EMAIL_ADDRESS>


Added CONTRIBUTING.md with standard rules

Resolves #12
I have added the basic template for CONTRIBUTING.md
If you want me to add something more, please let me know @D3v3sh5ingh  🙂

Can you also brief about the steps of contributing code i.e proper indented code, with Sample input-output and about originality of code.

Can you also brief about the steps of contributing code i.e proper indented code, with Sample input-output and about originality of code
Sure @D3v3sh5ingh , is there a particular formatter/extension which you use to format the code in this project?

Can you also brief about the steps of contributing code i.e proper indented code, with Sample input-output and about originality of code
Sure @D3v3sh5ingh , is there a particular formatter/extension which you use to format the code in this project?

No, the contributor may use any formatter for formatting the code, just mention that the code they are contributing is properly indented for code readability.

Great work @rimijoker


Ionic with Jasmine Error property '_getPortal'.

I do not know what the specific problem is, I always derrepente when I run the test (npm test) at random places of an error Uncaught TypeError: Can not read property '_getPortal' of undefined thrown ... as it happens in random places I can not get away from where this error comes from. When I click on the test that gave the error to execute it in isolation it is ok. Apparently some flow is breaking and returning this error, but I have no idea what it is.
Has anyone had a similar problem and can you help me ?!
Thank you anyway!
Obs: Sometimes I squeeze and this error does not appear, all the tests pass.

Another good place to look is Stack Overflow, there are some replies on this question: https://stackoverflow.com/questions/40781394/cannot-read-property-getportal-of-undefined-in-ionic-2-unit-testing. Thanks!


Control panic, mock namespace

Resolves https://github.com/istio/istio/issues/16639
Supercedes https://github.com/istio/istio/pull/16745 and https://github.com/istio/istio/pull/16708
@howardjohn reported the panic.  The panic was caused by putting an Istio ServiceEntry into an Unstructured.  The fake/mock go-client is more sensitive to this and also the fake client doesn't return an error for unknown namespaces.
The Istio istioctl unit tests for add-to-mesh, remove-from-mesh, and describe all inherit the default namespace from the Kubernetes context.  They were not mocked.  To reproduce the @howardjohn 's panic, get a build that doesn't include this PR and do
kubectl config set-context <your context> --namespace=banana

This PR makes the panic impossible by converting the ServiceEntry to a map[string]interface{} before putting it into the Unstructured.
This PR makes the istioctl unit tests succeed even if the default namespace is changed in the Kubernetes context.
Also add a test case for creating an external ServiceEntry.
cc @irisdingbj

I'm out today so cannot check but I found the remove from mesh tests fail
too with a different error. Can you check those as well?
On Mon, Sep 2, 2019, 7:07 AM Ed Snible<EMAIL_ADDRESS>wrote:

Resolves #16639 https://github.com/istio/istio/issues/16639
Supercedes #16745 https://github.com/istio/istio/pull/16745 and #16708
https://github.com/istio/istio/pull/16708
@howardjohn https://github.com/howardjohn reported the panic. The panic
was caused by putting an Istio ServiceEntry into an Unstructured. The
fake/mock go-client is more sensitive to this and also the fake client
doesn't return an error for unknown namespaces.
The Istio istioctl unit tests for add-to-mesh, remove-from-mesh, and
describe all inherit the default namespace from the Kubernetes context.
They were not mocked. To reproduce the @howardjohn
https://github.com/howardjohn 's panic, get a build that doesn't
include this PR and do
kubectl config set-context  --namespace=banana
This PR makes the panic impossible by converting the ServiceEntry to a
map[string]interface{} before putting it into the Unstructured.
This PR makes the istioctl unit tests succeed even if the default
namespace is changed in the Kubernetes context.
You can view, comment on, or merge this pull request online at:
https://github.com/istio/istio/pull/16752
Commit Summary

Control panic, mock namespace

File Changes

M istioctl/cmd/add-to-mesh.go
https://github.com/istio/istio/pull/16752/files#diff-0 (17)
M istioctl/cmd/add-to-mesh_test.go
https://github.com/istio/istio/pull/16752/files#diff-1 (22)
M istioctl/cmd/describe_test.go
https://github.com/istio/istio/pull/16752/files#diff-2 (5)
M istioctl/cmd/remove-from-mesh_test.go
https://github.com/istio/istio/pull/16752/files#diff-3 (6)

Patch Links:

https://github.com/istio/istio/pull/16752.patch
https://github.com/istio/istio/pull/16752.diff

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/pull/16752?email_source=notifications&email_token=AAEYGXN7ANDOLYNEOIGN7FDQHUMZRA5CNFSM4IS52PO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HIZOVRQ,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEYGXMJNNYNEHDWIMJPKEDQHUMZRANCNFSM4IS52POQ
.

@esnible: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-racetest-master
e3b7f39f3eaa2744add14d3dd38ea97fd47c4222
link
/test istio-racetest-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test istio-racetest-master

@esnible: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-racetest-master
e3b7f39f3eaa2744add14d3dd38ea97fd47c4222
link
/test istio-racetest-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test istio-racetest-master

@esnible: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-racetest-master
e3b7f39f3eaa2744add14d3dd38ea97fd47c4222
link
/test istio-racetest-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test istio-racetest-master


Added support for FirebirdClient

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: cincuranet sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Find and use an unused port if 3883 is taken

Closing in favor of #61 because I don't see a use-case for running 2 preview servers and the other is simpler and more debuggable behavior.


chore(release): v1.0.0 🎉

:robot: I have created a release beep boop
1.0.0 (2024-05-25)
Features

domain: expose UniDate, UniDateTime, UniDuration, checks, and sleep (68807d3)
init: initialize repo based on latest best practices (9bee9bc)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/ehmpathy/uni-time/releases/tag/v1.0.0 :sunflower:


Feature/auth response 1.3

This PR adds two new fields to authResponse JWTs:

a blockstackAPIUrl field that, if given, overrides the global API URL in blockstack.config.network.  This allows the user to tell the app which Blockstack Core node they want to use.
a gaiaAssociationToken field that contains an association token JWT to be passed to Gaia (see https://github.com/blockstack/gaia/issues/96).  By adding this field, we enable users to run private Gaia hubs without having to authorize each application's address.  They instead only have to authorize their user addresses, and use this code to generate a v1 Gaia authentication token with an association token that binds the app address to their user address.

This PR absorbs and supersedes https://github.com/blockstack/blockstack.js/pull/494.  Please see this PR for discussion on the blockstackAPIUrl field.

@jcnelson -- you should add more description to this PR on how a reviewer can do end-to-end testing. For changes in auth, unit tests aren't usually enough, as they generally end up having a lot of end-to-end effects -- does this continue to validly authenticate the prior version of blockstack.js when its linked into the browser? Do applications which link this in continue to work when they try to authenticate with the previous version of the browser (which links blockstack 17.2.0)?

+1 to @kantai 's questions.

Hey @kantai, @larrysalibra,
I spent some time setting up a live test for this PR. If you go to http://<IP_ADDRESS>:1800, you can sign into a "Hello Blockstack" app with blockstack.js 18.x, and if you go to http://<IP_ADDRESS>:1900, you can sign into a "Hello Blockstack" app with this PR applied.
The "Hello Blockstack" app I wrote to test this PR can be found here: https://github.com/jcnelson/blockstack-auth-test-app.  It will let you inspect various things in the authResponse token generated by an authenticator (e.g. the Browser, the CLI) and will test getFile(), putFile(), and lookupProfile() and friends with the Gaia hub and/or Core API endpoint given in the authResponse.
To test this PR, you would verify four things:

You can sign into the version with blockstack.js 18.x with an authenticator using version 1.2.
You can sign into the version with blockstack.js 19.x with an authenticator using version 1.2.
You can sign into the version with blockstack.js 18.x with an authenticator using version 1.3.
You can sign into the version with blockstack.js 19.x with an authenticator using version 1.3.

You can test authResponse 1.2 with the Blockstack Browser.  You can test authResponse 1.3 with the CLI by running:
$ blockstack-cli -H YOUR_CORE_ENDPOINT authenticator YOUR_GAIA_WRITE_ENDPOINT YOUR_BACKUP_PHRASE

Specific to testing version 1.3 of the authResponse, you should be able to run the develop branch of the Gaia hub, and you should be able to use my test apps with only your ID-address whitelisted.  This is because the CLI will generate an associationToken for the Gaia hub that will allow you to automatically authorize your app-specific keys.  An easy way to do this is to run the Gaia hub locally, with this gaia.conf.  You can run a read endpoint for the Gaia hub that will set your CORS headers correctly using this program here.
For example, the full sequence of steps to test authResponse 1.3 with all local endpoints would be to do the following (to a first approximation):
# start local API endpoint
$ blockstack --debug api start

# start local Gaia hub
$ blockstack-gaia-hub /path/to/your/gaia.conf

# start local Gaia read endpoint and CORS proxy
$ gaia-read.py /path/to/your/gaia.conf

# start CLI authenticator
$ blockstack-cli -H http://localhost:6270 http://localhost:4001 "YOUR-12-WORDS"

Then, you should be able to log into http://<IP_ADDRESS>:1900 and see your custom Core endpoint and Gaia hub, and you should see your profile and the login counters written to your local Gaia hub.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.2 out of 3 committers have signed the CLA.:white_check_mark: kantai:white_check_mark: jcnelson:x: larrysalibraYou have signed the CLA already but the status is still pending? Let us recheck it.

@jcnelson Please merge this if the the change log looks good to you!

Looks good to me!  Thanks for reviewing!


Am creat un proiect simplu cu SST, Vite+React si TanStack Router

Am facut niste creat niste rute simple si am incercat sa prefact o structura de folsere dupa cum am inteles conventiile de aici :https://tanstack.com/router/latest/docs/framework/react/guide/file-based-routing#file-naming-conventions

Am facut niste creat niste rute simple si am incercat sa prefact o structura de folsere dupa cum am inteles conventiile de aici :https://tanstack.com/router/latest/docs/framework/react/guide/file-based-routing#file-naming-conventions

Good job!. Please remove the unused routes when you begin the development of the app.

Also, new-branch is not a useful branch name, it does not tell me anything, use more specific names like: init-project


Error: Handshake inactivity timeout with Node.js v6.2.0 and RDS

I know there is another issue related to an older Node.js version, but I´m facing the same one on the latest Node.js version as well as v4.x.
The weired thing is, it only occures when using RDS, not on localhost and it occures on higher loads.
I´ve also tried several timeout settings, but it´s not getting better.
pool = require('mysql').createPool({
    connectionLimit : 1000,
    connectTimeout  : 60 * 60 * 1000,
    aquireTimeout   : 60 * 60 * 1000,
    timeout         : 60 * 60 * 1000,
    host            : process.env.DB_HOST,
    user            : process.env.DB_USERNAME,
    password        : process.env.DB_PASSWORD,
    database        : process.env.DB_DATABASE
});

Error: Handshake inactivity timeout
    at Handshake.<anonymous> (/home/ubuntu/node/nodejs-chat-server/node_modules/mysql/lib/protocol/Protocol.js:160:17)
    at emitNone (events.js:86:13)
    at Handshake.emit (events.js:185:7)
    at Handshake._onTimeout (/home/ubuntu/node/nodejs-chat-server/node_modules/mysql/lib/protocol/sequences/Sequence.js:116:8)
    at tryOnTimeout (timers.js:224:11)
    at Timer.listOnTimeout (timers.js:198:5)
    --------------------
    at Protocol._enqueue (/home/ubuntu/node/nodejs-chat-server/node_modules/mysql/lib/protocol/Protocol.js:141:48)
    at Protocol.handshake (/home/ubuntu/node/nodejs-chat-server/node_modules/mysql/lib/protocol/Protocol.js:52:41)
    at PoolConnection.connect (/home/ubuntu/node/nodejs-chat-server/node_modules/mysql/lib/Connection.js:123:18)
    at Pool.getConnection (/home/ubuntu/node/nodejs-chat-server/node_modules/mysql/lib/Pool.js:45:23)
    at Pool.releaseConnection (/home/ubuntu/node/nodejs-chat-server/node_modules/mysql/lib/Pool.js:146:10)
    at Pool._removeConnection (/home/ubuntu/node/nodejs-chat-server/node_modules/mysql/lib/Pool.js:269:8)
    at Pool._purgeConnection (/home/ubuntu/node/nodejs-chat-server/node_modules/mysql/lib/Pool.js:250:8)
    at Ping.onOperationComplete [as _callback] (/home/ubuntu/node/nodejs-chat-server/node_modules/mysql/lib/Pool.js:91:12)
    at Ping.Sequence.end (/home/ubuntu/node/nodejs-chat-server/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
    at /home/ubuntu/node/nodejs-chat-server/node_modules/mysql/lib/protocol/Protocol.js:399:18

Hi @Mklueh, yes, there is an issue with 4.2.0 (that specific version), but you're not using it. I haven't seen this reported before on 6.2.0, and at least some testing here seems to show the timers are working just fine on that version.
Do you think you can walk me through enough such that I can actively reproduce the issue? Then I can attach a debugger to the runtime and determine why it is happening, otherwise, I'm not sure what I can look into :S

I´ve tested it on a local database and I got the error too.
It seems to happen when the CPU of the server is at 100%

Ah. It that case, I can reproduce. Debugging what I have shows that the event loop is getting overwhelmed, and so what is happening is that the node process just doesn't have enough time to even read from the socket before the wall clock ticks past the timeout.
Unfortunately there is no solution to thus besides either you set all your timeouts to Infinity (effectively disabling them, along with the control they provide to prevent your app from running away) or you just cannot run an event loop system under that kind of load (or maybe this is a bug in Node.js itself?).

Oh, so maybe I´m going to open an issue within the Node Github repo.
I need to make some measurements for my university degree, so I´ll stay at
some distance to the threshold which causes the crashes. Good to have your
explanation in case I have to justify myself for any sideeffects.
2016-06-01 14:27 GMT+02:00 Douglas Wilson<EMAIL_ADDRESS>
Ah. It that case, I can reproduce. Debugging what I have shows that the
event loop is getting overwhelmed, and so what is happening is that the
node process just doesn't have enough time to even read from the socket
before the wall clock ticks past the timeout.
Unfortunately there is no solution to thus besides either you set all your
timeouts to Infinity (effectively disabling them, along with the control
they provide to prevent your app from running away) or you just cannot run
an event loop system under that kind of load (or maybe this is a bug in
Node.js itself?).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/felixge/node-mysql/issues/1434#issuecomment-222977001,
or mute the thread
https://github.com/notifications/unsubscribe/ABe1XXv0So4afjBEKpn9x07NUeQd0FAXks5qHXq4gaJpZM4Iqog8
.

--
Best regards,
Marian Klühspies

Hi @Mklueh your last response didn't seem like there was anything to act on here, and it's been a few months. I'm going to close this issue, but please let me know if you would like it re-opened!

@dougwilson I use v6.3.1 and this happens to me too. Forgive my naivety but what do you mean by

the node process just doesn't have enough time to even read from the socket before the wall clock ticks past the timeout.

It clearly waits for the time I gave it to elapse (even when a client is attempting to make a mysql connection), then shuts down on its own.

Unfortunately there is no solution to thus besides either you set all your timeouts to Infinity

As it stands, this does me no good either. I set the acquireTimeout to Number.POSITIVE_INFINITY but the plot took a different twist. After exhausting my personal debugging bullets and sending several SOS signals to Stack Overflow, the only logical action for me is to bang my head on the wall. I try to handle errors with console.error and the compiler complains. I try using throw err and I keep getting this one below.

server.js:28
throw err;
^
Error: Connection lost: The server closed the connection.

The best thing is to post the relevant parts of my code here so you can see what is causing the compiler (yes, with the errors I'm getting, Node is definitely compiled) to scream at every little turn I make. Here goes:
myPool = mysql.createPool({host: "<IP_ADDRESS>", port: 1717, user: "root", pass: "", multipleStatements: true, acquireTimeout: Number.POSITIVE_INFINITY})
.on("connection", function(connection) {
	console.log("pulling out a connection now")
});

myPool.getConnection(function(err, connection) {
	if (err) {
		throw err;
	}
	connection.query("CREATE DATABASE five_star DEFAULT CHARACTER SET utf8 COLLATE utf8_general_mysql500_ci;CREATE TABLE five_star.users (email VARCHAR(150) NOT NULL , password VARCHAR(50) NOT NULL ) ENGINE = MyISAM;INSERT INTO users (email, password) VALUES<EMAIL_ADDRESS>'1717')",
		function(err) {
	if (err) throw err;
	else
		connection.release();
	console.log("created myPool");
});

});

app = app.use("/login", login)
.use(static(__dirname + "/public"));

function login (req, res, next) {

	if (req.method == "POST") {
		var params = req.body, resObj = {errText: "", sessName: ""};

		myPool.getConnection(function(err, connection) {
			if (err) {
				throw err;
			}
			connection.query("SELECT COUNT(*) FROM users WHERE email=? AND password=?", [params.email, params.pwd], function(err, numrows, rowInfo) {
			if (err) {
				throw err;
  			}

			else if (numrows/*.length >= 1*/) {
			connection.release();
  				console.log(numrows);
				req.session.name = params.email.split("@")[0];
				resObj.sessName = req.session.name;
				res.end(JSON.stringify(resObj));
			}
			else {
				resObj.errText = "Incorrect email or password";
				res.end(JSON.stringify(resObj));
			}
		});
		});
	}
	else
		res.end("output login page here");
		next();
}

@dougwilson I use v6.3.1 and this happens to me too. Forgive my naivety but what do you mean by
the node process just doesn't have enough time to even read from the socket before the wall clock ticks past the timeout.

Sorry, I guess the conversation in this thread was a little confusing :) This issue is that the library throws a timeout error when the server's CPU is sitting at 100%. When that happens, the Node.js process never end sup getting enough time to actually read from the socket before the wall clock-based timer expires. By the time the process is swapped back to Node.js running on the CPU, it's already past the timer expiration.

Oh. Thank you for replying. So your point is, my server's CPU allocation should never utilise its allocation fully but should make room for the mysql module and its connections?

Hi @nmeri17 I'm not certain what your server's CPU is doing, as you didn't provide that information :) You were questioning the conclusion and reproduction for the problem this specific issue is about, which was caused by CPU, so I was trying to clarify what this issue was about. This is an old, closed issue that was resolved. I'm unsure what issue you are having, but you should probably open a new issue to troubleshoot, so we don't keep sending the OP an email for every comment we make here :)


GetAllEvents response body: [{"token":"invalid_timestamp","message":"Invalid value for timestamp"}

ven-health sub command uses the wrong timestamp format in API
✦2 ❯ ./workloader ven-health
2023-08-16 15:34:54 [INFO] - workloader version 10.0.2 - started ven-health
2023-08-16 15:34:54 [INFO] - using default pce - default-pce - 23.3.2-6
2023-08-16 15:35:00 [INFO] - GetAllLabels status sode: 200
2023-08-16 15:35:00  [INFO] - start:
2023-08-16 15:35:00  [INFO] - end:
2023-08-16 15:35:00 [INFO] - custom start and end used
2023-08-16 15:35:00 [INFO] - start:
2023-08-16 15:35:00 [INFO] - end:
2023-08-16 15:35:00  [ERROR] - get events - http status code of 406 see workloader.log for potentially more information.
2023-08-16 15:35:00 [DEBUG] - GetAllEvents http request: GET https://foo.illum.io:443/api/v2/orgs/6/events?event_type=agent.clone_detected&max_results=10000&timestamp[gte]=&timestamp[lte]=
2023-08-16 15:35:00 [DEBUG] - GetAllEvents request body:
2023-08-16 15:35:00 [INFO] - GetAllEvents status sode: 406
2023-08-16 15:35:00 [DEBUG] - GetAllEvents response body: [{"token":"invalid_timestamp","message":"Invalid value for timestamp"}]
2023-08-16 15:35:00 [ERROR] - get events - http status code of 406

Any updates on this bug ? It seems we get this error because we are passing an empty timestamp into the API call i.e.
/url encoded/
timestamp%5Bgte%5D**=&timestamp%5Blte%5D=**
When adding a timestamp as such below I no longer get this error:
/not url encoded/
timestamp[gte]=2023-09-06T00:00:00+08:00&timestamp[lte]=2023-09-12T23:59:59+08:00"

@agwilkinson  - the command require you to specify a time period using either --yestreday, --last-week, --last-month, or custom --start and --end. I added an error check to throw an error if you don't provide that.
[~/go/src/github.com/brian1917/workloader] w ven-health
2024-03-20 08:38:47  [ERROR] - a time period must be provided using either --yesterday, --last-week, or --last-month flags or the customer --start and --end flags. see workloader.log for potentially more information.


feat(rbac): save role modification information to the metadata

What does this pull request do
Save role modification information to the metadata:

author
modifiedBy
createdAt
lastModified

In the UI will be used : lastModified and lastModified
What issue is referenced in this pull request?
https://issues.redhat.com/browse/RHIDP-1382
https://github.com/janus-idp/backstage-plugins/issues/900
Screenshot

Thanks @AndrienkoAleksandr , Frontend plugin changes looks good to me
cc @PatAKnight


Base64 encoding/decoding

Hi,
is there some module for base64 encoding/decoding which works well with react native?
Thank you.

If you just want to encode data on the JS side, you should just be able to pull in any 3rd party base64 module (here's one: https://github.com/dankogai/js-base64).

@nicklockwood I use npm i js-base64 --save to include this to my react-native project.
but the redbox tells unable to resolve module from .../node_modules/js-base64/base64.js

This piece of code in js-base64 triggers the error:
  // if node.js, we use Buffer
  var buffer;
  if (typeof module !== 'undefined' && module.exports) {
    try {
      buffer = require('buffer').Buffer;
    } catch (err) {}
  }

The error doesn't get catched. Don't know if this is a bug of React.

Buffer seems to be working: (just tested it)
https://www.npmjs.com/package/buffer
See here on how to use it:
http://www.hacksparrow.com/base64-encoding-decoding-in-node-js.html
I also successfully used this one:
https://www.npmjs.com/package/base-64

Hi,
How do you get an image from the web ('i.e http://www.example.com/img.png') and convert it to base64 string on JS?

@avishayil The short answer is that you probably shouldn't :-)
The longer answer is that you could do it on iOS as follows:

Use Image.getSize(uri) to get the image dimensions.

Use ImageEditor.cropImage(uri, cropData) to store a copy of the image in the ImageStore (if you pass the width and height you got in step 1) then cropImage won't actually crop the image, although it may still make a copy of it.

Use ImageStore.getBase64ForTag(uri) to get the base64 data of the new image (pass the uri you got from the cropImage function, not the original).

Don't forget to call ImageStore.removeImageForTag(uri) once you're done to delete the copy.

That may seem cumbersome, and it is, but that's because we generally don't encourage converting images to base64 data. If you can explain what you're trying to do, there might be a better approach, or we might be able to create a better API for it.

Hi Nick, thanks for the answer.
I'm building a reader app, and my current efforts are making article available for reading offline.
Currently, i'm building the list of articles with the preview images. I'm using AsyncStorage to store all the article details offline, then fetch them when needed.
async handleAddFavourite(article) {
    // AsyncStorage.removeItem(FAV);
    // console.log(article);
    AsyncStorage.getItem(FAV).then(function(value) {
      if (value !== null) {
        value = JSON.parse(value);
        index = value.map(function(e) { return e.id; }).indexOf(article.id);
        if (index > -1) {
          console.log('exists');
        } else {
          try {
            // article['base64_image'] = base64.encode(article.image); --> HERE THE BASE64 NEEDED
            value.push(article);
            AsyncStorage.setItem(FAV, JSON.stringify(value));
            console.log('Saved selection to disk: ' + value);
          } catch (error) {
            console.log('AsyncStorage error: ' + error.message);
          }
        }
      } else {
        value = [];
        try {
          value.push(article);
          AsyncStorage.setItem(FAV, JSON.stringify(value));
          console.log('Saved selection to disk: ' + value);
        } catch (error) {
          console.log('AsyncStorage error: ' + error.message);
        }
      }
    });
  };

@avishayil gotcha. The problem with that is obviously that you're sending the image data from native to JS (as base64 strings) and then back again via AsyncStorage, which is hugely wasteful.
The problem is that we don't currently have an API for saving uris directly to the file system on the native side without transferring the data to and from JS.
I've been thinking about ways we might be able to expose such an API. I'll keep doing so :-)
For your particular use case, your best solution right now would be to implement the archiving entirely on the native side with a custom module. But I can understand why you might not want to do that.

@avishayil FWIW, we cache images to disk once they are downloaded, so you could probably get away with just saving the image url in asyncstorage (rather than the image data), because it should be possible to view the image url offline after the first time it's been loaded.
The only problem is that this will be slightly nondeterministic - the image cache size is limited, so the images may get evicted to make room, and we don't expose any controls for the cache size, etc.

@nicklockwood How would I do that? currently i'm fetching the images using the  component. Do I have a way to access the cached image afterwards?

@avishayil you don't have to do anything special. The first time you load a uri in an <Image> it's downloaded and cached. The second time you display it, it's loaded from the cache, even if the app has been closed in the meantime.

@nicklockwood Indeed, awesome! do you know if it's cached permanently (until user is clearing data, of course). Can I count on it for offline storage?

@avishayil there are no guarantees I'm afraid. The OS is free to clear the cache if the device is low on space, and we limit the cache size (to 200MB IIRC), so if you download more than that, the new images will evict the old ones.

I can't believe it would come to that sizes, but it's good to know. Anyway, if you have a better, stable solution i'd be glad to know about it.

@nicklockwood Thanks for telling us how to use ImageEditor.cropImage!
I am using it to resize images before uploading them to the server. However, I noticed that the uploaded images are saved in PNG format, not JPEG format as the original image.
It seems to have something to do with cropped/resized image getting alpha channel which causes later logic to think it should be in PNG format.

@daesan ah, good point. I know why that's happening - I'll put up a fix.

@nicklockwood I got exactly the same exact use case here trying to save images locally for offline viewing. Correct me if I am wrong but it seems to me that even if I save images with native module to local file system I still won't be able to render them with <Image>

@Iananelson wrong; as long as you can have a uri for the image, you can display it. That works with file:// type uris as well as remote ones, and you can use relative uris for files saved locally, e.g:
<Image source={{uri: '~/Library/Caches/someimage.png'}}/>

oh thats great! thanks @nicklockwood

@daesan FYI, the alpha/png issue should be fixed now.

@nicklockwood That's great! Thanks for letting me know.

How can I do the reverse process? How do I create a image file from the string base64? I have a very specific problem and not know how to fix it. In some Motorola devices, like Moto G (2015) and Moto X (2015),  the image does not appear when I use source={{ uri: base64string }}. Theses devices use Android 6, but it works on emulator using Android 6. I have a Moto g 1st, running on Android 5, and works too, only in the cases cited above that this problem happens. I think the way to solve this is to save a cache image and show it, but I have no idea to do this.

Also having an issue displaying base64 images in Android 6.

@nicklockwood Could you please help me with this issue #12114 ? I followed your steps but I am getting an error

Normal base64 for react native from https://stackoverflow.com/a/47925467/1713757
yarn add buffer

Usage
console.log(Buffer.from("Hello World").toString('base64'));
console.log(Buffer.from("SGVsbG8gV29ybGQ=", 'base64').toString('ascii'));


pull request for e2e test at 12/29/2016 09:26:12

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


[RESTEASY-2239] updated mime4j to version 0.8.2

Change complete

seems this fix didn't make it to v4.5.4
Below issue has mentioned the fix version as 4.5.4
https://issues.redhat.com/browse/RESTEASY-2239
Please clarify.

Please download / try 4.5.5.Final, which should have the fix.

thanks @asoldano, v4.5.5 works fine.