Remember last used dataset

After the program has been started and a dataset successfully imported and made active, the program should remember what dataset was last active and on the next startup automatically activate that dataset and display the choice in the plot status display.
This is PARTICULARLY useful if you have only imported ONE dataset. Why should I have to pick as active the only one there is?
Although the more general case is also true.

ok, more db changes :)

want me to do a plot on start?

ok, I added a replete of the last dataset


Updates to RKTableController from recent GateGuru client work

Misc updates

I think the way you and @jeffarena have handled optional deselection of table cells is more elegant and flexible than I'd put into the RKTVC branch in the RK repo. I'd set it as a parameter on the tableviewcontroller. But doing it based off of cell mappings will provide much more flexibility for mixed-use cells. Nice work.
Sent from my iPhone.


Error while trying to execute

><EMAIL_ADDRESS>autostake
> NODE_OPTIONS=--openssl-legacy-provider node scripts/autostake.mjs

node:internal/errors:465
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'compare-versions' imported from /usr/src/app/src/utils/Chain.mjs
    at new NodeError (node:internal/errors:372:5)
    at packageResolve (node:internal/modules/esm/resolve:908:9)
    at moduleResolve (node:internal/modules/esm/resolve:957:20)
    at defaultResolve (node:internal/modules/esm/resolve:1173:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:604:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:318:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
    at link (node:internal/modules/esm/module_job:78:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v17.9.1
exit code: 1

You need to run npm install after updating (with docker-compose if applicable). Please confirm that solves the issue.

You need to run npm install after updating (with docker-compose if applicable). Please confirm that solves the issue.

Entering inside the container and running it seems to have solved the issue, but as I'm using the docker version, I would expect it to be executed automatically on container build?
Thanks,

It needs to be run directly in addition to the docker build. Check the update instructions in the README for the exact commands. NPM is a bit awkward with docker-compose.


SQL Assessment display name and description update

rename SQL Server Extension to SQL Extension. Fixing display name and description.

Coverage remained the same at 36.299% when pulling 7916d12305f4fba650615b8792e72a0de6a39e83 on asmtDisplayName into b3a01fcf77912090c82206c05b50d4a452450d35 on main.


Add StaticVariableDeclare

I missed this in the other class implementations.

Not yet in JavaScript!
https://github.com/tc39/proposal-class-fields


Add config to disable registration email verification

For testing, it would be helpful if we could spin up Authify without the user needing to verify their registration in their email.

This was fully addressed in #29.


MeasurementLink Python tests raise DeprecationWarning with Python 3.12

Bug Report
The MeasurementLink Python tests raise DeprecationWarning with Python 3.12. Most of these are due to dependencies but the pathlib one is not.
Repro or Code Sample
Install Python 3.12 and run tests.
Expected Behavior
No warnings.
Current Behavior
================================================== warnings summary ===================================================
<frozen importlib._bootstrap>:488
  <frozen importlib._bootstrap>:488: DeprecationWarning: Type google._upb._message.MessageMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.

<frozen importlib._bootstrap>:488
  <frozen importlib._bootstrap>:488: DeprecationWarning: Type google._upb._message.ScalarMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.

.venv\Lib\site-packages\google\protobuf\internal\well_known_types.py:93
  D:\dev\measurementlink-python\.venv\Lib\site-packages\google\protobuf\internal\well_known_types.py:93: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
    _EPOCH_DATETIME_NAIVE = datetime.datetime.utcfromtimestamp(0)

tests/acceptance/test_logging.py: 8 warnings
tests/acceptance/test_measurement_service.py: 9 warnings
tests/acceptance/test_session_management.py: 151 warnings
tests/acceptance/test_streaming_data_measurement.py: 2 warnings
tests/acceptance/test_yield_vs_return.py: 2 warnings
tests/integration/test_service_manager.py: 5 warnings
  D:\dev\measurementlink-python\.venv\Lib\site-packages\grpc\_channel.py:1125: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    state.rpc_start_time = datetime.utcnow()

tests/acceptance/test_session_management.py: 188 warnings
tests/acceptance/test_streaming_data_measurement.py: 14 warnings
tests/acceptance/test_yield_vs_return.py: 3 warnings
tests/integration/test_service_manager.py: 5 warnings
  D:\dev\measurementlink-python\.venv\Lib\site-packages\grpc\_channel.py:226: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    state.rpc_end_time = datetime.utcnow()
tests/acceptance/test_measurement_service.py: 5 warnings
tests/acceptance/test_session_management.py: 37 warnings
tests/acceptance/test_streaming_data_measurement.py: 12 warnings
tests/acceptance/test_yield_vs_return.py: 1 warning
  D:\dev\measurementlink-python\.venv\Lib\site-packages\grpc\_channel.py:1356: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    state.rpc_start_time = datetime.utcnow()

tests/unit/test_discovery_client.py::test___key_file_exist_after_poll___start_discovery_service___discovery_service_started
  D:\dev\measurementlink-python\ni_measurementlink_service\_internal\discovery_client.py:328: DeprecationWarning: pathlib.Path.__enter__() is deprecated and scheduled for removal in Python 3.13; Path objects as a context manager is a no-op
    with _open_key_file(str(key_file_path)) as _:

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================= 303 passed, 470 warnings in 55.18s ==========================================

Your Environment

OS & Device: Windows
ni-measurementlink-service version: 1.3 main
MeasurementLink version: N/A
Python version: 3.12.0

AB#2540750

tests/unit/test_discovery_client.py::test___key_file_exist_after_poll___start_discovery_service___discovery_service_started
  D:\dev\measurementlink-python\ni_measurementlink_service\_internal\discovery_client.py:328: DeprecationWarning: pathlib.Path.__enter__() is deprecated and scheduled for removal in Python 3.13; Path objects as a context manager is a no-op
    with _open_key_file(str(key_file_path)) as _:

I'm not sure why this warns about pathlib. This code uses os.fdopen, so it should be calling __enter__ on a TextIO or similar file object.

tests/unit/test_discovery_client.py::test___key_file_exist_after_poll___start_discovery_service___discovery_service_started
  D:\dev\measurementlink-python\ni_measurementlink_service\_internal\discovery_client.py:328: DeprecationWarning: pathlib.Path.__enter__() is deprecated and scheduled for removal in Python 3.13; Path objects as a context manager is a no-op
    with _open_key_file(str(key_file_path)) as _:

I'm not sure why this warns about pathlib. This code uses os.fdopen, so it should be calling __enter__ on a TextIO or similar file object.

That's right, #514 fixes this issue.

Attaching the issues of the other DeprecationWarnings reported by their respective dependencies below for the purpose of completion:

DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Type google._upb._message.MessageMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.
DeprecationWarning: Type google._upb._message.ScalarMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.


todo

[ ] modules

[ ] SmoothLDDTLoss
[ ] WeightedRigidAlign
[ ] ExpressCoordinatesInFrame
[ ] ComputeAlignmentError
[ ] CentreRandomAugmentation

[ ] miscellaneous

[ ] f_tokenbond embedding to pairwise init (default to one single chain for starters if not passed in)
[ ] sample without replacement in MSAModule
[ ] make sure diffusion loss accounts for mask of nucleic acid / ligand + bond loss during fine tuning
[ ] take care of normalization and unnormalization of atomic coordinates
[ ] return the entire loss breakdown for logging in eventual trainer
[ ] (optional) packed atom representation
[ ] atom transformer attention bias needs to be calculated efficiently in the Alphafold3 module, use asserts to make sure shape is correct within local_attn fn

[ ] training

[ ] tbd lightning or accelerate - please vote for your preferred training framework in the discord

(b, n


How to reproduce the 'base-verb' experiments

Hi, thank you for your nice work:)
I'm interested in the ablation study about 'base-verb' setting.
Can I get a command or code for the 'base-verb' experiment to reproduce the ablation study reported in your paper?
Also, I'm curious about how did you make text embedding for the verb classifier.
Thanks!

Sorry for the latter reply; due to some significant deadlines~
We will update the repo with this setting soon (today or tomorrow).

Taking #21 as the reference.


Switchscythe is missing modular trait (and couldn't be handled even if it didn't)

The current solution for handling the auxiliary action for the modular trait is missing the ability to swap not just damage types, but various traits as well, despite both the trait itself and an item making it clear that it's not just for swapping damage types.

It's planned.


Add: Bot initialization

Write the main function of the bot. The main function should do the following:

Create a new Discord session using the provided bot token.
Register a function as callback for MessageCreate events.
Open a websocket connection to Discord and begin listening.
Wait until CTRL-C or other term signal is received.
Close the websocket gracefully.

When the bot is running, it must print The bot is now online!
Refer to this article (be sure not to implement more than what was specified in this issue!)

I got it


USHIFT-2263: Add env var driven origin test list

Which issue(s) this PR addresses:

Closes #

/lgtm


Add support for nested resources in function generator

Add support for create nested resources using function generator:
curl -X GET /users/:sub/orgs

Resolved in #20


Netopeer crashing during interface creation

Hi,
I tried to perform <edit-config> using the xml in the file attached
int_edit.txt
and the netopeer crashes when i do so. Seem to be getting a memory allocation failure and segmentation fault. kindly refer the log given below.
[1970/01/05 20:30:18.683209, 1] ssh_server_connection_callback:  SSH client banner: SSH-2.0-paramiko_1.16.0
[1970/01/05 20:30:18.683512, 1] ssh_analyze_banner:  Analyzing banner: SSH-2.0-paramiko_1.16.0
[1970/01/05 20:30:18.929648, 2] ssh_packet_newkeys:  Received SSH_MSG_NEWKEYS
netopeer2-server[14549]: Received an SSH message "request-service" of subtype "ssh-userauth".
netopeer2-server[14549]: Received an SSH message "request-auth" of subtype "password".
netopeer2-server[14549]: User "root" authenticated.
netopeer2-server[14549]: Received an SSH message "request-channel-open" of subtype "session".
netopeer2-server[14549]: Received an SSH message "request-channel" of subtype "subsystem".
[1970/01/05 20:30:18.992439, 2] grow_window:  growing window (channel 43:0) to 1280000 bytes
netopeer2-server[14549]: Resolving unresolved data nodes and their constraints...
netopeer2-server[14549]: All data nodes and constraints resolved.
netopeer2-server[14549]: Resolving unresolved data nodes and their constraints...
netopeer2-server[14549]: All data nodes and constraints resolved.
netopeer2-server[14549]: Resolving unresolved data nodes and their constraints...
netopeer2-server[14549]: All data nodes and constraints resolved.
netopeer2-server[14549]: Memory allocation failed (/home/mkarthig/repo/mkarthig/mainstream/sw/y/build/netopeer2/Netopeer2-master/server/operations.c:221)
Segmentation fault, backtrace:
./netopeer2-server(signal_handler+0xd0)[0x10004100]
[0x7fff7018]
/lib32-fp/libc.so.6(strlen+0x5e)[0x76b767be]
/lib32-fp/libc.so.6(strdup+0x2c)[0x76b7637c]
/usr/lib32-fp/libsysrepo.so(+0x4b4d8)[0x76cd14d8]
/usr/lib32-fp/libsysrepo.so(sr_dup_val_t_to_gpb+0x500)[0x76cd1c9c]
/usr/lib32-fp/libsysrepo.so(sr_set_item+0x790)[0x76dc1178]
./netopeer2-server(op_editconfig+0xdb0)[0x1000d94c]
/usr/lib32-fp/libnetconf2.so.0.7(+0x1fa78)[0x76e6da78]
/usr/lib32-fp/libnetconf2.so.0.7(nc_ps_poll+0xda8)[0x76e6e954]
./netopeer2-server(process_loop+0x78)[0x10005268]
/lib32-fp/libpthread.so.0(+0x78f8)[0x76fc58f8]
/lib32-fp/libc.so.6(+0xe974c)[0x76bd974c]

Thanks

Hi,
this is almost certainly caused by a major issue in libyang master branch that was fixed in devel. We are hoping that we can merge libyang in the upcoming days despite the unfortunate situation with sysrepo (but we are not sure yet), so my best advice at the moment is to try waiting for a few days.
Regards,
Michal

ok thanks


@ApiModelProperty required field seems to get ignored

We noticed that the models in Swagger UI is always showing optional behind the datatype;
Model {
       variable0 (string, optional),
       variable1 (string, optional),
       variable2 (string, optional),
       variable3 (integer, optional)
}

Our model looks like this;
@ApiModel(value = "Model", description = "Model description")
public class Model {
       @ApiModelProperty(value = "variable0", dataType = "java.lang.String", required = true)
       private String variable0;
       @ApiModelProperty(value = "variable1", dataType = "java.lang.String", required = true)
       private String variable1;
       //required not set because default = false
       @ApiModelProperty(value = "variable2", dataType = "java.lang.String")
       private String variable2;
       @ApiModelProperty(value = "variable3", dataType = "java.lang.Integer", required = true)
       private Integer variable3;
...
}

The json that gets returned from api-docs/my-controller;
{
  "apiVersion" : "1.0",
  "swaggerVersion" : "1.2",
  "basePath" : "http://localhost/api-docs",
  "resourcePath" : "/my-controller",
  "produces" : [ "application/json" ],
  "consumes" : [ "application/json" ],
  "apis" : [ {
    "path" : "/model",
    "description" : "description",
    "operations" : [ {
      "method" : "POST",
      "summary" : "Create Models",
      "notes" : "This endpoint allows the creation of Models",
      "type" : "integer",
      "format" : "int64",
      "nickname" : "createModel",
      "produces" : [ "application/json" ],
      "consumes" : [ "application/json" ],
      "parameters" : [ {
        "name" : "model",
        "description" : "Well-formed Model",
        "defaultValue" : "",
        "required" : true,
        "type" : "Model",
        "paramType" : "body"
      } ],
      "responseMessages" : [ {
        "code" : 401,
        "message" : "Authorization failed"
      }, {
        "code" : 500,
        "message" : "Server error"
      }, {
        "code" : 503,
        "message" : "Server temporary error"
      } ],
      "deprecated" : "false"
    } ]
  } ],
 "models" : {
    "Model" : {
      "id" : "Model",
      "description" : "",
      "extends" : "",
      "properties" : {
        "description" : {
          "type" : "string"
        },
        "variable0" : {
          "type" : "string"
        },
        "variable1" : {
          "type" : "string"
        },
        "variable2" : {
          "type" : "string"
        },
        "variable3" : {
          "type" : "integer",
          "format" : "int32"
        }
      }
    }
...

As can be seen, the json returned is lacking any kind of field to show that the fields in the model are required. However it does show the "required" field we have defined in the method in our controller.
Now this is quite a blocker for us as some values truly are required and we would love to use this in our swagger but can't as of now. We were discussing if this was a problem caused by swagger-springmvc or by swagger-core but we are not sure which one it is.
Any help would be very much appreciated!

Hi All,
I'm using swagger-jersey2-jaxrs 1.5.10 with jersey2 and i have a problem with models documentation (jaxrs-raml-maven-plugin 1.3.4).
It seems that sawgger only scans the primitives and ignores both Objects and ApiModelProperty annotations.
Could you please help ?
Thanks in advance

@ferjanim Please don't cross post (that too in the wrong github project)


[5.7] Support opening multiple workspaces in a single sourcekit-lsp instance

Cherry-pick https://github.com/apple/sourcekit-lsp/pull/473 to release/5.7

rdar://89083082 [SR-15877]

@swift-ci Please test


org-kanban/shift to support up/down

I'm not sure if I missed it, but does org-kanban support moving tasks up/down in the various columns. This is nice to move the most NB things to the top to next get to them.

hi @divansantana,
no ... at the moment the only interaction is in changing the state of a todo item in the table.
i am sure this could be done, but changing the underlying org document in that way e.g. using org-move-subtree-up might have more severe side effects then i am currently up for :)
one of the problems might be, that the todos in the table are not necessarily on the same level, and then moving up down might not lead to unexpected behavior.
one could argue, that this is the "problem" of the user then ...
the next few weeks i do not have time to look into this, but in one, two months i could come back to this. i could look at a pull request though.

Thanks @gizmomogwai . I couldn't help with a PR unfortunately.
I do understand the concern with this though. Still generally using graphical kanban boards, one could put the most nb items at the top to prioritize them. :thinking:

i still think the idea is very good ...
perhaps a "manual" solution would be interesting ... e.g. key to jump to the TODO, then use org modes mechanisms to change the prio (normally i think org-mode has also a prio (A-C by default)) or the order of the thing, and then a key to jump back and update the table. but thats not as natural as shift-up or something ... would also be cool to have either wasd or vim keybindings for that.

@gizmomogwai If one could set a priority on the task and have the kanban board reflect that, that would be great!

ok .. if you have a chance, you can give the current version a try.
i added a subtree up/down to the org-kanban/shift command.
there is also org-kanban/move-subtree-up and org-kanban/move-subtree-down.
org-kanban/shift does not move by default anymore.


last mile for traefik dns challenge

@kevinjqiu I had some time on my hands today, so here's a helping hand getting https://github.com/kubernetes/charts/pull/1299 over the finish line.
I tested this with Azure as the DNS provider. It might not be a bad idea to validate these changes with your own DNS provider.
Note the Traefik version bump is required to get support for the [acme.dnsChallenge] section that replaces the old / deprecated way of configuring ACME to use the DNS challenge.

@krancour Thanks for the help! I appreciate it.


Custom controller action without re-defining default operations

I have the need for a custom operation. However, it seems that I need to re-define default operations in the service configuration:
resource.partmeasurementunit.item_operation.custom_put:
        class:     "Dunglas\ApiBundle\Api\Operation\Operation"
        public:    false
        factory:   [<EMAIL_ADDRESS>"createItemOperation" ]
        arguments:
             -<EMAIL_ADDRESS>             # Resource
             -    [ "PUT" ]                 # Methods
             -    "/part_measurement_units/{id}/setDefault"           # Path
             -    "PartKeeprPartBundle:PartMeasurementUnit:setDefault"         # Controller
             -    "my_custom_route"                 # Route name
             -    # Context (will be present in Hydra documentation)
                  "@type":       "hydra:Operation"
                  "hydra:title": "A custom operation"
                  "returns":     "xmls:string"
    resource.partmeasurementunit.item_operation.get:
        class:     "Dunglas\ApiBundle\Api\Operation\Operation"
        public:    false
        factory:   [<EMAIL_ADDRESS>"createItemOperation" ]
        arguments: [<EMAIL_ADDRESS>"GET" ]

    resource.partmeasurementunit.item_operation.put:
        class:     "Dunglas\ApiBundle\Api\Operation\Operation"
        public:    false
        factory:   [<EMAIL_ADDRESS>"createItemOperation" ]
        arguments: [<EMAIL_ADDRESS>"PUT" ]

    resource.partmeasurementunit:
        parent:    "api.resource"
        arguments: [ "PartKeepr\\PartBundle\\Entity\\PartMeasurementUnit" ]
        tags:      [ { name: "api.resource" } ]
        calls:
            -       method:     "initItemOperations"
                    arguments: [ [<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>] ]
            -       method:    "initFilters"
                    arguments: [ [<EMAIL_ADDRESS>] ]
            -       method:    "initNormalizationContext"
                    arguments: [ { groups: [ "default" ] } ]
            -       method:    "initDenormalizationContext"
                    arguments:
                        - { groups: [ "default" ] }

In the service definition above, I had to re-define resource.partmeasurementunit.item_operation.get and resource.partmeasurementunit.item_operation.put to make it work. Is there any way to omit that and just define additional operations?

Indeed all operations must be defined in that case (any suggestion to improve that are welcome).
Creating a CompilerPass to automatize the building process is a solution.

@dunglas this is due to having to pass by initItemOperations and not having an addItemOperation. At the moment, DunglasApiBundle\Api\Resource has:

initCollectionOperations()
initItemOperations()
initFilters()
initNormalizationContext ()
initDenormalizationContext ()
initValidationGroups ()
initShortName()

And no adder. Maybe adding an adder for the initCollectionOperations() and initItemOperations() would be enough. It would be weird to have only two adders but any use case common enough to require another adder, unlike adding a custom operation.

adders will be a step in the bad direction (Resource are kind of immutable object). And it will not help because operations are initialized in the ResourceCompilerPass.
I was thinking to something like another tag such as <tag name="api.keep_operations" />.

Thing is that we can't replace the ResourceCompilerPass so we'd have to remove ressources to create them again with new Operations on a custom ResourcePass (please stop me if I'm wrong). This is a lot of overload to add a custom route on every resources.
I thought about addCollectionOperations or addItemOperations but as @dunglas said those are immutable objects, once they are init they can't be modified.
Would love to see a neat solution to this issue!

haha yeah I guess the add is an ugly workaround, but I'm sure @dunglas will find this pretty neat solution your talking about ;)

As soon as your own CompilerPass is executed before the ResourceCompilerPass from the bundle, the one from the bundle will do nothing.

As soon as your own CompilerPass is executed before the ResourceCompilerPass from the bundle, the one from the bundle will do nothing.

It'll throw :
  [Symfony\Component\Config\Exception\FileLoaderLoadException]
  A Resource class already exists for "Acme\UserBundle\Entity\User" in .

Do you people have a workaround or solution yet? My config.yml is becoming pretty messy ;)
Yes, I'll refactor the definition into their own bundles, but I wanted to wait until a solution is found to have less work.

I'm working on something but it's not ready yet.

In the meantime @felicitus you can always put the declarations for DunglasApiBundle in a separate file


ocr processor sample code doesnt work

code given here does not work
https://github.com/GoogleCloudPlatform/document-ai-samples/tree/main/pdf-embedded-text
exception thrown

processor_version = "pretrained-ocr-v2.0-2023-06-02" , it says does not support pdf
processor_version = "pretrained-ocr-v1.2-2022-11-10"  , it says Premium OCR models and features can only be enabled through OCR 2.0+ processors.
processor_version = "pretrained-ocr-v1.1-2022-09-12", it says Premium OCR models and features can only be enabled through OCR 2.0+ processors.

the location is "us"
do you need my ocr processor id

The issue was that the ProcessOptions object had some settings that have since been made Premium OCR Add ons or have changed their process.
See https://cloud.google.com/document-ai/docs/process-documents-ocr


Define trait TxType

Describe the feature
Define trait reth_primitives_traits::TxType. This trait should implement behaviour of reth_primitives::TxType and hence  doesn't seem to need any trait methods. It should take as super traits all the From/TryFrom impls for TxType (and those From<TxType>/TryFrom<TxType> impls that translate to Into<T>/TryInto<T> impls). Additionally it should take as super traits all the trait bounds on `alloy_consensus::Network::TxType
https://github.com/alloy-rs/alloy/blob/48be08ff0bea3ce49f09ac2d60aaaa3c850dda0b/crates/network/src/lib.rs#L39-L54
Additional context
No response

assign me


[Session] Fix session hydration considering genesis has block height 1

Objective
Correctly hydrate Session  by calculating Session{Start,End}BlockHeight while taking into consideration that the genesis block has a height of 1 instead of 0
Origin Document
The current code assumes that the genesis block has a height of 0 while it is 1

Goals

Rewrite the functions that are calculating Session{Start,End}BlockHeights considering genesis has the height 1
Add a check in Keeper.GetSession to verify that the requested height is always >= 1
Rewrite the tests that use height 0 in their assertions
Make sure all tests are passing

Deliverables

[ ] A single PR addressing the genesis block height off-by-one issue.

General deliverables

[ ] Comments: Add/update TODOs and comments alongside the source code so it is easier to follow.
[ ] Testing: Add new tests (unit and/or E2E) to the test suite.

Creator: @red-0ne
Co-Owners: @Olshansk

tl;dr

height=0: genesis.json file
height=1: block with genesis.json as its parent.

To provide additional context here. If we google it, it points to a dead link showing:

However, the BNB chain has a live link with the same:

In addition, the Tendermint Header documentation shows:

Since the Cosmos SDK is just a proxy into CometBFT, I went and looked into how Comet comes the header height which led me to this line in cometbft/blob/main/rpc/core/blocks.go:
// Commit gets block commit at a given height.
// If no height is provided, it will fetch the commit for the latest block.
// More: https://docs.cometbft.com/main/rpc/#/Info/commit
func (env *Environment) Commit(_ *rpctypes.Context, heightPtr *int64) (*ctypes.ResultCommit, error) {
	height, err := env.getHeight(env.BlockStore.Height(), heightPtr)
	if err != nil {
		return nil, err
	}

	blockMeta := env.BlockStore.LoadBlockMeta(height)
	if blockMeta == nil {
		return nil, nil
	}
	header := blockMeta.Header

	// If the next block has not been committed yet,
	// use a non-canonical commit
	if height == env.BlockStore.Height() {
		commit := env.BlockStore.LoadSeenCommit(height)
		return ctypes.NewResultCommit(&header, commit, false), nil
	}

	// Return the canonical commit (comes from the block at height+1)
	commit := env.BlockStore.LoadBlockCommit(height)
	return ctypes.NewResultCommit(&header, commit, true), nil
}

The header in NewResultCommit is what ultimately is passed out to Cosmos.
The comment says: commit for the latest block..
If the next block hasn't been committed, they use the last seen commit regardless: env.BlockStore.LoadSeenCommit(height).
In either case, we see that it always has to be a committed block, which is not 0 (i.e. the genesis file itself) and may be 1 using the genesis file as a parent.


How to dynamically change solo

Hi team,
Thanks for a very good tool/framework.
I wonder is there any way to change solo on runtime? I have been researching but I didn't figure out yet.

Setting up state machine fixed this :D


Setting WidthSize to Half reduces the div to a quarter width

I have a box component and inside are two boxes.  One is for the patient information and the other is for the date of the notification.  I was trying to get the patient information to only take up half of the available area in order to fix a wrapping problem with the date but noticed that setting the width to half actually reduced the content of the inner div to half of the whole div.  Setting width to half on the outermost box also squished all of the content to the left side only using about a quarter of the area.
I've provided pictures for further explanation.
this is with the WidthSize set to half on the patient information:

Code for the above photo:
    <oh-box       key="patient-notif-summary-with-date"       direction={Direction.Horizontal}       justifyContent={JustifyContent.SpaceBetween}       onClick={() => {         patNot.noLongerNew();         dispatch(updatePatientNotificationLite(patNot));         dispatch(updatePage(Page.NOTIFICATION_DETAILS));       }}     >       <oh-box         key="patient-notif-summary"         direction={Direction.Vertical}         justifyContent={JustifyContent.Left}         layout={{ marginTop: StyleSize.Small, marginBottom: StyleSize.Medium, width: WidthSize.Half }}       >         <oh-box           key="patient-name-and-icon-box"           direction={Direction.Horizontal}           justifyContent={JustifyContent.Left}           layout={{ padding: StyleSize.None, margin: StyleSize.None }}           alignItems={AlignItems.Center}         >           {getNewIcon(patNot)}           <oh-box             key="patient-name-box"             direction={Direction.Horizontal}             justifyContent={JustifyContent.Left}             layout={{ padding: StyleSize.None, margin: StyleSize.None }}           >             <oh-markdown body={${patNot.patientInfo.getPatientName()}} key="patient-name" />           </oh-box>         </oh-box>         <oh-markdown           key="patient-dx-visit-type"           body={
Primary DX: ${patNot.visitDetails.primaryDx}
${patNot.visitDetails.visitType}}         />         {getLabel(patNot)}       </oh-box>       <oh-box         key="patient-notif-date-box"         direction={Direction.Vertical}         justifyContent={JustifyContent.Right}         layout={{ marginTop: StyleSize.Small, marginBottom: StyleSize.Medium }}         alignItems={AlignItems.FlexEnd}       >         <oh-markdown body={${formatDate(patNot.notificationDate)}} key="patient-notif-date" />       </oh-box>     </oh-box>
Without the width size set:

Taking a look!

Looks like a bug to me, created HELPS-2325 to track the issue

Thanks!  Let me know if you would like me to repost the code to produce this.  I didn't realize it would format my code snippet so horribly and just learned how to post it properly here.

Managed to get it cleaned up pretty easily in vs code, so no worries! It helped a lot! We do have someone that picked up the card, and it looks like it's just shoving all the default margins on to the right of the component. So that first child box is taking up half the space.... but for some reason it has an 8 and 16 px margin to the right (for a total of 24 px margin taking up a quarter of the space).

This issue has been fixed on Olive Helps 0.28.3.


InitializeStaticPointers: make init thread safe

fixes TSan warnings:
Read of size 8 at 0x7f6c00f850e8 by thread T914:
#0 InitializeStaticPointers
#1 sjpeg::Encoder::Encoder(SjpegYUVMode, int, int, sjpeg::ByteSink*)
...
Previous write of size 8 at 0x7f6c00f850e8 by thread T875:
#0 InitializeStaticPointers
#1 sjpeg::Encoder::Encoder(SjpegYUVMode, int, int, sjpeg::ByteSink*)

cc: @vigneshvg


feat: #65: pair selector

Closes #65
Implements PairSelector – a components that allows selecting the in- and out-assets. Features:

Asset list is prefilled on the server using the Prax registry
On provider connection, the stores fetch account assets and balances
Fetching happens using react-query to cache the results
All data is stored in corresponding stores, the pair store keeps the selected assets for the future use by other components

@grod220 do you mind to review it again?

Applied all PR comments, documented the result. Merging 🚀


Handling of COMMENT, HISTORY, END cards differs wrt cfitsio

The returned value of Header.Keys() does not include cards of type END, COMMENT, HISTORY:
https://github.com/astrogo/fitsio/blob/0221d1a54f8c95dcfc14c3234c9091e3287ef411/header.go#L323
I understand that there is a method for retrieving the comments and history cards of a FITS header, I would suggest that for compatibility with cfitsio, those cards should be also be returned by Header.Keys().
In addition, it seems that astrogo/cfitsio assumes that in a given HDU there is only one card of type HISTORY or COMMENT. This is not the case with cfitsio.
In case it matters,  for my tests I'm using cfitsio v3.370.
An example of a file with several COMMENT cards in the same HDU can be found at:
ftp://legacy.gsfc.nasa.gov/fits_info/sample_files/images/rosat_pspc_rdf2_3_bk1.fits

this begs the question as whether we shouldn't just return the []Card, or have a method to retrieve the n-th card (otherwise, we'd always get the first occurence of COMMENT or HISTORY via the Header.Get(name string) method...
or rename the currrent Get(string) into GetByName(string) and introduce Get(int).
but Header.Cards() []Card SGTM (carefully documenting one shouldn't mess with modifying their content.)

For my use case, which basically consists of scanning all the cards in all header units of a given file and perform some actions depending on the value of some of them, Header.Cards() []Card would be perfect and much more efficient indeed that to repeatedly call Header.Get(key). A note in the documentation could remind the users that they should consider the returned Card slice data as read-only.
In that case, Header.Cards() []Card should return all the cards (including SIMPLE, COMMENT, HISTORY, END) and preserve their order as found in the file.
I would suggest to keep Header.Get(key) which is convenient and modify Header.Comments() []string (note the plural) to return several values, instead of just one value as they currently does. I don't know for sure if a well formed FITS file is supposed to have several HISTORY cards: if that's the case, Header.History() could also become Header.Comments() []string.


$digest() iterations reached

Apparently I did something wrong with angular and it throws this error when updating $scope.current
10 $digest() iterations reached. Aborting!

no longer using angular. closing as "wontfix"


Alexa Integration requires constant re-authorizations

IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.
Describe the bug
Everyt ime I try to call the Alexa music service i get persistent notification to re-authorize
To Reproduce
Call Music Service

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior

Screenshots

System details

Home-assistant (version):
alexa_media (version from const.py or HA startup):
alexapy (version from pip show alexapy or HA startup):
Amazon 2FA is enabled (y/n). <!---We will not debug login issues if unanswered--->:

Logs
Please provide logs.
Additional context

Please provide logs of the call causing the reauth request.

Had to do this 3 times now in the last four days.

I'm having the same problem.

Actually, just realized the template was not filled out at all and was gaming the system.

Removing Alexa media player as defective until fixed

Roll back to 4.7.3 - I don't have the issue there.
4.7.6 is problematic -- unsure if it is resolved in 4.7.7, but the Changelog doesn't identify anything directly.


Update for Phonegap 4.1.*

I get a lot of these now The command phonegap local <command> has been DEPRECATED. Is an update to use the 'phonegap ` coming? I can PR if it's not yet.

Still an issue a year later?
[warning] The command phonegap local <command> has been DEPRECATED.
[warning] The command has been delegated to phonegap <command>.
[warning] The command phonegap local <command> will soon be removed.
Is this project not under development?

It seems like no one cares about it.
@logankoester If you are not able to solve the 32 open issues and 2 open PRs and also to update the dependencies, then you should think of giving this project ahead to someone who will take care of it.

+1

@julmot, @optikalefx When I began shifting my focus to other projects I made a point of granting collaborator+npm access to grunt-phonegap to several of the people who were most active at the time. It seems they may have moved on as well now. Would you like to pick this up for a bit? If so then I'd be happy to give you access and you're welcome to release new versions as you see fit.

@logankoester I would love to help you building this task. However, I can help where I can, but I'm not sure if I will have enough time to meet expectations.

@logankoester when I have another phonegap project, I'll probably accept. But we are just about finished so I won't be touching PG for a while.

@logankoester we are able to contribute and maintain for now


Mist always launch jobs with spark.master=local[*] despite function's default context

Despite function was deployed with default context = volodymyr.bakhmatiuk_cluster_context, it is launched with default local context. Help me please to launch my job on my remote cluster!
To launch HelloMist function on my cluster, I did four steps due to documentation:

I created new configuration file:

model = Context
name = cluster_context
data {
  spark-conf {
    spark.master = "spark://myhost.com:7077"
  }
}

I've set context=cluster_context in hello_mist/scala/conf/20_function.conf
Re-packaged everything with mvn package
Deployed changes to mist with mist-cli apply -f conf

Now I can check that function's context is linked to my cluster:

curl -H 'Content-Type: application/json'v -X GET http://localhost:2004/v2/api/functions
[{"name":"volodymyr.bakhmatiuk_hello-mist-java","execute":{"samples":{"type":"MInt"}},"path":"volodymyr.bakhmatiuk_hello-mist-java_0.0.1.jar","tags":[],"className":"HelloMist","defaultContext":"volodymyr.bakhmatiuk_cluster_context","lang":"java"}]

And I can check that configurations has been deployed:

curl -H 'Content-Type: application/json' -X GET http://localhost:2004/v2/api/contexts/volodymyr.bakhmatiuk_cluster_context
{"name":"volodymyr.bakhmatiuk_cluster_context","maxJobs":20,"workerMode":"shared","precreated":false,"sparkConf":{""spark.master"":"spark://myhost.com:7077"},"runOptions":"","downtime":"120s","streamingDuration":"1s"}

Now I launch job through WebMist and it is finished successfully. But it looks like WebMist launch a job on local[*] spark cluster, because nothing have been launched on myhost.com cluster! Logs:
18-02-09 17:11:42 [mist-akka.actor.default-dispatcher-16] INFO ere.mist.master.WorkersManager:107 Trying to start worker volodymyr.bakhmatiuk_cluster_context, for context: volodymyr.bakhmatiuk_cluster_context
18-02-09 17:11:47 [mist-akka.actor.default-dispatcher-3] INFO ere.mist.master.WorkersManager:107 Received worker registration - WorkerRegistration(volodymyr.bakhmatiuk_cluster_context,akka.tcp://mist@<IP_ADDRESS>:41197,Some(http://<IP_ADDRESS>:4040))
18-02-09 17:11:47 [mist-akka.actor.default-dispatcher-26] INFO ere.mist.master.WorkersManager:107 Worker resolved - WorkerResolved(volodymyr.bakhmatiuk_cluster_context,akka.tcp://mist@<IP_ADDRESS>:41197,Actor[akka.tcp://mist@<IP_ADDRESS>:41197/user/worker-volodymyr.bakhmatiuk_cluster_context#-1055101121],Some(http://<IP_ADDRESS>:4040))
18-02-09 17:11:47 [mist-akka.actor.default-dispatcher-16] INFO ere.mist.master.WorkersManager:107 Worker with volodymyr.bakhmatiuk_cluster_context is registered on akka.tcp://mist@<IP_ADDRESS>:41197
18-02-09 17:11:49 [mist-akka.actor.default-dispatcher-14] INFO ist.master.FrontendJobExecutor:107 Job has been started be02598b-f8ed-4f80-a583-255f478e610e
18-02-09 17:11:50 [mist-akka.actor.default-dispatcher-3] INFO ist.master.FrontendJobExecutor:107 Job RunJobRequest(be02598b-f8ed-4f80-a583-255f478e610e,JobParams(volodymyr.bakhmatiuk_hello-mist-java_0.0.1.jar,HelloMist,Map(samples -> 7),execute)) id done with result JobSuccess(be02598b-f8ed-4f80-a583-255f478e610e,3.4285714285714284)

P.S. My Spark cluster version equals 2.1.1.
I launch mist this way:
docker run -p 2004:2004 -v /var/run/docker.sock:/var/run/docker.sock hydrosphere/mist:1.0.0-RC8-2.2.0 mist

Also I did job submition request from terminal - the same result:

curl -d '{"samples": 10000}' -H 'Content-Type: application/json' -X POST  http://localhost:2004/v2/api/functions/volodymyr.bakhmatiuk_hello-mist-java/jobs?context=volodymyr.bakhmatiuk_cluster_context
{"id":"a3dbd90c-3ca7-4bc7-910f-5c3c5901fb28"}

Thanks for the detailed description!
I've just released v1.0.0-RC9 witch include fix for such problem (#411 )

Thank you for quick response! Now I get another issue - my jobs do not get to remote cluster:
18-02-09 23:01:08 [mist-akka.actor.default-dispatcher-18] INFO ere.mist.master.WorkersManager:107 Trying to start worker volodymyr.bakhmatiuk_cluster_context, for context: volodymyr.bakhmatiuk_cluster_context
18-02-09 23:03:08 [mist-akka.actor.default-dispatcher-17] WARN ere.mist.master.WorkersManager:131 Worker volodymyr.bakhmatiuk_cluster_context initialization timeout: not being responsive for 2 minutes
18-02-09 23:03:08 [mist-akka.actor.default-dispatcher-17] INFO ere.mist.master.WorkersManager:107 Worker for volodymyr.bakhmatiuk_cluster_context is marked down
18-02-09 23:03:08 [mist-akka.actor.default-dispatcher-25] INFO ist.master.FrontendJobExecutor:107 Job RunJobRequest(6ea5caa8-cec1-47d7-bd44-725601137dd9,JobParams(volodymyr.bakhmatiuk_hello-mist-java_0.0.1.jar,HelloMist,Map(samples -> 10000),execute)) id done with result JobFailure(6ea5caa8-cec1-47d7-bd44-725601137dd9,Worker volodymyr.bakhmatiuk_cluster_context initialization timeout: not being responsive for 2 minutes)
18-02-09 23:06:16 [mist-akka.actor.default-dispatcher-25] WARN mote.PhiAccrualFailureDetector:131 heartbeat interval is growing too large: 2766 millis

Is there any way to get more detailed logs to find out what is wrong?

Try to run mist from binaries: there are network limitations with docker mode and all logs will be collected in $MIST_HOME/logs

Thank you! I run mist from binaries and now I see my job on remote cluster!
Now I have another issue: all workers fail due to java.io.IOException: Failed to connect to /<IP_ADDRESS>4:52060, where <IP_ADDRESS>4 is IP address of my mac. As I understand Spark driver and context are started locally at my mac, and remote cluster have to send response to driver, but fails. Could you please tell me what can I try in order to fix the issue?

Thank you! That solved my issue

Glad to hear that.


Add option to fail buffer flushing on 4xx errors

Proposed changes
Related to: https://github.com/splunk/fluent-plugin-splunk-hec/issues/153
Types of changes
Adds an option to fail the buffer flushing on 4xx errors
What types of changes does your code introduce?

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

[x] I have read the CONTRIBUTING doc
[x] I have read the CLA
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation (if appropriate)
[x] Any dependent changes have been merged and published in downstream modules

Thank you for submitting PR.
Could you change the default to be false so that it doesn't change anything to current users?

@rockb1017 the default value of true is matching the current behaviour of the plugin. We use it with the value false in order to make the buffer flushing throw an error, instead of consuming chunks.

You are right. the unittest failed, but i have already fixed that issue in develop branch. Merged Thanks!


Create documentation

Update the readme by adding about Hacktoberfest , steps to contribution etc. Kindly assign me the issue .

Kindly assign me this issue!


[Feature] Prevent running interceptor twice

It seems this interceptor is run twice for each request. Is it possible to have it run only once, or detect which way the request is going (incoming, outgoing)?
Thanks!

The interceptor should only run once. There's actually a test for that. Could you post some code and output showing it running twice?

Hi @d5h , sorry for the long delay in responding. I'm seeing this with the below interceptor:
import traceback
import time
from typing import Callable, Any

import grpc
from grpc_interceptor import ServerInterceptor
from grpc_interceptor.exceptions import GrpcException

from api.logger import log

class ExceptionInterceptor(ServerInterceptor):
    def intercept(
        self,
        method: Callable,
        request: Any,
        context: grpc.ServicerContext,
        method_name: str,
    ) -> Any:
        """Catchall exception interceptor. Wraps all unhandled exceptions,
        and extracts the traceback into a field on the log message.
         Args:
             method: The next interceptor, or method implementation.
             request: The RPC request, as a protobuf message.
             context: The ServicerContext pass by gRPC to the service.
             method_name: A string of the form
                 "/protobuf.package.Service/Method"
         Returns:
             This should generally return the result of
             method(request, context), which is typically the RPC
             method response, as a protobuf message. The interceptor
             is free to modify this in some way, however.
         """
        try:
            log.info("Received incoming request")
            # Capture response time
            start = time.time()
            response = method(request, context)
            end = time.time()
            # Convert seconds to ms
            completion_time = (end - start) * 1000
            # Add a field to the log line
            extra = {'elapsed_ms': completion_time}
            log.info(f'Generated response in {completion_time}ms', extra=extra)
            return response
        except Exception as e:
            # TODO: what proto should we return here? This will return None
            error = ''.join(traceback.format_stack())
            log.error('Unknown server error', error=error)

When I generate a request with this, I see:
{"level": "info", "ts": "2022-08-22T17:13:54.115348Z", "name": "deployment-api", "elapsed_ms": 0.051021575927734375, "msg": "Generated response in 0.051021575927734375ms"}
{"level": "info", "ts": "2022-08-22T17:13:54.163390Z", "name": "deployment-api", "msg": "Received incoming request"}
{"level": "info", "ts": "2022-08-22T17:13:54.198927Z", "name": "deployment-api", "elapsed_ms": 35.25853157043457, "msg": "Generated response in 35.25853157043457ms"}

I don't see anything wrong here. Is this in a production environment with anything like GraphQL or Istio involved? They can make multiple requests to the backend for a single client request.
In order to narrow it down as much as possible, could you run the service on your own machine, and make the request from the same machine with something like grpc_cli? That will rule out any service mesh stuff or other middleware.
I don't think this is caused by the interceptor. I've never seen this myself, and as mentioned above, there's a test that it only runs once. I'm guessing there may be something else that's making redundant calls. I'm also curious why the first call was ~700x faster than the second. Are you sure this is the same request? I'd expect the same request to similar response times, unless there's caching involved. But here the first request is faster so caching doesn't make sense.

The reason for the appearance of a request received by the server twice could be that the first request is a grpc_reflection.v1alpha.reflection_pb2.ServerReflectionRequest.


Firebase auth plugin is crashing my app on iOS

My app is crashing at startup while trying to get the current user.
This issue is only with iOS, with Android is working fine except for this (see https://github.com/flutter/flutter/issues/14208)
pubspec.yaml
dependencies:
  flutter:
    sdk: flutter
  firebase_auth: ^0.5.10
  firebase_analytics: ^1.0.0
  google_sign_in: ^3.0.3

main.dart
void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  final AuthenticationService authService = new AuthenticationService();

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'EmdiMóvil',
      debugShowCheckedModeBanner: false,
      theme: defaultTargetPlatform == TargetPlatform.iOS
          ? kIOSTheme
          : kDefaultTheme,
      routes: routes,
      home: new FutureBuilder(
        future: _auth.currentUser(),
        builder: (BuildContext context, AsyncSnapshot snapshot) {
          if (!snapshot.hasData) {
            return new LoginPage();
          } else {
            return new HomePage();
          }
        },
      ),
    );
  }
}

Logs
# flutter run --verbose

https://gist.github.com/carlosjs23/1621847718184b0a831eb10daf6f75fd
# flutter analyze
Analyzing /Users/carlos/IdeaProjects/emdimovil...
No issues found!
Ran in 7.6s

# flutter doctor -v
[✓] Flutter (Channel beta, v0.3.2, on Mac OS X 10.13.4 17E202, locale es-CO)
    • Flutter version 0.3.2 at /Users/carlos/flutter
    • Framework revision 44b7e7d3f4 (5 weeks ago), 2018-04-20 01:02:44 -0700
    • Engine revision 09d05a3891
    • Dart version 2.0.0-dev.48.0.flutter-fe606f890b

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/carlos/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /Users/carlos/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.3.1, Build version 9E501
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.2

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.3)
    • IntelliJ at /Users/carlos/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 24.2.2
    • Dart plugin version 181.4892.1

[!] VS Code (version 1.23.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code

[✓] Connected devices (1 available)
    • iPhone X • 9EC8619A-000C-40FC-888A-01A4C0594722 • ios • iOS 11.3 (simulator)

! Doctor found issues in 1 category.

I don't know if you already solved the issue but from my testing, it looks like it is an issue with the latest version of firebase_auth 0.5.10 flutter plugin. One temporary solution I found was to downgrade it to version 0.5.9 until a new, working version is pushed.
Please let me know if you found another workaround.

@hetkpatel thanks for you comments, I've solved my issue with a workaround, I think my issue was related with a bug with Firebase on iOS and I'm preparing to open a better explained issue.


[Likee] ERROR: Did not get any data blocks

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

[X] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2022.08.19 (update instructions) or later (specify commit)
[ ] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
Germany
Provide a description that is worded well enough to be understood
Video Url: https://likee.video/@_100_Depression/video/7136677144490556979
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['https://likee.video/@_100_Depression/video/7136677144490556979', '-vU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version 2022.08.19 [48c88e0] (pip)
[debug] Python 3.10.6 (CPython 64bit) - Linux-4.4.0-1104-aws-x86_64-with-glibc2.31 (glibc 2.31)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 4.3.4-0, ffprobe 4.3.4-0
[debug] Optional libraries: Cryptodome-3.9.9, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
[debug] [likee] Extracting URL: https://likee.video/@_100_Depression/video/7136677144490556979
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[debug] Invoking http downloader on "https://video.like.video/eu_live/9u9/24Vbby.mp4?crc=1076240792&type=5"

ERROR: Did not get any data blocks
  File "/usr/local/bin/yt-dlp", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/__init__.py", line 953, in main
    _exit(*variadic(_real_main(argv)))
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/__init__.py", line 945, in _real_main
    return ydl.download(all_urls)
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3291, in download
    self.__download_wrapper(self.extract_info)(
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3267, in wrapper
    res = func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1433, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1442, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1539, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1597, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2695, in process_video_result
    self.process_info(new_info)
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3170, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2894, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/downloader/common.py", line 442, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/downloader/http.py", line 372, in real_download
    return download()
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/downloader/http.py", line 343, in download
    self.report_error('Did not get any data blocks')
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 979, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 911, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

Latest version: 2022.08.19, Current version: 2022.08.19
yt-dlp is up to date (2022.08.19)
[likee]<PHONE_NUMBER>490556979: Downloading webpage
[info]<PHONE_NUMBER>490556979: Downloading 1 format(s): mp4-without-watermark

Cant repro. Double check you are able to view this in browser
❯ yt-dlp -v https://likee.video/@_100_Depression/video/7136677144490556979
[debug] Command-line config: ['--ignore-config', '-v', 'https://likee.video/@_100_Depression/video/7136677144490556979']
[debug] Encodings: locale cp65001, fs utf-8, pref cp65001, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2<IP_ADDRESS> [48c88e088] (source)
[debug] Lazy loading extractors is disabled
[debug] Plugins: ['SamplePluginIE', 'SamplePluginPP']
[debug] Git HEAD: e0992d555
[debug] Python 3.10.6 (CPython 64bit) - Windows-10-10.0.22000-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg N-107787-gc469c3c3b1-20220814 (fdk,setts), ffprobe N-107787-gc469c3c3b1-20220814, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.1
[debug] Proxy map: {}
[debug] Loaded 1664 extractors
[debug] [likee] Extracting URL: https://likee.video/@_100_Depression/video/7136677144490556979
[likee]<PHONE_NUMBER>490556979: Downloading webpage
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info]<PHONE_NUMBER>490556979: Downloading 1 format(s): mp4-without-watermark
[debug] Invoking http downloader on "https://video.like.video/eu_live/9u9/24Vbby.mp4?crc=1076240792&type=5"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: #حلاتو_القزومة  [7136677144490556979].mp4
[download] 100% of 7.56MiB in 00:03 at 2.18MiB/s

Actually it's a cloud desktop, I have access only upto it's terminal.
also now I realised that, likee.video is rendering white page/layout for that device.
Maybe, It's banned in it's remote country


Release 0.7.0

The last release was in October. There are a handful of small fixes to ship:
https://github.com/evanbergeron/DND-5e-LaTeX-Template/blob/master/CHANGELOG.md#unreleased
What does everyone think of merging #110 and #113, then releasing 0.7.0?
The issue reported in #121 highlighted some of the problems users might face if they're new to Git, LaTeX, or the command line. After preparing the 0.7.0 tag and GitHub release, we could look at publishing this package on CTAN (#116).

Sounds good. I have just been so slammed from the summer. Now that kids are back in school, I am finally starting to catch up again. I am thinking about adding in an example .sty file to show how to separate modifications from the core package code.

Is there an update on the release of version 0.7.0? Or are you plodding along with the code, getting it updated? Just curious, is all, on an estimated timeline. No rush, just curious.

No update just yet. Mostly it is about testing the current PRs as they are "big".

All good then.

I have merged most of the open PRs. 2 have comments, and I need to think about #124 some more.

Refactor status:
#153 monsters: needs one more look
#164 sectioning: ready for review
#165 colors: ready for review
#166 boxes: needs one more look
#167 tables: ready for review

@BrianCriswell Your effort is truly commendable; kudos. These changes effectively amount to a complete rewrite. The new code looks really promising!
That being said, we already have a significant backlog of changes to release for 0.7. I think it's confusing to cut a new release with those changes as well as the new package interface. As I said before, this will let us point to 0.7 as the last old-style release. We would be able to take our time and polish the new package interface, releasing it all at once in 0.8.
Moreover, I must admit I feel a bit in the dark about the upgrade. @Girsi's contribution in #159 highlighted that potential contributors (including me 🙂) lack insight into the overall progress and goal.
I know the work is mostly complete, but we could use more "bookkeeping" here. At the very least it will serve as a record of the work for future contributors.
To that effect, I'd like to:

Go back over changes since 0.6 and make sure we've accounted for all of them in the changelog.
Release 0.7.0 now.
Create a GitHub project, milestone, and individual tasks for each module/feature.
Discuss the design of the package interface, so we are all on the same page. This will provide context for reviewers (i.e., me) when approaching the new code.

If you're good with that, I'll start setting those up.
To be perfectly clear, I really like this direction. But I want to make the path to the new code as easy as possible for our users to navigate.

Sounds good. :)
I will put together the changes to set up 0.7.0 including double-checking the changelog. While I am doing that, could you continue to look over the new items and see if there is anything that sticks out to you?
For the new interface, I will start an issue for discussion on that, and we can figure out what the roadmap looks like. If there is some scaffolding you can do for preparation on the GitHub project, milestone, and task side of things, we could get a head start there as you seem to be much better versed in all things GitHub than me. :)
tl;dr
If it sounds good to you:

@BrianCriswell will work on 0.7.0 and starting the discussion on the new document-level interface and internals.
@benwebber will review the PRs for the new design and start the framework of a more formalized development process.
We (including the greater community) discuss the new design and where the project is going.

Yep, sounds good. You can convert this card to an issue:
https://github.com/rpgtex/DND-5e-LaTeX-Template/projects/1#card-17457490
Once we finalize the new interface, we can flesh out the other cards in the To do column and link the associated PRs.

https://github.com/rpgtex/DND-5e-LaTeX-Template/releases/tag/v0.7.0
Good job everyone. Thanks to the following who contributed:

@Girsi
@AlanQuatermain
@raphael-proust
@Maia-Everett
@Vladar4
@Polpetta
@vermiculus
@Toiwat
@N9199

Special thanks to co-owners @evanbergeron  for starting this project several years ago and @benwebber  for not only the code contributions but formalizing how we do this.

Thanks for the effort put in!
I haven't published anything in a while but I still use this project for internal stuff and I'm planning to release more stuff later. The new additions and fixes are great!


Add email_verified field to generated JWT

danil@office:~/code/rango(feature/add_email_verified_to_jwt)$ go run ./tools/jwt
# github.com/openware/rango/pkg/auth
pkg/auth/jwt.go:65:3: missing key in map literal


Command Palette

Providing textual commands for

Opening files
Triggering actions on open file (rename, search, delete, new sibling file/directory)
Triggering global actions (new file, new directory, search, toggle sidebar, sign out, change theme, etc.)
And follow some UX pattern like VSCode

Shift Shift opens palette in Command Mode (prefix $ in empty palette)
( Vim mode enabled ) : in NORMAL mode for vim commands (prefix : in empty palette)
Cmd o for file picker / create new file (no prefix for opening/creating files)

I want the file picker to also create new files. You can type the name of the file you want, and if there are no matches you can create a file of that name as a sibling of the open file else at root.
Probably, you'll want a way to specify note or directory (trailing slash like VSCode seems like a good way to do this)
If you want to create a file of the same name, and the active note has no sibling of that name, I want the option to create that file instead, perhaps at the end of the list of results with a hotkey to access it quickly.

implements #11


[DO NOT MERGE] tutorials: add Google Cloud Run tutorial

This is still WIP as I haven't figured out how to share the Docker image on gcr.io yet.

I am not seeing any of the PNG being rendered ?

It's a GitHub limitation in PRs. You can see the PNG by clicking on the ... by the filename, then View file, e.g. https://github.com/killbill/killbill-docs/blob/909d0e56491206d14e9ae20099c602fa9cebd475/userguide/assets/img/gcp/CloudSQL2.png.


FlashList

Any plans on adopting FlashList for this library? For long lists, the performance is very noticeable.

I could see making a fork of this repo and supporting it, but it's not likely that we'll adopt it in this current project, because FlashList requires installing native binaries (instead of the current design, which intentionally keeps things down to just react and react-native as requirements).
Let me keep this issue open, since when I have time, I might be able to just fork it myself and do the work.

Haven't looked at all but allowing a custom FlatList to be provided via prop might be worth considering here. No additional dependency and could support other flat list replacements.

Oh, interesting idea, @kav. Haven't had time recently to look into it, but am happy to take PRs if anyone feels strongly.

Implemented as #62 , based on @kav 's PR. Released as 3.8.0. @ahansson89 : LMK if FlashList works out well!

I did end up trying this, which resulted in some errors. After some debugging, I narrowed down a couple of issues:

FlashList's implementation of CellRendererProps crucially doesn't return item, causing CellRendererComponent to throw an error from calling keyExtractor.

We can get an item equivalent through the data prop on the children passed (which is definitely not recommended).

The component rendered by CellRendererComponent needs to be FlashList's CellContainer.

Solved by getting its animated variant from Animated.createAnimatedComponent(CellContainer).

See: https://shopify.github.io/flash-list/docs/usage/#cellrenderercomponent
I made a fork with the fixes that makes it work with my limited testing with it so far (haven't touched the example app - just used it with a project I'm working on): https://github.com/MissingCore/react-native-draglist. You can use it as a base if you want to spin up a FlashList implementation as a separate package.

Awesome - thanks for the update, @cyanChill , and for making that available for others!


research and reimplement godot types as native go structs

ShadowApex's godot-go has native go implementations of the godot types. It'll be a good reference to understand the implications of moving towards native go structs.

i'm going to close this out for now; will revisit if it becomes a priority


Redisson Fair Lock infinite wait after restart

Redis version
7
Redisson version
3.16.8
Redisson configuration
Default
What is the Expected behavior?
Since the application died/restarted it is expected that everything will go back to normal. We shouldn't have to wait for a lock if the one who locked it does not exist anymore.
What is the Actual behavior?
If the application is shut down unexpectedly, the active locks will not be released.
Once we start up the application again, when we try to acquire the lock, it will hang infinitely.
Additional information
Code example to test the behavior:
    ExecutorService executor = Executors.newFixedThreadPool(6);

    Runnable runnable = () -> {
        RLock lock = client.getFairLock("teste");

        try {
            lock.lock(10, TimeUnit.SECONDS);
            System.out.println(lock.remainTimeToLive());
            Thread.sleep(5000);
            System.out.println(lock.remainTimeToLive());
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        } finally {
            lock.unlock();
        }
    };

    IntStream.range(0, 10).boxed().forEach(ignore -> executor.execute(runnable));

You just have to shutdown the application in between.

Can you try 3.32.0 version?

It worked, but I noticed that it waits for the score of the Sorted Set "redisson_lock_timeout:{teste}" until it releases automatically the lock.
How do I configure this score to be less long?

Hi,
I think I stumbled on the same issue with 3.37.0

In fact, I have a slightly different version of this: I use #lockInterruptibly(). During shutdown, InterruptedException is thrown as expected; but we end up with the thread in the waiting queue, and the lock "forgotten".
Workaround: call
lock.tryLockAsync(1,-1, TimeUnit.NANOSECONDS, originalThreadId).get();

From another, uninterrupted thread, to avoid the 5min waiting time.


Add communities column to Configure Table at different Tables

Add Communities column to Configure Table at different Tables. This option is now availible and makes it easier to get an overview of Communities applied at different levels (BGP Groups/Direct Peering Sessions/Internet Exchanges and IX Sessions)

The checks failed with :
🚨 Missing Repo Token. Set using -r <token> or COVERALLS_REPO_TOKEN=<token>
Error: Process completed with exit code 1.
Can you help me what's wrong ?

Excuse for the commit list, I had some issue mergin the commits I was behind

The checks failed with : 🚨 Missing Repo Token. Set using -r <token> or COVERALLS_REPO_TOKEN=<token> Error: Process completed with exit code 1.
Can you help me what's wrong ?

Don't worry about it that was a misconfig of the CI. It should be fixed if you rebase, but not mandatory to do it.

Resolved all issues in my main branch except removing the class CommunityColumn(tables.ManyToManyColumn):


Web API implementation or example

Hi there,
Thanks for this great package. I am new to this and trying out a simple Multi-tenant Rest API. Can I use this package for that? I've tried to modify the "RouteStrategySample" by creating an API controller and updating the Startup.cs, UserEndPoints like so:
app.UseEndpoints(endpoints =>
{
    endpoints.MapControllerRoute("default", "{__tenant__=}/{controller=Home}/{action=Index}");
    endpoints.MapControllerRoute(
             name: "api",
             pattern: "{__tenant__=}/api/{controller}/{id?}"
    );
});

I am not 100% confident if this is the correct way to configure it. My api controller simply return and IActionResult of the TenantInfo object. Using postman, I am failing to replicate what the default MVC controller HomeController is doing. I'm returning it as an IActionResult in my API controller.
Please help on how I can configure this to work. The strategy can be any, doesn't have to be routing strategy only. My API controller looks like so:
    [Route("/api/[controller]")]
    [ApiController]
    public class TasksController : ControllerBase
    {
        public IActionResult Get()
        {
            var ti = HttpContext.GetMultiTenantContext()?.TenantInfo;
            if(ti == null)
            {
                return BadRequest("Missing tenant information");
            }
            return new ObjectResult(ti);
        }
    }

Hi @cland
It should work for APIs just fine. If I recall correctly the API route ignores the UseEndpoint configuration. I think you just need to add __tenant__ in your ApiController route attribute:
[Route("/{__tenant__=}/api/[controller]")]
[ApiController]
public class TasksController : ControllerBase
...

Give that a try and let me know. You can remove the other routes stuff (unless you need them otherwise). I should probably add something about this to the documentation.

Thanks, it's working fine now.
Just a note to other newbies like me, the error I had received when I tried to return the TenantInfo object as is, as per my code in my post, was this:

The multi-tenant setup was actually working fine, I just needed to sort out the object being returned. For this particular test I did this:
    [Route("/{__tenant__=}/api/[controller]")]
    [ApiController]
    public class TasksController : ControllerBase
    {
        public IActionResult Get()
        {
            var ti = HttpContext.GetMultiTenantContext()?.TenantInfo;
            if(ti == null)
            {
                return BadRequest("Missing tenant information");
            }
            var tenantInfoDTO = new
            {
                ti.Id,
                ti.Name,
                ti.Identifier,
                ti.ConnectionString
            };
            return new ObjectResult( tenantInfoDTO);
        }
    }

Thanks @achandlerwhite . Now need to include some JWT security...struggle continues :)


Question:

Example Code

Expected behavior, if applicable
A clear and concise description of what you expected to happen.
Your Environment

software
version

node-fetch

node

npm

Operating System

Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.

@1Uno why?

@jimmywarting I feel like some YouTube tutorial or blog mentioned node-fetch which led these people here.
@1Uno How did you find out about node-fetch?

From the repository which sent  back errors.
Do you care to better inform me on its purpose?    On Thursday, September 17, 2020, 05:18:40 PM MDT, Richie Bendall<EMAIL_ADDRESS>wrote:
@jimmywarting I feel like some YouTube tutorial or blog mentioned node-fetch which led these people here.
@1Uno How did you find out about node-fetch?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@1Uno Do you mean the security vulnerability warning?


The DbContext of type cannot be pooled because it does not have a single public constructor accepting a single parameter of type DbContextOptions

return exception
services.AddDbContextPool<DataAccessDbContext>();

 public DataAccessDbContext(DbContextOptions<DataAccessDbContext> options)
        : base(options)
        {

        }

        public DataAccessDbContext(DbContextOptions<DataAccessDbContext> options, IDateTimeService dateTimeService, ICurrentUserService currentUserService)
        : base(options)
        {
            _dateTimeService = dateTimeService;
            _currentUserService = currentUserService;
        }

Got Exceptions? Include both the message and the stack trace
System.InvalidOperationException: The DbContext of type 'DataAccessDbContext' cannot be pooled because it does not have a single public constructor accepting a single parameter of type DbContextOptions.
   at Microsoft.EntityFrameworkCore.Internal.DbContextPool`1..ctor(DbContextOptions options)
   at Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.<>c__5`2.<AddDbContextPool>b__5_1(IServiceProvider sp)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton(SingletonCallSite singletonCallSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions.<>c__5`2.<AddDbContextPool>b__5_2(IServiceProvider sp)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at OpenIddict.EntityFrameworkCore.OpenIddictApplicationStoreResolver.Get[TApplication]()
   at OpenIddict.Core.OpenIddictApplicationCache`1..ctor(IOptionsMonitor`1 options, IOpenIddictApplicationStoreResolver resolver)

Further technical details
EF Core version: 2.2
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: 2.2
Operating system: Win10
IDE: Visual Studio 2019 16.3

We could improve the exception message:
The DbContext of type 'DataAccessDbContext' cannot be pooled because it does not have a public constructor accepting a single parameter of type DbContextOptions or has more than one constructor

Just came across this error message after generating an EF context from an existing database using “dotnet ef dbcontext scaffold”. Scaffold creates two constructors one with a parameter of type DbContextOptions and another without any parameter.
I wondered why the context must have exactly one constructor with a single parameter of type DbContextOptions. Couldn’t EF/Pooling not just ignore all constructors with a different signature?
The requirement for just having one matching constructor means that one must delete the default constructor after every update/rebuild of the context using scaffold…which is somewhat annoying.

@DaveSenn We will look into allowing the parameterless constructor. It won't be functional in a pooling scenario, but it may be okay to ignore it.

Why is a limitation to use services when using pooling?
For example I need a constructor to use a service so I can use UpdateValuesBeforeSaving to get the current userId in the session. That data is coming from outside. It is a question that I have. There's another way? Thank you.

@ajcvickers That would be great. Ignoring the default constructor would solve our issue. Adding support for DI constructor injection as @mhosman suggests would also be ok... but i don't know how EF would pick the correct constructor? (maybe only one constructor with a parameter of type DbContextOptions allowed?)

Related: https://github.com/dotnet/efcore/issues/12604

@mhosman The DbContext is resolved once from the first service provider scope, and then that instance is re-used from the pool in future requests. This means that dependencies aren't resolved from the request, and would end up being stale. If you need other dependencies injected, then the solution is to not use pooling; it's unlikely that you will see any perf improvement from pooling in a scenario like this anyway.

@mhosman The DbContext is resolved once from the first service provider scope, and then that instance is re-used from the pool in future requests. This means that dependencies aren't resolved from the request, and would end up being stale. If you need other dependencies injected, then the solution is to not use pooling; it's unlikely that you will see any perf improvement from pooling in a scenario like this anyway.

I understand your argument if one uses resources injected from the request scope. But if one uses singleton resources?
This limitation makes it very difficult to pass arguments to DbContext, for instance, for customizing it (such as table name or something depending on runtime configuration or command line).
At least, one should allow the programmer to provide a function that builds the DbContext from DbContextOptions.


Release file upload stream before deleting from Uploads folder

Fix for bug #6218

I believe this bug was fixed by this pull request: https://github.com/NuGet/NuGetGallery/pull/6176. That change has only been merged to the dev branch. Could you checkout dev and let us know if that fixes the issues for you?
We will merge the dev into the master branch on our next deployment.

Hi @loic-sharma,
As I tested, pull request #6176 already fixed the issue, so no need to have this pull request.
All the best.


How often can the next version of YOLOv7 be updated?

How often can the next version of YOLOv7 be updated?

Looking forward to updates


[Error] base connection has been shut down: error occurred while sending.

i used XP system.
2 days ago is ok.but today is wrong.y??

Nothing I can do about connection issues unfortunately.