Zero config mode: add hints and override file extensions

User story
As part of issue #1406 we implemented a first version of the zero config code feature, which generates a default Vitessce view config for 3 file types: OME-TIFF, OME-Zarr and Anndata-Zarr, given some assumptions. Mainly, the implementation relies on the file extensions: if a file of supported format doesn't have the correct extension, it is not accepted and view config is not generated. Similarly if a file of the wrong format ends with a supported extension, then a view config is generated, but that view config will not work.
There are no hints on the http://vitessce.io/#?edit=true page -- all instructions on how to use the feature are written as documentation.
Allow users to open files with non-standard names, that are still of supported format.
Preferred solution

Add an "override" button to allow for people to open non-standard-ly named files.
Add hints on the http://vitessce.io/#?edit=true page

Possible alternatives
Use case

[ ] Relevant to HuBMAP Consortium
[ ] Relevant to Kidney Precision Medicine Project
[ ] Relevant to Human Tumor Atlas Network
[ ] Other

To clarify, the intention was for "hints" to be provided to the generateConfigs function by the user (the hints are not for the user).
For more context, this notion of "hints" comes from https://github.com/hubmapconsortium/portal-visualization/blob/aea9b66c658beda9c28735b03d6fd38ac9c4e763/src/portal_visualization/builder_factory.py#L28 where a HuBMAP API response describes a given HuBMAP dataset. The referenced python code checks the API response for a list of "hints" for additional information about how to configure Vitessce. These hints are a list of strings like hints = ["is_image", "codex"] which allows, for example, to make additional assumptions about which pipeline produced the data and therefore which keys or column names to expect the data file(s) to contain.
The idea here would be to similarly accept a list of "hints" as an additional parameter: generateConfigs(fileUrls, hints). These could then be exposed via some kind of multi-select interface like a list of checkboxes

To clarify, the intention was for "hints" to be provided to the generateConfigs function by the user (the hints are not for the user).
For more context, this notion of "hints" comes from https://github.com/hubmapconsortium/portal-visualization/blob/aea9b66c658beda9c28735b03d6fd38ac9c4e763/src/portal_visualization/builder_factory.py#L28 where a HuBMAP API response describes a given HuBMAP dataset. The referenced python code checks the API response for a list of "hints" for additional information about how to configure Vitessce. These hints are a list of strings like hints = ["is_image", "codex"] which allows, for example, to make additional assumptions about which pipeline produced the data and therefore which keys or column names to expect the data file(s) to contain.
The idea here would be to similarly accept a list of "hints" as an additional parameter: generateConfigs(fileUrls, hints). These could then be exposed via some kind of multi-select interface like a list of checkboxes

Thanks for the clarification Mark, it's very helpful!

@keller-mark I have opened a Google document to start brainstorming on the initial set of hints. The document is here: https://docs.google.com/document/d/1AKjDwLz2d2mV29KHMVVwYZXGVrBUZpcUGo82fZFcNu8/edit?usp=sharing Can you add your thoughts? I will include it for discussion in one of our next Developer meetings.

Something to discuss in a future meeting: decide on an initial set of hints to support, and what exactly each should do/assume


[fix bug 1262189] Raise 404 on all exceptions in list_reports.

@johngian quick r?

I suggest we just extend the exceptions to also capture: MultiValueDictKeyError

Nope because if you try to change the query, a different one will be raised. And truth be told if we don't get exactly what we are aiming for, we should raise 404

Coverage remained the same at 92.019% when pulling f26242cd26b05b684f1ae1461ce541910000429a on akatsoulas:reports-traceback into d83da50e264ef5706b80935d062e46978f90314c on mozilla:master.

r+

Coverage decreased (-0.008%) to 92.011% when pulling 3896e507dc7db6f3d98785922bd7db856e0e5a74 on akatsoulas:reports-traceback into d83da50e264ef5706b80935d062e46978f90314c on mozilla:master.

r+wc

Coverage increased (+0.0008%) to 92.019% when pulling 54c24c84e4c1f5bec7781eb4f0b607dd1e927508 on akatsoulas:reports-traceback into d83da50e264ef5706b80935d062e46978f90314c on mozilla:master.

Coverage decreased (-0.01%) to 92.009% when pulling 25bed29b7f3b43569bec8bed60ee48b0985a5744 on akatsoulas:reports-traceback into d83da50e264ef5706b80935d062e46978f90314c on mozilla:master.


Xcode 12 模拟器上运行报错：Value of type 'AVMetadataMachineReadableCodeObject' has no member 'corners'

我特么也遇到这个问题了

屏蔽掉

应该增加#if !targetEnvironment(simulator)判断。真机运行是没问题的。
来源：https://developer.apple.com/forums/thread/658471
原话：This happened before and is related to how obj-c symbols are imported in Swift, not deprecation/removal of API. corners at least exists in the non-simulator SDK, so you can perhaps work-around using #if !targetEnvironment(simulator).

应该增加#if !targetEnvironment(simulator)判断。真机运行是没问题的。
来源：https://developer.apple.com/forums/thread/658471
原话：This happened before and is related to how obj-c symbols are imported in Swift, not deprecation/removal of API. corners at least exists in the non-simulator SDK, so you can perhaps work-around using #if !targetEnvironment(simulator).

有道理，针对模拟器屏蔽掉

应该增加#if !targetEnvironment(simulator)判断。真机运行是没问题的。
来源：https://developer.apple.com/forums/thread/658471
原话：This happened before and is related to how obj-c symbols are imported in Swift, not deprecation/removal of API. corners at least exists in the non-simulator SDK, so you can perhaps work-around using #if !targetEnvironment(simulator).

有道理，针对模拟器屏蔽掉

直接这样吗？

应该增加#if !targetEnvironment(simulator)判断。真机运行是没问题的。
来源：https://developer.apple.com/forums/thread/658471
原话：This happened before and is related to how obj-c symbols are imported in Swift, not deprecation/removal of API. corners at least exists in the non-simulator SDK, so you can perhaps work-around using #if !targetEnvironment(simulator).

有道理，针对模拟器屏蔽掉

直接这样吗？

看不到图片，直接针对模拟器处理代码就好，然后编辑就不会报错了

应该增加#if !targetEnvironment(simulator)判断。真机运行是没问题的。
来源：https://developer.apple.com/forums/thread/658471
原话：This happened before and is related to how obj-c symbols are imported in Swift, not deprecation/removal of API. corners at least exists in the non-simulator SDK, so you can perhaps work-around using #if !targetEnvironment(simulator).

有道理，针对模拟器屏蔽掉

直接这样吗？

是这样。

👍


Save semantic segmentation predictions as .png

Hello Experts,
I am doing Semantic Segmentation using SAS DLPy UNET model for which I referred the example notebook posted on this github page.
Now I have a trained model saved as .sashdat and I load it and am trying to use it for completely new out of the box data. I used model.predict which gives output in the form of CAS table.
But I want to check the results by displaying and saving the images (predicted outputs). Is there a pre-available function to do that in utils or is there an easy way to accomplish this task?
Thanks in advance!

Hello,
display_segmentation_results can display the predicted images. While there are no pre-defined APIs that can save predicted images to disk, you can convert the predicted images to np array and use opencv to save them as PNGs.


DependsOnGroups mechanism does not work with method-level parallelism

TestNG Version
6.11
Description
Test method T1 is annotated with dependsOnGroups.
Tests from this group are located in another test class.
Tests are being run in parallel (method-level) as groups.
Expected behavior
Test method T1 is executed only after tests from group it depends on are finished.
Actual behavior
Test method T1 is started while tests it depends on are still being run.
Note
When run consecutively, the behavior is as expected.
Is the issue reproducible on runner?
[+] Maven
[+] IntelliJ

https://github.com/cbeust/testng/pull/1290


[Task - RTS]: RTS to autoresolve the workflow request queries in the similiar fashion as browser does

[ ] Create a separate queue for test runs.
[ ] Figure out what to do with the workflow requests.

Please add your planning poker estimate with Zenhub @nsarupr


[Avocado] false positive: complains about missing READMEs in a directory unrelated to the PR

https://github.com/Azure/azure-rest-api-specs/pull/25034/checks?check_run_id=15696878759
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2985093&view=logs&j=22cb5f76-5058-5a9d-2377-d04e5451a5f2&t=75f8d99b-764d-5b43-90d5-e9f774389f08
Teams conversation

The PR touches only files in specification/appplatform/resource-manager/Microsoft.AppPlatform/ but Avocado has problems with READMES missing from specification/mpcnetworkfunction/resource-manager
The Avocado command is
./node_modules/.bin/avocado -f pipe.log --excludePaths "/common-types/" "/scenarios/" "/package.json" "/package-lock.json" "/cadl/examples/" --includePaths "data-plane" "resource-manager"
which appears to be "catch-all".
Not only that, it appears to want READMEs in dirs where they shouldn't be, e.g.

https://github.com/Azure/azure-rest-api-specs/tree/main/specification/mpcnetworkfunction/resource-manager/Microsoft.MobilePacketCore/preview/2023-05-15-preview/examples

Full log:
{"level":"Error","code":"MISSING_README","message":"Can not find readme.md in the folder. If no readme.md file, it will block SDK generation.","path":"/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/mpcnetworkfunction/resource-manager/Microsoft.MobilePacketCore/preview/2023-05-15-preview/examples","folderUrl":"/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/mpcnetworkfunction/resource-manager/Microsoft.MobilePacketCore/preview/2023-05-15-preview/examples"}
{"level":"Error","code":"MISSING_README","message":"Can not find readme.md in the folder. If no readme.md file, it will block SDK generation.","path":"/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/mpcnetworkfunction/resource-manager/Microsoft.MobilePacketCore/preview/2023-05-15-preview","folderUrl":"/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/mpcnetworkfunction/resource-manager/Microsoft.MobilePacketCore/preview/2023-05-15-preview"}
{"level":"Error","code":"MISSING_README","message":"Can not find readme.md in the folder. If no readme.md file, it will block SDK generation.","path":"/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/mpcnetworkfunction/resource-manager","folderUrl":"/mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/mpcnetworkfunction/resource-manager"}
avocadoForDir: /mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/appplatform/resource-manager
avocadoForDir: /mnt/vss/_work/1/c93b354fd9c14905bb574a8834c4d69b/specification/appplatform/resource-manager

Another case:

https://github.com/Azure/azure-rest-api-specs-pr/pull/14406/checks?check_run_id=16196112560
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3032323&view=results
Teams


Remove Unused Components

There are a couple components sitting around from the initial setup of the app and the starter repo. This PR removes those items. Also, I initially started renaming the About.spec to test the AboutTheCollection component, but webpack doesn't like the extensions on some image imports (ex. import AboutCharles from '../images/about-charles.png';), so some configuration is needed before testing components with image imports.

Note the differences between localhost and production:

Production's project description is blank. (Everything after "Welcome to Anti-Slavery Manuscripts")
The font of the main h1 element is very, very different. Everything else seems OK, strangely.

GODDANGIT. Sorry, ignore that previous post. That was supposed to go in a separate issue; I have way too many tabs open.


MLHR-1936 Adding NiFi operators to contrib

This pull request adds NiFi operators to the contrib module. The integration is based off the NiFi site-to-site client which is the mechanism for pulling/pushing data to/from a NiFi instance or cluster. It is used internally when a NiFi instance communicates with another instance, and also between other third party frameworks. In a cluster, the site-to-site client knows about the nodes in the cluster and will pull/push to/from all nodes.
To test the operators against a running NiFi instance you can do the following:

Download the latest NiFi release and extract it: https://nifi.apache.org/download.html
Edit conf/nifi.properties and set nifi.remote.input.socket.port to any available port, and nifi.remote.input.secure=false
Start NiFi with bin/nifi.sh start
Go the NiFi UI in your browser http://localhost:8080/nifi/
Import the NiFi_Apex template that will be attached to the JIRA, template button in top-right toolbar
Drag the template on to the canvas, button near top-left of toolbar
Start all of the processors and ports
Run either TestNiFiInputApplication or TestNiFiOutputApplication in contrib/src/test/java/com.datatorrent.contrib.nifi.demo

The left side of the flow generates fake data to a NiFi output port, the NiFi Site-To-Site client will pull data from this output port in the case of the Malhar NiFi input operator. The right side has an a NiFi input port waiting for data to be pushed from the Malhar NiFi output operator.
Some questions/comments....

Is using activate/deactivate preferred over setup/teardown?
I wasn't sure if calling Thread.sleep in emitTuples was appropriate here. We did this in other integrations such as storm and spark, but in those cases we were with in a while loop so we didn't want to make a ton of requests when no data was available. I'm not familiar with how Malhar will call emitTuples, so let me know if this doesn't sense here.
Wasn't sure about the preferred approach for exception handling, seems wrapping a checked exception with RuntimeException is appropriate?
I noticed some other operators used a WindowDataManager which I think was to be able to replay data,  didn't really know enough about that to know if that was needed here.

@bbende Thanks for the contribution. We follow a certain style and there are checkstyle violations in the pull request. If you use IntelliJ, the code style settings can be found here:
https://github.com/apache/incubator-apex-core/blob/devel-3/.idea/codeStyleSettings.xml
The settings for other IDEs are outdated but let me know if you use any of those.

Wasn't sure about the preferred approach for exception handling, seems wrapping a checked exception with RuntimeException is appropriate?
Yes, that is appropriate. Swallowing exceptions has proven to be troublesome.

@chandnisingh thanks for pointing out the styling, i should have looked at that before submitting. I use IntelliJ and think I have it all reformatted now, ran mvn checkstyle:check and there are no more violations for nifi related classes.
Since this modified most of the files, do you prefer I squash the commit and force push? or do you want to see it as a separate commit?

Thanks @bbende We do prefer a single commit in the end but you don't have to do this right away. Once the pull request is ready to be merged, you can squash all your commits then. I will be responding to your other questions soon

I wasn't sure if calling Thread.sleep in emitTuples was appropriate here. We did this in other integrations such as storm and spark, but in those cases we were with in a while loop so we didn't want to make a ton of requests when no data was available. I'm not familiar with how Malhar will call emitTuples, so let me know if this doesn't sense here.
@bbende
If emitTuples doesn't generate tuples, then the main operator thread will sleep before emitTuples is called again. So there isn't a need to sleep here.

Is using activate/deactivate preferred over setup/teardown?
We use activate/deactivate in the following scenario:
While integration with certain systems (for example message queues), if setting up session initiates receiving messages immediately then setting of this session belongs in activate rather than setup because  in setup the operator might be doing some intensive tasks like IO operations, etc. and it will not help to buffer the messages.

I noticed some other operators used a WindowDataManager which I think was to be able to replay data, didn't really know enough about that to know if that was needed here.
WindowDataManager is used for making an operator idempotent. I think we don't have to address this now. In the first cut we can focus on making the adapter fault-tolerant.

@chandnisingh thanks for answering those questions, pushed some changes up based on that feedback, and got the travis build passing again.

Bryan, thanks for contributing the NiFi support!
There are a few code style related things to be addressed, we also realized that the pointers were missing and added them now: http://apex.incubator.apache.org/contributing.html#code-style

Just wanted to let everyone know I haven't forgot about this. Hoping to get back to it soon and make the recommended changes, thanks for all of the feedback.

I updated this pull request based on everyone's feedback. The biggest change here is adding the WindowDataManager to ensure data is saved before we complete a NiFi transaction, at which point it would be gone if we lost it. I based this mostly off looking at the RabbitMQ operators, but let me know if anything doesn't seem right.

@bbende thanks for addressing the comments, now Apex officially integrates with NiFi!
I see potential for improvement around the efficiency of flushing the WAL for recovery. It is done in emitTuples and endWindow, it would be sufficient to do it in endWindow only if you can defer the txn confirm to endWindow as well?
Also note that the development branch and target for new PRs is now master and your changes are already there.

@tweise thanks for merging, excited to have this integration!
I agree about the possible performance of flushing the WAL in every call to emitTuples. I was a little bit hesitant about leaving the transactions open and trying to commit them later, although it may work fine. I figured we could see how this first pass goes and then definitely consider addressing that if needed.


send hidden data with Anchor Tag in ASP.NET Core

I have a list of records page and an anchor tag for each record take us to the record details page. I need to send some sensitive data when clicking the link. I don't want these data to appear in the URL as a query string at the same time I don't want to use the POST method as it is not preferable in this case. is there a way to use asp-route-{value} without adding the data in the URL? if not .. is there any other way to send hidden data with a GET method? I thought about the tempData but I can't assign the data to it at the HTML level.
Note: the data to be sent is depending on the record that the user clicks to get its details.
Appreciate any help.

Hello @Kawthar-Ebrahim ... This isn't the best spot for discussing coding scenarios and support. We generally only handle documentation issues (e.g., errors in docs and suggestions for improving docs). You probably should inquire about that on a support forum. We often suggest ...

Stack Overflow
ASP.NET Core Slack
ASP.NET Gitter

... and btw ... Please use the This page feedback button and form at the bottom of the English-US topics to open issues here. It adds metadata to track the issue, informs us of which topic you're looking at, and automatically pings the author of the topic about your issue.


Run docker images individually

Expected Behavior
I would like to be able to run the different docker containers without needing to have running all of them in the docker-compose.
Current Behavior
Currently, beacuse of the dependencies between the different docker images, the docker-entrypoint is listening until the rest of the docker images are up and running. It would be great to have two different behaviours.
Possible Solution
1- Pass a environment variable to specify if there is running in a docker-compose or not.
2- Wait for a while and if there are not more images start in the standalone mode.
3- Create two different entry points.

With #71 images can be run individually using start-ocean.sh or directly with their compose files.


Reconcile automatically create join token if necessary

What this PR does / why we need it:
before joining a node the reconciler should create a new bootstrap token in the target cluster
Which issue(s) this PR fixes:
Fixes: https://github.com/kubernetes-sigs/cluster-api-bootstrap-provider-kubeadm/issues/98
Special notes for your reviewer:
Release note:
NONE

@chuckha @ncdc @detiber this is ready for review now

/assign @chuckha @ncdc @detiber

@chuckha rebased + addressed the first round of feedback

@chuckha last comment addressed + squash commits


The "how to type out emoji" section needs a note about the Windows 10 emoji palette

So far, the How to type emoji on your computer section only mentions a wacky Windows 8 solution to the problem. On Windows 10, pressing Win+. opens up an emoji palette which supports searching for emojis. Perhaps it's worth mentioning as the new preferred solution.

Wonderful news! Do you mind submitting a PR to update the readme?

Wonderful news! Do you mind submitting a PR to update the readme?

Just submitted #5 which implements those changes.


Issue with Hutch.publish and Sidekiq (celluloid)

We're publishing Hutch message for Sidekiq jobs (using celluloid threads/actors), when we restart our workers (i.e. after a deploy) we often got this error for a short time:
NoMethodError - undefined method `publish' for nil:NilClass on Hutch::Brocker class line 170.
My guess is that after restart a many job try to connect and publish around the same time and Hutch.connected? is returning true before than Hutch::Broker@exchange instance var is set properly making the second publish fail.
Any ideas about how to fix that?
Note: We're connecting with Hutch.connect(enable_http_api_use: false) from Sidekiq, but I don't think that make any difference.

@thibaudgg, @michaelklishin I did the same thing as @thibaudgg suggested making a hutch connection on sidekiq server config however; right after the deployment it starts to throw NoMethodError - undefined method 'publish' for nil:NilClass. But everything start to work well when I do a manual restart of sidekiq workers.

Same here. @thibaudgg We are also connecting during Sidekiq server initialization, but that does not seem to do the trick. Did you never ever see this issue again?

@tobmatth I don't know how Sidekiq initialises but synchronising calls to Hutch.connect in your code should do the trick.


undefined type for 'invoice' in Ch 12

I got this '{
id: string;
customer_id: string;
amount: number;
status: 'pending' | 'paid';
} | undefined' type
returned by fetchInvoiceById(id) while the 'invoice' variable in EditInvoiceForm() ask for InvoiceForm type, I already tried to change the 'invoice' variable in EditInvoiceForm() into
'{
id: string;
customer_id: string;
amount: number;
status: 'pending' | 'paid';
}' type
but I still got this issue because of the " | undefined" part
and I have no clue how to debug it at all now

I'm also experiencing the same error.
Vercel deployment breaks also:
Failed to compile.
--
18:35:59.976 |
18:35:59.976 | ./app/dashboard/invoices/[id]/edit/page.tsx:24:13
18:35:59.977 | Type error: Type '{ amount: number; id: string; customer_id: string; status: "pending" \| "paid"; } \| undefined' is not assignable to type 'InvoiceForm'.
18:35:59.977 | Type 'undefined' is not assignable to type 'InvoiceForm'.
18:35:59.977 |
18:35:59.977 | 22 \|         ]}
18:35:59.977 | 23 \|       />
18:35:59.977 | > 24 \|       <Form invoice={invoice} customers={customers} />
18:35:59.977 | \|             ^
18:35:59.978 | 25 \|     </main>
18:35:59.978 | 26 \|   );
18:35:59.978 | 27 \| }
18:36:00.043 | Error: Command "npm run build" exited with 1

I see @Woozl
yeah I just found it too in the final-example, but thanks for the explanation, it's cleared the reason for the error for me :)
@spacecat try the fix by Woozl's comment


detected_language attribute for DocumentStatus

Is your feature request related to a problem? Please describe.
When using the TextTranslationClient Class to translate text, I can get the detected_language attribute from the TranslatedTextItem object, but the same is not possible for the DocumentStatus of the DocumentTranslationClient. This is problematic as my users would like to know the language their documents was translated from.
Describe the solution you'd like
A detected_language attribute on the DocumentStatus class.
Describe alternatives you've considered
Any way to get this information without also translating documents or part of them with TextTranslationClient would work.

Thanks for the feedback @DanielCorydon, adding @hamshavathimunibyraiah to respond to the feature request.


fix mark join should not eliminate join when child is empty (#29409)

Proposed changes
Issue Number: close #xxx
pick from master
PR #29409
commit 64696829d14e51e0781794fbb98f50df6cfe2921
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


bump jersey to 2.38 to suppress repeating WARNs by HTTPPost and others #2682

#2682 HTTPPost repeats jersey warn on every request
https://github.com/eclipse-ee4j/jersey/pull/5165 addresses it and made fix available in jersey 2.38

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Run mvn clean install apache-rat:check to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[x] If you have a group of commits related to the same change, please squash your commits into one and force push your branch using git rebase -i.
[x] Mention the appropriate issue in your description (for example: addresses #123), if applicable.

To make clear that you license your contribution under the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

[x] I hereby declare this contribution to be licensed under the Apache License Version 2.0, January 2004
[ ] In any other case, please file an Apache Individual Contributor License Agreement.

Thanks for the PR! Sorry about the late merge, wanted to create the 2.5 before merging this


in the blog add an option for not listing empty directories

when creating a blog with descendants (one directory per months), the blog also lists the months directories.
i'd like a list_empty_directories that allows to suppress the list of directories without a valid page in it. (since it seems that changing the default behavior is not an option).
the blog page can then define:
---
content:
    items<EMAIL_ADDRESS>list_directories: false
---

this is the patch:
> {% set list_directories = header.list_directories == true or header.list_directories is null %}
>
38c40,42
<                     {% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
---
>                     {% if list_directories or child.file() %}
>                         {% include 'partials/blog-list-item.html.twig' with {blog:
page, page: child} %}
>                     {% endif %}

it's for descendants structure like this one:
02.blog/
  blog.md
  2019-02/
    08/
      item.md

where 2019-02 only contains directories but no files.

After a discussion with OleVik: probably, the option is not needed: just change the default behavior to avoid showing items that do not have a page.
They will point to nothing anyway...
You just need:
{% if child.file() %}
...
{% endif %}


Use basic auth for container verifier

Summary
Instead of creating a custom GitHub authenticator, use the built-in Basic auth Authenticator.
The difference is in the returned error, where the custom authenticator returned ErrAuthNotProvided if the owner or token was empty.
Change Type
Mark the type of change your PR introduces:

[ ] Bug fix (resolves an issue without affecting existing features)
[ ] Feature (adds new functionality without breaking changes)
[ ] Breaking change (may impact existing functionalities or require documentation updates)
[ ] Documentation (updates or additions to documentation)
[x] Refactoring or test improvements (no bug fixes or new functionality)

Testing
Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.
Review Checklist:

[x] Reviewed my own code for quality and clarity.
[ ] Added comments to complex or tricky code sections.
[ ] Updated any affected documentation.
[ ] Included tests that validate the fix or feature.
[ ] Checked that related changes are merged.

coverage: 39.652% (+0.05%) from 39.603%
when pulling 20531d37412d3947f889558f2161fa2dff922c96 on eleftherias:container-basic-auth
into d0ea8774b9f41f31c6ab69a6301f0ea37bbfb053 on stacklok:main.


Feat: TypeScript example

With CloudFlare Workers' full TypeScript support, I thought it would be a good idea to have a TypeScript example that ingests logs.
If I should go for an implementation that could make it upstream, please let me know :)
Have a great week,
David

Hi David, would be glad to review your contribution and merge it.

Hey :)
there is already #13 (and probably #14) so my implementation would be obsolete or extra.
I think if those are merged (or at least #13) that would be sufficient 👍🏼
Thanks,
David


FR: add object latest with values of last charging session

The response JSON from BMW is not very handy for the import if the charging sessions into a database.
To improve the import of the charging session of the charging sessionss into a database I copied the last charging session in the object 'latest'.
In the object I added the fields unit, timestamp and the original id.
With this object the import in a database is very easy.
Please see also in here: #6

Merged and improved


FeatureRequest | Typescript support

Feature Request
Will skott support typescript projects?
Our use case is an Nx monorepo with Nextjs as the main app with several react libraries.
Thanks for this interesting library!

Hello @ild0tt0re, all the pleasure is mine, thank you for your interest in skott!

Feature Request
Will skott support typescript projects?

Yes, skott will support TypeScript for sure! Lately, I've been stabilizing features around the CLI but I had in mind to support TypeScript (which I mainly use on all my projects). The fact that you're suggesting that feature is just encouraging me to do it even more quickly :) I'll also need to deal with JSX/TSX parsing (as you mentioned React), so I'll embed that at the same time ✍

Our use case is an Nx monorepo with Nextjs as the main app with several react libraries. Thanks for this interesting library!

Would you find interesting to be able to run skott directly on the whole monorepo itself, taking into account that they mostly already implement their own graph representation tool?

Hello @ild0tt0re, all the pleasure is mine, thank you for your interest in skott!

Feature Request
Will skott support typescript projects?

Yes, skott will support TypeScript for sure! Lately, I've been stabilizing features around the CLI but I had in mind to support TypeScript (which I mainly use on all my projects). The fact that you're suggesting that feature is just encouraging me to do it even more quickly :) I'll also need to deal with JSX/TSX parsing (as you mentioned React), so I'll embed that at the same time ✍

Our use case is an Nx monorepo with Nextjs as the main app with several react libraries. Thanks for this interesting library!

Would you find interesting to be able to run skott directly on the whole monorepo itself, taking into account that they mostly already implement their own graph representation tool?

Hi @antoine-coulon!
Yes, I find it interesting because they are two tools with different purposes.
On the Nx graph there are information relating to the projects that are part of the monorepo and the third-parties dependencies (the main purpose is the calculation of the affected projects).
Skott would allow me to go into detail by viewing also the modules / files of a project from which you could extract data such as size, etc ..
I would have some nice API/features built-in

number of times a module is used starting from a root module/subtree (ie: i want known in which page a component is used and how many times,... )
I would known how the module is used and where in different way (imported with require/import, Lazy loaded,... )
I would known how many duplicated modules are in the codebase
can i know how many times a react component has been used whit a Specific prop? (useful for code refactoring)

These are some ideas that i have at the moment.

By the way @ild0tt0re, I just merged the PR #3 which allows skott to process TypeScript projects. I'm opening another PR to support JSX/TSX

Closing this discussion as TypeScript and JSX support were both added in v0.6.0.
The only missing part that might interest you @ild0tt0re as you are using Next.js is mentioned here #5 in its own dedicated issue.

Thanks @antoine-coulon!

for starting from a root module/subtree I mean starting from an entrypoint that is different from the root of the app

for duplicated module i mean the possibility to discover which modules are a copy/paste of others


Updated to monaco-vscode-api 1.83.3

It adds l10n support to the statemachine via different links from index.html for english, german, french and spanish.
@CGNonofr I will update to the final version once PR #215 is merged.

@CGNonofr this is now updated to the final version. Any objections to merge this?

looks good! except the pipeline that fails

@CGNonofr sorry, I just screwed some version up. Will fix this very soon

@CGNonofr ready now for real! 😆  ✅


Error in Design_matrix.append for more than two runs

The addIntercept won't work if you want to append more than 2 runs.

Specifically update intercept checking code to handle concatenating design-matrix A that has more than one run (i.e. multiple intercepts), with design-matrix B that has it's own intercept or doesn't. Currently assumes that A only has a single intercept.

Also need to fix this for run-specific nuisance regressors, polynomial trends, etc


Fully embrace daemon.json when installing docker

1.10 introduced the daemon.json config file. Currently, there is no daemon.json that is included when you install using the get.docker.com method. Additionally, the command line options can override their corresponding configs in daemon.json should a user choose to create one.
Let's favor the new daemon.json config file over command line options in our packages:
For example, instead of my debian /lib/systemd/system/docker.service including the -H fd:// in the ExecStart line, it would look like this:
ExecStart=/usr/bin/docker daemon

The .dpk file would also include a daemon.json that looks something like this:
{
        "hosts": ["fd://"]
}

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
For more information about reporting issues, see CONTRIBUTING.md.
You don't have to include this information if this is a feature request
(This is an automated, informational response)

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

@programmerq duplicate of https://github.com/docker/docker/issues/20151 ?

@thaJeztah this does indeed seem to be a duplicate of #20151. I totally missed it in my search. Thanks!


Search is incredibly slow (increasingly maybe?)

vcpkg search is taking almost 2 minutes to complete each time. I tried disabling windows firewall and there was no change.
Environment
windows 11 latest
To Reproduce
vcpkg search package_name
....wait...and wait....
Expected behavior
results within a few seconds
Failure logs
are there logs to check for this?

@jonolds You can try to search for more precise keywords. The search function of vcpkg will display all the information about your search (including dependencies and features).

Add extra option --debug, try search again and provide the output here?

Almost all time spent in filesystem?
Is the filesystem or drive healthy?

Yes, (or I believe so), it's pretty snappy overall, but I'm not sure how to demonstrate that. Building OpenCV with contrib and cuda (and using vcpkg for a lot of dependencies) takes 20-25 mins.
this is from chkdsk:
Windows has scanned the file system and found no problems.
No further action is required.

 976269311 KB total disk space.
 646462456 KB in 1808575 files.
   1046856 KB in 385816 indexes.
         0 KB in bad sectors.
   3449507 KB in use by the system.
     65536 KB occupied by the log file.
 325310492 KB available on disk.

      4096 bytes in each allocation unit.
 244067327 total allocation units on disk.
  81327623 allocation units available on disk.
Total duration: 2.70 minutes (162082 ms).

Yes on the time spent in the filesystem, from what I can tell. Everything before the packages list happens within a few seconds.
Is the ports directory the only thing searched?
Also, I just noticed this line:
[DEBUG] D:\a\_work\1\s\src\vcpkg\commands.find.cpp(208)

Do you know what that line of output is for? I have an external drive D: that's totally unrelated, so unless that's something expected that might be related. Thank you!

Yes, (or I believe so), it's pretty snappy overall, but I'm not sure how to demonstrate that. Building OpenCV with contrib and cuda (and using vcpkg for a lot of dependencies) takes 20-25 mins. this is from chkdsk:
Windows has scanned the file system and found no problems.
No further action is required.

 976269311 KB total disk space.
 646462456 KB in 1808575 files.
   1046856 KB in 385816 indexes.
         0 KB in bad sectors.
   3449507 KB in use by the system.
     65536 KB occupied by the log file.
 325310492 KB available on disk.

      4096 bytes in each allocation unit.
 244067327 total allocation units on disk.
  81327623 allocation units available on disk.
Total duration: 2.70 minutes (162082 ms).

Is the ports directory the only thing searched?

Correct, only ports folder can be searched.

Also, I just noticed this line:
[DEBUG] D:\a\_work\1\s\src\vcpkg\commands.find.cpp(208)

Do you know what that line of output is for? I have an external drive D: that's totally unrelated, so unless that's something expected that might be related. Thank you!

It's not related to your machine. The path is in the machine which build the vcpkg binary release.

C:\Users\WDAGUtilityAccount>cd c:\vcpkg

c:\vcpkg>vcpkg search bzip --debug
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from c:\vcpkg\vcpkg-bundle.json
[DEBUG] Failed to open: c:\vcpkg\vcpkg-bundle.json
[DEBUG] Bundle config: readonly=false, usegitregistry=false, embeddedsha=nullopt, deployment=Git, vsversion=nullopt
[DEBUG] Metrics enabled.
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Feature flag 'dependencygraph' unset
[DEBUG] Detected Container Execution Service
[DEBUG] Using scripts-root: C:\vcpkg\scripts
[DEBUG] Using builtin-ports: C:\vcpkg\ports
[DEBUG] Using installed-root: C:\vcpkg\installed
[DEBUG] Using buildtrees-root: C:\vcpkg\buildtrees
[DEBUG] Using packages-root: C:\vcpkg\packages
[DEBUG] Using vcpkg-root: C:\vcpkg
[DEBUG] Using builtin-registry: C:\vcpkg\versions
[DEBUG] Using downloads-root: C:\vcpkg\downloads
[DEBUG] External asset downloads are allowed (x-block-origin is disabled)...
[DEBUG] Asset cache is not configured.
boost-iostreams[bzip2]                    Support bzip2 filters
bzip2                    1.0.8#6          bzip2 is a freely available, patent free, high-quality data compressor. It...
bzip2[tool]                               Builds bzip2 executable
coin[bzip2]                               Support bzip2 compressed fonts
ffmpeg[bzip2]                             Bzip2 support
folly[bzip2]                              Support bzip2 for compression
freetype[bzip2]                           Support bzip2 compressed fonts.
gstreamer[bzip2-bad]                      Enable bzip2 stream compression in bad plugins
gstreamer[bzip2-good]                     Enable bzip2 stream compression in good plugins
hpx[bzip2]                                Build with bzip2 compression
htscodecs[bzip2]                          Enable support for BZ2 within Arith streams
htslib[bzip2]                             Enable support for BZ2-compressed CRAM files
kf5archive[bzip2]                         Support for bzip2 compressed files and data streams
libarchive[bzip2]                         BZip2 support
libmagic[bzip2]                           Enable bzip2 support
libsbml[bzip2]                            bz2 compression support for libsbml
libzip                   1.10.1           A library for reading, creating, and modifying zip archives.
libzip[bzip2]                             Support bzip2-compressed zip archives
libzip[commoncrypto]                      AES (encryption) support using Apple's Common Crypto API
libzip[default-aes]                       Use default AES
libzip[liblzma]                           Support XZ compressed zip archives using liblzma
libzip[mbedtls]                           AES (encryption) support using mbedtls
libzip[openssl]                           AES (encryption) support using OpenSSL
libzip[wincrypto]                         AES (encryption) support using Windows Crypto API
libzip[zstd]                              Support Zstandard-compressed zip archives
libzippp                 7.1-1.10.1       Simple basic C++ wrapper around the libzip library. It is meant to be a po...
libzippp[encryption]                      Support encryption
minizip[bzip2]                            Support compression using bzip2 library
minizip-ng[bzip2]                         Enables BZIP2 compression
quazip[bzip2]                             BZIP2 compression
rocksdb[bzip2]                            build with bzip2
The result may be outdated. Run `git pull` to get the latest results.
If your port is not listed, please open an issue at and/or consider making a pull request.  -  https://github.com/Microsoft/vcpkg/issues
[DEBUG] D:\a\_work\1\s\src\vcpkg\commands.find.cpp(208):
[DEBUG] Time in subprocesses: 360611us
[DEBUG] Time in parsing JSON: 36878us
[DEBUG] Time in JSON reader: 34149us
[DEBUG] Time in filesystem: 745576us
[DEBUG] Time in loading ports: 932396us
[DEBUG] Exiting after 1.3 s (919626us)

You can see the search command takes 1.3s, which should be normal.
It should be related to your VM if you are using VM.

ohhh, that makes sense about the drive. thank you!


I can receive push notifications in sample app but couldn't receive in my app

I can receive push notifications in sample app but couldn't receive in my app,
my app is using react-native-firebase to handle notifications while sample app is using react-native-push-notification, I noticed that the Channel is GCM not FCM, will ConnectyCube support FCM for the push notifications and how to configure that?

Yes, we support FMC
Follow this guide and then use firebase guide

Yes, we support FMC
Follow this guide and then use firebase guide

But this guide is for Android SDK and I'm using connectycube-react-native library fo

Just use "Configure Firebase project and API key" to prepare your admin panel and then follow react native firebase guide (link react-native-firebase with iOS/Android project and configure cloud messaging)


Introducing Cache with useCache helper

Motivation
Caching operations' contents is helpful, especially when processing a lot of data. I'm introducing JSONLCache, which allows me to store the cache's contents in JSONL files.
Documentation is in JSDoc, but it turns out that I'm not outputting docs for classes, so I need to add that.
Generated documentation is here https://effection-contrib-6v9t867tpn6s.deno.dev/cache

I would consider making the json cache implementation a resource rather than having every operation go from a cold start. It's probably less important for something on the file system, but for remote caches, or DB caches, or redis caches, initializing once and then having instance access to the hot connection for every operation is a good practice. The way you can say:
let impl = yield* initMyCacheImpl() // <== impl is bound to this scope.
CacheContext.with(impl, function*() {
  // do stuff
});

@cowboyd is this something that I need to provide now, or can we wait until we have a cache adapter that requires a hot connection?

Are you sure you don't need a hot connection in this case? What is the expectation around concurrent reads and writes.

I'm really not sure. Currently, I don't have any use cases where multiple things are reading/writing the cache simultaneously. Most of it is very serial. Most of the time, it's essentially just reading data over the network, caching it to the file system so it can be read from the file system instead of going over the network again.

Approving. I'm still a little bit worried about synchronization between reads and writes. I.e. if you have multiple reads going, what happens if a write happens in parallel, or should there be a queue so that writes cause things to happen in parallel.

@taras You may want to put a heads up in the readme that it has not been tested with concurrent reads and writes.


Add Automatic-Module-Name (for Java libs)

The java modules does have a module-info.java or provide an "Automatic-Module-Name" (in MANIFEST.MF). At least the info to the manifest should be added to provide compatibility in projects that use the Java module system. More details: http://branchandbound.net/blog/java/2017/12/automatic-module-name/
For this project as a first simple step a MVN plugin would be good enough to add "Automatic-Module-Name" to all modules. If you are interested I could create a PR the next days :)

@hendrikebbers - please go for it. One minor warning is that this project compiles in JDK8. Not sure if the maven stuff will do what want in that version, but feel free to give it a shot.

@ashleyfrieze the simplest solution is to add metadata to the MANIFEST. That is independent of the Java version. I will start with that step.

@hendrikebbers - sounds great. Give me a shout if you need help.
Long-term I will stop supporting JDK8, or at least branch that off and focus more on later Java versions. For now, if you're able to get things building using the mvnw and a JDK 8 environment, that'll be great.
Note: this software will not build on later Java versions.


Unable to access website in container

We run selenoid in our docker.
When the browser containers start they are unable to connect to the our application website hosting on another server.
We troubleshoot by running a simple java app container and sh into the container.
We were able curl to the application website.
Would like to seek assistance on how we can troubleshoot the problem.
We are using default docker bridge network docker0

@dicksonprof are you setting DNS settings correctly in Docker?

we tried with ip address.
Anyway to use selenoid with --network=host?

@dicksonprof you can run Selenoid itself with --network=host but you can't run browser containers like this just because every container has inside webdriver binary listening on the same port 4444. When using --net=host ports will clash and containers will not start.


paperless-ngx: remove not matching substitute

substituteStream(): WARNING: pattern 'this is awebp document' doesn't match anything in file 'src/paperless_tesseract/tests/test_parser.py'

Builds without this.
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

There should be a version of substituteInPlace that fails when substituting fails.

Until we have something better patches can be used instead.


Can yaml templates be reused by other templates?

If so please update the docs to include a sample.  Thanks.
https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted-templates.md

yes

also I agree regarding the docs. I will update the docs.


Pt 154885468 156004322 custom validation and swagger removal

This PR resolves:
PT-154885468: Integrate custom validation to cowboy controllers
PT-156004322: Remove erlang generated swagger code
Future improvements to discuss:

remove apps/aehttp/priv/swagger.json and use endpoints.erl to store schema instead.

I see tests failed on CI https://circleci.com/gh/aeternity/epoch/4673
I need to understand which failures - if any - are related to these changes:
%%% aecore_forking_SUITE ==> all_nodes.two_nodes.sync_fork_in_wrong_order: FAILED
%%% aecore_forking_SUITE ==> {timeout,
    [{aecore_forking_SUITE,collect_sync_events,1,
         [{file,
              "/home/builder/epoch/_build/test/lib/aecore/test/aecore_forking_SUITE.erl"},
          {line,159}]},
     {aecore_forking_SUITE,sync_fork_in_wrong_order,1,
         [{file,
              "/home/builder/epoch/_build/test/lib/aecore/test/aecore_forking_SUITE.erl"},
          {line,131}]},
     {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1546}]},
     {test_server,run_test_case_eval1,6,
         [{file,"test_server.erl"},{line,1062}]},
     {test_server,run_test_case_eval,9,
         [{file,"test_server.erl"},{line,994}]}]}

%%% aecore_sync_SUITE ==> all_nodes.two_nodes.start_second_node: FAILED
%%% aecore_sync_SUITE ==> {test_case_failed,
    {retry_exhausted,
        #{info =>
              {470,expect_block,epoch_dev2@localhost,
               {block,1,
                   <<173,144,161,143,82,71,247,64,21,169,150,78,58,247,121,152,
                     208,163,240,137,125,185,215,180,252,4,43,172,40,52,188,92>>,
                   <<167,190,148,131,153,149,64,208,27,9,200,161,25,42,188,121,
                     221,26,148,66,191,236,243,199,28,109,100,177,130,165,171,
                     247>>,
                   <<65,23,82,227,76,23,72,71,84,25,237,55,147,206,72,202,231,
                     19,71,206,244,4,212,227,195,190,88,88,108,164,23,222>>,
                   [{signed_tx,
                        {aetx,aec_coinbase_tx,
                            {coinbase_tx,
                                <<4,179,59,8,248,36,123,146,229,76,137,104,122,
                                  155,224,158,93,74,249,28,58,230,114,103,190,
                                  96,42,111,55,230,147,216,7,83,205,66,169,95,
                                  79,77,218,65,47,69,56,239,186,88,103,140,198,
                                  237,230,159,8,195,35,90,17,43,29,87,114,103,
                                  69>>,
                                1,10}},
                        [<<48,69,2,33,0,141,244,121,62,217,16,104,129,160,
                           75,67,8,33,187,97,38,243,91,195,174,244,240,17,
                           129,198,13,231,209,153,78,136,99,2,32,26,62,221,
                           216,30,121,53,181,62,126,166,79,92,174,172,16,5,
                           117,178,110,109,188,252,137,65,201,35,95,41,251,
                           26,253>>]}],
                   553713663,13739242263053547227,1521545134495,8,
                   [187,524,1983,2041,2568,2865,3457,4383,4954,6090,6236,7749,
                    8157,8242,8557,9227,9651,10408,11033,12352,12651,14548,
                    14934,16308,16467,17025,19055,23147,23654,24781,26323,
                    27427,27873,27937,28764,29077,29627,29733,30452,31366,
                    32564,32740]}},
          prev =>
              {block,0,
                  <<0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
                    0,0,0>>,
                  <<46,116,175,40,171,44,172,167,57,60,232,128,131,35,227,113,
                    214,29,6,134,247,146,53,224,70,53,37,9,176,200,148,82>>,
                  <<0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
                    0,0,0>>,
                  [],553713663,0,0,8,no_value},
          retries => 5,tries => 0}}}

%%% aecore_sync_SUITE ==> all_nodes.three_nodes.start_second_node: FAILED
%%% aecore_sync_SUITE ==> {test_case_failed,
    {retry_exhausted,
        #{info =>
              {470,expect_block,epoch_dev2@localhost,
               {block,1,
                   <<173,144,161,143,82,71,247,64,21,169,150,78,58,247,121,152,
                     208,163,240,137,125,185,215,180,252,4,43,172,40,52,188,92>>,
                   <<167,190,148,131,153,149,64,208,27,9,200,161,25,42,188,121,
                     221,26,148,66,191,236,243,199,28,109,100,177,130,165,171,
                     247>>,
                   <<80,135,70,243,248,67,124,126,139,172,159,62,28,199,186,
                     125,86,221,10,124,26,236,229,141,188,103,201,156,95,134,
                     39,27>>,
                   [{signed_tx,
                        {aetx,aec_coinbase_tx,
                            {coinbase_tx,
                                <<4,179,59,8,248,36,123,146,229,76,137,104,122,
                                  155,224,158,93,74,249,28,58,230,114,103,190,
                                  96,42,111,55,230,147,216,7,83,205,66,169,95,
                                  79,77,218,65,47,69,56,239,186,88,103,140,198,
                                  237,230,159,8,195,35,90,17,43,29,87,114,103,
                                  69>>,
                                1,10}},
                        [<<48,69,2,33,0,150,198,240,9,134,197,114,92,33,194,
                           40,86,14,214,53,191,47,12,9,91,61,59,62,17,111,
                           214,99,61,34,36,148,124,2,32,47,205,47,129,26,21,
                           71,44,96,180,110,91,38,209,227,181,156,1,52,140,
                           117,178,72,52,123,16,127,24,179,183,77,7>>]}],
                   553713663,16169495089191597681,1521545160868,8,
                   [272,391,734,1987,3678,4596,4635,6692,7791,9125,10119,
                    10545,10810,10959,12359,12400,14225,15065,15978,16053,
                    16415,17429,17571,17701,18799,20872,21249,21328,22372,
                    22717,23638,24630,25746,26202,26752,29134,29449,30059,
                    30305,30320,31091,31872]}},
          prev =>
              {block,0,
                  <<0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
                    0,0,0>>,
                  <<46,116,175,40,171,44,172,167,57,60,232,128,131,35,227,113,
                    214,29,6,134,247,146,53,224,70,53,37,9,176,200,148,82>>,
                  <<0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
                    0,0,0>>,
                  [],553713663,0,0,8,no_value},
          retries => 5,tries => 0}}}

%%% aecore_sync_SUITE ==> {{case_clause,{badrpc,nodedown}},
 [{aecore_suite_utils,get_node_db_config,1,
                      [{file,"/home/builder/epoch/_build/test/lib/aecore/test/aecore_suite_utils.erl"},
                       {line,112}]},
  {aecore_sync_SUITE,node_db_cfg,1,
                     [{file,"/home/builder/epoch/_build/test/lib/aecore/test/aecore_sync_SUITE.erl"},
                      {line,567}]},
  {aecore_sync_SUITE,'-stop_devs/1-fun-0-',2,
                     [{file,"/home/builder/epoch/_build/test/lib/aecore/test/aecore_sync_SUITE.erl"},
                      {line,137}]},
  {lists,foreach,2,[{file,"lists.erl"},{line,1338}]},
  {aecore_sync_SUITE,stop_devs,1,
                     [{file,"/home/builder/epoch/_build/test/lib/aecore/test/aecore_sync_SUITE.erl"},
                      {line,135}]},
  {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1546}]},
  {test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1147}]},
  {test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,994}]}]}

%%% aecore_sync_SUITE ==> {test_case_failed,
    {retry_exhausted,
        #{info =>
              {470,expect_block,epoch_dev2@localhost,
               {block,1,
                   <<173,144,161,143,82,71,247,64,21,169,150,78,58,247,121,152,
                     208,163,240,137,125,185,215,180,252,4,43,172,40,52,188,92>>,
                   <<167,190,148,131,153,149,64,208,27,9,200,161,25,42,188,121,
                     221,26,148,66,191,236,243,199,28,109,100,177,130,165,171,
                     247>>,
                   <<63,104,121,252,36,62,220,204,84,245,231,202,19,218,246,
                     216,241,187,134,135,6,113,118,9,225,9,130,224,107,49,47,
                     110>>,
                   [{signed_tx,
                        {aetx,aec_coinbase_tx,
                            {coinbase_tx,
                                <<4,179,59,8,248,36,123,146,229,76,137,104,122,
                                  155,224,158,93,74,249,28,58,230,114,103,190,
                                  96,42,111,55,230,147,216,7,83,205,66,169,95,
                                  79,77,218,65,47,69,56,239,186,88,103,140,198,
                                  237,230,159,8,195,35,90,17,43,29,87,114,103,
                                  69>>,
                                1,10}},
                        [<<48,70,2,33,0,247,143,143,98,54,155,50,114,76,169,
                           74,182,249,16,242,84,206,158,92,87,178,12,203,
                           122,39,217,56,99,92,179,54,223,2,33,0,206,242,
                           169,102,235,124,91,84,80,95,50,203,91,112,120,
                           217,118,116,58,102,238,128,138,91,66,62,147,71,
                           24,130,112,188>>]}],
                   553713663,7002533059429020765,1521545179947,8,
                   [220,227,2506,2541,2593,2623,3526,3536,3647,4769,5060,5114,
                    5496,5498,5641,5678,8340,8624,9852,10108,13257,14031,
                    14754,15306,17499,18935,18963,19097,20645,21227,21695,
                    21979,23490,25214,25315,26469,26876,27402,29293,30292,
                    31100,32430]}},
          prev =>
              {block,0,
                  <<0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
                    0,0,0>>,
                  <<46,116,175,40,171,44,172,167,57,60,232,128,131,35,227,113,
                    214,29,6,134,247,146,53,224,70,53,37,9,176,200,148,82>>,
                  <<0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
                    0,0,0>>,
                  [],553713663,0,0,8,no_value},
          retries => 5,tries => 0}}}

@fabiankrol Do you experience locally the following error?
%%% aecore_forking_SUITE ==> all_nodes.two_nodes.sync_fork_in_wrong_order: FAILED

@lucafavatella yes, I'm fixing it

@lucafavatella ✅

+345 −8,862
❤


feat: modify file_name arg to accept list

Now, the script can process multiple PDF files at once by passing
multiple filenames as arguments.

Thanks bryan, just had to process some pdf's and this was really handy.


Develop api for verification of created certificates

Create api - /Verification with GET method . Which accepts Certificate ID and Verifies the  certificate using sunbird rc
Note: Follow the development principles of vishwaas.

@Pavan-tibil @Snegha-M @TaherKing Add the respective comments and PR links.
Also mention the framework which you have used.

Created the API for the verification of created certificate but the end-point name is create_certificate in this code, i will change it to /Verification. PR link - https://github.com/Tibil-vishwAAs/Vishwaas/pull/7.
Framework used - Django-REST-Framework(4.0.3)

Created api/v1/Verification endpoint in get method by passing particular certificate ID and getting request body of that particular ID and escaping the osSignedData and passing that osSignedData as signedCredential for the API verify URL in post method
PR link: https://github.com/Tibil-vishwAAs/Vishwaas/pull/6
Framework: Flask

changed the API endpoint to /verification and change the strings to constants where ever required.
PR link : https://github.com/Tibil-vishwAAs/Vishwaas/pull/7

Created api/v1/Verification endpoint with get method by passing  certificate ID and getting request body of that particular ID and escaping the osSignedData and passing that osSignedData as signedCredential for the verify API  in post method and getting verified response.
PR link : https://github.com/Tibil-vishwAAs/Vishwaas/pull/12

@TaherKing could you mention the Java and spring boot version

commented for all the functions and classes and created a class to handle the responses. And completed all the chnages mentioned in issues. PR link - https://github.com/Tibil-vishwAAs/Vishwaas/pull/7

@TaherKing could you mention the Java and spring boot version
Added the java and spring boot version


Make ANET docker images multi architecture

In order to support deployment as windows containers

[x] decouple loading of bootstrapping sql from sql container
[ ] replace anet mssql container with a generic mssql container
[ ] update compose files

[ ] decouple loading of bootstrapping sql from sql container

we will stick with Linux containers for now...


Add create/edit/delete functionality for Series'

I added the mutations to the backend, now we just need to implement them.

f61701a0d2258414b2a7d483e1dd1676db05d4de


Missing types for lucide-solid

Prerequisites

Version: ^0.260.0
Are you running from source/main: no
Are you using a released build: yes
Operating system: Windows 11
Bits: 64 bits

Step to reproduce

create a solid project with vite npm create vite@latest.
install lucide-solid with npm install lucide-solid
try to use any icon import { ServerCrash } from 'lucide-solid';

Actual behavior
even though it works vscode gives the error on the import and the intellisense doesnt work.
message
Could not find a declaration file for module 'lucide-solid'. '.../node_modules/lucide-solid/dist/esm/lucide-solid.js' implicitly has an 'any' type.
There are types at '.../node_modules/lucide-solid/dist/types/lucide-solid.d.ts', but this result could not be resolved when respecting package.json "exports". The 'lucide-solid' library may need to update its package.json or typings.

I solved this problem, it was a problem related to typescript version (4.9.4 -> 5.0.2). The solution was just add the types to the exports section on package.json on the solid package. reference.
"exports": {
  ".": {
    "solid": "./dist/source/lucide-solid.js",
    "import": "./dist/esm/lucide-solid.js",
    "browser": "./dist/esm/lucide-solid.js",
    "require": "./dist/cjs/lucide-solid.js",
    "node": "./dist/cjs/lucide-solid.js",
    "types": "./dist/types/lucide-solid.d.ts"
  }
}

But in the end this doesn't help anything, because later I discovered that on dev mode, both with the vite initializer and the solid start (npm init solid@latest), the treeshaking is not working, which leads to it shipping all icons. I dont know if theres a solution for this, maybe if it is possible to make imports unitary like lucide-solid/ServerCrash, but I think the problem lives in the solid related packages.

duplicated #823


Fix docs searchbar mobile styling

Overview

Changes right section to be an absolute element
Removes right section styling object because it had no effect on the actual element

Notes

Right section styling is duplicated because of type errors, I'm gonna search for a solution.

I am not sure what's happening but on the deployed version the loader is not placed correctly :/

Added proper padding to X and loader icons
Fixed loader vertical alignment
Removed duplicated styling


Requesting Python 3.10 Upgrade for QuARC Lambda Environment Due to TLS 1.3 Support

Describe the bug
QuARC currently relies on Lambda for deployment, utilizing Python 3.8 as the runtime environment. However, pyQuARC dependencies are also tied to Python 3.8.
We've encountered an issue stemming from the older version of OpenSSL installed in the Python 3.8 runtime environment, which results in errors when making requests to certain web endpoints.
To mitigate this, we propose upgrading the Python runtime environment to version 3.10.
To Reproduce
Steps to reproduce the behavior:

Go to AWS lambda and set the runtime as Python 3.8
Run the following code in the handler.py

import requests
url = "https://www.atmosp.physics.utoronto.ca/MOPITT/home.html"
response=requests.get(url, headers=headers, timeout=10).status_code
print(response)

See the error as follows
{ "errorMessage": "HTTPSConnectionPool(host='www.atmosp.physics.utoronto.ca', port=443): Max retries exceeded with url: /MOPITT/home.html (Caused by SSLError(SSLError(1, '[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1131)')))", "errorType": "SSLError", "stackTrace": [  "  File \"/var/task/lambda_function.py\", line 132, in lambda_handler\n    \"body\": json.dumps(requests.get(url).text),\n",  "  File \"/var/task/requests/api.py\", line 76, in get\n    return request('get', url, params=params, **kwargs)\n",  "  File \"/var/task/requests/api.py\", line 61, in request\n    return session.request(method=method, url=url, **kwargs)\n",  "  File \"/var/task/requests/sessions.py\", line 530, in request\n    resp = self.send(prep, **send_kwargs)\n",  "  File \"/var/task/requests/sessions.py\", line 643, in send\n    r = adapter.send(request, **kwargs)\n",  "  File \"/var/task/requests/adapters.py\", line 514, in send\n    raise SSLError(e, request=request)\n" ] }

Expected behavior
Upgrading the Python runtime environment to 3.10 should align the dependencies across QuARC and Lambda, resolving the OpenSSL version discrepancy and ensuring smooth operation when making web requests.
Additional context

QuARC relies on Lambda deployment for its infrastructure.
pyQuARC dependencies are designed for Python 3.8.
The discrepancy between Python versions is causing issues with OpenSSL versions, leading to errors in web requests.
Python 3.10, with its use of the latest OpenSSL version (2023), offers TLS 1.3 support, addressing our current limitations.
To verify the OpenSSL version used by Python, execute the following code:

 import ssl
print(ssl.OPENSSL_VERSION)

Upgraded python to version 3.9 in QuARC deployment. Link to PR

Since this is merged, is it okay for this issue to be closed? @xhagrg @rajeshpandey2053


inference GPU

hi,
can we run inference using multiple gpus ?
i don't have A100, i have 4 with 24gb ech

Yes, it will be possible to use multiple GPUs for inference. We will try our best to support in the next few days.


[BUG] setRank no longer returning new role

Describe the bug
Basically, I'm trying to use the ${newRole.Name} feature but it's not working. The logs say "TypeError: Cannot read property 'Name' of undefined"
The code I'm using this in is:
        if (username){
            message.channel.send(`Checking ROBLOX for ${username}`)
            roblox.getIdFromUsername(username)
            .then(function(id){
                roblox.getRankInGroup(groupId, id)
                .then(function(rank){
                    if(maximumRank <= rank){
                        message.channel.send(`${id} is rank ${rank} and not promotable.`)
                    } else {
                        message.channel.send(`${id} is rank ${rank} and promotable.`)
                        roblox.setRank(groupId, id, rankIdentifier)
                        .then(function(newRole){
                            message.channel.send(`Changed rank to ${newRole.Name}`)
                        }).catch(function(err){
                            console.error(err)
                            message.channel.send("Failed to change rank.")
                        });

Expected behavior
I believed that this would have the bot say the user's current rank, but it goes to the error statement.

Hi! This was a mistake on my part when I was updating setRank. It has been reimplemented with commit cb3bf7bdf696acf92c314673ee980ea06bbd6c96.


Update README to point to CNCF slack

Signed-off-by: Tom Kennedy<EMAIL_ADDRESS>

Codecov Report

Merging #1323 (bca29d6) into main (ea29b70) will decrease coverage by 0.20%.
Report is 16 commits behind head on main.
The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff             @@
##             main    #1323      +/-   ##
==========================================
- Coverage   67.60%   67.41%   -0.20%
==========================================
  Files         132      133       +1
  Lines        8027     8093      +66
==========================================
+ Hits         5427     5456      +29
- Misses       2171     2200      +29
- Partials      429      437       +8

see 3 files with indirect coverage changes


Replace usage of tool_paths with action_configs

tool_paths is considered deprecated. https://github.com/bazelbuild/bazel/issues/8438#issuecomment-1523519395
We should switch to use action_configs instead.

But bazel's cc_toolchain_config, which we wrap around, still relies on it and does not take in action_configs.
https://cs.opensource.google/bazel/bazel/+/refs/tags/7.0.0:tools/cpp/unix_cc_toolchain_config.bzl;l=182-185
If we did not wrap around it, maybe we could skip using it. In the actual Java code, it is still being passed on deeper, but its direct use is gated by "no_legacy_features".
https://cs.opensource.google/bazel/bazel/+/master:src/main/java/com/google/devtools/build/lib/rules/cpp/CcModule.java;l=1257;drc=6743d76f9ecde726d592e88d8914b9db007b1c43

Also, this function still relies on tool paths, even with "no_legacy_features":
https://cs.opensource.google/bazel/bazel/+/master:src/main/starlark/builtins_bzl/common/cc/cc_toolchain_provider_helper.bzl;l=75;drc=f0150efd1cca473640269caaf92b5a23c288089d

There's also a number of fields in the CCToolchainInfo e.g. ld_executable that only gets populated correctly when using tool paths; this breaks usage of some rulesets if you switch to an action_config only cc toolchain at the moment.

@jsharpe I think the intention is to eventually deprecate those APIs in favor of cc_common.get_tool_for_action as stated in the linked thread.
It seems like the migration is still on-going from Bazel side though. So let's revisit this around Bazel 8 to see if things changed.

@sluongng Yep I'm aware of that but I think get_tool_for_action is missing equivalents for some of the tools (specifically at least ld) that are currently exposed; I ran into this in rules_foreign_cc - see https://github.com/bazelbuild/rules_foreign_cc/issues/1160


SklearnClassifier produces probabilities instead of logits for DeepFool

Describe the bug
Running DeepFool on a SklearnClassifier results in probabilities instead of logits being provided to DeepFool.
To Reproduce
Pseudocode only
X, y = ...
classifier = SklearnClassifier(model=SVC(kernel='linear', probability=True))
classifier.fit(X, y)
attack = DeepFool(classifier=classifier)

adversarial_examples = attack.generate(X)

Results in the warning:

It seems that the attacked model is predicting probabilities. DeepFool expects logits as model output to achieve its full attack strength.

Expected behavior
The SklearnClassifier should use predict_log_proba instead of predict_proba when providing probability estimates to the deepfool attack.
System information:

Windows 10 ver 2004 build 19041.685
Python version: 3.8.5
ART version: 1.5.0
TensorFlow / Keras / PyTorch / MXNet version: N/A

Hi @zacps Thank you for raising this interesting issue.
So far the attacks don't modify the output to allow a user to run the attack with probabilities or logits, independent of the attack's preference. But I see your point, and I would propose that we add a new argument to SklearnClassifier called use_logits (following other ART estimators) that would define if SklearnClassifier.predict uses predict_log_proba or predict_proba. What do you think?
Would you be interested to implement a solution for one of ART's next releases?

Would it be better to add predict_log_proba method to the SklearnClassifier? DeepFool could check for it and use it if it exists (like in scikitlearn.py#L164).
Yes, I should have time to implement something.

That's great! Let me know anytime if you have questions.
I think your approach would work, but it would not allow a user to run the attack with probabilities for example for comparison purposes.
I think we should still go for a new argument use_logits as it would be more consistent with the overall pattern in ART to keep the model related settings on the estimator side and let the attack work with the output provided by the estimator. But, I think new checks like in https://github.com/Trusted-AI/adversarial-robustness-toolbox/blob/main/art/estimators/classification/scikitlearn.py#L164 would still be required in SklearnClassifier to check if the provided sklearn model provides predict_log_proba if use_logits=True.


HAPI FHIR Documentation - Bad Link in 13.0.2 Getting The Sources

Go to:
https://hapifhir.io/hapi-fhir/docs/contributing/hacking_guide.html
Scroll down to Section:
13.0.2 Getting the Sources
Notice that there is an invalid URL for the GitHub Build Status Page.
It goes to https://dev.azure.com/jamesagnew214/jamesagnew214/_apis/build/status/jamesagnew.hapi-fhir?branchName=master which is a 404.

Thanks for the heads up @KevinDougan ! Fixing this now.


Revert [SPARK-43595][BUILD] scala-maven-plugin

What changes were proposed in this pull request?
Downgrade scala-maven-plugin.version from 4.8.1 to 4.8.0
and add a note
Why are the changes needed?
see
https://github.com/apache/spark/pull/41228
https://github.com/apache/spark/pull/40442
https://github.com/apache/spark/commit/1530e8dc44d7d963791ede03d54b1c2ad5e91c99
As mentioned in https://github.com/apache/spark/pull/40442,  there are some regression with the 4.8.1：

Run ./build/mvn -DskipTests clean package with Java 17 will failed

[INFO] --- maven-compiler-plugin:3.11.0:compile (default-compile)  spark-core_2.12 ---
[INFO] Not compiling main sources
[INFO]
[INFO] --- scala-maven-plugin:4.8.1:compile (scala-compile-first)  spark-core_2.12 ---
[INFO] Compiler bridge file: /home/bjorn/.sbt/1.0/zinc/org.scala-sbt/org.scala-sbt-compiler-bridge_2.12-1.8.0-bin_2.12.17__55.0-1.8.0_20221110T195421.jar
[INFO] compiler plugin: BasicArtifact(com.github.ghik,silencer-plugin_2.12.17,1.7.10,null)
[INFO] compiling 597 Scala sources and 103 Java sources to /home/bjorn/github/spark/core/target/scala-2.12/classes ...
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/serializer/SerializationDebugger.scala:71: not found: value sun
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:26: not found: object sun
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:27: not found: object sun
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:206: not found: type DirectBuffer
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:210: not found: type Unsafe
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:212: not found: type Unsafe
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:213: not found: type DirectBuffer
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:216: not found: type DirectBuffer
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:236: not found: type DirectBuffer
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/util/ClosureCleaner.scala:452: not found: value sun
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:26: not found: object sun
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:99: not found: type SignalHandler
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:99: not found: type Signal
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:83: not found: type Signal
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:108: not found: type SignalHandler
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:108: not found: value Signal
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:114: not found: type Signal
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:116: not found: value Signal
[ERROR] [Error] /home/bjorn/github/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:128: not found: value Signal
[ERROR] 19 errors found
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Spark Project Parent POM 3.5.0-SNAPSHOT:
[INFO]
[INFO] Spark Project Parent POM ........................... SUCCESS [ 3.848 s]
[INFO] Spark Project Tags ................................. SUCCESS [ 12.106 s]
[INFO] Spark Project Sketch ............................... SUCCESS [ 10.685 s]
[INFO] Spark Project Local DB ............................. SUCCESS [ 8.743 s]
[INFO] Spark Project Networking ........................... SUCCESS [ 9.362 s]
[INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [ 7.828 s]
[INFO] Spark Project Unsafe ............................... SUCCESS [ 9.071 s]
[INFO] Spark Project Launcher ............................. SUCCESS [ 4.776 s]
[INFO] Spark Project Core ................................. FAILURE [ 17.228 s]

Run build/mvn clean install  -DskipTests -Pscala-2.13 with Java8 + Scala 2.13

There are compilation errors as ERROR] -release is only supported on Java 9 and higher  although it does not cause compilation failures. More, I saw https://github.com/davidB/scala-maven-plugin/issues/686, So  it seems that 4.8.1 and Java 8 are not compatible well.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA

@panbingkun  @LuciferYang  @srowen
Do we need a new JIRA?

I tend to create a new jira and add some comments for this

late LGTM


Add link descriptions in schema

Related to #69.
Hi there,
I'll try to bring my modest contribution to this project. This is a simple proposal to bring Link descriptions to the API schema, simply by providing a docstring in the view function.
Not sure if it's the way you imagined for this ; I took inspiration from how it works in DRF. If not, no problem, I would be happy to work on this ; and also on Field descriptions.
Best regards!

Absolutely, yup! Thanks!


refactor: Add handler as other type

Checklist:

[ ] Tests for the changes have been added (for bug fixes / features / refactoring)

Codecov Report

Merging #149 (4f15ff2) into main (3ac843b) will decrease coverage by 0.16%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #149      +/-   ##
==========================================
- Coverage   19.50%   19.34%   -0.17%
==========================================
  Files           5        5
  Lines         241      243       +2
==========================================
  Hits           47       47
- Misses        191      193       +2
  Partials        3        3

Impacted Files
Coverage Δ

internal/server/handler.go
14.81% <0.00%> (+0.94%)
:arrow_up:

internal/server/server.go
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


[Bug] Unresponsive visdom when using source build

Using commit 7a206101e5b87914755183ad04e081dd8c5a9046 to check out the next search feature and the new merging of multiple envs (super useful), however I keep getting unresponsive pages when there are many envs sending data to the visdom server. On a smaller case (eg: 2-3 envs being updated) the issue does not seem to exist.

Small screenrecord also:
out-1.ogv.zip

Hi @jramapuram - can you try the solution suggested in #302? I think that should solve the issue but I haven't been able to take the moment to set up an environment to test the heavy load issue just yet.

Sorry for the delay; this is indeed fixed @JackUrb


Update ByteBuddy dependency, Add a test for before=true constructor

We are now using the latest ByteBuddy release and consequently, the
workaround in ClassExposer has been deleted. Additionally, a test for
before=true in constructor interception has been added and behaviour has
been corrected to make the test pass.
This was specifically a problem where, if you are intercepting before
the underlying constructor is called, you cannot obtain the "this"
parameter because it is uninitialised and the JVM will not allow it.
As a result, a "before" constructor interception can only access the
arguments that will later reach the constructor.

Codecov Report

Merging #5 (a69bb00) into master (6a3a074) will increase coverage by 2.78%.
The diff coverage is 28.57%.

@@             Coverage Diff              @@
##             master       #5      +/-   ##
============================================
+ Coverage     88.65%   91.44%   +2.78%
- Complexity      197      210      +13
============================================
  Files            23       23
  Lines           476      479       +3
  Branches         43       45       +2
============================================
+ Hits            422      438      +16
+ Misses           26       14      -12
+ Partials         28       27       -1

Flag
Coverage Δ

unittests
91.44% <28.57%> (+2.78%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...uptheinter/interceptify/internal/ClassExposer.java
93.02% <ø> (-0.16%)
:arrow_down:

...heinter/interceptify/internal/ParamsValidator.java
72.22% <28.57%> (+14.15%)
:arrow_up:

...ptheinter/interceptify/internal/ClassInjector.java
92.12% <0.00%> (+2.36%)
:arrow_up:

...heinter/interceptify/internal/ParamsAnnotator.java
100.00% <0.00%> (+3.03%)
:arrow_up:

...va/net/uptheinter/interceptify/util/JarFileEx.java
75.00% <0.00%> (+6.25%)
:arrow_up:

...n/java/net/uptheinter/interceptify/EntryPoint.java
71.42% <0.00%> (+71.42%)
:arrow_up:

Continue to review full report at Codecov.

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


Don't build ProjectReferences when building inside of Visual Studio

Reported by @aarnott:

I've been stumped by some build errors/warnings on Solution Rebuild that I've been seeing in solutions that include NuProj. And it finally dawned on me what's going wrong:
NuProj is building project references when built within Visual Studio.
It's not obvious, but VS has special build semantics that vary from the command line, and when you're writing your own .targets files you have to be aware of them in order to play well in VS.
For example, here is the output window contents after a Rebuild of a NuProj with one project reference:

1>------ Rebuild All started: Project: DiffPlex, Configuration: Debug Any CPU ------
1>  DiffPlex -> C:\Users\Andrew\git\diffplex\DiffPlex\bin\Debug\DiffPlex.dll
2>------ Rebuild All started: Project: DiffPlex.NuGet, Configuration: Debug Any CPU ------
2>  DiffPlex -> C:\Users\Andrew\git\diffplex\DiffPlex\bin\Debug\DiffPlex.dll
2>  DiffPlex.NuGet -> C:\Users\Andrew\git\diffplex\DiffPlex.NuGet\bin\Debug\DiffPlex.1.2.1.nupkg
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

Notice how DiffPlex.dll was rebuilt twice, once for itself and once as part of the NuProj build? That's not supposed to happen. Not only does this slow down the build, it can cause build errors because other projects that also reference DiffPlex are building at the same time as DiffPlex.NuGet and fail to find the DiffPlex.dll because the double-build just deleted it.
So how to fix this? Well, there are two global properties you can check out in Microsoft.Common.targets for ideas of how to handle this: BuildingInsideVisualStudio and BuildProjectReferences. A project system in VS sets the global property BuildingInsideVisualStudio=true to all builds. The .targets then translate that to cause BuildProjectReferences to default to false. When BuildProjectReferences is false, take care to resolve your project references without causing them to actually build.
I'm not intimately familiar with the details of the .targets authoring. By the looks of it, Microsoft.Common.targets is anything but simple in its use of these two properties and is probably much more complicated than yours needs to be. If you want more advice in this area, we can loop in Sara Joiner, our resident expert.

This isn't fixed by d62e5af. It still repros.


Switch IMASDD to IMAS and make adaptations

This PR should be squashed.
Switch IMASDD to IMAS

Replace all IMASDD references with IMAS
Add flux map grid type info so IMAS expressions can work
Adjust keywords in imas2json to make it not take forever

@anchal-physics it's failing because it can't clone IMAS; I think that's okay because we expect IMAS to go public later.

I can't test this branch locally either as IMAS has not been shared with me yet. It would be better to wait for IMAS to go public before merging this with our master branch. Meanwhile, if you need IMAS features for some other development you can rebase from this imas branch.

@orso82 did you intend to share IMAS with Anchal?

yes, @anchal-physics should have access

One test failed on set tolerance on my computer:
% julia --project test/runtests.jl --geqdsk_to_imas
/Users/gupta/Git/ProjectTorreyPines/SD4SOLPS/src/../sample/g184833.03600
 ---
(65, 65)(65, 65)
/Users/gupta/Git/ProjectTorreyPines/SD4SOLPS/src/../sample/geqdsk_iter_small_sample
 ---
(65, 65)(65, 65)
geqdsk_to_imas: Test Failed at /Users/gupta/Git/ProjectTorreyPines/SD4SOLPS/test/runtests.jl:404
  Expression: maximum(psin_bry) < 1.0 + tolerance
   Evaluated: 1.0023268315692309 < 1.002

Stacktrace:
 [1] macro expansion
   @ ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Test/src/Test.jl:672 [inlined]
 [2] macro expansion
   @ ~/Git/ProjectTorreyPines/SD4SOLPS/test/runtests.jl:404 [inlined]
 [3] macro expansion
   @ ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined]
 [4] top-level scope
   @ ~/Git/ProjectTorreyPines/SD4SOLPS/test/runtests.jl:330
/Users/gupta/Git/ProjectTorreyPines/SD4SOLPS/test/../sample/ITER_Lore_2296_00000/EQDSK/g002296.00200
 ---
(257, 513)(257, 513)
Test Summary:  | Pass  Fail  Total  Time
geqdsk_to_imas |   74     1     75  7.2s
ERROR: LoadError: Some tests did not pass: 74 passed, 1 failed, 0 errored, 0 broken.
in expression starting at /Users/gupta/Git/ProjectTorreyPines/SD4SOLPS/test/runtests.jl:328

This could be because I tried to adjust the boundary flux. The sample is very low res and the psin=1 contour was showing up as an open field line outboard of the X-point, which broke some IMAS calculations. So I made an option to correct it until the contour line would close. I should've just upsampled the EFIT mesh, I guess. I'll turn that option off by default.

All dependencies are now public for this branch, so the CI tests should pass if everything is ok. Currently, 6 tests are failing in geqdsk_to_imas:
https://github.com/ProjectTorreyPines/SD4SOLPS.jl/actions/runs/10223457708/job/28289787457?pr=78#step:10:889


0.2.0 alpha

Description
Finally here. Long waited divorce from Tokio pre-alpha as the underlying runtime. Along the way we also wanted to re-envision how we process packets. Major breaking changes,

goodbye Tokio (closing #75), hello Smol. this actually doesn't impact the end user much.
brand new runtime with a simpler set of API! all FFI code has been rewritten from the ground up too.
no more combinators. that was an idea carried over from NetBricks and that concept no longer align with how we handle types.
same example apps but they really work! no more replaying pcap files, they now interact with live traffic in our vagrant.

a couple things still missing

metrics! need to put metrics back.
revisit the packet ownership around parse and peek.

Type of change

[x] Breaking change
[x] Documentation update

I have operation not supported running any of the examples.

are you running the examples in our vagrant environment? they only work inside vagrant/docker setup because they have to assume a certain network topology with specific device names. if you are using vagrant, can you post the program output? I will take a look.

I'm running examples in the same environment where I run 0.1 examples. Old version runs just fine. note that I modified the device name and device id according to my network. I can give you access to my testing machine if you like
------------------ Original ------------------
From: Daniel Jin @.>
Date: Sat, Apr 10, 2021 11:38 PM
To: capsule-rs/capsule @.>
Cc: QiuJiangkun @.>, Comment @.>
Subject: Re: [capsule-rs/capsule] 0.2.0 alpha (#138)
are you running the examples in our vagrant environment? they only work inside vagrant/docker setup because they have to assume a certain network topology with specific device names. if you are using vagrant, can you post the program output? I will take a look.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

At this time, we are only going to support the 0.2.0 examples running in our controlled environment. but if you set the log level to DEBUG and share the output, I can take a look and maybe identify what "operation not supported" is referring to.

Maybe my environment was not clean enough. After rebooting, all examples are runnable.

@drunkirishcoder also maybe do a deps update and see if we can fix the security issue related to chrono/time.

sigh
getting blocked by an indirect dependency. not sure which lib is pulling it in, but will need to update the sandbox to the latest stable rust. will do it when I find time soon.


Add back in empty migration methods

We have replaced this migration, but need the empty methods there otherwise we get errors

You could delete the whole file rather than adding back the methods in.


Serialization support

introduce support for java serialization according to #23 .
while at it, fixed a couple of issue related to CuckooFilter.

@alexandrnikitin, PTAL

@alexandrnikitin, can you have a look at travis? seems like an env problem

@eyalfa Thank you for the work! I'll review it today/tomorrow. Meanwhile I fixed the Travis CI issue #26

@alexandrnikitin , can you please ask Travis to kindly retest this? :-)

@eyalfa The fix is in master branch. I'm sorry, I didn't mentioned this. Travis should retest it automatically after you rebase and push your branch.

so, git merge master? then git push?
should work /i guess :-)

@alexandrnikitin , is travis running the tests? if so I couldn't see them in the logs :-)

Yes, it finished. Here's the log https://travis-ci.org/alexandrnikitin/bloom-filter-scala/builds/213030201

I probably do 😎
Will try to make private and see if tests are passing.
On Mar 21, 2017 8:29 AM, "Alexandr Nikitin"<EMAIL_ADDRESS>wrote:

@alexandrnikitin commented on this pull request.
In bloom-filter/src/main/scala/bloomfilter/mutable/UnsafeBitArray.scala
https://github.com/alexandrnikitin/bloom-filter-scala/pull/25#discussion_r107081510
:

@@ -66,5 +69,29 @@ class UnsafeBitArray(val numberOfBits: Long) {
}
}

@throws(classOf[java.io.ObjectStreamException])
/private/ def writeReplace : AnyRef = new UnsafeBitArray.SerializedForm(this)

I mean I tried it with private method and it worked. Do I miss something?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/alexandrnikitin/bloom-filter-scala/pull/25#discussion_r107081510,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFFOaEJU0Yo5y4oFKBsNHEbBgQn0Aztks5rn249gaJpZM4Mhsv2
.

I'm happy to merge it! Thank you for your work!

@eyalfa Published 0.9.0. Feel free to try it.


Integrate Check-in and Lead Scanning into a Single QR Code

Currently, the Badges plugin allows the addition of two separate QR codes on badges: one for Check-in and another for Lead-scanning. To simplify the badge design and improve usability, we propose integrating both functionalities into a single QR code.

Enhancement:
If possible combine the Check-in and Lead-scanning functionalities into a single QR code on badges. This will streamline the process for attendees and organizers, reducing the need for multiple scans and improving the user experience.

This might be a possible solution for this issue
Both of the QR codes when scanned gives a single string (From the example below)
Ticket Code : 5uhbd49wms2fakafn5nzq7pcqpbjun2v
Lead Scanning Code : PZD97WTMFJ

Now a possible solution might be to encode both of these strings in a single QR code that may be in the form of json so that when scanned the value is returned as
{
  "ticket": "5uhbd49wms2fakafn5nzq7pcqpbjun2v",
  "lead": "PZD97WTMFJ"
}

while scanning the QR  a logic can be implemented to retrieve the necessary string and proceed with further operations.


Github Auth is not working.

Describe the bug
The functionality of user log in using github account is not working currently.
To Reproduce
Steps to reproduce the behavior:

Go to 'Login'
Click on 'Login with Github'
Redirects you to /users/sign_up
See error

Expected behavior
Clicking on Login with Github should redirect us to github login api.
Screenshots
If applicable, add screenshots to help explain your problem.
https://user-images.githubusercontent.com/77766761/137456614-2f54db48-2595-4212-ba8c-3822abd8d506.mp4
Device Information [optional]:

OS: [Linux, Windows]
Browser [e.g. chrome, firefox]
Version [e.g. 22]

Additional context
Add any other context about the problem here.
Are you working on this issue? (Yes/No)
YES

Unable to reproduce, I could sign in using Github

Unable to reproduce, I could sign in using Github

I was not able to sign in as well


Build breaks at MK_MAN

I'm trying to build a freebsd releng/10.3 (from https://svn.freebsd.org/base/releng/10.3) image for a Raspberry Pi 2, using a current crochet at commit<PHONE_NUMBER>8c3a07c60aeb71e3fbf997a1c5e08b. The error:
root@raven /u/h/a/k/crochet# nice -n 20 ./crochet.sh -c config.sh                                                                                [328/1941]
Starting at Sun Jan 15 15:06:05 CST 2017
Loading configuration from config.sh
Board: RaspberryPi2
Option: ImageSize 8000mb
Source version is: 312210M
Building FreeBSD version: 10.3
Image name is:
    /usr/home/adam/knox/crochet/work/FreeBSD-armv6-10.3-RPI-B-ZFS-312210M.img
Building FreeBSD version: 10.3
Object files are at: /usr/home/adam/knox/crochet/work/obj/arm.armv6/usr/home/adam/knox/src
Found suitable FreeBSD source tree in:
    /usr/home/adam/knox/src
Found U-Boot port in:
    /usr/local/share/u-boot/u-boot-rpi2
Building FreeBSD armv6 world at Sun Jan 15 15:06:12 CST 2017
    (Logging to /usr/home/adam/knox/crochet/work/_.buildworld.armv6.log)

Building FreeBSD armv6-RPI-B-ZFS kernel at Sun Jan 15 16:40:21 CST 2017
    (Logging to /usr/home/adam/knox/crochet/work/_.buildkernel.armv6-RPI-B-ZFS.log)
Building FreeBSD armv6-RPI-B-ZFS ubldr at Sun Jan 15 16:48:17 CST 2017
    (Logging to /usr/home/adam/knox/crochet/work/ubldr-armv6-RPI-B-ZFS/_.ubldr.armv6-RPI-B-ZFS.build.log)
make: "/usr/home/adam/knox/src/share/mk/bsd.own.mk" line 487: MK_MAN can't be set by a user.

The relevant crochet scripts seem to set MK_MAN=no:
adam@raven ~/k/crochet (master *) [141]> fgrep MK_MAN lib/freebsd.sh lib/i386.sh
lib/freebsd.sh:        eval $buildenv make "$@" DESTDIR=${UBLDR_DIR}/ BINDIR=boot MK_MAN=no -m $ubldr_makefiles install >> ${LOGFILE} || exit 1
lib/freebsd.sh:        eval $buildenv make "$@" DESTDIR=${EFI_DIR}/ BINDIR=boot MK_MAN=no -m $sharemk install >> ${LOGFILE} || exit 1
lib/i386.sh:    if eval ${buildenv} make DESTDIR=${WORKDIR} MK_MAN=no install > ${WORKDIR}/_.i386_loader_install.log 2>&1

Any thoughts?

Seems maybe we should be using WITHOUT_MAN=1 instead of MK_MAN=no.  Please try that and let me know if that fixes it for you.

Yup, that worked perfectly.