convert sometimes throws InexactError, usually rounds

convert(Fixed{Int8, 7}, x) seems to happily round to the nearest representable value for most values of x, but throws an InexactError for x=0.999. AFAICT it throws the error when the value would get rounded up to 1.0, but 1.0 can't be represented. Is this expected behavior? I would expect that in this case it would act the same as convert(Fixed{Int8, 7}, 1.0), which overflows to -1.0.
julia> convert(Fixed{Int8, 7}, 0.8)
FixedPointNumbers.Fixed{Int8,7}(0.797)

julia> convert(Fixed{Int8, 7}, 0.9)
FixedPointNumbers.Fixed{Int8,7}(0.898)

julia> convert(Fixed{Int8, 7}, 0.999)
ERROR: InexactError()
 in trunc at float.jl:357
 in convert at /Users/srussell/.julia/v0.4/FixedPointNumbers/src/fixed.jl:34

julia> convert(Fixed{Int8, 7}, 1.0)
FixedPointNumbers.Fixed{Int8,7}(-1.0)

should convert accept values that can't be exactly represented? My understanding was that normally convert(T, x) is supposed to preserve information and thrown an error if the value can't be represented, and round(T, x) is supposed to be used to round to the nearest representable number, but I don't think that's explicitly said, so I could be wrong there.

Yeah, this seems a bit broken. The corresponding base-julia behavior:
julia> convert(UInt8, 256)
ERROR: InexactError()
 in convert at int.jl:175

julia> 256 % UInt8
0x00


Cannot read properties of undefined (reading 'coerce')

My error is suspiciously similar to https://github.com/colinhacks/zod/issues/1193, but there are no circular dependencies. Also, this error only occurs inside vitest, and I'm seeing it as a result of converting my project from jest to vitest.
My code as as follows:
import React from 'react';
import { FormattedNumber } from 'react-intl';
import { z } from 'zod';

/** The input is a number and is not NaN. */
export const realNumberSchema = z.coerce.number().refine(n => !isNaN(n));

// ...more functions

I'm not sure if this is a problem in zod, vitest, or just my configuration.

Almost certainly an issue in Vitest. :facepalm: What fixed it for me is to not set NODE_ENV=test! Ludicrous behavior. Possibly could also be cross-env, but nevertheless changing cross-env NODE_ENV=test npx vitest to simply npx vitest fixed it.


proposal v2, using plural, list dropped for get

proposal v2, using plural namespaces,list dropped in favor of get

Looking at the feedback we got so far, keeping both get and list makes the most sense


The categories problem during training the VisDrone dataset

While training the RetinaNet baseline using your splited VisDrone dataset, I find the processed dataset has only 9 categories. In the visdrone/data_prepare.py, I find these codes
    ann_dict = {}
    ann_dict['categories'] = [
        {'supercategory': 'things', 'id': 1, 'name': 'people'},
        {'supercategory': 'things', 'id': 2, 'name': 'bicycle'},
        {'supercategory': 'things', 'id': 3, 'name': 'car'},
        {'supercategory': 'things', 'id': 4, 'name': 'van'},
        {'supercategory': 'things', 'id': 5, 'name': 'truck'},
        {'supercategory': 'things', 'id': 6, 'name': 'tricycle'},
        {'supercategory': 'things', 'id': 7, 'name': 'awning-tricycle'},
        {'supercategory': 'things', 'id': 8, 'name': 'bus'},
        {'supercategory': 'things', 'id': 9, 'name': 'motor'}
    ]
    ann_dict['images'] = images
    ann_dict['annotations'] = annotations
    with open(new_label_json, 'w') as outfile:
        json.dump(ann_dict, outfile)

Does that mean the people and pedestrian categories are merged?
However, I can't find the merge part, the label's category_id seems to be exactly the same as the category_id from annotations‘ txt file. Maybe there exist some mistakes?

Does that mean the people and pedestrian categories are merged?
However, I can't find the merge part, the label's category_id seems to be exactly the same as the category_id from annotations‘ txt file. Maybe there exist some mistakes?
Have you solved this problem? If it is solved, can you tell me the solution, thank you

Does that mean the people and pedestrian categories are merged?
However, I can't find the merge part, the label's category_id seems to be exactly the same as the category_id from annotations‘ txt file. Maybe there exist some mistakes?
Have you solved this problem? If it is solved, can you tell me the solution, thank you

It seems these categories have little influence on training or testing phase, so just ignore it.

Hi, there was a bug in the previous version of data_prepare.py. We have fixed it now.


Build broken with go 1.18

With go 1.18, the make controller-gen target fails to create a bin/ directory and to create bin/controller-gen. All of the targets that depend on make controller-gen (e.g. make docker-build) therefore fail as well.
I was able to resolve the issue by downgrading to 1.17.

Closed by PR35


[MM-28218] Edit Company Information screen

Summary
Edit Company information screen.
You should be able to review the look and feel of the Edit screen, but no information will show up, and you won't be able to Save. That review will need to come later.
Ticket Link
https://mattermost.atlassian.net/browse/MM-28218
Related Pull Requests
Enterprise: https://github.com/mattermost/enterprise/pull/802
CWS: https://github.com/mattermost/customer-web-server/pull/253
Redux: https://github.com/mattermost/mattermost-redux/pull/1259
Server:  https://github.com/mattermost/mattermost-server/pull/15974

@matthewbirtch @stevemudie Looks like I'll need to mock out some data to make sure it displays properly. Will ping when ready.

@matthewbirtch @stevemudie I've added some mock data which should allow you to see what the screens look like, but they won't be functional. We'll have to verify the rest of the functionality once we have a hook into the CWS.

/cherry-pick cloud-ga

Cherry pick is scheduled.


ci: fix googleapis change propagation job

Fixed pull request creation logic to use yohsi-code-bot.

@meltsufin PTAL

The default token fails with CLA check. Other than that, it works.

@meltsufin Now it uses the default token. PTAL.

For the CLA, can we just put in an @google.com email for the commit author?

The pull request author needs to be signed with CLA. Automating pull request creation requires an automation account.


QuickFix: Recognizer.prototype.constructor is not defined.

Noticed that Recognizer.prototype.constructor wasn't defined when my class creating function was unable to find it in the prototype. Simple and easy fix, just add "constructor: Recognizer" to the object you set as Recognizer.prototype. You could also use Object.defineProperty to make it non enumerable.

@arschmitz I'm in favor.


Unhandled Exception: MissingPluginException(No implementation found for method trim on channel video_trim)

Right its only available for iOS. I don't have any plans to continue working on this


fix: should check for the raw bytes instead of string, in case of a malformed utf8 string

If the QR code contains binary data that is not UTF8 (aka malformed code points) then the rawValue will be null. And then the if statement to check if lastScanned equals the rawValue will never return true as the value never gets set.
So instead of comparing the string representations I changed the code to compare the Uint8List, that way the first scan of a malformed QR code will succeed.

I tested it, it fixed an issue I had with scanning binary qr-code (The scanner did not go away. The code worked fine with UTF-8 qr-codes). My current workaround is to use allowDuplicates and on the first successful scan, remove the Widget with Navigator.of(context).pop();.

Thank you for your contribution!

allowDuplicates: false not working for me. I see the source code is comparing the Uint8List. But comparing two Uin8List always returns false, or am I missing something.🤔

@wolfenrain @juliansteenbakker

@hellohejinyu
you are right, I provided a PR to fix it. I don't know, why it fixed my problem.
Did you encounter the problem on Web or Mac? E.g. on Web, a new Uint8List is created, probably on Android MLKit returns the same List, if the value did not change?


[BUG] Very bland errors

What happened?
with npm run dev everything is OK, but when I try to build I get this very obscure and undescriptive error:

The project Im working on is 100% code & feature complete, but cannot build and error is very unhelpful.
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
No response
Relevant log output
No response
(OPTIONAL) Contribution

[ ] I would like to fix this BUG via a PR

Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.

Can you create a minimal re-prod? Try removing some dependencies or configurations and see which resulted in a successful build. This looks super random and I suspect it's related to either js version, or the bundler trying to make sense of some js code that's not in the bundled version:
https://www.reddit.com/r/learnjavascript/comments/wyci2h/expression_expected_error/


EASEY facilities Dependabot Alert

Context
Issue found in the facilities api as of 6/6:
As of 7/26, No fix available
Crash in HeaderParser in dicer #7

Per planning on 6/7, the team can not remediate this issue until a patched version is available.

Ticket no longer needed


A rotation function would be quite intriguing?

Hi,
I would like to rotate the tissue at an angle, or any angle, to aid visualization and comprehension, as the current angle of tissue in the stomics chip is not unsuitable, so having a rotation function would be quite intriguing.
Thanks!

Currently, there is not a suitable function in Stereopy to meet the requirement. You could try other tools of Stomics firstly, to address the issue.
We will take it into the developing list!
Ray

Thanks! Furthermore, Vertical and horizontal also seem to be useful.


Feature Request: Allow and replace macros in annotations

In some cases my services need to connect to specific shards to modify/retrieve data. I usually control externally-visible names via the external-dns.alpha.kubernetes.io/hostname annotation; I'd like to be able to do the same here using the shard and replica template macros within the annotation to expose e.g. each replica under a unique name:
      - name: replica
        generateName: db-{clusterID}-{shard}-{replica}
        metadata:
          annotations:
            external-dns.alpha.kubernetes.io/hostname: clickhouse-{clusterID}-{shard}-{replica}.example.com
        spec:
          type: LoadBalancer
          ....

But this currently results in the annotation clickhouse-{clusterID}-{shard}-{replica}.example.com.
If this needs to be done under e.g. a new generateAnnotations option for backwards-compatibility, that's also fine with me, as long as I have some way to attach them.

Implemented in 0.17.0 version
cc @joewreschnig


keep profile images in repo

ok, one of the main reasons the website build fails is becuase the profile image from this repo's url does not resolve anymore.
While I have tried capturing this in Hugo so that it does not fail, it just keeps happening.
I wonder if we might keep the images in this repo, as a way to combat that?

Oh no :/ so you mean like storing them in a folder (permanently) and accessing them from here? We'd need to double check to be safe on the GDPR side + I'd also want to ask for consent. Just thinking out loud - wouldn't be another alternative to capture a random screenshot of the website and adding that as an image on the website? Or, even better, create a link card instead?

oh yes, we for sure cannot do that without asking first!
a link card could be good, but I struggled getting that working with hugo. Want to give it a try @cosimameyer ? If we can get link cards, then we can simplify the json information too (like getting page title etc from OG directly)

I looked into it yesterday; I don't have a working solution yet but I'm on it :)

I had an idea. I don't know what you are thinking, but what if we setup a script that runs curl to fetch website info, grab the og data and add the og data to the Json? That could also minimize the information we ask people to supply to us, as we would get it from the source?


Problem with downloading the data.

Hi,
I followed the instructions and when I attempted to download the following example
git annex get sub-douglas sub-juntendoPrisma/anat/
I got this error:
get sub-douglas/anat/sub-douglas_T1w.nii.gz (from amazon...)
HttpExceptionRequest Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:12 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190912Z")]
path                 = "/SHA256E-s15150355--b8c3c6fcb51c1aa572fa457022519899b54e1bf822548df802ec7c77b08ad02b.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
(StatusCodeException (Response {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseVersion = HTTP/1.1, responseHeaders = [("x-amz-request-id","QES26SY901C4DA1H"),("x-amz-id-2","fprQYbyeGXrOwMM+Dv00tEENQVUoXFrkpy2DwqHIu8DPAFWoDuegVMN0rKiVqEQmsrP+iaWDF3Q="),("Content-Type","application/xml"),("Transfer-Encoding","chunked"),("Date","Thu, 14 Jul 2022 19:09:12 GMT"),("Server","AmazonS3")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:12 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190912Z")]
path                 = "/SHA256E-s15150355--b8c3c6fcb51c1aa572fa457022519899b54e1bf822548df802ec7c77b08ad02b.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
}) "\nInvalidAccessKeyIdThe AWS Access Key Id you provided does not exist in our records.08TJMT99S3511WOZEP91QES26SY901C4DA1HfprQYbyeGXrOwMM+Dv00tEENQVUoXFrkpy2DwqHIu8DPAFWoDuegVMN0rKiVqEQmsrP+iaWDF3Q=")
Unable to access these remotes: amazon
Maybe add some of these git remotes (git remote add ...):
5ca3a9a5-ac75-410e-8dcd-8a24463f08fa -- julien@julien-macbook.local:~/code/spine-generic/data-single-subject
(Note that these git remotes have annex-ignore set: origin)
failed
(from amazon...) nat/sub-douglas_T2star.nii.gz
HttpExceptionRequest Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:12 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190912Z")]
path                 = "/SHA256E-s2976744--36dfd813a650a88e427820231a38bd32b5369e569d87ad8f73f22bf35967d288.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
(StatusCodeException (Response {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseVersion = HTTP/1.1, responseHeaders = [("x-amz-request-id","47KEDSBT8R4GKFXT"),("x-amz-id-2","K0PEAnKyWaiKf/ueXqPuMEKTMwETrkMv8LSEvMXalwHVUwEUwG+xGH0VG9fVtg6m9AkQLHoSK3g="),("Content-Type","application/xml"),("Transfer-Encoding","chunked"),("Date","Thu, 14 Jul 2022 19:09:12 GMT"),("Server","AmazonS3")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:12 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190912Z")]
path                 = "/SHA256E-s2976744--36dfd813a650a88e427820231a38bd32b5369e569d87ad8f73f22bf35967d288.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
}) "\nInvalidAccessKeyIdThe AWS Access Key Id you provided does not exist in our records.08TJMT99S3511WOZEP9147KEDSBT8R4GKFXTK0PEAnKyWaiKf/ueXqPuMEKTMwETrkMv8LSEvMXalwHVUwEUwG+xGH0VG9fVtg6m9AkQLHoSK3g=")
Unable to access these remotes: amazon
Maybe add some of these git remotes (git remote add ...):
5ca3a9a5-ac75-410e-8dcd-8a24463f08fa -- julien@julien-macbook.local:~/code/spine-generic/data-single-subject
(Note that these git remotes have annex-ignore set: origin)
failed
(from amazon...) nat/sub-douglas_T2w.nii.gz
HttpExceptionRequest Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s7194841--2480dff8f36533a702782135b652c6a40d5e68741350d8470eb0742ad4830dc4.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
(StatusCodeException (Response {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseVersion = HTTP/1.1, responseHeaders = [("x-amz-request-id","47K132DQ8X0H1XKG"),("x-amz-id-2","hw/PoT4Ggs9TZlM2+5VILykwZD8gwF5aPZTy+Ayc29s0HuYWRmzldQ24JDSzbTm8oolS8El0ERo="),("Content-Type","application/xml"),("Transfer-Encoding","chunked"),("Date","Thu, 14 Jul 2022 19:09:12 GMT"),("Server","AmazonS3")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s7194841--2480dff8f36533a702782135b652c6a40d5e68741350d8470eb0742ad4830dc4.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
}) "\nInvalidAccessKeyIdThe AWS Access Key Id you provided does not exist in our records.08TJMT99S3511WOZEP9147K132DQ8X0H1XKGhw/PoT4Ggs9TZlM2+5VILykwZD8gwF5aPZTy+Ayc29s0HuYWRmzldQ24JDSzbTm8oolS8El0ERo=")
Unable to access these remotes: amazon
Maybe add some of these git remotes (git remote add ...):
5ca3a9a5-ac75-410e-8dcd-8a24463f08fa -- julien@julien-macbook.local:~/code/spine-generic/data-single-subject
(Note that these git remotes have annex-ignore set: origin)
failed
(from amazon...) wi/sub-douglas_dwi.nii.gz
HttpExceptionRequest Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s8843523--be93765d6aec7521ee7f9f62c6a62989de4dd74cdba9bbcac4f8fcfcd73a975f.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
(StatusCodeException (Response {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseVersion = HTTP/1.1, responseHeaders = [("x-amz-request-id","47KCCEBGMKXY8ATE"),("x-amz-id-2","C4thnV6RxT/pAMup3vI5qiz60mYpo8CaeWaqfUZtsXFX7afqOKWCumAeB8kbJW7cHTp/yQOSGX4="),("Content-Type","application/xml"),("Transfer-Encoding","chunked"),("Date","Thu, 14 Jul 2022 19:09:12 GMT"),("Server","AmazonS3")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s8843523--be93765d6aec7521ee7f9f62c6a62989de4dd74cdba9bbcac4f8fcfcd73a975f.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
}) "\nInvalidAccessKeyIdThe AWS Access Key Id you provided does not exist in our records.08TJMT99S3511WOZEP9147KCCEBGMKXY8ATEC4thnV6RxT/pAMup3vI5qiz60mYpo8CaeWaqfUZtsXFX7afqOKWCumAeB8kbJW7cHTp/yQOSGX4=")
Unable to access these remotes: amazon
Maybe add some of these git remotes (git remote add ...):
5ca3a9a5-ac75-410e-8dcd-8a24463f08fa -- julien@julien-macbook.local:~/code/spine-generic/data-single-subject
(Note that these git remotes have annex-ignore set: origin)
failed
(from amazon...) risma/anat/sub-juntendoPrisma_T1w.nii.gz
HttpExceptionRequest Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s15620184--f94149fad929cec9c004485b4204369319a438a97fc669426402d747f81fc748.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
(StatusCodeException (Response {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseVersion = HTTP/1.1, responseHeaders = [("x-amz-request-id","47K5H1A0A443D0ZP"),("x-amz-id-2","Pwg4olm+KxbfixClkS/o/3YU25+IN+qLkZsGgjItdWJhlCiEQ37x2ljH0Q9MrJkSMLv52ffVB/w="),("Content-Type","application/xml"),("Transfer-Encoding","chunked"),("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Server","AmazonS3")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s15620184--f94149fad929cec9c004485b4204369319a438a97fc669426402d747f81fc748.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
}) "\nInvalidAccessKeyIdThe AWS Access Key Id you provided does not exist in our records.08TJMT99S3511WOZEP9147K5H1A0A443D0ZPPwg4olm+KxbfixClkS/o/3YU25+IN+qLkZsGgjItdWJhlCiEQ37x2ljH0Q9MrJkSMLv52ffVB/w=")
Unable to access these remotes: amazon
Maybe add some of these git remotes (git remote add ...):
5ca3a9a5-ac75-410e-8dcd-8a24463f08fa -- julien@julien-macbook.local:~/code/spine-generic/data-single-subject
(Note that these git remotes have annex-ignore set: origin)
failed
(from amazon...) risma/anat/sub-juntendoPrisma_T2star.nii.gz
HttpExceptionRequest Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s2320143--a6e785abf7a70c4b2d0d5a8e46cdff2d97feaffe9caf5706b6bbab208de9aba0.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
(StatusCodeException (Response {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseVersion = HTTP/1.1, responseHeaders = [("x-amz-request-id","47K539PZEF1YSHB5"),("x-amz-id-2","38Ke/K6TooqJUP3oawQHnLlLvc7ASo9Buzt4Q8gueGL1VtzXhHz5UALCcqPzz/H7I7CA+vfNcaQ="),("Content-Type","application/xml"),("Transfer-Encoding","chunked"),("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Server","AmazonS3")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s2320143--a6e785abf7a70c4b2d0d5a8e46cdff2d97feaffe9caf5706b6bbab208de9aba0.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
}) "\nInvalidAccessKeyIdThe AWS Access Key Id you provided does not exist in our records.08TJMT99S3511WOZEP9147K539PZEF1YSHB538Ke/K6TooqJUP3oawQHnLlLvc7ASo9Buzt4Q8gueGL1VtzXhHz5UALCcqPzz/H7I7CA+vfNcaQ=")
Unable to access these remotes: amazon
Maybe add some of these git remotes (git remote add ...):
5ca3a9a5-ac75-410e-8dcd-8a24463f08fa -- julien@julien-macbook.local:~/code/spine-generic/data-single-subject
(Note that these git remotes have annex-ignore set: origin)
failed
(from amazon...) risma/anat/sub-juntendoPrisma_T2w.nii.gz
HttpExceptionRequest Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s10980709--8e7ea05115d986a54cefd18d5909c5c1203264d6089093aefdbb7a3921580cb8.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
(StatusCodeException (Response {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseVersion = HTTP/1.1, responseHeaders = [("x-amz-request-id","47KEDNKDB36B494J"),("x-amz-id-2","qO1KEa8pvu66LpwO5wnKfAbp/Q2bnL/35uwNcgSRikNKIx6mBV73L+TXG0ImGEoQwL4JoWg/UF8="),("Content-Type","application/xml"),("Transfer-Encoding","chunked"),("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Server","AmazonS3")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s10980709--8e7ea05115d986a54cefd18d5909c5c1203264d6089093aefdbb7a3921580cb8.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
}) "\nInvalidAccessKeyIdThe AWS Access Key Id you provided does not exist in our records.08TJMT99S3511WOZEP9147KEDNKDB36B494JqO1KEa8pvu66LpwO5wnKfAbp/Q2bnL/35uwNcgSRikNKIx6mBV73L+TXG0ImGEoQwL4JoWg/UF8=")
Unable to access these remotes: amazon
Maybe add some of these git remotes (git remote add ...):
5ca3a9a5-ac75-410e-8dcd-8a24463f08fa -- julien@julien-macbook.local:~/code/spine-generic/data-single-subject
(Note that these git remotes have annex-ignore set: origin)
failed
(from amazon...) risma/anat/sub-juntendoPrisma_acq-MToff_MTS.nii.gz
HttpExceptionRequest Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s1744995--689bd9bb119372e541176a39a448c2da8c7a023f15f65893442c2ccbfc315d0d.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
(StatusCodeException (Response {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseVersion = HTTP/1.1, responseHeaders = [("x-amz-request-id","47K70YEWYAJ42YBH"),("x-amz-id-2","5bAFBKUizf7gUfLRgUn2OcdGDnij8HtxQZynPPUgJOzfl2kIiGwu8IUb0hCW6EIiVxWb/IfpoWU="),("Content-Type","application/xml"),("Transfer-Encoding","chunked"),("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Server","AmazonS3")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s1744995--689bd9bb119372e541176a39a448c2da8c7a023f15f65893442c2ccbfc315d0d.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
}) "\nInvalidAccessKeyIdThe AWS Access Key Id you provided does not exist in our records.08TJMT99S3511WOZEP9147K70YEWYAJ42YBH5bAFBKUizf7gUfLRgUn2OcdGDnij8HtxQZynPPUgJOzfl2kIiGwu8IUb0hCW6EIiVxWb/IfpoWU=")
Unable to access these remotes: amazon
Maybe add some of these git remotes (git remote add ...):
5ca3a9a5-ac75-410e-8dcd-8a24463f08fa -- julien@julien-macbook.local:~/code/spine-generic/data-single-subject
(Note that these git remotes have annex-ignore set: origin)
failed
(from amazon...) risma/anat/sub-juntendoPrisma_acq-MTon_MTS.nii.gz
HttpExceptionRequest Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s1712449--7d70996bf94130244a3705938b591cd14e6e57fe3be4a75f9ab0e6181fba44f2.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
(StatusCodeException (Response {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseVersion = HTTP/1.1, responseHeaders = [("x-amz-request-id","47K9DVRNYQDK81SZ"),("x-amz-id-2","1TTo0E71ru2+JqI9Ct1UyqspmCifh3W1aeCLCZLiTX/SwZdtUOZvRON1+8zC8QM2M05r4+9DJe4="),("Content-Type","application/xml"),("Transfer-Encoding","chunked"),("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Server","AmazonS3")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s1712449--7d70996bf94130244a3705938b591cd14e6e57fe3be4a75f9ab0e6181fba44f2.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
}) "\nInvalidAccessKeyIdThe AWS Access Key Id you provided does not exist in our records.08TJMT99S3511WOZEP9147K9DVRNYQDK81SZ1TTo0E71ru2+JqI9Ct1UyqspmCifh3W1aeCLCZLiTX/SwZdtUOZvRON1+8zC8QM2M05r4+9DJe4=")
Unable to access these remotes: amazon
Maybe add some of these git remotes (git remote add ...):
5ca3a9a5-ac75-410e-8dcd-8a24463f08fa -- julien@julien-macbook.local:~/code/spine-generic/data-single-subject
(Note that these git remotes have annex-ignore set: origin)
failed
(from amazon...) risma/anat/sub-juntendoPrisma_acq-T1w_MTS.nii.gz
HttpExceptionRequest Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s1759011--dd42761f11f5d747ea7f4cf77b512727dbf049f17cd2e15782281209420d6ca4.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
(StatusCodeException (Response {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseVersion = HTTP/1.1, responseHeaders = [("x-amz-request-id","N88BXCK310V416Y9"),("x-amz-id-2","sI24f3YDuh5MtkfczH+QkkfjiWLE8pytuZ+TWhki0jv3AIgzbQp4mATPjm9zRxAcOltjfB5RPKI="),("Content-Type","application/xml"),("Transfer-Encoding","chunked"),("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Server","AmazonS3")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {
host                 = "data-single-subject---spine-generic---neuropoly.s3.ca-central-1.amazonaws.com"
port                 = 443
secure               = True
requestHeaders       = [("Date","Thu, 14 Jul 2022 19:09:13 GMT"),("Authorization",""),("X-Amz-Content-Sha256","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"),("X-Amz-Date","20220714T190913Z")]
path                 = "/SHA256E-s1759011--dd42761f11f5d747ea7f4cf77b512727dbf049f17cd2e15782281209420d6ca4.nii.gz"
queryString          = ""
method               = "GET"
proxy                = Nothing
rawBody              = False
redirectCount        = 10
responseTimeout      = ResponseTimeoutDefault
requestVersion       = HTTP/1.1
proxySecureMode      = ProxySecureWithConnect
}
}) "\nInvalidAccessKeyIdThe AWS Access Key Id you provided does not exist in our records.08TJMT99S3511WOZEP91N88BXCK310V416Y9sI24f3YDuh5MtkfczH+QkkfjiWLE8pytuZ+TWhki0jv3AIgzbQp4mATPjm9zRxAcOltjfB5RPKI=")
Unable to access these remotes: amazon
Maybe add some of these git remotes (git remote add ...):
5ca3a9a5-ac75-410e-8dcd-8a24463f08fa -- julien@julien-macbook.local:~/code/spine-generic/data-single-subject
(Note that these git remotes have annex-ignore set: origin)
failed
get: 10 failed
And when I add git remote add  5ca3a9a5-ac75-410e-8dcd-8a24463f08fa -- julien@julien-macbook.local:~/code/spine-generic/data-single-subject command and try again, nothing is happening for a long time and I have to kill the process.

Hi @mirzanahal, thanks for reporting this issue. It seems that we recently changed some of the Amazon S3 file storage permissions, and now git annex get is unable to access the files. We'll get this fixed and let you know as soon as things are back to normal.
Separately, I can explain why the git remote add command didn't help: this remote is actually referring to @jcohenadad's laptop, so it's not actually a computer that anyone other than Julien can access. Due to how git-annex works, it knows that the copy of the repository on this laptop was used to update the data during its history, so that's why it makes this (useless) suggestion of adding it as a remote. You can undo this with the following command:
git remote remove 5ca3a9a5-ac75-410e-8dcd-8a24463f08fa

Ok, thanks for your patience. Can you try again with these commands, run from inside the repository:
git annex enableremote amazon public=yes
git annex get sub-douglas sub-juntendoPrisma/anat/

This should work now. If not, could you post the results of the following commands, please:
git config --list | grep '^remote'
git show git-annex:remote.log

Perfect! It's working now.
Thank you.


Trouble With Component Special Field

Hello,
I am trying to test using a component for a special field.  I followed the tutorial from vuetable-2 like the documentation says, but I receive the following error:
Unknown custom element: vuetable-field-component:custom-actions - did you register the component correctly? For recursive components, make sure to provide the "name" option.
I have properly registered my component:
import Vue from 'vue';
import Vuetable from 'vuetable-3';
import CustomActions from './CustomActions.vue';

Vue.component('custom-actions', CustomActions);

My fields data property looks like the following:
fields: [
        {
          name: 'name',
          title: 'Name',
          sortField: 'name',
        },
        {
          name: 'ip',
          title: 'IP Address',
          sortField: 'ip',
        },
        {
          name: '__component:custom-actions',
          title: 'Fullname',
          sortField: 'fullname',
        },
      ],

I am not sure where the vuetable-field-  is coming from on my component name, but it seems like that is interfering with my component.
Or has the process changed and there is some other method of using custom components?
Thanks,
Jeremy

Will take a look and will get back to you!

I did find your CodeSansbox example that uses custom components. In that example, the component is passed directly as the name parameter of a field, without the '__component:' syntax:
import VuetableFieldSwitch from './VuetableFieldSwitch.vue'

{
    name: VuetableFieldSwitch,
    title: 'Toggle Switch',
    titleClass: 'center aligned',
    dataClass: 'left aligned',
    switch: {
      // label: 'Male?',
      label: (data) => data.name,
      field: (data) => data.gender === 'M',
    }
  }

This does work, so I really just want to make sure that this is the proper way of using a special component field with Vuetable-3. Also, the tutorial from Vuetable-2 leaves out the fact that you have to have logic in the component to handle weather you are rendering the TH or TD for the custom field:
<template>

      <input type="checkbox"
        @change="toggleSwitch(rowData, $event)"
        :checked="checkValue(rowData, rowField)"
      >
      {{ label(rowData, rowField) }}

</template>

Thanks,
Jeremy


Chat doesn't work in the macOS app

Keybase GUI Version: 1.0.20-20170317000044+73c5db6
Error: Unknown RPC Error at t (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:17:31890) at new t (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:18:701) at s (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:18:277) at i (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:18:205) at file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:12:23905 at file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:76:27307 at e.t.Deferrals.e._call (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:42:11313) at file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:42:11464 at c (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:42:11091) at e.t.Deferrals.e._fulfill (file:///Applications/Keybase.app/Contents/Resources/app/desktop/dist/index.bundle.js:42:11423)

Can you do a keybase log send? Thanks
cc: @mmaxim  and @chrisnojima

I think I have:
log ID 2f3f603b32ff0452d66b8e1c
https://github.com/keybase/client/issues/new?body=[write something useful and descriptive here]

my log id: 2f3f603b32ff0452d66b8e1c
Daniel Peters
Product Development Chemist
+1<PHONE_NUMBER> ext 412
On Thu, Mar 23, 2017 at 10:11 AM, Maxwell Krohn<EMAIL_ADDRESS>wrote:

Can you do a keybase log send? Thanks
cc: @mmaxim https://github.com/mmaxim and @chrisnojima
https://github.com/chrisnojima
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/keybase/client/issues/6339#issuecomment-288731184,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANp4OTxy_MgLylOVU8Xx0f7vQOuZwh15ks5ron2XgaJpZM4MmzGE
.

@strib I see KBFS panicing in these logs, which I think is hosing chat for this guy.
104839 panic(0x4bc5de0, 0xc420014060)
104840 /usr/local/Cellar/go/1.7.5/libexec/src/runtime/panic.go:500 +0x1a1
104841 github.com/keybase/kbfs/libkbfs.(*RootMetadata).Revision(0x0, 0x4e2a088)
104842 /Users/test/go/src/github.com/keybase/kbfs/libkbfs/root_metadata.go:634 +0x22
104843 github.com/keybase/kbfs/libkbfs.(*folderBranchOps).SetInitialHeadFromServer.func2.1(0xc42023ac00, 0xc420531e50, 0x68583f0, 0xc427ab3d00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
104844 /Users/test/go/src/github.com/keybase/kbfs/libkbfs/folder_branch_ops.go:1528 +0xa3
104845 github.com/keybase/kbfs/libkbfs.(*folderBranchOps).SetInitialHeadFromServer.func2(0x0, 0x0)
104846 /Users/test/go/src/github.com/keybase/kbfs/libkbfs/folder_branch_ops.go:1529 +0x993
104847 github.com/keybase/kbfs/libkbfs.runUnlessCanceled.func1(0xc427aeef60, 0xc427aabe30)
104848 /Users/test/go/src/github.com/keybase/kbfs/libkbfs/util.go:25 +0x27
104849 created by github.com/keybase/kbfs/libkbfs.runUnlessCanceled
104850 /Users/test/go/src/github.com/keybase/kbfs/libkbfs/util.go:26 +0x7c

This is what it looks like from chat's side:
++Chat: - TlfHandler: CryptKeys(tlf=djpeter2,katepeters,mode=CHAT_GUI,handler=false) -> ERROR: EOF (149.396843ms) [tags:chat-trace=vJEL0pmNGx40]

Yes, this is a KBFS bug.  It seems like this new folder was created locally in the journal, and it was never flushed to the server.  It's failing on squashing the journal, because of a bug where it doesn't work when there hasn't been anything flushed to the server yet.
We will fix the bug.  You can work around this in the meantime with the steps below.
Completely shutdown all Keybase processes.
run this command: rm -rf /Users/danielpeters/Library/Application Support/Keybase/kbfs_journal/v1/0120ab7ef92c69200f0fcaa527b0e62b7c17-0d4eb7ee44fbc71d
Restart Keybase
Sorry for the inconvenience.  Please let us know if this fixes things for you.

(Note that I edited the above command to include quotes around the pathname, since it has a space in it.)

This won't affect all new convos will it?

I just created a new one and it worked, so I guess this was a weird case?

It was only for that particular conversation, because the folder was in a broken state locally.  Basically it could happen for any new folder that's initialized by writing a bunch of stuff into it via KBFS at once, before the journal has a chance to flush for the first time.


How to change image of arc menu from java code

app:menu_scr="@drawable/ic_add"
How to achieve this in java code. On menu opened i want to change the image and on menu again the previous image.

If you use a vector image use AnimatedStateListDrawable then it should work without any changes needed. Can you give it a shot?

I am not able to find the property "AnimatedStateListDrawable " can you provide the code snippet.

Realized I would need to expose the drawable property for this to work.
Probably can send a PR to enhance this?

Realized I would need to expose the drawable property for this to work.
Probably can send a PR to enhance this?

Sorry i didn't get what is PR.


Wait for a WebSocket connection to close before reconnecting

As identified by @aguspdana, the original implementation attempted to reconnect every so often, even if other connection attempts were still in progress! This could lead to a situation where multiple WebSockets were connected, which could explain the recent surge in connections we saw after the incident where the server could not respond.

I tested this locally by hackily slowing down the WebSocket connection code:
diff --git a/ui/frontend/websocketMiddleware.ts b/ui/frontend/websocketMiddleware.ts
index 8a540a4d..281b417a 100644
--- a/ui/frontend/websocketMiddleware.ts
+++ b/ui/frontend/websocketMiddleware.ts
@@ -12,6 +12,11 @@ import {

 const WSMessageResponse = z.discriminatedUnion('type', [WebSocketError, WSExecuteResponse]);

+function syncSleep(t: number) {
+  const start = Date.now();
+  while (Date.now() - start < t);
+}
+
 const reportWebSocketError = async (error: string) => {
   try {
     await fetch('/nowebsocket', {
@@ -68,6 +75,7 @@ export const websocketMiddleware =
     };

     const connect = () => {
+      syncSleep(200);
       socket = openWebSocket(window.location);
       if (socket) {
         resetTimeout();

The previous code could actually end up in a case where it seemingly would connect new WebSockets forever (or until resources ran out)

+      syncSleep(200);

I don't think it makes a difference here.

The previous code could actually end up in a case where it seemingly would connect new WebSockets forever (or until resources ran out)

Do you mean the code before this PR? Yes, if the handshake takes more than 10 seconds. It stops creating a new WS connection until the last one is connected.

There's a WS gotcha that can't be debugged locally. When a connection is broken, the browser may not fire the close event immediately, it optimistically waits for the connection to get back to normal again. Usually the server sends ping/pong frame to ensure the connection is still alive. After n failed ping/pong, it may send a close frame. The client may never get the close message because the network is broken. In this case, we stuck with a WS connection that seems still connected but is actually not.
I'm not sure if this optimistic behavior can happen when the WS never reaches "open" state. If it does, with the current PR, the re-connection may never succeed because it attempts to reconnect only when the close event is fired.

if (!event.wasClean) {
  reconnect();
}

Continuing the above scenario. If the connection gets back to normal again, the client would receive the close message. Thus the close event would be fired with event.wasClean === true. In this case, the client would not reconnect, even though it should.
I think we should always reconnect on close unless ws.close() is called or when the server explicitly tells not to reconnect.

An alternative solution I have in mind is
...

// https://exponentialbackoffcalculator.com
const backoffMs = (n: number) => Math.min(5000 * Math.pow(2, n), 60000) * (1 + Math.random() / 2);

const idleTimeoutMs = 60 * 60 * 1000;

export const websocketMiddleware =
  (window: Window): Middleware =>
  (store) => {
    let socket: WebSocket | null = null;
    let reconnectAttempt = 0;

    let timeout: number | null = null;
    const resetTimeout = () => {
      if (timeout) {
        window.clearTimeout(timeout);
      }

      timeout = window.setTimeout(() => {
        if (!socket) {
          return;
        }

        socket.close();
      }, idleTimeoutMs);
    };

    const connect = () => {
      const alreadyConnected = socket && socket.readyState == socket.OPEN;

      if (alreadyConnected) {
        return;
      }

      socket = openWebSocket(window.location);

      if (socket) {
        resetTimeout();

        socket.addEventListener('open', () => {
          store.dispatch(websocketConnected());
          reconnectAttempt = 0;
        });

        socket.addEventListener('close', (event) => {
          store.dispatch(websocketDisconnected());

          // TODO: Always reconnect unless socket.close() is called or the server
          // explicitly tells to not reconnect.
          // Since the WS instance is not passed outside of the parent function
          // we reconnect uncondionally.
          connect();
        });

        socket.addEventListener('error', () => {
          // We cannot get detailed information about the failure
          // https://stackoverflow.com/a/31003057/155423
          const error = 'Generic WebSocket Error';
          store.dispatch(websocketError(error));
          reportWebSocketError(error);
        });

        socket.addEventListener('message', (event) => {
          try {
            const rawMessage = JSON.parse(event.data);
            const message = WSMessageResponse.parse(rawMessage);
            store.dispatch(message);
            resetTimeout();
          } catch (e) {
            console.log('Unable to parse WebSocket message', event.data, e);
          }
        });
      }

      const delay = backoffMs(reconnectAttempt);
      reconnectAttempt += 1;
      setTimeout(connect, delay);
    };

    connect();

    return (next) => (action) => {
      if (socket && socket.readyState == socket.OPEN && sendActionOnWebsocket(action)) {
        const message = JSON.stringify(action);
        socket.send(message);
        resetTimeout();
      }

      next(action);
    };
  };

const sendActionOnWebsocket = (action: any): boolean => action.type === ActionType.WSExecuteRequest;

Plus the client should initiate ping/pong, otherwise it won't detect hanging connection as I described above.
A better approach is to create a WS abstraction that handles the re-connection.

I tried to follow your comment, but I'm not confident that I did so; my attempts at responses are below. Would you please also restate if there would be a concrete problem with the code if this PR was merged (and if so what to do to trigger the problem)?
Thanks!

After 200 ms the previous connection will eventually connected

But in that case the reconnect function should exit early due to theif (socket && socket.readyState == socket.OPEN) guard. I totally can see how we could start a few reconnection attempts without waiting for the previous attempt to either succeed or fail. What I don't understand is what sequence of code causes the synchronous delay to spiral into an infinite number of connection attempts.

There's a WS gotcha that can't be debugged locally.

This seems like a normal networking problem and there's not much to be done about it. Adding ping/pong doesn't solve the problem because the disconnection can happen in between the ping interval. All the ping/pong can do is decrease the time to notice the disconnection if nothing else is happening. You could increase the frequency at the expense of additional network traffic.

Usually the server sends ping/pong frame to ensure the connection is still alive

We do not, so I don't think the hypothetical is currently relevant.

or when the server explicitly tells not to reconnect.

Isn't that the same problem you previously described? The server notices the transient network issue, sends a "please do not reconnect" message, then the connection re-establishes, the client disconnects... right?

A better approach is to create a WS abstraction that handles the re-connection.

This file is the abstraction. I'm open to concrete suggestions on how to reorganize it though.

One interesting difference is that in production, we have multiple proxies in the middle!
Browser -> CloudFlare -> nginx -> Axum

The proxies work by accepting the connection immediately, then sending the data upstream. In our case, nginx was the broken link, but connections to CloudFlare continued to work. That means that the open event actually fired, resetting our reconnectAttempt back to zero, but then we immediately closed and started the reconnection dance again.
To reproduce this locally, I proxied through ProxyMan and disabled the /websocket endpoint. The problem occurred right away. Turning off the proxy resulted in a single failure.

That proxy problem still occurs with the code proposed by this PR. It's better as now we don't get quite as many concurrent requests, but each request is pretty quickly after the previous.
My thoughts are:

Make the timeout / attempt counter a little bit more global. If we waited 10 seconds, then got a connection and closed, should we really only wait 1 ms to reconnect instead of 10 s again?
We should have some kind of handshake with the server to verify that we've really-really connected. I kind of wanted this for other unrelated reasons, but the response to that would be a good sign that the socket is up and running.

Alright, this PR has grown a bit in size as I've brought in some refactoring I did in another branch; only the last two commits are directly relevant to the WebSocket reconnection problem. Since I needed to do a bit more communication, I didn't want to write something here that I'd have to rewrite in a day or two.
The penultimate commit addresses the original issue of performing overlapping reconnection attempts by only reconnecting after receiving the close, not just at an arbitrary interval.
The last commit addresses the proxy issue by sending a message from the browser to the server and waiting for the response. Only once that is received will we perform reconnection attempts.

After 200 ms the previous connection will eventually connected

My bad. I thought reconnectAttempt = 0; was inside open listener.

There's a WS gotcha that can't be debugged locally.

This seems like a normal networking problem and there's not much to be done about it. Adding ping/pong doesn't solve the problem because the disconnection can happen in between the ping interval. All the ping/pong can do is decrease the time to notice the disconnection if nothing else is happening. You could increase the frequency at the expense of additional network traffic.

You're right, it doesn't solve this problem. But eventually we need to implement it to avoid bad UX, e.g. the front-end stuck loading.

or when the server explicitly tells not to reconnect.

This is only a hypothetical scenario, in case we want to limit the concurrent connection to prevent the server from running out of resources.

This file is the abstraction. I'm open to concrete suggestions on how to reorganize it though.

I've created this gist you may want to check.
https://gist.github.com/aguspdana/987a7ee9f587087969fba4ea6a123f8d
The exposed methods are compatible with the standard WebSocket. Plus it has options to reconnect on close/error and queue messages while the socket is connecting. The reconnect delay is similar to this PR: delta between close event and reconnecting.

But eventually we need to implement it to avoid bad UX, e.g. the front-end stuck loading.

I'd expect that to be driven by the client, not the server. Additionally, it may be better served at a higher level. For example, an execute request will result in N stderr / stdout responses. If one of those doesn't return frequently enough, we'd want to reflect that in the UI.

in case we want to limit the concurrent connection

Ah. I think that'd be covered in the current implementation — the server just will drop the handshake. Since it never finished completely, the client won't reconnect.

Plus it has options to [...] queue messages while the socket is connecting

This might be something we want someday, but I don't think today. The playground UI likely will never rely solely on WebSockets, so we will always need to perform some check somewhere if the WebSocket is even available to be used. To know if it can be used, we will have needed to connect. The only time we'd need queuing would be during a reconnection scenario.

Would you please also restate if there would be a concrete problem with the code if this PR was merged (and if so what to do to trigger the problem)?

        ...
        socket.addEventListener('open', () => {
          if (socket) {
            socket.send(JSON.stringify(websocketConnected()));
          }
        });
        ...
        socket.addEventListener('message', (event) => {
          ...
            if (websocketConnected.match(message)) {
              wasConnected = true;
              reconnectAttempt = 0;
            }
          ...
        });
        ...

It's not necessary to exchange a message to ensure that the client and the
server are connected (wasConnected = true).  That's what the open event is for.
In this PR, if the connection is broken imidiately after it opens, before the
client gets the response back from the server, the client would never reconnect.

Have you had a chance to read https://github.com/rust-lang/rust-playground/pull/912#issuecomment-1483414855 or the comment of the last commit?

Sorry, I didn't give much thought for it before.

I proxied through ProxyMan and disabled the /websocket endpoint. The problem occurred right away. Turning off the proxy resulted in a single failure.

So, you're trying to connect to a path that doesn't exist and the open event fired? What was the status code?
This is really weird.
I visited the playground and ran this in the console:
(function () {
    let socket = new WebSocket("wss://play.rust-lang.org/websocket-not-exist");
    socket.onopen = function () { console.log("open") };
    socket.onclose = function () { console.log("close") };
})()

Only the close event was fired. And the browser only showed provisional header.
Provisional headers are shown

Could that be that there's a bug in ProxyMan?

I didn't see anything with a local Nginx reverse proxy, so that's probably a dead end of investigation. I'm going to go ahead and merge this because the previous behavior is clearly wrong and this appears to be better, even if it may not fix every possible case.


[NewTemplate][Java] GCSToBigTable

similar to python template

HI @anish97IND If you are not working on this gitissue, can you please un-assign yourself.

Hi @shashank-google , I have completed the coding part but was facing issue with a dependency. Hence, was unable to raise PR for it. However, I will un-assign myself, will revert back if I find a triage.


Please review Taskade

Hi,
I just added Taskade to the list. Please review when you get a chance.
Thanks!

Merged. Nice one, thanks for the contribution. Really the name :)

Thank you! =)


feat(33367): support destructuring parameter @param tag in tsdoc

Fixes #33367

Do you want to keep working on this? Otherwise I'd like to close it to reduce the number of open PRs.
@gabritto This is related to the work you're doing on param completions, since it would reduce the complexity of the tags you'd have to emit.

@typescript-bot pack this

Also addresses or even fixes https://github.com/microsoft/TypeScript/issues/11859

@typescript-bot pack this

The error should be JS-only, but I thought that JSDoc errors only show in JS anyway. Better test that though.

@a-tarasyuk do you want to keep working on this?

As far as I can tell, both calls match tags by index and not by name. The second examples fails because the top-level parameter { a, b } doesn't have a named tag (it doesn't have an identifier for a name anyway), so it falls back to index-based matching, and incorrectly grabs the type number for { a, b }. Is that what you were showing with your example?
I can see two fixes here:

Fancy fix: top-level parameters should skip matching by index if they are a binding pattern and some members of their pattern has a matching tag. This sounds complex and possibly slow.
Dumb fix: binding patterns shouldn't match by index. But this breaks existing code, I think.
Something else: tryGetTypeFromEffectiveTypeNode could pass down a parameter like isBindingPattern that could do the fancy check only when needed, or maybe the fancy check could instead be a recursive attempt to get the effective types of its properties and build an object type for the entire parameter.

For (1) and (2), though, I don't know whether call checking will then work, because @param {number} a only provides a type for the binding pattern property, not the entire binding pattern. This needs to be tested and fixed (somehow?) if it doesn't work.


Adding lite server support

Adding lite server support and concurrent tsc compiler start with watch

Thanks for the PR. I think this will be a useful addition!

Upgraded the lite server to version 2.0.1


Add Hawaii Images to instance-files, s3, seeders, etc.

Business Context:
Hawaii has sent us images (attached), which we need to get into s3 and the db so that we can use them on Hawaii letters.
As a Hawaii CSOC employee
I want letters that are generated from my instance of complaint manager to have Hawaii images
So that the letters look right
In Scope

Add images to instance-files (localstack-seed-files)
Add images to s3 buckets (noipm-/images)
Add/Update seeder(s) to add database rows for the uploaded files
Tweak built-in letter styling so that the images look right (@jordanngtw this could be a separate story I guess)

Out of Scope

Open Questions

Checklist (should be reviewed before grooming as the BA or Pair are writing the card—NOT reviewed for the first time at grooming)

Discuss the technical implementation of this card.
Discuss how this feature would be included in or affect the Audit Log.
In respect to security, what could go wrong? Brainstorm threats using STRIDE model, especially if this card introduces a new technical architecture or design pattern. (TIMEBOX: 7 mins) https://docs.google.com/document/d/18AFl1d3SRieI4d_8R3GyEazqQOycLNDHGN_vOYIHuiE/edit#heading=h.aio9zb5j63wl
Ensure any open questions have been resolved with stakeholders.
Determine if documentation should be referenced or created.
Ensure to include all necessary mockups to this card.
Discuss what success/failure user feedback messages would be present, if any occur (front end/back end).
Discuss why this feature would not be implemented behind a toggle / what would happen if this card was partially done while a release branch was being cut.
If this card is part of a sequence of cards, discuss if this card should be blocked until the testing of previous  cards in the sequence have been finished.
Have we added edge cases as ACs that we're considered from a QA perspective
Does this card overlap with any entities outlined in API Housekeeping?

Notes:


SAP Entries operator

Allow user input of SAP entries and custom operators (instead of the hardcoded EQ)

might be better to just add the possibility to declare strings


[Bug Report] Element UI Docs Homepage is no longer working

I don't know if this is the correct place to post this, but it is a critical error. I've tried on chrome, firefox, and edge.

Element UI version
2.13.2
OS/Browsers version
Windows 10, Chrome 84
Vue version
3.0.0-rc.8
Reproduction Link
https://jsfiddle.net/mmx38qxw/
Steps to reproduce
Go on the website
https://element.eleme.io/
What is Expected?
A website that works
What is actually happening?
A plain white page with this console error
Uncaught ReferenceError: Vue is not defined
at Object. (docs.0216a22.js:1)
at G (docs.0216a22.js:1)
at i (docs.0216a22.js:1)
at Module. (docs.0216a22.js:1)
at Module. (docs.0216a22.js:1)
at G (docs.0216a22.js:1)
at s (docs.0216a22.js:1)
at docs.0216a22.js:1
at docs.0216a22.js:1
(anonymous) @ docs.0216a22.js:1
G @ docs.0216a22.js:1
i @ docs.0216a22.js:1
(anonymous) @ docs.0216a22.js:1
(anonymous) @ docs.0216a22.js:1
G @ docs.0216a22.js:1
s @ docs.0216a22.js:1
(anonymous) @ docs.0216a22.js:1
(anonymous) @ docs.0216a22.js:1

In case anyone else encounters this, the issue is that the website does not work on a VPN.
I'm using NordVPN and the server country was Canada.

I get this also dude, don't know what to do now.

has anyone found a solution? I cant access it for some reason. Works on my mobile, but not in the browser - also not on incognito.
I do not use VPN or anything....

has anyone found a solution? I cant access it for some reason. Works on my mobile, but not in the browser - also not on incognito. I do not use VPN or anything....

1 minutes after writing that reply the website started to work again.
It hasent worked for me for a few months. I did not do anything.
I dont know what sorcery is this


Document dict(model) workaround

Fixes https://github.com/pydantic/pydantic/issues/10575

Change Summary

Related issue number

Checklist

[ ] The pull request title is a good summary of the changes - it will be used in the changelog
[ ] Unit tests for the changes exist
[ ] Tests pass on CI
[ ] Documentation reflects the changes where applicable
[ ] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Feels like this is special case enough that maybe it doesn't deserve a spot in the docs, but rather just an explanation on the issue is ok?

Was thinking the same, especially because if the Python docs happen to be updated (as I suggested in the cpython issue), then at least it is documented somewhere. Closing


Name conflicts with kudo.dev

Unfortunately this name is already taken for Kubernetes Universal Declarative Operator (kudo.dev), and the domains for kudo.io and kudo.sh are also already taken.
An alternative would be "kdo", as in "kay-doh".

Fixed by #17, #18.


Automatic login hook?

Automatic login is awesome, but I wish there was some hook to plug to.
My user object have a pointer (to the current survey they're suppose to answer). When user launch the app I would like to know when is the last time the current user have been fetch and add an includeKey to the user query to also fetch the pointer object, or at least receive a notification that user have been fetch in order to fetch the pointed object.
Hope it make sense and that you can point me in any direction.r

(This is similar to a question I asked here)[https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/463] and I still haven't figured out an applicable solution to this, so I definitely support here.
Maybe the parse sdk could guarantee that the '+object' or '+user' method is called on the furthest descendant of the user class when an automatic user is created?

@hhanesand fairly similar. But I also got surprise by the fact that Parse doesn't update the user object on app start. It basically restore the session but doesn't refresh the user. So if you store any data on the user, you're out of luck :(... I guess the easiest solution would be to deactivate auto login... Hope there is a better flow.

Hey everyone, we are discussing some APIs/features that might help improve this, but at current time - there is no public API to track when the object was fetched/saved/updated from the server.
I've just opened a separate issue to track this feature request - #775.

@nlutsenko ok, cool, that would be awesome ^^


SIGKILL from time to time

What version of Turborepo are you using?
1.5.5
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
It happens on all platforms in GitHub action.
Here is a failed example:
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /Users/runner/Library/pnpm/store/v3
  Virtual store is at:             node_modules/.pnpm
Progress: resolved 802, reused 19, downloaded 0, added 1
Progress: resolved 802, reused 137, downloaded 0, added [12](https://github.com/unional/standard-log/actions/runs/3167741848/jobs/5158451532#step:5:13)3
Progress: resolved 802, reused 196, downloaded 0, added 189
Progress: resolved 802, reused 294, downloaded 0, added 280
Progress: resolved 802, reused 350, downloaded 0, added 350
Progress: resolved 802, reused 390, downloaded 0, added 387
Progress: resolved 802, reused 474, downloaded 0, added 470
Progress: resolved 802, reused 560, downloaded 0, added 560
Progress: resolved 802, reused 685, downloaded 0, added 710
Progress: resolved 802, reused 760, downloaded 0, added 789
Progress: resolved 802, reused 770, downloaded 0, added 802, done
.../esbuild@0.[15](https://github.com/unional/standard-log/actions/runs/3167741848/jobs/5158451532#step:5:16).10/node_modules/esbuild postinstall$ node install.js
<EMAIL_ADDRESS>postinstall$ node install.js
<EMAIL_ADDRESS>postinstall: node:internal/errors:863
<EMAIL_ADDRESS>postinstall:   const err = new Error(message);
<EMAIL_ADDRESS>postinstall:               ^
<EMAIL_ADDRESS>postinstall: Error: Command failed<EMAIL_ADDRESS>--version
<EMAIL_ADDRESS>postinstall:     at checkExecSyncError (node:child_process:871:11)
<EMAIL_ADDRESS>postinstall:     at Object.execFileSync (node:child_process:907:15)
<EMAIL_ADDRESS>postinstall:     at validateBinaryVersion (/Users/runner/work/standard-log/standard-log/node_modules/.pnpm/turbo@1.5.5/node_modules/turbo/install.js:25:6)
<EMAIL_ADDRESS>postinstall:     at /Users/runner/work/standard-log/standard-log/node_modules/.pnpm/turbo@1.5.5/node_modules/turbo/install.js:308:5 {
<EMAIL_ADDRESS>postinstall:   status: null,
<EMAIL_ADDRESS>postinstall:   signal: 'SIGKILL',
<EMAIL_ADDRESS>postinstall:   output: [ null, Buffer(0) [Uint8Array] [], Buffer(0) [Uint8Array] [] ],
<EMAIL_ADDRESS>postinstall:   pid: 3040,
<EMAIL_ADDRESS>postinstall:   stdout: Buffer(0) [Uint8Array] [],
<EMAIL_ADDRESS>postinstall:   stderr: Buffer(0) [Uint8Array] []
<EMAIL_ADDRESS>postinstall: }
<EMAIL_ADDRESS>postinstall: Node.js v[18](https://github.com/unional/standard-log/actions/runs/3167741848/jobs/5158451532#step:5:19).10.0
<EMAIL_ADDRESS>postinstall: Failed
 ELIFECYCLE  Command failed with exit code 1.
Error: Process completed with exit code 1.

https://github.com/unional/standard-log/actions/runs/3167741848/jobs/5158451532
When re-run the jobs again, sometime it will pass.
Expected Behavior
Should not fail at postinstall
To Reproduce
It's random, but relatively common.

https://github.com/unional/standard-log/actions/runs/3167738313
This was failing too, but after retrying 2 times it passes

https://github.com/unional/clibuilder/actions/runs/3167221106/jobs/5157545003
Another failure, this time on macos node 16

Same problem too

Same problem too

https://qiita.com/tatmius/items/05967f4039d13d2b9283

Seeing a stale version of turbo here so will close. If you're still running into this problem, please open an issue with a reproduction using the most recent canary version.


Added reversing a linked list using iteration

Hi Dear @akanksha57
Great code
Thanks for your contribution......
Show your support on my youtube channel web Pixar(The institute of coding)
like , share , subscribe
youtube - https://youtu.be/5qnQjgdpFPg
telegram-channel - https://t.me/WebPixar
join our telegram channel for more goodies , swag packs


Improve reporting module

Coverage decreased (-0.3%) to 90.636% when pulling 2b849a90c2ddea55188e118c4455d31d092a3a7d on SAP:improve_reporting into d3b14cda7ad79fac60e522a1939a4fb4094e8ae6 on cloudfoundry-incubator:master.

Coverage decreased (-5.0%) to 85.947% when pulling 6d0aa8cf72be4f048d082f88406bf020cb2ed590 on SAP:improve_reporting into d3b14cda7ad79fac60e522a1939a4fb4094e8ae6 on cloudfoundry-incubator:master.

Coverage decreased (-5.0%) to 85.947% when pulling 6d0aa8cf72be4f048d082f88406bf020cb2ed590 on SAP:improve_reporting into d3b14cda7ad79fac60e522a1939a4fb4094e8ae6 on cloudfoundry-incubator:master.

Coverage decreased (-0.3%) to 90.614% when pulling 2208960b5f7d1ab2aa1dc0ebe71f6cffe2194a66 on SAP:improve_reporting into 1f6b0703ffaaa890cea14c999db5a6c645233e5a on cloudfoundry-incubator:master.

Coverage decreased (-0.3%) to 90.614% when pulling 2208960b5f7d1ab2aa1dc0ebe71f6cffe2194a66 on SAP:improve_reporting into 1f6b0703ffaaa890cea14c999db5a6c645233e5a on cloudfoundry-incubator:master.

Coverage decreased (-0.3%) to 90.614% when pulling 2208960b5f7d1ab2aa1dc0ebe71f6cffe2194a66 on SAP:improve_reporting into 1f6b0703ffaaa890cea14c999db5a6c645233e5a on cloudfoundry-incubator:master.

Coverage decreased (-0.2%) to 90.64% when pulling e614f74d77f8413479e63da50df3506d47b57f65 on SAP:improve_reporting into 363929e2856da32b369be0b7eed9a3c1f2015baf on cloudfoundry-incubator:master.

Coverage decreased (-0.2%) to 90.64% when pulling e614f74d77f8413479e63da50df3506d47b57f65 on SAP:improve_reporting into 363929e2856da32b369be0b7eed9a3c1f2015baf on cloudfoundry-incubator:master.


Spec without default constructor should be ignored

I am using the following pattern:

Write a Spec for an interface.
This Spec requires a factory method as parameter of the constructor (in order to create the concrete implementation)
I am reusing this spec in the module where I am implementing the interface

Everything works fine if I run it with gradle. Yet, if I try to run it in intellij I get the following error:
INFO: Discovered TestEngines with IDs: [spek]
Exception in thread "main" java.util.NoSuchElementException: Collection contains no element matching the predicate.
	at org.jetbrains.spek.engine.SpekTestEngine$defaultInstanceFactory$1.create(SpekTestEngine.kt:231)
	at org.jetbrains.spek.engine.SpekTestEngine.resolveSpec(SpekTestEngine.kt:113)
	at org.jetbrains.spek.engine.SpekTestEngine.resolveSpecs(SpekTestEngine.kt:74)
	at org.jetbrains.spek.engine.SpekTestEngine.discover(SpekTestEngine.kt:50)
	at org.junit.platform.launcher.core.DefaultLauncher.discoverRoot(DefaultLauncher.java:109)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85)
	at org.jetbrains.spek.tooling.runner.junit.JUnitPlatformSpekRunner.run(JUnitPlatformSpekRunner.kt:107)
	at org.jetbrains.spek.tooling.MainKt.main(Main.kt:58)

The problem is in SpekEngineTest::instanceFactoryFor should not use defaultInstanceFactory in case spek does not have a default constructor.

Oh well... setting the Spec abstract works as well :)
I do not close the issue on purpose though. IMO it shouldn't fail. Or if it fails it should print out the suggestion that the Spec should be made abstract. That would surely be more user friendly

Edit: I even have a use case where I cannot make it abstract, because I want to use it in an include

I think we could introduce an @IgnoreSpek annotation to ignore non-abstract classes.

Sounds like a plan

Closing this as 2,x introduced @Ignore.


Check badge expiration

Additions:

Checks for badge assignments on claims: Badge assignment is valid for the period being claimed (start time >= period start time && expiration < period start time)
HYPHA token calculation on claims: Hypha token amount calculation is now calculated on the claimnextper action instead when the assignment is created in order to take into account changes to HYPHA's token valuation.

Tests that fail due to the date can be ignored. There is a fix on other PR as they might fail from time to time.
But I see the go tests failing as well.


BUG (#_) [ADMIN] Input and output data do not match in /user getAllUsers

Description:
Steps to reproduce:

Go to https://greencitysoftserve.herokuapp.com/swagger-ui.html?...#...
Choose User Controller
Choose GET /user getAllUsers
Click 'Try it out' button
Enter valid data in 'pageNumber' field and valid data in 'pageSize' field (e.g. 'pageNumber': 4, 'pageSize': 20)
Click 'Execute' button
Actual result:
22 users (id) are displayed
Expected result:
The page and the number of users are the same as the data entered into 'pageNumber', 'pageSize' fields

Mappting GET /user getAllUsers in User Controller was removed.


Spoof detection

Describe the bug

Looks like botd detects OS spoof, when i set operatingSystems: ['windows'] it detects spoof, when i'm running browser with my Mac.

Cloudflare JS Challenge detects, when userAgent set in browser.newContext, and os is not/is spoofed.

Proof

System information:

OS: MacOS
Node.js version: 18

Thank you for submitting this issue! Fingerprinting services can usually detect the machine's OS by performing font fingerprinting (different OSes provide different fonts), among others. These are usually some of the harder things to spoof.
Until we have that incorporated in the fingerprinting suite, always try matching your fingerprint's OS / browser (version) to the one you are actually using. The ML model generating the fingerprints has a plenty of samples for all the major operating systems - so it shouldn't cause any problems.

Thank you for submitting this issue! Fingerprinting services can usually detect the machine's OS by performing font fingerprinting (different OSes provide different fonts), among others. These are usually some of the harder things to spoof.
Until we have that incorporated in the fingerprinting suite, always try matching your fingerprint's OS / browser (version) to the one you are actually using. The ML model generating the fingerprints has a plenty of samples for all the major operating systems - so it shouldn't cause any problems.

Botd does detection with os cpu, and etc others. it does not use font fingerprinting, it is open source, check it yourself.

And, cloudflare detects, when you set useragent. lol.

any progress on this?

💎 cloudgakkai is offering a $30 bounty for this issue
👉 Got a pull request resolving this? Claim the bounty by adding @algora-pbc /claim #33 in the PR body and joining algora.io

Hello,
I'm adding bounties on this issue hopefully can get booster to fix it~!


Unable to transfer token rights.

Empire Version
2.3
OS Information (Linux flavor, Python version)
Host: Linux kali 4.13.0-kali1-amd64 #1 SMP Debian 4.13.4-2kali1 (2017-10-16) x86_64 GNU/Linux
Target machine: Windows 8.1 with patches up to 2014 November.
Mimikatz 2.1
Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.
Token manipulation doesn't work with: Invoke-TokenManipulation and mimikatz modules and commands.
Also golden ticket rights don't transfer and PTH doesn't work.
Screenshot of error, embedded text output, or Pastebin link to the error
Any additional information
I assume this is all due to the token not transferring or not being used by the process.
Any information or confirmed working examples would be welcome.
So I might be able to spot what I am doing wrong.
I will link a previous issue about this topic that I closed because I got the DLL part working. https://github.com/EmpireProject/Empire/issues/873

OK... got the Invoke-TokenManipulation.ps1 working on command-line. Will test the PTH and Goldenticket as well.

I'll close down this one as well and will create one for PTH and GoldenTicket.


Error Tab and Outdated Error Scheduled Cleaning

Critical Changes
Changes

Error records older than 90 days will be automatically deleted by a scheduled job.
New tab for Errors to help admin manage error records.

Issues Closed
New Metadata
New class: ERR_DeleteOutdated_BATCH.cls
New class: ERR_DeleteOutdated_TEST.cls
New class: ERR_DeleteOutdated_SCHED.cls
Deleted Metadata
Testing Notes

Deploy unmanaged package in a scratch org
Go to Setup->Scheduled Job, make sure 'HEDA 90-day-old Error Cleaning' is scheduled.
Find the error tab between course offering tab and trigger handler tab and open it
Make sure fields are properly displayed in the list view as below:
Error Number | Datetime | Error Type | Object Type | Context Type | Email Sent | Posted in Chatter
Create some test errors. Change the datatime of some errors to more than 90-year-old.
We can wait for midnight and it runs. We can also run it manually. To do that, go to Developer console, open execute window(ctrl or cmd + e), run following code:
Database.executeBatch(new ERR_DeleteOutdated_BATCH());
However it would be better to make sure the schedule job runs as well.
Make sure those outdated errors are deleted. (You can check the status in Setup -> Apex Jobs)

Please include testing notes @xinnanlisf and @lparrott as you review this item. For example, since a scratch org is new I won't have 90 days of data (but possibly would in a sandbox depending on what data it is collecting), so if there are developer tools and queries I can run to test this in a scratch org please let me know. Also, if there are some items I'll be able to test in a sandbox, since it's existed for more than 90 days, let me know that too. Thanks!

Thanks @lparrott
Is this ready for me to test?

@annejackson You could certainly start getting familiar with the changes, but we do have one area of the code to discuss that might require you to re-test the scheduled deletion portion.

@lparrott for Step 5- how can I generate errors in the sandbox (where this PR will not be yet). The reason I want to do this is to generate errors in the sandbox pre deploy so that after the deploy I can see that they show up in the new Errors tab (and they will show up since they will be less than 90 days). If you could give steps to get that data setup in the Sandbox before the release/this PR goes there that would be great! FYI: @xinnanlisf

@annejackson
Regarding creating data in sandbox, you have a couple of options:

You can create a tab and remove it if you want.
You can go to dev console, open execute window and create some records using following code:
List<Error__c> errors = new List<Error__c>(); for(Integer i=0; i<n; i++) {   Error__c error = new Error();          errors.add(error); } insert errors;
if you want to edit those errors, you can go to query tab in dev console and use a simple soql to query those records: select id,(any field api you want) from error__c
If you are familiar with any data loader, you can also create a data file(spreadsheet etc) to load data.

Let me know if this helps. We can always jump on a call if you need further help. Thanks!

@lparrott this PR should be ready for review again :)

@juliesnow @aligeez
Could you review the release notes please? Thank you!

I do not see this @xinnanlisf  and @lparrott
Go to Setup->Scheduled Job, make sure 'HEDA 90-day-old Error Cleaning' is scheduled.

sent you mail w/ possible edits, @xinnanlisf

@xinnanlisf  and @aligeez "Changes" updated based on discussions w/ you both.

Testing has passed for this. Also got data setup in my sandbox for testing once this is in a release/managed package. Merging pull request. Thanks @xinnanlisf


Custom table name on extended model breaks

Updated from 2.5.1 to 2.7.0, have a custom Activity model with a $table property set.
This change in Spatie\Activitylog\Models\Activity which overwrites that property from config is a bit too assumptive.
Logic should be along the lines of $this->table = $this->table ?? config('activitylog.table_name')

Hey, good catch, @mdcass !
If I understand correctly, you’re using a custom table name in a custom Activity model, right?
When working on #361 a few months back my focus was mainly on the migration file. As the table name in the model was hardcoded, I did not expect any side effect involving a custom child class.
The fix you propose seems right to me. Do you plan to make a pull request or would you like me to work on one? (note that I won’t really have time to do so before next week-end)

If I get some time this week i'll submit a PR!

@mdcass you got time????
..
.
.
.
.
.
.

I've not had chance to take a look unfortunately, i've not got the repo set up locally

Will be fixed soon through #427


[Bug] HStore GraphCache  range attribute has a missing coverage range of 0-65535

Bug Type (问题类型)
performance (性能下降)
Before submit

[X] 我已经确认现有的 Issues 与 FAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

Server Version: 1.5.0 (Apache Release Version)
Backend: HStore

Expected & Actual behavior (期望与实际表现)
the speed of vertex writing suddenly decreases, while P99 increases; it was found that there is a missing coverage range in the GraphCache range;
Actual range :
result=@ArrayList[
    @TreeRangeMap[
        entriesByLowerBound=@TreeMap[
            @BelowValue[\4096/]:@RangeMapEntry[[4096..8192)=1],
            @BelowValue[\8192/]:@RangeMapEntry[[8192..12288)=2],
            @BelowValue[\12288/]:@RangeMapEntry[[12288..16384)=3],
            @BelowValue[\36864/]:@RangeMapEntry[[36864..40960)=9],
            @BelowValue[\40960/]:@RangeMapEntry[[40960..45056)=10],
            @BelowValue[\45056/]:@RangeMapEntry[[45056..49152)=11],
        ],
        EMPTY_SUB_RANGE_MAP=@[
        ],
    ],
]

Expected range:
@TreeRangeMap[
        entriesByLowerBound=@TreeMap[
            @BelowValue[\0/]:@RangeMapEntry[[0..4096)=0],
            @BelowValue[\4096/]:@RangeMapEntry[[4096..8192)=1],
            @BelowValue[\8192/]:@RangeMapEntry[[8192..12288)=2],
            @BelowValue[\12288/]:@RangeMapEntry[[12288..16384)=3],
            @BelowValue[\16384/]:@RangeMapEntry[[16384..20480)=4],
            @BelowValue[\20480/]:@RangeMapEntry[[20480..24576)=5],
            @BelowValue[\24576/]:@RangeMapEntry[[24576..28672)=6],
            @BelowValue[\28672/]:@RangeMapEntry[[28672..32768)=7],
            @BelowValue[\32768/]:@RangeMapEntry[[32768..36864)=8],
            @BelowValue[\36864/]:@RangeMapEntry[[36864..40960)=9],
            @BelowValue[\40960/]:@RangeMapEntry[[40960..45056)=10],
            @BelowValue[\45056/]:@RangeMapEntry[[45056..49152)=11],
            @BelowValue[\49152/]:@RangeMapEntry[[49152..53248)=12],
            @BelowValue[\53248/]:@RangeMapEntry[[53248..57344)=13],
            @BelowValue[\57344/]:@RangeMapEntry[[57344..61440)=14],
            @BelowValue[\61440/]:@RangeMapEntry[[61440..65536)=15],
        ],
        EMPTY_SUB_RANGE_MAP=@[
        ],

Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response

@dosu
Is there a thread safety issue with the rang remove/put operation in the public boolean update (String graphName, int partId, Partition partition) method in the ClientCache?

@dosu
for this range read-write method, it is necessary to consider adding synchronization in order to completely solve the problem，
How about replacing the rang attribute in GraphCache with a thread safe RangeMap?

@dosu
In PartitionCache, such as getPartitionById and getPartitionByCode, waitGraphLock (graphName) is called. In my understanding, it means self selection waiting and no lock is obtained, right? Why not be afraid of thread safety issues?

@dosu
WaitGraphLock method only waits until the lock is released and does not hold the lock itself. In the getPartitionById method, when the subsequent logic performs a get query, is it possible for another thread to make modifications?

@dosu
WaitGraphLock method only waits until the lock is released and does not hold the lock itself. What is the significance of the WaitGraphLock method?


Should return error if buffer too small when get ec pubkey param

How to reproduce:
This problem was found during debugging https://github.com/openssl/openssl/pull/20781,
When setting KEMID to EC curve (such OSSL_HPKE_KEM_ID_P256), the 'short publen test' in test_hkpe.c will be broken.
https://github.com/openssl/openssl/blob/42a6a25ba4ddb40333e92e6e2fc57625d9567090/test/hpke_test.c#L1376-L1381
Issue discription
This is because when getting ec pubkey param, a successful value is returned even if the buffer len is small than the pubkey len.
https://github.com/openssl/openssl/blob/42a6a25ba4ddb40333e92e6e2fc57625d9567090/crypto/hpke/hpke.c#L1317-L1321
ec_get_params() should return -1 in this case.
https://github.com/openssl/openssl/blob/42a6a25ba4ddb40333e92e6e2fc57625d9567090/providers/implementations/keymgmt/ec_kmgmt.c#L738-L757

emm, things seem a bit complicated.
I raised PR about this issue: https://github.com/openssl/openssl/pull/20890,
but CI failed.
I checked code and found that the appropriate length will be filled in out_len only when 1 is returned. This is the expected behavior in EVP_PKEY_get1_encoded_public_key():
https://github.com/openssl/openssl/blob/42a6a25ba4ddb40333e92e6e2fc57625d9567090/crypto/evp/p_lib.c#L2200-L2206
https://github.com/openssl/openssl/blob/42a6a25ba4ddb40333e92e6e2fc57625d9567090/crypto/evp/p_lib.c#L1410-L1417
So ecx_get_params() should be consistent with ec_get_params() and should return 1 instead of 0 in this case?

So ecx_get_params() should be consistent with ec_get_params() and should return 1 instead of 0 in this case?

Is it inconsistent? It is calling OSSL_PARAM_set_octet_string(p, ecx->pubkey, ecx->keylen) but that should behave exactly like that - set the p->return_size if p->data is NULL.

This is weird.
 p->return_size = EC_POINT_point2oct(ecg, ecp,
                                         POINT_CONVERSION_UNCOMPRESSED,
                                         p->data, p->return_size, bnctx);

This call should fail if p->data != NULL and p->return_size is too small for the encoded key to fit.

OSSL_PARAM_set_octet_string() is a more general API, so I think the behavior of ec_get_params() should align to it.
If so, we should check ret2 and set out_len whatever the value of ret1 is.
https://github.com/openssl/openssl/blob/42a6a25ba4ddb40333e92e6e2fc57625d9567090/crypto/evp/p_lib.c#L2190-L2207

emm, things seem a bit complicated. I raised PR about this issue: #20890, but CI failed.
So ecx_get_params() should be consistent with ec_get_params() and should return 1 instead of 0 in this case?

Oh It is wrong! I found the previous patch also changed the behavior when 'p->data == NULL'.

It is inconsistent if 'p->data != NULL' and 'p->data_size < pubkey_len'.
ec_get_params() will return 1 and set the return_size,
OSSL_PARAM_set_octet_string() will return 0 and set the return_size.

The problem is I am reading the EC_POINT_point2oct() code and I do not see how this can happen. It should return 0 in such case.

Ah! Now I see what is wrong. The call to EC_POINT_point2oct() is seriously wrong.


add my R course as a book example

What does this PR do?
Add my R course as a book example.
It features embedded videos and some minimal theming, otherwise plain quarto
Requirements for your Awesome item list

[x] Only has awesome items. Awesome lists are curations of the best, not everything.
[x] Does not contain items that are unmaintained, has archived repo, deprecated, or missing docs. If you really need to include such items, they should be in a separate Markdown file.
[x] Entries have a description, unless the title is descriptive enough by itself. It rarely is though.
[x] Has consistent formatting and proper spelling/grammar.
- The link and description are separated by a dash.
Example: - [AVA](…) - JavaScript test runner.
- The description starts with an uppercase character and ends with a period.
- Consistent and correct naming. For example, Node.js, not NodeJS or node.js.
[x] Doesn't use hard-wrapping.
[x] Your item(s) fit into an existing sections. (if you think a new section is needed, please open a discussion first).
[x] Add your new item to the bottom of the list in a section.
[x] If a duplicate item exists, discuss why the new item should replace it.
[x] Check your spelling & grammar.
[x] The item must follow this format:- [item name](https link) - Description beginning with capital, ending in period.

[x] Be sure to have read the contributing guidelines.

Thanks!
Merging now!
PS: do/did you know there is a youtube extension which provides a shortcode to embed YouTube videos?

Thanks! The course was initially designed before quarto and ported over, so I might add the youtube extension along the way.

correctio: I had to do it now :see_no_evil:, which also resulted in a quick PR. Yay for Open Source!


Updated Jekyll tutorial to Meshery Documentation

Signed-off-by: debjani1413<EMAIL_ADDRESS>Description
The documentation on how to contribute to Meshery Docs now includes a Jekyll tutorial for different platforms like Windows, macOS, and Linux, thus making it more beginner-friendly.
This PR fixes #3089
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Lee,
I missed this email. I will review it today if it is still available.
On Wed, Jun 2, 2021, 16:16 Lee Calcote @.***> wrote:

@leecalcote https://github.com/leecalcote requested your review on:
#3116 https://github.com/layer5io/meshery/pull/3116 Updated Jekyll
tutorial to Meshery Documentation.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/layer5io/meshery/pull/3116#event-4834134689, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOF4QXIVHLST6RFBT7GP663TQ2NTVANCNFSM455AUD7A
.

Hey, @leecalcote I have done the required changes, do let me know if I need to change anything else.

Not too shabby, @debjani1413 😄 ✔

Thanks much, @vijcheru. I'll leave the final review in your capable, MeshMate hands.


Return issues and PRs from repositories that the user is not an owner of

Right now, we are only returning the issues and PRs from repositories that the user owns. This may not always be the case, and as a result, users might miss out on some important information.

I can also help look into this!

I believe for organizational repositories you actually have to request for access to this information. I will look into other repositories that the user is not the owner of.

Okay we can get repos that the user is a contributor to but cannot get access to organizational repos. That requires the user requesting for access and I don't think there is a work around.

This is amazing work. I've seen similar looking requests on other websites too. As you said @Green-Ranger11, I think there is nothing we can do about that.