Flask 1.0: global exception handler handles not found now?

Hi,
We're looking at upgrading from Flask 0.12 to 1.0, and have run into an issue with routes that don't exist.
We have a custom error handler that we install for Python's built-in Exception class so that we can have a useful error message should any error occur during request execution. With Flask 1.0, we are finding that URLs that don't exist are triggering a call to the custom error handler.
We would like to preserve the behaviour so that non-existent URLs continue to return a 404/Not Found response.
I've tried reading the docs and couldn't see a way, so might have missed something:
http://flask.pocoo.org/docs/1.0/errorhandling/#error-handlers
What is the recommended way of doing this? Or is this a bug?
I wasn't 100% sure, but this could be the same as https://github.com/pallets/flask/issues/2778?

Expected Behavior
With the Flask app running as below, the following command:
curl -XGET http://<IP_ADDRESS>:5001/does-not-exist
should return 404/Not Found.
#! python

"""
Simple Flask app with a global exception handler.
"""

from http import HTTPStatus

from flask import Flask

app = Flask(__name__)

@app.errorhandler(Exception)
def global_exception_handler(err):
    """ Global exception handler.
    """
    print("In global_exception_handler", err)
    return "From global_exception_handler\n", HTTPStatus.INTERNAL_SERVER_ERROR

@app.route("/error")
def error():
    """ Simple endpoint that raises an exception
    """
    # simulate a real error that can occur during request processing
    raise AttributeError("These aren't the attributes you are looking for.")

@app.route("/simple")
def simple():
    """ Simple endpoint
    """
    # sanity check
    return "Hello World!\n", HTTPStatus.OK

def main():
    """ The entry point
    """
    app.run(port=5001)

if __name__ == "__main__":
    main()

Actual Behavior
Our global exception handler is invoked and instead of 404/Not found we get what it returns (500/internal server error).
Command line output when running the app with Flask 1.0.2:
dan@dan-desktop:/tmp $ curl -XGET http://<IP_ADDRESS>:5001/error
From global_exception_handler
dan@dan-desktop:/tmp $ curl -XGET http://<IP_ADDRESS>:5001/does-not-exist
From global_exception_handler
dan@dan-desktop:/tmp $ curl -XGET http://<IP_ADDRESS>:5001/simple
Hello World!

Command line output when running the app with Flask 0.12.4:
dan@dan-desktop:/tmp $ curl -XGET http://<IP_ADDRESS>:5001/error
From global_exception_handler
dan@dan-desktop:/tmp $ curl -XGET http://<IP_ADDRESS>:5001/does-not-exist
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title>

Not Found

The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again.

dan@dan-desktop:/tmp $ curl -XGET http://<IP_ADDRESS>:5001/simple
Hello World!

Environment

Python version: Python 3.6.2
Flask version: 1.0.2
Werkzeug version: 0.14.1

I think registering an handler with Exception is too hack.Maybe you can create a base custom Exception for your global error handler:
class CustomGlobalException(Exception):
    pass

Maybe you can create a base custom Exception for your global error handler:

Unfortunately that won't help because exceptions from third-party libraries won't subclass this. For instance, in our Flask app we use SQLAlchemy, whose exceptions definitely don't subclass from this and will end up being uncaught.

Also, it is perfectly valid that you want to have a custom handler for all exceptions so you can show a nicer error to users.

I see. So it's an issue about how flask deal with url mapping failure. Is it a bug?

I understand the issue, and I'm not dismissing it.
You're basically doing the equivalent of except Exception, which is not a good design pattern in most cases. Flask fixed error handlers so this actually propagates correctly, and now people are noticing that they didn't write their handler robustly enough for this very generic exception.
I'm not sure what the answer here is. What do you expect Flask to do here while still respecting the MRO of other exceptions? A temporary fix is to return any HTTPException with a non-error code.
@app.errorhandler(Exception)
def handle_generic(e):
    if isinstance(e, HTTPException) and 500 <= e.code < 600:
        return e

    # handle actual error

This isn't what's causing a problem for us, but rather the fact that failures in routing look ups (in the Flask app's routing table) call the global exception handler in Flask 1.0 but didn't before.
I would have to add this:
if isinstance(e, werkzeug.exceptions.NotFound):
        return e

to the exception handler to obtain 404/Not Found status in the above curl examples, rather than @davidism's suggestion.
(Of course, our endpoints might also return 404/Not Found since they rely on databases etc.)

Adding this handler might do what you are looking for:
@app.errorhandler(HTTPException)
def handle_http_exception(e):
    return e

@danieljacobs1

failures in routing look ups (in the Flask app's routing table) call the global exception handler in Flask 1.0 but didn't before

They always did, but it didn't propagate correctly.
Not sure what's different about your example from mine, NotFound is a subclass of HTTPException so yours is just a more specific case. It's the same solution.

@ThiefMaster maybe we add that by default in __init__? Although if a user really does want Exception to also catch HTTPException, removing that would require digging into less documented attributes.

They always did, but it didn't propagate correctly.

Thanks! This is what I didn't understand properly.

What should Flask do here, if anything? Adding some special case so that except Exception isn't actually completely generic doesn't seem correct. Maybe we need to document this pattern better?
Related to #2778.

Maybe we need to document this better so that users know they need to handle all unhandled exceptions?

This is probably the most useful thing to do, and (for people like me) emphasising that the handlers also deal with exceptions outside of view function code.

@danieljacobs1
Try this!!
This return any custom handles
#!/usr/bin/python
# -*- coding: utf-8 -*-

from flask import make_response, jsonify
import logging

INVALID_FIELD_NAME_SENT_422 = {
    "http_code": 422,
    "code": "invalidField",
    "message": "Not all field names are valid."
}

INVALID_INPUT_422 = {
    "http_code": 422,
    "code": "invalidInput",
    "message": "Invalid input"
}

MISSING_PARAMETERS_422 = {
    "http_code": 422,
    "code": "missingParameter",
    "message": "Missing parameters."
}

BAD_REQUEST_400 = {
    "http_code": 400,
    "code": "badRequest",
    "message": "Bad request"
}

SERVER_ERROR_500 = {
    "http_code": 500,
    "code": "serverError",
    "message": "ERRO"
}

UNAUTHORIZED_403 = {
    "http_code": 403,
    "code": "notAuthorized",
    "message": "NAO AUTORIZADO."
}

NOT_FOUND_HANDLER_404 = {
    "http_code": 404,
    "code": "notFound",
    "message": "NAO ENCONTRADO"
}

SUCCESS_200 = {
    'http_code': 200,
    'code': 'success'
}

def response_with(response, value=None, message=None, error=None, headers={}, pagination=None):
    result = {}
    if value is not None:
        result.update(value)

    if response.get('message', None) is not None:
        result.update({'message': response['message']})

    result.update({'code': response['code']})

    if error is not None:
        result.update({'errors': error})

    if pagination is not None:
        result.update({'pagination': pagination})

    headers.update({'Access-Control-Allow-Origin': '*'})
    headers.update({'server': 'Flask Starter API'})
    return make_response(jsonify(result), response['http_code'], headers)

def inicialize_handles(app):

    @app.errorhandler(403)
    def unauthorized(e):
        logging.error(e)
        return response_with(UNAUTHORIZED_403)

    @app.errorhandler(400)
    def bad_request(e):
        logging.error(e)
        return response_with(BAD_REQUEST_400)

    @app.errorhandler(500)
    def server_error(e):
        logging.error(e)
        return response_with(SERVER_ERROR_500)

    @app.errorhandler(404)
    def not_found(e):
        logging.error(e)
        return response_with(NOT_FOUND_HANDLER_404)

using:
app.register_error_handler(Exception, handle_error)

but also getting 500 errors when removing trailing slash of a route with a trailing slash, e.g. /path instead of /path/
ERROR:root:Traceback (most recent call last):
  File "/tmp/tmpPD9scY/lib/python3.6/site-packages/werkzeug/routing.py", line 1538, in match
    rv = rule.match(path, method)
  File "/tmp/tmpPD9scY/lib/python3.6/site-packages/werkzeug/routing.py", line 776, in match
    raise RequestSlash()
werkzeug.routing.RequestSlash

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/tmpPD9scY/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/tmp/tmpPD9scY/lib/python3.6/site-packages/flask/app.py", line 1791, in dispatch_request
    self.raise_routing_exception(req)
  File "/tmp/tmpPD9scY/lib/python3.6/site-packages/flask/app.py", line 1774, in raise_routing_exception
    raise request.routing_exception
  File "/tmp/tmpPD9scY/lib/python3.6/site-packages/flask/ctx.py", line 336, in match_request
    self.url_adapter.match(return_rule=True)
  File "/tmp/tmpPD9scY/lib/python3.6/site-packages/werkzeug/routing.py", line 1542, in match
    safe='/:|+') + '/', query_args))
werkzeug.routing.RequestRedirect: 301 Moved Permanently: None

I disabled app.url_map.strict_slashes for now, but would be nice if the redirects work again. Tried some of the solutions mentioned here and in related threads, but no luck.


[FSDE-13890] Prepared Chi 5.9.0 release

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-323/1/. :white_check_mark:


Running used a lot of memory, the computer stuck(Used 20.56G)

Flutter version
Flutter 1.17.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision e6b34c2b5c (5 days ago) • 2020-05-02 11:39:18 -0700
Engine • revision 540786dd51
Tools • Dart 2.8.1

OS
Mac OS 10.14.6

Hi @Tecode
can you please provide your complete flutter doctor -v and flutter run --verbose?
Also, to better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem
Does this happen with a new project?
Thank you

Hi @TahaTesser
The new project will not have this problem,it's previously created using flutter1.5.x Version.
Now the upgraded version 1.17.x sometimes has this problem.

Cannot reproduce now, reproduce my print log.

Hi @Tecode
We need more details
can you please provide your complete flutter doctor -v and flutter run --verbose from root of your project?
Also, to better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem
Thank you

duplicate of https://github.com/flutter/flutter/issues/56569


Toggle delta sets on/off

Offer a toggle on the current glyph to see the graphical effect. It should be particularly useful for corner masters.
It could be useful to offer disabling delta sets on a whole font, via command line or GUI. We can’t use the id of the delta set (the same master is not guaranteed to have the same delta set id in each glyph), so we must use a filter on the tuple. Disabling a delta set by tuple through a whole font on the command line could use an argument such as --disable-delta-set "<tuple-filter>" where tuple-filter specifies the tuple in full, e.g. [1,1] to delete a corner tuple, or [0.755 0.877 0.901] to remove an intermediate tuple.
Care needs to be taken that adding a "disabled" check does not affect export time on the default case, fonts with all delta sets active.
Toggling of delta sets on a single glyph, with immediate visual feedback, was implemented in the 2017 version of Samsa.

@davelab6


Update versions and CHANGELOG

Updating versions to 1.3.0 and updating CHANGELOG.
Resolves: OLPEDGE-1610
Signed-off-by: Oleksii Zubko<EMAIL_ADDRESS>

Codecov Report

Merging #219 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #219   +/-   ##
======================================
  Coverage    91.1%   91.1%
======================================
  Files          57      57
  Lines        1548    1548
  Branches      186     186
======================================
  Hits         1411    1411
  Misses         73      73
  Partials       64      64

Continue to review full report at Codecov.

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


Implement sql writer

Overview
For now tabulator support only stream.save(format='csv') to csv format. It's pretty easy to implement sql writer just porting writers.csv.CSVWriter to writers.sql.SQLWrter.
What we're aiming for:
from tabulator import Stream

with Stream('data.xls', headers=1) as stream:
  stream.save('postgresql://user:pass@host:5432/database', table='excel_export')

And of course it will be a pretty cool and useful feature :+1:
Plan

[ ] port writers.csv.CSVWriter to writers.sql.SQLWrter
[ ] register new writer in config.py
[ ] add writing tests to tests.formats.sql
[ ] mention writing ability in readme sql format section
[ ] update changelog at readme bottom (new API added for new version)

@roll @akariv how about an SQL reader too? I thought a reader had already been discussed, but I can't find it. We need it for some Frictionless Data piloting work, and @danfowler has expressed interest in implementing it.

I think @roll already implemented it and it's in master.
On Tue, 23 May 2017 at 08:52 Paul Walsh<EMAIL_ADDRESS>wrote:

@roll https://github.com/roll @akariv https://github.com/akariv how
about an SQL reader too? I thought a reader had already been discussed, but
I can't find it. We need it for some Frictionless Data piloting work, and
@danfowler https://github.com/danfowler has expressed interest in
implementing it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/frictionlessdata/tabulator-py/issues/164#issuecomment-303297329,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAQMde08u1tuzWu82H05EGmCd9iurqC1ks5r8nQjgaJpZM4NWZT2
.

https://github.com/frictionlessdata/tabulator-py/blob/master/tabulator/parsers/sql.py

@danfowler see above

thanks @roll and @akariv

We now have readme withh all schemes, formats, options etc in details - https://github.com/frictionlessdata/tabulator-py/blob/master/README.md#sql

@roll @akariv @callmealien @pwalsh to clarify: for the DM4T pilot, one of the datasets (ENLITEN) was provided as a MySQL dump.  Given that one of the goals of this DM4T project more generally is to "make your data public to the rest of the public and beyond" (and that publishing a SQL dump is not super friendly), I thought there might be value in going straight from a SQL database directly to a Data Package.
I initially tried to use jsontableschema-sql-py directly, but:

There were some issues with the conversion
SQL type support needs to be better (I manually dropped/edited some of the source tables to make it sort of work)

Given that the publisher of this kind of data would want do make some edits to the published Data Package (like dropping user tables, adding metadata, etc.) without needing to do much programming directly, I suppose what probably makes more sense is to do this with some higher level tool, like datapackage-pipelines where you can have an SQL connection as the source.  I suppose what one would need to implement is a datapackage_pipelines_sql plugin.  How long do you think that would take for a new person to the codebase @akariv?

@danfowler there's no need for a datapackage_pipelines_sql plugin, as now you can specify resource URLs which are SQL connection strings directly (using tabulator's built-in support)

@akariv thanks!  That helps so much with understanding how these pieces fit together  😄 .
/me rushing off to add some SQL connections strings to some YAML

Hi, I would like to take a crack at this, is that OK?

That's great @eyalhei
Please take a look at https://github.com/frictionlessdata/tabulator-py/pull/273#issuecomment-541666453 (and this comment especially) to ensure that the issue is properly described (probably it wasn't for the JSON writer).
The test from the comment I linked could be easily updated to be a POC SQL writer test (round-trip using SQL as a intermediate format

DONE in https://github.com/frictionlessdata/tabulator-py/pull/276


Issue #1184 added missing fields

Just added missing input fields that where required by organization registration Issue fixes #1184

:+1:


Pass file descriptors to cmd.NewWithArray

This fixes a change in the behavior of hub console output introduced in d937d287037b9a24022e16337ea5e06ffdc726a.
That commit changed the way file descriptors are passed around so that commands created by cmd.NewWithArray have nil stdin, stdout, and stderr. I believe not passing file descriptors to the function was an oversight.
An example of a resultant change in behavior is that the hub fork command will error-out with code 128 when the forked repo and remote already exist, but will print no error message. Before d937d287037b9a24022e16337ea5e06ffdc726a, hub fork prints the normal error message in this case. I noticed this from the discussion in #1499.
Am I correct in thinking that this is a bug?

Thank you! Really great catch.

This probably fixes quite a few bugs in the 2.3.0-pre10 version of hub. I was just trying to figure out why hub pr checkout failed silently for me in an edge case, and it was because of this bug.


Circled Numbers

Icon Request

Icon name: Circled Numbers
Tags of this icon:
Use case:
Screenshots of similar icons:

Re Circled Numbers, a number inside a circle; example shows black circle with white number.  For use on illustrations or lists.


Using Method on real use case

Dear Author,
i am interested in using few shot learning to collect images via few shot learning model for my thesis.
I want to take one picture per class and these are used as support set.
Afterwards it should move the next images, whish i am shooting, to the each classes folder.
How should i modify the Code to achive this iam a beginner

Hey! I can suggest some code for the modeling part, but it would help if I understand the problem better. What are you trying to classify? What is the way (i.e. classification 5-ways would be classifying an unlabeled image as one of 5 different labels)?

Hello, thank you very much for the feedback.
The point is that it should simply be able to distinguish between different objects such as a screw, nut or a snickers etc. It is therefore not limited to specific objects. As I understand the paper, no meta learning on a related object is necessary. Am I right ?
I will have one Image per class as support set (for example for 5 classes).
In the end it should recognize a new image as one of these 5 classes.
The number of classes can theoretically vary between 1 and 5.

as I study the great work, I think you should do 3 things:

prepare your test data in MYOWNDATASET under ../caml_universal_eval_datasets directory
add  new path config in utils.py's get_test_path() method
add cli arguments  for src/evaluation/test.py, --eval_dataset MYOWNDATASET
@buenyamink


Record cargo-vet violations for older zstd versions

When I tried to audit our previous exemption for zstd, I found two buffer overruns which were reachable from safe Rust, although not reachable from Wasmtime. I got them fixed upstream but didn't update our cargo-vet audits to reflect the issue with the older versions.
Alex updated our dependencies to pull in the fixed versions in #7870, and this PR notes for the benefit of anyone importing the Bytecode Alliance audit set that older versions should not be used.
See https://github.com/gyscos/zstd-rs/pull/231

I'm confused by the CI failure here. I ran cargo vet locally and, although it complained about the new wasmtime-slab crate not having an audit-as-crates-io entry, it didn't complain about my actual changes. However I do get the same errors as in CI if I used cargo vet --locked; maybe the audit-as-crates-io thing masked the issue.

You may need to remove ~/.cache/cargo-vet, I just did that to resolve a difference I was seeing on CI as well


An unexpected connection driver error occured (Exception message: Socket closed)

Hi ALL ,
i am facing below issue in my local enabled with debug log, can you please have a quick look.
Please let me know if any other details required
version : Spring-rabbit:2.2.5.RELEASE
2021-03-17 13:32:20.044 |DEBUG| localhost-startStop-1 | o.s.a.r.l.SimpleMessageListenerContainer || Starting Rabbit listener container.
2021-03-17 13:32:20.044 |INFO| localhost-startStop-1 | o.s.a.r.c.CachingConnectionFactory || Attempting to connect to: localhost:5672
2021-03-17 13:32:20.357 |WARN| AMQP Connection <IP_ADDRESS>:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)
2021-03-17 13:32:20.372 |WARN| AMQP Connection 0:0:0:0:0:0:0:1:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)
2021-03-17 13:32:20.372 |INFO| localhost-startStop-1 | o.s.a.r.l.SimpleMessageListenerContainer || Broker not available; cannot force queue declarations during start: java.io.IOException: No compatible authentication mechanism found - server offered [PLAIN AMQPLAIN]
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-1 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@56b6bd25: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-10 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@2ca85a66: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-7 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@35ef8624: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-9 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@5c9ae5c7: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-8 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@2bb84494: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-5 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@2da111f8: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-6 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@881c77b: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-4 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@20df0058: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-3 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@73bd5c7b: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-2 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@2d04e450: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.419 |INFO| listenerContainer-2 | o.s.a.r.c.CachingConnectionFactory || Attempting to connect to: localhost:5672
2021-03-17 13:32:20.441 |WARN| AMQP Connection <IP_ADDRESS>:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)
2021-03-17 13:32:20.441 |WARN| AMQP Connection 0:0:0:0:0:0:0:1:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)
2021-03-17 13:32:20.441 |DEBUG| listenerContainer-2 | o.s.a.r.l.SimpleMessageListenerContainer || Recovering consumer in 5000 ms.
2021-03-17 13:32:20.441 |INFO| listenerContainer-10 | o.s.a.r.c.CachingConnectionFactory || Attempting to connect to: localhost:5672
2021-03-17 13:32:20.441 |WARN| AMQP Connection <IP_ADDRESS>:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)
2021-03-17 13:32:20.457 |WARN| AMQP Connection 0:0:0:0:0:0:0:1:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)
2021-03-17 13:32:20.457 |DEBUG| listenerContainer-10 | o.s.a.r.l.SimpleMessageListenerContainer || Recovering consumer in 5000 ms.
2021-03-17 13:32:20.457 |INFO| listenerContainer-5 | o.s.a.r.c.CachingConnectionFactory || Attempting to connect to: localhost:5672
2021-03-17 13:32:20.472 |WARN| AMQP Connection <IP_ADDRESS>:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)2021-03-17 13:32:20.044 |DEBUG| localhost-startStop-1 | o.s.a.r.l.SimpleMessageListenerContainer || Starting Rabbit listener container.
2021-03-17 13:32:20.044 |INFO| localhost-startStop-1 | o.s.a.r.c.CachingConnectionFactory || Attempting to connect to: localhost:5672
2021-03-17 13:32:20.357 |WARN| AMQP Connection <IP_ADDRESS>:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)
2021-03-17 13:32:20.372 |WARN| AMQP Connection 0:0:0:0:0:0:0:1:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)
2021-03-17 13:32:20.372 |INFO| localhost-startStop-1 | o.s.a.r.l.SimpleMessageListenerContainer || Broker not available; cannot force queue declarations during start: java.io.IOException: No compatible authentication mechanism found - server offered [PLAIN AMQPLAIN]
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-1 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@56b6bd25: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-10 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@2ca85a66: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-7 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@35ef8624: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-9 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@5c9ae5c7: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-8 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@2bb84494: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-5 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@2da111f8: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-6 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@881c77b: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-4 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@20df0058: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-3 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@73bd5c7b: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.403 |DEBUG| listenerContainer-2 | o.s.a.r.l.BlockingQueueConsumer || Starting consumer Consumer@2d04e450: tags=[[]], channel=null, acknowledgeMode=AUTO local queue size=0
2021-03-17 13:32:20.419 |INFO| listenerContainer-2 | o.s.a.r.c.CachingConnectionFactory || Attempting to connect to: localhost:5672
2021-03-17 13:32:20.441 |WARN| AMQP Connection <IP_ADDRESS>:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)
2021-03-17 13:32:20.441 |WARN| AMQP Connection 0:0:0:0:0:0:0:1:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)
2021-03-17 13:32:20.441 |DEBUG| listenerContainer-2 | o.s.a.r.l.SimpleMessageListenerContainer || Recovering consumer in 5000 ms.
2021-03-17 13:32:20.441 |INFO| listenerContainer-10 | o.s.a.r.c.CachingConnectionFactory || Attempting to connect to: localhost:5672
2021-03-17 13:32:20.441 |WARN| AMQP Connection <IP_ADDRESS>:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)
2021-03-17 13:32:20.457 |WARN| AMQP Connection 0:0:0:0:0:0:0:1:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)
2021-03-17 13:32:20.457 |DEBUG| listenerContainer-10 | o.s.a.r.l.SimpleMessageListenerContainer || Recovering consumer in 5000 ms.
2021-03-17 13:32:20.457 |INFO| listenerContainer-5 | o.s.a.r.c.CachingConnectionFactory || Attempting to connect to: localhost:5672
2021-03-17 13:32:20.472 |WARN| AMQP Connection <IP_ADDRESS>:5672 | c.r.c.impl.ForgivingExceptionHandler || An unexpected connection driver error occured (Exception message: Socket closed)

Closed in favor of StackOverflow question: https://stackoverflow.com/questions/66670972/an-unexpected-connection-driver-error-occured-exception-message-socket-closed.
More over nothing to do from Spring AMQP project perspective. Better to investigate RabbitMQ broker configuration.

GitHub issues are NOT for asking questions. You should ask questions about RabbitMQ itself on the rabbitmq-users Google group.
In this case, the server closed the socket for some reason.
You should look in the server log; if that doesn't tell you anything, ask the RabbitMQ folks on the Google group.

java.io.IOException: No compatible authentication mechanism found - server offered [PLAIN AMQPLAIN]

It's an authentication problem.


What exactly the system is ?

Can you please explain what the system is about?
Is it like Faceit or similar? Does it have any web template as well?
If yes, Can you please post screenshots?
Regards,
Sami.

My original plan was that this project could be used as an replacement for Faceit or ESEA. The idea was that people could run an own matchmaking software for their own servers. But after 2 weeks of development I found out that such a system is a bit complex en would require an almost rebuild of Steam to make this an success. So after my first prototype with contains of an console based app. Both client and server. With simple functionality. I put the project here so others can work further on it if they want. So no I don't have screenshots and it doesn't have a GUI or web interface.

Hey @glenndehaan I just saw this system and i was thinking i could give you a hand on some ideas if you are still interested. I have a project that could definitely work and its a much more simpler system than your current repo i dont mind sharing you my code. my discord is MayNgu#8666 if you want to talk to me there.

Hey @bboychris168 i'm always up for a chat. I have to say however that i'm not playing any CS at the moment and i'm a bit packed with other projects. But a chat is always fine with me. I will add you shortly.

that such a system is a bit complex en would require an almost rebuild of Steam

I don't think so necessarily, instead of trying to figure out how to put together a cohesive friends list system, or going through the trouble of somehow integrating user's friends list through the steam API, a much more simple method would be to simply give people invite codes in which they can share with their friends directly (through steam DM's, discord, whatever). I think this would be sufficient enough to fill that gap.
regardless, sorry for necro'ing this issue.

@SamuelGogarty Theres a guy thats already made a really good discord bot that does everything from scrimming to a matchmaking style queue all in discord.
https://github.com/thboss/g5-discord-bot


list.members?

I search here https://github.com/tweepy/tweepy/blob/f8fa8ec8109e5455a6d5823dfbf3ac876e1e6c64/tweepy/api.py for "https://dev.twitter.com/rest/reference/get/lists/" but I find only 4 result and not https://dev.twitter.com/rest/reference/get/lists/members that is the one I'm looking for, did you plan to implement it or there is a work around I don't see?

Now I find these:
https://github.com/litl/rauth (seems perfect)
https://github.com/idan/oauthlib
from the official website: http://oauth.net/code/
But onestly I prefer to have a complete tweepy solution or I will implement my own function in few lines :dash:

api.list_members(…) ?
for user in api.list_members(owner_screen_name='resiak', slug='miaow'):
    print user.screen_name
"""
GenerateACat
procatinator
Cat_ebooks
…
"""

Uhg, if I only search for only "get/lists/members"... I'm so blind I can't even realize well this fact... thanks a lot :D


Missing from_unixtimestamp

Hello,
I have updated to dbt 0.19.2 and I'm now getting the following error:
Running with dbt=0.19.2
Encountered an error:
Compilation Error
  In dispatch: No macro named 'from_unixtimestamp' found
      Searched for: 'dbt_date.redshift__from_unixtimestamp', 'dbt_date.default__from_unixtimestamp'

I've found this commit: https://github.com/calogica/dbt-date/commit/bc5a637868ba5e2fb358e88820cbd5d458d4715c that adds this to dbt-date however the currently released version of dbt-expectations package is including an older version of that package (though it seems to be up to date on main). So I get a version conflict like:
Running with dbt=0.19.2
Encountered an error:
Version error for package calogica/dbt_date: Could not find a satisfactory version from options: ['>=0.3.0', '<0.4.0', '>=0.2.0', '<0.3.0']

I'm not sure how it worked before (where that function was defined) or what really broke and I realize that dbt-expectations is probably not the right place to complain about it, but it seems you're in a position to fix it?

Super weird, not sure what's going on there but I'll look into it today. Thanks!

I take it you're on Redshift? I think I see what's happening. dbt-date 0.3.1 added support for Postgres and other non-BQ/Snowflake platforms for that macro, but I forgot to bump the version here. Let me do a bugfix release of dbt-expectations real quick to bump the version of dbt-date to < 0.4.0 which should fix this (once it's on dbt-hub)

Just released 0.3.5 which should fix this. Once it's updated here https://hub.getdbt.com/calogica/dbt_expectations/latest/ you should be able to do a dbt deps and get dbt-expectations 0.3.5 and dbt-date 0.3.1.


Please remove pyc files from the git repo

These files should not be in a git repo, since the get created automatically.

Okay!

Here are still some: https://github.com/AnkitMItraOfficial/StackOverFlow-Clone/tree/main/Authentication/pycache

I removed all the .pyc files

Great. Thank you.


Convolutional Layer for Binary Neural Nets

Is there any layer I can use to do convolution on binary inputs and weights. I saw the BinaryLinear layer uses XNOR and bitcount operations to replace matrix multiplication. What I'm looking for is a convolutional version of BinaryLinear. Thanks!

@yataoz We don't have such a layer I believe.

@baojun-nervana Alright, got it. Thanks!


Reorder question fields to emphasize the external facing text

Description
Please explain the changes you made here.
Release notes:
Describe the change as it should be communicated to partners in the release notes.
Checklist

[ ] Added the correct label: < feature | bug | dependencies | infrastructure | ignore-for-release >
[ ] Created tests which fail without the change (if possible)
[ ] Extended the README / documentation, if necessary

Issue(s)
Fixes #<issue_number>; Fixes #<issue_number>; Fixes #<issue_number>...

Codecov Report

Merging #3461 (0300f34) into main (75a6d6c) will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #3461      +/-   ##
============================================
+ Coverage     80.45%   80.52%   +0.07%
- Complexity     2374     2383       +9
============================================
  Files           291      291
  Lines          9433     9438       +5
  Branches        638      640       +2
============================================
+ Hits           7589     7600      +11
+ Misses         1597     1590       -7
- Partials        247      248       +1

Impacted Files
Coverage Δ

...pp/services/question/types/QuestionDefinition.java
95.90% <100.00%> (ø)

...er/app/controllers/dev/DatabaseSeedController.java
96.03% <0.00%> (-0.86%)
:arrow_down:

.../app/controllers/applicant/RedirectController.java
56.09% <0.00%> (ø)

...erver/app/services/program/ProgramServiceImpl.java
89.30% <0.00%> (+0.04%)
:arrow_up:

server/app/services/program/ProgramDefinition.java
88.03% <0.00%> (+0.05%)
:arrow_up:

...ces/question/types/CurrencyQuestionDefinition.java
66.66% <0.00%> (+6.66%)
:arrow_up:

...ervices/question/types/NameQuestionDefinition.java
71.42% <0.00%> (+7.14%)
:arrow_up:

...ervices/question/types/DateQuestionDefinition.java
76.92% <0.00%> (+7.69%)
:arrow_up:

...rvices/question/types/EmailQuestionDefinition.java
76.92% <0.00%> (+7.69%)
:arrow_up:

...s/question/types/FileUploadQuestionDefinition.java
76.92% <0.00%> (+7.69%)
:arrow_up:

... and 2 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


ZodError during deploy - expected array received undefined

The deployment for the merge of #63 is experiencing the following error causing it to roll back automatically:
[2023-08-24T07:56:52.874Z] [main.js] [info]: Starting app with the following config
{
  "server": {
    "port": 3000,
    "url": "http://<IP_ADDRESS>"
  },
  "logger": {
    "logLevel": "http",
    "outputFormat": "cli"
  },
  "db": {
    "connectionString": "mongodb+srv://mongo:*****@ssi-trust-registry.rww3zgq.mongodb.net/?retryWrites=true&w=majority",
    "name": "trust-registry"
  }
}
[2023-08-24T07:56:52.879Z] [database.js] [info]: Connecting to database...
[2023-08-24T07:56:53.223Z] [database.js] [info]: Connected to database 'trust-registry'
[2023-08-24T07:56:53.251Z] [mongoRepository.js] [info]: Index for schema document 'id' created:
"id_1"
[2023-08-24T07:56:53.270Z] [mongoRepository.js] [info]: Index for subject document 'id' created
"id_1"
[2023-08-24T07:56:53.279Z] [service.js] [info]: Importing schema at index 0
{
  "schemaId": "2NPnMDv5Lh57gVZ3p3SYu3:2:e-KYC:1.0.0",
  "name": "Digital Identity"
}
[2023-08-24T07:56:53.336Z] [service.js] [info]: Schema 2NPnMDv5Lh57gVZ3p3SYu3:2:e-KYC:1.0.0 has been updated
[2023-08-24T07:56:53.337Z] [service.js] [info]: Importing entity 8fa665b6-7fc5-4b0b-baee-6221b1844ec8
{
  "id": "8fa665b6-7fc5-4b0b-baee-6221b1844ec8",
  "name": "Absa",
  "dids": [
    "did:indy:sovrin:2NPnMDv5Lh57gVZ3p3SYu3",
    "did:indy:sovrin:staging:C279iyCR8wtKiPC8o9iPmb"
  ],
  "logo_url": "https://s3.eu-central-1.amazonaws.com/builds.eth.company/absa.svg",
  "domain": "www.absa.africa",
  "role": [
    "issuer"
  ],
  "credentials": [
    "2NPnMDv5Lh57gVZ3p3SYu3:2:e-KYC:1.0.0"
  ]
}
/app/node_modules/zod/lib/types.js:43
                const error = new ZodError_1.ZodError(ctx.common.issues);
                              ^

ZodError: [
  {
    "code": "invalid_type",
    "expected": "array",
    "received": "undefined",
    "path": [
      "dids"
    ],
    "message": "Required"
  }
]
    at get error [as error] (/app/node_modules/zod/lib/types.js:43:31)
    at ZodObject.parse (/app/node_modules/zod/lib/types.js:142:22)
    at Object.<anonymous> (/app/build/entity/mongoRepository.js:44:43)
    at Generator.next (<anonymous>)
    at fulfilled (/app/build/entity/mongoRepository.js:5:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  issues: [
    {
      code: 'invalid_type',
      expected: 'array',
      received: 'undefined',
      path: [ 'dids' ],
      message: 'Required'
    }
  ],
  addIssue: [Function (anonymous)],
  addIssues: [Function (anonymous)],
  errors: [
    {
      code: 'invalid_type',
      expected: 'array',
      received: 'undefined',
      path: [ 'dids' ],
      message: 'Required'
    }
  ]
}

Node.js v18.17.1

Ah, I see, that's because I changed the structure and therefore a validation that's applied for existing entries. Could we just remove the database for now? Later, we'll add some migration scripts to prevent such issues.

I'll reset the DB to zero

I've reset the DB and re-ran the last CD, looks like it's happy again


cassandra: Replace deprecated ubuntu-slim image with debian-base from k8s

What this PR does / why we need it:
Replaces the deprecated ubuntu-slim image with  k8s.gcr.io/debian-base-amd64:0.3.
Also adds a script for the build process to improve the legibility of the process and better error messages.
Release note:

NONE

closes #153

/lgtm
@aledbf Thanks for the change. Looks like this is mostly moving things around. Have you tested it?
Also it appears like you got familiar with this particular cassandra example. Would you like to be listed in OWNERS for the cassandra directory? We currently have nobody to review this adequately and it would be good to have someone.

Thanks for the change. Looks like this is mostly moving things around. Have you tested it?

Yes. The image for this change is aledbf/cassandra:v13

Also it appears like you got familiar with this particular cassandra example. Would you like to be listed in OWNERS for the cassandra directory?

Sure

@ahmetb do you know when the example from kubernetes/kubernetes will be removed?
(https://github.com/kubernetes/kubernetes/pull/60088)

I'm not sure, cc: @sebgoa
The unfortunate part is people are still updating the examples directory in k/k, and they're accepting PRs there.
We need to bring those PRs back here (while preserving commits/authors) and delete it from k/k for good. We're in search of maintainers to execute these stuff, if you're interested in joining as a maintainer to this repo, we’re looking for folks!

The unfortunate part is people are still updating the examples directory in k/k, and they're accepting PRs there.

Is ok to delete the cassandra content from k/k and post the new URL in the README.md?

@aledbf if there are no changes done at k/k which we need to migrate here (i.e. all changes already exist in this repo), yes we can delete from k/k.

Let me know if this image needs to be updated on gcr.io/google-samples (I'm not sure where it's currently hosted).

@ahmetb yes, please update the image

Image gcr.io/google-samples/cassandra:v13 is available. Please try it out and issue updates to https://kubernetes.io/docs/tutorials/stateful-application/cassandra/ (and other places it's used, if any).


Update CI workflow

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

Project coverage is 100.00%. Comparing base (b8d7e3b) to head (e1ffa4c).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #12   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            7         7
  Lines           60        60
  Branches         3         3
=========================================
  Hits            60        60

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


refactor(es6): from node v0.10 to v6.4

change node version
bump dependencies
es6 friendly

Depend : #25

[ ] test réel

I am waiting for real tests?

@neoziro done


error ratio over  time change

Do you want to request a feature or report a bug?
Feature
What did you expect to see?
I know~
Circuit breakers
For example:
NetworkErrorRatio() > 0.5: watch error ratio over 10 second sliding window for a frontend.

I want see  error ratio over  60 second.
what can I do , I don`t know.
How to configure Circuit breakers? thanks.
my used K8S : v1.11.5
traefik  used ：v1.6.6

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: my-k8s-traefik
  namespace: kube-system
  annotations:
    kubernetes.io/ingress.class: traefik
    traefik.backend.circuitbreaker: "NetworkErrorRatio() > 0.5"
spec:
  rules:
  - host: my.k8s.traefik
    http:
      paths:
      - path: /dashboard
        backend:
          serviceName: kubernetes-dashboard
          servicePort: 8443

/kind/question
/area/provider/k8s

/kind/question
/area/provider/k8s

Hi! I'm Træfiker :robot: the bot in charge of communication regulation.
Thanks for your interest in Traefik!
We dedicate the issue tracker to bug reports and feature requests only. My advanced AI tells me this one is neither of them.
I encourage your to seek community support: join our Slack workspace and reach out to us on the #support channel.
Another option is to use Stack Overflow and tag your question traefik.
You can of course double check Traefik's documentation :sweat_smile:


feat: yat deep link handling

draft - WIP
closes https://github.com/shapeshift/web/issues/4604
requires additional web PR (TBD) to handle a /y.at?eid=someyatidgoeshere with associated UI
TODO

[x] determine web route schema including yat eid
[x] scaffold web PR that requires beard oil
[ ] handle webview navigation to web yat route
[ ] test on android simulator
[ ] ship web PR
[ ] testflight iOS w/ ops
[ ] "testflight" android? w/ ops

AFTER MERGING

[ ] build on iOS
[ ] build on android
[ ] submit to stores

blocker - https://github.com/facebook/react-native/issues/36739 bump react-native to 0.70.8 to handle xcode 14.3.1 breaking change

@0xdef1cafe - can you outline the best way for me to manual test this functionality?

@0xean - please see testing video for confidence i've tested this. here's the commands i used
npx uri-scheme open "shapeshift://yat/%F0%9F%A6%8A%F0%9F%9A%80%F0%9F%8C%88" --android
npx uri-scheme open "shapeshift://yat/%F0%9F%A6%8A%F0%9F%9A%80%F0%9F%8C%88" --ios


No Parameter highlighting in VSCode Light/Dark Mode

👓 What did you see?
When using VSCode in light /dark theme mode, the step parameters are not highlighted at all. The highlighting works when using other themes like light+/dark+

✅ What did you expect to see?
The parameter should be highlighted making it easier to identify

📦 Which tool/library version are you using?
Extension Version : 1.2.8
Extension Settings :
{
    "cucumber.features": [
        "cypress/e2e/features/**/*.feature"
    ],
    "cucumber.glue": [
        "cypress/e2e/step_definitions/**/*.ts"
    ]
}

🔬 How could we reproduce it?

Steps to reproduce the behavior:

Install the extension & configure it such that the step definitions are available for the extension to parse the steps
Switch the Visual Studio Theme (Code -> Preferences -> Color Theme ->Light (Visual Studio)

Light Mode (Visual Studio)

Dark Mode (Visual Studio)

📚 Any additional context?

This text was originally generated from a template, then edited by hand. You can modify the template here.

We use the parameter, semantic token type to highlight parameters. It is also referenced in the docs
It appears that some VSCode themes don't have a style for this token type. For example:

Dark (Visual Studio) - no styling of param
Dark+ (default darj) - has styling of param

We need to study the semantic highlight guide and syntax highlight guide more closely to get to the bottom of this I think.
The scope inspector might also help.

I was not getting syntax highlighting in some of my Dark mode color themes and this comment fixed it for me through the addition of this setting:
    "[cucumber]": {
        "editor.semanticHighlighting.enabled": true
    },

Glad this resolved the issue for you @cortexcompiler and appreciate you contributing that mitigation.
Have raised a PR so that the extension enables semantic highlighting by default for gherkin, so modifying configuration depending on colour theme will not be required.
Would you be able to provide the names of some colour themes where you experienced the issued? Would like to test against them to ensure properly resolves the issue in your case. A quick try of the above configuration with 'GitHub Dark' and 'GitHub Light' did not appear to work for me - though the '+' versions of both work without configuration; interested if works for you, and what version of VSCode you are using?

The real issue here is that parameters aren't given proper context highlighting when used in a Scenario Outline, but they do have proper highlighting in a regular scenario. Excuse the screentshot:

The real issue here is that parameters aren't given proper context highlighting when used in a Scenario Outline, but they do have proper highlighting in a regular scenario. Excuse the screentshot:

A small update to this, it's the presence of the Examples section that breaks the parameter context highlighting. Removing Examples made it highlight correctly.

Thanks for highlighting @fitzsimb, and for your interest in the project.
This is marked as being by design as there were open points on how best to handle certain cases and conflicts with Scenario Outlines. Similarly, marking steps as undefined and go to step definition are also presently disabled with outlines; however support for marking undefined steps will be available once we propagate a release of the latest Language Service (v.1.6.0).
Would be great to get your perspective/ideas/thoughts on the below and what you would view as a suitable implementation and any potential issues or conflicts that should be considered (from #90):

Consider this example:
Scenario Outline:
  Given I have <count> cukes in my <container>

  Examples:
    | count | container |
    |     4 | basket    |
    |     7 | bag       |

This becomes two scenarios, each with the following step:

Given I have 4 cukes in my basket
Given I have 7 cukes in my bag

Now, imagine we have two step definitions with the following expressions:

I have 4 cukes in my {word}
I have {int} cukes in my bag

The first step would match the first expression, and the second step would match the second expression. Each match has only a single parameter.
How should we highlight in this case?
I suppose a compromise could be to highlight using matches if there are no <> placeholders, and highlight the <> placeholders otherwise.

Thanks for highlighting @fitzsimb, and for your interest in the project.
This is marked as being by design as there were open points on how best to handle certain cases and conflicts with Scenario Outlines. Similarly, marking steps as undefined and go to step definition are also presently disabled with outlines; however support for marking undefined steps will be available once we propagate a release of the latest Language Service (v.1.6.0).
Would be great to get your perspective/ideas/thoughts on the below and what you would view as a suitable implementation and any potential issues or conflicts that should be considered (from #90):

Consider this example:
Scenario Outline:
  Given I have <count> cukes in my <container>

  Examples:
    | count | container |
    |     4 | basket    |
    |     7 | bag       |

This becomes two scenarios, each with the following step:

Given I have 4 cukes in my basket
Given I have 7 cukes in my bag

Now, imagine we have two step definitions with the following expressions:

I have 4 cukes in my {word}
I have {int} cukes in my bag

The first step would match the first expression, and the second step would match the second expression. Each match has only a single parameter.
How should we highlight in this case?
I suppose a compromise could be to highlight using matches if there are no <> placeholders, and highlight the <> placeholders otherwise.

Hey Kieran-Ryan, I don’t know that I agree with the assertion here. The issue is that normal parameters aren’t being highlighted. If that’s fixed with the latest language model, that would be great.
As for your example, I would have the feature file use a light blue underline on those steps, stating that they match multiple step definitions. Having that feature in general would be great, as I’ve had team members submit new step definitions that cause tests to fail because it created a match conflict.


Pick better GUI

Should we use rust for the front end at all?
Potential options for Rust:

Dioxus
EGUI
Iced

Considerations:

Cross platform
Web and desktop (and maybe even mobile)
Can make good looking buttons (probably needs CSS-like styling)

Picked tauri


Google Calendar API V3 does not work from behind proxy

When tried from behind proxy, it does not work. I don't find any proxy support mentioned in the documentation. Without proxy support, it will be difficult to use from within many organizations where outside access is only via proxy.
Could you please elaborate on it?

Mine was C3 .NET client

Hi Linda/ Eyal, could you please comment on it.

Proxy works for me... eg fiddler2

No, I am not talking about Fiddler which runs on your own machine.
In standard organization setup, proxy settings are provided in Internet Explorer. This proxy server remains common for the while organization. And anybody inside organization gets internet access only after going to through this setting. So Google Calendar V3 API does not work in such case ..as there is no way to provide proxy server settings (which people set in Internet Explorer) in this API.  I think this is an important setting ..should be part of the API offering.

I don't think this issue is only related to Google calendar.  Its probably a limitation to the client library itself.   I have very little experience with this type of proxy server I will have to do a bit of research on this.

Yes, you are right. It just that I came across it while accessing Google calendar.
By the way I was using c# to access these APIs. In c#, you can manipulate global proxy setting by adjusting "System.Net.WebRequest.DefaultWebProxy" variable. I tried to set it properly accordingly to my proxy settings. And then used Google APIs to access calendar. And it worked fine from behind proxy too.
So this can be treated a a work-around and people can still live with it for some time.
But I believe, API itself should provide a way to specify proxy-details and deal with it internally.

Amol-Sapience - I have exactly the same issue and agree with you.  The majority of people working in organisations will have a network where traffic is routed through a Proxy Server!  This was a relatively easy thing to set in V2.3 of the Google Analytics API but there doesn't appear to be any clear way of doing it in V3.0.  I searched and searched and found very little chatter until I came across your workaround.  Thanks for raising this!  The workaround works for me.  I'm updating a C# class library we use with SQL Server SSIS so my options were limited.

Proxy support can also be enabled using app.config; e.g. something like this:
<system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true">
</system.net>

Or an explicit proxy-enabled HttpClientFactory can be provided when creating the client. E.g.
class ProxyHttpClientFactory
{
    public ProxyHttpClientFactory(string proxyUrl)
    {
        _proxyUrl = proxyUrl;
    }
    private string _proxyUrl;
    protected override HttpMessageHandler CreateHandler(CreateHttpClientArgs args)
    {
        var proxy = new WebProxy(_proxyURL, true) { UseDefaultCredentials = true };
        return new WebRequestHandler { UseProxy = true, Proxy = proxy };
    }
}

var proxyUrl = ...;
var client = new CalendarService(new BaseClientService.Initializer
{
    ...
    HttpClientFactory = new ProxyHttpClientFactory(proxyUrl)
});


compatibility with eslint 7.0.0

eslint 7.0.0 got released recently.
Using the latest version of eslint-plugin-import gives the following warning -
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>- 6.x but none is installed. You must install peer dependencies yourself.
some relevant links -
https://eslint.org/blog/2020/05/eslint-v7.0.0-released
https://eslint.org/docs/user-guide/migrating-to-7.0.0 .
it would be useful to get eslint 7.0.0 supported .  tracking issue for the same

PR #1762

Apparently - the changes are already in the latest master for 7.0.0 compatibility.
Can we just have a later release 2.20.3 or similar, to address that compatibility issue ?

Indeed, this is done and only pending a release.


Update workflow, switch from tox.ini to pyproject.toml

CI seemed to be disabled since 3 months ago. Triggering it showed some issues, which are hopefully fixed in this PR.

ping @acomodi @kgugala @mithro


Filter files by SQL content

Fixes #29

Current coverage is 73.60% (diff: 100%)

Merging #30 into master will not change coverage

@@             master        #30   diff @@
==========================================
  Files            10         10
  Lines           341        341
  Methods          53         53
  Messages          0          0
  Branches          0          0
==========================================
  Hits            251        251
  Misses           90         90
  Partials          0          0

Powered by Codecov. Last update 6d9bc62...e76a93f


feat(launcher): Add concurrency limit

Especially services like Browserstack and SauceLabs have limitations on
how many browsers
can be launched at the same time. The new config option concurrency
allows to
specify an upper limit of how many browsers are allowed to run at the
same time.
Ref: https://github.com/karma-runner/karma-sauce-launcher/issues/40
Closes #1465

cc @zzo @maksimr

LGTM

There were the following issues with your Pull Request

Commit: 77b2a8c1b946a49b65af18e81ed5b1b083d2b610
Commits must be in the following format: %{type}(%{scope}): %{description}

Guidelines are available at http://karma-runner.github.io/0.13/dev/git-commit-msg.html

This message was auto-generated by https://gitcop.com

Amazing feature!

@zzo all done :)

lgtm - merge away

SWEEEET! :D This looks awesome! Will be super useful to test the WebRTC Web Applications
Great work!

Excited to finally have this. Thanks!

:beers: thanks! I attempted a similar patch last year but failed to get all the cases working

@Dignifiedquire Any way to have Karma implicitly set the default (unset) value to match the user's max concurrency limit (retrieved via the REST API) rather than Infinity?

I'm unclear what REST api you mean, karma does not have one.

Nevermind, I just noticed this ended up in Karma core rather than karma-sauce-launcher.


pull request for e2e test at 11/15/2016 04:26:26

:x: Validation status: errors

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

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


dataset download

The data download link is invalid from drive, my download failed from dropbox, can you just update the drive link?

+1

Done

Done

Hello, could you update the datasets download link again? The google drive link is invalid, and the download of dropbox link fails.  Look forward to your reply, thanks ！


Duplicate identifier in layout generator for ChevronLeftIcon

Hello, in the generated code for a Layout using chevron icons, there are two different lines that import as ChevronLeftIcon, and nothing that imports as ChevronRightIcon. This causes these layouts to throw errors.
I will submit a pull request shortly.

@vivshaw Have you use the Layout components? What do you think?


After upgrading to version 0.5.1 "common setting powerstate" not available

Hi.
After upgrading to
0.5.1 "select.011100517384019627_bsh_common_setting_powerstate" not available in the dishwasher.
My configuration:
home_connect_alt:
  client_id: !secret home_connect_alt_client_id
  client_secret: !secret home_connect_alt_client_secret
  language: pl

Home Assistant Core 2022.6.7
Home Assistant Supervisor 2022.05.3
Home Assistant OS 8.2

This control has been converted to a switch entity for users who have exactly two states (On/Off).
Verify that you have the switch and then you can delete the select entity.

The switch does the same thing, why do you need the select?

Others have requested this control to be a switch and it does make more sense for an On/Off control to be a switch, not a select.


Translation Support and Modernize Infra

Adds Transifex Integration config
Attempts to find untranslated strings and convert them via script
generates source language map for transifex to pull
Once this MR is merged i would re target transifex at master, this was just for staging and testing

ive added my project infra updates here


Page refers to old nuget packages

The page refers to the Microsoft.Azure.Storage.Queue nuget package. This package has been superseded by Azure.Storage.Queues. Links and references in this page need to be updated.

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

ID: 2449e264-13a7-ecc0-7400-b6d6bed1b029
Version Independent ID: bcd3da61-efe6-4ef5-1c79-4fa78cdf473d
Content: Get started with Azure Queue storage using .NET - Azure Storage
Content Source: articles/storage/queues/storage-dotnet-how-to-use-queues.md
Service: storage
Sub-service: queues
GitHub Login: @mhopkins-msft
Microsoft Alias: mhopkins

Thanks for the feedback! I have assigned the issue to the doc author to update appropriately.

Hi @htoomik,
We are currently in the process of updating all the Azure Storage content to include instructions for using the new v12 libraries. In fact, I'm currently working on this very topic. You should see this updated soon.
Thank you for your feedback!
~ Mark
#please-close


Formatting message with release 4.x?

Hello @tylercd100 ,
With the previous version, I used to format the message using the LERN::setMessage() function.
Is this still supported?
Does not looks to be working for me at the moment.
Cheers.
/S

Got it to work. Just had to make sure that the config option view in config/lern.php was set to null.
...
    'notify'=>[
...
        /**
         * The view file to use
         */
//        'view' => 'exceptions.default',
        'view' => '',
...

Perhaps a quick note on the comment to point this out would be helpful.
Great package @tylercd100, Thanks a lot.
/s

Thank you @sroutier

:+1:
No, thank you for your great package!
Cheers.


Multi-language diffForHumans();

I want to know how is it possible to change the {{ trans('forum::base.posted_at') }} {{ $post->posted }}
I can't find posted in the code but I guess you are using something like Carbon's diffForHumans() function.
I need to set it to another language.
Thanks for your help

Good question - I know Carbon isn't translation friendly, but you might have some luck with jenssegers/laravel-date.

To use it I have to set
Date::setLocale('nl');
Where can I set it?

I found another way to do it.
In laravel 5+ you have to create a new Middleware and add
Carbon::setLocale('en');
just change en with your language.
If you put something like:
    // Check for session override
    if (Session::has('lang'))
    {

$local = Session::get('lang');
Carbon::setLocale($local);
    }

It's possible to give the correct language for each user.


Screen Mirroring from Smartphone on MagicMirror?

Hello,
I search for an Module to ScreenMirroring the Display from a smartphone, like Samsung Galaxy S10 or similar, to an MagicMirror.
I didn`t found something like this, did any one have an Idea?
Mathew
I'm not sure if this is a bug
If you're not sure if it's a real bug or if it's just you, please open a topic on the forum: https://forum.magicmirror.builders/category/15/bug-hunt
I'm having troubles installing or configuring MagicMirror
Problems installing or configuring your MagicMirror? Check out: https://forum.magicmirror.builders/category/10/troubleshooting
I found a bug in the MagicMirror installer
If you are facing an issue or found a bug while trying to install MagicMirror via the installer please report it in the respective GitHub repository:
https://github.com/sdetweil/MagicMirror_scripts
I found a bug in the MagicMirror Docker image
If you are facing an issue or found a bug while running MagicMirror inside a Docker container please create an issue in the GitHub repository of the MagicMirror Docker image:
https://github.com/bastilimbach/docker-MagicMirror

I found a bug in MagicMirror
Please make sure to only submit reproducible issues. You can safely remove everything above the dividing line.
When submitting a new issue, please supply the following information:
Platform: Place your platform here... give us your web browser/Electron version and your hardware (Raspberry Pi 2/3, Windows, Mac, Linux, System V UNIX).
Node Version: Make sure it's version 8 or later.
MagicMirror Version: Please let us now which version of MagicMirror you are running. It can be found in the package.log file.
Description: Provide a detailed description about the issue and include specific details to help us understand the problem. Adding screenshots will help describing the problem.
Steps to Reproduce: List the step by step process to reproduce the issue.
Expected Results: Describe what you expected to see.
Actual Results: Describe what you actually saw.
Configuration: What does the used config.js file look like? Don't forget to remove any sensitive information!
Additional Notes: Provide any other relevant notes not previously mentioned. This is optional.

Maybe you should ask this question in the MagicMirror forums (https://forum.magicmirror.builders/) or search there. Thats a better place for these kind of questions. Here on github mostly technical stuff is discussed / reported.

Thanks alot :)


Add Node.js 10.x builds

Issue
Node.js 10.x entered active LTS today. This PR adds builds to Travis to publish binaries for node 10.
Tasklist

[x] Write code & tests
[x] Update relevant CHANGELOG and/or the README
[ ] Get a review
[ ] Rebase and clean up commits
[ ] Merge & release (see README for release steps)

Relevant parties and issues
Tag people, and other issues here.

Deprecated in favor of: https://github.com/mapbox/route-annotator/pull/55


Field method ADR

Purpose and background context
ADR for discussion of a field method refactor
Includes new or updated dependencies?
NO
Changes expectations for external applications?
NO
What are the relevant tickets?

https://mitlibraries.atlassian.net/browse/TIMX-275

Developer

[x] All new ENV is documented in README
[x] All new ENV has been added to staging and production environments
[x] All related Jira tickets are linked in commit message(s)
[x] Stakeholder approval has been confirmed (or is not needed)

Code Reviewer(s)

[ ] The commit message is clear and follows our guidelines (not just this PR message)
[ ] There are appropriate tests covering any new functionality
[ ] The provided documentation is sufficient for understanding any new functionality introduced
[ ] Any manual tests have been performed and verified
[ ] New dependencies are appropriate or there were no changes

It is not clear why a coveralls error is suddenly tanking CI given that I only updated the ADR but I've made some updates in response to @ghukill's suggestions

It is not clear why a coveralls error is suddenly tanking CI given that I only updated the ADR but I've made some updates in response to @ghukill's suggestions. Edit: Error resolved after a few runs, likely a connection issue

This happened to me the other day as well; just intermittent coveralls hiccups it seems.


Can't bind "shift+2"

Hi there.
So I have several tabs in my webapp and would like to jump between them with shift + numbers keys.
shift+1 would switch to tab 1, shift+2 to tab 2 and so on ...
But for whatever reason shift+2 does not work.
All the other numbers work -  shift+1,  shift+3, ...
Dafuq? Any ideas on this?
I am on a mac with a german layout apple keyboard.
Can someone help?!

Does it happens in any browser? Could be OS specific issue?

What letter or symbol does shift + 2 normally create on your keyboard?
On 23 December 2015 at 15:28, Ismael Santos Kafeltz <
<EMAIL_ADDRESS>wrote:

Does it happens in any browser? Could be OS specific issue?
—
Reply to this email directly or view it on GitHub
https://github.com/ccampbell/mousetrap/issues/321#issuecomment-166894946
.

Hmm you are right: In Firefox shift+2 works like it should. In Chrome and Safari (both up-to-date), shift+2 does not work, while all the other numbers work.
On a german keyboard Shift+2 creates this apostrophe: "

Ok so just fyi: For some reason some combinations can't be bound like they should: Shift+2 does not work in Chrome and Safari - this combo creates a "on a german keyboard. So actually also binding to " does the trick. May be a bug in Mousetrap I don't know but this little workaround works for me! :+1:


[feature]: Availability of UpdateAddHTLC ExtraData Across Restarts

Background
The UpdateAddHTLC message in LND is extended with ExtraData which allows spec upgrades to transmit extra fields via a TLV stream. LND currently stores the extra data associated with a HTLC in our LogUpdates (where we store the full wire message), but not in channeldb.HTLC in our state machine. Understandably so, because there are no TLVs in use that need these fields and storing the full blob in the state machine would be unnecessary bloat.
Use Cases
There are a few upcoming specification proposals that start to use these fields:

Route blinding: a blinding_point is transmitted to peers as an UpdateAddHTLC tlv.
Paid Jamming Countermeasures: any jamming mitigation that requires "proof of work" from a sender before they can add a HTLC (upfront fees / anonymous routing tokens / proof of burn etc) will transmit this value in an UpdateAddHTLC tlv.
Local Reputation: peers that wish to communicate reputation information about a forwarded HTLC to mitigate long-hold jamming would use an UpdateAddHTLC tlv.

Availability of Extra Data
While working on route blinding, we started to take a look at the availability of this data across restarts (since it's not stored in our state machine). Using the terminology outlined in the spec, this section outlines the availability of data at various stages of the HTLC lifecycle and how we can recover it after restart (it at all).
This example walks through the full HTLC lifecycle forwarded from A -> B -> C from the perspective of B.

Incoming HTLC (A -> B)
Pending on the receiver
We have received an UpdateAddHTLC from our remote peer.
On Restart: We will forget the HTLC, because we do not ACKed it, and expect our remote peer to replay it.

In the receiver commitment:
We have received a CommitmentSignature from the remote peer that includes the HTLC.
On Restart: We will forget the HTLC, because we have not ACKed it, and expect our remote peer to replay it.

Irrevocably committed by the receiver:
We have sent a RevokeAndAck to the remote peer that revokes the state without the HTLC.

Our LocalCommitment is persisted in the openChannelBucket with the incoming channeldb.HTLC
The full LogUpdate is stored in the unsignedAckedUpdates bucket.

On Restart:

We will restore the incoming HTLC in our remoteUpdateLog from our local commitment

⚠ The restored HTLC does not have any extra data attached, because it is restored from a channeldb.HTLC which strips those fields.
🔧 Workaround: We can restore this data from our unsignedAckedUpdates (see route blinding example)

In sender commitment
We have sent the remote peer a CommitSignature that includes the incoming HTLC.

LocalCommitment and unsignedAckedUpdates are stored as above.
The CommitDiff for the signed remote commitment is persisted in the openChannelBucket under the commitDIffKey. This diff includes the incoming HTLC stored as a channeldb.HTLC

On Restart: As above, we restore the HTLC to our remoteUpdateLog from our localCommitment. We can also use the workaround described above to restore any additional data attached to the HTLC.

Irrevocably committed by sender
We have received a RevokeAndAck from the remote peer that revokes state without the HTLC.**

The RemoteCommitment is persisted in the openChannelBucket with the incoming channeldb.HTLC
Our commitDiff and unsignedAckedUpdates have been cleared in the openChannelBucket
A LogUpdate for the incoming HTLC has been stores in our forwarding package under fwdPackagesKey

On Restart:

We will restore the incoming HTLC in our remoteUpdateLog
The add for the downstream link will be replayed with any additional data provided, because the forwarding package stores the full LogUpdate

⚠ The restored HTLC on the incoming channel does not have any additional data attached to it, and it can no longer be restored from unsignedAckedUpdates. This is not a problem for forwarding the HTLC, but will become an issue if we want to use the data on HTLC settle or fail.

Outgoing HTLC (B -> C)
Pending on the receiver
We have sent an UpdateAddHTLC to our remote peer.

The HTLC is not yet saved in the state machine for the outgoing channel.
The forwarded htlc's open circuit has been persisted in under the circuitAddKey when the switch forwarded the HTLC to the outgoing link

On Restart:

The incoming link will resolve forwarding packages, reprocessing all remote adds.
The outgoing HTLC will extra data attached because it is restored from a LogUpdate.

In the receiver's commitment
We have sent a CommitmentSignature to the remote peer that includes the HTLC.

The forward is part of the outgoing link's keystones when we update our commitment, so the full circuit is persisted in the keystoneBkt.
We have persisted the pending CommitDiff saved under the commitDiffKey, including a LogUpdate for the added HTLC

On Restart:

The HTLC is still not saved in the outgoing channel's commitment state.
It will not be reforwarded by the incoming link because it has a keystone, so is dropped on forwarding.
We retrieve our pendingRemoteCommitDiff from disk and restorePendingLocalUpdates which restores the HTLC from a LogUpdate to our localUpdateLog
On channel re-establish we will re-transmit the UpdateAddHTLC to the remote peer.

Irrevocably committed by the receiver
We have received a RevokeAndAck from the remote peer that revokes the state without the HTLC.

When we received the revocation, the previous CommitDiff is stored as our new remote commitment state, and the CommitDiff is cleared.
The outgoing HTLC is stored as a channeldb.HTLC on that commitment.
We do not save the HTLC's LogUpdate in our remoteUnsignedLocalUpdates because they are restored from the remote commitment.

On restart:

The outgoing HTLC will be restored to our localUpdateLog from the remote commitment, so no extra data will be present.

⚠ The restored HTLC does not have any extra data attached, because it is restored from a channeldb.HTLC which strips those fields. This is not a problem for forwarding the HTLC, since we have already sent the peer an UpdateAddHTLC, but will be an issue if we want to interact with the data on settle/fail.
From this point onwards, we lose the extra data associated with the HTLC after restart. If you ~like complex switches and you cannot lie~ want to see the details of how I walked through this all, my full notes on the life and times of a HTLC in lnd are here!

Options to Explore

Migrate channeldb.HTLC to a TLV stream, then store specific fields as they come into use in the protocol.
Restore extra data from forwarding packages

Mostly opening this to surface the information - feel free to close immediately!
tl;dr:

We can add forwarding for route blinding with some pretty minimal modifications,
If we need to implement something else that needs UpdateAddHTlC's ExtraData beyond just locking in the HTLC add we're going to need to either populate our channel state from forwarding packages or bite the bullet and do a migration.

Rather than just store the extra data, would think that we'd actually just parse out what we need in a structured manner to store elsewhere. IMO, any items in the extra data (TLV) should be considered required given they're attached to messages that drive the main channel state machine.

would think that we'd actually just parse out what we need in a structured manner

Yeah def, as we start to need specific fields pull them out and save them rather than try to store all the tlvs in all the places.

to store elsewhere.

Meaning create a totally new bucket and just drop what we need in there?

Would have thought this were just part of the onion

The first blinding point is in the onion payload (for the "introductory" node), then relaying nodes receive it in update_add_htlc.

Probably a dump question, but can we ask the peer to send again? I think we do similar things for commitments, that based on the indexes, we may resend the last commitment, might as well filter out a list of htlcs and resend again(or we already do this now? need double check).
If we want to survive a restart, I think we could just save the logs into remoteUnsignedLocalUpdate or unsignedAckedUpdates by extracting the logic used to create them, from RevokeCurrentCommitment and the second part of updating remoteCommitChain.
With the extra data, agree with laolu here that we need a new bucket for it. I think this would be an extra layer on top of lnwallet.

Migrate channeldb.HTLC to a TLV stream, then store specific fields as they come into use in the protocol.

I think it's generally a good idea to use tlv.

Restore extra data from forwarding packages

I think this would be nice to avoid duplicate storage of the same info, but aren't they removed once the forwarding is finished?
Nice docs btw(why I'm not surprised🤓). I also drafted several docs here a while back and plan to change the confusing variable names.

Probably a dump question, but can we ask the peer to send again?

This would need a protocol change for something that's working fine (we're just not storing it), which I don't think we want (+ would ne non-trivial).

If we want to survive a restart, I think we could just save the logs into remoteUnsignedLocalUpdate or unsignedAckedUpdates by extracting the logic used to create them, from RevokeCurrentCommitment and the second part of updating remoteCommitChain.

iirc, both of these buckets are cleared out once we've locked in the new commitments, so once we've locked in the incoming + outgoing commitment we will no longer have access to the extra data? For things like reputation/upfront fees, we'll definitley need that info after that point.

With the extra data, agree with laolu here that we need a new bucket for it. I think this would be an extra layer on top of lnwallet.

If this were considered an acceptable approach, I'd def say that this is the path of least resistance. It seems a little taped together to not store it with channeldb.HTLC (since logically that's where it belongs) but it would make life much easier!

I think this would be nice to avoid duplicate storage of the same info, but aren't they removed once the forwarding is finished?

Yeah, wouldn't be my recommended approach but it would work if desparate.

Nice docs btw(why I'm not surprised🤓). I also drafted several docs here a while back and plan to change the confusing variable names.

❤  same to you! Looks like a study group in the making if ya'll are still into that!

Meaning create a totally new bucket and just drop what we need in there?

I think either the new bucket, or just the migration itself (leaning towarrds the migration). The migration may also be useful in the future for things like PTLCs, that'll require us to store more than just the payment hash per HTLC. The migration here may also be a bit tricky: we use the struct in a few different locations, at times storing something else directly after it within a stream. Ideally we can do the migration in an isolated change, so we can minimize the review surface area to make sure we get things right the first time around.

just the migration itself (leaning towarrds the migration)

Same, feels like it's somewhat inevitable? Better bite the bullet early rather than have a bunch of ancillary buckets that would need to be migrated/accounted for as legacy.

Ideally we can do the migration in an isolated change, so we can minimize the review surface area

def, will probably be quite a heavy migration since we'll need to overhaul every commitment for every channel :(

If we decide to go with the migration path, I think we could generalize the methods created here, where an iterator is provided so the migration could survive from a halt.
FYI will take a deeper look into the blinded path to provide more meaningful feedback here.

How would the migration look in terms of code complexity?
That being said, my feeling as that a new bucket for the extra data is not bad at all. I think that has been done before, and we can just add a subbucket nested under the existing one that hosts the TLV data (and existing HTLCs will just have no data in this bucket).

How would the migration look in terms of code complexity?

Code complexity pretty straightforward IMO, just inline encoding -> TLVs. The concern is more about the volume of data to be migrated - every HTLC, in every commitment, in every channel 😅

That being said, my feeling as that a new bucket for the extra data is not bad at all.

My original feeling was that we might as well bit the bullet since we'll want more flexible structure for PTLCs (eventually). But if we're reticient to do a big migration with it and @Roasbeef is okay with the extra bucket then I'm happy with that way (not something we haven't done before).

Opened up #7710 to demonstrate a nifty workaround for stashing extra data inline with the HTLCs (h/t @Roasbeef for the suggestion).
@yyforyongyu WDTY? I think this hits the nice inbetween of not being too hacky and saving us the trauma of a big migration.
Also looked into storing HTLCs in an extra bucket, but we store a lot of data inline (and in a few places) so it would need to be quite far away from HTLC serialization, so I don't think that's a great direction.

This is now closed by #7710 ?

This is now closed by #7710 ?

Indeed!


UI: Fixed window maximizing over screen boundaries on startup

Close #12784
Use the method overridden in ContainableFrame.java to make sure the boundaries are set correctly.

More generally, do you understand what is going on here and why this fixes it?

More generally, do you understand what is going on here and why this fixes it?

If I am seeing this right, he's counting on the fact that the underlying method in  ContainableFrame.java will always recalculate the maximum size (does this because some JDKs incorrectly maximize over the taskbar.)
If that's the case, could this not just pass in null regardless of MacOS or not, since the overridden method on Frame.java is called and can accept a null value to indicate using the bounds supplied by the system? That would also fix this other issue a user posted about on Macs doing a similar thing (Issue #12711 )

More generally, do you understand what is going on here and why this fixes it?

More generally, do you understand what is going on here and why this fixes it?

The problem seems to be that maximized bounds are set incorrectly to be the ones of the main display even if the frame is on the secondary display. Why this happens and why only at startup I don't know.
The fix only works because the setMaximizedBounds() is overridden in ContainableFrame to ignore the parameter and calculate the maximized bounds correctly.

More generally, do you understand what is going on here and why this fixes it?

If I am seeing this right, he's counting on the fact that the underlying method in ContainableFrame.java will always recalculate the maximum size for non Mac-os clients (does this because some JDKs incorrectly maximize over the taskbar.)
If that's the case, could this not just pass in null regardless of MacOS or not, since the overridden method on Frame.java is called and can accept a null value to indicate using the bounds supplied by the system? That would also fix this other issue a user posted about on Macs doing a similar thing (Issue #12711 )

I was afraid that passing null in OSX would break the fix in ContainableFrame.java so I chose to prevent it with the if statement since I don't have any OSX system to do testing with

I was afraid that passing null in OSX would break the fix in ContainableFrame.java so I chose to prevent it with the if statement since I don't have any OSX system to do testing with

I personally couldn't see why it would, but safer to do that since I don't have one to test on either.

Can  you also test this on the latest launcher (2.1.5) and see if the problem still exists there?

Did some further testing and it seems that ignoring getWindowAreaBounds() in

Can you also test this on the latest launcher (2.1.5) and see if the problem still exists there?

With the 2.1.5 launcher the problem seems to be different.

Close the window while maximized on the secondary display
Next time RuneLite is opened it opens maximized on the main display
When minimize(restore) is clicked the window changes it position to the secondary display

Sorry I haven't been following this, life got in the way and I forgot I'd added this. What happens if you have the window on the secondary display, bigger than the primary display but not maximised, then you close it and reopen? Do you at least have access to resize the window on the topbar or is the client topbar still hidden behind the OSX topbar? I seem to have discovered that there might be a one pixel wide line on the current client where you can actually grab the client, but that's also not really great. If you need me to test a build on an OSX platform, I'm happy to oblige.


Data: project addition by  Harshu467

Add a new project to the list
A ReactJs Web Project of CryptoCurrency which has various features of graphs live data , rankings and many more.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

@priyankarpal  Can you update the level from 1 to level 2 as the project is very big

@priyankarpal Can you update the level from 1 to level 2 as the project is very big

first of all, you're adding projects here :)

@priyankarpal  Please Check my PR , and merge it as soon as possible. Thank You

@priyankarpal  Please Add tags of GSOC and level 1


New package: Tempo v1.0.0

Registering package: Tempo
Repository: https://github.com/JuliaSpaceMissionDesign/Tempo.jl
Created by: @andreapasquale94
Version: v1.0.0
Commit: 0b42ae0aad1273c6ae8b279d2a1ef6d82e65d09c
Reviewed by: @andreapasquale94
Reference: https://github.com/JuliaSpaceMissionDesign/Tempo.jl/commit/0b42ae0aad1273c6ae8b279d2a1ef6d82e65d09c#commitcomment-112067555
Description: Time transformations in Julia.

Hi,
Apparently, there is a package called Nemo with a similar name with respect to this (Tempo).  This is a package for astronomical time transformations completely developed in Julia with several tests against state-of-art transformation libraries (at the moment ERFA, soon GODOT and OREKIT).
Here Tempo is the Latin name for time.
Therefore would be very appreciated if the pull request is accepted with the current package similarity issue.


Several missing translations in Finnish Localization in Toolbar

Tested versions

Reproducable in v4.3 Stable windows version

System information
Windows 11, Desktop PC, Ryzen 7 4800h, RTX 3050Ti
Issue description
Projects Tab:

"Project Settings"  should be "Projektinhallinta" or "Projektiasetukset"

Debug Tab should be called "Virheenjäljitys"

Under debug tab "Keep Debug Server Open" should be "Pidä virheenjäljitys palvelinta auki"

Under debug tab "Customize run instances" should be "Muokkaa suoritus instansseja"

Under "Editori/Editorin ulkoasu" there is "Delete Layout" which should be "Poista asettelu" and "Add Layout" should be "Lisää asettelu"

Under "Ohje" there is "Search Help" which should be "Etsi apua" and "About Godot" should be "Lisää Godotista"

There may be more, but kept it simple by only including toolbar. This issue was made for educational purposes in a testing course.
Steps to reproduce

Install v4.3 Stable windows version
Create new project
Set Editor language to FI
View toolbar for issues described in the Issue description

Minimal reproduction project (MRP)
testproject.zip

Translation is done by community members, specifically on Weblate platform: https://hosted.weblate.org/projects/godot-engine/godot/
And it seems that Finnish is around ~61% done https://hosted.weblate.org/projects/godot-engine/godot/fi/
If you can and want to, you could help with translation there. (I think you could use your GitHub profile to sign-in)

Translation is done by community members, specifically on Weblate platform: https://hosted.weblate.org/projects/godot-engine/godot/ And it seems that Finnish is around ~61% done https://hosted.weblate.org/projects/godot-engine/godot/fi/ If you can and want to, you could help with translation there. (I think you could use your GitHub profile to sign-in)

Good to know! Thank you!

Closing as per the above, if you have issues with this again please comment here and this can be reopened.


Deploy to Heroku

Getting error messages, for tomorrow
2015-04-30T03:24:03.136010+00:00 app[web.1]: MEAN.JS application started on port 3647
2015-04-30T03:24:03.138887+00:00 app[web.1]: Error: failed to connect to [localhost:27017]
2015-04-30T03:24:03.138575+00:00 app[web.1]: Could not connect to MongoDB!


Synthetic blurring

Hi,
Thank you for interesting paper.
Can you provide the code for applying psf? Also, how long did it take to generate a single dp pair.

Hello there,
Thanks for your interest in this work.
All the codes including the one of applying PSF will be released at once. We expect this to be soon.
Regarding the second question, we are able to generate a dp pair in less than 4s on Intel Core i7-6700 CPU.
Best,
Abdullah


irmin-pack-tools: Add a printer for index & a readme

This PR add a readme to the irmin-pack-tools folder and a new tool; ppidx:

The readme contains simple informations on how to use the tools of irmin-pack-tools.
ppidx aims to give a pretty printer for the informations stored in the index of a store

Codecov Report

Merging #2214 (fff28b6) into main (ce09bb7) will increase coverage by 0.05%.
The diff coverage is 68.75%.

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

: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
@@            Coverage Diff             @@
##             main    #2214      +/-   ##
==========================================
+ Coverage   68.01%   68.07%   +0.05%
==========================================
  Files         135      135
  Lines       16472    16458      -14
==========================================
  Hits        11203    11203
+ Misses       5269     5255      -14

Impacted Files
Coverage Δ

src/irmin-pack/unix/dispatcher.ml
75.40% <56.52%> (+12.58%)
:arrow_up:

src/irmin-pack/unix/chunked_suffix.ml
86.08% <100.00%> (+0.12%)
:arrow_up:

src/irmin-pack/unix/lower.ml
62.04% <100.00%> (+0.27%)
:arrow_up:

src/irmin-pack/unix/pack_store.ml
79.32% <100.00%> (ø)

src/irmin-pack/unix/sparse_file.ml
79.16% <100.00%> (+0.17%)
:arrow_up:

src/irmin-pack/unix/traverse_pack_file.ml
68.82% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Add com.snowplowanalytics.mobile/application/jsonschema/1 0 0

Closing in favor of https://github.com/snowplow/iglu-central/pull/847


Revise architecture diagram; update readme branding

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/do-doc-build


Exception has occurred: ModuleNotFoundError

Exception has occurred: ModuleNotFoundError
No module named 'cvzone'
File "C:\Users\Bella\Desktop\sign language\venv\test'.py", line 1, in
from cvzone.HandTrackingModule import HandDetector
hi! i have already installed cvzone and restarted my laptop, how can I fix this error?
from cvzone.HandTrackingModule import HandDetector
import cv2
cap = cv2.VideoCapture(0)
detector = HandDetector(detectionCon=0.8, maxHands=2)
while True:
# Get image frame
success, img = cap.read()
# Find the hand and its landmarks
hands, img = detector.findHands(img)  # with draw
# hands = detector.findHands(img, draw=False)  # without draw
if hands:
    # Hand 1
    hand1 = hands[0]
    lmList1 = hand1["lmList"]  # List of 21 Landmark points
    bbox1 = hand1["bbox"]  # Bounding box info x,y,w,h
    centerPoint1 = hand1['center']  # center of the hand cx,cy
    handType1 = hand1["type"]  # Handtype Left or Right

    fingers1 = detector.fingersUp(hand1)

    if len(hands) == 2:
        # Hand 2
        hand2 = hands[1]
        lmList2 = hand2["lmList"]  # List of 21 Landmark points
        bbox2 = hand2["bbox"]  # Bounding box info x,y,w,h
        centerPoint2 = hand2['center']  # center of the hand cx,cy
        handType2 = hand2["type"]  # Hand Type "Left" or "Right"

        fingers2 = detector.fingersUp(hand2)

        # Find Distance between two Landmarks. Could be same hand or different hands
        length, info, img = detector.findDistance(lmList1[8], lmList2[8], img)  # with draw
        # length, info = detector.findDistance(lmList1[8], lmList2[8])  # with draw
# Display
cv2.imshow("Image", img)
cv2.waitKey(1)

cap.release()
cv2.destroyAllWindows()
I got the code from the examples here

I hav trick for it install cvzone 1.5.4 and msvc-runtime

If u r looking for newer version sorry i can't help there I'm still trying to find a solution for it


request: Bump package-lock.json version too

Is there an existing issue or pull request for this?

[X] I have searched the existing issues and pull requests

Feature description
Currently, only the version in package.json is bumped, package-lock.json being ignored.
Desired solution
Bump the version contained in package-lock.json too.
Alternatives considered
Skip git tagging, update and stage the lock file, amend the commit, and manually tag the new commit, but this is not feasible as a repetitive task.
Additional context
No response

This should be solved by setting the --install (or install: true in the config file) flag as it will run npm install after bumping.

Thanks, I missed that setting. Great package by the way!