[assemble] Allow platform specific Java options to be set in javaArchive assembler

Is your feature request related to a problem? Please describe.
Defining options that are platform specific such as -DAPP_HOME=${KEY}/app (linux/mac) or -DAPP_HOME=%KEY%/app (windows) requires custom formatting of key names
Describe the solution you'd like
An option to define platform specific Java options.
Describe alternatives you've considered
Custom templates must be used instead.
cc: @bmarwell

Thanks! 👍🏻 Will try tomorrow

🎉 This issue has been resolved in v1.13.0 (Release Notes)


Getting Specific Text from PDF file

I am able to decode the PDF in text format. Actually, I wanted to get a specific values from the PDF file is it possible?
The values that I need from the PDF is the ID, PurchaseOrderID, SupplierID and Amount. I need this four values from the PDF files and then I want to use it further.
Can you suggest me something please?
Thanks

Unfortunately this library unable to parse PDF raw content, it just get the raw text.
You must find outer tools to help you.
Good luck.


[App] Unable to display values in bar chart legend without hover

I'm trying to modify the legend of the bar chart that gets displayed, and can do so perfectly well with variables in the run's configuration( for example, using ${config:objective_function_name}.
However I am unable to add the actual value of the variable that is getting displayed in the bar chart. I want it to show something like:
"objective_function:erm test_error:.00005"
So, my legend template for the bar chart is:
objective_function:${config:objective_function_name} test_error: ${x}
However the output I'm getting is:
"objective_function:erm test_error:"
I know that ${x} is the correct variable because when I have it inside of the double brackets, like [[${x}]] in the legend template it displays when hovered over.
Am I doing something wrong or is this just an unsupported feature?

@MatthewGleeson thanks for reporting this, I'll need to reproduce the issue to dig in here. Would you be able to generate a report link for me here (or email<EMAIL_ADDRESS>to show a case where this is happening?

@MatthewGleeson could you share a link to a bar chart where you're having this issue?

This issue has gone stale and we are now closing it. Please comment to reopen.


Clean up to index builder api

The GraphIndexBuilder api can be used in two ways: for live indexing or bulk indexing.
We should enforce checks in the api such that users don't call it incorrectly or just keep the existing builder as internal and publish two public builder apis for IncrementalBuilder and BulkBuilder.
An example of wrong usage is calling addGraphNode directly, followed by build

Calling build() multiple times is also bad.  Should we just have build() check to make sure the graph is empty and throw if not?


ValueError: sero-size array to reduction operation minimum which has no identity [BUG]

Hi,
Recently I encountered an error while saving .zip files of the ROIs segmented for an image in cellpose 2.2.3.
The images (spheroid-like cells) are saved as .TIFF. To segment them, they are individually dragged into the GUI, then you adjust the cell diameter and click on the "cyto" model zoo to segment. The segmentation part works since the masks appear over the cells. There are usually also some masks to correct, so, after editing (deleting and drawing spheres), the final masks are saved as: file > save outlines as .zip archive of ROI files for ImageJ (or Ctr + R). This process works usually very nicely (a bit slow sometimes), but it saves properly the .zip file in the file location of your original image.
However, today I encountered a problem in some images since the .zip file with the ROIs does not save. This error occurs both, when you click save directly after mask obtention with no ROI editing (see code below), and also when saving after ROI editing. I am not very sure when exactly this error occurs, because with some images it saves properly without an error, and then with other images it gives the error. Also, sometimes with the same image it seems to work and if you try again it does not.
This is the error shown:
`(base) C:\Users\ruberni>conda activate cellpose
(cellpose) C:\Users\ruberni>python -m cellpose
2023-09-27 15:45:38,478 [INFO] WRITING LOG OUTPUT TO C:\Users\ruberni.cellpose\run.log
2023-09-27 15:45:38,483 [INFO]
cellpose version:       2.2.3
platform:               win32
python version:         3.8.17
torch version:          2.0.1+cpu
2023-09-27 15:45:38,816 [INFO] TORCH CUDA version not installed/working.
GUI_INFO: loading image: L:/Labs/Niels Ruber/Montages (18-06-23)/1. Organised folders - analysis/151/151-DIV7-Pl2-H1/2305151-151-004-NR-P0-DIV7-Pl2-H1_B03_B03_w1.tif
(2764, 2764, 4)
GUI_INFO: auto-adjust enabled, computing saturation levels
2023-09-27 15:46:09,857 [INFO] >>>> using CPU
2023-09-27 15:46:09,857 [INFO] >> cyto << model set to be used
2023-09-27 15:46:09,967 [INFO] >>>> model diam_mean =  30.000 (ROIs rescaled to this size during training)
2023-09-27 15:46:09,983 [INFO] ~~~ FINDING MASKS ~~~
2023-09-27 15:48:57,758 [INFO] >>>> TOTAL TIME 167.77 sec
2023-09-27 15:48:58,017 [INFO] 236 cells found with model in 168.176 sec
GUI_INFO: 236 masks found
GUI_INFO: creating cellcolors and drawing masks
GUI_INFO: saving 236 ImageJ ROIs to .zip archive.
Traceback (most recent call last):
File "C:\Users\ruberni\Anaconda3\envs\cellpose\lib\site-packages\cellpose\gui\menus.py", line 59, in
parent.saveROIs.triggered.connect(lambda: io._save_rois(parent))
File "C:\Users\ruberni\Anaconda3\envs\cellpose\lib\site-packages\cellpose\gui\io.py", line 465, in _save_rois
save_rois(parent.cellpix[0], parent.filename)
File "C:\Users\ruberni\Anaconda3\envs\cellpose\lib\site-packages\cellpose\io.py", line 404, in save_rois
rois = [ImagejRoi.frompoints(outline) for outline in outlines]
File "C:\Users\ruberni\Anaconda3\envs\cellpose\lib\site-packages\cellpose\io.py", line 404, in
rois = [ImagejRoi.frompoints(outline) for outline in outlines]
File "C:\Users\ruberni\Anaconda3\envs\cellpose\lib\site-packages\roifile\roifile.py", line 455, in frompoints
left_top = coords.min(axis=0)
File "C:\Users\ruberni\Anaconda3\envs\cellpose\lib\site-packages\numpy\core_methods.py", line 45, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity`
In this example, the masks were saved directly after segmentation (no editing), but the error also occurred in the same image after editing.
Would someone know what the issue would be here? it seems to work sometimes and sometimes not, but I am not very familiar with the origin of the error.
Thank you very much.
Kind regards,
Leire

This issue seems to be related to  #708

thanks @francodgstn !


Registration startup entered twice

Subject of the issue
The registration startup round is entered twice as observed in the logs:
[2022-07-14 11:00:47,658] [WARNING] [agent] The kwargs={'log_dir': '/logs'} passed to benchmark_tool have not been set!
[2022-07-14 11:00:47,779] [WARNING] [agent] The kwargs={'log_dir': '/benchmarks'} passed to benchmark_tool have not been set!
[2022-07-14 11:00:47,955] [INFO] [agent] Entered in the 'registration_startup' round for period 0
[2022-07-14 11:00:47,956] [INFO] [agent] Entered in the 'registration_startup' round for period 0
[2022-07-14 11:00:47,957] [INFO] [agent] Start processing messages...
[2022-07-14 11:00:47,958] [INFO] [agent] Entered in the 'registration_startup' behaviour
[2022-07-14 11:00:47,958] [INFO] [agent] Checking sync...
[2022-07-14 11:00:47,958] [INFO] [agent] Checking status @ http://localhost:26657/status
[2022-07-14 11:00:47,964] [INFO] [agent] Entered in the 'registration_startup' behaviour

This is probably related to the repeated transaction errors in our logs:
[2022-07-14 11:01:17,155] [ERROR] [agent] TransactionNotValidError: sender 0xAD56A50628D4915E841b7C2eCE13b33793b365d0 has already sent value for round: registration_startup
[2022-07-14 11:01:17,158] [ERROR] [agent] TransactionNotValidError: sender 0xAD56A50628D4915E841b7C2eCE13b33793b365d0 has already sent value for round: registration_startup
[2022-07-14 11:01:17,160] [ERROR] [agent] TransactionNotValidError: sender 0xAD56A50628D4915E841b7C2eCE13b33793b365d0 has already sent value for round: registration_startup
[2022-07-14 11:01:17,165] [ERROR] [agent] TransactionNotValidError: sender 0xAD56A50628D4915E841b7C2eCE13b33793b365d0 has already sent value for round: registration_startup

This is not a terminal error but is certainly worth addressing.
Steps to reproduce
Run any e2e test.
Expected behaviour
The registration round should be entered once.
Actual behaviour
The registration round is entered twice.

I discovered that the source of the problem is that in the more recent agent configurations there are at least two skills that: (1) are not abstract and (2) both include the SharedState model.
The valory skills that are not abstract atm are:
counter
apy_estimation_chained_abci
counter_client
hello_world_abci
liquidity_provision_abci
oracle_abci
register_reset_abci
registration_abci
simple_abci
test_abci

For example, consider the oracle agent. It has both the registration_abci and the oracle_abci skill, which are configured to load their own SharedState. During the set up phase, the setup() method of both SharedStates is called, which in turn calls RoundSequence.setup and then AbciApp.setup and _schedule_round(self.initial_round_cls).
A similar problem occurs in other agent configurations, e.g. agent  apy_estimation_chained uses both skills apy_estimation_chained_abci and registration_abci.
Ideas:

either one of the two should be made abstract;
make both abstract, and create an "entry-point" skill that takes care of the cconfiguration
since registration_abci cannot be made abstract so easily

I found out that the source of the problem is that in the more recent agent configurations there are at least two skills that: (1) are not abstract and (2) both include the SharedState model.
The valory skills that are not abstract atm are:
counter
apy_estimation_chained_abci
counter_client
hello_world_abci
liquidity_provision_abci
oracle_abci
register_reset_abci
registration_abci
simple_abci
test_abci

For example, consider the oracle agent. It has both the registration_abci and the oracle_abci skill, which are configured to load their own SharedState. During the set up phase, the setup() method of both SharedStates is called, which in turn calls RoundSequence.setup and then AbciApp.setup and _schedule_round(self.initial_round_cls). Moreover, also the behaviour of oracle_abci is scheduled, which probably explains the issue mentioned above.
A similar problem occurs in other agent configurations, e.g. agent  apy_estimation_chained uses both skills apy_estimation_chained_abci and registration_abci.
Ideas:

either one of the two should be made abstract;
make both abstract, and create an "entry-point" skill that takes care of the configuration
registration_abci cannot be made abstract so easily (it acts as the entrypoint for the behaviour AgentRegistrationRoundBehaviour). On the other hand, the other skill like oracle_abci uses the SharedState.setup() method to override the timeouts of the transition function:

    def setup(self) -> None:
        """Set up."""
        super().setup()  # this causes the trouble since it calls RoundSequence.setup again
        OracleAbciApp.event_to_timeout[
            Event.ROUND_TIMEOUT
        ] = self.context.params.round_timeout_seconds
        OracleAbciApp.event_to_timeout[
            SafeEvent.ROUND_TIMEOUT
        ] = self.context.params.round_timeout_seconds
        OracleAbciApp.event_to_timeout[
            OracleEvent.ROUND_TIMEOUT
        ] = self.context.params.round_timeout_seconds
        OracleAbciApp.event_to_timeout[
            TSEvent.ROUND_TIMEOUT
        ] = self.context.params.round_timeout_seconds
        OracleAbciApp.event_to_timeout[
            ResetPauseEvent.ROUND_TIMEOUT
        ] = self.context.params.round_timeout_seconds
        OracleAbciApp.event_to_timeout[TSEvent.RESET_TIMEOUT] = (
            self.context.params.round_timeout_seconds * MULTIPLIER
        )
        OracleAbciApp.event_to_timeout[
            SafeEvent.VALIDATE_TIMEOUT
        ] = self.context.params.validate_timeout
        OracleAbciApp.event_to_timeout[
            OracleEvent.VALIDATE_TIMEOUT
        ] = self.context.params.validate_timeout
        OracleAbciApp.event_to_timeout[
            TSEvent.VALIDATE_TIMEOUT
        ] = self.context.params.validate_timeout
        OracleAbciApp.event_to_timeout[
            TSEvent.FINALIZE_TIMEOUT
        ] = self.context.params.finalize_timeout
        OracleAbciApp.event_to_timeout[
            TSEvent.CHECK_TIMEOUT
        ] = self.context.params.history_check_timeout
        OracleAbciApp.event_to_timeout[OracleEvent.DEPLOY_TIMEOUT] = (
            self.context.params.keeper_timeout + MARGIN
        )
        OracleAbciApp.event_to_timeout[SafeEvent.DEPLOY_TIMEOUT] = (
            self.context.params.keeper_timeout + MARGIN
        )
        OracleAbciApp.event_to_timeout[ResetPauseEvent.RESET_AND_PAUSE_TIMEOUT] = (
            self.context.params.observation_interval + MARGIN
        )

this code does not need to be in the setup method of SharedState since it does not change self/class attributes.

remove the call to super().setup() (just a quick workaround...)

My suggestion is to make as much skill abstract as possible, and to use the "entry-point skill" approach. Why registration_abci should be special in this respect? It could be considered as an abstract skill that acts as a sub-module for more complex FSM and, incidentally, it can be chosen as the entry-point for the FSM by an non-abstract auxiliary skill, e.g. oracle_entrypoint skill.


Tray menus not working on Fedora

Describe the bug
easnx isn't working properly under Fedora 39, KDE 5.115.0, Qt 5.15.12 with Wayland, according to one user
Affected platforms

Desktop (Linux)

Versions

Kotlin version*: 1.9.22
Compose Multiplatform version*: 1.6.2
OS version(s)* (required for Desktop and iOS issues):  39
OS architecture (x86 or arm64): x86_64
JDK (for desktop issues): java-17-openjdk

To Reproduce
Steps and/or the code snippet to reproduce the behavior:

clone the project
./gradlew run
wait for the icon tray to appear and try to call the menu with the right button

Expected behavior
The menus shall open
Screenshots
Unfortunately I cant screenshot because it's outside the screenshottable area
Additional context
I'm willing to implement whatever trick/workaround you may have in mind

Sure, https://github.com/elect86/easnx
Right click on the tray icon shall open a menu

We'd rather not clone 3rd-party projects to reproduce bugs. It's a security hazard.
Often, while trying to create a reproducer you discover why the problem was occurring, and sometimes it's not a bug in Compose.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Conflict resolve not replicated

Hi,
I have a problem with conflict resolvation in my Android app (couchbase lite 1.3.0 lib). I use continous replication for pull and push too.
I use the ToDoLite's solution:
Query query = database.createAllDocumentsQuery();
if (query != null) {
    query.setAllDocsMode(Query.AllDocsMode.ONLY_CONFLICTS);
    QueryEnumerator result = query.run();
    for (Iterator<QueryRow> it = result; it.hasNext(); ) {
        QueryRow row = it.next();
        if (row.getConflictingRevisions().size() > 0) {
            Document conflictedDoc = row.getDocument();
            SavedRevision currentRevision = conflictedDoc.getCurrentRevision();
            List<SavedRevision> conflicts = conflictedDoc.getConflictingRevisions();

            database.runInTransaction(new TransactionalTask() {
                @Override
                public boolean run() {
                    try {
                        HashMap<String, Object> mergedProperties = merge(conflicts);
                        if (mergedProperties.size() == 0) {
                            mergedProperties.putAll(currentRevision.getUserProperties());
                        }
                        for (SavedRevision revision : conflicts) {
                            UnsavedRevision newRevision = revision.createRevision();
                            if (revision == currentRevision) {
                                newRevision.setUserProperties(mergedProperties);
                            } else {
                                newRevision.setIsDeletion(true);
                            }
                            Timber.i("revisionID: " + newRevision.getId());
                            newRevision.save(true);
                        }
                    } catch (CouchbaseLiteException ex) {
                        Timber.e(ex.getCause(), "conflict resolve failed");
                        return false;
                    }
                    return true;
                }
            });
        }
    }
}

I get SYNC logs, say:
{9422d087-eb3e-486e-aa51-1cb8da57a078 #4-c1dd80afe0dde523a38119101248fd74 @0 DEL} Couldn't get local contents of PusherInternal{...}
{9422d087-eb3e-486e-aa51-1cb8da57a078 #4-3b6cdab2cdca30e6949897340abbc3c2 @0} Couldn't get local contents of PusherInternal{...}

And it does not replicate.
If I run this conflict check once more, it says there is no more conflict.
But if I clear the app, and pull everything again, it finds this conflict again (because it did not replicated before).
Any idea?
Thx
Szöszi

Hi @szoszig,
What storage type are you using for your application? ForestDB?
If ForestDB, we found potential related issue yesterday. https://github.com/couchbase/couchbase-lite-java-core/issues/1429
Thanks,
Hideki

Sry for late answer.
I use the default CouchDB.

@szoszig,
Confirmation:

Are you using CouchDB for server?
For client side, are you using SQLite or ForestDB for storage type?
Thanks,

As we don't have enough information to solve this issue, so I will close this.


Alibaba providerfix

The work included in this pull request is the following:

Setting hostname to machine.GetName()
Setting instancename to machine.GetName()
Including the machine.Getname() to the list of network addresses

This is required in order for the CSR process to match the subject name to the machine name.
This also aligns us setting the Alibaba Private Zone DNS synchronization so that hostnames resolve and align with the CSR.
cc @menglingwei

@menglingwei I based these commits on top of your work. Please review and feel free to comment.
https://github.com/openshift/cluster-api-provider-alibaba/pull/9/files#r740749797
@menglingwei Responding to your comment ^^, I had to remove the resourceGroupID from the security group query. When I include it the security groups come back empty. When I remove it, the correct security groups are found. We can discuss this on a call if you would like.
@menglingwei @bd233 @dongchen126 Is it possible to set the private  zone to auto synchronize the DNS names during the provisioner?
@elmiko @JoelSpeed Is it possible to get the CSR process to work without the DNS synchronization? I do not see a method of turning this on during the terraform provisioning. We'll see what Alibaba provides.

@menglingwei I based these commits on top of your work. Please review and feel free to comment.
https://github.com/openshift/cluster-api-provider-alibaba/pull/9/files#r740749797 @menglingwei Responding to your comment ^^, I had to remove the resourceGroupID from the security group query. When I include it the security groups come back empty. When I remove it, the correct security groups are found. We can discuss this on a call if you would like.

The parameter resourceGroupID is optional. So you can remove it.

@menglingwei @bd233 @dongchen126 Is it possible to set the private zone to auto synchronize the DNS names during the provisioner?

@kwoodson Which DNS names need to be resolved? Is there a list? Which component would be better than adding this feature? installer or cluster-api-provider?

@elmiko @JoelSpeed Is it possible to get the CSR process to work without the DNS synchronization? I do not see a method of turning this on during the terraform provisioning. We'll see what Alibaba provides.

@menglingwei I based these commits on top of your work. Please review and feel free to comment.
https://github.com/openshift/cluster-api-provider-alibaba/pull/9/files#r740749797 @menglingwei Responding to your comment ^^, I had to remove the resourceGroupID from the security group query. When I include it the security groups come back empty. When I remove it, the correct security groups are found. We can discuss this on a call if you would like.

The parameter resourceGroupID is optional. So you can remove it.

@menglingwei @bd233 @dongchen126 Is it possible to set the private zone to auto synchronize the DNS names during the provisioner?

@kwoodson Which DNS names need to be resolved? Is there a list? Which component would be better than adding this feature? installer or cluster-api-provider?

@elmiko @JoelSpeed Is it possible to get the CSR process to work without the DNS synchronization? I do not see a method of turning this on during the terraform provisioning. We'll see what Alibaba provides.

@kwoodson  The last time you tested querying a list of security groups,you said that if you set resourceGroupID, you cannot return the result,but if you removed resourceGroupID, the result is correct. So i have a question about  your securityGroups. Whether your security group does not have  a resourceGroup?
Here are our api documentions.
CreateResourceGroup : https://www.alibabacloud.com/help/doc-detail/158865.htm?spm=a2c63.p38356.879954.3.7c2e4b3ehm0arG#doc-api-ResourceManager-CreateResourceGroup
CreateSecurityGroup:  https://www.alibabacloud.com/help/doc-detail/25553.htm

@elmiko @JoelSpeed Is it possible to get the CSR process to work without the DNS synchronization? I do not see a method of turning this on during the terraform provisioning. We'll see what Alibaba provides.

DNS is a requirement for machines within OCP. We need to have this turned on. If this isn't supported by terraform, perhaps we need to extend the terraform to allow it to be turned on? DNS is a part of the security process that we use for the CSRs and is also used for Kube API to Kubelet communication, so it must be present for a working OCP cluster.

DNS is a requirement for machines within OCP. We need to have this turned on. If this isn't supported by terraform, perhaps we need to extend the terraform to allow it to be turned on? DNS is a part of the security process that we use for the CSRs and is also used for Kube API to Kubelet communication, so it must be present for a working OCP cluster.

I have asked Alibaba to look into the DNS requirement.
On a side note, @elmiko and I were able to plumb this provider today by removing an unexpected tag from the DescribeInstances query. We are now able to reliably search and match instances. This proved successful and we were able to install and provision a cluster.
Nodes:
NAME                                 STATUS   ROLES    AGE   VERSION
test-kqrvc-master-0                  Ready    master   90m   v1.22.1+1b2affc
test-kqrvc-master-1                  Ready    master   92m   v1.22.1+1b2affc
test-kqrvc-master-2                  Ready    master   90m   v1.22.1+1b2affc
test-kqrvc-worker-us-east-1a-w64zp   Ready    worker   31m   v1.22.1+1b2affc
test-kqrvc-worker-us-east-1b-4995f   Ready    worker   30m   v1.22.1+1b2affc
test-kqrvc-worker-us-east-1b-5rfpr   Ready    worker   26m   v1.22.1+1b2affc

Machines:
NAMESPACE               NAME                                 PHASE     TYPE            REGION      ZONE         AGE
openshift-machine-api   test-kqrvc-master-0                  Running   ecs.g6.xlarge   us-east-1   us-east-1b   93m
openshift-machine-api   test-kqrvc-master-1                  Running   ecs.g6.xlarge   us-east-1   us-east-1a   93m
openshift-machine-api   test-kqrvc-master-2                  Running   ecs.g6.xlarge   us-east-1   us-east-1b   93m
openshift-machine-api   test-kqrvc-worker-us-east-1a-w64zp   Running   ecs.g6.large    us-east-1   us-east-1a   87m
openshift-machine-api   test-kqrvc-worker-us-east-1b-4995f   Running   ecs.g6.large    us-east-1   us-east-1b   87m
openshift-machine-api   test-kqrvc-worker-us-east-1b-5rfpr   Running   ecs.g6.large    us-east-1   us-east-1b   87m

I am going to remove the draft status.
One note:
We are awaiting a fix in github.com/openshift/installer/pull/5348 which places the resourceGroupID on the security groups.

cc @JoelSpeed @elmiko

@JoelSpeed I have opened PR #12 to address your concerns. I believe that this PR is ready to merge.
WDYT?


[ujson] Added crc32 to ujson lib

crc32 calculations to ujson serialisers and deserialisers.
crc32_t created so these calculations can be serialised and deserialised.

Yet to do:

Add crc checks to the roundtrip test
Add crc checks to RESP_OK/_ERR macros and the opentitantool.

Part of https://github.com/lowRISC/opentitan/issues/17496

Added RUST_PREPROCESSOR_EMIT condition to stop C functions being produced when generating rust.


Submit buttons use class .btn-default and can't be changed...

It tried to add class .btn-primary but .btn-default stays in there and wins over it.
I also tried passing an option ['type' => 'primary'] like you do with the alerts in your example but it's no good too.

The option name is bootstrap-type, which only works for standard types as defined here:
private $buttonTypes = ['default', 'primary', 'info', 'success', 'warning', 'danger', 'link'] ;

If you want to use a custom type, set bootstrap-type to false.

Thank you


⚡(landing-pages) adding a landing page builder for services

the idea is to have YAML files containing content (built via DecapCMS) to easily build landing pages following a given template, for each La Suite service.
A landing page has a few mandatory blocks (a hero block at the top, a newsletter/social networks block and a 'la suite' block at the bottom), and a few 'flexible content' blocks that can be added at will in the order the editor wants.
The YAML files containing the landing page content can be edited by hand, but a DecapCMS server is setup so that you can easily edit it via a GUI. It's a bit rough on the edges but it's useful!
Trying it out

install new dependencies with yarn
start yarn dev
start yarn cms in another terminal

You can then go to /admin to use the CMS. The CMS generates and modifies files in /content/ and /public/content/uploads.
In production, the CMS is directly tied to the github repository thanks to a GitHub OAuth app accepting auths to this repo. The OAuth app is targeted through new env vars. In dev, the CMS directly modifies files locally without going through the auth process, so those env vars are not necessary.
TODO

[x] make CMS work when deployed. For now it requires a connection to netlify, we don't use netlify, I'll use this.
[x] make the preview feature of the CMS actually work. The current (commented out) stuff with css raw-loader doesn't really work, it doesn't match our need to load tailwind styles.

Hey @lebaudantoine if you wanna check this. This is ready to merge for me. Continuing this in another PR to migrate the rest of static content to this.

See https://github.com/numerique-gouv/lasuite-landingpage/pull/41. Thanks for your input!


feat(pod): hostNetwork property (#1874)

Backport
This will backport the following commits from k8s-26/main to k8s-25/main:

feat(pod): hostNetwork property (#1874)

Questions ?
Please refer to the Backport tool documentation

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1892

Questions ?
Please refer to the Backport tool documentation


Package request: opener

Project description
Open URL in your local web browser from the SSH-connected remote environment.
Metadata

homepage URL: https://github.com/superbrothers/opener
source URL: https://github.com/superbrothers/opener
license: mit
platforms: linux, darwin

label:"6.topic: golang"

i can't add topics - can you add it?


add arch linux missing app path

added support for arch Linux which somehow the folder is different
$ ll /opt | grep http
drwxr-xr-x  4 root root 4.0K Jun  3 00:39 httptoolkit/

Thanks! ❤


Add filter query support to imageCVE graphQL resolver

Checklist

[ ] Investigated and inspected CI test results
[X] Unit test and regression tests added
~Evaluated and added CHANGELOG entry if required~
~Determined and documented upgrade steps~
~Documented user facing changes~

If any of these don't apply, please comment below.
Testing Performed
Unit

I'm getting some odd results testing this against my GKE cluster. I'm using CVE-2021-42694 as the target example CVE and the following query to list all images that contain the CVE:
query getAffectedImages {
	imagesWithCveUnfiltered: images(query: "CVE:CVE-2021-42694") {
		name {
			remote
		}
		deployments {
			name
			namespace
		}
	}
}

This returns the following results:
{
        "imagesWithCveUnfiltered": [
			{
				"name": {
					"remote": "calico/node"
				},
				"deployments": [
					{
						"name": "calico-node",
						"namespace": "kube-system"
					}
				]
			},
			{
				"name": {
					"remote": "stackrox-io/collector"
				},
				"deployments": [
					{
						"name": "collector",
						"namespace": "stackrox"
					}
				]
			},
			{
				"name": {
					"remote": "stackrox-io/scanner"
				},
				"deployments": [
					{
						"name": "scanner",
						"namespace": "stackrox"
					}
				]
			},
			{
				"name": {
					"remote": "stackrox-io/scanner-db"
				},
				"deployments": [
					{
						"name": "scanner-db",
						"namespace": "stackrox"
					}
				]
			},
			{
				"name": {
					"remote": "stackrox-io/main"
				},
				"deployments": [
					{
						"name": "sensor",
						"namespace": "stackrox"
					},
					{
						"name": "admission-control",
						"namespace": "stackrox"
					},
					{
						"name": "collector",
						"namespace": "stackrox"
					}
				]
			},
			{
				"name": {
					"remote": "stackrox-io/central-db"
				},
				"deployments": [
					{
						"name": "central-db",
						"namespace": "stackrox"
					}
				]
			},
			{
				"name": {
					"remote": "stackrox-io/main"
				},
				"deployments": [
					{
						"name": "central",
						"namespace": "stackrox"
					}
				]
			}
		]
	}

Then, testing the new query with applied filters:
query getImageCVEsBySeverity($query: String!) {
	imageCVE(cve: "CVE-2021-42694", query: $query) {
		affectedImageCountBySeverity {
			critical
			important
			moderate
			low
		}
		affectedImageCount
	}
}

An empty query returns results I would expect:
{
	"data": {
		"imageCVE": {
			"affectedImageCountBySeverity": {
				"critical": 0,
				"important": 0,
				"moderate": 7,
				"low": 0
			},
			"affectedImageCount": 7
		}
	}
}

but many search fields return results that don't match the affectedImageCount.
"Namespace:stackrox"
{
	"data": {
		"imageCVE": {
			"affectedImageCountBySeverity": {
				"critical": 0,
				"important": 0,
				"moderate": 6,
				"low": 0
			},
			"affectedImageCount": 8
		}
	}
}

"Cluster:*"
{
	"data": {
		"imageCVE": {
			"affectedImageCountBySeverity": {
				"critical": 0,
				"important": 0,
				"moderate": 7,
				"low": 0
			},
			"affectedImageCount": 9
		}
	}
}

"Fixable:false"
{
	"data": {
		"imageCVE": {
			"affectedImageCountBySeverity": {
				"critical": 0,
				"important": 0,
				"moderate": 7,
				"low": 0
			},
			"affectedImageCount": 14
		}
	}
}

Another thing, possibly related to the issue above, is that this is the first graphql resolver I can find that expects an ID (or equivalent cve parameter) and a query, and returns a single, nullable object in response. All other singular resolvers that I've seen only accept the ID. This makes this resolver appear to overlap with the imageCVEs resolver at first glance, which accepts a query and pagination parameter and returns a non-nullable list of ImageCVECore objects. My intuition is that for this resolver to scope the affectedmageCountBySeverity and affectedImageCount results, the query parameter would be placed directly on those fields instead.

Resolved comments from @dvail offline


Loader should expose a snapshot dimension interface

The idea here is that in the situation where a researcher is loading HSC cutouts from a directory where there are significantly heterogenous image sizes, there should be some access to the file-scan data that the HSC data loader has.
This access will in theory allow the researcher to determine what an appropriate cutout size is to give the data loader. See: https://github.com/lincc-frameworks/fibad/issues/35

It is pretty easy to add to the data set or data loader as of PR https://github.com/lincc-frameworks/fibad/pull/49 . The data members that have size information are already on the dataset object, and if you have the data loader, its easy to get the dataset. We can pretty easily syntactic sugar pass-through methods so that the dataset/dataloader distinction isn't something the user has to think about.
Unfortunately getting access to the data loader from top level is a bit involved. Fibad.train (or .predict) runs a function that is essentially a script, which has the data loader as a local variable during the run() function, after which it goes out of scope.
I think in order to interrogate snapshot dimensions, @aritraghsh09 (or another notebook user) is going to run something like this:
myfibad = Fibad(config="stuff.toml")
myfibad.download()
histogram, buckets = myfibad.imageSizeHistogram() # or similar
pyplot.hist(histogram, buckets)

Note that Fibad.train(), which initializes the data loader hasn't been run at all. Even if we did initialize a dataloader in imageSizeHistogram() (or whatever interface method) the dataset/dataloader we create won't survive after that call, so the expensive file-scan it does will need to be re-done by .train() later on. There's a similar duplication of effort if you run Fibad.train() then Fibad.predict()
I'm thinking the best way forward is to create some fields on Fibad to hold the current model and data loader, and then move the train/predict/download verbs inside the Fibad class replacing the stubs that exist there now, so they have easy access to the Fibad fields.
This wouldn't change the functionality of the cli at all, since it already routes calls through the Fibad object, but it would cut out one of our earlier design ideas that fibad "verbs" correspond to a file with a run() method. Verbs would now correspond to a named function on the fibad object.
@drewoldag @aritraghsh09 Thoughts?

I see where you're coming from with this, it does make sense to avoid the expensive file-scan calls for sure. But I'm not confident that pulling in the definitions of the verb scripts into the Fibad object is the best way to maintain access to the instantiated data loader. I think I would be more in favor being able to rapidly instantiate a dataloader.
Would it be possible to cache a metadata file to skip the file-scan and enable analysis outside of fibad? I think this is very vaguely similar to what @aritraghsh09 was mentioning at our last sync about getting the filenames appended to the catalog table. The cached metadata isn't specifically what Aritra was asking for, but could augment it and serve to help the user understand the data set. Similar to what you called out in the last comment, the user might do this:
myfibad = Fibad(config="stuff.toml")
myfibad.download()  # once down completes a metadata file for the dataset is created.

# just take a look at the meta data
metadata = myfibad.get_dataset_metadata()
histo, buckets = myfibad.imageSizeHistogram()  # loads and reads from the metadata file
pyplot.hist(histogram, buckets)

# optionally run the following to recreate the metadata if, for instance, config params have changed
metadata = myfibad.get_dataset_metadata(reanalyze=True)

Additionally, a cached metadata file could support something similar to what huggingface offers for looking at data set statistics. Which also might be a nice thing to have for down the line. For example: https://huggingface.co/datasets/mwalmsley/gz_desi/viewer/default/train
Second point: Having the Fibad object dispatch to an externally defined download/train/predict run functions leaves the door open for alternative implementations of those functions. In the same way that we allow plug in models and dataloaders, we could imagine that there is a specific, non-default, train/predict/etc that a user would need. Supporting multiple ML frameworks may need different train/predict implementations for instance.

Ok, I'm going to try @drewoldag 's suggestion here, and pull this into the download manifest/fail-file work in order to make roughly the notebook vision above a reality without doing redundant file system scans.


Nav Map should have defined neighborhood labels

This issue is done when:

[ ] Standard neighborhood labels on the nav map are replaced with a defined set of labels

Here's the neighborhood label point file: Neighborhood_Labels.zip

Resolved


Fix dark mode memo bugs

What does this PR do and why?
Also added a tooltip to the sticker button,.
Screenshots or screen recordings

Acceptance checklist

[ ] I have evaluated the
Approval Guidelines
for this PR.
[ ] I have tested this PR in
all supported browsers.

Sweet @aeolianeth thanks. Fixed


undefined method `current_tags' for nil:NilClass with Rails 5.0.0.beta2

I am getting this exception when trying to send an email:
UserMailer.password_reset(user).deliver_later
NoMethodError: undefined method `current_tags' for nil:NilClass
from /usr/local/lib/ruby/gems/2.3.0/gems/activejob-5.0.0.beta3/lib/active_job/logging.rb:51:in `logger_tagged_by_active_job?'

This didn't happen with beta1 and doesn't happen if I remove rails_semantic_logger.
Any ideas?

Is this happening with Rails Semantic Logger v3.1? If not, please try 3.1 and let me know if it helps.

Oh, just noticed they renamed the Active job method #tag to #tag_logger with the latest Beta release. Will make a change to support both the old and the new method names in case anyone else is still running Rails 5 Beta 2.

Can you try the latest in master by changing the gem entry to:
gem 'rails_semantic_logger', git: 'git@github.com:rocketjob/rails_semantic_logger.git'

If this works I can include it in the next Gem release.

That error disappeared and now I'm seeing this instead, hmmm:
2016-02-29 16:43:48.733438 E [95858:SemanticLogger::AppenderThread] SemanticLogger -- Appender thread: Failed to log to appender: #<SemanticLogger::Appender::File:0x007ff3e7a617f0 @log=#<IO:<STDOUT>>, @formatter=:default, @filter=nil, @name="SemanticLogger::Appender::File"> -- Exception: NoMethodError: undefined method `call' for :default:Symbol
Did you mean?  caller
               all
/usr/local/lib/ruby/gems/2.3.0/gems/semantic_logger-3.1.0/lib/semantic_logger/appender/file.rb:118:in `log'
/usr/local/lib/ruby/gems/2.3.0/gems/semantic_logger-3.1.0/lib/semantic_logger/logger.rb:174:in `block in appender_thread'
/usr/local/lib/ruby/gems/2.3.0/gems/semantic_logger-3.1.0/lib/semantic_logger/logger.rb:172:in `each'
/usr/local/lib/ruby/gems/2.3.0/gems/semantic_logger-3.1.0/lib/semantic_logger/logger.rb:172:in `appender_thread'
/usr/local/lib/ruby/gems/2.3.0/gems/semantic_logger-3.1.0/lib/semantic_logger/logger.rb:148:in `block in start_appender_thread'

Ah, I see. Colorized logging is disabled.
config.colorize_logging = false
Please update rails_semantic_logger from master. Just pushed a fix to correctly handle when colorized logging is turned.
Give colorized logging a try, it makes it easier to read the text logs.
If you do colorized logging, add the awesome-print gem before the rails_semantic_logger gem entry to create "pretty" log output:
gem 'awesome_print'

I can't see a change yet from adding awesome_print, but no more errors, thank you :D

It seems the error is back?
timeline(dev)> UserMailer.password_reset(User.first).deliver_later
NoMethodError: undefined method `current_tags' for nil:NilClass
from /usr/local/lib/ruby/gems/2.3.0/gems/activejob-5.0.0.beta3/lib/active_job/logging.rb:51:in `logger_tagged_by_active_job?'

I'm using:
gem 'rails_semantic_logger', git: 'git@github.com:rocketjob/rails_semantic_logger.git'

Any ideas?

Seems latest from git is working at the moment! Thank you!! :)

Yes, and I also added a test so that it should not break again.
Thank you for letting me know it was not working again.


There is no "Azure Blob Storage Trigger (using Event Grid)" template for Python V2 and 8.0/6.0 LTS

OS: All
Build Version: v1.15.2-alpha.0
Repro Steps:

F1 -> Azure Functions: Create New Project... -> Select a folder -> Select "Python" language -> Select "Model V2".
Check whether there is "Azure Blob Storage Trigger (using Event Grid)" template in the list.

Expect:
There is "Azure Blob Storage Trigger (using Event Grid)" template in the list.

Actual:
There is no "Azure Blob Storage Trigger (using Event Grid)" template in the list.

More Info:
This issue also reproduces on .NET8.0/6.0 LTS runtime.

We think this is because the templates are out of date.

@alexweininger Was this supposed to be fixed in 1.15.0?  Still appears to be broken in 1.15.4 (at least for python).

Sorry @djpadz, it's not fixed yet. Alex was linking that issue because that is the cause of this bug.


Add links to tile provider authentication docs

Probably confused some people in the past, since vector tiles won't even display an access denied image ;)

Should there also be a "Stadia Maps Access Token" field?

Should there also be a "Stadia Maps Access Token" field?

It's not required for most web browser uses; I'll add one either this weekend or Monday.
I see I also missed updating(?) some tests. Will look at that too.

@HarelM any blockers for this one?

Yes, translation is now needed for text.
Also the above comment about adding an input for the token was not addressed.

Got side tracked on a few other projects, but got back to adding the token support in the latest edits.
Thanks for letting me know about the translation @HarelM! I didn't know that was a thing 😅 I've also added a few lines explaining that to the README.

Yes, translation was added very recently.
Other than the above, this looks good.
It would be great if you can update the initial post with "before" and "after" screenshots.

Thanks!
Should there be an input for stadia maps api key?

Ack.

I didn't update the screenshots.
I think I didn't add the i18n bits for top-level help text I added (it didn't exist when I added that?

I'll address both momentarily.

Hmm... I wonder if it is easier to localize these as separate help text strings... I don't know the grammatical structure of Hebrew, but I imagine there is some language where it might be complicated to do this all correctly.
Thoughts on moving it out of the single header text to the expandable help? Here's what it looks like now:

Ick; that's going to be fun... Sorry I'm not much of a frontend dev, but it looks the HTML is being escaped if I try specifying strings this way...

So it's going to be a bit of work with either approach :/

I think adding a description like other fields is a good idea.

Okay. This will take some effort to untangle (for me at least). Even adding a relatively simple "learn more" link along with the help text is proving to be difficult.

I was able to get this far with it, but hit two roadblocks:

I can't figure out how to get a t function down to translate the learn more link text.
The link is valid, and it fires an onClick handler, but left click doesn't work. I assume something in the hierarchy is preventing propagation.

Took a while for me to get back to this again, but I overcame the event and i18n issues finally ;)
The only thing remaining is getting the new strings translated. I also see the i8n plugin keeps weirdly rewriting the file, so a bit of manual cleanup required for some strings.

Looks good, thanks!
Tagging the traslators:
de	German	@josxha
en	English	@HarelM
fr	French	@lhapaipai
hr	Hebrew	@HarelM
ja	Japanese	@keichan34
zh	Simplified Chinese	@jieme

Ok... I think the only outstanding item now are translations from @keichan34 @jieme

We'll give it a few days and then decide if we merge as is or do something else.

I'll merge it like that, if people are interested in seeing Maputnik in their language, they can contribute the relevant translation I guess...


Could you upload a source tarball when you release?

Hi,
Yes we always do push out the source as a part of the process of publlishing
You can find it
https://github.com/reddcoin-project/reddcoin/releases


Extend await stable checking

While testing aemSatisfy / setup containing about 20 various packages, it is possible that all bundles are active but /crx/packmgr is not responding properly so that aemUpload or aemInstall could fail. As a workaround there is introduced retry mechanism #122 , but it is not solving the real problem. That workaround is good enough in most cases, but maybe there could be introduced extra condition added to instance stability checking that will also check somehow that /crx/packmgr [upload or install] will not fail (perform not only OSGi bundle checking).
Both checks should be used to determine instance state in aemAwait.

Await will have two types of checks. First quick - checking bundles by default done every each 1 second interval. Second more advanced which will check crx upload servlet if it is even responding with some intentionally bad request to distinguish from 500 status. Also components check will be done here. It would będzie great if these checks will be done in parallel.

implemented in #164

TODO include bundlePackage in health checking. it is not trivial, so it will be not included fully within 4.0.0 release

aemAwait is global task (in 1 to n packages relation).
if we run sh gradlew aemDeploy aemAwait which bundles need to be checked? there will be deployed/run n packages from n subprojects .... so there need to be introduced mechanism which will store information about deployed bundles within single gradle execution and only that bundles need to be checked

using for example
https://sling.apache.org/documentation/bundles/sling-health-check-tool.html#health-check-servlet
http://localhost:4502/system/health.json?tags=-pre-upgrade&names=-System Maintenance,-Maintenance Task,-Maintenance Task WorkflowPurgeTask,-Maintenance Task


Importing action creator to reduce bundle size do not work anymore

Hi,
We use the babel import plugin and import * as actions from 'redux-form/lib/actions'; to import redux form action and keep the bundle size reasonable. It worked fine up until now. It seems like now, actions.<action_name> does not work anymore, all actions are exported under the default key, so we have to change it to actions.default.<action_name> which is not expected and also is a breaking change.
Thanks.

It looks like you just deleted/ignored our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please open a new issue with filled issue template. Also make sure your issue is not a question. Questions should be posted on Stack Overflow.


[Bug]: zli cve diff papercuts

zot version
v2.0.2-rc2-6-gdc0e41a
Describe the bug
minor issues in the zli cve diff command:

if an image is not found, please say which one wasn't found, since we are querying two
in the output, include language that makes it really clear what the list is about - "CVEs in image $img_A that are not in image $img_B" for example

To reproduce
No response
Expected behavior
No response
Screenshots
No response
Additional context
No response

Hi @mikemccracken, @rchincha, would it be alright if I work on this issue?


revert LUIS runtime library, pin LUIS and ms-rest dependencies

Fixes #788
Description
Revert LUIS dependency, pin ms-rest dependency to 2.5.0, and remove @azure-namespaced libraries.

Pull Request Test Coverage Report for Build #2004

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.06%) to 87.441%

Files with Coverage Reduction
New Missed Lines
%

libraries/botframework-config/src/botConfigurationBase.ts
2
85.59%

Totals

Change from base Build #1997:
-0.06%

Covered Lines:
3004

Relevant Lines:
3306

💛  - Coveralls


Extended theme

This PR proposes a number of changes to the core Theme element. These changes were necessary as part of the implementation of the MUI Grid v2 (fluid grid).
Specifically, this PR addresses these issues:

Need for programmatic breakpoint access (achieved through breakpoints-context.tsx)
Need for open-ended spacing based on a common factor (achieved with a new prop on Theme and spacing.ts)

Additionally, this PR proposes a fix for #22 and similar bugs where manually set themes are not applied when the rendered <div> of <Theme> is not a direct child of <body>

Hey @jd-carroll , thanks for the effort here. I think these changes would be better served initially as a separate repo / fork.
Any changes to the core theme need to be well considered by the team and having this in a separate repo would be the best first step for full context.
Would mind creating one and sharing it with the team via a new discussion?
Thanks!


How do you serve static files properly.

How would I go about serving static files such as images possibly with cache?. Is this safe to build a web application with uws? I also wanna say the performance on this is absolutely amazing. I will definitely be sharing my experience when finished.
This is just super super fast, with just res.end('hey'), on an i7 laptop I'm able to get 1 million req's a second! off the BAT! Data.
Stat           │ 1%         │ 2.5%      │ 50%       │ 97.5%   │ Avg            │ Stdev       │ Min       │
Req/Sec    │ 44991    │ 69759    │ 121087  │ 139263 │ 117386.57 │ 18901.81 │ 44972    │ Bytes/Sec │ 2.75 MB │ 4.26 MB │ 7.39 MB │ 8.5 MB │ 7.16 MB     │ 1.15 MB  │ 2.74 MB │
Req/Bytes counts sampled once per second.
6221k requests in 81.45s, 379 MB read
300 errors (300 timeouts) ONLY!!!
I had to stress test this using 8 clusters all firing and producing equal results to the ones posted. The actual test used 100% cpu on a single core for the stress test alone, so I used 8 cores to stress the server resulting in 8 different results.  The stress test was fired from a different machine. As you can see I hit 1 million req/s. I have basically gone from 250k req's to 1 million. wow. That's compared to nodes http server. Ooo and with only 25% cpu usage, compared to 100% from node. Also the only reason I am not able to max this cpu usage out is because to send that many requests maxed out the cpu on my desktop i7.
When serving a file say an html file using nginx I am getting very similar results to uws using. This is what I come up with to test with uws..
    // Read file from file system.
    let file = fs.readFileSync('index.html', function (err, data) {
        if (err) {
            res.end(`Error getting the file: ${err}.`);
        } else {
            //res.writeHeader('Content-type', 'text/html');
            res.end(data);
        }
    });
    res.end(file);

Which is the same for both nginx and uws for serving a file. Which is pretty awesome. These are some big numbers for a dinky i7 laptop that's pretty old now.
Sorry for the long post. Very appreciated.

There are examples such as VideoStreamer.js showing how to send potentially large files. Res.end is only for small responses

I have tried your function pipeStreamOverResponse, its not very good for serving small static files such as text and image files 100-500kb. When testing it was sending 1gb of data and receiving barely nothing and pretty much only did something like 16k req/s which is unusable. Seems like it was stuck on sending requests but not allowing anything to come back properly. I basically want to replace nginx to serve files. uws looks like something that can do this. I have tried messing with the fs.createReadStream seems to get me no where :(. Just wondering if this can be improved.
Thank you!

Hi Alex, can you quantify "small responses" please?

Less than big ;)

Less than something you would care about if it wound up as backpressure

So I guess up to 66.6KB is fine :o) But what about 666KB :-O


[QUESTION] - DownloadUrl

Prerequisites

[x] Have read and understood: https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/.github/SUPPORT.md
[x] Checked if your Laravel Excel version is still supported: https://docs.laravel-excel.com/3.1/getting-started/support.html#supported-versions
[x] Checked that your question isn't already asked before.
[x] Filled in the entire issue template

Versions

PHP version: 7.3.9
Laravel version: 6.1.0
Package version: 3.1.17

Description
Hi, The Excel::download return a response to download the file. But I need the  URL to be able to internally download the file. How can I generate a URL for the download file?
Additional Information
I'm using Laravel Nova. Created a action to export some data (I don't just get the DB data. I apply some specifc format in model before exporting it.)
In laravel Nova, to download a file from a action, I must use Action::download(string $fileName), but it just work if I provide the file URL.

You could store the file instead of downloading it and then passing that filepath to the Action::download.
You could also have a look at our Nova integration package and get inspiration from that: https://github.com/Maatwebsite/Laravel-Nova-Excel (Relevant line: https://github.com/Maatwebsite/Laravel-Nova-Excel/blob/1.1/src/Actions/DownloadExcel.php#L48)

Hi @patrickbrouwers, thanks for the info.
Using the laravel-Nova-Excel code as example, I could solve the problem this way (this can help someone else):
Generate a link do download a file in BinaryFileResponse
    static function getDownloadUrlFromBinaryFileResponse(BinaryFileResponse $response, string $fileName): string
    {
        return url('/download?') . http_build_query([
                'path'     => $response->getFile()->getPathname(),
                'filename' => $fileName,
            ]);
    }

Create a invokable controller to handle the download link using BinaryFileResponse
<?php

...
class DownloadFile extends Controller
{

    ...

    public function __invoke(Request $request, ResponseFactory $response)
    {
        $data = $this->validate($request, [
            'path'     => 'required',
            'filename' => 'required',
        ]);

        return $response->download(
            $data['path'],
            $data['filename']
        )->deleteFileAfterSend();
    }
}

Create a route linking the download link and the invokable controller
Route::get('download', 'DownloadFile');

Finally, in NovaAction
// Generate the file, but dont store it
$fileResponse = (new ExportCustomExcel($models))->download(Str::random(64), ExcelFormat::XLSX);

// Generate the Url to download (will use DownloadFile  invokable controller)
$urlDownload = DownloadHelper::getDownloadUrlFromBinaryFileResponse($fileResponse, $downloadFileName)

// Download the file
return Action::download($urlDownload, $downloadFileName);


Using pydantic to serialize Python BaseModels to Rust

@samuelcolvin @PrettyWood
Is it possible to use Pydantic in a way that allows me to serialize my pydantic.BaseModels into Rust? Would be amazing for Big Data applications if possible.
Could you say what to do in a few sentences? Or is this something that requires work from the Pydantic side? Maybe an adapter package on both ends? For serializing from one language to the other.
I figured that Maturin + PyO3 would be a good start.

Please use discussions for questions.

Apologies, I thought this was out of scope for Pydantic.
How would I go from a BaseModel to generate a Rust struct?

oh sorry, hadn't seen this was on pydantic-core, rather than pydantic.
You can use a struct if you were prepared to compile rust for your specific application. Otherwise you use a hashmap.
Most probably what you actually want to use is Pola.rs, there's even a connection for pydantic, patito.

But how does pydantic-core do this?

Currently it doesn't, it just creates dicts, for TypedDict etc., for models we call tp_new on a class and setattr for __dict__ and __fields_set__, see here.
We might in future, but it's far from trivial.

Thank you!
Pola.rs seems to be the best way to do things right now, they recently released this.


use addchart,but the chart is blank

i used API demo , but get chart is blank
	categories := map[string]string{"A2": "Small", "A3": "Normal", "A4": "Large", "B1": "Apple", "C1": "Orange", "D1": "Pear"}
	values := map[string]int{"B2": 2, "C2": 3, "D2": 3, "B3": 5, "C3": 2, "D3": 4, "B4": 6, "C4": 7, "D4": 8}
	xlsx := excelize.NewFile()
	for k, v := range categories {
		xlsx.SetCellValue("Sheet1", k, v)
	}
	for k, v := range values {
		xlsx.SetCellValue("Sheet1", k, v)
	}
	xlsx.AddChart("Sheet1", "F2",
		`
		{
			"type":"bar3D",
		 	"series":[
					{"name":"=Sheet1!$A$2","categories":"=Sheet1!$B$1:$D$1","values":"=Sheet1!$B$2:$D$2"},
					{"name":"=Sheet1!$A$3","categories":"=Sheet1!$B$1:$D$1","values":"=Sheet1!$B$3:$D$3"},
					{"name":"=Sheet1!$A$4","categories":"=Sheet1!$B$1:$D$1","values":"=Sheet1!$B$4:$D$4"}
					],
			"format":{"x_scale":1.0,"y_scale":1.0,"x_offset":15,"y_offset":10,"print_obj":true,"lock_aspect_ratio":false,"locked":false},
			"legend":{"position":"bottom","show_legend_key":false},
			"title":{"name":"Fruit Line Chart"},
			"plotarea":{"show_bubble_size":true,"show_cat_name":false,"show_leader_lines":false,"show_percent":true,"show_series_name":true,"show_val":true},
			"show_blanks_as":"zero"
			}
		`)
	err := xlsx.SaveAs("./Workbook.xlsx")

Could you provide more details or file attachments and what's your golang version? I have tasted it works well.

I found the reason， I didn't use office to open it.
I hava another question , Can I save this chart  as picture in local ?

Sorry, you couldn't save the chart as picture by this library.


static IP configuration

how to configure the Static IP?, in my network i need to configure esp with static IP

hi sorry open this issue again, after i try it,  the ethernet got the static ip and i success pingit, but the device cant request data.
if i switch to DHCP , it working properly.

It is necessary to set dns when communicating with the outside.
#ifdef STATIC
  IPAddress ip(192,168,10,130);
  IPAddress gateway(192,168,10,1);
  IPAddress subnet(255,255,255,0);
  IPAddress dns(192,168,10,1);
  WiFi.config(ip, gateway, subnet, dns);
#endif

It is necessary to set dns when communicating with the outside.
#ifdef STATIC
  IPAddress ip(192,168,10,130);
  IPAddress gateway(192,168,10,1);
  IPAddress subnet(255,255,255,0);
  IPAddress dns(192,168,10,1);
  WiFi.config(ip, gateway, subnet, dns);
#endif

ok, it solved,


Simplify github PR template

Problem
Recently PR descriptions got longer but harder to actually read. Some problems come from our template:

The suggested order of sections in the template is unnatural. Talks about solution first, problem later. People naturally want to talk about the problem first, so they put paragraphs about the problem in the "wrong" section.
The sections are speaking to the writer, not the reader. Example: "Describe your changes" is not a good section

The checklist also adds quite a bit of noise but I have no good ideas for it so I'm not changing it.
In general when we notice that circumventing the process becomes the norm, we should dial back on process so we don't teach ourselves to ignore our own advice. We should somehow raise the bar for PR description quality, but there are other methods besides templates:

Set a good example
Praise good examples ("#props" slack channel maybe?)
When a PR is unreadable, ask the author for more. People want their PRs reviewed fast, and usually do what it takes to achieve that when given feedback

Summary of changes

reordered the sections
simplified the language

Checklist before requesting a review

[x] I have performed a self-review of my code.
[x] If it is a core feature, I have added thorough tests.
[x] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[x] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Another thing that always confuses me is bullet points in the checklist with if statements

It can be rephrased, or maybe removed. To me it feels a bit patronizing. We should trust people to use good judgement for the things the checklist is trying to enforce. If someone is adding tests only because the checklist said so, chances are the tests won't be that good.
Currently I also see people ignoring the checklist. It's the jira problem: is additional structure useful if people need to go out of their way to bookkeep things, and as a result the data is always stale?

At my last job, we had a PR template that we all just started ignoring and at some point removed.
If people think the checklists are important, it might be better for them to be in comments, since the PR template will still show them as the author creates it.


Default Data Source in SQL Editor

Hello All,
When I open scripts linked to the project it is hard to decide which connection to use except when there is only one for the project:

In this case is there any chance to add it to the SQL connection automatically?

Many thanks in advance:
Tamas

I'm not sure I clearly understand this.
Anyhow you can use "Associate with datasource" action (in context menu). Select a bunch of scripts and link them with needed database connection:

Hello,
Sorry I got no alert on this answer. It is a possible approach, thanks, but it would be nice if it was automatic in case the project has ONLY ONE data source.
Many  thanks:
Tamas

already implemented.


Is this available for atom

Is this available for atom editor ?

@MohiuddinSumon No, I'm not using Atom anymore, this extension is exclusively


[plot] Add tests for Imageview

This PR adds some tests for ImageView.
It has some issues with matplotlib 2.1.0rc1 on macOS python2.7, PyQt4 where QWidget recursive repaint and Cocoa errors occurs.

This PR also removes circular references that where causing tests to fails because of remaining widgets...
matplotlib 2.1.0rc1issue will be fixed in next release.

LGTM


CLI requires ISSUES_GITHUB_TOKEN to be set in env

It's not documented in the readme but the graphql call will fail without it. Would it be better to perhaps rely on the GH CLI if it's installed?
https://github.com/mrtazz/plan/blob/main/plan.go#L61

cc @mrtazz in case you missed this one

hmm yea error handling in there isn't ideal. At the very least it should shout in there that if the token is missing. I hadn't thought about GH CLI there as I mostly use this from an Action. But I like that idea.


  I even tried z-index:<PHONE_NUMBER>9; in the dev tools, no luck.
When I remove position: relative from sub styles it goes behind.
I know you're hard resetting browser styles, but this is a problem.

Stacking context can be hard to deal with, for modals usually it's best if they are used at the end of the document.
Tailwindcss uses the fairly widely adopted normalize.css as a base (+SUIT and some of its own).
This rule is also part of normalize.css from pretty much the beginning (8+ years ago), not sure tailwindcss should change this behavior.

Well my modal is part of a component that has to be put before the sub element.
Who ever is putting position on simple static elements that should not be positioned is wrong, no matter who they are and for how long they have been doing it. Bad hack.

Can you share a demo that reproduces the issue? It sounds like it would be fixable by adding a position and a z-index so want to understand why that's not working.
Either way not going to change this rule in Tailwind because we don't want to deviate from normalize.


(OSB) Repeat raid trips bugs out and doesn't send

🐛 Bug Report
When clicking the Repeat Trip button for Cox Cm solo, OSB Responds with "Thinking...." and never sends the command.

Same bug happens for ToA, and presumably tob?

Afaik this is fully fixed now


Add axios config for bitcoin related apis

Adding a axiosConfig so that the client to fine tune some axios client settings.

Most are formatting changes
Added an optional field in MempoolConfig

ethereum_evm_illustrated.pdf

mempool.js-2.2.4.zip

Purshese

bulk-sponsorships-template.csv

Implemented in #170


About the State Parameters

Hello, i have one Doubt . In the Main file Your Representing states of X0 with 10 parameters, that was sending to the solver. i want to know that what are the parameters are to sending to solver and also X0.s also you are using i don't know what the use of it.

The state is x0 = [X, Y, phi, v_x, v_y, r, s, d, delta, v_s]
X-Y -> position
phi -> heading
v_x -> longitudinal velocity
v_y -> longitudinal velocity
r -> yaw rate
s -> arc length along the reference path (middle line)
d -> duty cycle
delta -> steering
v_s -> velocity along the reference path
if you take an X-Y point and project it on the reference path, the arc length of this point is 's'
I hope this helps,
Alex


Mode Change Slow to Respond in Rainbow Modez

### Bank 3 | Modez 2-9
Behavior: When the speed of the brightness sequence is slow (A0 and/ or A1) the mode change doesn't happen until a point in the sequence is reached. (usually the end of the sequence)
Expected Behavior: Mode should change when button is pressed instead of waiting for sequence to complete.

checkButtons() should be assessed in RainbowQuad/ RainbowSquarez and/ or in-general.

Added some hustle and flow to keep things moving during double-click


fix: error types with ai service

Fix AI service error types

@dj-delima The reason for the change were additional requirements from the AI Assistant frontend to display error messages. See also JIRA ticket CG-40.


add bandersnatch point

Signed-off-by: Antoine Toulme<EMAIL_ADDRESS>

PR description
This adds just enough code to deal with the math required to create verkle proofs.
Documentation

[X] I thought about documentation and added the doc-change-required label to this PR if
updates are required.

Changelog

[X] I thought about the changelog and included a changelog update if required.

hey @atoulme is this needed for verkle tries considering java implementation will probably use JNI wrapper for ipa?

Yep.

hey @atoulme I still don't understand why do we need bandersnatch impl in java if we are using JNI wrapper of https://github.com/crate-crypto/ipa_multipoint which is done here: https://github.com/hyperledger/besu-native/pull/56 , can you please give a bit more info? pinging @gballet too


feat: run-tests can skip ops during release installation

'make run-dev' now installs ops in 'release.yaml' together with the operator installed by Tilt.
Add --skip-operator option to the run tests script. The use case is to skip ops installed  by Tilt.

Strongly -1 for me for this one, I don't want run-dev to mess with the rest of the cluster.

Strongly -1 for me for this one, I don't want run-dev to mess with the rest of the cluster.

I see. I updated the PR.

@nightkr is there anything else I can do here ?

thanks!


Support both JS/JVM and 2.10/2.11 via unmanagedSourceDirectories

While adding scala.js support, I was forced to remove the src/main/scala_2.10 and src/main/scala_2.11 directories. Previously we used:
unmanagedSourceDirectories in Compile +=
  (sourceDirectory in Compile).value / s"scala_${scalaBinaryVersion.value}"

This didn't work with scala.js, so I was forced to write macros that worked in both 2.10 and 2.11. However, this makes the macros under 2.11 slightly less powerful.
Old code (more powerful):
def summon[Ev](c: Context)(ev: c.Tree): c.Tree = ev

New code (2.10 compatible):
def summon[Ev](c: Context)(ev: c.Expr[Ev]): c.Expr[Ev] = ev

Why or in what way is the new version less powerful? I'm fairly new to macros and looking at the two signatures, I don't understand the difference.

Also, if you haven't read the following link, I think it would be helpful wrt this issue:
http://www.scala-js.org/api/sbt-scalajs/0.6.4/#org.scalajs.sbtplugin.cross.CrossProject

@japgolly My understanding is that with the current macro if you "summon" an X you get something back of exactly that type. With the older code, the return type could possibly be refined to something more specific.
This additional specificity isn't something that I need in most cases but my understanding is that libraries like Shapeless do really benefit from it.

Trying to cross build  2.10 and 2.11 here may also run aground on https://github.com/InTheNow/sbt-scalajs/issues/19 now that we are publishing for scala.js too.

Also, discipline is not released, despite https://github.com/typelevel/discipline/pull/13

Now that macro-compat is out, would you be looking to support the 2.11 more powerful and 2.10 less powerful at the same time? I'm asking because I'm very interested in seeing what this project could do for things we're working on at work.


web gui for mobile device (phone and tablet)

There is no way to use the web interface on mobile devices, all the menus overlap and there is no way to choose anything from the drop-down list. The problem is reproduced both on phones and tablets in various operating systems ios, ipados, android. I'm record video problem:
https://www.dropbox.com/sh/v5eut1tyroxlrls/AAByY_6L1SPVcUGzG4s0yQ4ka?dl=0

It would be great to have rancher working on mobile safari. I often take an iPad for quick fixes with me.

I second this. Even on an iPad Pro where the menus do not overlap there are problems.
The menus are seethrough and menu options are unclickable. The rest of the ui works though.


[Todo] Rounded SVG

Rounded background SVG feels a little too rounded. Try something less aggressive like 24 or 28 instead of 32.

What SVG's are too rounded?

This one you don’t need to worry about. This has to do with the rounded background effect. I want to experiment with different aspect ratios to see if I can make the rounded effect more pleasant, but this is purely a cosmetic thing.

What issues should I focus on?
Is there a Figma design available?

There is but it’s not exceptionally well organized: https://www.figma.com/file/O39qXQzsX22O3GRucgKC7d/feathericons.dev.
There aren’t a lot of issues that are easy to delegate just yet. I don’t think you need to worry about submitting PR requests until I work on the site again, which will be soon. I’ll try to follow-up here to let you know when that is.
I really do appreciate your work! Let’s circle back in a few days. 😁


SideMenuController has no member called 'Preference'

While enabling the sideman controller i'm getting error called SideMenuController has no member called 'Preference'. What is this issue? Any one got this.

Mine was fine yesterday. But got the same issue today, need help, too!


Add Ruby 3.1 and 3.2 to CI.  Update checkout action version.

Had to set bundler to latest to ensure that Ruby 3.0 pulled a bundler compatible with the ~> 2.3 requirement.
Runs green on my fork.

Thank you!


Blazor - client side debugging

Visual Studio 2019 16.2.0 Preview 3
.NET Core SDK: 3.0.100-preview6-012264
Chrome ver. 75....
I am able to open the DevTools window and see the C# code in browser However when I try to set a breakpoint, it fails with following message in asp.net core console
BP request for 'BreakPointRequest Assembly: bapp.dll File: ~/Pages/Counter.razor Line: 13 Column: 8' runtime ready True location ''
Could not resolve breakpoint request: BreakPointRequest Assembly: bapp.dll File: ~/Pages/Counter.razor Line: 13 Column: 8
BP req {
  "lineNumber": 13,
  "url": "file:~/bapp/Pages/Counter.razor",
  "columnNumber": 8,
  "condition": ""
}

What am I doing wrong?

This issue was moved to mono/mono#15649


feat(Styleguide): Convert All Stories to MDX

Storybook MDX
This is the full CSF => MDX switch.
Check it out: here
Here is the related RFC
Overview
There are are a few main themes in this PR:

MDX Conversion: Converts all CSF to MDX with the exception of (Tabs which is currently incompatible with MDX).
Updated Stories: Added new discrete stories to many components to surface possible options.
Config Cleanup: Cleans up storybook config adding baseline decorators and removing unused options.
File Structure: Introduces Storybook Category / Folder Structure.
Storybook Blocks: Converts existing Storybook Native components to Blocks.

Notes
There are a few things that are currently not included in this PR:

Full enforcement of naming standards.
Deprecation of CSF helpers.
Full TS / ESLint MDX support (though much of this is enabled through recommended VSCode extensions).
There are quirks with the MDX / Storyshot integration as any generic JSX tags inside of stories will be treated like MDX components (p, span, ...etc) causing StoryShot tests to break due to "illegal hook usage".  I have an open thread on the Storybook discord to figure out what is going on, in the meantime I have converted them to named components to avoid breakages.

Changes
MDX
The bulk of this diff is converting existing CSF story pages to MDX.  Much of this included moving the description and usage guides out of the preview window and into parsable markdown.
CSF:
export default {
  title: 'Core|Molecules/Alert',
  component: Alert,
  decorators: [withKnobs],
};

export const alert = decoratedStory(() => (
  <LayoutGrid rowGap="xl">
    <Column size={12}>
      <StoryTemplate status={StoryStatus.Ready}>
        <StoryDescription>
          Alerts can be used to asynchronously display feedback or interactions
          with the user with various connotations.
        </StoryDescription>
      </StoryTemplate>
    </Column>

    <Column size={12}>

Feedback Alert

        Serves as feedback and confirmation that requires an
        action.

Informational/general feedback

      <Alert
        showIcon
        type={BannerType.Info}
        cta={{ text: 'Login', onClick: () => {} }}
        onClose={() => {}}
      >
        You have been logged out due to inactivity.
      </Alert>
    </Column>
</LayoutGrid>);

MDX:
<Meta title="Core|Molecules/Alert" component={Alert} />

# Alert

<StoryStatus status="ready" />

Alerts can be used to asynchronously display feedback or interactions
with the user with various connotations.

<Preview withSource="open">
  <Story name="Alert">
    <Alert
      showIcon
      type={BannerType.Info}
      cta={{ text: 'Login', onClick: action('CTA Click') }}
      onClose={action('Close')}
    >
      You have been logged out due to inactivity.
    </Alert>
  </Story>
</Preview>

<Props story="Alert" of={Alert} />

Base Story Order :

Meta Block
Title (h1)
Status Block
Overal Description
Main Story with Knobs (Preview and Story Blocks)
PropTable
Any sub stories.

Substories:

Title (h2)
Description.
Story Blocks

This format is not always consistent depending on the component, but for insular components it works well.  I do not as of yet have a playbook for what will work best in the future.
Story Updates
Some stories may have changed in various ways:

There maybe significantly more stories now.  I have started splitting stories by discrete visual states rather than preview window.  (This is especially true in the case of Button).
Added Prop Tables to components if they did not have one and added subcomponent prop tables for all commonly used together components:

Converted all Icon set docs to the built in storybook icon gallery:

Config
Several updates to storybook config are included in this including:

Category / Atomic story sorting (See below section for allowed sections).
Knobs added to all stories without needing to include it on every story.
Standalone source formatting with prettier (this is necessary for story source to be formatted correctly between MDX => CSF transpilation)
Adds a darkmode preview classname for temporary theming support.  (This will need to be improved upon later).

File Structure
All story files are now organized by the category they fall under inside of the /stories/ directory.  These top level categories represent the current usage status: Core, Labs, Deprecated.
Inside of these directories all stories go under respective atomic design folders of: Foundations, Atoms, Molecules, Organisms.
Story titling should match directory structure, until we make them dynamic:
${category}|${atomicClassification}/${componentName}
Storybook Blocks
There are a few elements that have been converted to use StoryBooks theme aware emotion instance including StoryStatus and Swatches. These components have been moved out of the /stories directory and live in their own /templating area.  As we develop more sophisticated storybook usages we may want to make more native components that are not tied to our design system.
Testing
Developer Changes

Deploy locally and yarn clean-modules && yarn && yarn build-all && yarn start
Install recommended vscode extensions for mdx support.  I highly suggest adding prettier to your local vscode instance as well and enabling mdx formatting.
View any *.stories.mdx file and update it.

Documentation Changes

Visit the Styleguide
View any story and check for any breakages.

🚀 Styleguide deploy preview ready!https://5eb441bd78f002c4ea6baf14--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb4910a322d97c5c9c5875f--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb4c4c3c356e4f37eba001d--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb4f50d3eca3b887fdd37d9--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb5bac47276d27a2a69ebf4--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb5e8d76b524c8c4b5920bb--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb600f855780e758a01a24c--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb73acf588cea0256bfb600--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb958681842f596cf0a5b56--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb977a21842f59fc90a5e98--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb97d6edfd2a0c514e25555--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb99c9fe52ccc54cb90c14b--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb9a017f5037a017acad3e5--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb9c4cc975cef052b13e010--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb9cc5cc6dc4a807f5b0da1--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb9d0726f64a8f2a8a0b810--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5eb9e975f5037a20e8cad2bc--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5ebadd4dbcb219ef36d37830--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5ebae8575fe04601f4f5a748--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5ebaf2c6d206f7ec14643f72--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5ebafe38a5bd2b6811bb0a1a--codecademy-styleguide.netlify.appDeploy Logs

📬Published Alpha Packages<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://5ebb0dd1d1cbb83db6aec644--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5ebb17e9b9092401be3d2d3c--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5ebb1cc5938b7b0179376971--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5ebbfd87f2f1f93b374dc79e--codecademy-styleguide.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://5ebc0106873ac06a60d060c9--codecademy-styleguide.netlify.appDeploy Logs


Feature: Cross reference packages

Is your feature request related to a problem? Please describe.
If you required a package that is already installed by another package, you might be able to remove this package from your requirements. To help the user understand, that this package is require by another, a cross reference check should be added.
Describe the solution you'd like
A notice about if an unused package is cross reference by another one.
Smt like this:
Results
-------

 Unused packages
 * package/a ✗ (required by package/b)

Tested with zendframework/zend-servicemanager and zendframework/zend-stdlib

Solves with 0.4.0


RS-485 seems OK but UI is all Zero values!

I have set up the RPi with a RS-485 to USB FTDI adaptor. I can see the messages like below.
Unfortunately, running le Web interface or API doesn’t work for me. I have the following result!
Did I miss something ? I just run:
./infinitive -httpport=8080 -serial=/dev/ttyUSB0

INFO[0000] read frame: 5001 -> 2001: RESPONSE<PHONE_NUMBER>45524553542054574f204341504143495459204f4455000000000000000000000000000000000000000000000000434553523133313339302d31312020003234414e42373336413030333130333000000000323531344e34323238323120323831344532363433330000000000000000000000000000
INFO[0000] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>000000000005aa00
DEBU[0000] blower RPM is: 0
INFO[0000] read frame: 4001 -> 2001: RESPONSE 00030a017272030051004e000010080114
INFO[0000] read frame: 5001 -> 2001: RESPONSE 003e0103ac039303ff03ff000001013c
INFO[0000] heat pump coil temp is: 57.187500
INFO[0000] heat pump outside temp is: 58.750000

I am having a similar issue with Bryant Evolution setup. I can see the heat pump temps in the logs but nothing else (no blower RPM etc). With infinitude I can see the data on their serial page so I know the interface is working correctly.

Update looks like the code is parsing the air handler and heatpump fine, but not the thermostat.
/api/zone/1/airhandler
{"blowerRPM":1223,"airFlowCFM":908,"elecHeat":false}
/api/zone/1/heatpump
{"coilTemp":99.3125,"outsideTemp":87.6875,"stage":2}
/api/zone/1/config
{"currentTemp":0,"currentHumidity":0,"outdoorTemp":0,"mode":"heat","stage":0,"fanMode":"auto","hold":false,"heatSetpoint":0,"coolSetpoint":0,"rawMode":0}

Think I am getting closer. Here is the thermostat responding to the fake SAM, but something is wrong.
INFO[1169] read frame: 2001 -> 9201: RESPONSE 003b03000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
INFO[1169] got response for incorrect table, is: 012001 expected: 003b03

Hi, any updates on this issue @marcusadolfsson ?
I just tried to install this and have a similar issue. My screenshot has all 0s like the one that @pcornill shows, except mine does in fact show the blower RPM.
When I look at logs I see the following:
Mar  6 14:46:48 server infinitive[929]: time="2019-03-06T14:46:48-05:00" level=info msg="read frame: 2001 -> 4001: READ     000104"
Mar  6 14:46:48 server infinitive[929]: time="2019-03-06T14:46:48-05:00" level=info msg="read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>524941424c45205350454544204655524e4143452020000000000000000000000000000000000000000000000000434553523133313331322d313520202035384356413039302d2d2d313531313600000000333131304e33313639333420333331304131363237370000000000000000000000000000"
Mar  6 14:46:48 server infinitive[929]: time="2019-03-06T14:46:48-05:00" level=info msg="Error reading device info|EOF|"

And then when I try to pull it up the web UI, I see the following:
Mar  6 14:47:06 server infinitive[929]: time="2019-03-06T14:47:06-05:00" level=debug msg="heat pump coil temp is: 42.125000 F"
Mar  6 14:47:06 server infinitive[929]: time="2019-03-06T14:47:06-05:00" level=debug msg="heat pump outside temp is: 49.375000 F"
Mar  6 14:47:06 server infinitive[929]: time="2019-03-06T14:47:06-05:00" level=info msg="error on websocket write: write tcp <IP_ADDRESS>:8080-><IP_ADDRESS>:61818: write: broken pipe"
Mar  6 14:47:06 server infinitive[929]: time="2019-03-06T14:47:06-05:00" level=info msg="closing websocket"
Mar  6 14:47:06 server infinitive[929]: time="2019-03-06T14:47:06-05:00" level=info msg="error on ws close: write tcp <IP_ADDRESS>:8080-><IP_ADDRESS>:61818: write: broken pipe"

Looking into this more, seems like this is behavior on a touch thermostat. You have to use a project like infinitude instead and proxy the connection through there, as things like temperature live on the touch thermostat and not the ABCD bus.

It's entirely possible(and I think probable since touch stats can be made aware of SAMs) that settings can be pulled from a touch stat, but at minimum they live at different - as yet undetermined - registers and would need to be queried because the stat has no need to advertise them to other devices.

Interesting discussion, I'm having the same issue here using the touch thermostat. What intrigues me is that external sensors like the outside temperature is advertised using the BUS to the thermostat, but it's not interpreted by infinitive.

This code advertises as a SAM though, right?  Does that mean that even a SAM wouldn't have access to this data?

@marcusadolfsson did you ever make any further progress here?  I just added a new system and figured I'd try this again and so far am only parsing air handler fan speed.  /api/devices returns a blank page which I suspect is a bad sign.  Lots of data, but not getting parsed into anything useful.

Any updates to this....
I am only seeing FAN motor rpm and CFM. So I know I am connected and working correctly. Everything else are zeros for temps etc.. I am guessing infinitive is not aware of this variable speed furnace, tstat, and variable speed condenser? Any help would be great.
Eric


file_smart_open missing mode 'rb' caused error

Line 668 in def file_smart_open(fname, mode='rb', encoding=None, errors=DEFAULT_ERRORS) in smart_open_lib.py
try:  # TODO need to fix this place (for cases with r+ and so on)
        raw_mode = {'r': 'rb', 'w': 'wb', 'a': 'ab'}[mode]
except KeyError:
        raw_mode = mode

Should include r+ cases. Otherwise, when mode == 'rb', this will cause KeyError

Thank you for reporting this, but I'm not sure what the issue is here. If mode is rb, then a KeyError is raised, but it gets caught immediately below.
Reading files in binary mode also works as expected:
(smartopen)sergeyich:smart_open misha$ python
Python 3.6.3 (default, Oct  4 2017, 06:09:15)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import smart_open
>>> fin = smart_open.smart_open('setup.py', 'rb')
>>> binary = fin.read()
>>> repr(binary[:10])
"b'#!/usr/bin'"

Could you please clarify what the problem is? What error are you seeing, and what exactly are you doing to cause that error?

I was trying to load a pickle file from my local file system by using
model = KeyedVectors.load('input_model.p', mmap='r')
and this then KeyError was caught, which prevents me from loading the model

after I changed
raw_mode = {'r': 'rb', 'w': 'wb', 'a': 'ab'}[mode] to raw_mode = {'r': 'rb', 'rb':'rb', 'w': 'wb', 'a': 'ab'}[mode]
I was able to load the model

Thank you for providing us more details.
What is KeyedVectors? It isn't part of the smart_open library, from what I know. How is your code using smart_open?
The KeyError should definitely be caught... Could you please paste your relevant code, and the full stack trace here?

@mpenkov KeyedVector is class from gensim that used for storing *2vec vectors (code)
Need to test this part more carefully and investigate this problem.
Thanks for report @cosmoschen94, can you share your input_model.p file with us (for reproducing your error)?

I tried to reproduce this (for py27 and py36 versions), but I see no bug, everything is working fine.
versions:

smart-open==1.5.5
gensim==3.2.0

import gensim.downloader as api

model = api.load("glove-twitter-25")
model.most_similar("hello")  # works fine

# save model
model.save("input_model.p")

# load without mmap
loaded_model = model.load("input_model.p")
loaded_model.most_similar("hello")  # works fine

# load with mmap
loaded_model = model.load("input_model.p", mmap="r")
loaded_model.most_similar("hello")  # works fine

For this reason, I close this issue.


Fixing the clone() function in Suite, adding specs

I started adding specs around the suite.js file. I noticed the clone() method was calling the _bail() function instead of bail(). Fixed that and changed the "==" to "===".

Thanks for the .bail fix, my bad.
Why the === change?

Not a big difference, it's more for safety.
Douglas Crockford recommends using "===" instead of "==", since it not only checks value-, but type equality as well.
5 == "5" // evaluates to true
5 === "5" // evaluates to false

Hope you don't mind that change.

Note that the change is useless because arr.length is almost always going to be a number. Thus == is safe here.
Whether == or === should be used is a style choice left upto the project owner.
Note favouring === over == is of course useful if you don't know the type of the thing your comparing.

@Raynos: I agree that changing the == to === would not make a difference. I can take it out if needed.

In this case == would be more consistent with the rest of the codebase.

Thanks! This looks +1.
Another tip before TJ merges, I notice you should .length.should.equal a lot. A shorter form as described in should.js is: user.pets.should.have.length(5)

@guille: Yup, fixed them. Thanks for catching those!

looks good thanks!


Model Inference broke with rmvpe

Currently, it works with these:

[x] pm
[x] harvest
[x] crepe
[ ] rmvpe

With rmvpe, I get these errors:
Traceback (most recent call last):
  File "/opt/rvc/infer/modules/vc/modules.py", line 134, in vc_single
    audio_opt = self.pipeline.pipeline(
  File "/opt/rvc/infer/modules/vc/pipeline.py", line 355, in pipeline
    pitch, pitchf = self.get_f0(
  File "/opt/rvc/infer/modules/vc/pipeline.py", line 148, in get_f0
    f0 = self.model_rmvpe.infer_from_audio(x, thred=0.03)
AttributeError: 'NoneType' object has no attribute 'infer_from_audio'

Traceback (most recent call last):
  File "/home/nato/.asdf/installs/python/3.10.13/lib/python3.10/site-packages/gradio/routes.py", line 437, in run_predict
    output = await app.get_blocks().process_api(
  File "/home/nato/.asdf/installs/python/3.10.13/lib/python3.10/site-packages/gradio/blocks.py", line 1349, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "/home/nato/.asdf/installs/python/3.10.13/lib/python3.10/site-packages/gradio/blocks.py", line 1283, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "/home/nato/.asdf/installs/python/3.10.13/lib/python3.10/site-packages/gradio/components.py", line 2586, in postprocess
    file_path = self.audio_to_temp_file(
  File "/home/nato/.asdf/installs/python/3.10.13/lib/python3.10/site-packages/gradio/components.py", line 360, in audio_to_temp_file
    temp_dir = Path(dir) / self.hash_bytes(data.tobytes())
AttributeError: 'NoneType' object has no attribute 'tobytes'

System
OS: Pop!_OS 22.04 LTS x86_64 (Yes, a real Linux, not WSL)
Host: MS-7D53 1.0
Kernel: 6.4.6-76060406-generic
CPU: AMD Ryzen 5 5600X (12) @ 3.700GHz
GPU: AMD ATI Radeon RX 6700 XT
Memory: 32007MiB

Python 3.10.13

fixed now.
You can update the repo and put 2 rmvpe model files into assets/rmvpe


[FR] YAML property with autoscroll speed

I suggest to name a property to set the autoscroll speed. This is useful to set it to each note differently, so they scroll differently according to the tempo for each song (note).
This is how it would look like:
---
autoscroll-speed: 6
---

So, if the note contains this property it would override the "default auto-scroll speed" to that value when it is inside that note.
ps: Btw this is a great plugin, thanks for your effort :)

Seems like a useful suggestion, I'll have a look at it.
Glad you like the plugin!


DynDNS 2 not working when using subdomain root

Hey,
i run into and issue when i have a client network i ussually make a new zone like clientsname.locations.example.com
these has records like
@ SOA ns-01.example.com. support.example.com.<PHONE_NUMBER> 3600 600<PHONE_NUMBER>
@ NS ns-01.example.com.
@ NS ns-02.example.com.
@ NS ns-03.example.com.
@ NS ns-04.example.com.
@ A <IP_ADDRESS>
rtr-01 A <IP_ADDRESS>
sw-01 A <IP_ADDRESS>
ap-01 A <IP_ADDRESS>
etc
now when it tried to update this A record is actually tried to change the first record which is the SOA
DynDNS update: updated record clientsname.locations.example.com in zone clientsname.locations.example.com, it changed from ns-01.example.com. support.example.com.<PHONE_NUMBER> 3600 600<PHONE_NUMBER> to <IP_ADDRESS>
how can i fix it without having to redo like 500+ records into one huge zone file?

it litterally takes the first record not even checking if its even a A type

Hello,
This request is stale for too long. Regarding our policy to cleanup this project, we are closing it. Feel free to open a new issue later if you still encounter this problem.
Regards
PowerDNS Admin Team
See #1153 for the policy


Infrastructure

This seems like a fine-enough place to make a PR. This PR adds:

a generic ECS Containerized web application CF template - a cluster, task definition, service, and load balancer, and the necessary security groups, execution roles, listeners, and target groups.

conditionally produces an HTTPS listener given an SSLCert parameter
uses sceptre and jinja templating to iterate through a list of environment variables to attach to the container

a generic Postgres RDS DB Instance CF template - creates a Postgres RDS database instance and the necessary db subnet group and security group.

includes a security group ingress rule on port 5432 from the application security group - a parameter to the template.
I decided to use the RDS DB Instance running Postgres rather than an RDS Aurora cluster, since I don't think this DB instance will see significant traffic? AFAIK it's only powering the admin interface?

a codebuild CloudFormation template - this one is a bit more work in progress with a lot more TODO

Noteworthy:

The sceptre config to actually configure the cinco admin application servers and database instance rely on environment variables set for VPC_ID, SUBNET_IDS, DB_USERNAME, and DB_PASSWORD.
In order to use this same template to support Calisphere's thumbnailer application, which runs at port 8888, I had to open up that port in the security group. I chose to make a separate security group entirely, rather than adding an ingress rule to the existing security group. This felt marginally more secure - so the load balancer has a security group allowing ingress on 80 and 443 (if an ssl cert is provided), while the ecs service security group allows ingress on the specified port only (in this case, 8888). If the container's port is 80, then we just use the same security group for both the load balancer and the ecs service. Instead, you could imagine optionally adding an ingress rule to the load balancer's security group allowing ingress on 80 and 443 and 8888.
The database configuration is dependent on the application server stack for the application server stack's security group. This could get circular when we move to define the DB hostname in the environment variable configuration of the application server's config.
Namespacing - this all uses cinco-admin as the namespacing, I can change this to cinco-ctrl or whatever else makes sense. I imagine there is a directory parallel to the admin directory called arclight? and that there are directories within admin (and the parallel arclight) called dev, stg, and prd? I'm not particularly attached to this structure and imagine it will continue to evolve as we come to better understand the pieces of it. I think there might be a way to tap into this directory structure using sceptre to provide names to all the resources, but for now I sketched in a Namespace parameter to the CloudFormation.
I chose to use generic names for each of the Resources in the CloudFormation templates and focused on trying to describe how the resources were related to each other, rather than how they were related to a specific application. So we have an HTTPSListener rather than CincoAdminHTTPSListener. Given that these names only exist within the scope of the template itself, though, I felt this was an okay naming convention.

@amywieliczka This looks good to me! I hadn't used the Conditions functionality before and it's neat to see it in use 🙂
I do wonder if it it would be simpler to just create a separate security group for the load balancer regardless (even if it only listens on port 80). I don't think there's any harm or extra cost in having an additional one, and the template would be easier to read?
Yeah, I've run into the circularity of the db security group and the application security group. Not sure I have anything useful to add though 😆


Instance sorting and grouping

I confirm:

[x] that I have searched for an existing feature request matching

Just adding this from discord so it's here and not hiding in discord
https://discord.com/channels/266012086423912458/1258738446998962286

Duplicate of #750

Dup request closing out


Doesn't render enum values

Expected Behavior
When a field has the enum property, Scalar should show the possible values
Actual Behavior
It shows the field simply as string:

Reproduction steps
Add a property like this:

"entity_type": {
    "type": "string",
    "enum": [
         "company",
         "user"
    ]
}

And render it on Scalar

Version
latest
What browsers are you seeing the problem on?
Chrome

You’re so right

I think we can close this one

how to use this with scalar_fastapi library?

Can we add support to render dropdowns for enums in Test Request?