More efficient model/experiment setup

There is a setup method in both Experiment (creates the mesh) and LinearElastic (creates form) that are (currently) always called whenever a parameter changes. In some cases that is necessary:

changing a geometry parameter of a mesh
changing the interpolation order
and in some cases that is not needed:
changing E, nu could simply be a re-assignment

How could that be solved automatically and efficiently?

Can you maybe give some example of the different cases?
I would say when we have a function that refines the mesh, it is clear, that we need to call both.
In which cases would we only need to update the mesh but not the function spaces?

In the optimization/calibration run we might have a geometry parameter as a variable, thus in each computation the mesh has to be rebuilt, but if the parameter is "just" the Young's modulus, then the meshing and function space generation needs only to be done once in the constructor (and not in the call method). So depending on the parameters that you would like to change, there are different procedures to be called. Could it be possible to just have an standard constructor that builds the mesh/function space using separate methods (build_mesh(mesh_parameter). In the call function, there is a check if the parameters are changed compared to the ones the mesh was built with, and if so, this function is executed again. A second option is to define this by the user (as a parameter e.g. to the constructor, i.e. update_mesh_in_call = True) and have a check that if this is false and the mesh parameters have changed to return an exception. A third option is to separate between a list of variable and static variables (the static one being passed in the constructor, the dynamic ones in the call method).

Can you maybe give some example of the different cases?

Yes, have a look at the parameter study. There is a (very convenient) loop over all parameters and no distinction if a parameter belongs to the model or the experiment. Or if a function space or mesh should be rebuilt when this parameter changes. So, to be on the safe side, we call setup on both the experiment and the problem.
Regarding Jörgs second option: Fully automated processes (i.e. "What constitutive model can explain these data sets best?") require a way to access (e.g.) this model-specific update_mesh_in_call information, maybe as an additional parameter somewhere. But for a given model or experiment type, this parameter is actually a constant. As an example, changing the length parameter L in the uniaxial truss experiment always requires a mesh update. Logically, this update_mesh_in_call parameter would then belong inside the model. And then we are at my much preferred first option of Jörg: The problem/experiment classes are the ones that know, what internal steps a change of a certain parameter should cause.
Also, in most cases the user will likely be aware of the overheads: Changing a mesh parameter will also require completely new function spaces, forms, sparsity patters and so on. Thus, it will (intuitively) be much slower than just changing a constitutive parameter.

I think I understand the problem and the need for this now better, thanks.
Would it be a solution to, instead of working with the properties as one object that collects all, to define all our model parameter as python @property variables.
When initializing a problem, we can still pass paramers, which are then initialized.
If I understand this correctly, we can then define for each a set_property() function, where we could call the respective build/setup functions, when changed.
My knowledge of this is limited, so it might not be that easy.
The only disadvantage I see here, is that if we would like to change two paramters, we would rebuild the problem twice.

From the top of my head, I would probably implement a way to see, which parameter was changed. That could be flag that is set when a parameter value is assigned, e.g. in a __setitem__. Then, roughly
def setup(self, ...):
   rebuild_required = self.parameters.has_changed(self.parameters.that_require_rebuild)
   if rebuild_required:
     self.rebuild()
     self.parameters.reset_changed_flags()

But, if we agree on solving that issue within the problem/experiment rather than controlled by the user, those are "just implementation details".

I was wondering, why the parameters of Experiment and Problem have been blended here. I would say, one important advantage of separating parameters of Experiment (Structure+Data) and Problem (Model) from each other is to keep the meaning/effects of each set of parameters. If the parameters are separable, here we could check an instance of which class (Experiment or Problem)  each given parameter is, and accordingly we can call the respectful _setup method (of either Experiment or Problem).
IMO, by keeping a distinction between category of parameters (Structure-related or model-related), the handling of the change of parameters should become more transparent.
Or am I missing some aspect, yet?

My feeling is, that if we can assure that changing an experimental parameter is handled correctly, e.g. as Thomas suggested, then I do not see the need to separate the two sets.
I see your point Abbas, that you could more easily identify which parameter belongs to which set, but why is that important, if I do not need to worry about it, as they are handled automatically.
I would say it just might make it more confusing, or give more possibilities for errors.

One motive in my mind to distinguish between Experiment and Model parameters also regards automatization and workflow (for example, prior to inference and for initiating different models). Suppose all parameters are blended and stored in a metadata-file yaml file, which is going to decide whether a model must be rebuilt or not (in FEniCS). If only a model parameter like "E" is changed, the workflow still considers the whole thing as changed and then re-initiate the mesh. But an alternative could be that:

we first establish a mesh (structure) based on Experimental parameters and store the mesh in a XDMFFile.
as long as the yaml file of Experimental parameters is untouched, any model with different parameters can simply/quickly read the same mesh file.

It might look too tiny an advantage, but maybe for too huge meshes, it becomes quite important.
Besides, I would find this separation "technically" transparent: IMO, mesh (and data) must be defined/set totally independent and prior to any modeling setup. I think, this is also very much related to the fact that, ideally, we intend to introduce the same Experiment to different models, so that the best model in the sense of a better simulation will be selected.

IMO, we should be able to define/set mesh (and data) totally independent and prior to any modeling setup.

Already possible. Try:
parameters = bending_parameters(element_length=10.) # no model parameters!
experiment = get_experiment("Bending3Point2D", parameters)

Suppose all parameters are blended and stored in a metadata-file yaml file, which is going to decide whether a model must be rebuilt or not (in FEniCS).

That sounds like this separation is an absolute requirement for solving the issue of "when should we rebuilt what". And it may indeed be one possible solution. But my previous comment outlines another way. Big meshes could be cached based on its parameters.
Joining both parameter sets is IMO advantageous as the distinction should not matter (e.g. to a statistician who uses the modules as a blackblox and is unfamiliar with FEM). And sometimes it cannot even be clear: Think of a uniaxial test where the parameter "thickness" would count as a constitutive parameter in 2D and 1D (just a constant factor in a form), but as a mesh parameter in 3D where the thickness dimension must be meshed.

I think the last point is especially valid. If there are parameters, that (depending on other parameters) might not always be one or the other type, it does not make sense to separate them.
I have a small issue with the current setup, however it could be, that the way I am using it is just not intended. I would like to hear your thoughts.
For my personal use, I implemented a set of default parameters in my experiment and problem description. Practically this is of course not usually what you want. You should have to define your materials etc. However, I think it is advantageous to be able to "just run" something that is working. In addition, a working set of parameters can at least give an idea of reasonable values/correct units.
Certainly it is straight forward to do that without changing any interfaces. However if we setup our problem as
experiment = get_experiment("Experiment", parameters)
problem = MaterialProblem(experiment,parameters)

The parameters defined in the experiment would not be available in the problem (which might not even be a problem, but it feels wrong not to have a full list. Certainly we can now go and say in the material problem
problem_parameters += experiment.parameters

but this now starts to become ugly and redundant as we first pass them to the experiment and then to the problem again.
Should we only pass parameters to the experiment?

When I think about methods and attributes of classes, I think about whether something must always be prescribed or not. Thus, IMO, it would be better to avoid adding material parameters to an Experiment, since one should be able to define a certain experiment prior to any decision about which model is going to be selected for simulating that experiment.
Regarding the case that Thomas mentioned, a way to go could be to have the constructor of the material_parameters class with an input argument that could depend on experiment parameters; e.g.:
class UniaxialExperiment1D:
    self.L = 1
    self.A = 5
    self.F = 10
    # .... methods for mesh and BCs and so on

Class ElasticModel:
    def __init__(self, E):
        self.E = E
   # .... methods for variationals, solvers, etc.

e = UniaxialExperiment1D()
m = ElasticModel(E=e.A)

These are my points of view and I still think separation of parameters makes things more transparent in the long-term :) , but I might be wrong.

Nevertheless, let me also criticize may idea (the separation of parameters) from another perspective:
I can imagine the situation where a mesh (which belongs to Experiment) should be adjusted to a certain models, e.g. an elastic model might be happy with a relatively coarse mesh, whereas a damage model would require a finer mesh at certain regions.
On the other hand, this perspective would push me towards another setup, where we consider specialized "meshes" for different models, which could imply that the mesh should belong to model rather than to Experiment.


[Bug] Some Pod Running, but others report that  stream closed EOF

Describe the bug
helm install with a minimal default command. But got errors in the four deployments.

Screenshots/Terminal output

Versions

Linux, kubernetes 1.22 With Docker
Additional context

I uninstall and delete the job of setup Cassandra. Then install second try it works. It may be Cassandra started too slow because of the undependable network environment.
Solved


Double square brackets for many policy definitions

Describe the bug
Not sure if I am missing something here, or if there was a change in policy syntax I am not aware of.
Suddenly all the parameter references are prefixed with an additional left square bracket. There is a mention of double left square brackets in the documentation, but I am not sure why this has been done to many of the policy definitions.
If I try to copy some of the definitions in to a GUI policy editor, it does not detect the parameters as used.
Is this a major search/replace that replaced too much? My copies of the polices from a while back did not have this issue, and somehow I can't find the commit where it was introduced.
We are currently not using these policy definitions directly, but I was doing some work on a PowerShell updater feature and suddenly many policies needed update. I just want to confirm that this is indeed an intended update before I attempt it.
Steps to reproduce

Create a new policy definition manually
Copy policyRule and Parameters from an affected policy definition in ALZ source (e.g. Diag CosmosDB)
Try to save the policy

Screenshots

Hey @torivara,
Thanks for the issue. This is by design and the fix if not deploying via one of our implementation options is documented here https://github.com/Azure/Enterprise-Scale/wiki/ALZ-Contribution-Guide#:~:text=When working within,normal %2C['
The escaping is needed to support the ALZ portal expeirence.


Enable Yew Runtime for wasm32-wasi

Tokio has just landed support for wasm32-wasi.
However, wasi misses some essential features for Yew Runtime to become useful under wasi.
wasi can be used for:

Client-Side Rendering
(wasi in Browser)
Server-Side Rendering
(wasi in JavaScript-capable WebAssembly Runtime & Standalone WebAssembly Runtime)
Static-Site Generation
(wasi in JavaScript-capable WebAssembly Runtime & Standalone WebAssembly Runtime)

This issue tracks the tokio features required to land wasi support for Yew Runtime:

[ ] wasi target currently lacks networking capability in general.
(needed for CSR and SSR.)
This is primarily due to sockets under wasi is not standardised.
There is an alternative proposal for an HTTP interface.
[ ] tokio::fs for wasi.
(needed for SSG and potentially SSR.)

There are some other features that might be desirable before we start to implement the target:

[ ] multi-threading support so multiple CPU cores can be utilised.

@futursolo can you transfer this issue to the correct repository?


Update deploying-kubernetes to use dask_kubernetes.operator.

Currently, deploying-kubernetes shows the classic deployment, instead of the newer dask_kubernetes.operator deployment:
from dask_kubernetes import KubeCluster
cluster = KubeCluster.from_yaml('worker-template.yaml')
cluster.scale(20)  # add 20 workers
cluster.adapt()    # or create and destroy workers dynamically based on workload

from dask.distributed import Client
client = Client(cluster)

@jacobtomlinson is dask_kubernetes.operator your recommended way to deploy things?

Yeah the kubernetes docs in here need a bit of love.


Custom error variants

Some of our error types must be able to be constructed by a user of the crate. Because we cannot foresee how users might want to structure their error types, we add a Custom variant to these types, so that users can return custom error types as they see fit.

bors merge


Tests should be (more) self-contained

Our current tests are not self-contained. Meaning, some of the tests use "global" state, which means the test results can vary depending on how many times they've been run, the order they've been run, etc.
More specifically, the global state is the local blockchain instance. It gets started when the server is started, and then just stays running. This is especially unpredictable for the browser tests, because the blockchain gets started with npm start. You can run the browser tests over and over from there (which is convenient during development). Each time you run the tests, new contracts get created. These contracts can affect following tests.
The specific issue I ran into is that the notifications tests take longer and longer after each test run. After just 4 or 5 they start exceeding the 10ms timeout, and fail.
Anyone should be able to reproduce this:

run the browser tests on localhost:8081
wait for them to finish
reload the page
repeat
watch as the length of the  notifications tests increases after every test run. Soon they will exceed 10ms.

We have a couple of options:

reset the entire blockchain before each test run
provide a test helper for re-deploying our persistent contracts (e.g. listings registry), which is effectively the same as a reset.

The hard part of this is done! I've created a contract service test helper that can be used to start each test in a clean environment: https://github.com/OriginProtocol/origin-js/blob/develop/test/helpers/contract-service-helper.js
Just need someone to update our other tests to use this helper.


Provide Get…Component helpers for transitive dependencies.

For example, the AcidTubeComponent should be able to use GetHealthComponent().Alive() instead of GetAlienBuildableComponent().GetBuildableComponent().GetHealthComponent().Alive().
Apart from being more readable, this also allows the use of the current REGISTER_THINKER macro for entitites that don't directly depend on the ThinkingComponent.

This issue arises very frequently. Providing such transitive helpers would improve code readability quite a bit.


[WIP] Questionnaire

Issue
https://github.com/DroidKaigi/conference-app-2017/issues/77
Overview (Required)
This is WIP.

Sorry, it will be released on next 1.1.0 release

💪 for now.


Move logical optimizer rules out of the core datafusion crate

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As a user of DataFusion for SQL query planning, I would like to be able to use the logical plan optimizer rules without depending on the full datafusion crate containing the execution engine.
Describe the solution you'd like
I think there are two choices here:

Move the optimizer rules up to the datafusion-expr crate which contains the logical plans and expressions and already contains some of the expression rewriting logic that the optimizers depend on. This option would require us to make some changes to remove dependencies on the physical-expr crate as noted in https://github.com/apache/arrow-datafusion/issues/2535
Create a new datafusion-optimizer crate. This is an easier step because we can have it depend on datafusion-physical-expr for now and fix that later. It is also maybe good to use smaller crates where possible and keep different areas of functionality separate.

Tasks:

[ ] https://github.com/apache/arrow-datafusion/issues/2600

Describe alternatives you've considered
None
Additional context
None

@alamb What would your preference be here?

Create a new datafusion-optimizer crate.

I would personally prefer this option as well


ARM image

Clj-kondo image( https://hub.docker.com/r/cljkondo/clj-kondo/tags) does not support ARM architecture.
Clj-kondo install script (https://github.com/clj-kondo/clj-kondo/blob/master/script/install-clj-kondo) does not support ARM.

memo

ghcr.io/graalvm/native-image (arm) can't do tar tar.gz.

Can avoid this by using gunzip & tar.

On Arm, script with /usr/bin/env shebang only looks at the first value of $PATH
On Arm, Installing native-image using gu with community ce image fails

use ghcr.io/graalvm/native-image

memo
current dockerfile result.
https://github.com/xcoo/clj-lint-action/commit/3136fe608dac9d04f276f47fd41574e676b7685f
 Warning: warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create worker GC thread. Out of system resources.
# An error report file with more information is saved as:
# /lint-action-clj/hs_err_pid34.log

Which environment do you use to build the image? I tried on my local environment, but could not reproduce the error.
I found the following issue reporting a similar error:

https://github.com/adoptium/containers/issues/215

And this comment on the issue describes how the error occurs:

https://github.com/adoptium/containers/issues/215#issuecomment-1142046045

According to it, the combination usage of recent Linux distributions (including Ubuntu Jammy Jellyfish) which use the clone3 syscall, and a slightly older version of Docker engine (< 20.10.16) seems to cause the error (I'm using 20.10.17, btw).
I'm not sure if you're getting the same error as the above one, but how about first checking the version of the Docker engine you are using to build the Docker image and updating it if using a version older than 20.10.16?

Thank you for the information.
As you said, the version of docker is old, so I will try to update it.
I built this image on a computer with Intel CPU with Ubuntu 21.04 installed.
$ docker --version
Docker version 20.10.12, build e91ed57
$ docker buildx version
github.com/docker/buildx v0.7.1-docker 05846896d149da05f3d6fd1e7770da187b52a247


auto deploy of API application fails

When I ran the resource group template, I got an error that the connection to github was not available.  I went ahead and deployed it from Visual Studio, which worked fine.

@rsponholtz what were your specific repro steps to get the failure?

This was an issue from our first delivery.  I just ran the resource group template in a brand-new Azure subscription, and the API app was deployed properly.  Thanks!


Recursive function call when trying to execute macro as GM

Hi there! I'm having an issue where macro executions as a GM (invoked by player or by GM) are causing the call stack size to be reached. With some breakpoint debugging, I've narrowed this down to an issue with either Advanced Macros or libWrapper, but since I'm not sure exactly which module is the issue, I'll be creating issues in both to track this issue.
This has been tested with only the 3 following modules active:
Advanced Macros v2.0.0
libWrapper v<IP_ADDRESS>
socketlib v1.0.13

To reproduce, I have a macro named Print-Args which simply prints to the console the scope variable

The permission on this macro for all users is Observer
From the developer console I run the following command:
await(game.macros.getName("Print-Args").execute({}))

This returns the following stack trace:

It seems as though the macro execution recursively invokes the hook defined here. Certainly this is not the expected behavior - which is to execute the macro locally for the GM user.
This is only an issue when the macro is set to execute as GM - it executes successfully when "Execute for Specific User" is set to None.

I could not reproduce this issue with the provided macro, it prints an empty object on the GM side as expected.

Advanced Macros v2.0.0

Is that correct? Why aren't you using v2.0.5?

Interestingly running the auto-update didn't pull the latest version of Advanced Macros - I just uninstalled and reinstalled and pulled v2.0.5, and sure enough it seems to now be working. Guess that's what I get for not checking the releases in GH :) Seeing another issue with execution now, but I'll see that the versions of each library are up to date. Thanks!


error running docker-machine env command on Windows

I am trying to set up docker machine on Windows and this problem has annoyed me for a few days.
I downloaded and installed DockerToolbox-1.9.1a on my Windows, so it came with Virtual Box version 5.0.10. After that I ran this command to create my virtual machine:
docker-machine create --driver virtualbox --engine-insecure-registry docker.pre-prod.ss.local:5000 --virtualbox-hostonly-cidr <IP_ADDRESS>/24 mymachine
Here is what I got:
Waiting for machine to be running, this may take a few minutes...
Machine is running, waiting for SSH to be available...
Detecting operating system of created instance...
Detecting the provisioner...
Provisioning created instance...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
WARNING >>>
This machine has been allocated an IP address, but Docker Machine could not
reach it successfully.

SSH for the machine should still work, but connecting to exposed ports, such as
the Docker daemon port (usually <ip>:2376), may not work properly.

You may need to add the route manually, or use another related workaround

This could be due to a VPN, proxy, or host file configuration issue.

You also might want to clear any VirtualBox host only interfaces you are not using

The machine was created successfully. So I ran the docker-machine env command:
docker-machine env --shell=powershell mymachine| Invoke-Expression
and I got:
Error running connection boilerplate: Error checking and/or regenerating the certs: There was
icates for host "<IP_ADDRESS>:2376": dial tcp <IP_ADDRESS>:2376: connectex: No connection
target machine actively refused it.
You can attempt to regenerate them using 'docker-machine regenerate-certs name'.
Be advised that this will trigger a Docker daemon restart which will stop running containers.

Running docker version returned
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   a34a1d5
 Built:        Fri Nov 20 17:56:04 UTC 2015
 OS/Arch:      windows/amd64
An error occurred trying to connect: Get http://localhost:2375/v1.21/version: dial tcp
 connection could be made because the target machine actively refused it.

Can someone help to point out the direction to fix this issue? It is really annoying to set up docker on Windows. Thank you very much.

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

Thanks for reporting, and sorry that you're having a bad experience getting docker to run on Windows.
I see docker toolbox 1.9.1b with docker-machine 0.5.2 was released a couple of hours ago; https://github.com/docker/toolbox/releases perhaps this issue is fixed, could you give it a try?
Overall, I think this issue is better discussed in the docker-machine issue tracker, because this is an issue with docker-machine, not docker (engine). If 1.9.1b does not resolve your issue, could you open this issue in the docker-machine issue tracker? https://github.com/docker/machine/issues

Hi
I downloaded the new docker toolbox 1.9.1b and did not encounter this problem any more.
Thanks

Good to hear, @tonyvu2014 thanks for reporting back.
I'll close this issue


docs: provide example Stellar transactions to invoke a contract

This commit provides JavaScript and Python examples to build a transaction that invokes the increment function of a deployed example contract.
Refs: #159

resolves #159

Preview is available here:http://soroban-docs-pr578.previews.kube001.services.stellar-ops.com/


Make Some Changes to Frontend Of My application.

Hi,
I want to make some changes to the frontend of my application. when I complied with my front-end code. I am facing some errors. please let me know how to resolve this error.

Thanks

Please provide us with the following information:

This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful

Thanks! We'll be in touch soon.

Please try running npm install then npm run build first and trying the npm run dev after that.
Those commands are run automatically when you do azd deploy but if you're testing locally and haven't done it yet, you'll need to manually install and build


[CSL-1408] Rework LRC types

Old 'Richmen' type was bad. It assumed that there is always at least
one richman, but I don't think we can rely on it. Even if we could, it would
be better to throw error in 'MonadThrow' rather than use 'error'. Also
you almost always need to do lookup, so list is not good.
'RichmenStake' was renamed to 'RichmenStakes' because it makes more sense.

Again, only one appveyor build succeeded and another one hangs. Given that the branch is already synchronized with master, I think it's enough.


Release 0.44.0 does not belong to the current repository

System Info
None
Reproduction
This commit is not part of the current repo : https://github.com/bitsandbytes-foundation/bitsandbytes/commit/9841697480a9684cfd90fc0f252aad82c26717ae
Thus the tagged commit is not : https://github.com/bitsandbytes-foundation/bitsandbytes/tree/v0.44.0
The head is : https://github.com/bitsandbytes-foundation/bitsandbytes/commits/main/
Expected behavior
Correctly tag and release the v0.44.0 for the current repository

Hi @ccoulombe
The release commit is pushed now.

@matthewdouglas Thanks!
I think it is pertinent that it is also in main. It is currently is not present, yet the tag exists : https://github.com/bitsandbytes-foundation/bitsandbytes/commits/main/


Upgrade bindgen from 0.58 to 0.61

Removes the unmaintained ansi_term dependency from the dependency tree. The only breaking changes in 0.59 and 0.60 are MSRV bumps, according to their changelog.

0.61 was released yesterday, so I bumped again. Doesn't look like it contains any changes that would require druid-shell to adjust anything.


Authentication methods for any Auth Collection, not only Users

Hi,
First, apologies if I made more changes than strictly necessary. This is a proposal.
In PocketBase you can have multiple Auth Collections, and then Authenticate over them.
I created CollectionAuthService with authenticate methods with custom Collection name; UserService uses that class to authenticate to collection users
I have seen that the admin and user authentication methods only change in the url: I have abstracted it in BaseAuthService: AdminService and CollectionAuthService inherits from this class.
Then, AuthModel is a new model for Admin and User authentication responses
In short: it is possible to access the authentication methods of any Auth Collection
<EMAIL_ADDRESS>"myPassword");

I close this PR: I'm working on that.
I will try to generalize more the code in order to accept other Models for Auth Collections: with more fields for example

i am on mobile right now. am i missing something, why do i need this?
as long as i am authenticated, i set the headers for the authentication. why do i need to authenticate a specific collection?

In PocketBase you can authenticate as Admin or as User by default. But also, you can create an Auth Collection, for example "authors" and "clients" each Auth collection accepts authenticate over the collection.
In the example, you could authenticate as an "author" or as a "client". This can be useful for collection rules.
Take a look: auth-collection

ah i see, i guess this was added with the 0.8 update and i just completly overlooked this, haha.
thanks for implementing it :)


Add postfacilitiescsv.py for exercising the facility match API

Overview
This command line script reads a CSV with name, address, and country_name/country columns and POSTs each line to the facility matching API. It was designed for load testing the matching API.
For convenience the token and root URL can be passed as flagged arguments or set as TOKEN and ROOTURL environment variables. The values default to those that will work with the development environment populated with resetdb.
The -s,--stop argument allows running tests with small numbers of requests without needing to create input CSVs of different lengths.
Connects https://github.com/open-apparel-registry/open-apparel-registry-clients/issues/11
Demo
$ ./tools/postfacilitiescsv.py -d -s 3 local/f.csv
url http://localhost:6543/api/facilities/?create=false&textonlyfallback=true
{"name": "1973", "address": "Portland ME 04103 USA", "country": "United States"}
200 b'{"matches":[],"item_id":1020,"geocoded_geometry":{"type":"Point","coordinates":[-70.2720042,43.6892051]},"geocoded_address":"Portland, ME 04103, USA","status":"NEW_FACILITY"}'
{"name": "1st Makerspace", "address": "Fishers IN 46038 USA", "country": "United States"}
200 b'{"matches":[],"item_id":1021,"geocoded_geometry":{"type":"Point","coordinates":[-86.0223611,39.9645049]},"geocoded_address":"Fishers, IN 46038, USA","status":"NEW_FACILITY"}'
{"name": "1st Makerspace", "address": "Fishers IN 46038 United States", "country": "United States"}
200 b'{"matches":[],"item_id":1022,"geocoded_geometry":{"type":"Point","coordinates":[-86.0223611,39.9645049]},"geocoded_address":"Fishers, IN 46038, USA","status":"NEW_FACILITY"}'

Testing Instructions

Run ./scripts/resetdb
Download
facilities-10.csv.txt
Run ./tools/postfacilitiescsv.py --debug {path-to}/facilities-10.csv.txt and verify that the first result is MATCHED and the other 9 are NEW_FACILITY
Run ./tools/postfacilitiescsv.py --debug --stop 3 --pause 2000 {path-to}/facilities-10.csv.txt and verify the processing pauses between records and stops after 2 records.
Run TOKEN=foo ./tools/postfacilitiescsv.py --debug --stop 1 {path-to}/facilities-10.csv.txt and verify there is an invalid token message.
Run ROOTURL=http://example.com ./tools/postfacilitiescsv.py --debug --stop 1 {path-to}/facilities-10.csv.txt and verify a 404 response

Checklist

[ ] fixup! commits have been squashed
[ ] CI passes after rebase
[ ] CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines

To generate test data for exercising the API I went through the following steps:

Downloaded the full list of facilities from openapparel.org and used the following script to extract only the data we need:

#!/usr/bin/env python

import sys
import fileinput
import csv

# Read a CSV downloaded from OAR search results on standard input and
# write a 5-column CSV to standard output suitable for uploading as a
# contributed list.

# USAGE
#
# split_download < facility_list.csv > facility_list_to_upload.csv

csv_reader = csv.reader(fileinput.input(), delimiter=',')
next(csv_reader)
csv_writer = csv.writer(sys.stdout)
csv_writer.writerow(['country', 'name', 'address', 'lat', 'lng'])
for row in csv_reader:
    csv_writer.writerow([row[4], row[1], row[2], row[5], row[6]])

Used following bash function (taken from https://stackoverflow.com/a/20721203) to split that file into 5000 record chunks and copied those chunks to data-dumps-for-testing/segmented-prod-csv on the file share. NOTE that this uses gsed which I installed on my Mac via homebrew because the sed on macOS works differently than GNU sed.

splitCsv() {
    HEADER=$(head -1 $1)
    if [ -n "$2" ]; then
        CHUNK=$2
    else
        CHUNK=1000
    fi
    tail -n +2 $1 | split -l $CHUNK - $1_split_
    for i in $1_split_*; do
        gsed -i -e "1i$HEADER" "$i"
    done
}

Ran ./scripts/resetdb in development
Logged in to development as<EMAIL_ADDRESS>uploaded the first 5000-record chunk and processed it with management commands using a bash helper function

function batch_process {
    ./scripts/manage batch_process --list-id $1 --action parse  && \
    ./scripts/manage batch_process --list-id $1 --action geocode  && \
    ./scripts/manage batch_process --list-id $1 --action match;
}

batch_process 16

Refreshed the list page, filtered by the status of POTENTIAL_MATCH and resolved all potential matches.
Repeated the process for each chunk, logging in as a different<EMAIL_ADDRESS>user.
Once all the chunks were processed I used pg_dump with no arguments to dump the dev database with ~42000 facilities to a .sql file and put it on the file share.

To try and simulate the production outage conditions I created tools/devheathcheck.sh to curl the health check at 30 second intervals.

Stop the dev server
Start running tools/postfacilitiescsv.py passing it one of the 5000 record chunks

./tools/postfacilitiescsv.py -d  ~/Downloads/oar-prod-facilities/facilities.csv_split_aa.csv

In another terminal start running tools/devheathcheck.sh
In a third terminal start ./scripts/server

I ran this for 20 minutes and did not see any crashing in development.
To test staging:

Run tools/postfacilitiescsv.py with arguments for connecting to staging

./tools/postfacilitiescsv.py -d -t abc123... -r https://staging.openapparel.org  ~/Downloads/oar-prod-facilities/facilities.csv_split_aa.csv

Stop the staging app cluster tasks so they are restarted

I similarly ran this test for 20 minutes and did not see any killing and restarting of the ECS tasks. I also tried running 4 instances of ./tools/postfacilitiescsv.py simultaneously using different file chunks and still did not see any service crashing.

Superseded by #1117


[stress] Single dashboard with a breakdown of the test job status

As part of finalizing the first phase we want to have a simple dashboard that leads can look at to see all of the active tests in the cluster. Right now the tests are run at least once a week, which means we can just scrape the cluster stats (maybe for a couple of weeks) and display:

Test name
Started On
Time running
LastStatus

go-sb-infinitesend
2021-12-01
1d
Active

go-sb-infinitesend
2021-11-28
3d
Failed

This should give enough starting information for leads to get an idea of how far along things are, which tests are running, etc...

@ckairen this will be a good task for learning KQL and more about all the different telemetry sources from the stress tests and cluster services.

Just a note, a new set of tests is going to deploy each week. There'll need to be some simple way of tracking a set of tests, and not just showing them all at once.

Tests have a deployId label which is set to the deployment date (YYYYMMDD.REVISION), so we could parse that. Also we could add another label and/or grab the actual kubernetes deployment date and bin that.


Suddenly all https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons are broken

Environment
Docker
Version
0.14.2
Describe the problem
Suddenly all app icons linked to the mentioned site have disappeared. Yesterday everything was ok, today it's like this

Those that remain are in the /icons subfolder manually linked by me.
Do I have to change any entry/ENV?
I read that in some countries https://cdn.jsdelivr.net is blocked (why?), but here from Italy I never had a problem for at least a year until today. As of now I cannot open that link.
Logs
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8123
ERROR  Unexpected response: Invalid URL
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:5150
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:101
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:3129
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:2342
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:443
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:51515
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8482
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:6806
ERROR  Unexpected response: write EPROTO 107094AFFFFF0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8686
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8989
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8096
ERROR  Unexpected response: Maximum number of redirects exceeded
? Saving updated configuration of '2023-04-01' config.
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:5150
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:101
ERROR  Unexpected response: Invalid URL
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:51515
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:6806
ERROR  Unexpected response: write EPROTO 107094AFFFFF0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:2342
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:443
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8096
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:3129
ERROR  Unexpected response: Socket connection timeout
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8686
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8989
ERROR  failed to process request to app 'lidarr' (855dc700-d556-4e9f-b079-ab71bc30a882): Error: connect ECONNREFUSED <IP_ADDRESS>:8686
ERROR  failed to process request to app 'sonarr' (41d714ac-e7ca-4cd8-b72e-ac6eacadb3a7): Error: connect ECONNREFUSED <IP_ADDRESS>:8989
ERROR  Unexpected response: Socket connection timeout
ERROR  Unexpected response: Socket connection timeout
ERROR  Unexpected response: Socket connection timeout
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8482
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8123
ERROR  Unexpected response: Socket connection timeout
WARN  A total of 2 apps for the calendar widget failed
ERROR  Unexpected response: Maximum number of redirects exceeded
ERROR  Unexpected response: Invalid URL
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:5150
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:101
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:3129
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:2342
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:443
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8686
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8989
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8096
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:51515
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:6806
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8482
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8123
ERROR  Unexpected response: write EPROTO 107094AFFFFF0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
ERROR  Unexpected response: Maximum number of redirects exceeded
ERROR  Unexpected response: Invalid URL
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:5150
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:101
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:3129
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:2342
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:443
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:51515
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:6806
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8482
ERROR  Unexpected response: write EPROTO 107094AFFFFF0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8686
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8989
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8096
ERROR  Unexpected response: connect ECONNREFUSED <IP_ADDRESS>:8123
ERROR  Unexpected response: Maximum number of redirects exceeded

Context
I use Vivaldi Browser for Windows. The only strange thing that happened before this is that I tried to test Homarr on LibreWolf and PaleMoon. In both cases as soon as I logged in, the dashboard was messed up, I had to set the default config I use, but on PaleMoon it was not available, only older configs were. In the end I gave up (Homarr on PaleMoon was very sluggish).
Tried to restart container a couple of times, but the problem persists.
Please tick the boxes

[X] I confirm that I attached the proper logs
[X] I've read the docs
[X] I've checked for duplicate issues
[X] I've tried to debug myself

Just wanted to add that I'm seeing the same issue here.

I want to add that I have this issue as well, both before and after pulling a new Docker image.

It works fine for me on the demo. Do you guys use a DNS blocking solution ? Idk why someone would add a CDN to their blocklist

The main blocklist supported by pihole looks to be blocking it.

Yes, that's it, I have whitelisted it and now I can see the icons again.
!Solved

There's an open issue on stevenblacks github opened 15 hours ago asking him to remove cdn.jsdelivr.net from the list.  I actually broke functionality of another container of mine I just found.


Use the default_engine provided in the config

Thanks for the pull request! I fail to understand which problem it solves. "default" gets resolved to default_engine anyway.

Sorry for the late response, I didn't get aware you have replied here.
You are right, at least at the moment I don't see what would be the difference and I checked the plugin and it is working alright without this change. Can't remember what was my problem at the time I created this pull request, so I close it.


Support generating a custom map and using non-copying wrappers for serialization

But then I'm allocating a List on every call.
Again – will benchmark. :-)
On Tue, Oct 3, 2017 at 12:54 PM, Jacob MacDonald<EMAIL_ADDRESS>wrote:

@jakemac53 commented on this pull request.
In json_serializable/lib/src/json_serializable_generator.dart
https://github.com/dart-lang/json_serializable/pull/48#discussion_r142505109
:

   if (fieldsList.every((e) => _includeIfNull(e, classIncludeIfNull))) {

     // write simple `toJson` method that includes all keys...

     //_writeToJsonSimple(buffer, fields);

     var jsonKeys = fields.values.map(_safeNameAccess).join(', ');

     // TODO(kevmoo): maybe put this in a static field instead?

     //               const lists have unfortunate overhead

     buffer.writeln('''  @override

Iterable get keys => const [${jsonKeys}];
+''');

   } else {

     // At least one field should be excluded if null

     //_writeToJsonWithNullChecks(buffer, fields, includeIfNull);

     buffer.writeln('@override\nIterable<String> get keys sync* {');

You could also not use sync* and just build up a list or w/e, if you are
concerned about the performance
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/json_serializable/pull/48#discussion_r142505109,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABCipl_HNEEJFU4YH48TBQFTivwRspVks5sopENgaJpZM4PsZW3
.

@jakemac53 – this is ready for review.


Error converting circular structure to JSON

Here is my plunkr
http://plnkr.co/edit/CaLlgu1NhwCTH88kO56S?p=preview
my columns (my list im trying to bind to) look like this
    [
  {
    "name": "item 1",
    "guid": "C2BEADE9-95A8-421A-B3C0-EC50CCD5556D"
  },
  {
    "name": "item 2",
    "guid": "A2A57D18-EB15-4D59-8148-824231AC5069"
  }
]

Thanks for reporting, but it's not related to this module.


prime the repo

Primes the repo from https://github.com/openshift/openshift-apiserver/pull/11

we'll start here.


npm: migrate from bower

cc @drjova @greut

:+1:

@drjova if you have any branch with WIP can you share it with @greut?

still a WIP, I'll make a PR shortly.

closed via #11


display issues with lab

From @peterennis on January 8, 2017 22:13
Windows 10

Copied from original issue: driftyco/ionic-preview-app#83

A possible solution: pass ionicLab=true on the URL to the iframe so the preview app can grab the query param to determine when it's in lab.


Exception is thrown when running two queries in parallel using two DIFFERENT DbContexts

I've an EF 1.1 application which runs into troubles in a specific method where we are running two queries in parallel.
Since EF is not thread safe, we configured it to have transient life time in Startup.cs
services.AddDbContext<AltoDbContext>(options =>
{
	options.UseSqlServer(Configuration.GetConnectionString("Sql"),
		b => b.MigrationsAssembly("Alto.Web")).ConfigureWarnings(x => x.Log());
}, ServiceLifetime.Transient);

For 30% of the requests we get an exception:

System.InvalidOperationException: An attempt was made to use the context while it is being configured.

So obviously we have a race condition, but the question is what are we doing wrong?
Maybe we are missing the obvious, but since we get a different context for each thread, shouldn't it be enough?
I had an EF 1.0 application a while back and had something very similar to this and had no problems when we configured the DbContext to be transient.
System.InvalidOperationException: An attempt was made to use the context while it is being configured. A DbContext instance cannot be used inside OnConfiguring since it is still being configured at this point.
   at Microsoft.EntityFrameworkCore.DbContext.InitializeServices()
   at Microsoft.EntityFrameworkCore.DbContext.get_InternalServiceProvider()
   at Microsoft.EntityFrameworkCore.Infrastructure.AccessorExtensions.GetService[TService](IInfrastructure`1 accessor)
   at Microsoft.EntityFrameworkCore.DbContext.get_QueryProvider()
   at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.<.ctor>b__3_0()
   at Microsoft.EntityFrameworkCore.Internal.LazyRef`1.get_Value()
   at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Expression()
   at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ParameterExtractingExpressionVisitor.VisitMember(MemberExpression memberExpression)
   at System.Linq.Expressions.ExpressionVisitor.VisitArguments(IArgumentProvider nodes)
   at System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(MethodCallExpression node)
   at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ParameterExtractingExpressionVisitor.VisitBinary(BinaryExpression binaryExpression)
   at System.Linq.Expressions.ExpressionVisitor.VisitLambda[T](Expression`1 node)
   at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ParameterExtractingExpressionVisitor.VisitLambda[T](Expression`1 node)
   at System.Linq.Expressions.ExpressionVisitor.VisitUnary(UnaryExpression node)
   at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ParameterExtractingExpressionVisitor.VisitUnary(UnaryExpression unaryExpression)
   at System.Linq.Expressions.ExpressionVisitor.VisitArguments(IArgumentProvider nodes)
   at System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(MethodCallExpression node)
   at System.Linq.Expressions.ExpressionVisitor.VisitArguments(IArgumentProvider nodes)
   at System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(MethodCallExpression node)
   at System.Linq.Expressions.ExpressionVisitor.VisitArguments(IArgumentProvider nodes)
   at System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(MethodCallExpression node)
   at System.Linq.Expressions.ExpressionVisitor.VisitArguments(IArgumentProvider nodes)
   at System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(MethodCallExpression node)
   at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ParameterExtractingExpressionVisitor.ExtractParameters(Expression expression)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExtractParameters(Expression query, QueryContext queryContext)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteAsync[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1.System.Collections.Generic.IAsyncEnumerable<TResult>.GetEnumerator()
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.<ToListAsync>d__129`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Alto.Logic.Upload.HomeLogic.<>c__DisplayClass4_1.<<GetModelAsync>b__0>d.MoveNext() in xxxxxxxxxxxxxxxxxxxxxxx.cs:line 41
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Alto.Logic.Upload.HomeLogic.<GetModelAsync>d__4.MoveNext() in xxxxxxxxxxxxxxxxxxline 147
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Alto.Web.Controllers.HomeController.<Index>d__4.MoveNext() in xxxxxxxxxxxxxxxxxline 238
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextResourceFilter>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.<Invoke>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()

Steps to reproduce

public async Task<HomeModel> GetModelAsync()
{
	const int itemsInStrip = 10;
	List<ProductCardModel> recommendedProductsCards = null;
	List<ProductCardModel> newProductsCards = null;

	List<BenefitCardModel> recommendedBenefitsCards = null;
	List<BenefitCardModel> newBenefitsCards = null;
	var productsTask = Task.Run(async () =>
	{
		using (var productsContext = _serviceProvider.GetService<AltoDbContext>())
		{
			var recommendedProducts = await productsContext.Products
				.Where(x => x.DeleteDate == null && x.IsPublished &&
							_context.PromotedProducts.Any(pp => pp.PromotionType == PromotionType.Recommended && pp.ProductId == x.Id))
				.Include(x => x.Images)
				.AsNoTracking()
				.Take(itemsInStrip)
				.ToListAsync();

			var alreadyfetchedIds = recommendedProducts.Select(x => x.Id).ToList();
			if (alreadyfetchedIds.Count != itemsInStrip)
			{
				var randomProducts = await productsContext.Products
					.Where(x => x.DeleteDate == null && x.IsPublished &&
								!alreadyfetchedIds.Contains(x.Id))
					.Include(x => x.Images)
					.AsNoTracking()
					.Take(itemsInStrip - alreadyfetchedIds.Count)
					.ToListAsync();
				recommendedProducts.AddRange(randomProducts);
			}

			recommendedProductsCards = _mapper.Map<List<ProductCardModel>>(recommendedProducts);
			alreadyfetchedIds = recommendedProductsCards.Select(x => x.Id).ToList();

			var newProducts = await productsContext.Products
				.Where(x => x.DeleteDate == null && x.IsPublished &&
							_context.PromotedProducts.Any(pp => pp.PromotionType == PromotionType.New && pp.ProductId == x.Id) &&
							!alreadyfetchedIds.Contains(x.Id))
				.Include(x => x.Images)
				.AsNoTracking()
				.Take(itemsInStrip)
				.ToListAsync();

			if (newProducts.Count != itemsInStrip)
			{
				alreadyfetchedIds.AddRange(newProducts.Select(x => x.Id));

				var randomProducts = await productsContext.Products
					.Where(x => x.DeleteDate == null && x.IsPublished &&
								!alreadyfetchedIds.Contains(x.Id))
					.Include(x => x.Images)
					.AsNoTracking()
					.OrderByDescending(x => x.InsertDate)
					.Take(itemsInStrip)
					.ToListAsync();
				newProducts.AddRange(randomProducts);
			}
			newProductsCards = _mapper.Map<List<ProductCardModel>>(newProducts);
		}
	});

	var benefitsTask = Task.Run(async () =>
	{
		using (var benefitsContext = _serviceProvider.GetService<AltoDbContext>())
		{
			var recommendeBenefits = await benefitsContext.Benefits
				.Where(x => x.DeleteDate == null && x.IsPublished &&
							_context.PromotedBenefits.Any(pb => pb.PromotionType == PromotionType.Recommended && pb.BenefitId == x.Id))
				.Include(x => x.Images)
				.AsNoTracking()
				.Take(itemsInStrip)
				.ToListAsync();
			var alreadyfetchedIds = recommendeBenefits.Select(x => x.Id).ToList();
			if (alreadyfetchedIds.Count != itemsInStrip)
			{
				var randomBenefits = await benefitsContext.Benefits
					.Where(x => x.DeleteDate == null && x.IsPublished && !alreadyfetchedIds.Contains(x.Id))
					.Include(x => x.Images)
					.AsNoTracking()
					.Take(itemsInStrip - alreadyfetchedIds.Count)
					.ToListAsync();
				recommendeBenefits.AddRange(randomBenefits);
			}

			recommendedBenefitsCards = _mapper.Map<List<BenefitCardModel>>(recommendeBenefits);
			alreadyfetchedIds = recommendedBenefitsCards.Select(x => x.Id).ToList();

			var newBenefits = await benefitsContext.Benefits
				.Where(
					x =>
						x.DeleteDate == null && x.IsPublished &&
						_context.PromotedBenefits.Any(pp => pp.PromotionType == PromotionType.New && pp.BenefitId == x.Id)
						&& !alreadyfetchedIds.Contains(x.Id))
				.Include(x => x.Images)
				.AsNoTracking()
				.Take(itemsInStrip)
				.ToListAsync();

			if (newBenefits.Count != itemsInStrip)
			{
				alreadyfetchedIds.AddRange(newBenefits.Select(x => x.Id));

				var randomBenefits = await benefitsContext.Benefits
					.Where(x => x.DeleteDate == null && x.IsPublished && !alreadyfetchedIds.Contains(x.Id))
					.Include(x => x.Images)
					.AsNoTracking()
					.OrderByDescending(x => x.InsertDate)
					.Take(itemsInStrip)
					.ToListAsync();
				newBenefits.AddRange(randomBenefits);
			}

			newBenefitsCards = _mapper.Map<List<BenefitCardModel>>(newBenefits);
		}
	});

	await Task.WhenAll(productsTask, benefitsTask);

Sometimes the exception is thrown from this line:
var recommendeBenefits = await benefitsContext.Benefits ....

And sometimes it's from this line:
var recommendedProducts = await productsContext.Products

Further technical details
EF Core version: 1.1
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE:  Visual Studio 2015

@gdoron What is _context set to?

@ajcvickers OMG. that's a DbContext, injected by DI (shared between the threads), I've no idea how I missed it!


Implement Direct3D10 rendering mode.

Saw a while back there was an option to actually force D3D10 and thought it'd be nice to add as an extra rendering mode for testing and possibly increase performance for older cards, it also supports True Alt+Enter so I've added a check to see if either D3D11 or D3D10 is enabled. I also removed the last remnant comment mentioning ReShade.
P.S: I don't actually have a card that is that ancient to get D3D10 forced on Roblox (your card has to be like very very ancient to get D3D10.0)
Here's a screenshot of the GPU Renderer showing as D3D10.0:

I saw this flag too, but didn't really think it'd be worth adding since this is basically a option that nobody needs. But sure, why not.


Latest Mythic Metals crashes with this mod

1.18.2
latest.log

This issue is known, and is related to the 1.18.2 version of Incubus Core
I have already made a pull request backporting the fix for this, which you can see here: https://github.com/devs-immortal/Incubus-Core/pull/23

ah ok, I downloaded the PR.


epicov: unable to convert clusters.json to epicov format

convert_json in gisaid_utils.py is throwing an error:
Traceback (most recent call last):
  File "covizu/test_convert_json.py", line 8, in <module>
    epicov_data = gisaid_utils.convert_json(epifile, provision)
  File "covizu/utils/gisaid_utils.py", line 292, in convert_json
    for coldate, accn, location, name in samples:
ValueError: too many values to unpack (expected 4)

Seems to be an edge case. Traced the issue to a sample collected on 23-01-10. Need to figure out why there are 5 items in this list for the sample instead of 4

@GopiGugan reports that one of the sequence names contained a pipe character.  Adding a filter to catch for this edge case.


contentInsetAdjustmentBehavior automatic not applied on ScrollView in tab screen

Current behaviour
Not being applied, so safe areas are being ignored.
Expected behaviour
Should behave the same in tab as it does outside of a tab.
Code sample
https://snack.expo.io/H1_oI9Wf7
What have you tried
I tried the same screen component within a stack and it applied the insets as expected. I also tried it on its own, without any navigation, and got the same result as in stack.
Your Environment
<EMAIL_ADDRESS>and react-native 0.55.4

Any update on this issue?  Or at least a workaround?

I guess we need an iPhone X in order to reproduce this? Hard for people to fix if they can't reproduce without a specific expensive device 😞

not that i know of. PR welcome, not working on this right now


Add financial reports

Adds a section with financial reports to https://maplibre.org/about/reports

@HarelM ready for review


Help with Live Demo

Hi,
I tried to open the live demo from the link https://modeldepot.github.io/tfjs-yolo-tiny-demo/ ,
but it's not working. No detection is made, and I waited for minutes. I check the Chrome console and it gives me error:
C:\fakepath(142,7-116): warning X3569: loop executes for more than 255 iterations (maximum for this shader target), forcing loop to unroll
C:\fakepath(142,7-116): warning X3569: loop executes for more than 255 iterations (maximum for this shader target), forcing loop to unroll
C:\fakepath(142,7-116): warning X3569: loop executes for more than 255 iterations (maximum for this shader target), forcing loop to unroll
C:\fakepath(142,7-116): warning X3569: loop executes for more than 255 iterations (maximum for this shader target), forcing loop to unroll
C:\fakepath(142,7-116): error X3511: unable to unroll loop, loop does not appear to terminate in a timely manner (139 iterations) or unrolled loop is too large, use the [unroll(n)] attribute to force an exact higher number
C:\fakepath(135,7-104): error X3511: forced to unroll loop, but unrolling failed.
C:\fakepath(128,7-104): error X3511: forced to unroll loop, but unrolling failed.
Warning: D3D shader compilation failed with default flags. (ps_3_0)
Retrying with avoid flow control
...
I don't know what is went wrong.
I am using Windows 7 latest Chrome to browse the live demo, without a GPU on my PC.
Perhaps it is because of I didn't have a GPU?
I need to confirm it.
Thank you.

can you provide where the error is coming from? specific file name or trace stack ?

Sorry for the "non-specific".
Somehow, the error is come from "https://modeldepot.github.io/tfjs-yolo-tiny-demo/src.367e2190.js"


release update to crates.io

I just realized that the recently merged updates haven't been published publicly yet.

Sorry again for the log wait :sweat:
Published to crates.io as v0.2.0: https://crates.io/crates/json-resume


KYLIN-3722 Disable limit push down after join

Can one of the admins verify this patch?

Local CI test is running.

IT test not pass because IT code should be changed.

IT test now pass.


Enable and disable verification methods

How do we enable/disable verification methods per user in the same way you can with Duo? We have some users that should only be able to use a phone call.

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

ID: 84b26750-880c-8f14-1628-436293de915e
Version Independent ID: 518b727f-79e8-b5c2-bcb3-ff4de3444c6f
Content: Configure Azure Multi-Factor Authentication - Azure Active Directory
Content Source: articles/active-directory/authentication/howto-mfa-mfasettings.md
Service: active-directory
Sub-service: authentication
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@OffColour, Thanks for the question! We are taking a look into this and will get back to you soon.

Today this is an organization wide setting. Supported methods can be enabled for SSPR, MFA, or both. The product team is looking into supporting this in the future but no dates to share at this point.

#please-close


Fix paypal link in about/features/payroll. Fixes #3887

Can't merge this until Builds are failing for master.

Wasn't the master builds issue fixed? /me checks..

Issue - https://github.com/gratipay/gratipay.com/issues/3885

That seems to suggest that the issue would've happened only in the first week of jan...

Ah - the loop runs twice, so that means two weeks

@aandis - Can you send in a separate PR for #3885? We'll rebase this on that once it's merged..
Fix should be straightforward - feel free to use https://github.com/liberapay/liberapay.com/commit/73626e70bf63d417df41d129b8adf4ee99bdf31d

@rohitpaulk are you sure the fix is straightforward? Maybe tests are broken, because iter_payday_events is broken on a year's boundary?

@rohitpaulk I am still getting acquainted with the codebase. I'll give it a shot. ;)


[ListArticles] add reply type filter

This PR adds replyTypes filter to ListArticles so that users can list articles with specified reply types.

Coverage increased (+0.05%) to 86.826% when pulling 611b69977c36b43d90ee6d17cb58fdc314debc25 on ListArticle-types into 3ef73e43b26c413c6b67dd4f31f36058bc9e6e1f on master.


The prices never reflect the API (when manually calling)

Hello,
I can never work out why - but my prices never reflect what the actual api itself tells me (ENTSOE NL prices).... take for example just now:

10th April 2023
00:33

If I call this on the API, I get the following data for this hour:
 <Point>                 <position>1</position>                 <price.amount>98.21</price.amount>             </Point>
So - if I divide this by 1000 - I get to 9.821c kwh. This reflects what my energy company tells me (Frank Energie - which does match the ENTSOE pricing when I call the API manually).
But, in HA - the current market price (sensor.nl_energy_prices_current_electricity_market_price) tells me 0.217c kw/h.
I have no VAT and no custom price template added.
I'm sure this is probably something simple I am missing - but I can't seem to work out where I am going wrong with this.

I have the same issue here. The current_price is never the same as what Nordpool publishes. Nordpool and my provider's price aliigns with each other, but the ENTSO-e entity is always off.

v0.4.0 is released this version contains fixes that solve a lot of warnings and known issues. This issue is probably also solved.
Please update to the latest version.
Closing this issue for now. If you still have issue please feel free to open a new issue.


The footer needs to be mobile responsive

Describe the bug

Footer is not mobile responsive.

To Reproduce
Steps to reproduce the behaviour:

Go to the homepage
Scroll down to the footer
Switch to the mobile view
See the error

Expected behavior

The footer should be mobile responsive

Screenshots

I would like to work on this issue.

Awesome!


[⚡TEST ] Sockets over internet without port forwarding ?

Expected behavior
After inspecting your code, I saw that you are creating a ServerSocket with some port without forwarding the port. Even though it works for localhost, it would fail (ConnectionException on the client-side) when connecting over the internet.
https://github.com/CodyNeeraj/Socketty-Server/blob/b1690649800e7d3f9123e9d329d6879ad3cb9a86/src/main/ServerMain.java#L578
Actual behavior
I am not aware of the technology you have used to connect clients over the internet, nor I have used or tested this program. I just want to know if it actually works and if yes, please let me know How.
Thank you

Hi,
Apologies connecting this late, but the code approach i used is to give the IP string manually every-time we need to connect to server where the host server is running. i was thinking to make a project revision and publish a new version that supports port forwarding by use of open technologies that usually we can find online as well.

Yes ! You should use port forwarding to expose your services over internet. A server and a client could not be connected until their ports are open to internet. Your project will fail when used on WAN.


C100K MQTT Connections Support with MQTT over AMQP

Hi,
I am in a study phase for the choice of an MQTT solution for data exchange with a fleet of 90000 android smartphones.
Our back-end is based on kafka (https://github.com/strimzi/amqp-kafka-bridge/issues/83).
My question: are these components (https://github.com/EnMasseProject/enmasse/tree/master/documentation/design_docs/mqtt-over-amqp) and (https://github.com/strimzi/amqp-kafka-bridge) designed to support 100K> connections?
If yes, did you have a link to an example / bench to test quickly?
Thanks
Youcef HILEM

Hi,
You say that this bridge is evolving to support multiple protocols.
What are these protocols ?
Our primary need is for mobile device protocols.
I have already explored the two solutions (https://github.com/zalando/nakadi) and (https://github.com/allegro/hermes) that offer HTTP for kafka.
Thanks
Youcef HILEM

Hi,
I see that such a solutions are naming themselves as "message broker" or "distribuited abstraction" on top of Kafka. In our case, we have a gateway/bridge for translation protocol so something more lightweight but I should dig into the above solutions for having a better idea about what they offer. Regarding other protocols support, HTTP is on the roadmap as well.

Hi,
It seems that Vert.x Proton is Android compatible (https://github.com/eclipse/vert.x/issues/2110).
In this case I can do without the gateway mqtt like (https://github.com/ppatierno/amqp-kafka-demo#amqp-vertx-proton).
Then the question becomes simple: is this bridge designed to support a load of 100K conccurent connection ?
Thanks
Youcef HILEM

@yhilem If you use vert.x proton (AMQP) on the client side (which I would recommend over MQTT for your case) one option is to put a Qpid Dispatch Router in front of the bridge. It is designed to handle a large number of connections (and you can connect multiple routers if you need to handle more) and a high throughput. You can then configure it to route traffic to the bridge (of which you can configure multiple instances) if needed based on your load. The router is quite flexible if you want to distribute data to multiple data centers etc.
The next question is what throughput and latency requirements do you have for your clients?

thanks @lulf for jumping into it. I'd like to add that it's also possible to have more than one router in order to handle more connections to the devices side. In such a configuration (one or more router), the bridge can work in "client" mode connecting to the broker with only one connection so it doesn't need to handle tons of connections relying on the router(s). Using the AMQP protocol, which is multiplexed, the attached links on the router side "will live" as links into this one connection to the bridge in order to read/write Kafka topic on the other side then. Of course, having more than one bridge can help based on the load.

Thank you.
In this case I still have to study Qpid Dispatch Router and see how to use some Enmasse components  (http://enmasse.io/) on our RedHat Openshift 3.6 and kafka.
Thanks
Youcef HILEM

@yhilem takes into account that you could even start just using the Qpid Dispatch Router (one or more instances) alongside with the AMQP - Kafka bridge without the need for the entire EnMasse project.


column headers mangled after row delete

love the plugin.  having difficulty with nested column headers on row delete action.  here's the code as well as before and after images.  its possible there is a better way to handle multiple row headers and that may be part of the problem.  advise appreciated.
var testdata = [
['BR', 'Cheese', 1, 3.99],
['CA', 'Apples', 0, 1.00],
['US', 'Carrots', 1, 0.90],
['GB', 'Oranges', 0, 1.20],
['CH', 'Chocolats', 1, 0.40],
['AR', 'Apples', 1, 1.10],
['AR', 'Bananas', 1, 0.30],
['BR', 'Oranges', 1, 0.95],
['BR', 'Pears', 1, 0.90],
['BR', 'Oranges', 1, 0.95],
['BR', 'Pears', 1, 0.90],
['BR', 'Oranges', 1, 0.95],
['BR', 'Pears', 1, 0.90],
];

$('#idMutiPartsGrid').jexcel({
    data: testdata,
    colHeaders: ['Part Number', 'Part Description', 'Escalation Index', 'Purchase Order #', "Quantity", "Delivery  Date (Midpoint)", "Price ($/Unit)","Quantity", "Delivery  Date (Midpoint)", "Price ($/Unit)", "Non-Recurring (Total $)", "Total $", "Analysis Pric"],
    colWidths: [80, 90, 80, 80, 60, 70, 50, 50, 70, 50,60, 60, 80],
    columns: [
        {type: 'autocomplete', url: '/reports/parts/ajax'},
        {type: 'readonly'},
        {type: 'text'},
        {type: 'text'},
    ],
    tableOverflow: true,
    tableHeight: '350px'
});

setTimeout(function (){
    $('#idMutiPartsGrid').find('thead').before('

		PRIOR  PURCHASE	PROPOSED

');
},1000);

before

after

Why did you break the table? Why your table has in first header 13 column (1 + 3 + 4 + 5 )  but second  header has 14 columns?
Add 1 column to the first header, may be it helps you.

Yes, you should that... we are working on a native feature to handle that better. Should be ready in the next release.

This has been fixed in the latest version in the master repository.
On Thu, Apr 26, 2018 at 8:20 PM, kathrynlmclark<EMAIL_ADDRESS>wrote:

@lironka https://github.com/lironka because deleting the row made a
duplicate quantity column somehow.
@paulhodel https://github.com/paulhodel thanks for getting back so soon

this was on row delete not column delete. does your comment still apply?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/paulhodel/jexcel/issues/130#issuecomment-384760164,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFvagRLL2pSvn9Zc3-1Sw8LZxHYOJCBdks5tsh3zgaJpZM4TjnBc
.

@paulhodel thank you.

@paulhodel still seeing the headers not aligned.  any tricks to try?


Result: failure(Alamofire.AFError.sessionDeinitialized)

im trying to set the session configuration to AF and it says Result: failure(Alamofire.AFError.sessionDeinitialized)
let aff = Alamofire.Session(configuration: configuration)
aff.request(...

If you printed the error's description you see this text:
"""
Session was invalidated without error, so it was likely deinitialized unexpectedly. \
Be sure to retain a reference to your Session for the duration of your requests.
"""

In essence, you need to keep a reference to your Session until your requests are complete, otherwise it will be deinitialized and cancel your requests. Usually this is done through a singleton or by injecting the same instance into all users from somewhere that keeps the reference alive.

Can you make this prompt not to play under release. I also found this problem in my project, but I really can't find out the specific reason. The prompt will pop up occasionally. The user experience is not good.


Changlog from PR

Hi @ScottBrenner
Is there any way to generate the changelog from the new commit messages within a pull request, please?
Thank you in advance.

Hi - I do believe it is possible to generate changelogs within a pull request using this Action, although I am not sure what the exact workflow would look like. Perhaps something like this (untested)
on:
  pull_request

name: Comment Changelog

jobs:
  build:
    name: Comment Changelog
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Changelog
        uses: scottbrenner/generate-changelog-action@master
        id: Changelog
        env:
          REPO: ${{ github.repository }}
      - name: Create comment
        uses: peter-evans/create-or-update-comment@v1
        with:
          issue-number: 1
          body: |
            ${{ steps.Changelog.outputs.changelog }}

using https://github.com/marketplace/actions/create-or-update-comment

Hi @ScottBrenner ,
thank you for your answer.
what I was trying to do is to include the new commits of a pr within my release body, so I used the following steps
name: Release

on:
  pull_request:
    types: [closed]
    branches: [production]

jobs:
  Release:
    runs-on: ubuntu-latest

    steps:
     - name: Changelog
        uses: scottbrenner/generate-changelog-action@master
        id: Changelog
        env:
          REPO: ${{ github.repository }}

      - name: Create Release
        id: create_release
        uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
        with:
          tag_name: ${{ steps.package-version.outputs.version }}
          release_name: Release ${{ steps.package-version.outputs.version }}
          body: |
            ${{ steps.Changelog.outputs.changelog }}
          draft: false
          prerelease: false

The issue with this is that commit messages within this PR don't figure in the body of the release the only message taken in consideration with this is the message written while merging the PR.

Ah interesting, I'm not sure if that is possible .. suggest checking the options in https://github.com/lob/generate-changelog

@ScottBrenner ,
as mentioned here the generate-changelog project allows to do this,
could you please tell me if this is possible with this action ?
Thank you so much !

Yes, that should be possible with this action.

@ScottBrenner
I tried to use it for a push event and I'm getting the same behaviour as for a pull request event, so basically the issue is not related to the event.
I have now an issue which is that when I push 3 commits I get the release body having only the last commit message as shown in the following scenrio
My commits (the 3 top commits)

The outputs

Could you please help ?
Thank you.

Believe you'll need to add a "checkout" step with fetch-depth: 0  to your workflow, like:
- name: Checkout code
  uses: actions/checkout@v2
  with:
    fetch-depth: 0

Reference: https://github.com/actions/checkout#checkout-v2

closing stale issue


Train on different dataset

Hi,
I want to train the model on character dataset where the images are 48x48x3. When I change the size of the image it shows me an error at this line indicating dimensions must be equal:
assert conv1.get_shape() == [cfg.batch_size, 20, 20, 256]
The total label classes are 68, in my case.

Hi,
I have another error when I use another dataset. my data is 32x32x3. consists of train.tar.gz and test.tar.gz only.  error:
cannot reshape array of size 651786224 into shape(73257,32,32,3)

@guddulrk you must first hand simulate the output of conv1 in your case of input to conv1 i.e., 48x48x3. You will see that output of conv1 in your case will be different in your case i.e., it will be [cfg.batch_size, 40, 40, 256] as per the current code of capsnet.py .

@SoloyT You cannot reshape array of size 651786224 into [ _, 32, 32, 3] as 651786224 is not a multiple of 32x32x3. Please look into what you actually have to do or you can elaborate here so that we can discuss it further.

Hi,
I have the error like this. My data is 40401. error:
(is_training=True)Assign requires shapes of both tensors to match. lhs shape= [1024,1600] rhs shape= [1024,784]
(is_training=False)Assign requires shapes of both tensors to match. lhs shape= [1,4608,160,8,1] rhs shape= [1,1152,160,8,1]
I have already modified the parameter "height=40" and "width=40" in  capsNet.py, line 20.
num_label is 10. No change.


Possible bug with_stdin

I'm running into what I think is a bug with with_stdin, but I also could be misunderstanding the use-case for it!
I have boiled down my usage, to something where I can reproduce with just cat
let mut cmd = Command::new("cat");
cmd
    .with_stdin()
    .buffer("42");
let assert = cmd.assert();
assert
  .success()
  .stdout("42");

I expected this to function kinda like echo 42 | cat which outputs 42
However this assert is not passing for me. Am I misunderstanding something, or is this a bug? I am using version 0.11.0 right now
Thanks for the time, and for writing and maintaining this library!

I think this is more of a bug in the documentation than in stdin handling.  #72 updates the examples to be
/// ```rust
/// use assert_cmd::prelude::*;
///
/// use std::process::Command;
///
/// let mut cmd = Command::new("cat");
/// cmd
///     .arg("-et");
/// cmd
///     .with_stdin()
///     .buffer("42")
///     .assert()
///     .stdout("42");
/// ```

I will say, this is very unergonomic but I'm at a loss on how to improve it.

Awesome! I will try this out in my project soon with the updated documentation and report back if I run into any issues!
Thanks so much for the quick response!


Error loading class

This appears in the client latest.log during startup
[10:10:22] [main/WARN]: Error loading class: link/infra/indium/renderer/render/AbstractQuadRenderer (java.lang.ClassNotFoundException: link/infra/indium/renderer/render/AbstractQuadRenderer)

Iris issue, will be fixed in 1.2.2.

I'm assuming this has been fixed as Iris 1.2.2 is released


feat: add editable mode env variable configuration

Summary
Add the possibility to force the Dependency editable_mode through the environment variable SUBSTRA_FORCE_EDITABLE_MODE
Notes
Please check if the PR fulfills these requirements

[x] If the feature has an impact on the user experience, the changelog has been updated
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)
[x] The commit message follows the conventional commit specification

To be seen in which order we want to merge everything to minimise merge conflicts ^^

You tell me ! :)


Save EVO TOF sensor data when flying

Describe the solution you'd like
Be able to save Evo TOF data to check if the sensor work while flying

@alphaville @Yuanbwcx I think this issue was just to check that the EVO time of flight sensor works while flying. This has been tested and works. I can push the branch and make a PR but I'm not sure if it will be worth merging as it is only a few lines of code that'll need changed anyway?
Maybe we should make a new issue outlining what @alphaville has mentioned above?

@alphaville Yes, sir I will take care of it. Are we gonna replace the old sensor or use both at the same time?

@Yuanbwcx as a first priority I would simply replace the old sensor with the new one.

This is being addressed in #194

Should we close this?

Done


feat: add feature to configure module automatically on install

Overview
This pull request (PR) introduces an automated installation script for the supabase_authentication module in Drupal. The script handles the configuration of user registration settings and form display fields. Additionally, the email_registration module is set as a dependency.
Before
Before this PR, the supabase_authentication module required manual configuration steps for user registration settings and form display fields.
Screenshots:

User registration settings needed to be configured manually.

Form display fields had to be manually adjusted.
After
After this PR, the configuration process is automated via the installation script.
Screenshots:

User registration settings are now configured automatically.

Form display fields are adjusted automatically.
Technical Details

Automated Configuration: The installation script configures user registration settings to allow visitors to register without email verification.
Form Display Adjustment: The script modifies the user form display to only include the "Username and password" field, removing all other fields.
Dependency Added: The email_registration module is set as a dependency in the supabase_authentication.info.yml file.

Changes look good, lets fix the linter issues. Thanks!

Great work on adding the PR description!


data:StarKnightt

Fixes Issue

Changes proposed

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] My change requires changes to the documentation.
[x] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

Please check the rest of the icons from the set of available icons at : https://linkfree.io/icons

looks good

Thank YOU


Authentication Handlers lost on redirect.

I'am trying to use the requests library by making a redirection with  Digest authentication method, but the response is 401. I mention that it works with basic authentication. I've captured the packets with wireshark, and noticed that the first HTTP request is without the Authorization header, the 401 unauthorized answered is received, and after that the traffic continues as it should be, the Authorization header is added, the 302 answer is received, and after that with the https cyphers exchange. I don't know why the requests.send method returns 401.

Hey guys, I'm still having this problem (using basic auth), just wondering if you intend to fix it any time soon. Other than that the project is awesome, so thanks for that :)

@amnong We have no specific timetable for this at this time.

So it looks like this was patched with #2253 but there wasn't a test included at the time.
I've written up a couple tests to verify the individual pieces are working as expected, but can't find a way to do a full repro with httpbin.
I'm not sure @amnong's issue was related to this since it's through HTTPBasicAuth which should always send the 'Authorization' header.
I'll throw up a PR with the tests if this looks right.

Alright cool, this was fixed in #2253 and we now have confirmation in the test suite with #3766.


feat: links

Coverage: 72.727%. Remained the same when pulling 60ccdc1eebb5064504f46b00a3e67395d2b2c8a8 on feature/links into c574a4af1aa3c34ace1c108db2e06ad0ed2fcd89 on main.


query: support basic auth for query API

[x] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes

support basic auth to protect data.

Thank you for your contribution! However, historically we've been against adding such functionality to Thanos Query as it is very easy to place a reverse proxy in front of Thanos Query. As a result, it would be easier to add extra functionality e.g. what if we wanted to support multiple username/password combinations? IMHO we shouldn't merge such a thing. Does anyone else have any other thoughts?

It feels bad writing this, as it is quite some work for this contribution but I have to agree with @GiedriusS .
There are so many solutions for adding auth. Be it basic auth, keycloak, or perhaps even LDAP. This does not have to be added on 'microservice' level.
Especially in this case there is an added dependency which backfires when using Thanos Frontend Query (which could be your new endpoint from Grafana ;) ). I.e. this implementation should also be made on that component AND there should be a feature that Frontend Query can use basic auth towards Thanos Query. So this is quite some work and overhead which are IMO not worth it.


Error loading plugin

Windows 11 23H2, German
xd-AntiSpy v4.11.10
When trying to load from Tools the Debloater or Butler i get these errors:
Error loading Plugin from PluginDebloater.dll: Die Datei oder Assembly “file:///D:Portables\xd-AntiSpy\plugins\PluginDebloater.dll” oder eine Abhängigkeit davon wurde nicht gefunden. Der Vorgang wird nicht unterstützt. (Ausnahme von HRESULT: 0x80131515)
Error loading Plugin from PluginButler.dll: Die Datei oder Assembly “file:///D:Portables\xd-AntiSpy\plugins\PluginButler.dll” oder eine Abhängigkeit davon wurde nicht gefunden. Der Vorgang wird nicht unterstützt. (Ausnahme von HRESULT: 0x80131515)
Zip is unpacked, i'm starting xd-AntiSpy.exe from D:\Portables\xd-AntiSpy

I can't understand or reproduce the problem at all. It looks like the plugins folder might be missing. Please download the complete package and extract it to the desired external drive. Does the error message really include that before 'file:///'?

Hi, thanks for your response.
D: is an internal local data ssd where i store apps for use on usb. So i can test before i copy to usb.
Yes, all files are complete, inluded plugins dir and plugins files. I've checked this several times before posting here, i've also tried new downloads and testing again before posting.
Yes, the error message include 'file:///'
Two screenshots, hope this helps:

Could it be that Windows might be blocking the DLLs? Try unblocking them in the properties. Right-click on the DLL, go to the bottom of the security tab, and click unlock if it's locked. Does this only happen on the USB stick?

Can you please test both dev versions and let me know which ones work
dev1.zip
dev2.zip

Hello, I faced the same issue.

Could it be that Windows might be blocking the DLLs? Try unblocking them in the properties. Right-click on the DLL, go to the bottom of the security tab, and click unlock if it's locked. Does this only happen on the USB stick?

This solved issue for me.
I also tried your dev versions and versions 1 and 4f are working (without unlocking the DLL in its settings) but not versions 2 and 3.
However it seems that I face this issue only if I extract the .zip using this windows explorer unzip feature, if I unzip it with 7zip it works as expected (for current release as well as dev versions 2 and 3). Extracting with the explorer also shows the Microsoft Defender SmartScreen on first launch while extracting with 7zip doesn't.

However it seems that I face this issue only if I extract the .zip using this windows explorer unzip feature, if I unzip it with 7zip it works as expected (for current release as well as dev versions 2 and 3). Extracting with the explorer also shows the Microsoft Defender SmartScreen on first launch while extracting with 7zip doesn't.

Thats it! Thanks!  Than i use 7zip and all works, without any errors.
@Belim, thanks for your tool, your work and sorry for the confusion. :-)

@Tumbleweed64 Awesome, thanks for the wonderful large coffee 😃


[spec] python macros

Can we merge this ?
It's the same as https://github.com/projectatomic/osbs-client/pull/318
and it successfully builds on rhel7: https://brewweb.devel.redhat.com/taskinfo?taskID=10207991

LGTM, thanks Jirko!


Auto merge

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

Summary

Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

?
please link a PR

https://github.com/Slickmojo24g/token-list/pull/1#pullrequestreview-855953067

Hi, how can I fix automerge error?
The link here
Thank you.

your PR needs to be a PR against this repo, not your fork


[Feature Request] Add ability to import contacts from other sources

It would be great to be able to add contact from places like google, vcards, csv files

While google is a no for me. The vcards and csv are fine enough.
Will mark it for future - once I have some time to get into it.


user defined REQUEST_TIMEOUT

Hello! I added parameter to HTTP client for request_timeout.
Currently i am working on benchmarks for comparing ArangoSearch and ElasticSearch. And sometimes i need to insert big batch of document to remote server. It takes more than 60s to do this. That is why I need to set this parameter by myself

Thank you, @joowani, I created custom http client with extended timeout. And it works fine
But I think that it is a little bit complicate to define your own implementation of http client only for this small option. Also I need to implement following abstract methods: arango.http.HTTPClient.create_session() and arango.http.HTTPClient.send_request().
What do you think about it?

Sorry for the late reply @alexbakharew, not sure why I didn't get any notifications for your replies.
I see where you are coming from. But once we add a field for timeout, what about other fields for configuring certs, authentication, x- headers etc? Should we add them too? And what if we wanted to swap out requests with a different HTTP library altogether?
The abstract classes are there to allow the users switch to a different library if needed, and not tie down the ArangoClient signature with the requests library (which may or may not always be the default in the future).

Hi again @alexbakharew,
After some more thought, I think that adding the timeout parameter to ArangoClient signature is ok, as long it is passed into the HTTP client in a more "generic way" (e.g. in a dict named params). Ultimately I'll leave it up to you and the ArangoDB team.

Hi @joowani, I also missed your previous reply.
Sound good! You will implement it by yourself?

Hi @alexbakharew,
I would like to eventually, but at the moment I'm in the middle of a big transition and will not be able to actively work on any features for at least another couple of months. I suppose your PR will be ok for the time being (my suggested approach should not change the API in the future).

I'll revisit this issue another time. But for now let's stick with CustomHTTPClients.


[Question]: On Adding share plus and run, found this error. duplicate class kotlin..

What is your question?
On Adding share plus and run, found this error.

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 40s
Exception: Gradle task assembleDebug failed with exit code 1
Checklist before submitting a question

[X] I searched issues in this repository and couldn't find such bug/problem
[X] I Google'd a solution and I couldn't find it
[X] I searched on StackOverflow for a solution and I couldn't find it
[X] I read the README.md file of the plugin
[X] I am using the latest version of the plugin
[X] All dependencies are up to date with flutter pub upgrade
[X] I did a flutter clean
[x] I tried running the example project

I'm facing the same problem, still no solution.

Works for me,
first close debug session if running
1- remove the plugin in pubsec.yaml
2- Run flutter pub get
3- Run flutter clean
then again add a plugin in pubsec.yaml
On Wed, 10 Jan 2024 at 14:44, Volodymyr Buberenko @.***>
wrote:

Which error? Provide full output of the error you see.
—
Reply to this email directly, view it on GitHub
https://github.com/fluttercommunity/plus_plugins/issues/2484#issuecomment-1884507528,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOJCH6TRF4XBUXTTUYQTM2DYNZPI3AVCNFSM6AAAAABBHTL27OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUGUYDONJSHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Regards
Mehdi Abbas Nathani
+92-333-3376531

In such case closing as resolved

@vbuberen, the solution proposed by @mehdinathani didn't work for me.
This resolved it: #issuecomment-1777560877


Docs: Mention ALTER TABLE limits on DDL page

The ALTER TABLE documentation says nothing about the issue that columns cannot be changed: https://crate.io/docs/reference/sql/ddl.html#alter-table
Please mention that there directly, or at least link directly to https://crate.io/docs/reference/sql/crate-standard-sql.html#alter-table

hi @cweiske thanks for pointing it out. we will have a look how we can improve the documentation about these limitations.

I think this has been resolved with https://github.com/crate/crate/commit/e916527cfbd9bf571bfde2b1039371207b07620f


[PowerToys] Updates for v0.76.0: Policies and File Explorer add-ons

This PR updates the policy docs for the v0.76.0 release:

Reordering of File Explorer utility policies in the table.
Adding QOI provider utilities to the table. [Left over from microsoft/PowerToys/pull/29735 (microsoft/PowerToys/issues/29742).]

This PR updates the File Explorer  add-ons docs for the v0.76.0 release:

Add QOI provider to the lists.

PLEASE DO NOT MERGE BEFORE:

An approval of @crutkas or @jaimecbernardo .
The RELEASE OF POWERTOYS 0.76.0 .

It looks good to me. We can merge after the release goes out. Thanks!

I will update the File Explorer Addons page later this day too.

@jaimecbernardo , @alvinashcraft
You are to fast. It is still a draft.

Ready for review! Do not merger before the PT release v0.76.0 !!

Please merge now.