text:
S3 Client delete_objects() missing required Content-MD5 header with FIPS mode enabled

Affected Version(s)
From what I tested:
boto3 (1.17.13)
botocore (1.20.13)

Describe the bug
Issuing a properly-formatted delete_objects() call returns:
botocore.exceptions.ClientError: An error occurred (InvalidRequest) when calling the DeleteObjects operation: Missing required header for this request: Content-MD5

It looks related to https://github.com/boto/botocore/issues/1302 filed back in 2017, but perhaps there's been a regression in this particular code-path (or a change in the API).
Steps to reproduce

Spin up an S3 bucket and fill with some sample objects
Run code snippit:

import boto3
BUCKET='<bucketname>'
s3_client = boto3.client('s3')
object_response_paginator = s3_client.get_paginator('list_object_versions')
object_version_list = []
for object_response_itr in object_response_paginator.paginate(Bucket=BUCKET):
    if 'Versions' in object_response_itr:
        for version in object_response_itr['Versions']:
            object_version_list.append({'Key': version['Key'],
                                 'VersionId': version['VersionId']})
for i in range(0, len(object_version_list), 1000):
    response = s3_client.delete_objects(
        Bucket=bucket_name,
        Delete={
            'Objects': object_version_list[i:i+1000],
            'Quiet': True
        }
    )

Observe exception:

Traceback (most recent call last):
  File "bucket_delete.py", line 17, in <module>
    'Quiet': True
  File "/home/maintuser/.local/lib/python3.6/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/maintuser/.local/lib/python3.6/site-packages/botocore/client.py", line 676, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidRequest) when calling the DeleteObjects operation:
 Missing required header for this request: Content-MD5

Expected behavior*
Objects (including versions, if a versioned bucket) are deleted.
Debug logs
2021-02-23 15:38:14,471 - botocore.hooks - DEBUG - Event before-parameter-build.s3.DeleteObjects: calling handler <function validate_bucket_name at 0x7f39d40e0510>
2021-02-23 15:38:14,471 - botocore.hooks - DEBUG - Event before-parameter-build.s3.DeleteObjects: calling handler <bound method S3RegionRedirector.redirect_from_cache of <botocore.utils.S3RegionRedirector object at 0x7f39d263e9e8>>
2021-02-23 15:38:14,471 - botocore.hooks - DEBUG - Event before-parameter-build.s3.DeleteObjects: calling handler <bound method S3ArnParamHandler.handle_arn of <botocore.utils.S3ArnParamHandler object at 0x7f39d263eda0>>
2021-02-23 15:38:14,471 - botocore.hooks - DEBUG - Event before-parameter-build.s3.DeleteObjects: calling handler <function generate_idempotent_uuid at 0x7f39d40e0378>
2021-02-23 15:38:14,472 - botocore.hooks - DEBUG - Event before-call.s3.DeleteObjects: calling handler <function add_expect_header at 0x7f39d40e0840>
2021-02-23 15:38:14,472 - botocore.hooks - DEBUG - Event before-call.s3.DeleteObjects: calling handler <bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x7f39d263e9e8>>
2021-02-23 15:38:14,472 - botocore.hooks - DEBUG - Event before-call.s3.DeleteObjects: calling handler <function inject_api_version_header_if_needed at 0x7f39d40e2ae8>
2021-02-23 15:38:14,472 - botocore.endpoint - DEBUG - Making request for OperationModel(name=DeleteObjects) with params: {'url_path': '/example-test-bucket?delete', 'query_string': {}, 'method': 'POST', 'headers': {'User-Agent': 'Boto3/1.17.13 Python/3.6.8 Linux/3.10.0-1160.15.2.el7.x86_64 Botocore/1.20.13'}, 'body': b'<Delete xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Object><Key>test_file_10</Key><VersionId>UfYcpa7soJwRaP7fPyReSG50MJmmMhqZ</VersionId></Object><Quiet>true</Quiet></Delete>', 'url': 'https://s3.amazonaws.com/example-test-bucket?delete', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x7f39d263e6a0>, 'has_streaming_input': False, 'auth_type': None, 'signing': {'bucket': 'example-test-bucket'}}}
2021-02-23 15:38:14,472 - botocore.hooks - DEBUG - Event request-created.s3.DeleteObjects: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f39d263e668>>
2021-02-23 15:38:14,472 - botocore.hooks - DEBUG - Event choose-signer.s3.DeleteObjects: calling handler <bound method ClientCreator._default_s3_presign_to_sigv2 of <botocore.client.ClientCreator object at 0x7f39d2dd3fd0>>
2021-02-23 15:38:14,472 - botocore.hooks - DEBUG - Event choose-signer.s3.DeleteObjects: calling handler <function set_operation_specific_signer at 0x7f39d40e0268>
2021-02-23 15:38:14,472 - botocore.hooks - DEBUG - Event before-sign.s3.DeleteObjects: calling handler <bound method S3EndpointSetter.set_endpoint of <botocore.utils.S3EndpointSetter object at 0x7f39d263ee10>>
2021-02-23 15:38:14,472 - botocore.utils - DEBUG - Checking for DNS compatible bucket for: https://s3.amazonaws.com/example-test-bucket?delete
2021-02-23 15:38:14,472 - botocore.utils - DEBUG - URI updated to: https://example-test-bucket.s3.amazonaws.com/?delete
2021-02-23 15:38:14,473 - botocore.auth - DEBUG - Calculating signature using v4 auth.
2021-02-23 15:38:14,473 - botocore.auth - DEBUG - CanonicalRequest:
POST
/
delete=
host:example-test-bucket.s3.amazonaws.com
x-amz-content-sha256:2686acdcb1fdcf33a602537d0383bc85a4ccbca860cbef71825e616c5ddc753d
x-amz-date:20210223T153814Z

host;x-amz-content-sha256;x-amz-date
2686acdcb1fdcf33a602537d0383bc85a4ccbca860cbef71825e616c5ddc753d
2021-02-23 15:38:14,473 - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20210223T153814Z
20210223/us-east-1/s3/aws4_request
25bda79e6b19ac0b289ec1c92bdd8e8b09ebe8267651ea36587baae789ee05eb
2021-02-23 15:38:14,473 - botocore.auth - DEBUG - Signature: ac89fd2880b54fa23a2a1bee7b0e4ca5ecf16dabc9c3b97d5241a1f3a9667944
2021-02-23 15:38:14,473 - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://example-test-bucket.s3.amazonaws.com/?delete, headers={'User-Agent': b'Boto3/1.17.13 Python/3.6.8 Linux/3.10.0-1160.15.2.el7.x86_64 Botocore/1.20.13', 'X-Amz-Date': b'20210223T153814Z', 'X-Amz-Content-SHA256': b'2686acdcb1fdcf33a602537d0383bc85a4ccbca860cbef71825e616c5ddc753d', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAWVKXYV4EDOFJRFND/20210223/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=ac89fd2880b54fa23a2a1bee7b0e4ca5ecf16dabc9c3b97d5241a1f3a9667944', 'Content-Length': '179'}>
2021-02-23 15:38:14,473 - botocore.httpsession - DEBUG - Certificate path: /home/example/.local/lib/python3.6/site-packages/botocore/cacert.pem
2021-02-23 15:38:14,477 - urllib3.connectionpool - DEBUG - https://example-test-bucket.s3.amazonaws.com:443 "POST /?delete HTTP/1.1" 400 None
2021-02-23 15:38:14,477 - botocore.parsers - DEBUG - Response headers: {'x-amz-request-id': '951AF3AD1934169F', 'x-amz-id-2': 'HfysU3wb1OsJ8p7fJSzJlxKakuJgugtXH4yLB+d55NzyqJPQru0NIveczIeYEmTHzT2FJ4GHfBo=', 'Content-Type': 'application/xml', 'Transfer-Encoding': 'chunked', 'Date': 'Tue, 23 Feb 2021 15:38:14 GMT', 'Server': 'AmazonS3', 'Connection': 'close'}
2021-02-23 15:38:14,478 - botocore.parsers - DEBUG - Response body:
b'<?xml version="1.0" encoding="UTF-8"?>\n<Error>InvalidRequest<Message>Missing required header for this request: Content-MD5</Message><RequestId>951AF3AD1934169F</RequestId><HostId>HfysU3wb1OsJ8p7fJSzJlxKakuJgugtXH4yLB+d55NzyqJPQru0NIveczIeYEmTHzT2FJ4GHfBo=</HostId></Error>'
2021-02-23 15:38:14,480 - botocore.hooks - DEBUG - Event needs-retry.s3.DeleteObjects: calling handler <botocore.retryhandler.RetryHandler object at 0x7f39d263ea20>
2021-02-23 15:38:14,480 - botocore.retryhandler - DEBUG - No retry needed.
2021-02-23 15:38:14,480 - botocore.hooks - DEBUG - Event needs-retry.s3.DeleteObjects: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x7f39d263e9e8>>

Ahah, just determined that this is only happening on an enterprise linux system with FIPS mode enabled, which of course disables MD5.  Boto needs to handle this case gracefully.

Thank you for your post @rickatnight11. Marking this as a feature request and taking a look.

Having the same issue since we run on FIPS enabled machines: Looks like this is related: https://github.com/boto/botocore/issues/1700

@zdutta Any update surrounding this issue?

Hi I'm still experiencing the same issue, with python3.11, FIPS and boto3 delete objects. Is there a solution yet?

See also https://github.com/boto/botocore/issues/2769. I've just added a comment there (albeit it's a closed issue...)

My understanding is that S3 has supported other checksum algorithms since 2022, including SHA-256, which is FIPS-compliant.
I've been using the objects collection method (S3.Bucket.objects.delete()) rather than going through delete_objects() directly, but I was able to get around this by specifying SHA-256 as the checksum algorithm directly:
bucket.objects.delete(ChecksumAlgorithm="SHA256")

It seems like delete_objects() also supports the ChecksumAlgorithm parameter, so while I haven't tested it myself, I'm guessing something like this would work:
response = s3_client.delete_objects(
    Bucket=bucket_name,
    Delete={
        'Objects': object_version_list[i:i+1000],
        'Quiet': True
    },
    ChecksumAlgorithm='SHA256'
)

authors: BongoEADGC6 johanngan jpveooys mliudev rickatnight11 stav-bitanski zdutta

repo: boto/botocore


text:
Implemented nested doc pages.

Issue
Our current documentation structure creates one file for each service along with its client methods, exceptions, paginators, and waiters. Having all this content on one page has cased some performance issues on some browsers for large services. This will continue to be an issue as services continue to grow and we need a way to break up service documentation into multiple pages.
Summary
This PR implements the changes that migrate our docs website from using individual pages for each service to having nested pages for each client method, exception, paginator, and waiter. In other words, the main page for each service (<service_name>.html) will now have the main client information along with sub-sections for each of the 4 categories (if applicable e.g. a service may not have waiters), each which contain a list of links to the corresponding sub-pages.
Note: <service_name>.html files remain in their original location to preserve pre-existing pages. There will also be new folders for each service containing the corresponding sub-pages as shown below.
Old Structure:
├── services
│   ├── ec2.html
│   ├── dynamodb.html
│   ├── s3.html
│   ├── ...

New Structure:
├── services
│   ├── ec2.html
│   ├── dynamodb.html
│   ├── s3.html
│   ├── ...
│   ├── ec2
│   │   ├── Client
│   │   |   ├── <method_name>.html
│   │   |   ├── ...
│   │   |   ├── exceptions
│   │   |   |   ├── <exception_name>.html
│   │   |   |   ├── ...
│   │   ├── Paginator
│   │   |   ├── <paginator_name>.html
│   │   |   ├── ...
│   │   ├── Waiter
│   │   |   ├── <waiter_name>.html
│   │   |   ├── ...
│   ├── ...

Redirects
In order to allow previously existing links to continue to work, a client side fix has been added which parses the URL fragment using window.location.hash.substring(1) and reroutes to the corresponding sup page.
For Example:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.delete_bucket

will redirect to:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/S3/Client/delete_bucket.html

Preview Changes
I've attached a zip file (botocore_docs.zip) which includes a preview for the described changes. The best way to view this is using a local server to host the files. Here are some quick steps to get view the changes:

Download the attached zip
Open a new Terminal
cd <path_to_zip>
unzip -d botocore_docs botocore_docs.zip
cd botocore_docs/html
python -m http.server
Open the provided link in your preferred browser

Codecov Report
Base: 93.55% // Head: 93.42% // Decreases project coverage by -0.13% :warning:

Coverage data is based on head (71c7cd6) compared to base (155c104).
Patch coverage: 100.00% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2866      +/-   ##
===========================================
- Coverage    93.55%   93.42%   -0.13%
===========================================
  Files           63       63
  Lines        13400    13289     -111
===========================================
- Hits         12536    12415     -121
- Misses         864      874      +10

Impacted Files
Coverage Δ

botocore/docs/__init__.py
100.00% <100.00%> (ø)

botocore/docs/bcdoc/restdoc.py
96.26% <100.00%> (-0.61%)
:arrow_down:

botocore/docs/client.py
100.00% <100.00%> (ø)

botocore/docs/paginator.py
100.00% <100.00%> (ø)

botocore/docs/service.py
100.00% <100.00%> (ø)

botocore/docs/waiter.py
100.00% <100.00%> (ø)

botocore/compat.py
91.21% <0.00%> (-1.46%)
:arrow_down:

botocore/httpsession.py
91.37% <0.00%> (-0.43%)
:arrow_down:

botocore/hooks.py
95.27% <0.00%> (-0.40%)
:arrow_down:

... and 22 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

source: gharchive/pull-request

license_type: permissive

license_source: github-api


text:
Make bucket name injection for S3Express more generic

Abstracts the s3 Express bucket name from the context to be generically usable as well as adding additional keys to be stored

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

Project coverage is 93.14%. Comparing base (8fd0160) to head (63493fc).
Report is 123 commits behind head on develop.

:exclamation: Current head 63493fc differs from pull request most recent head b606da5. Consider uploading reports for the commit b606da5 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3144   +/-   ##
========================================
  Coverage    93.14%   93.14%
========================================
  Files           66       66
  Lines        14237    14243    +6
========================================
+ Hits         13261    13267    +6
  Misses         976      976

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

authors: SamRemis codecov-commenter


text:
Set data_converter for activity types

Prior to this change the data converter was being set in the swf_options
attached to the function and not in the ActivityType where it is looked
for. This meant that the default data converter was always used.

Current coverage is 0.00% (diff: 0.00%)

Merging #4 into master will not change coverage

@@           master     #4   diff @@
====================================
  Files          72     72
  Lines        3469   3470     +1
  Methods         0      0
  Messages        0      0
  Branches      484    485     +1
====================================
  Hits            0      0
- Misses       3469   3470     +1
  Partials        0      0

Powered by Codecov. Last update 8eff07d...19b3383

Awesome stuff! Thanks for the pr.

authors: codecov-io darjus glharding

repo: boto/botoflow

license_source: bigquery


text:
Fix a problem of crashing when reloading.

Hello,
Thank you for nice framework.
I made a small patch to the reloading feature.
Could you take a look at this PR and give me a opinion about this approach.
The situation to use this feature
This patch allow user to prevent exiting server when reloading SyntaxError containing file.
This patch is slightly related to the problem mentioned in https://github.com/bottlepy/bottle/issues/240, but this patch solve the different problem of running server with python run_server.py not python bottle.py run_server.py.
How to test

Save and run code above.

import bottle

app = bottle.Bottle()

@app.get('test')
def test():
    return 'test'

bottle.run(app=app, port=9100, host='0.0.0.0', reloader=True)

Make some syntax error to the file while running.

Thank you!

This would not catch a syntax error in any imported module, unfortunately, and even for small projects you usually have more than one module you are working on.
How about a restart_on_errors feature that reloads on all exit statuses, not only 3? We just have to make sure to not accidentally prevent an ordered shutdown (Ctrl-C).

@defnull
Thank you for checking this PR!
OK. I will try your approach and commit again.

authors: defnull sam-yusuke

repo: bottlepy/bottle

license: mit


text:
Nullpointer exception on story/create

Request:
{
"title": "test",
"content": "test",
"tags" : ["tag1", "tag2"]
}
Response
{
"timestamp": 1449939489523,
"status": 500,
"error": "Internal Server Error",
"exception": "java.lang.NullPointerException",
"message": "No message available",
"path": "/story/create"
}

fixed via https://github.com/bounswe/bounswe2015group7/commit/77bc86709d93f930cae3b39fae893a8188043788 also i added test so now we are sure. :)

source: gharchive/issue

authors: bilalyasar fthdgn


text:
the team is waiting feedback for requirements analysis

Comrade!
Our team is full of energy it's very difficult to make them wait to work.
May you please give us a feedback for our Requirements Analysis so we can make more perfect than ever?

Done.

authors: cerob mericturan

license: MIT


text:
Is ignore in bower.json necessary?

When installing angular 1.3.0-beta.14, I received below warning:
bower invalid-meta  angular is missing "ignore" entry in bower.json

However due to the use of a very stripped down repo specifically for bower, there's no point of ignoring anything:
https://github.com/angular/bower-angular
Is it necessary to warn bower user that the package's bower.json is "invalid" if it's missing ignore key?

I agree with @ahacking here, this is not an error so there's no point in returning non-zero exit code when this happens.

Well, warning is OK, but non-zero status is a bug if it actually happens. I need to confirm.

Sorry, false alarm. I tested it and it doesn't actually happen, status code returned is 0, it's the appearance of warning that made our deploy system think it's a failure.

But why even output a warning? I cannot understand why something that is optional generates a warning. It seems like very strange logic.

+1. Don't see a point to generate such warning. I have nothing to ignore in my repo and adding an empty ignore attribute to get rid of it is just an unnecessary overhead IMHO.

++
ignore absence should be ignored, not warned.

authors: demisx perk11 phearme rayshan sheerun tregusti

repo: bower/bower


text:
Existing packages' names (i.e. d3) no longer valid due to stricter validation rules in bower-json 0.5.0

D3 can no longer be installed as of bower-json 0.5.0:

The name has to end with a lower case character from a to z

Other packages are invalidated by this rule as well:

The name contains upper case letters

https://github.com/bower/json/blob/3cc1cd61c86d65c11fae42c05e2a4ce61310cbce/lib/json.js#L86-L114
This seems pretty huge.  Installs that worked last month no longer do, with no change on my end.

Adding that these rules snuck into bower 1.4. We have two systems with the same version of bower. One was installed after bower-json was updated, the other before. The older system has bower-json 0.4 and installations work.
The newer system got bower-json at 0.5 and installations fail.

To be clear: both systems report the same bower version. Both systems exhibit different behavior.
There is no such thing as bower@1.4 the version is a lie.

https://github.com/bower/bower/commit/06f4d0c117835c8af9c05d644598b4528a4e14dc
There's the offending commit. ^ should definitely not be used.

^ means use non-breaking compatible versions. They may include new features but they shouldn't break your existing things.

In theory yes, but in practice nested dependencies break on minor and patch upgrades, even on libraries maintained by the bower org.

Yeah, this definitely breaks the rules of semver.

I made the validation less strict, now it should be only a warning.

authors: brian-gates collin eddiemonge sheerun


text:
box webbrowser sdk crushed after lunch.

I heard BoxDev 2015 keynote and Release iOS Web browser SDK.
i tried demo code.

    [BOXContentClient setClientID:@"My Client ID"
                     clientSecret:@"My Client Secret"];

    BOXContentClient *contentClient = [BOXContentClient defaultClient];
    ...
    ...

I compled and run code, after crush. log is
2015-04-22 12:51:08.073 boxbrowser[20630:768377] -[__NSCFData hasPrefix:]: unrecognized selector sent to instance 0x7fa2f6804a00
2015-04-22 12:51:08.080 boxbrowser[20630:768377] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFData hasPrefix:]: unrecognized selector sent to instance 0x7fa2f6804a00'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000010965ec65 __exceptionPreprocess + 165
	1   libobjc.A.dylib                     0x00000001092f7bb7 objc_exception_throw + 45
	2   CoreFoundation                      0x00000001096660ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
	3   CoreFoundation                      0x00000001095bc13c ___forwarding___ + 988
	4   CoreFoundation                      0x00000001095bbcd8 _CF_forwarding_prep_0 + 120
	5   boxbrowser                          0x00000001087345d3 +[BOXOAuth2Session usersInKeychain] + 787
	6   boxbrowser                          0x0000000108702c5e +[BOXContentClient users] + 46
	7   boxbrowser                          0x00000001087017fc __33+[BOXContentClient defaultClient]_block_invoke + 60
	8   libdispatch.dylib                   0x000000010d943614 _dispatch_client_callout + 8
	9   libdispatch.dylib                   0x000000010d92f881 dispatch_once_f + 565
	10  boxbrowser                          0x000000010870179d +[BOXContentClient defaultClient] + 141
	11  boxbrowser                          0x00000001086b785b -[ViewController viewDidLoad] + 123
	12  UIKit                               0x0000000109cdb210 -[UIViewController loadViewIfRequired] + 738
	13  UIKit                               0x0000000109cdb40e -[UIViewController view] + 27
	14  UIKit                               0x0000000109bf62c9 -[UIWindow addRootViewControllerViewIfPossible] + 58
	15  UIKit                               0x0000000109bf668f -[UIWindow _setHidden:forced:] + 247
	16  UIKit                               0x0000000109c02e21 -[UIWindow makeKeyAndVisible] + 42
	17  UIKit                               0x0000000109ba6457 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2732
	18  UIKit                               0x0000000109ba91de -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349
	19  UIKit                               0x0000000109ba80d5 -[UIApplication workspaceDidEndTransaction:] + 179
	20  FrontBoardServices                  0x00000001102a35e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
	21  CoreFoundation                      0x000000010959241c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
	22  CoreFoundation                      0x0000000109588165 __CFRunLoopDoBlocks + 341
	23  CoreFoundation                      0x0000000109587f25 __CFRunLoopRun + 2389
	24  CoreFoundation                      0x0000000109587366 CFRunLoopRunSpecific + 470
	25  UIKit                               0x0000000109ba7b42 -[UIApplication _run] + 413
	26  UIKit                               0x0000000109baa900 UIApplicationMain + 1282
	27  boxbrowser                          0x00000001086b7b9f main + 111
	28  libdyld.dylib                       0x000000010d977145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

maybe it is my environment problem. Because, I reset ("Reset content and setting" ) iPhone simulator, then it worked.

@salexkidd Thanks for this report. Glad it worked once you reset your simulator. Please do let us know if you encounter it again. This crash looks to have happened while the SDK was trying to read from the keychain, so as you say, it might have been caused by an environmental issue.

The bug causing this was found to be in the Content SDK.
We will apply a fix there: https://github.com/box/box-ios-content-sdk/pull/19

Closing since it has been fixed with Content SDK 1.0.2

authors: RicoYao bsuvorov salexkidd

repo: box/box-ios-browse-sdk


text:
[Bug] Discord & Slack url to join the community lead to 404 in contributors guide as well as in github READM.md

What happened?
The links to join community group at slack/discord leads to 404 page in contributors guide as well as in github README.md file.
In need to join the groups  to request for correct url to join the community groups looking forward to active contributions.
BoxBilling Version
Current Master Branch
What version of PHP are you running?
PHP 8.1
Additional Notes
Additional notes

There is currently no active BoxBilling community forums as far as I know apart from here on GitHub.
The old discord was repurposed and is now used by the FOSSBilling fork, and the slack is still there but very very quiet.

Updated both Contributing Guidelines and Readme.md

Thank you @John-S4  & @jaapmarcus , one more question if I am planning to contribute which is the nice place to start with FOSSBilling or Box billing as I am coming back here after a long time, and have heard of some issue going on with box billing ownership, but today when I visited boxbilling homepage it seems to have taken the control back & is actively looking for contributors and maintainers, So if anyone can guide which would be the best repo to start back again would be of great help. Sorry if I asked wrong question at wrong place.
Thank you

Thank you @John-S4  & @jaapmarcus , one more question if I am planning to contribute which is the nice place to start with FOSSBilling or Box billing as I am coming back here after a long time, and have heard of some issue going on with box billing ownership, but today when I visited boxbilling homepage it seems to have taken the control back & is actively looking for contributors and maintainers, So if anyone can guide which would be the best repo to start back again would be of great help. Sorry if I asked wrong question at wrong place.
Thank you

The issues are still ongoing. We were the latest team and in fact the team that put the "looking for maintainers" notice before moving.
I know it's confusing but this repository will likely be unmaintained until the original author decides to care again. Any new contribution from the latest team will continue under our new organization. Here is the link to our Discord server.

Boxbilling is not active any more. Use FOSSBilling instead. I only committed the Changes to Boxbilling to solve the confusion over the non working links

@evrifaessa and @jaapmarcus  thanks for pointing to the right direction.

authors: John-S4 Tdnshah evrifaessa jaapmarcus

repo: boxbilling/boxbilling


text:
Bump puppet-hub to 1.4.0

https://github.com/boxen/puppet-hub/releases/tag/1.4.0
/cc @mislav

Looks alright!

:+1:

authors: jingweno mislav tarebyte

repo: boxen/our-boxen


text:
Trim extensions when sorting filenames

Fixes #518
I've described the root cause in this comment on the issue: https://github.com/bpatrik/pigallery2/issues/518#issuecomment-2026473493
To test:

Checkout the branch and rename some of the demo images to 10, 10.1, 10.2, etc.
Run the app and confirm that they now sort as expected according to the issue (10, 10.1, 10.2 rather than 10.1, 10.2, 10).
Download a PNG (here's a small filesized CC0 one from Wikimedia Commons you can use and name it 10.png in the demo images folder. Reverse the name sorting a couple times and confirm that 10.jpg and 10.png correctly trade places and sort alphabetically by their full filename. This test is crucial to confirm consistency in the name output, otherwise the identical extensionless names would make sorting them non-deterministic.

Thank you for the contribution!

authors: bpatrik sarayourfriend


text:
Change GossipProtocol.hasTransactionHash() to check tx hash in the pool

We never remove items from the Gossip cache.
So, This deletes the transaction cache of the Gossipprotocol and queries it directly from the transaction pool.
For #345

An error persists in Travis CI mac os. Does anyone know what's causing this?
https://travis-ci.com/bpfkorea/agora/jobs/242615835
ld: warning: directory not found for option '-L@@HOMEBREW_CELLAR@@/libsodium/1.0.18/lib'

That warning is not the problem. The problem happens when the unittest are run. See :

Program exited with code -4

The test failure is strange. It's not caused by the new test.

authors: AndrejMitrovic Geod24 TrustHenry

repo: bpfkorea/agora


text:
Change the parameter of LedgerStorage.putBlocks to an instance of the Block

The method LedgerStorage.putBlocks has one parameter. This has data from the block.
Previously this was the JSON Object. I changed this to an instance of Block.
In order to deliver the correct type and create a more stable Stoa, I revised it like this.

Hold on, I'm going to do the fixes here directly and merge, as we need this deployed soon.

The comments have not been applied yet.

Pushed, will merge when green

repo: bpfkorea/stoa


text:
Multi-Arch Support

eBPF bytecode can be compiled to bpfel or bpfeb depending on the target platform.
We should:

Package both el/eb variants of BPF bytecode in an eBPF OCI image
Ensure that bpfman is unpacking the correct artifact based on the runtime endianess
It would be great if this worked the same way as multi-arch manifests (i.e we have a meta manifest that points to the actual image manifests for the correct os/arch)

This needs to be done for all the dispatcher images that we maintain + tooling created for user images to do this right.

TODO expand into more issues :)

Decide the list of arch'es we at least need

arm64
powerpc
s390
amd64 (x86)

Since that's what's supported in https://github.com/netobserv/netobserv-ebpf-agent/tree/main/pkg/ebpf and

[ ] Update the OCI image spec used for packaging ebpf bytecode
- Package both el/eb variants of BPF bytecode in an eBPF OCI image
- Determine if there's any existing OCI specific infrastructure that can help us here
- It would be great if this worked the same way as multi-arch manifests (i.e we have a meta manifest that points to the actual image manifests for the correct os/arch)
[ ] Ensure that bpfman is unpacking the correct eBPF artifact based on the runtime endianess
[ ] Build + pacakge all userspace libraries and binaries with multi arch support
[ ] Build all eBPF bytecode images with multi arch support

Feature Complete

authors: Billy99 astoycos dave-tucker

repo: bpfman/bpfman


text:
kfunc feature discovery on power

@viktormalik @danobi powerpc is supporting kfunc now, but the output bpftrace --info is reporting kfunc: false
Is the following snippet correct to figure out kfunc support?
if (!detect_prog_type(libbpf::BPF_PROG_TYPE_TRACING,
"sched_fork",
libbpf::BPF_TRACE_FENTRY,
&progfd))
goto out_false;

It seems that the fentry support on powerpc is somewhat broken.
Trying the latest Fedora:
# bpftrace --info
System
  OS: Linux 6.12.0-0.rc4.20241023gitc2ee9f594da8.41.fc42.ppc64le #1 SMP Wed Oct 23 15:46:20 UTC 2024
  Arch: ppc64le

Build
  version: v0.21.2
  LLVM: 19.1.0
[...]
  kfunc: no
[...]

I also tried to compile the basic fentry example from https://github.com/libbpf/libbpf-bootstrap and got:
# cd libbpf-bootstrap/examples/c
# make fentry
[...]
# ./fentry
[...]
libbpf: prog 'do_unlinkat': failed to attach: ERROR: strerror_r(-524)=22
libbpf: prog 'do_unlinkat': failed to auto-attach: -524
Failed to attach BPF skeleton

errno 524 is ENOTSUPP so it looks like fentry probes are not correctly supported by powerpc.

authors: dubeyabhishek viktormalik

repo: bpftrace/bpftrace


text:
Allow specifying image URL to display

The client can use command showurl with a URL as the parameter which is sent to server that responds with the image at given the URL.

Just repeating what I put in discord but this will preserve the context:
Looking at the changes for the client, it looks like the stream_image function can accommodate that command with some small changes, basically paying attention to the arguments, looking for the beginning of the URL.  (N:TCP)

authors: brad-colbert mozzwald

repo: brad-colbert/yail


text:
[Shields] -> [Online Design Tools]

Shields
Create badges with your own customization for your readme
Link: https://shields.io
Checklist:

[x] I have performed a self-review of submitted resource and its follows the guidelines of the project.

Please unlint your files and add only the resource.

I'm sorry, I don't understand. What does it mean by unlint the file?


text:
Improve/sanitize phone number input in profile

Improve phone number input
Currently there is no input validation for when a user inputs a phone number. The Twilio API requires phone numbers to begin with a plus sign, followed by the country code, followed by the rest of the phone number (e.g. "+11234567899", where +1 is the country code, and 123-456-7899 is the user's phone number).
One way to improve the user input is to require the user to specify a country code, and then enter their phone number. There may already be a built in phone number input form? We should make sure they are entering all of the digits of the number and without any extra symbols such as parenthesis or dashes.

The tel input type could help here, along with some sort of pre-built dropdown to specify the country code.

repo: bradwj/friend-advisor


text:
issue installing editable version of bg-atlasgen

Describe the bug
I forked and cloned the repo to start integrating a cavefish atlas in the brain-globe project. However, I received a missing file error when I try to install an editable version of bg-atlasgen
To Reproduce
$ pip install e .
$ ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /Users/johannakowalko/bg-atlasgen (A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)
Please let me know if there is a setup.py file that is missing for me to add to the bg-atlasgen directory, or whether I need to do an install using an alternative method.
Thank you,
Rob

Could you try updating to a newer version of pip e.g. with pip install --upgrade pip?

Also, awesome that you're adding a new atlas. Please get in touch if we can be of any assistance (this repository is due a major refactor).

thanks Adam! Yes, we just published a neurocomputational atlas in eLife ([https://elifesciences.org/articles/80777]) and we are working on a resource paper right now that will include the brainglobe package, along with new rna probe/antibody staining for registration and automated neuronal counting.
I am not the best at writing code, so I apologize in advance if I bug the community.

Looks great! Let me know if it's useful to hop on a call sometime to discuss.

Hey Adam,
I just got back to working on the bg-atlas script. I am having an issue
with the atlasapi and was wondering if you could help...

from bg_atlasapi import utils

Traceback (most recent call last):
File "", line 1, in
File
"/opt/anaconda3/lib/python3.7/site-packages/bg_atlasapi/init.py", line
5, in
from bg_atlasapi.bg_atlas import BrainGlobeAtlas

File
"/opt/anaconda3/lib/python3.7/site-packages/bg_atlasapi/bg_atlas.py", line
10, in
from bg_atlasapi import utils, config, core, descriptors

File "/opt/anaconda3/lib/python3.7/site-packages/bg_atlasapi/core.py",
line 10, in
from bg_atlasapi.structure_class import StructuresDict

File
"/opt/anaconda3/lib/python3.7/site-packages/bg_atlasapi/structure_class.py",
line 1, in
import meshio as mio

File "/opt/anaconda3/lib/python3.7/site-packages/meshio/init.py",
line 1, in
from . import (

File
"/opt/anaconda3/lib/python3.7/site-packages/meshio/_cli/init.py", line
1, in
from ._main import main

File "/opt/anaconda3/lib/python3.7/site-packages/meshio/_cli/_main.py",
line 5, in
from . import _ascii, _binary, _compress, _convert, _decompress, _info

File "/opt/anaconda3/lib/python3.7/site-packages/meshio/_cli/_ascii.py",
line 4, in
from .. import ansys, flac3d, gmsh, mdpa, ply, stl, vtk, vtu, xdmf

File
"/opt/anaconda3/lib/python3.7/site-packages/meshio/ansys/init.py", line
1, in
from ._ansys import read, write

File "/opt/anaconda3/lib/python3.7/site-packages/meshio/ansys/_ansys.py",
line 14, in
from .._helpers import register_format

File "/opt/anaconda3/lib/python3.7/site-packages/meshio/_helpers.py",
line 7, in
from numpy.typing import ArrayLike

ModuleNotFoundError: No module named 'numpy.typing'

I made sure to 'pip update --all' for my anaconda environment. Do you think
this is an issue with numpy or with the atlasapi?
Thanks,
Rob
On Fri, Sep 1, 2023 at 4:53 AM Adam Tyson @.***> wrote:

Looks great! Let me know if it's useful to hop on a call sometime to
discuss.
—
Reply to this email directly, view it on GitHub
https://github.com/brainglobe/bg-atlasgen/issues/69#issuecomment-1702403336,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGIJNKR4YLHOBDK4QYVG543XYGPAJANCNFSM6AAAAAA4GGYEWU
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi @Robkozol - very excited about the cavefish atlas!
The error message tells me that you may have a too old version of numpy, because it looks like you're missing a numpy feature (typing) introduced from numpy 1.20+. This is probably because you have Python 3.7 installed in your conda environment.
Could you try creating a conda environment with say Python 3.10 (brainglobe supports Python 3.9, 3.10, and 3.11 currently) and try installing there?
Let us know if you need any further help with this.

authors: Robkozol adamltyson alessandrofelder

repo: brainglobe/bg-atlasgen


text:
[BUG] cell_density example is not working correctly

Describe the bug

To Reproduce
python examples\cell_density.py
Expected behaviour
I assume the density map should overlap the brain, right?
Computer used (please complete the following information):
Windows 11

Hi @orena1,
We're aware of this issue (and trying to fix it). I think you should be able to get this working by installing some specific versions of packages, but I don't know exactly which ones. @FedeClaudi?

Thanks @adamltyson, yeah I understand the problem. Actually wanted to use reconstruct_surface from vedo, but the version that brainrender does not have it.
Good luck with updating the dependencies!

See possibly related discussion in https://github.com/brainglobe/brainrender/pull/235#issuecomment-1609774243

authors: adamltyson alessandrofelder orena1

repo: brainglobe/brainrender


text:
Clearer error msg

Minor changes to try to give more indication about what went wrong.
That assumes that input array all have a ndim propery

Looks good, thanks @ablot!

authors: ablot adamltyson

repo: brainglobe/cellfinder-core


text:
Fix the VSCode 1.94 Neon Dreams Undefined 'filename' error

This PR configures prettier for uniform formatting and merges a patch from upstream's PR that fixes the undefined 'filename' error after the 1.94 update of VSCode that changed the require.main behaviour.

#17

repo: brainomite/dark-synthwave-vscode


text:
ThreeDs lookup error handling

General information

SDK version: 3.82.0
Environment: sandbox
Browser and OS Chrome: 98.0.4758.80 MacOS: 12.1

Issue description
We recently had an issue on our frontend where three-d-secure verifyCard was returning a verify payload with a lookup_error status. As we were not checking this status field, the error was slipping through the cracks on our frontend and not informing anyone.
In the docs, I notice that under the three-d-secure on."lookup_complete") handler, there is a comment that says // check lookup data however, the docs do not tell us how to do this or what potential scenarios to expect. As I said, in our case the issue was a lookup_error which was present in a status field, but this field does not exist in the docs' definition of a ThreeDSecureInfo object.
Ideal Outcomes

either lookup errors or any other status errors cause the verify promise to reject
or the the "status" field, its potential values and an example of how to check for them is added to the docs

Hello @harris-jacob, thanks for writing in; these are some great questions.
Our documentation is vague around the lookup data because that data is returned to us by our third-party MPI provider CardinalCommerce. Additionally, we cannot adjust the promise to reject in these cases because it is possible for a bank to accept the transaction even when these errors occur, so we do not reject these transactions even if 3DS is required.
I hope this has clarified things. I'm going to close this issue for now, but let us know if you have any additional questions.

authors: harris-jacob jplukarski

repo: braintree/braintree-web


text:
FEAT Define Appendable to read input and error streams of process

Thanks for your amazing library :) I use it into one of my application, and each time FFmpeg process crashes we are not able to get the cause of its interruption. Theses modifications allow defining an Appendable instance to get input and error streams of process.

Would be awesome if we could get this merged in.

Hello, is there some development on this valid pull request? Is there a way to assist you to get this merged and create a new release?

@bramp: What's your thought on this?
I'd be willing to resolve the conflicts

I think it looks good. I've added feedback on the pr. Thanks

authors: Euklios barnettj bramp mekahell raphaelstolt

repo: bramp/ffmpeg-cli-wrapper


text:
fix: redundant summary to statistics

Description
To avoid redundant review summary or statistics, the { ... statistics: ReviewStatistics } property was removed from project as it extend the ReviewSummary, has no required data. Also ReviewStatistics has very similar usage as the ReviewSummary.
Steps to test
All components that where using the ReviewStatistic and/or ReviewSummary should work as before.

Closing due to large conflicts.

authors: bweissbart ooleksolo

repo: brandingbrand/flagship


text:
🛑 Dev Charite gateway-iop-connection is down

In 4b6edd4, Dev Charite gateway-iop-connection (https://dev-ids.health-x.charite.de/health/4) was down:

HTTP code: 500
Response time: 136 ms

Resolved: Dev Charite gateway-iop-connection is back up in 866e79c after 11 minutes.

repo: braunma/dataloft-endpoint-monitor


text:
Refactor weather to address forecast deprecation

What it says on the tin. Home Assistant will be deprecating the forecast and attr_forecast weather entity properties in favour of using async_forecast_daily and async_forecast_hourly etc.
I have tried to keep the change to a minimum so not to break any existing integrations but, due to the nature of the entity change, will require a design rethink on the internals. One could argue the collector is no longer required along with the sensors, as they can be derived by templates. It's a bigger discussion to be had but at the very least this integration won't languish during that time.
This addresses issue #189.

Would it not be better to first add the new functionality, and remove the deprecated properties later? You seem to be removing forecast immediately.

@politas what reason would keeping them serve? The functionality already exists and 'WeatherHourly' will likely be removed.

@evilmarty thanks for working on this. I will have a look and merge later on today and create a beta release for others to test. I suspect it will also cause major problems with custom weather cards.
I will make it only installable if you have HA 2023.9.0 or newer to avoid it breaking previous HA versions.

@evilmarty I have merged this and created a pre-release (1.2.0).
We should keep the additional sensor entities as removing them will result in breaking changes in some cards (ie. the Platinum Weather Card) as they use the entities in preference to the weather attributes. The HA guys really don't have a clue about how to deal with weather stuff and they refuse to listen to common sense.

authors: Makin-Things evilmarty politas


text:
Another race conditions when inserting records

This is a continuation of #182 - for which I supplied a bugfix a few years back. We are still seeing a race condition, but this one is much rarer.
When concurrently creating / deleting items, it can happen that rearrange_ranks raises an error because the reason for the rearranging has been deleted in the meantime. This can be reproduced pretty consistently with the following script:
begin
  require "bundler/inline"
rescue LoadError => e
  $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
  raise e
end

gemfile(true) do
  source "https://rubygems.org"
  gem "activerecord", "~> 7.1"
  gem "ranked-model"
  gem "pg"
  gem 'byebug'
end

require "active_record"
require "minitest/autorun"
require "logger"

# This connection will do for database-independent bug reports.
ActiveRecord::Base.establish_connection(adapter: "postgresql", database: "ranked_model_issue", url: "postgres://postgres:@localhost:5434")
ActiveRecord::Base.logger = Logger.new(STDOUT)

ActiveRecord::Schema.define do
  create_table :ducks, force: true do |t|
    t.string :name
    t.integer :row_order
    t.timestamps
  end
end

class Duck < ActiveRecord::Base
  include RankedModel

  ranks :row_order
end

class BugTest < Minitest::Test
  def test_no_duplicate_row_values
    10.times do
      threads = 20.times.map do
        Thread.new do
          ActiveRecord::Base.connection_pool.with_connection do
            duck = Duck.create!
            duck.destroy
          end
        end
      end
      threads.each(&:join)
    end
  end
end

I solved this in my app by making the following change to rearrange_ranks:
def rearrange_ranks
  reset_cache
  return if current_first.nil? || current_last.nil?

  # ...

Meaning if there's no current_first or current_last we can just skip rearranging, as there's nothing to re-arrange anymore.

Are you saying that duck = Duck.create! kicks off callbacks that don't complete before duck.destroy is called?

Yes, I guess that's what's happening. When rank_taken? is called the record still exists in the database (otherwise rearrange_ranks wouldn't be called), but when current_first or current_last is called it is already gone. As I said, this doesn't happen often, but happened 3 times in the last month in our app, which is why I took another look.

current_first.nil? || current_last.nil? would imply an empty list wouldn't it? If so, couldn't we just call finder.exists?.

I think that would still be susceptible to the race condition, as the record could be destroyed between finder.exists? and the calls to current_first or current_last. If we check current_first & current_last explicitly those values are cached. That means that rearrange_ranks works on outdated values, but if the list is empty anyway that's not a problem I believe.

Also, just a quick note, I've released a new ordering gem: https://github.com/brendon/positioning If you have some time, I'd love it if you could give it a whirl if you think it'd solve a need for you

thanks for the heads up, I'll take a look

Thanks @fschwahn, I've had an interesting journey over the last few days. I adapted your test for my positioning library and found that it had issues with overlapping threads too. I ended up implementing an advisory lock strategy to ensure sequential ordering operations and I'm wondering if that might be the solution here too.
Check out:
https://github.com/brendon/positioning/blob/main/lib/positioning/advisory_lock.rb
And where the class is used here:
https://github.com/brendon/positioning/blob/d7d67e6ef996a778b0697d27c9ac88ff90cf307c/lib/positioning.rb#L46
The biggest drama with an advisory lock was with SQLite because it doesn't support that. Instead I used a file lock strategy that I saw in the Advisory Lock gem. It seems to work well, but I also had to hack SQLite for my tests to use 'IMMEDIATE' transactions, otherwise the test gets too hectic and depletes the connection pool.
Would you be open to something like this in ranked-model?

Sure, I don't have any preference how this scenario is solved, and locking seems more correct. Just curious if this could lead to deadlocks, or will negatively impact insert speed (ie. if several items are inserted simultaneously which are not part of the same list).

It would probably be slower but only because things aren't done asynchronously but that caused the issue to begin with. Advisory locks are done with a key so you can have a key that mentions the namespace, database, table, and positioning column which will prevent locks from affecting other tables (and) positioning columns if you use more than one on your table. I'll put up a branch with this concept for you to test out on your end if you like?

Sure, I'll give it a go 👍

Hi @fschwahn, this took a bit of time but try out this branch: https://github.com/brendon/ranked-model/tree/advisory-lock
It wraps creates, updates, and deletes in an advisory lock which gets released on commit or rollback. That should ensure that the deletion of a record can't proceed while a create or update is occurring. The lock is keyed to the table and column used to keep the position integer.

How did you find the branch @fschwahn?

I hadn't had the chance to test it in production yet.

All good. Keep me posted :)

Keen to progress this @fschwahn :) Are you able to give it a test?

Hi @fschwahn, did you get a chance to test it yet?

Hi @brendon, sorry for not getting back earlier. I'm caught up in other projects right now, so I don't know yet when I get the chance to test this out.

All good. I'll bug you again in another few months :D

authors: brendon fschwahn

repo: brendon/ranked-model


text:
DurationInSeconds and SizeInBytes are bad names

I think those should simply be duration and size and have the spec define how those are represented in terms of units. It is extremely uncommon to have descriptive names like this in formats.

Thanks for the feedback. We debated this back and forth... It might be unusual, but it was important to have a format that was as self-documenting as possible. Basically, impossible to get wrong when creating a feed, and these type of fields can be unclear in other formats.

I agree. Also mime_type would be renamed to type.

authors: manton st3fan valtlai

repo: brentsimmons/JSONFeed


text:
JSON Feed Validator Plans

Hi,
JSON Feed looks great!
I was wondering if there were any plans for an official validator tool/web service? I think this would be very useful to help people get their feeds right.
In addition to checking that a feed is valid JSON, it could also check:

Proper content-type headers
Presence of required fields
Valid URLs for the feed
Make recommendations (like fully qualified URLs in #8)

Thanks!

I had the same idea. ;)
So, I made one https://github.com/voidfiles/jsonfeedvalidator

I put something simple up here: https://json-feed-validator.herokuapp.com/
But then I noticed this on the official Twitter account: https://validator.jsonfeed.org/

I for one support some competition in this area. :)

Thanks y'all. Glad these JSON Feed validators exist. Going to close this issue.

authors: benubois dce manton ndarville voidfiles


text:
Lower-case the maven artifactId to "hikariCP"?

Super low priority, but can we change the maven artifactId to start with a lower-case H?  When I go to look for the jar, I expect to find it under h, not H (a capital H sorts it to the top in linux).
<dependency>
    <groupId>com.zaxxer</groupId>
    <artifactId>HikariCP</artifactId>
    <version>2.5.0</version>
</dependency>

:-1: for changing artifactId case, not sure what distro you are running but that is not the behaviour of mine.
tmp]$ ls -l
total 0
-rw-r--r-- 1 johno johno 0 Sep 15 00:16 a
-rw-r--r-- 1 johno johno 0 Sep 15 00:16 b
-rw-r--r-- 1 johno johno 0 Sep 15 00:16 C
-rw-r--r-- 1 johno johno 0 Sep 15 00:16 d
-rw-r--r-- 1 johno johno 0 Sep 15 00:16 H

Sorry - shows up this way in MacOS, not Linux

@bphilipnyc Thats a Mac OS issue. You can use ls -f on Mac OS to get more natural sorted results (HFS sorts itself).

@bphilipnyc Changing the artifact name would cause havoc, as many projects (HikariCP included use variables for versions but leave the dependency itself unchanged.

fair enough

authors: bphilipnyc brettwooldridge jnehlmeier johnou

repo: brettwooldridge/HikariCP


text:
Does HikariCP supports connection retries ?

Hi, I'm using HikariCP together with JPA/Hibernate and jetty server, running on the cloud and I'm noticing sometimes the app is getting timeouts connecting to the database.  Is there any built-in features in Hikari to try to reconnect automatically in those cases ?
thanks
Environment
HikariCP version: 2.6.1
JDK version     : 1.8.0_111
Database        : DB2
Hibernate       :  5.1.0.Final
Driver version  : jdbc type 4

@marodriguez-llbean HikariCP continually tries reconnection in the background in the case of failures, with a slight time back-off if it keeps failing -- dropping down to once every 2 seconds or so.

in a case like the one described on this stacktrace, the app becomes unusable due to the error, do I need to add any HikariCP settings to keep retrying?
Exception in thread "Thread-24" org.hibernate.QueryTimeoutException: Unable to acquire JDBC Connection 	at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:66) 	at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42) 	at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111) 	at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:97) 	at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:87) 	at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:109) 	at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:47) 	at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$1.doPrepare(StatementPreparerImpl.java:87) 	at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:172) 	at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareStatement(StatementPreparerImpl.java:78) 	at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.buildBatchStatement(AbstractBatchImpl.java:136) 	at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.getBatchStatement(AbstractBatchImpl.java:125) 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3049) 	at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2985) 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3365) 	at org.hibernate.internal.StatelessSessionImpl.update(StatelessSessionImpl.java:208) 	at org.hibernate.internal.StatelessSessionImpl.update(StatelessSessionImpl.java:189) 	at com.llbean.purchase.history.consumer.batches.BatchesManager.saveBatch(BatchesManager.java:88) 	at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:70) 	at com.llbean.purchase.history.consumer.migration.direct.DirectOrderWorkConsumer.setWorkStatus(DirectOrderWorkConsumer.java:57) 	at com.llbean.purchase.history.consumer.migration.direct.DirectOrderWorkConsumer.updateBatchStatus(DirectOrderWorkConsumer.java:127) 	at com.llbean.purchase.history.consumer.migration.direct.DirectOrderWorkConsumer.executeWorkers(DirectOrderWorkConsumer.java:107) 	at com.llbean.purchase.history.consumer.migration.direct.DirectOrderWorkConsumer.runExtractionLoop(DirectOrderWorkConsumer.java:77) 	at com.llbean.purchase.history.consumer.core.PurchaseHistoryContextListener.lambda$withInjector$0(PurchaseHistoryContextListener.java:58) 	at java.lang.Thread.run(Thread.java:745) Caused by: java.sql.SQLTimeoutException: Timeout after 30001ms of waiting for a connection. 	at com.zaxxer.hikari.pool.BaseHikariPool.getConnection(BaseHikariPool.java:233) 	at com.zaxxer.hikari.pool.BaseHikariPool.getConnection(BaseHikariPool.java:183) 	at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:93) 	at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) 	at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:386) 	at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:84) 	... 20 more

authors: brettwooldridge marodriguez-llbean


text:
Add fallback if driver not supports isValid

Fix https://github.com/brettwooldridge/HikariCP/issues/1504

@quaff Wait, wait, wait. What exactly is wrong with the original code? I explicitly did not want a "fallback" to something like SELECT 1, which is a query that does not work on many databases (HSQLDB, Oracle, etc.). In fact, there is no validation query that works universally across databases.
The intent of the existing code is:

If no validation query is set, then use isValid(), ie. isUseJdbc4Validation = config.getConnectionTestQuery() == null
And, if isValid() is not supported by the driver, then an exception (ConnectionSetupException) will be thrown and logged

This is intended to force a user who is using a driver without isValid() support to explicitly specify a validation query, because only the user an supply a correct one. "Falling back" to SELECT 1 could lead to some very confused users when the SELECT 1 query itself fails against their database and they know they did not specify any query.
Sometimes the solution to a failure due to isValid() not being supported is simply a newer JDBC driver, rather than a validation query, which is a terribly inefficient way to validate a connection and should be avoided when possible.

@quaff Wait, wait, wait. What exactly is wrong with the original code? I explicitly did not want a "fallback" to something like SELECT 1, which is a query that does not work on many databases (HSQLDB, Oracle, etc.). In fact, there is no validation query that works universally across databases.
The intent of the existing code is:

If no validation query is set, then use isValid(), ie. isUseJdbc4Validation = config.getConnectionTestQuery() == null
And, if isValid() is not supported by the driver, then an exception (ConnectionSetupException) will be thrown and logged

This is intended to force a user who is using a driver without isValid() support to explicitly specify a validation query, because only the user an supply a correct one. "Falling back" to SELECT 1 could lead to some very confused users when the SELECT 1 query itself fails against their database and they know they did not specify any query.
Sometimes the solution to a failure due to isValid() not being supported is simply a newer JDBC driver, rather than a validation query, which is a terribly inefficient way to validate a connection and should be avoided when possible.

@quaff Wait, wait, wait. What exactly is wrong with the original code? I explicitly did not want a "fallback" to something like SELECT 1, which is a query that does not work on many databases (HSQLDB, Oracle, etc.). In fact, there is no validation query that works universally across databases.
The intent of the existing code is:

If no validation query is set, then use isValid(), ie. isUseJdbc4Validation = config.getConnectionTestQuery() == null
And, if isValid() is not supported by the driver, then an exception (ConnectionSetupException) will be thrown and logged

This is intended to force a user who is using a driver without isValid() support to explicitly specify a validation query, because only the user can supply a correct one. "Falling back" to SELECT 1 could lead to some very confused users when the SELECT 1 query itself fails against their database and they know they did not specify any query.
Sometimes the solution to a failure due to isValid() not being supported is simply a newer JDBC driver, rather than a validation query, which is a terribly inefficient way to validate a connection and should be avoided when possible.

I think this change is better than original, It doesn't change behavior of existing code, the intent is:

isValid is supported by the driver, everything is OK
isValid is not supported by the driver but user provide their own validation query, everything is OK
isValid is not supported by the driver and user didn't provide their own validation query, if database supports select 1 everything is OK, otherwise exception is thrown, I add a warn message that select 1 will be used, maybe the message should be more detailed, WDYT @brettwooldridge ?

@quaff Wait, wait, wait. What exactly is wrong with the original code? I explicitly did not want a "fallback" to something like SELECT 1, which is a query that does not work on many databases (HSQLDB, Oracle, etc.). In fact, there is no validation query that works universally across databases.
The intent of the existing code is:

If no validation query is set, then use isValid(), ie. isUseJdbc4Validation = config.getConnectionTestQuery() == null
And, if isValid() is not supported by the driver, then an exception (ConnectionSetupException) will be thrown and logged

This is intended to force a user who is using a driver without isValid() support to explicitly specify a validation query, because only the user can supply a correct one. "Falling back" to SELECT 1 could lead to some very confused users when the SELECT 1 query itself fails against their database and they know they did not specify any query.
Sometimes the solution to a failure due to isValid() not being supported is simply a newer JDBC driver, rather than a validation query, which is a terribly inefficient way to validate a connection and should be avoided when possible.

I think this change is better than original, It doesn't change behavior of existing code, the intent is:

isValid is supported by the driver, everything is OK
isValid is not supported by the driver but user provide their own validation query, everything is OK
isValid is not supported by the driver and user didn't provide their own validation query, if database supports select 1 everything is OK, otherwise exception is thrown, I add a warn message that select 1 will be used, maybe the message should be more detailed, WDYT @brettwooldridge ?

Added an error message to alert user provide their own connection test query if default select 1 is not supported.

Added an error message to alert user provide their own connection test query if default select 1 is not supported.

@quaff Ok, if we're going to go this far, then let's go further.  What I would like is a solution that is specific to drivers with no known JDBC4 isValid() support. For example, DB2 in your case.
Here is what I am thinking.  Add a static method to the UtilityElf class, along the direction of:
private static final Map<String, String> package2queryMap;

static
{
   package2queryMap = new HashMap<>();
   package2queryMap.put("com.ibm.db2.jcc", "SELECT 1");
   package2queryMap.put("COM.ibm.db2os390.sqlj.jdbc", "SELECT 1");
}

public static String getDefaultValidationQuery(final Connection connection)
{
   final String connectionPackage = connection.getClass().getPackageName();
   return package2queryMap.get(connectionPackage);
}

In PoolBase you're going to need a new member variable, connectionTestQuery, that is set in the constructor to config.getConnectionTestQuery().  Then in PoolBase.checkValidationSupport(), if the call to isValid throws SQLFeatureNotSupportedException or AbstractMethodError, catch and call the above method. If that method returns non-null then set connectionTestQuery to that query string and log a warning. If that method returns null, then simply re-throw the exception. Obviously, connectionTestQuery must be used wherever config.getConnectionTestQuery() was previously used. (I do not want to modify the configuration itself).
Bascially, over time we can "whitelist" certain known drivers with default queries. If you actually know of other specific drivers that do not support isValid, feel free to add the appropriate test query. But what I don't want to do is to default to a query like SELECT 1 that is unknown as to whether it is correct for the database or not.

@quaff Ok, if we're going to go this far, then let's go further.  What I would like is a solution that is specific to drivers with no known JDBC4 isValid() support. For example, DB2 in your case.
Here is what I am thinking.  Add a static method to the UtilityElf class, along the direction of:
private static final Map<String, String> package2queryMap;

static
{
   package2queryMap = new HashMap<>();
   package2queryMap.put("com.ibm.db2.jcc", "SELECT 1");
   package2queryMap.put("COM.ibm.db2os390.sqlj.jdbc", "SELECT 1");
}

public static String getDefaultValidationQuery(final Connection connection)
{
   final String connectionPackage = connection.getClass().getPackageName();
   return package2queryMap.get(connectionPackage);
}

In PoolBase you're going to need a new member variable, connectionTestQuery, that is set in the constructor to config.getConnectionTestQuery().  Then in PoolBase.checkValidationSupport(), if the call to isValid throws SQLFeatureNotSupportedException or AbstractMethodError, catch and call the above method. If that method returns non-null then set connectionTestQuery to that query string and log a warning. If that method returns null, then simply re-throw the exception. Obviously, connectionTestQuery must be used wherever config.getConnectionTestQuery() was previously used. (I do not want to modify the configuration itself).
Bascially, over time we can "whitelist" certain known drivers with default queries. If you actually know of other specific drivers that do not support isValid, feel free to add the appropriate test query. But what I don't want to do is to default to a query like SELECT 1 that is unknown as to whether it is correct for the database or not.

@quaff Ok, if we're going to go this far, then let's go further. What I would like is a solution that is specific to drivers with no known JDBC4 isValid() support. For example, DB2 in your case.
Here is what I am thinking. Add a static method to the UtilityElf class, along the direction of:
private static final Map<String, String> package2queryMap;

static
{
   package2queryMap = new HashMap<>();
   package2queryMap.put("com.ibm.db2.jcc", "SELECT 1");
   package2queryMap.put("COM.ibm.db2os390.sqlj.jdbc", "SELECT 1");
}

public static String getDefaultValidationQuery(final Connection connection)
{
   final String connectionPackage = connection.getClass().getPackageName();
   return package2queryMap.get(connectionPackage);
}

In PoolBase you're going to need a new member variable, connectionTestQuery, that is set in the constructor to config.getConnectionTestQuery(). Then in PoolBase.checkValidationSupport(), if the call to isValid throws SQLFeatureNotSupportedException or AbstractMethodError, catch and call the above method. If that method returns non-null then set connectionTestQuery to that query string and log a warning. If that method returns null, then simply re-throw the exception. Obviously, connectionTestQuery must be used wherever config.getConnectionTestQuery() was previously used. (I do not want to modify the configuration itself).
Bascially, over time we can "whitelist" certain known drivers with default queries. If you actually know of other specific drivers that do not support isValid, feel free to add the appropriate test query. But what I don't want to do is to default to a query like SELECT 1 that is unknown as to whether it is correct for the database or not.

I think this is overengineering, if select 1 is not supported by database, there is a warning and an error message, it's enough for troubleshooting.
c.z.h.p.PoolBase WARN HikariPool-1 - Use default connection test query (select 1)
c.z.h.p.PoolBase ERROR HikariPool-1 - Please config your own connection test query since default one is not supported

@quaff Ok, if we're going to go this far, then let's go further. What I would like is a solution that is specific to drivers with no known JDBC4 isValid() support. For example, DB2 in your case.
Here is what I am thinking. Add a static method to the UtilityElf class, along the direction of:
private static final Map<String, String> package2queryMap;

static
{
   package2queryMap = new HashMap<>();
   package2queryMap.put("com.ibm.db2.jcc", "SELECT 1");
   package2queryMap.put("COM.ibm.db2os390.sqlj.jdbc", "SELECT 1");
}

public static String getDefaultValidationQuery(final Connection connection)
{
   final String connectionPackage = connection.getClass().getPackageName();
   return package2queryMap.get(connectionPackage);
}

In PoolBase you're going to need a new member variable, connectionTestQuery, that is set in the constructor to config.getConnectionTestQuery(). Then in PoolBase.checkValidationSupport(), if the call to isValid throws SQLFeatureNotSupportedException or AbstractMethodError, catch and call the above method. If that method returns non-null then set connectionTestQuery to that query string and log a warning. If that method returns null, then simply re-throw the exception. Obviously, connectionTestQuery must be used wherever config.getConnectionTestQuery() was previously used. (I do not want to modify the configuration itself).
Bascially, over time we can "whitelist" certain known drivers with default queries. If you actually know of other specific drivers that do not support isValid, feel free to add the appropriate test query. But what I don't want to do is to default to a query like SELECT 1 that is unknown as to whether it is correct for the database or not.

I think this is overengineering, if select 1 is not supported by database, there is a warning and an error message, it's enough for troubleshooting.
c.z.h.p.PoolBase WARN HikariPool-1 - Use default connection test query (select 1)
c.z.h.p.PoolBase ERROR HikariPool-1 - Please config your own connection test query since default one is not supported

Thanks. I'll have to pass on this pull request.

Thanks. I'll have to pass on this pull request.

I'll have to pass on this pull request

Sorry, I'm not native english speaker, Does pass on means approve or skip?

I'll have to pass on this pull request

Sorry, I'm not native english speaker, Does pass on means approve or skip?

authors: brettwooldridge quaff


text:
微信账号已捐赠账户可以转移到Play账号吗？

如题，现在不太用微信了，不方便用微信登陆，想把许可方式转移到Play，可以吗

退款，然后通过Play购买。
https://txc.qq.com/products/41738/faqs-more/

repo: brevent/Brevent

license: WTFPL


text:
Meu brevente tá dando erro no server sendo que fiz tudo certinho

Meu brevente tá dando erro no server sendo que fiz tudo certinho

please speak in english.

authors: Rubxnzz liudongmiao


text:
Update AWS SDK to v2

Is your feature request related to a problem? Please describe.
The project is using the stable but outdated AWS SDK and should be upgraded to v2.
Describe the solution you'd like
Upgrade all AWS packages to v2 and refactor unit tests. This will have an impact on X-Ray support that should be addressed as well.
Describe alternatives you've considered
N/A
Additional context
N/A

Hello @jshlbrd , I can work on this. Can you please assign this to me?

authors: AshutoshNanaware jshlbrd

repo: brexhq/substation


text:
Make initial rendering synchronous, fixes #41

This PR makes processing of initial data synchronous, so for example ko.applyBindings will be synchronous too, and therefore the bound nodes will be ready after calling it.
Fixes #41

That looks to be it.
The case where this is a downside is when there's a large bit of data to be initialized and the DOM has reflows queued.  I think that case is marginal, so I'd be ok with this PR.  If this becomes an issue we can add an option "delayInitialFrame" or some such.
To avoid regressions in future patches, do you have time to add one or two tests:

ensure that it's synchronous on the initial;
it's asynchronous otherwise (if this test isn't already there -- cannot recall offhand).

I was also thinking about really large data sets, but that case could be addressed by my other branch which implements partitioned processing.
When possibly merging this two, I could image that the initial partition would be synchronous, and the others asynchronous. It would be a quite special case and of course after applyBindings one would not have a ready DOM again, but I think this all is an acceptable limitation (if we call it limitation at all).
By the way, if you have time, could you have a look at that mentioned branch too?

@brianmhunt Please check out the changes

Awesome.  Looks good to me.  Are you ok merging, adding to the change log, and bumping the version?  I can push update to npm.

I can merge I guess. I have still quite little git experience.
However, I would wait a bit with a new release, as this is not a huge issue I think, and there are some more things I'm working on, like the parentNode issue or the partitioning thing.

Fair enough.  Thanks & keep me posted! :)

authors: brianmhunt cervengoc

repo: brianmhunt/knockout-fast-foreach


text:
Allow option for Single-Quoted Strings in Output

It is a matter of personal preference. I would love it if there was some option to change the default quoting of strings to single instead of double.

Thanks for sharing your thoughts, we'll take it into consideration, of course. At first, we didn't worry about single quoting because of C# conventions -- for C#, single quoting always encloses a char, while double-quoting, an actual string.

I'm siding with Crockford on this one; double-quotes only for strings.
https://youtu.be/NPB34lDZj3E?t=613

Closing this issue, see https://github.com/bridgedotnet/Bridge/pull/2791#issuecomment-312969248 for reason.

authors: artfuldev fabriciomurta geoffreymcgill

repo: bridgedotnet/Bridge


text:
Make buttons with inline icons style properly

Buttons with icons in them have always been a huge problem to get the styling correct. So why not bring it to our themes?
Maybe for <mat-icon> with an inline attribute:
<button mat-stroked-button color="primary">
    <mat-icon inline>favorite</mat-icon>
    Inline Icon
</button>

instead of styling it like

They should look like what Material Design suggests

Ignore the min-width part, just focus on the margins
also make icon size 20x20 to match React

Additional context

This would be a breaking change
Do not touch <mat-icon> without the inline attribute — they are used for regular icon buttons and you wouldn't want to mess up the style

Agree that it would be preferable to fix this in Angular Material instead of our themes. Let's log an issue (make a PR) there instead.

Fixed in #65

authors: emclaug2 huayunh joebochill

repo: brightlayer-ui/angular-themes


text:
tools/upload_file.py: implement getline()

This should make the I/O handling a lot easier, allowing to read data back from the Monocle.
This turns the data from Bluetooth, segmented into packets received asynchronously (low-level interface) into a stream that can be read using getline() (with a custom delimiter possible).
This makes it a lot more convenient to build scripts for the Monocle.
This could be turned into a Monocle library that connects to a Monocle:
monocle = Monocle(mac="monocle_mac_address_here")
monocle.send_command("print('abcd')")
assert monocle.getline(delim="\r\n\x04") == "abcd"

The current implementation does not go that far though. A bit of polishing, but the mechanism is there.

repo: brilliantlabsAR/monocle-micropython

license: ISC


text:
Field of duration type changes magnitude after round-trip through Parquet +shaping

Repro is with zq commit 7182f9e.
$ echo '{duration:4.266ms}' | zq -f parquet - > duration.parquet

$ zq -z -i parquet duration.parquet
{duration:4266000}

$ zq -i parquet duration.parquet | zq -z 'type d={duration:duration}; put .=shape(d)' -
{duration:49d9h} (=d)

@nwt identified the responsible piece of code as https://github.com/brimsec/zq/blob/7182f9e87105ec8429350ba040bff2c23ccb2f7e/expr/cast.go#L132.
The current proposal from @mccanne around which we've established consensus:

I suggest we use parquet INTERVAL, truncate to millisecond precision, and assume a month is 30 days of ns.  This way we are consistent in and out Z for any duration up to milllisecond precision.
If someone wants to do it differently then can use Z arithmetic and cast to int64.

There's a workaround for this, which is that a user could write some Zed to cast these to an integer before writing the data out as Parquet, then reverse the cast when reading it back in. Since that gives us at least some guidance to offer when a user bumps into this, we may keep this one in the Icebox until we have enough uptake in Parquet use that someone hits it.

Note to self: I'd like to do a comprehensive boomerang test where I take a large ZSON sample data set, output it as Parquet, then re-read it back with Zed shaping, then compare the original ZSON with the re-shaped ZSON and look for remaining diffs. Since we know this duration problem is going to cause a giant diff, I'm holding off on doing that test until this one is fixed.

Elevating priority...

I confirmed via binary search that this was fixed starting with Zed commit 0b6233b, which is associated with #3448. Updating the original repro steps to current Zed syntax, now we see that the duration value completes the round-trip through Parquet and shaping.
$ zq -version
Version: v0.33.0-81-g0b6233ba

$ echo '{duration:4.266ms}' | zq -f parquet - > duration.parquet

$ zq -z -i parquet duration.parquet
{duration:4266000}

$ zq -i parquet duration.parquet | zq -z 'type d={duration:duration} yield shape(d)' -
{duration:4.266ms}(=d)

Thanks @nwt!

authors: mccanne philrz

repo: brimdata/zed


text:
Improve Form Field Filling Performance Using Playwright

Hello!
Thank you for your Playwrightium project that integrates the capabilities of Selenide and Playwright for Java. It is an excellent solution that brings many benefits. However, I have encountered an issue where the speed of filling form fields has not increased compared to using pure Playwright.
In pure Playwright, the form filling process is significantly faster, which is an important aspect for many users, especially when working with large forms. It would be great if your solution could leverage Playwright's potential to speed up this process.
Please consider optimizing the code to enhance the form field filling speed. This improvement would make your project even more useful and efficient.
Thank you for your attention and effort!
Best regards,
https://github.com/ArtemVinokhodov

@ArtemVinokhodov
I was able to reproduce this issue. I fixed sendKeys method. And now it works much faster.
But when you will use Selenide.setValue it will work slower. This is because  Selenide.setValue implementation.
So if it is possible please use PlaywrightiumWebelement.sendKeys method.

authors: ArtemVinokhodov britka

repo: britka/playwrightium


text:
[wip] Add Collection operand

Changes

Add collection operand to resolve reference evaluation within array

Test Coverage

[x] unit

References
Closes #35

In the tests for the overlap expression it's still like this:
{ left: new Value([1]), right: new Value([1, 2]), expected: true },
Will this way stay supported? Would it be confusing to have both?

In the tests for the overlap expression it's still like this:
{ left: new Value([1]), right: new Value([1, 2]), expected: true },
Will this way stay supported? Would it be confusing to have both?

Note, this should not be supported any more.
As the Collection is handling array operands, so we may actually also update the Value to not accept array values anymore - as this is now a "never" case, due to this: https://github.com/briza-insurance/illogical/blob/feature/35/src/parser/index.ts#L303-L305
... hence it should be:
{ left: new Value([1]), right: new Collection([new Value(1), new Value(2)]), expected: true }

df51369fc5a9c0fa01f19f778024c619eaf00ddd

authors: davidhorak lilyvanoekel

repo: briza-insurance/illogical


text:
CalculateTargetCoverage should throw an exception if MAPPED filter is disabled

Right now if a user disables MAPPED filter, which is a default filter for CalculateTargetCoverage tool, it will fail with the following uninformative exception (unless somehow all reads are mapped):
java.lang.IllegalArgumentException: the input location cannot be null
	at org.broadinstitute.hellbender.utils.Utils.nonNull(Utils.java:549)
	at org.broadinstitute.hellbender.tools.exome.HashedListTargetCollection.indexRange(HashedListTargetCollection.java:152)
	at org.broadinstitute.hellbender.tools.exome.CalculateTargetCoverage.apply(CalculateTargetCoverage.java:298)

We should guard against it and throw an exception before the traversal starts if MAPPED filter is disabled

Since there is no direct API call to access the list of resolved filters(after command line parsing) this bug fix will have to wait until broadinstitute/barclay#38 is merged

Issue moved to broadinstitute/gatk #2976 via ZenHub

repo: broadinstitute/gatk-protected


text:
reading tmap files

Hello Joshua,
I'm a postdoc working on engineered T cells at Stanford university and hope to use WOT.
I've generated maps from the attached data matrix and days file using the following command:
wot optimal_transport --matrix matrix.txt --cell_days days.txt --local_pca 0 --out tmaps
However, I can't seem to solve the error in calculating the trajectory generated by this command (screenshot attached):
wot trajectory --tmap tmaps --cell_set naive.gmt --day 10 --out wot_trajectory.txt
I'm also attaching the gmt file used for this command that contains the following information.
Tip1 naive CD8_HA_D0_213 CD8_HA_D0_298 CD8_HA_D0_362 CD8_HA_D0_413 CD8_HA_D0_561 CD8_HA_D0_722 CD8_HA_D0_798 CD8_HA_D0_829 CD8_HA_D0_893 CD8_HA_D0_896
The issue appears to be with getting information out of the loom files. Could ou please help?
Thanks in advance,
Zina

matrix.txt
days.txt
naive.txt

Transport map files were corrupted. Fixed by regenerating.

Hi Zinaida,
We have just released WOT 1.0, along with a tutorial:
https://broadinstitute.github.io/wot/tutorial/
I'm sending this to anyone who has expressed interest recently.
Best,
Geoff
Be
On Fri, Apr 5, 2019 at 6:20 PM Zinaida Good notifications@github.com
wrote:

Hello Joshua,
I'm a postdoc working on engineered T cells at Stanford university and
hope to use WOT.
I've generated maps from the attached data matrix and days file using the
following command:
wot optimal_transport --matrix matrix.txt --cell_days days.txt --local_pca
0 --out tmaps
However, I can't seem to solve the error in calculating the trajectory
generated by this command (screenshot attached):
wot trajectory --tmap tmaps --cell_set naive.gmt --day 10 --out
wot_trajectory.txt
I'm also attaching the gmt file used for this command that contains the
following information.
Tip1 naive CD8_HA_D0_213 CD8_HA_D0_298 CD8_HA_D0_362 CD8_HA_D0_413
CD8_HA_D0_561 CD8_HA_D0_722 CD8_HA_D0_798 CD8_HA_D0_829 CD8_HA_D0_893
CD8_HA_D0_896
The issue appears to be with getting information out of the loom files.
Could ou please help?
Thanks in advance,
Zina
[image: wot-error]
https://user-images.githubusercontent.com/8445659/55659364-31a3e600-57b6-11e9-952d-6778adedd738.png
matrix.txt
https://github.com/broadinstitute/wot/files/3049827/matrix.txt
days.txt https://github.com/broadinstitute/wot/files/3049828/days.txt
naive.txt https://github.com/broadinstitute/wot/files/3049830/naive.txt
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/broadinstitute/wot/issues/46, or mute the thread
https://github.com/notifications/unsubscribe-auth/AJIoYpZop38GB29Buus3oKHM0Yv7a1Uzks5vd8xJgaJpZM4cf0ZH
.

Nice! Thanks so much!!
Zina
Sent from my iPhone

On May 11, 2019, at 5:17 AM, geoffschieb notifications@github.com wrote:
Hi Zinaida,
We have just released WOT 1.0, along with a tutorial:
https://broadinstitute.github.io/wot/tutorial/
I'm sending this to anyone who has expressed interest recently.
Best,
Geoff
Be
On Fri, Apr 5, 2019 at 6:20 PM Zinaida Good notifications@github.com
wrote:

Hello Joshua,
I'm a postdoc working on engineered T cells at Stanford university and
hope to use WOT.
I've generated maps from the attached data matrix and days file using the
following command:
wot optimal_transport --matrix matrix.txt --cell_days days.txt --local_pca
0 --out tmaps
However, I can't seem to solve the error in calculating the trajectory
generated by this command (screenshot attached):
wot trajectory --tmap tmaps --cell_set naive.gmt --day 10 --out
wot_trajectory.txt
I'm also attaching the gmt file used for this command that contains the
following information.
Tip1 naive CD8_HA_D0_213 CD8_HA_D0_298 CD8_HA_D0_362 CD8_HA_D0_413
CD8_HA_D0_561 CD8_HA_D0_722 CD8_HA_D0_798 CD8_HA_D0_829 CD8_HA_D0_893
CD8_HA_D0_896
The issue appears to be with getting information out of the loom files.
Could ou please help?
Thanks in advance,
Zina
[image: wot-error]
https://user-images.githubusercontent.com/8445659/55659364-31a3e600-57b6-11e9-952d-6778adedd738.png
matrix.txt
https://github.com/broadinstitute/wot/files/3049827/matrix.txt
days.txt https://github.com/broadinstitute/wot/files/3049828/days.txt
naive.txt https://github.com/broadinstitute/wot/files/3049830/naive.txt
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/broadinstitute/wot/issues/46, or mute the thread
https://github.com/notifications/unsubscribe-auth/AJIoYpZop38GB29Buus3oKHM0Yv7a1Uzks5vd8xJgaJpZM4cf0ZH
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

authors: geoffschieb joshua-gould zinagood

repo: broadinstitute/wot


text:
Downlink issues

Dear Orne,
Can you look at this trouble, please? I have two backends, both with uplink_only = false. Even so, the multiplexer is blocking downlink messages. I compiled the SNAPSHOT-6e3aab3 yesterday (3.0.0).
THX
INFO[0000] starting LoRa Packet Multiplexer              docs="https://www.loraserver.io/" version=SNAPSHOT-6e3aab3
INFO[0000] starting listener                             addr="0.0.0.0:1700"
INFO[0000] dial udp                                      gateway_id=fcc23dfffe0dd3fa host="127.0.0.1:1701" uplink_only=false
INFO[0000] dial udp                                      gateway_id=fcc23dfffe0dd3fa host="router.eu.thethings.network:1700" uplink_only=false
INFO[0002] packet received from gateway                  addr="127.0.0.1:44464" gateway_id=fcc23dfffe0dd3fa packet_type=PushData
INFO[0002] sending packet to gateway                     addr="127.0.0.1:44464" gateway_id=fcc23dfffe0dd3fa packet_type=PushACK
INFO[0002] forwarding packet to backend                  from="127.0.0.1:44464" gateway_id=fcc23dfffe0dd3fa packet_type=PushData to="router.eu.thethings.network:1700"
INFO[0002] forwarding packet to backend                  from="127.0.0.1:44464" gateway_id=fcc23dfffe0dd3fa packet_type=PushData to="127.0.0.1:1701"
INFO[0002] packet received from backend                  gateway_id=fcc23dfffe0dd3fa host="127.0.0.1:1701" packet_type=PushACK
INFO[0002] packet received from backend                  gateway_id=fcc23dfffe0dd3fa host="router.eu.thethings.network:1700" packet_type=PushACK
INFO[0005] packet received from gateway                  addr="127.0.0.1:50906" gateway_id=fcc23dfffe0dd3fa packet_type=PullData
INFO[0005] sending packet to gateway                     addr="127.0.0.1:50906" gateway_id=fcc23dfffe0dd3fa packet_type=PullACK
INFO[0005] forwarding packet to backend                  from="127.0.0.1:50906" gateway_id=fcc23dfffe0dd3fa packet_type=PullData to="127.0.0.1:1701"
INFO[0005] forwarding packet to backend                  from="127.0.0.1:50906" gateway_id=fcc23dfffe0dd3fa packet_type=PullData to="router.eu.thethings.network:1700"
INFO[0005] packet received from backend                  gateway_id=fcc23dfffe0dd3fa host="127.0.0.1:1701" packet_type=PullACK
INFO[0005] packet received from backend                  gateway_id=fcc23dfffe0dd3fa host="router.eu.thethings.network:1700" packet_type=PullACK
INFO[0015] packet received from gateway                  addr="127.0.0.1:50906" gateway_id=fcc23dfffe0dd3fa packet_type=PullData
INFO[0015] sending packet to gateway                     addr="127.0.0.1:50906" gateway_id=fcc23dfffe0dd3fa packet_type=PullACK
INFO[0015] forwarding packet to backend                  from="127.0.0.1:50906" gateway_id=fcc23dfffe0dd3fa packet_type=PullData to="127.0.0.1:1701"
INFO[0015] forwarding packet to backend                  from="127.0.0.1:50906" gateway_id=fcc23dfffe0dd3fa packet_type=PullData to="router.eu.thethings.network:1700"
INFO[0015] packet received from backend                  gateway_id=fcc23dfffe0dd3fa host="127.0.0.1:1701" packet_type=PullACK
INFO[0015] packet received from backend                  gateway_id=fcc23dfffe0dd3fa host="router.eu.thethings.network:1700" packet_type=PullACK
INFO[0021] packet received from gateway                  addr="127.0.0.1:42350" gateway_id=fcc23dfffe0dd3fa packet_type=PushData
INFO[0021] sending packet to gateway                     addr="127.0.0.1:42350" gateway_id=fcc23dfffe0dd3fa packet_type=PushACK
INFO[0021] forwarding packet to backend                  from="127.0.0.1:42350" gateway_id=fcc23dfffe0dd3fa packet_type=PushData to="127.0.0.1:1701"
INFO[0021] forwarding packet to backend                  from="127.0.0.1:42350" gateway_id=fcc23dfffe0dd3fa packet_type=PushData to="router.eu.thethings.network:1700"
INFO[0021] packet received from backend                  gateway_id=fcc23dfffe0dd3fa host="127.0.0.1:1701" packet_type=PushACK
INFO[0021] packet received from backend                  gateway_id=fcc23dfffe0dd3fa host="router.eu.thethings.network:1700" packet_type=PushACK
INFO[0022] packet received from backend                  gateway_id=fcc23dfffe0dd3fa host="127.0.0.1:1701" packet_type=PullResp
INFO[0022] ignoring downlink packet, backend is uplink only  gateway_id=fcc23dfffe0dd3fa host="127.0.0.1:1701" packet_type=PullResp
INFO[0025] packet received from gateway                  addr="127.0.0.1:50906" gateway_id=fcc23dfffe0dd3fa packet_type=PullData
INFO[0025] sending packet to gateway                     addr="127.0.0.1:50906" gateway_id=fcc23dfffe0dd3fa packet_type=PullACK
INFO[0025] forwarding packet to backend                  from="127.0.0.1:50906" gateway_id=fcc23dfffe0dd3fa packet_type=PullData to="127.0.0.1:1701"
INFO[0025] forwarding packet to backend                  from="127.0.0.1:50906" gateway_id=fcc23dfffe0dd3fa packet_type=PullData to="router.eu.thethings.network:1700"
INFO[0025] packet received from backend                  gateway_id=fcc23dfffe0dd3fa host="127.0.0.1:1701" packet_type=PullACK
INFO[0025] packet received from backend                  gateway_id=fcc23dfffe0dd3fa host="router.eu.thethings.network:1700" packet_type=PullACK
I

Could you post your configuration?

[packet_multiplexer]
# Bind
bind="0.0.0.0:1700"

# Backends

[[packet_multiplexer.backend]]
  host="localhost:1701"
  uplink_only=false
  gateway_ids = [
    "fcc23dfffe0dd3fa"
  ]

[[packet_multiplexer.backend]]
  host="router.eu.thethings.network:1700"
  uplink_only=false
  gateway_ids = [
    "fcc23dfffe0dd3fa"
  ]

[packet_multiplexer]
# Bind

bind="0.0.0.0:1700"

# Backends

[[packet_multiplexer.backend]]
  host="localhost:1701"
  uplink_only=false
  gateway_ids = [
    "fcc23dfffe0dd3fa"
  ]

[[packet_multiplexer.backend]]
  host="router.eu.thethings.network:1700"
  uplink_only=false
  gateway_ids = [
    "fcc23dfffe0dd3fa"
  ]

authors: brocaar metadataengine rudam

repo: brocaar/lora-packet-multiplexer


text:
Labels/names of folders in the taskbar would be useful.

After adding folders each of them shows up in the taskbar without the name. I have some 6 clusters of nodes I need to navigate to and their names on the folders would be very useful.

I agree. However, we are limited to icons in the system tray since this isn't a full replacement of the old feature. The best we can get is a tooltip on hover, which it already does.
Alternatively, you can customize the icon of each folder in the properties dialog of each folder so that you have a unique icon in the tray at least.

I agree. However, we are limited to icons in the system tray since this isn't a full replacement of the old feature. The best we can get is a tooltip on hover, which it already does.
Alternatively, you can customize the icon of each folder in the properties dialog of each folder so that you have a unique icon in the tray at least.

Even with the same icon it is big help - thanks again. Changing the icon is quite elaborate and requires the restart of TrayToolbar. I think the solution is to give Microsoft enough feedback so they re-add the feature and promote their UX architect so he does not do any more damage.

repo: brondavies/TrayToolbar


text:
Add missing dependencies

For https://github.com/brotzeit/rustic/issues/150
missing-imports is just a list at the moment. What is the preferred way to prompt the user to select one of them? An alternative would be to just add all missing dependencies. I'm not sure how often a user would input several missing dependencies and then only want to add a subset of them. And in those cases, you could just not run rustic-cargo-add-missing-import.

I would say we should add all missing dependencies by default. When the user runs the command with prefix argument it should offer the user dependencies that he can choose manually.

Good idea, I added it now.

Very handy. If you want you could also use if-let.

Ah sorry, please add a note to the readme. And please mention that this function currently only works with lsp-mode.

Good catch!

Very handy. If you want you could also use if-let.

Oh, I missed this comment. You are right, this would have been nicer. I am looking into eglot support, will fix there.

authors: brotzeit samhedin

repo: brotzeit/rustic


text:
task_03

Вы приняли мою третью лабораторную работу и объединили мою ветку с веткой main, но факт выполнения лабораторной работы не отображается в виде галочки в таблице в readme.md.

Надо отдельным запросом внести изменения в таблице в readme.md.

Надо отдельным запросом внести изменения в таблице в readme.md.

Сделал отдельным запросом

authors: Duferig idzm


text:
Add date adjustment function

Is your feature request related to a problem? Please describe.
Dates may need to be adjusted at run-time
Describe the solution you'd like
A function should be able to be passed in to alter event dates before they are rendered

This may or may not be necessary. Developers could easily iterate over their list of events and alter them before rendering, making this unnecessary.


text:
Prevent glitches due to interrupts

The #define directive will prevent interrupts from causing "glitches" on some of the faster animations/effects.

I recently migrated the code to support the MQTT JSON component in HA. With that change, I came across this solution as well and it was implemented. Cheers!

authors: bkpsu bruhautomation


text:
Scons error when compiling for Windows

Hi, I came across this module from reading some issues logged on the Godot GitHub rep. I'm very curious to try this module as I'm working on an app that would greatly benefit from this.
Unfortunately, when trying to compile on my Windows machine I get an error from scons. It compiles fine if I don't copy this in the module folder, i.e. Godot Engine gets built just fine without it.
any idea on how to solve it?
scons: Reading SConscript files ...
Automatically detected platform: windows

scons: *** Illegal construction variable `module_webview_module-master_enabled'
File "D:\GodotNative\godot-master\godot-master\SConstruct", line 274, in <module>

module_webview_module-master_enabled

Folder should be named webview_module exactly, error message suggests it was renamed to webview_module-master.
And it's for with 3.2, most likely it won't work with godot-master without some changes.
Also, the module itself is just proof-of-concept with the minimal functionality, created as part of https://github.com/godotengine/godot-proposals/issues/960 discussion. It's only supported on Windows 10 with Edge runtime installed and macOS. It's not production ready, not actively maintained and there are no plans for future development.

Right, sorry never compiled Godot or modules but I should have figured it :)
I know this is just an experiment, but would give me some pointers from where to start in case I want to do something similar :)
Thanks for your help and for putting this together.
p.s.: indeed needs some re-work as it can't find some classes which have been relocated. I will try to fix it.

authors: bruvzg tommasodargenio


text:
Simplify Tensor struct

Closes #89

Funk, this PR is more merging in master.


text:
Consumer: lz4.Read: invalid header checksum

I've got a topic created with a Java Producer 0.10.2.1 with LZ4 Compression but when ever I try to read it using this library I get this:
2017/05/14 14:41:38 Error: kafka: error while consuming <TOPIC>/<PARTITION>: lz4.Read: invalid header checksum: got 26 expected 130

I've looked and I seem to be the only hitting this issue ?
EDIT: I can read from other topics correctly (None-LZ4) but I haven't tried other compression types.

Ok so i'm just retarded... Default cluster.Config is not set to sarama.V0_10_X_X

please tell me how to resolve this problem!!!
thanks

@yixinGod this is not a sarama-cluster but a core https://github.com/Shopify/sarama "issue". You need to set the protocol version to the relevant value, i.e. config.Version= sarama.V...

authors: Typositoire dim yixinGod

repo: bsm/sarama-cluster