axum exemple with websockets

Is your feature request related to a problem? Please describe.
I'm trying to build a small graphql server on top of Axum but can't figure out how to get websockets working with it
Describe the solution you'd like
I'd like an example similar to https://github.com/graphql-rust/juniper/tree/master/examples/warp_subscriptions
Describe alternatives you've considered
async-graphql does have an Axum integration but it does not support implementing dynamic schemas (and they don't plan to)

Working on it.

The examples may be found in juniper_axum/examples and in API docs of subscriptions module (not released yet, however).


show button to trigger update [ch2697]

When in triggerMode manual, show a button that can be clicked to trigger update.

If we get a failure response from the API, just console log it for now. In a separate PR, we should handle it more elegantly in the UI so the user knows what's happening.

There's no indication that there are changes detected in a resource. That will be a separate PR.

Preview

(Btw I think we have a bad merge here, let's pair on it and figure it out)

Closing this one since the commit history is a mess due to merge mishaps.


[AIRFLOW-6146] Rename GCS BigQuery, Google Drive, and SFTP operators

PR contains changes regarding AIP-21 (renaming GCP operators and hooks):

renamed GCP modules
adde deprecation warnings to the contrib modules
fixed tests
updated UPDATING.md

Issue link: WILL BE INSERTED BY boring-cyborg

[ ] Description above provides context of the change
[ ] Commit message/PR title starts with [AIRFLOW-6146]. AIRFLOW-NNNN = JIRA ID*
[ ] Unit tests coverage for changes (not needed for documentation changes)
[ ] Commits follow "How to write a good git commit message"
[ ] Relevant documentation is updated including usage instructions.
[ ] I will engage committers as explained in Contribution Workflow Example.

* For document-only changes commit message can start with [AIRFLOW-XXXX].

In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@ab80880). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master     #593   +/-   ##
=========================================
  Coverage          ?   84.74%
=========================================
  Files             ?      683
  Lines             ?    39159
  Branches          ?        0
=========================================
  Hits              ?    33185
  Misses            ?     5974
  Partials          ?        0

Impacted Files
Coverage Δ

...flow/contrib/example_dags/example_gcs_to_gdrive.py
100% <100%> (ø)

...irflow/contrib/operators/gcs_to_gdrive_operator.py
100% <100%> (ø)

airflow/contrib/operators/gcs_to_bq.py
100% <100%> (ø)

airflow/operators/gcs_to_sftp.py
100% <100%> (ø)

airflow/operators/gcs_to_bq.py
70.58% <100%> (ø)

airflow/example_dags/example_gcs_to_bq.py
100% <100%> (ø)

airflow/example_dags/example_gcs_to_sftp.py
100% <100%> (ø)

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 ab80880...216e40b. Read the comment docs.


Inaccurately parsing Access-Control-Allow-Headers

In
class: com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest
method: isPreflightAuthorized
When checking for preflight headers, it's assumed that there would be a single Access-Control-Allow-Headers, with comma-delimited values.  However, the particular website we're operating against, returns multiple instances of Access-Control-Allow-Headers.  As such, this causes to only the first instance be retrieved, and preventing the second httpRequest from being made:
XMLHttpRequest.doSend() {

     /*
     * isPreflightAuthorized returns false
     */
     if (!preflightResponse.isSuccessOrUseProxyOrNotModified()
                || !isPreflightAuthorized(preflightResponse))  {
            ...
            return
     }

    //execute second httpRequest
}

XMLHttpRequest.isPreflightAuthorized(..) {
   ...

       /*
        * headersHeader is expected to be a single value, with comma-delimited tokens
        */
       if (isPreflightHeader(key, header.getValue()) && !headersHeader.contains(key) ) {
                return false;
        }
   ...
}

It's worth noting that this website works just fine in browsers such as Chrome, Firefox, Safari
SOLUTION
What should be done is

Iterate through all the headers looking for Access-Control-Allow-Headers, and extracting all the tokens delimited by a comma (,)
Add all tokens to a Set
Verify the header name/key is contained within the afore-mentioned Set

@santospm should i provide a snapshot?

That would be greatly appreciated. Thanks in advance!

2.71.0-SNAPSHOT

@santospm is the problem solved with the snapshot?

no response - i guess this is solved


How to add text input on canvas

Hey, how can we enter text into the canvas? Any suggestions??

I also looking for the same.

<SketchCanvas
ref={ref => this.canvas = ref}
style={{ flex: 1 }}
strokeWidth={6}
text={[{text: 'THIS IS YOUR TEXT',
fontSize: 40,
position: { x: 0.5, y: 0.01 },
anchor: { x: 0.5, y: 0 },
coordinate: 'Ratio',
overlay: 'TextOnSketch',
fontColor: 'black',
alignment: 'Center',
imageType: 'jpg',
}]}

but the text is not dragging within the canvas please share  solution


CAMEL-19083: Tidy yaml-dsl docs and link to the schema

Hello,
I just wanted to let you know that the link is not the correct one, see: https://github.com/apache/camel/blob/main/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camel-yaml-dsl.json instead of https://github.com/apache/camel/blob/main/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json

Thanks, but this has been already updated with the following commit: https://github.com/apache/camel/commit/c623fc7847777be9c402f87ad8ab3e637b4b7303 in main


Update package.xml

@marip8 this is causing the build farm release to fail which is needed for it to install cmake.

Is this the only thing that is causing the build farm failure? I also saw something about not including cassert in the example in an email this morning:
/tmp/ws/src/boost_plugin_loader/examples/example.cpp: In function ‘int main(int, char**)’:
/tmp/ws/src/boost_plugin_loader/examples/example.cpp:34:3: error: ‘assert’ was not declared in this scope
   assert(printer_plugins.size() == 2);
   ^~~~~~
/tmp/ws/src/boost_plugin_loader/examples/example.cpp:34:3: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
/tmp/ws/src/boost_plugin_loader/examples/example.cpp:22:1:
+#include <cassert>

/tmp/ws/src/boost_plugin_loader/examples/example.cpp:34:3:
   assert(printer_plugins.size() == 2);
   ^~~~~~
make[2]: *** [examples/CMakeFiles/boost_plugin_loader_example.dir/build.make:63: examples/CMakeFiles/boost_plugin_loader_example.dir/example.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:208: examples/CMakeFiles/boost_plugin_loader_example.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
<== Failed to process package 'boost_plugin_loader':
  Command '['make']' returned non-zero exit status 2.

Yea probably need to add that to if it is missing.


Add support for Mesh assets

See https://github.com/blake-mealey/mantle/issues/11#issuecomment-969413197 for some details

This implementation may be useful either directly or for porting: https://github.com/RobloxAPI/rbxmesh


Cassandra 3.x support

Is there plans to support cassandra 3.x series?
Thank you

bump.  Are there any plans for Cassandra 3.x support?

Hi @k3nnyP and @klinux, we track improvements via our JIRA system, instead of GitHub issues.  Take a look at http://jira.pentaho.com/browse/PDI-15116.

Thanks.
On Oct 13, 2016 9:36 AM, "Matt Tucker"<EMAIL_ADDRESS>wrote:

Hi @k3nnyP https://github.com/k3nnyP and @klinux
https://github.com/klinux, we track improvements via our JIRA system,
instead of GitHub issues. Take a look at http://jira.pentaho.com/
browse/PDI-15116.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pentaho/pentaho-cassandra-plugin/issues/68#issuecomment-253514760,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUMVBhQ60cpKuj4-3dZD_ucFtHx1fwozks5qzjPdgaJpZM4JunWH
.


[feature request] Deploy and management for AWS ECS

It would be really amazing to be able to manage and deploy to the http://aws.amazon.com/ecs/

Thanks for submitting this!

:+1: Hi I'm Randall from AWS. Let me spend a few days thinking about how we could get all of this wrapped up and supported in a great way for everyone involved!

@ranman Thanks! Looking forward to how we can work together.

Since Kitematic now uses docker-machine, don't you just need a way to be able to configure where docker-machine should launch the containers?

Any updates here?

:+1: Any progress?

@a-b @oliveirarodolfo  No progress from the Docker side at the moment. We are rolling out private repo support for Kitematic.
@ranman Any ideas on how we can potentially collab. on this?

Thanks @mchiang0610!

+1 this would be great!

Just curious, how does this differ from some of the existing ECS capabilities, per:
http://docs.rancher.com/os/amazon-ecs/
https://aws.amazon.com/blogs/apn/rancher-labs-amazon-ecs/

I would like to see something like this too

I was wondering if there is an update regarding this @ranman @mchiang0610 ? Thanks a lot!

@okonon It's one of the items being discussed, and is on the roadmap, but not prioritized at the moment.
@okonon I'd love to know what exact workflow you are looking for?
Thanks!

@okonon there's currently a Beta for deploying Docker on AWS
https://www.docker.com/products/docker#/AWS

Late to this party, any potential project for elastic container registry support at least (ECR) so we can list our containers hosted on AWS?

still waiting for this feature 👍


Update created-at property in createTableDirectWithWriteDelegation + enable ErrorProne ModifiedButNotUsed

Description
Update created-at property in createTableDirectWithWriteDelegation + enable ErrorProne ModifiedButNotUsed
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Test Configuration:

Firmware version:
Hardware:
Toolchain:
SDK:

Checklist:
Please delete options that are not relevant.

[x] I have performed a self-review of my code

Rebased on main branch :)


Calling one handler from another one, is it good?

Hello all,
I recently started using Mediatr in my web api project and I am pretty happy with that. But I have one issue, my web API accepts a request with following JSON data.
{
	"Title": "First note",   //Note title
	"Details" : "Hello World",  // Note detail
	"UserId": 1 // User id who created this note
}

As u can see above the UserId is 1 which is nothing but the user with Id 1 in database. But while saving this note (about JSON object is Note object), the repository method accepts an actual User object rather than UserId.
So before saving in db I need to get the user details who has Id 1 and then initialize the user property of note object with those details and then save it to the database.
So I need to let u know that I already have a query that retrieves the specific user with its UserId passed to it.
 Is it good practice? I did research on it, some people used the pipeline (I don't know much about it) to achieve it.
public class CreateNoteCommandHandler : IRequestHandler<CreateNoteCommand>
    {
        private readonly INoteRepository _noteRepository;
        private readonly IUserRepository _userRepository;

        public CreateNoteCommandHandler(INoteRepository noteRepository, IUserRepository userRepository)
        {
            _noteRepository = noteRepository;
            _userRepository = userRepository;

        }

        public Task<Unit> Handle(CreateNoteCommand request, CancellationToken cancellationToken)
        {

            // Call user repository to get that specific user
            var user = _userRepository.Get(request.Note.UserId);

                                    // OR

            // should i inject mediator here and call corresponding method
            // OR var user _mediator.Send(new GetUserById(request.Note.UserId);

            var note = new Note
            {
                User = user,
                Details = request.Note.Details,
                Title = request.Note.Title
            };

            _noteRepository.Add(note);
            return Task.FromResult(Unit.Value);
        }
    }

I have already read this article BTW https://lostechies.com/jimmybogard/2016/12/12/dealing-with-duplication-in-mediatr-handlers/

To answer your first question - we've done nested handlers in the past on projects, and it's never really turned out well. The indirection of a handler is good at the application level, but just got confusing once we got inside a handler (and it introduced coupling). I'd do exactly as you show above.
A broader question though is "should I have to query the database to get a FK entity", and these days, I prefer "no".
In your model, I'd have two properties - UserId and User. I don't know what your persistence strategy, but ORMs like EF can handle this just fine.
It saves a query to the database when you just want to insert something.

Ok, I got my issue solved. But what happens in those complex situations where the developer needs to make entries in different tables, how the mediator will handle those situations. Right now we have to call handlers in handlers to achieve those things. Do you have any plans to make changes into mediator library so that it will be capable of doing those things effectively? just wanted to know.

No, I don't plan on making that easier because in practice it made things more difficult to understand/follow.
If you need to make two inserts to two tables, just do them both in a single handler, then you can refactor as needed.
Sometimes we have "side effect" actions, which we use things like domain events to handle. I'm still very cautious about using those, though, since it can be even harder to follow the logic.

Ok. Hope so you and your team find a great way to handle those scenarios as well, am looking forward to it.
BTW you have built a great library for making things easier. The only thing I will request you to have some video tutorials on using this library so that newbies like me can learn from it and use it. It will be a great help! 👍

My take on this is that GetUserById should not necessarily be a MediatR request if it doesn't have to, simply because there's already a user repository that helps to get a user by ID, and that user repository can be injected into any MediatR request handler to get a user by ID, etc.
I really feel like people should stop seeing MediatR requests as strictly commands and queries but rather as application logic that could primarily do command or query stuff, because in a command, a query can also be done (as in CreateNoteCommandHandler in your example) but the overall effect is a command.

Hello all,
I recently started using Mediatr in my web api project and I am pretty happy with that. But I have one issue, my web API accepts a request with following JSON data.
{
	"Title": "First note",   //Note title
	"Details" : "Hello World",  // Note detail
	"UserId": 1 // User id who created this note
}

As u can see above the UserId is 1 which is nothing but the user with Id 1 in database. But while saving this note (about JSON object is Note object), the repository method accepts an actual User object rather than UserId.
So before saving in db I need to get the user details who has Id 1 and then initialize the user property of note object with those details and then save it to the database.
So I need to let u know that I already have a query that retrieves the specific user with its UserId passed to it.
 Is it good practice? I did research on it, some people used the pipeline (I don't know much about it) to achieve it.
public class CreateNoteCommandHandler : IRequestHandler<CreateNoteCommand>
    {
        private readonly INoteRepository _noteRepository;
        private readonly IUserRepository _userRepository;

        public CreateNoteCommandHandler(INoteRepository noteRepository, IUserRepository userRepository)
        {
            _noteRepository = noteRepository;
            _userRepository = userRepository;

        }

        public Task<Unit> Handle(CreateNoteCommand request, CancellationToken cancellationToken)
        {

            // Call user repository to get that specific user
            var user = _userRepository.Get(request.Note.UserId);

                                    // OR

            // should i inject mediator here and call corresponding method
            // OR var user _mediator.Send(new GetUserById(request.Note.UserId);

            var note = new Note
            {
                User = user,
                Details = request.Note.Details,
                Title = request.Note.Title
            };

            _noteRepository.Add(note);
            return Task.FromResult(Unit.Value);
        }
    }

I have already read this article BTW https://lostechies.com/jimmybogard/2016/12/12/dealing-with-duplication-in-mediatr-handlers/

My take on this is that GetUserById should not necessarily be a MediatR request if it doesn't have to, simply because there's already a user repository that helps to get a user by ID, and that user repository can be injected into any MediatR request handler to get a user by ID, etc.
I really feel like people should stop seeing MediatR requests as strictly commands and queries but rather as application logic that could primarily do command or query stuff, because in a command, a query can also be done (as in CreateNoteCommandHandler in your example) but the overall effect is a command.

I agreed with @jbogard and we should avoid the mediator command handler calling another mediator command handler but it should be fine to publish the mediator single/multiple events from the same command handler. Please correct me if I am the wrong @jbogard?


Added kubernetes section and course in free-programming-books-pt_BR.md

Added in 1 free programming course:

Introdução ao Kubernetes no Azure

Hacktoberfest notes:

due to volume of submissions, we may not be able to review PRs that do not pass tests and do not have informative titles.
please read our contributing guidelines
be sure to check the output of Travis-CI for linter errors
if this is your first open source contribution, make sure it's not your last!

What does this PR do?
Added in 1 free new kubernetes course from Microsoft Azure
Why is this valuable (or not)?
Hope this course helps portuguese speakers to learn Kubernetes, docker and deployment in Azure.
Checklist:

[x] Not a duplicate
[x] Included author(s) if appropriate
[x] Lists are in alphabetical order
[x] Needed indications added (PDF, access notes, under construction)

Thanks, and welcome to free-programming-books!


Ignore prices submitted with a Charge Information (D18) update request (Feature-AC4D and AC2)

Acceptance criteria:

[ ] Given a valid charge update request is received with the exact same master data or price values as currently stored
When processing it
Then is persisted and processed as normal

Task list

[x] In ChargeOperationInputValidationRulesFactory remove price related rules from CreateRulesForChargeInformation(ChargeOperationDto chargeOperationDto)
[x] If it still applies, remove price related rules from CreateRulesForChargeInformation() in ChargeOperationInputValidationRulesFactory.cs
[x] Remove interval and points from ChargeCimSerializer.cs
[x] Update test in ChargeCimSerializer.cs which both contains Charge Information and Charge Prices
[x] Remove points from AvailableChargeData
[ ] Remove #pragma warning disable CS0618 and #pragma warning restore CS0618
[x] Remove interval and points from ChargeInformationDto.cs
[x] Remove ChargeDataPoints table

Testing:
Charge information requests:

Subscription: OK!
Tariff: OK!
Fee: OK!

Charge price requests:

Subscription prices: OK!
Tariff prices: OK!
Fee prices: OK! ("TarId039" as SYO)


Update to rails 6.1

closes #1843

closing in favor of https://github.com/pulibrary/bibdata/pull/1865


(cmake)(cmake.install) Clarify the text around the PATH

Description
I have added text based on #2442 to make it clearer the cmake.exe is not on the PATH as it is following the installer behaviour, and providing options.
Motivation and Context
See #2442
How Has this Been Tested?
This is README changes and Write-Warnings. No other code changes.
Screenshot (if appropriate, usually isn't needed):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Migrated package (a package has been migrated from another repository)

Checklist:

[x] My code follows the code style of this repository.
[x] My change requires a change to documentation (this usually means the notes in the description of a package).
[x] I have updated the documentation accordingly (this usually means the notes in the description of a package).
[x] I have updated the package description and it is less than 4000 characters.
[x] All files are up to date with the latest Contributing Guidelines
[ ] The added/modified package passed install/uninstall in the Chocolatey Test Environment(https://github.com/chocolatey-community/chocolatey-test-environment/). Note that we don't support the use of any other environment.
[x] The changes only affect a single package (not including meta package).

:white_check_mark: Package verification completed without issues. PR is now pending human review

:white_check_mark: Package verification completed without issues. PR is now pending human review

@pauby thanks for getting this fixed up!


KYLIN-3720 add column family check when save/update cube desc

Can one of the admins verify this patch?

Pull Request Test Coverage Report for Build 3966

0 of 14 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.004%) to 25.805%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java
0
14
0.0%

Files with Coverage Reduction
New Missed Lines
%

server-base/src/main/java/org/apache/kylin/rest/util/QueryRequestLimits.java
1
47.62%

Totals

Change from base Build 3965:
-0.004%

Covered Lines:
17823

Relevant Lines:
69069

💛  - Coveralls


How to use a continuous color as the color of a line?

Hi Morvan,
Thanks for continuing making great lessons!
I have a question about using matplotlib to create a line with a continuous color, the continuous color should be based on an array.
The original dataset and question is here
Could you teach me how to do it? Thanks

Hi, this is not an issue in the tutorial code. But if you like, you can divide line segment and color them in different colors.


Detected that custom integration 'open_epaper_link' calls hass.bus.async_fire from a thread other than the event loop

Describe the bug
Logger: websocket
Source: deps/lib/python3.12/site-packages/websocket/_logging.py:77
First occurred: 3:03:11 PM (382 occurrences)
Last logged: 3:21:24 PM
error from callback <bound method Hub.on_message of <custom_components.open_epaper_link.hub.Hub object at 0x7f75f951a5a0>>: Detected that custom integration 'open_epaper_link' calls hass.bus.async_fire from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#hassbusasync_fire at custom_components/open_epaper_link/hub.py, line 191: self._hass.bus.async_fire(DOMAIN + "_event", event_data). Please report it to the author of the 'open_epaper_link' custom integration.
To Reproduce
Steps to reproduce the behavior:

Upgrade to 2024.6.3
Look into the Logs

Hi, did you update the integration?

Sorry I should have tried that first, I just didn't see it mentioned in any recent release notes.
I'll update to latest and re-open if it pops up again.
Thanks for the quick response and thanks for this awesome integration.


Original PCB

Your Question
I would like to get all original PCB files if possible.
Description
I want to make the original PCB myself.

If you are talking about the PCB's shown on this page, the download links are provided.  However, if you are talking about the Maltronics MalDuino W, or the DSTIKE Wifi Duck, the PCBs are proprietary.  I have reached out to DSTIKE asking for the designs, as I was interested in making one myself, but, unfortunately I have not gotten a response.  I would recommend using the CJMCU Beetle (or a clone) and the Lolin D1 Mini, as these two combined have a very small profile.  Similar to this image.


I wish /docs/user-guide/pod-states/ had actual YAML examples

First, there's a lot of dead links everywhere still leading to github markdown-based documentation.
Second, API reference for example for v1.Probe and initialDelaySeconds says "For more information, check /docs/user-guide/pod-states/. But there's no explanation, nor examples for initialDelaySeconds on that page.
Also, it could maybe mention if it's relevant to ReplicaSets, since they seem to be the recommended thing to use now instead of RCs?

The doc has a set of examples now, and the broken links are fixed.


rawPath(wsURL) causes encoded query string be decoded，causing the wrong request to be sent

https://github.com/netty/netty/blob/04001fdad1ca3c72625cddb1b1c7789381cb5f30/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker13.java#L129
My original URL is：http://<IP_ADDRESS>/v1/test?info=test%40abc%23def
String path = rawPath(wsURL);  ==>    http://<IP_ADDRESS>/v1/test?info=test@abc#def
Am I doing anything wrong? or this is a bug?

@mawenyu this may be a bug... would you be able to provide a pr to fix this ?

This bug has fixed。 I am using netty 4.1.5-Final，so the problem exist


I have problem loading driver

Driver functionality test
TestDriver: Failed to load driver. Status 0xc0000034

BlackBoneDrvX.sys must be in the same directory as TestApp

Where can i get the BlackBoneDrvX.sys file. I googled it and didn't find anything.

Compile it yourself or use release version from repo.

I compile it no blackbonedrvx generates?

ok i put the file in same folder as .exe
now i get "TestDriver: Failed to load driver. Status 0xc000012f"

Driver file is not an actual PE file. Something is wrong with driver.

Duplicate #132


Exec tachikoma update<PHONE_NUMBER>2629

:hamster::hamster::hamster:   Strategy none
Powered by Interval Pull Request as a Service - Tachikoma.io Announcement: 2015-06-28 Updated permissions - Tachikoma.io

Can one of the admins verify this patch?


Add a promise toast

I usually use react-hot-toast, there are quite some cool features, for example, you can call the toast, without using useToast. Another main reason is toast can embed the promise, useful for "Loading", "Success", or "Error" states.

It would be really nice, I also has faced it

if you want toast within the same style I use library called sonner like this
`
"use client";
import { Toaster as RadToaster } from "sonner";
export function Toaster() {
return (
<RadToaster
position="bottom-right"
toastOptions={{
style: {
background: "hsl(var(--background))",
color: "hsl(var(--foreground))",
border: "1px solid hsl(var(--border))",
},
}}
/>
);
}
`

Sonner has been added to shadcn, this can be closed.


Fix/err

Fix: Corrected typos in documentation file
Changes

Corrected typo in README-nix.md:136:

"shoud" corrected to "should".

Corrected typo in README-nix.md:117:

"corresopnding" corrected to "corresponding".

Purpose

Improved documentation clarity and professionalism by fixing typos.

I have to say it's surprising just how many typos exist in this repo :D


Drop @support media query

This should be reviewed thoroughly and if landed, it should be after #30377

Just to be sure, dropping IE means we don't care about graceful degradation?
In the very specific case of .position-sticky, offsets with a relative fallback could lead to overlapping content in unsupporting browsers.
Is this tolerable?

Just to be sure, dropping IE means we don't care about graceful degradation?

That's my concern too about this patch. But graceful degradation is broken for IE for sure (or rather it will be after #30377). For the rest of the browsers is something we should consider before landing a patch like this.

FWIW if we don't care about IE, other browsers should handle this correctly – since most of unsupporting browsers are feature phone's ones.
I'm for dropping the feature query, however if we can handle a decent fallback with a single property it may worth it.

AFAICT this just saves us 0.02 kB from the minified file after compression.
So, we should really think about it before landing this for sure.

I'm okay leaving it around if we think it'll avoid something potentially problematic for folks, but otherwise, let's roll with this being a more forward-focused iteration and drop it.

... let's roll with this being a more forward-focused iteration and drop it.

We should clean up legacy stuff as much as possible. Apart from IE, the browsers we support should be fine.

We already use custom properties and the difference between browsers that support  custom properties and not position sticky is negligible:

https://caniuse.com/#feat=css-sticky
https://caniuse.com/#feat=css-variables


how ot get diff files between two commits?

I want to get a list of changed files between to commits.
like command:git diff --name-status abcdef fedcba

Best bet is to find a good libgit2 example explaining this and then translating that code into NodeGit. Off the top of my head, I'm not sure what the best libgit2 way to do this is, and once you figure that out we can help you figure out the best NodeGit way to do it.

Please have a look at my complimentary nodegit-kit helper module. It helps with git status, git add *, git diff, git log and git commit. nodegit-kit  returns and accepts native promises and can be incorporated into normal nodegit code. I would like to provide an name-status option, but am not 100% sure about the api of nodegit-kit, it currently is nodegitkit.diff(repo[, commit[, commit]])
https://github.com/thisconnect/nodegit-kit#diff-repo-commit-commit
what kind of output would you expect?
M       file1.txt
D       file2.txt

I always prefer to return JSON like data, would this make sense for you:
[{
  "path": "file1.txt",
  "status": "modified"
}, {
  "path": "file2.txt",
  "status": "deleted"
}]

@thisconnect Thanks! It's awesome!

Maybe this answer on stack overflow helps someone:
https://stackoverflow.com/questions/34633542/nodegit-get-diff-between-two-commits/65114136#65114136


[Snyk] Fix for 1 vulnerabilities

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):

packages/node/base/package.json
packages/node/base/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Regular Expression Denial of Service (ReDoS) SNYK-JS-MINIMATCH-3050818
  479

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)

Checkmarx One – Scan Summary & Details – 7fe81375-de14-4871-8671-ae5ba30c8294
New Issues

Severity
Issue
Source File / Package
Checkmarx Insight

CVE-2023-34092
Npm-vite-4.3.1
Vulnerable Package

CVE-2024-23331
Npm-vite-4.3.1
Vulnerable Package

CVE-2024-27088
Npm-es5-ext-0.10.53
Vulnerable Package

CVE-2024-27351
Python-Django-1.2
Vulnerable Package

CVE-2024-29180
Npm-webpack-dev-middleware-6.0.2
Vulnerable Package

CVE-2024-4068
Npm-braces-2.3.2
Vulnerable Package

CVE-2024-4068
Npm-braces-3.0.2
Vulnerable Package

Cx37f28a21-b2a7
Npm-angular-1.8-1.8.2
Vulnerable Package

Cx94a5c81d-63b1
Npm-angular-1.8-1.8.2
Vulnerable Package

Cx9eb96c9b-eb45
Npm-angular-mocks-1.8-1.8.2
Vulnerable Package

Cxcf770dcb-fd21
Npm-angular-1.8-1.8.2
Vulnerable Package

Sensitive Port Is Exposed To Entire Network
/ec2.tf: [83](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/ec2.tf# L83)
A sensitive port, such as port 23 or port 110, is open for the whole network in either TCP or UDP protocol

Sensitive Port Is Exposed To Entire Network
/ec2.tf: [83](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/ec2.tf# L83)
A sensitive port, such as port 23 or port 110, is open for the whole network in either TCP or UDP protocol

CVE-2024-28849
Npm-follow-redirects-1.14.6
Vulnerable Package

CVE-2024-28863
Npm-tar-6.1.11
Vulnerable Package

CVE-2024-28863
Npm-tar-4.4.19
Vulnerable Package

CVE-2024-31207
Npm-vite-4.3.1
Vulnerable Package

CVE-2024-4067
Npm-micromatch-3.1.10
Vulnerable Package

CVE-2024-4067
Npm-micromatch-4.0.4
Vulnerable Package

IAM Access Analyzer Not Enabled
/es.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/es.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/random.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/random.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/application_gateway.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/application_gateway.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/aks.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/aks.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/mssql.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/mssql.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/big_data.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/gcp/big_data.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/neptune.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/neptune.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/storage.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/storage.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/db-app.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/db-app.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/bucket.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/oracle/bucket.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/gke.tf: [6](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/gcp/gke.tf# L6)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/instances.tf: [3](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/gcp/instances.tf# L3)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/instance.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/instance.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/s3.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/s3.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/sql.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/sql.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/networking.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/networking.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/ecr.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/ecr.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/ec2.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/ec2.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/gcs.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/gcp/gcs.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/rds.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/alicloud/rds.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/elb.tf: [2](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/elb.tf# L2)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/iam.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/iam.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/app_service.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/app_service.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/key_vault.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/key_vault.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/trail.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/alicloud/trail.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/kms.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/kms.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/networks.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/gcp/networks.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/logging.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/logging.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/policies.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/policies.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/roles.tf: [3](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/roles.tf# L3)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/rds.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/rds.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/compartment.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/oracle/compartment.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/resource_group.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/resource_group.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/security_center.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/azure/security_center.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/lambda.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/lambda.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/eks.tf: [19](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/eks.tf# L19)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

Fixed Issues

Severity
Issue
Source File / Package

CVE-2022-25858
Npm-terser-5.10.0

CVE-2022-25858
Npm-terser-5.9.0

CVE-2023-28154
Npm-webpack-5.64.1

Cx37f28a21-b2a7
Npm-angular-1.8-1.8.2

Cx94a5c81d-63b1
Npm-angular-1.8-1.8.2

Cx9eb96c9b-eb45
Npm-angular-mocks-1.8-1.8.2

Cxab55612e-3a56
Npm-braces-3.0.2

Cxab55612e-3a56
Npm-braces-2.3.2

Cxca84a1c2-1f12
Npm-micromatch-3.1.10

Cxca84a1c2-1f12
Npm-micromatch-4.0.4

Cxcf770dcb-fd21
Npm-angular-1.8-1.8.2

S3 Bucket SSE Disabled
/s3.tf: [89](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/s3.tf# L89)

S3 Bucket SSE Disabled
/s3.tf: [1](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/s3.tf# L1)

S3 Bucket SSE Disabled
/s3.tf: [65](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/s3.tf# L65)

S3 Bucket SSE Disabled
/ec2.tf: [271](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/ec2.tf# L271)

S3 Bucket SSE Disabled
/s3.tf: [42](https://github.com/TheRedHatter/terragoat/blob/snyk-fix-0a312b905e051766270a692bb6d388a8//terraform/aws/s3.tf# L42)

CVE-2007-2379
Npm-jquery-3.6.0

CVE-2014-6071
Npm-jquery-3.6.0

CVE-2021-23566
Npm-nanoid-3.1.30

Cx14b19a02-387a
Npm-body-parser-1.19.0


Downloading the DFDC and DFDC Preview datasets

Hello, sorry to bother you. Could you please provide the download links for the DFDC and DFDC Preview test datasets on a file-sharing platform?
I have been trying for a long time but have been unable to successfully register on the official website(https://dfdc.ai/sign-up). I would greatly appreciate your help.

I'm sorry that the file may not be uploaded to Baidu Cloud quickly because it is too large. If you also use the WeChat app, you can add me on WeChat and I will share the official website account with you and download it. My WeChat ID is Liu_C_Xu (please note the purpose).


The link provided for the pretrained model is incorrect.

In the Pretrained model section, the link provided for the VisDrone model is the same as the link for the FairMOT pretrain (COCO) + monodepth2 pretrain (KITTI) model. Is there a pretrained model specifically for VisDrone? thanks.

Sorry for the mistake, I have fixed it


InvalidProtocolBufferException: Protocol message tag had invalid wire type

I'm using tilemaker to generate vector tiles from .pbf datasets that can be downloaded from Geofabrik.
tilemaker claims to produce vector tiles in the Mapbox format, but the flutter_vector_map_tiles package does not seem to be able to parse them.
Any ideas on how I could debug this?
Example vector tile generated by tilemaker
example_vector_tile.zip
Code
import 'dart:typed_data';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong2/latlong.dart';
import 'package:vector_map_tiles/vector_map_tiles.dart';
// ignore: depend_on_referenced_packages
import 'package:vector_tile_renderer/vector_tile_renderer.dart' show ProvidedThemes;

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Vector Map',
      home: MapView(),
    );
  }
}

class MapView extends StatelessWidget {
  const MapView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) => FlutterMap(
        options: MapOptions(
          center: LatLng(46.933849942685754, 7.424258598204977),
          zoom: 13.0,
          plugins: [
            VectorMapTilesPlugin(),
          ],
        ),
        layers: [
          VectorTileLayerOptions(
            theme: ProvidedThemes.lightTheme(),
            tileProviders: TileProviders({
              'openmaptiles': AssetTileVectorProvider(),
            }),
          ),
        ],
      );
}

class AssetTileVectorProvider extends VectorTileProvider {
  @override
  int get maximumZoom => 19;

  @override
  Future<Uint8List> provide(TileIdentity tile) {
    return rootBundle
        .load("assets/vector_tiles/${tile.z}_${tile.x}_${tile.y}.pbf")
        .then((value) => value.buffer.asUint8List());
  }
}

Check if your layer is named corresponding to your configuration ''openmaptiles''.
I never used tilemaker myself: Consult the documentation for the corresponding name. Or, if you get a style file, you can open it in maputnik to see the layer names.
Elsewise you can set a breakpoint after the protobuf decode, to see the different layer names.

I've tried the example tile referenced in this issue with this test vector_tile_reader_test.dart#L9 and it is read with no errors. Can you include the stack trace of the error you're seeing?
To troubleshoot, you might want to clone https://github.com/greensopinion/dart-vector-tile-renderer and try individual tiles in a unit test to replicate the issue.
To rule out the possibility of a problem with the way the tiles are loaded from the rootBundle perhaps try your application loading the same tiles from the filesystem instead.

First, thanks for taking the time to respond.
tilemaker generates a metadata.json file that contains the names of the layers.
For me, it has the following content:
{
    "tilejson": "2.0.0",
    "scheme": "xyz",
    "type": "baselayer",
    "format": "pbf",
    "tiles": [
        "https://example.com/liechtenstein/{z}/{x}/{y}.pbf"
    ],
    "bounds": [
        5.952882,
        45.81617,
        10.49584,
        47.811260000000007
    ],
    "name": "Tilemaker to OpenMapTiles schema",
    "version": "3.0",
    "description": "Tile config based on OpenMapTiles schema",
    "minzoom": 0,
    "maxzoom": 14,
    "vector_layers": [
        {
            "id": "place",
            "fields": {
                "class": "String",
                "iso_a2": "String",
                "name:latin": "String",
                "rank": "Number"
            },
            "minzoom": 0,
            "maxzoom": 14
        },
        {
            "id": "boundary",
            "fields": {
                "admin_level": "Number",
                "disputed": "Number"
            },
            "minzoom": 0,
            "maxzoom": 14
        },
        {
            "id": "poi",
            "fields": {
                "class": "String",
                "name:latin": "String",
                "rank": "Number",
                "subclass": "String"
            },
            "minzoom": 12,
            "maxzoom": 14
        },
        {
            "id": "housenumber",
            "fields": {
                "housenumber": "String"
            },
            "minzoom": 14,
            "maxzoom": 14
        },
        {
            "id": "waterway",
            "fields": {
                "brunnel": "String",
                "class": "String",
                "intermittent": "Number",
                "name:latin": "String"
            },
            "minzoom": 8,
            "maxzoom": 14
        },
        {
            "id": "transportation",
            "fields": {
                "brunnel": "String",
                "class": "String",
                "oneway": "Number",
                "ramp": "Number",
                "service": "String"
            },
            "minzoom": 4,
            "maxzoom": 14
        },
        {
            "id": "transportation_name",
            "fields": {
                "class": "String",
                "name:latin": "String",
                "network": "String",
                "ref": "String",
                "ref_length": "Number"
            },
            "minzoom": 8,
            "maxzoom": 14
        },
        {
            "id": "building",
            "fields": {
                "housenumber": "String",
                "render_height": "Number",
                "render_min_height": "Number"
            },
            "minzoom": 13,
            "maxzoom": 14
        },
        {
            "id": "water",
            "fields": {
                "class": "String",
                "intermittent": "String"
            },
            "minzoom": 6,
            "maxzoom": 14
        },
        {
            "id": "water_name",
            "fields": {
                "class": "String",
                "name:latin": "String"
            },
            "minzoom": 14,
            "maxzoom": 14
        },
        {
            "id": "aeroway",
            "fields": {
                "class": "String",
                "ref": "String"
            },
            "minzoom": 11,
            "maxzoom": 14
        },
        {
            "id": "aerodrome_label",
            "fields": {
                "class": "String",
                "ele": "Number",
                "ele_ft": "Number",
                "iata": "String",
                "icao": "String",
                "name:latin": "String"
            },
            "minzoom": 10,
            "maxzoom": 14
        },
        {
            "id": "park",
            "fields": {
                "class": "String",
                "name:latin": "String"
            },
            "minzoom": 11,
            "maxzoom": 14
        },
        {
            "id": "landuse",
            "fields": {
                "class": "String",
                "name:latin": "String",
                "rank": "Number",
                "subclass": "String"
            },
            "minzoom": 4,
            "maxzoom": 14
        },
        {
            "id": "landcover",
            "fields": {
                "class": "String",
                "name:latin": "String",
                "rank": "Number",
                "subclass": "String"
            },
            "minzoom": 0,
            "maxzoom": 14
        },
        {
            "id": "mountain_peak",
            "fields": {
                "class": "String",
                "ele": "Number",
                "ele_ft": "Number",
                "name:latin": "String",
                "rank": "Number"
            },
            "minzoom": 11,
            "maxzoom": 14
        }
    ]
}

I've tried to change openmaptiles to one of the layers from above, but the behaviour hasn't changed.
The following stack trace is the result:
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: InvalidProtocolBufferException: Protocol message tag had invalid wire type.
#0      UnknownFieldSet.mergeFieldFromBuffer
package:protobuf/…/protobuf/unknown_field_set.dart:74
#1      _mergeFromCodedBufferReader
package:protobuf/…/protobuf/coded_buffer.dart:42
#2      GeneratedMessage.mergeFromBuffer
package:protobuf/…/protobuf/generated_message.dart:196
#3      new VectorTile.fromBuffer
package:vector_tile/…/proto/vector_tile.pb.dart:340
#4      VectorTile.fromBytes
package:vector_tile/vector_tile.dart:29
#5      VectorTileReader.read.<anonymous closure>
package:vector_tile_renderer/src/vector_tile_reader.dart:10
#6      Timeline.timeSync (dart:developer/timeline.dart:157:22)
#7      profileSync
package:vector_tile_renderer/src/profiling.dart:16
#8      VectorTileReader.read
package:vector_tile_renderer/src/vector_tile_reader.dart:9
#9      _createTile
package:vector_map_tiles/…/cache/vector_tile_loading_cache.dart:96
#10     _Job.apply
package:vector_map_tiles/…/executor/queue_executor.dart:96
#11     QueueExecutor._runOneAndReschedule
package:vector_map_tiles/…/executor/queue_executor.dart:51
#12     _rootRun (dart:async/zone.dart:1418:47)
#13     _CustomZone.run (dart:async/zone.dart:1328:19)
#14     _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#15     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1276:23)
#16     _rootRun (dart:async/zone.dart:1426:13)
#17     _CustomZone.run (dart:async/zone.dart:1328:19)
#18     _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#19     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1276:23)
#20     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#21     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)

I then tried to adapt run the rendering_test from the dart-vector-tile-renderer of @greensopinion but I'm getting the same error there:
00:01 +5 -1: loading /Users/eliabieri/Downloads/dart-vector-tile-renderer/test/benchmark/rendering_test.dart [E]
  Failed to load "/Users/eliabieri/Downloads/dart-vector-tile-renderer/test/benchmark/rendering_test.dart": Protocol message tag had invalid wire type.
  package:protobuf/src/protobuf/unknown_field_set.dart 74:9                                                              UnknownFieldSet.mergeFieldFromBuffer
  package:protobuf/src/protobuf/coded_buffer.dart 42:38                                                                  _mergeFromCodedBufferReader
  package:protobuf/src/protobuf/generated_message.dart 194:5                                                             GeneratedMessage.mergeFromBuffer
  package:vector_tile/raw/proto/vector_tile.pb.dart 340:128                                                              new VectorTile.fromBuffer
  package:vector_tile/vector_tile.dart 29:33                                                                             VectorTile.fromBytes
  package:vector_tile_renderer/src/vector_tile_reader.dart 10:25                                                         VectorTileReader.read.<fn>
  dart:developer                                                                                Timeline.timeSync
  package:vector_tile_renderer/src/profiling.dart 16:19                                                                  profileSync
  package:vector_tile_renderer/src/vector_tile_reader.dart 9:12                                                          VectorTileReader.read
  test/src/test_tile.dart 9:67                                                                                readTestTile
  ===== asynchronous gap ===========================
  test/benchmark/rendering_test.dart 46:16                                                                               RenderPicture.setupAll
  ===== asynchronous gap ===========================
  test/benchmark/rendering_test.dart 77:3                                                                                main
  ===== asynchronous gap ===========================
  /var/folders/1g/plrmhyyx3vl78pfg2cvb4dx40000gn/T/flutter_tools.8rT7Kj/flutter_test_listener.dWDqJv/listener.dart 18:3  _testMain

Sadly, I'm kinda stuck with this.
Should I use some other library to try to parse my .pbf files and verify, that they are indeed correctly generated?
I'm attaching some more tiles in case you're interested

Mhm it seems like the features are divided into a lot of layers (@greensopinion this can maybe transformed into a performance improvement, by handling layers individually, like water, streets etc ... just an idea).
Right now the library awaits a single layer, containing all features, like its delivered via mapbox or stadia. You need to merge all those layers into one inside tilemaker, to make it consumeable by this library for now. Another option would be making this library ready for handling multiple layers.

I now configured tilemaker to generate only a single layer but the tiles are still rejected by the vector_map_tiles package with the same error.
It's quite hard to debug as the error originates in the protobuf parser.
example_tile.pbf.zip

Make sure tilemaker is using v2.1 of the vector tile spec.
Or, you can make sure that your pbf is valid, by writing a small test application using the standard .proto file https://github.com/mapbox/vector-tile-spec/tree/master/2.1 and the protobuf package https://pub.dev/packages/protobuf

closing, but feel free to reopen or comment if this continues to be an issue


[Bot Rules] Update Synapse contacts

Summary
The focus of these changes is to update the contacts for Synapse to match the updates from #30899.

/check-enforcer override


Problem loading with psycopg2 and glibc 2.26

Hi,
I packaged omnidb-* for Arch Linux just for lulz.

https://aur.archlinux.org/packages/omnidb-server
https://aur.archlinux.org/packages/omnidb-app

However - since an Arch Linux uprade to glibc 2.26 the app/server does not start anymore.
[root@frosch ~]# python --version
Python 3.6.2
[root@frosch ~]# omnidb-server
Traceback (most recent call last):
  File "omnidb-server.py", line 33, in <module>
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
  File "site-packages/psycopg2/__init__.py", line 50, in <module>
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/PyInstaller/loader/pyimod03_importers.py", line 573, in load_module
ImportError: /opt/omnidb-server/libresolv-2-c4c53def.5.so: symbol __res_maybe_init, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
Failed to execute script omnidb-server

This is due to: https://github.com/psycopg/psycopg2-wheels/issues/2
When I copy the latest psycopg2 (<IP_ADDRESS>) over the the extension in the omnidb-server directory:
sudo cp /usr/lib/python3.6/site-packages/psycopg2/_psycopg.cpython-36m-x86_64-linux-gnu.so psycopg2._psycopg.so

then it starts again.
For convenience - I just used the Debian packages for packaging. This would probably not be a problem when I would invest more time compiling a build for Arch Linux from scratch.
Clearly Arch Linux is not targeted in your builds - so I do not expect extensive support here.
However: I reckon that since psycopg2 is bundled via pyinstaller - the app and server will not be able to start on any system with glibc 2.26 at the moment.
Maybe you can consider updating psycopg2 in the next release?

Hi @madflow ,
Thanks for using OmniDB and for packaging it for Arch Linux :+1:
Also thanks for reporting this. We compile the build on the oldest operating system as possible, taking advantage of glibc backward compatibility. But we weren't aware of this bug in psycopg2-wheels.
glibc 2.26 was released on 2017-08-02, it's brand new. I think updating psycopg2 for the next release is the way to go.
We intend to build specific packages for Arch Linux in the near future, and we would gladly accept any piece of information or help on that matter :)

It might help if you reinstall psycopg2 and don't use the binary using the below command I found at https://lists.archlinux.org/pipermail/arch-general/2017-August/044157.html
pip install --no-binary :all: psycopg2

Psycopg2 was updated for the build of 2.2.

👍 I can confirm: The Arch package is working again!


Manifest14 tests (Python and C)

plus another small fix for .bits
Signature check code is commented out until I have clarified some things about the signature checking procedure.

@oyvindronningstad looks like a fixup commit is in the list of commits. Should this be squashed out or revised?

@oyvindronningstad looks like a fixup commit is in the list of commits. Should this be squashed out or revised?

@kyberdin it's intentional. It's a fix for a previously merged commit. Making it a fixup commit makes it clear that they are related, and will also squash them if we were to rebase the main branch at some point.

will also squash them if we were to rebase the main branch at some point.

Ah I see, didn't consider rebasing main as an option. Ok then, no problem if intentional.


Different MedSAM Preprocessing Steps

Hi,
I'm trying to run inference on some examples using MedSAM. To preprocess the images, I saw that there are two different ways this is handled in the repo:

In utils/precompute_img_embed.py, data is normalized to a standard normal distribution and resized using torchvision.transforms.functional.resize

In MedSAM_Inference.py, data is 0-1 normalized and resized using skimage.transform.resize.

Why does this discrepancy exist, and which way was used to train the checkpoints? And which way should I use for my own inference / fine-tuning. Additionally, it seems like skimage.transform.resize takes substantially longer to run than torchvision.transforms.functional.resize, so wondering if this difference is significant or if I can just swap to the faster one?

Hi @KarthikNair1 ,
Thanks for your interest very much.
Sorry for the confusion. This utils/precompute_img_embed.py should be dropped from the latest version. I have removed it just now.
Here is the pre-processing script
https://github.com/bowang-lab/MedSAM/blob/main/pre_CT_MR.py
Since we do the pre-processing offline, so skimage.transform.resize was used in our script. torchvision.transforms.functional.resize uses PIL.Image.BILINEAR interpolation by default. As long as the interpolation order is the same, I don't think there will be large difference between different interpolation methods.

Ahh ok, makes sense. Thanks!

The pre_CT_MR.py saves all the images in .npy format, but the input requested in MedSAM_Inference.py should be in .png format right?


Sort columns in Admin UI

What does this pull request do? Explain your changes. (required)
Sort columns in Admin UI
Specific updates (required)

How did you test each of these updates (required)

Does this pull request close any open issues?

Screenshots (optional):

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.

Hey @darkdarkdragon - FYI the reason the vercel build is failing is due to a breaking change in one of the explorer's npm dependencies. I froze the dependency so if you rebase on master this build should go through.

Hey guys - I noticed you're implementing a lot of the same table logic that I've recently implemented on the Livepeer Explorer. I had a really good experience using the react-table library. It offers sorting, filtering, and pagination out of the box, and is not opinionated so it's easy to customize. Thought I'd share in case y'all find it helpful.

@angyangie added arrows to headers.
I've actually wanted to add createdAt field to the user, but forgot 😄 Will add later.

@adamsoffer thanks, I'll definitively will look at the react-table when will be doing this properly - for now it was just something very quick to improve usability.


New release with dotool support

Hi, was just wondering if @fdw or anyone else has had a chance to test dotool support out? It's been in for awhile so was wondering if we could get a release.

Hey! I haven't tested it, but there also haven't been any complaints 😉
If you don't mind, I'd like to wait for #74 for a bit before I put out the next release.

Should be out now - have fun! 🙂


Add HSPsquared

Insert URLs to the project here:
https://github.com/respec/HSPsquared

[x] The projects is active, documented, open source licensed, shows usage from external parties and is directly targeting environmental sustainability. Find more details in the Contribution Guide.

All issues labeled as 'Good First Issue' of the project listed on OpenSustain.tech will be visible on ClimateTriage.com. This is a great way to welcome new community members to your project.

@PaulDudaRESPEC @ptomasula @aufdenkampe

@Ly0n, thank you for including this project!


Defect - Image redactor occasionally creates an additional trailing bounding box

Describe the bug
Image redactor occasionally creates an extra bounding box for the word following the PII text. This occurs when the PII text consists of more than one word and the preceding word is longer than the following word.
For example, in the image below, the name on first line is incorrectly redacted, whereas it is incorrectly redacted in the first line. Because "Jessica" is longer than "Smith", the following word "lives" is also redacted. However, since "Constantine" is longer than "John", the error does not occur.

To Reproduce
Steps to reproduce the behavior:

Create a text document with PII text (e.g. names). Ensure there are examples where the PII text has more than one word, and the last word being shorter than the preceding word.
Convert the text document into an image (e.g. using snipping tool)
Pass the image in step 2 into the Presidio image redactor.

Expected behavior
The image redactor should only redact the PII text and not any of the adjacent text.
Screenshots
See above.
Additional context
The bug can be found in the static method "map_analyzer_results_to_bounding_boxes" in the image analyzer module. The "pos" increment at the end of the "while" loop should use the length of the previous word, not the current word.

Thanks @rakan41. Any contribution would be greatly appreciated.

Updated code so that the bounding box is incremented by the current word length, rather than the next word. Seems to have fixed the issue for the above sample.

Note the following changes after code change:

"lives" on first line no longer is redacted.
"London" is now redacted on second line.
Both of these changes are expected behaviour.


cli: provide environment override capability

Description:
Provides the capability to override default namespace
and commands in osm cli. This is required to provide
a better experience of osm cli in managed environments,
where users can be advised to use a config file to to override
defaults.
It works as follows:

If osm config file is present, either in $HOME/.osm/config
or specified via the OSM_CONFIG env var, this file will be
used for environment defaults. This works similar to
KUBECONFIG where the env variable overrides the static
file if present.
If osm config file is not present, defaults values are
used for the environment configurations.
If the install kind is set to managed in the config file,
then install/uninstall/upgrade/dashboard commands which
are only meant for self-hosted environments are disabled.

Part of #3978

Testing done:

When no config file is specified via OSM_CONFIG env var or $HOME/.osm/config:

$ osm env
---
install:
  kind: self-hosted
  distribution: ""
  namespace: osm-system

$ osm -h | grep osm-namespace
      --osm-namespace string   namespace for osm control plane (default "osm-system")

When OSM_CONFIG env var is used to specify a config file:

$ cat /tmp/osmconfig.yaml
install:
  kind: managed
  distribution: AKS
  namespace: kube-system

$ OSM_CONFIG=/tmp/osmconfig.yaml osm env
---
install:
  kind: managed
  distribution: AKS
  namespace: kube-system

$ OSM_CONFIG=/tmp/osmconfig.yaml osm -h | grep osm-namespace
      --osm-namespace string   namespace for osm control plane (default "kube-system")

When $HOME/.osm/config is present and OSM_CONFIG env var is not set:

 cat ~/.osm/config.yaml
install:
  kind: self-hosted
  distribution: Kind
  namespace: osm-system

$ osm env
---
install:
  kind: self-hosted
  distribution: Kind
  namespace: osm-system

$ osm -h | grep osm-namespace
      --osm-namespace string   namespace for osm control plane (default "osm-system")

Affected area:

Functional Area

CLI Tool
[X]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project? no

Did you notify the maintainers and provide attribution?

Is this a breaking change? no

I feel the solution is coupled with how a managed environment works. Suppose we have another managed environment using a new way of automation, we then need to provide more options.
But for now, this is the way to go.

I feel the solution is coupled with how a managed environment works. Suppose we have another managed environment using a new way of automation, we then need to provide more options.
But for now, this is the way to go.

I don't understand this comment. If the install is managed (as specified in the config file), then there is no reason to give the users the option to install. What's the concern here?


Extension stays at 'Loading Continue server...'. on Ubuntu 22.04, python 3.10.6

This issue was reported by two users:

@simseb https://github.com/continuedev/continue/issues/300#issuecomment-1653050133
@cyril-schroeder-ox https://github.com/continuedev/continue/issues/300#issuecomment-1653566728

same for me, don't see any errors that looks related in the console.

same issues on macos

Sever can not run on MacOS.

@aston314 @bhaktatejas922 @sdwr An update for those watching this issue:

I'm working here on a solution to bundle the python code as an executable, which I expect to solve this issue
For the time being, I've added documentation here on how to troubleshoot this problem

Let me know if there are any updates on your end, and I'll send another message once packaging is ready!

@aston314 @bhaktatejas922 @sdwr Closing this issue, as we have since

Packaged the server to a consistent binary
Heard from Ubuntu+windows+mac users that it has worked
Included testing as a part of CI on Ubuntu+mac+windows

If for some reason there is still an issue, feel free to reopen this issue or create a new one


Number coerced to Int

With a schema using ID type, fetching a record via fetch coerces number type to Int.
Example query:
query PriceLists($maoId: ID) {
  priceLists(filter: {maoId: $maoId}) {
    nodes {
      id
      fromDate
      toDate
      active
    }
  }
}

variable:
{
  "maoId": 148
}

Fetching with:
const result = await PriceListsModel.fetch({maoId: 148})
Results in:
operationName: "PriceLists"
query : "query PriceLists($maoId: Int!) {
  priceLists(filter: {maoId: $maoId}) {
    nodes {
      id
      fromDate
      toDate
      active
      __typename
    }
    __typename
  }
}"

variables:{maoId: 148}

The coercion is probably made here: https://github.com/vuex-orm/vuex-orm-graphql/blob/544b2c91b8e5fbab74f329f7a1b8b0e1d005f1b7/src/graphql/query-builder.ts#L221-L222

Thanks for reporting, I will take a look :)

https://github.com/vuex-orm/vuex-orm-graphql/pull/33

@oligus I pushed a fix in this PR, could you test that via yarn link

@phortx Unfortunately, this did not work, it fails to get schemaField for the argument I guess?
if (signature) {
   const schemaField = Context.getInstance().schema!.getType(model.singularName).fields!
   .find(f => f.name === key);

   console.log('schemaField:', schemaField)
   console.log('args:', args)
   console.log('value:', value)

Yields:
schemaField: undefined
args: {maoId: 148}
value: 148

Could it be, that the type doesn't have a field of the name maoId and this is only used as argument?
In this case it gets somewhat tricky ...

Both yes and no. I have two separate fields, the priceLists field which I'm querying and the singular priceList field which is a field and a type.
The nodes in price lists are of type PriceList that doesn't seem to show up in the introspection.
PriceLists:
{
	"name":"PriceLists",
	"description":"Price list",
	"fields":[{
		"name":"count",
		"description":"Record count",
		"type":{
			"name":"Int",
			"kind":"SCALAR"
		}
	},
	{
		"name":"nodes",
		"description":"Records",
		"type":{
			"name":null,
			"kind":"LIST"
		}
	}],
	"inputFields":null
}

PriceList:
{
	"name":"PriceList",
	"description":"Price list",
	"fields":[ {
		"name":"id",
		"description":"Price list ID",
		"type":{
			"name":"ID",
			"kind":"SCALAR"
		}
	},
	{
		"name":"fromDate",
		"description":"From date",
		"type":{
			"name":"String",
			"kind":"SCALAR"
		}
	},
	{
		"name":"toDate",
		"description":"From date",
		"type":{
			"name":"String",
			"kind":"SCALAR"
		}
	},
	{
		"name":"musicUsageArea",
		"description":null,
		"type":{
			"name":"MusicUsageArea",
			"kind":"OBJECT"
		}
	},
	{
		"name":"priceRows",
		"description":null,
		"type":{
			"name":"PriceRows",
			"kind":"OBJECT"
		}
	},
	{
		"name":"active",
		"description":null,
		"type":{
			"name":"Boolean",
			"kind":"SCALAR"
		}
	}]
	"inputFields":null
}

I pushed a fix to the PR for the case that an argument is not in the fields. But I don't think that will help you alot in this case because there seems to be an "error" in the schema. The Type of PriceLists should be a PriceListConnection. This may be confusing the plugin, because it expects those query fields to be of a Connection type.
When you take a look in the file mock-data.js you see an example introspection result which is the expected layout of a schema with Connection and Filter Types. This is generated by a real GraphQL Server.
(OffTopic: This mock response will be replaced by a real graphql server in the future)

Thanks!
It worked out, as you can see the query correctly identifies the type:
query PriceLists($maoId: ID!) {
  priceLists(filter: {maoId: $maoId}) {
    nodes {
      id
      fromDate
      toDate
      active
      __typename
    }
    __typename
  }
}

variables: {maoId: 148}

Wow! Nice :)
I'm surprised that this plugin works at all without having Connections in the Schema :D This will cause the auto detection of the connection query mode to fail, which is ok, but I thought there would be many other issues. I'm happy to hear that this is not the case :)
I will release a new version in a few minutes :)

Published 1.0.0-rc.9


Add support for cssFloat

When using postcss-js it transforms float to cssFloat, currently styletron doesn't handle that.

Interesting! I did not know about cssFloat before. It seems both Chrome and React both support float style properties, not just cssFloat.
I'm somewhat hesitant to add this functionality due to the potential performance overhead for a rare use-case, since it seems to me most of the time developers will use float in their object literals and hyphenate-style-name is a very hot code path.
I actually somewhat take issue with this functionality in postcss-js, since it's designed to work with React and CSS-in-JS libraries, not bona fide inline style property manipulation. Since it supports media queries and pseudo selectors (like most CSS-in-JS libs) compatibility with inline style property getter/setters gets thrown out the window (which is the source of thecssText quirk). I think ideally postcss-js should change it's behavior.

I did not know about cssFloat before

Me neither to be honest!

I actually somewhat take issue with this behavior in postcss-js, since it's designed to work with React and CSS-in-JS libraries, not bona fide inline style property manipulation

Yeah, maybe.
React supports cssFloat though. Here are some PR's for reference.
https://github.com/facebook/react/pull/6133
https://github.com/postcss/postcss-js/issues/11
I'll create an issue for postcss-js repo as well.

It seems that postcss-js isn't interested in changing it's behaviour. Since you implemented a cache, do you stil think it's to expensive to add an if statement for cssFloat?

Middlewares will solve this.