text:
Feature request: option to generate migrations for trigger creation

It looks like django-pgtrigger currently works by creating or replacing any missing triggers when the app starts up (correct me if I'm wrong) rather than creating triggers using explicit migration scripts.
This makes me nervous, because of the way it could interact with historical data migrations.
My projects tend to make extensive use of data migrations. I often have a migration that creates a table, then a separate migration that populates that table with a core set of key records - for things like feature flags or other configuration-style data.
When I run ./manage.py migrate in a new environment it may churn through dozens of migrations to create tables, populate them with data, update that data later in the migration sequence and so on.
Here's the problem: if any of those rows are affected by triggers (for denormalized columns for example) I need to execute the historic version of that trigger for that point in the migration history - NOT the most recent version if the trigger which may be incompatible with that historic table layout!
It's not mentioned in the documentation and an initial review of the code didn't spot anything, hence I'm classing this as a feature request: I would really appreciate the option to use this package in a way that can code generate SQL for creating triggers that I can include in a standard Django migration.
Even better: a management command that generates the appropriate migration file for me!
I've only just started looking at this project so it's very possible there is historic context I'm missing about this problem.

it looks like all of the pieces are there for me to implement this myself for my project: I can set PGTRIGGER_INSTALL_ON_MIGRATE = False and then reuse the code here to generate the SQL needed to install a trigger using a migration:
https://github.com/jyveapp/django-pgtrigger/blob/588bfcc650e7082f9158582e4b0375ac0b8b9b4b/pgtrigger/core.py#L644-L658

"It looks like django-pgtrigger currently works by creating or replacing any missing triggers when the app starts up (correct me if I'm wrong)" - they are created in post_migrate, or manually via the management commands. So for a new environment, it is "okay" in terms of not having an invalid trigger halfway through, but not okay if you require the trigger along the way to fill in the data, as you say.
This kind of thing was previously mentioned in this ticket: https://github.com/Opus10/django-pgtrigger/issues/7 which was said to be fixed by the management command to disable/reenable individual triggers. But I don't think those really do solve it; I can't see us in production being able to disable a live trigger for a length of time.
I agree, ideally, when makemigrations is called as well as the extra Event models being added, the relevant trigger should be added then, rather than in post_migrate. I have this function:
def add_triggers(apps, schema_editor):
    from pgtrigger.core import registry
    app_label = 'app'
    models = ['ModelA', 'ModelB']
    for uri in registry:
        for model in models:
            if uri.startswith(f"{app_label}.{model}:"):
                cls = apps.get_model(app_label, model)
                trigger = registry[uri][1]
                trigger.install(cls)

Which I think might work, added to any migration that needs to update a trigger? Not ideal having to manually think when it's needed, but might deal with the issue if it works.

@dracos @simonw
By default, all triggers are installed/updated/deleted at the end of migrations in a large syncing operation. As mentioned, this can be turned off via settings.PGTRIGGER_INSTALL_ON_MIGRATE You can also use pgtrigger management commands to install or update triggers instead of going into library code. This, however, does not get around the problem you brought up @simonw of having the historical triggers installed and running, which is an obvious problem. And yes @dracos, disabling a trigger was just a bandaid to that particular problem.
Triggers in migrations
I agree that the optimal approach for installing triggers is to make it part of the Django migration system. When I originally created this library, I wanted triggers to be declared in the model Meta (I couldn't find a way to extend Meta) and work with migrations automatically. Here are some of the problems I've faced:

I found no easy way of hooking into the migration system. While it's pretty easy to auto add migrations for new custom fields and stuff, I never found the ability to hook into it in a completely custom way for triggers so that it just works automatically as you change your trigger definitions. I should revisit this again now that the library is in a more polished state. If you know of any apps that do this outside of normal fields, indices, and DB extensions, do let me know so I can see how they do it. Triggers seem to be a bit of a different beast that might require a monkeypatch or other means to work with the migration system.

It is common to attach triggers to the Django User model and other third-party models, especially if you are using django-pghistory. Needing to integrate with third-party models also made an integration with the migration system a bit unclear. I register my third-party triggers in an apps.py in my project, so would migrations be placed inside of the app with the apps.py?

For 1 - I believe it is possible to have a pgtrigger command that manually makes data migrations, and ideally these data migrations have both forwards/backwards code that is a snapshot of the raw SQL of the trigger at the time. This would make it much easier to address https://github.com/Opus10/django-pgtrigger/issues/29 too. If there is the ability to integrate with makemigrations and do this automatically, that would be great, otherwise I will probably need to at least print a warning at the end of post_migrate that a user needs to create trigger migrations. Open to ideas, but there are a lot of unknowns before being definitively able to say which interface is best.
For 2 - I will have to check, but I believe it should be possible to determine which app a trigger registers itself in so that I can make the migrations in the proper directory when overriding third-party models. Either this or I could make users define a proxy model to add a trigger to a third-party model. If anyone knows of ways to directly integrate with Meta, that would be great too, but I remember it being an unexpectedly long rabbit hole the first time I tried.
Another weird edge case related to order of operations - if a trigger has a condition on model fields, and the model fields are dropped in a migration before the trigger is updated, I believe that this will just result in an outright error (and same for vice versa). Although possible to implement, it's edge cases like these that make it difficult to have something that just works. I think the ideal solution will probably end up being something that is a little more on the manual side for now and for the users to know how to resolve errors if things are installed out of order
Next Steps
I think this is a big enough issue for new and potential users that I (or @tomage) should prioritize how to best add this in. This is something I won't even be able to look at until Aug 14, but I put it on my calendar that weekend to set aside time to really investigate the possibilities. If you all have any suggestions, do let me know! @tomage and I are also going to be better about more frequently checking and responding to issues weekly too. We recently migrated this project to a different open source org so that it was no longer tied to a company. We are always welcome to other contributors and maintainers at Opus10 if there are others that are really into triggers like we are :) (We are working on a MySQL version too)

I looked into the possibility of integrating django-pgtrigger directly into the migration system. It is doable, although a bit hacky as expected. I will likely have to patch the core migration loader. I was able to get an example version of code working that just created operations.RawSQL migration operations for installing the entire raw SQL that django-pgtrigger typically performs behind the scenes. I still need to evaluate how I will be able to query previous migrations to get the raw SQL of previous trigger declarations. This will allow me to more easily make reversible RawSQL operations. Should be doable though, just need a bit more time to explore.
Although I think I can make things work most of the time, there are particular scenarios  that might be tricky to always get right. For example, if a user adds columns and references them in a trigger, we should create/update the trigger in the migration file at the end. I can't think of any examples where the trigger needs to be updated before the operation, but my hunch is that there are some options
Since ordering of the trigger installation is dependent on other operations, one easy way to alleviate these issues would be to drop/recreate the trigger in the migration file by default by surrounding all operations:
[
    migrations.RawSQL('drop trigger...', reverse_sql='create trigger with OLD definition'),
    migrations.RemoveField(
       model_name='journal',
       name='action',
    ),
    migrations.RawSQL('create trigger with new definition', reverse_sql='drop trigger')
]

If I always surround the migration operations with a drop/create for trigger changes, it seems to alleviate most issues that happen as a result of columns, table names, and other things changing.
Since Django makes migration files atomic by default, all I need to do is ensure that the initial trigger operation will take out a lock on the table so that no updates happen while the trigger is dropped. In theory, this should work for the vast majority of use cases when people make migrations. Of course there are some people that may need to put atomic=False in their migrations, and they may even try to do data migrations in the middle of a migration file like this. This is the problematic scenario where I would need to inform users that triggers may not actually be enabled during their migration.
It's basically either:

drop trigger, perform all normal migration operations (if there are any others), install any trigger updates.
perform all normal migration operations (if there are any others), and then update the trigger in place if it has also changed.

For 1), you get the caveat as outlined above. For 2), the ordering of when the trigger is updated may result in errors that may require the user to re-order the operations in their migration file.
I'm still leaning towards 2, but I need to think about it a bit more.
Will keep this thread updated on progress. I will visit this problem again in a week. @tomage or @simonw let me know if you have any thoughts!

@wesleykendall yeah so support for extending migrations is on my wishlist for Django. A few years back I also looked into this and came to the same conclusion that patching was the only way forward, which I was unhappy with. See https://github.com/shangxiao/django-db-constraints/blob/master/django_db_constraints/apps.py for how I did it 😕  (In my case I patched both migrations & the model meta state as I wanted to keep my db declarations alongside other model meta information)

@shangxiao wow thanks for the tip! I will certainly look into that, especially if I can register things in the Meta options too.

I looked into the possibility of integrating django-pgtrigger directly into the migration system. It is doable, although a bit hacky as expected. I will likely have to patch the core migration loader. I was able to get an example version of code working that just created operations.RawSQL migration operations for installing the entire raw SQL that django-pgtrigger typically performs behind the scenes. I still need to evaluate how I will be able to query previous migrations to get the raw SQL of previous trigger declarations. This will allow me to more easily make reversible RawSQL operations. Should be doable though, just need a bit more time to explore.
Although I think I can make things work most of the time, there are particular scenarios that might be tricky to always get right. For example, if a user adds columns and references them in a trigger, we should create/update the trigger in the migration file at the end. I can't think of any examples where the trigger needs to be updated before the operation, but my hunch is that there are some options
Since ordering of the trigger installation is dependent on other operations, one easy way to alleviate these issues would be to drop/recreate the trigger in the migration file by default by surrounding all operations:
[
    migrations.RawSQL('drop trigger...', reverse_sql='create trigger with OLD definition'),
    migrations.RemoveField(
       model_name='journal',
       name='action',
    ),
    migrations.RawSQL('create trigger with new definition', reverse_sql='drop trigger')
]

If I always surround the migration operations with a drop/create for trigger changes, it seems to alleviate most issues that happen as a result of columns, table names, and other things changing.
Since Django makes migration files atomic by default, all I need to do is ensure that the initial trigger operation will take out a lock on the table so that no updates happen while the trigger is dropped. In theory, this should work for the vast majority of use cases when people make migrations. Of course there are some people that may need to put atomic=False in their migrations, and they may even try to do data migrations in the middle of a migration file like this. This is the problematic scenario where I would need to inform users that triggers may not actually be enabled during their migration.
It's basically either:

drop trigger, perform all normal migration operations (if there are any others), install any trigger updates.
perform all normal migration operations (if there are any others), and then update the trigger in place if it has also changed.

For 1), you get the caveat as outlined above. For 2), the ordering of when the trigger is updated may result in errors that may require the user to re-order the operations in their migration file.
I'm still leaning towards 2, but I need to think about it a bit more.
Will keep this thread updated on progress. I will visit this problem again in a week. @tomage or @simonw let me know if you have any thoughts!

Continuing from the example above:
[
    migrations.RawSQL('drop trigger...', reverse_sql='create trigger with OLD definition'),
    migrations.RemoveField(
       model_name='journal',
       name='action',
    ),
    migrations.RawSQL('create trigger with new definition', reverse_sql='drop trigger')
]

What about if instead of this, the RemoveField class is subclassed so that the database_forwards/database_backwards methods apply the appropriate in-place trigger update? The resultant migration file would then simply be the regular RemoveField operation with the trigger handling encapsulated inside that operation.
I think the advantage of this would be that since the RemoveField operation is already a locking one, you could wrap the database_forwards/database_backwards methods in the subclassed RemoveField in an atomic transaction (alongside the trigger operations) at no extra cost (i.e. the user would not need to worry about declaring atomic=True at the migration file level and the fact that the operation locks anyway means there would be no functional difference by adding in another trigger operation as part of the locked transaction). This would seem to solve the main issue with solution (1) above if I understood correctly.
This is all pretty theoretical and I haven't tried it in practice, but I was wondering if this idea had been explored at all?

@shangxiao and others. Update here -
I've successfully integrated triggers with migrations in a test app. What I did was simply treat triggers as constraints and then fill in all of the methods constraints use to interact with the migration system (deconstruct, create_sql, etc).
So far things work well, but I still have a lot of testing to go. I'm also planning a way for users to still be able to register triggers on third-party models and have that work with the migration system too.
@shangxiao, I'm assuming that your app you made was before django introduced constraints, otherwise you would have been able to just make a Constraint class for those composite foreign keys and other things, right?

Deployed in version 3. See https://github.com/Opus10/django-pgtrigger/issues/67 for notes on how to upgrade!

authors: PaulGilmartin dracos shangxiao simonw wesleykendall


text:
ords.war error/fail

Hi,
I came across an issue that halted installation:

I have answered yes and started the installation again and typed no and both options result in a the system rebooting shortly after - I am never prompted to input options for the ords configuration.
Any ideas?
Thanks.

ords.3.0.5.124.10.54.zip btw!

@daisthorpe what OS are you running?

@martindsouza thanks for the reply, hopefully this should do the trick:
NAME="Amazon Linux AMI"
VERSION="2016.09"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.09"
PRETTY_NAME="Amazon Linux AMI 2016.09"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2016.09:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
Amazon Linux AMI release 2016.09
cpe:/o:amazon:linux:2016.09:ga

source: gharchive/issue

authors: daisthorpe martindsouza

repo: OraOpenSource/OXAR

license: mit

license_type: permissive

license_source: bigquery


text:
Move off glitch

We should move this off of glitch and onto our static server. That way we don't have to worry about startup time and it should always be available.
We'll want to provide some way of redirecting to the new URL through the current glitch address though.

301'd and done :)

Thanks for closing this!

authors: AetherUnbound spdconvos

license: MIT

license_source: github-api


text:
Filters not being applied in correct order

I recently needed to add a filter to a project in order to add a parameter to the output cache key. The filter implemented FilterProvider and IActionFilter, and the module that included it was set to be dependent on Orchard.OutputCache, since the filter needed to be applied before the OutputCacheFilter. The comment in OrchardFilterProvider states that filters with more positive order values should be applied first, but the ASP.NET documentation states that the OnActionExecuting methods are applied from lowest to highest order. My filter is given an order of -1 in OrchardFilterProvider, so it is executed last.

The comment from the OrchardFilterProvider is probably about the Priority property from the Modules.txt file, and not the MVC one. This way you can also remove the dependency, as I think it will have the opposite behavior.

authors: ryanwawr sebastienros

repo: OrchardCMS/Orchard


text:
Projection should support NULL and IS NOT NULL filters for DateTime? columns

Currently there is no way to generate a MyField IS NULL or MyField IS NOT NULL query condition in Orchard.Projections.
Filter editor should be extended to allow a selection of not null and is not null.

Could you maybe provide a use case scenario where you want to use this condition?

@sfmskywalker I created a ValidityPart which provides 2 properties: ValidFrom and ValidTill. Both properties are declared as System.DateTime? to make these 2 values optional (related issue #6966). Due to the fact that these properties are optional and i want to have a list of valid content items i created a projection query with the following conditions:

ValidFrom LessThanEquals Token Date.Local.Format:<formatString> (related token issue #6963)
and
ValidTill GreaterThanEquals Token Date.Local.Format:<formatString>
or
ValidFrom LessThanEquals Token Date.Local.Format:<formatString>
and
ValidTill IsNull
or
ValidFrom IsNull
and
ValidTill GreaterThanEquals Token `Date.Local.Format:
or
ValidFrom IsNull
and
ValidTill IsNull

Hope this helps.

I second this. It would be very useful for me too.
My scenario is a list of Events where you don't need to specify a fixed date.
Nonetheless I want to create a projection for certain events with a valid date in the future.
Does the PR linked above resolve the issue? If so, can you merge it into the 1.10.x branch?

@Xeno Yes, i think the PR solves your valid date issue.

PR accepted, issue closed.

authors: ViRuSTriNiTy Xceno sfmskywalker


text:
Refactoring Content Management for async operation

This is an issue created for an already submitted PR that aims to convert Content Management (and everything that uses it) for async operation: #5324

PR not accepted, see explanation there: #5324


text:
Pipeline functionality with 3d step?

Came across this when looking for libraries for a small project I want to work on.  I'm pretty new to Unity and obviously this looks like a great choice.  I'm curious that if I get things working in the 2d world, if it would be easy enough to add in a 3d step to give the  generated areas/meshes a height?
For example:

adding mountains around the edges
rivers along some of the area connections
etc

or if this would require more additions/implementations of what there is now?  Or if this just isn't possible given that the WorldMap drawing is entirely 2d based?

Hi! Thank you for checking out my little library here. So exciting that someone wants to use this code!
Depending on what you are trying to-do with 3d, it's definitely possible! Currently, what it supports is to use 3d objects (or any sort of objects) in the recipes that instantiate the 2d shapes after the pipeline is run.
In the example I provide for the forest level, you can also see that the trees and stones are just 3d models.
So if, for example, you wanted to add a mountain range around the edges (of the areas? Or map?) I suppose you could use a new recipe that does this with the area.
I could however see how that can be quite complex with the current setup.

I'm curious that if I get things working in the 2d world, if it would be easy enough to add in a 3d step to give the generated areas/meshes a height?

The generated meshes right now are just a flat plane, if it would need more code to make a 3d mesh, as the mesh would need side panels and a floor. You can see the AreaMeshRecipe Code is the one that is used to create the flat planes https://github.com/OrganicaWild/OrganicaWild/blob/master/Framework/Pipeline/Standard/ThemeApplicator/Recipe/AreaMeshRecipe.cs
It would need some sort of Recipe which, instead of transforming the 2d polygon into a flat plane, transforming it into a 3d mesh with height.
However, the library doesn't really provide functionality for creating 3d meshes right now.
Maybe you could provide a little sketch on what you are trying to achieve specifically, as right now I am just kind of guessing. I would love to help you!

Essentially I'm just looking for a project to get me doing something in Unity.   I had two goals:

Create a vanilla proc gen mini putt game to play with my son.   The library looks perfect for that, as it would be:

Generating areas
Picking a couple joined areas
placing walls on the edges
placing a "hole"
placing some random objects

Once I got a little bit under my belt, I wanted to try a single hole, for something like a par 3 closest to the pin/hole in one competition.  Again the 2d portion is pretty straight forward:

generate the areas
pick an area for the green
pick an are for the tee
place the objects

The last step of this would be to apply heights:

pull edges down to make creeks
raise edges up to make hills
etc.

With regards to the recipes and the mesh creation, I think I have a basic handle on how to do this (obviously pulling it off will be different).
The key class i see is GameObjectCreation where it mainly handles the flipping from Y to Z, which is static, so the usages cannot be injected.  This is (if I'm reading this properly) the one spot where it may get held up.

Ah, okay, I see. Cool that you are getting your hands on Unity. I like it and it can be very fun! I hope you can create cool things, like that putt game you are describing!
I am very confident that creating what you describe in point 1) and 2) is definitely possible with the pipeline.
And the generation in 3) could be done with the recipes. You would however have to code your own recipes.
I did a little sketch on what i would do. Maybe it can help you :)

As for the flipping, I just checked the code in the GameObjectCreation Class, and it looks like the flipping is not hard coded but actually configurable.
GameObjectCreation.YtoZ = true //default is false
GameObjectCreation.GetMeshesFromPolygon(polygon)

It's not a perfect interface. It is a bit state-machine like, but I think it can get the job done, for that specific parameter.

Right on thanks. I'll close this for now and maybe follow up with any specifics that come up when I get to building.

authors: cvoegele kenjdavidson

repo: OrganicaWild/OrganicaWild


text:
Add Inventory management

Pending things:

[x] Add tests
[x] Increment stocks on order cancelation and rejection

@franckc Have added some tests and addressed most of your comments other than the status column

source: gharchive/pull-request

repo: OriginProtocol/dshop


text:
Outdated copy on mobile modal

The mobile modal has copy that is a bit outdated.  Toshi has been aquired/renamed Coinbase Wallet and I believe all development has ceased on Cipher browser since April 13.  Not sure if we want to include that one or not since there is no active development to fix bugs and help with security issues.
Additionally, we could possibly include https://status.im since they now include a mobile DApp browser.
Screenshot:

This has been fixed.  Thank you @micahalcorn.

repo: OriginProtocol/origin-dapp


text:
Analyse impact of OZ security advisory - Governor proposal creation may be blocked by frontrunning

Open Zeppelin has issues the following security advisory:

Governor proposal creation may be blocked by frontrunning

Affected packages: >=4.3.0 <4.9.1
Patched version: 4.9.1
Origin's ousd-governance repo is using OZ v4.6.0.
A modified versions of the OZ Governance contracts are being used.
Analysis needs to be done to see if the OZ change needs to be applied to the modified Origin governance contracts.
OpenZeppelin commit that addresses the issue: https://github.com/OpenZeppelin/openzeppelin-contracts/commit/d9474327a492f9f310f31bc53f38dbea56ed9a57

Added the commit that addresses the issue to above description

The analysis:
Our Governance contract that calls propose  imports GovernorCompatibilityBravo. That one imports OZ's 4.6.0 Governor.
This means that our proposal creations could be front-run. Until we upgrade the contracts to 4.9.1 we are vulnerable to the attack.

We will need to re-deploy the Governance contract:

repo: OriginProtocol/origin-dollar


text:
🛑 Carding Store is down

In 8c11df0, Carding Store (https://carding.store) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CardingStore is back up in 580d593.

repo: OsintUK/Up-or-Down


text:
🛑 ComboList is down

In 6342a8e, ComboList (https://combolist.top) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Combo-List is back up in 5741b76.


text:
🛑 ComboList is down

In 3a61b03, ComboList (https://combolist.top) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Combo-List is back up in 90af3b3.


text:
Warning: this project appears to have blatantly ripped off the work of researchers over a year on a new multi-modal model, Atlas-1, and is attempting to scam open source devs into doing that work

Re-opening @michaelhhogue  are you an official contributor to this project? Could you comment on where the name Agent-1 came from? This appears to have blatantly ripped of the work of researchers working hard over a year.
Any open source contributors should consider that this firm raised millions and is scamming open source devs into stealing work for them. They never responded to our claims they stole this work, even down to the name agent-1, which is incredibly shameful if true and our attorneys would love to hear from an official contributor.
We will be publishing our solution open source as well, and here is Atlas-1, which we've been training for over a year and published last month: https://youtu.be/IQuBA7MvUas
What is Agent-1 and where did the name come from? It appears these guys blatantly ripped off our work and are now scamming open source devs into copying it for them.

@rohanarun I'm just an open-source contributor helping to triage issues. This framework provides in interface to GPT-4v from OpenAI, allowing it to in-directly control the computer via its text responses. If you have an issue with that isn't directly related to this repository, you need to contact the owner regarding your concerns rather than opening Issues and harassing other contributors. Thanks.

@rohanarun I'm just an open-source contributor helping to triage issues. This framework provides in interface to GPT-4v from OpenAI, allowing it to indirectly control the computer via its text responses. If you have an issue with that isn't directly related to this repository, you need to contact the owner regarding your concerns rather than opening Issues and harassing other contributors. Thanks.

Wow, but what gives you the right to steal our work? That's incredible and this is pretty blatant. The owners don't seem to respond to the claims so we are warning open source devs not to get taken advantage of. If they stole our work before we even open sourced it, how do you think they treat open source developers?

@rohanarun
I'm not a contributor to this github, just part of the audience usually, but this seems earlier than your thing. Early August is when this article came out, so it's been in the works even earlier than that. Stop spamming every issue

@rohanarun I'm not a contributor to this github, just part of the audience usually, but this seems earlier than your thing. Early August is when this article came out, so it's been in the works even earlier than that. Stop spamming every issue

Our project was started in July 2022 before the chatGPT API was released, including public publications which we freely gave out and we intend to open source. What's concerning is they continue to steal the work without attribution. It took a year to train our new multi-modal model, and we've been working on agents since this post in July  We've been working on this for over a year and we called them out on copying our launch in April as well, and our community has been aware of atlas-1: https://www.producthunt.com/products/cheat-layer#project-atlas-agents
https://www.producthunt.com/products/cheat-layer?utm_source=badge-top-post-badge&utm_medium=badge#cheat-layer

@rohanarun
Damn. Didn't know that it's been happening even earlier than that. I don't see the calling them out part though. Still, I wish you good luck with your work if this is plagiarism. At this point, since this is already open sourced, it's going to be tough

@rohanarun make your repo open source and we will also contribute to it :))
500 lines of shit code was your research it's wired.
It got 4k star because of YouTubers . And they also introduce this library for more view , AI is trend :))
More view more money.

It doesn't matter. We know we have created a monster. Only the most determined can witness this very moment.

very

I wish you good luck, but you won't win this race with hard coded clicks.
We're open sourcing an entire desktop application that actually works in Windows/Mac/Linux, and generalized agents using a new multi-modal model we trained to get precise clicks. Our Google demo uses a state machine and probabilities to solve it in a generalized way, but we have many more complex examples now that are mind blowing, including generating products. We didn't steal our research, and we'd be happy to share our significant progress with anyone interested in joining us. If you're truly interested in this idea, we're the bootstrapped startup that started during the pandemic to help everyone who was suffering rebuild online. This appears to be a well funded company ripping off startups and open source devs to do the work for them.

Where can I use Atlas-1 or Atlas-2？

here after their new scam lol

Maybe more people should check this out after the reflection thing.

repo: OthersideAI/self-operating-computer


text:
Project refactor for improved development

Hi there,
First and foremost, thank you for your effort on creating this! It has very good potential as shown by it's immediate popularity!
I have forked this project to start by cleaning up the code organization in efforts to make navigating the current solution much easier. Additionally, I am swapping the use of the argparse library in favor of click which has an overall more elegant approach and more feature-rich solution. I also intend to make some minor improvements such as automatic resolution detection among other things. Additionally, this comes with a very basic framework I have been using in projects for provide a standardized approach to app configuration through both file and environment based configurations very similar to what you already have done, but improved upon.
Would you be interested in merging this as a PR once I am finished? I can even look at merging some of the open PRs are that simple downstream so that you could by-pass that work as well. The progress may be viewed on my fork under the feature-codebase-refactor branch found here.
Thank you in advance for your consideration!

@AzorianMatt Thanks for this fork! Please keep in mind that we're trying to keep all of the code in main.py until it reaches 1,000+ lines, as mentioned in CONTRIBUTING.md.
However, this project structure could be very beneficial once that point is reached!
If you find click to be a better solution than argparse and find that it adds considerable value to the project without adding too many lines of code, definitely feel free to open a PR for it!

@michaelhhogue Thank you for the fast response!
Duly noted on the line total requirements, I didn't catch that when reading the contribution guidelines! My only thought on that and others may or may not share this sentiment, is that even at it's fairly short amount of lines currently, it still makes a bit difficult to navigate and learn. I'm one of those devs that read better with a structured system of files than a single flat source. Just something to consider perhaps in terms of reducing barrier to entry. Additionally, this approach is cleaning up a lot that lacks static references which we all know can ultimately lead to pesky bugs.
As far as click goes, it's another usability / barrier to entry thing where the automatic help prompts and overall feature set leads to a better outcome than argparse IMO. I started in Python using argparse, but quickly found it not as valuable once I discovered click.
I'll post updates here once I have my initial pass done, and leave it to you to evaluate if you find any value added.
Thanks again @michaelhhogue!

PR put on hold, closing the issue.

authors: AzorianMatt michaelhhogue


text:
Deep Velodyna Carp not present in the db

Deep Velodyna Carp is not found anywhere. (The Velodyna River, part of "A Rousing Reunion" lvl63 FSH quest)

Nevermind, it's not present in fish guide...

repo: Ottermandias/GatherBuddy


text:
Cookiecutter update, support Python3.12, drop Python3.8

Pull Request Checklist:

[ ] This PR addresses an already opened issue (for bug fixes / features)

This PR fixes #xyz

[ ] (If applicable) Documentation has been added / updated (for bug fixes / features).
[ ] (If applicable) Tests have been added.
[ ] CHANGES.rst has been updated (with summary of main changes).

[ ] Link to issue (:issue:number) and pull request (:pull:number) has been added.

What kind of change does this PR introduce?

figanos now supports Python3.12 and no longer supports Python3.8
Updates the template to the latest commit
GitHub Workflows now point to commits rather than tags
Dependabot will now only update on a monthly schedule
Dependencies have been updated and synchronized
twine and wheel have been removed (redundant)
Added a CODE_OF_CONDUCT.rst file adapting Contributor Covenant v2.1

Does this PR introduce a breaking change?
Yes.

cartopy pin has been raised to v0.23.0 due to a licensing issue
The maximum supported version of Python has been raised to 3.12 (expanded dependency support).
The minimum supported version of Python has been raised to 3.9 (due to cartopy).
CHANGES.rst is now CHANGELOG.rst
The package now uses a src layout in lieu of a flat layout
Maintainer-specific directions are now found under releasing.rst

Other information:
https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/
https://keepachangelog.com/en/1.0.0/

The import inside figanos docs are not working.
How should we adjust imports with the src directory (it seems like it might also be the init.py that are not working)

@sarahclaude
It looks like we're using absolute paths:
with open(str(Path(os.getcwd()).parents[1])+ "/figanos/data/ipcc_colors/variable_groups.json") as f:
    var_dict = json.load(f)
for f in np.sort(glob.glob(str(Path(os.getcwd()).parents[1])+ "/figanos/data/ipcc_colors/continuous_colormaps_rgb_0-255/*")):
    name=Path(f).name.replace('.txt','')
    ...

Would it make sense to expose these files using a function?

Sure, we could!
def get_mpl_styles() -> dict[str, str]:
    """Get the available matplotlib styles and their paths, as a dictionary."""
    folder = pathlib.Path(__file__).parent / "style/"
    paths = sorted(folder.glob("*.mplstyle"))
    names = [str(p).split("/")[-1].removesuffix(".mplstyle") for p in paths]
    styles = {str(name): path for name, path in zip(names, paths)}

    return styles

Is this alright due to using Pathlib instead of os.getcwd()?

I'm almost done with a Pull Request based off this branch. Will propose something very soon.

@Zeitsperre I'm just curious, could you say a bit more on the advantage of using a src layout ? Aee you planning on changing the layout of xscen and xlim as well ?

Sure, the primary benefit is that in order to test the library, it must be installed (you can run pytest on non-installed libraries if the folder structure is flat). This makes it so that testing occurs on the library in a typical configuration.
The other benefit is that if let's say we wanted to offer two installable modules for our package, we can do that very easily (they would both live in /src).
pyOpenSci recommends that packages use a /src layout, and many of the major packages in the standard library are also moving to this layout style as well to simplify development/configuration (see: https://hynek.me/articles/testing-packaging/).

authors: Zeitsperre sarahclaude

repo: Ouranosinc/figanos


text:
Add datasets with tasmax / tasmin

It's been a couple times I would have liked to have datasets (at least two simulations) with tasmax, tasmin variables. Something like datasets in sdba (which have tasmax, pr).
Should I add new datasets with tasmax/tasmin, or update existing datasets in sdba with a 3rd variable?

How breaking of a change would it be to the existing SDBA tests? Would you be willing to update all associated tests?

As far as tests are concerned, I think only test_stack_variables would need to be changed.
Also, sdba{_advanced}.ipynb assume we only work with pr, tasmax, in this case I would propose to simply drop tasmin from the start and keep the same structure.

It's not really related to tests, so maybe I should avoid complicating the structure. I was just using this to test methods for R&D projects, so it's maybe not a real need for xclim_testdata.

I ended up downloading a few lon/lat points from datasets on the server. I would be happy to add tasmin datasets in the test datasets if we judge we should have this, but I'm not sure if this is necessary.
When checking if adding tasmin would pose problems with xclim, I realized that the datasets in xclim-testdata are intented for tests (duh), so my use case of trying methods for new bias corrections is not what we intend to cover with xclim-testdata (correct?). For instance, it would also have been useful for me to have access to radiation datasets, but I don't think we want this if we are to keep xclim_testdata minimal.
So, if you guys agree, feel free to close the issue, if not I can add the tasmin datasets.

Indeed, the point of this repo is mainly for testing. But I use it too for development as it gives an easy access to well-formatted data.
As for adding variables to the SDBA test datasets, I think it would make sense once we have multivariate methods to test. Currently, tasmin  would be no use because in an univariate context you could just do tasmin = ds.tasmax.rename('tasmin'). But in a mutlivariate context, it would be interesting to have "real-life" data with all the noisy correlation and other perks.

I think it would make sense once we have multivariate methods to test.

We do some multivariate tests in sdba.ipynb, but for now tasmax / pr is sufficient for our needs.

serves both the unit tests and the performance tests of xclim

This would be neither of those currently.

Unless you're adding a significant amount of data (>3 MiB would be significant)

Ok, yes I was thinking something the same size as the current sdba datasets. I'll go forward with this when I have a down time.

authors: Zeitsperre aulemahal coxipi

repo: Ouranosinc/xclim-testdata


text:
max_nday_precipitation_amount is not in the same file as max_1day...

I'm struggling a bit to find where are the functions. The percentile based thresholds are not in thresholds, but in multivariate. I understand the logic, but it's not intuitive. Frankly, I liked it better when all the indices were in the same big hunking file.

Also, I think we could merge these two functions into one.

In terms of restructuring, since the true locations of the functions are hidden from the user, we can rearrange them as we see fit without breaking the API. If it makes more sense to have them separated by variable (_precipitation.py, a larger _temperature.py`, etc.), we can implement that.

@Zeitsperre Could you move function "max_n_day..." to _simple.py ? That will do for now.

authors: Zeitsperre huard

repo: Ouranosinc/xclim


text:
[BUG] Failed to connect to flowty.io

link: https://www.flowty.io/

Test on iOS prod version 2.2.9(8).
Our app can only connect with flowty by js.
Failed to connect with flowty by wc.

Test on iOS prod version 2.2.10(10).
Can connect to Flowty by scanning the QR code with WalletConnect.
But failed to connect by click "flow wallet mobile" in ios internal browser. The demo video is attached below.
https://github.com/user-attachments/assets/7fc4bc4d-b1c4-4957-a2f4-944e8e7ed11f
@zhouxl @lmcmz Please confirm this is error in our side or flowty side.

https://github.com/user-attachments/assets/df9dbc96-da85-4336-a16d-7f51edad4f12

Investigation results:

Flowty continues to fail to connect over wallet connect.
Maybe Flowty is not using the latest version of FCL.

Next steps:

We can report this issue to the Flowty team, to see if they can update their FCL version.

authors: JeffreyDoyle Peppermint1020 zhouxl

repo: Outblock/FRW-iOS


text:
Fix deploy with corepack

Add corepack enable and package install before fly deploy in deploy job.

Closes #146

repo: OxfordRSE/gutenberg


text:
Genome Comparison: option to open image in a new tab

In the circular genome viewer, I can right click on the circular image and open it in a new tab, so that I get the full view and I can zoom in / out.
For the same circular view in the genome comparison viewer, when I right click, open image in new tab option is greyed out. Any idea how we can enable it?

There isn't currently a straight forward way to do this because there isn't a url request you can make to retrieve it.
On Jun 11, 2015, at 6:28 PM, mshukla1 wrote:

In the circular genome viewer, I can right click on the circular image and open it in a new tab, so that I get the full view and I can zoom in / out.
For the same circular view in the genome comparison viewer, when I right click, open image in new tab option is greyed out. Any idea how we can enable it?
�
Reply to this email directly or view it on GitHub.

How is it displayed in the browser currently?

The reason that this is disabled is because the image is inlined into the html output of the service. It is not directly linkable (aside from creating a download of that svg, which we do as a separate button).
On Jun 11, 2015, at 6:28 PM, mshukla1 wrote:

In the circular genome viewer, I can right click on the circular image and open it in a new tab, so that I get the full view and I can zoom in / out.
For the same circular view in the genome comparison viewer, when I right click, open image in new tab option is greyed out. Any idea how we can enable it?
�
Reply to this email directly or view it on GitHub.

@dmachi Can we switch this to new circular viewer?

Given we have the new view icon and ability to download SVG image, I think we can close this issue.

authors: dmachi hyoo mshukla1 olsonanl


text:
Richness / inwards integration

Epic to register the tickets related to the "Richness / inwards integration" objectives section the project has from the last SAB meeting.
The objective of the epic is to answer these questions:

What external datasources do we integrate?
What types of queries do we support via the Web Portal?
What types of queries do we support via the REST API?
What types of queries do we support now and were not able to support 6 months ago?
What was the driver behind choosing this set of queries?
What was the driver behind choosing those external data sources?

@zperova done

repo: PDCMFinder/pdcm-api


text:
Groundtruth dimension mismatched

Dear author,
Thank you for your great work. I am try to reproduce your result (MDF) with waymo and nuscenes dataset, but when merge two batches from waymo and nuscenes, error occurred:
batch = common_utils.merge_two_batch_dict(batch_1, batch_2)
File "../pcdet/utils/common_utils.py", line 670, in merge_two_batch_dict
batch_merge_dict[key] = np.concatenate(tar_list_merge, axis=0)
File "<array_function internals>", line 5, in concatenate
ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 2, the array at index 0 has size 10 and the array at index 1 has size 8
It seems the gt from nuscenes is mismatched with gt from waymo
Could you tell me how you avoid such issue?
B.R
Thank you

Thanks for your attention:
When performing the MDF setting, it is necessary that the GTs from both datasets (such as Waymo and nuScenes) are the same dimension. This bug is due to that the dimension of GTs for Waymo dataset is 8, while 10 for nuScenes dataset.
Trying to set the in PRED_VELOCITY: False in yaml file.


text:
🛑 Cuterwrite is down

In 67c0afe, Cuterwrite (https://cuterwrite.top) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cuterwrite is back up in 35dba11 after 1 hour, 9 minutes.

repo: PKUcoldkeyboard/upptime


text:
install.sh: use OR (||) switch for "docker compose" handling

Notes:
While testing on ubuntu vm the if command -v docker compose
logic was failing. Using the || switch works:
tested on macOS x86_64 and Ubuntu x86_64.

swapped the commands....


text:
#5 の発表内容

PRML勉強会 6月の発表内容についてディスカッションしましょう :smile_cat:
僕は、

PRML(プレモル)本の2章の後半。 :book:

本筋ではPRML本も勧めていきたいので、今回はこちらを優先しました。

それ以外に本や論文について一つ何かしら喋りたい :bowtie: (7分)

ハウスホルダー変換とQR分解については、後半の情報幾何が近づいたら解説することにします。
:octopus:

私は以前お話したEMアルゴリズムについて、もう少し掘り下げて話そうと思います

@jkfishlover :+1:  期待してます!

authors: hururtoriya jkfishlover

repo: PRMLSeminar/prml-wakaranu


text:
Upgrade prql-js

Not sure why dependabot didn't do this?

Sorry — dependabot did do this, in https://github.com/PRQL/prql-vscode/pull/312. We just didn't release

really wish you would just remove that bot. No VS Code ext. should be using it IMO. Pollutes the well, commits, and not the best strategy to keep your VS Code extensions up to date and used by many in general.

for example, our last meaningful commit with comments to this repo: https://github.com/PRQL/prql-vscode/commit/4237fe776609f7c09bb75406c4d75bbf065cde6a
The rest is just a lot of dependabot noise 😆

authors: RandomFractals max-sixty

repo: PRQL/prql-vscode


text:
🛑 ЕТИС (студенческий) ПГНИУ is down

In 040c74a, ЕТИС (студенческий) ПГНИУ (https://student.psu.ru) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ЕТИС (студенческий) ПГНИУ is back up in ad8b98c after 30 minutes.

repo: PSU-Tech/uptime


text:
Template for issues

Create template for issues, see e.g. https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository

Suggestion: Template for feature, bug and discussion
Suggestion: Template also for corresponding PRs

repo: PTB-MR/mrpro


text:
Pixhawk cube + GPS Here modul, not detecting magnetometer

Describe the bug
Cube does not calibrate external magnetometer on GPS Here module
To Reproduce
Steps to reproduce the behavior:
Connect GPS Here module and start compass calibration
Expected behavior
It should detect external magnetometer
Log Files and Screenshots

Debug console output:
putty.txt
Drone (please complete the following information):
VTOL DetlaQuad
QGroundControl can upgrade the firmware on Pixhawk devices, SiK Radios and PX4 Flow Smart Cameras.
Plug in your device via USB to start firmware upgrade.
Found device: PX4 FMU V2
Connected to bootloader:
Version: 5
Board ID: 255
Flash size: 2080768
Downloading firmware...
From: http://px4-travis.s3.amazonaws.com/Firmware/stable/px4fmu-v3_default.px4
Additional context
Output without Here module (airspeed detected but not visible on i2cdetect)
ms5525_airspeed #0 on I2C bus 2 (external, equal to '-b 2')
nsh>
nsh> i2cdetect
Scanning I2C bus: 1
0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
nsh>
Output with Here module (airspeed, rgbled detected and I think also magnetometer)
rgbled #0 on I2C bus 1 (external, equal to '-b 1')
ms5525_airspeed #0 on I2C bus 2 (external, equal to '-b 2')
nsh> i2cdetect
Scanning I2C bus: 1
0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- 55 -- -- -- -- -- -- -- -- -- -- probably rgbled?
60: -- -- -- -- -- -- -- -- -- 69 -- -- -- -- -- -- probably icm20948?
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
nsh>

@dagar tagging you as you wanted

Looks like it's the icm20948 on I2C which has an ak09916 magnetometer.
We have a driver for both the icm20948 and ak09916, so I believe the problem in this case is that the icm20948 needs to be configured in i2c passthrough mode so that the ak09916 is directly on available on the bus.

So what can I do?
nsh> ak09916 status
INFO  [SPI_I2C] Not running
nsh> icm20948 status
INFO  [SPI_I2C] Not running
nsh>

2 Options

extend the existing icm20948 to work on I2C

at the moment I'd say we actually don't want this because that extra external IMU on I2C probably isn't usable for flight and we don't currently have a mechanism to treat it differently

create a very simple icm20948_i2c that simply places the device in I2C passthrough mode so that the ak09916 is available directly on the I2C bus, then start the standalone ak09916 driver.

According to https://docs.px4.io/master/en/assembly/quick_start_cube.html
The recommended GPS modules are the Here and Here+, both of which incorporate a GPS module, Compass, Safety Switch and LEDs.
But it looks like this do not work anymore without modifications?
I have also DroTek (Ublox GPS + compass) which works fine and is correctly detected with PX4, should I use this one instead of Here module?

I have also DroTek (Ublox GPS + compass) which works fine and is correctly detected with PX4, should I use this one instead of Here module?

Yes, the vast majority of these GPS modules are all the same ublox m8n.
I'll look into fixing the icm20948.

So even DroTek  didn't work. It has found the external magnetometer but the GPS was not working. I have ordered Here2 and now both borks, GPS and external mag on I2C.

Thanks for the update, I'll try to have the icm20948 on i2c fully working soon.

authors: MartinStokelj dagar


text:
an error has occourred when i enter"git clone https://github.com/PX4/Firmware.git" in terminal in ubuntu with VMware

fatal: unable to access 'https://github.com/PX4/Firmware,git': Could not resolve host:github.com
i can visit github.com with Firefox in Nanjing,China
Who can help me?Thanks a lot!

You have a typo in there: The URL is wrong. Please copy the correct URL from here: https://github.com/PX4/Firmware

authors: JohnPanheixia LorenzMeier


text:
Position Controller Mixing

Feature Request
Is there a standard way to mix a tilt-quadcopter so attitude is controlled with rotor speed, and position is controlled by rotor tilt? If not, will implementing this required modifying mc_pos_control?
In other words, the copter body would remain flat using torque from rotor speed. It would translate using rotor tilt.
This feature would also be useful for a pusher quad.

Hi @imcnanie , at the moment the tilt-rotor mechanism is handled in the VTOL tiltrotor code (https://github.com/PX4/Firmware/blob/master/src/modules/vtol_att_control/tiltrotor.cpp) but the tilting mechanism is only used to make a VTOL transition.
For a pusher quad, this is also handled for standard VTOLs. However, the implementation is not nice and I would not recommend you to do the same with the tiltrotor (the VTOL code takes the pitch setpoint, converts it to a pusher command et republish the pitch setpoint to zero. This is more a hack than a proper implementation).
The proper way to do it is in discussion since quite a lot of time with the other VTOL developers and would require several changes in the mc_pos_control code. If you have time and motivation you can start to think about a nice way to do it and we could work together. Otherwise, just hack the tiltrotor code, it should the the easiest way to make something rapidly functional.

Hi @bresch ! I'm very interested in helping re-implement this. How can I be part of the discussion?

@jlecoeur FYI

Hi, @imcnanie , @jlecoeur is actively working on the control of a fully-actuated multicopter. His copter doesn't tilt to move but rather uses lateral thrust. (https://github.com/jlecoeur/Firmware/pull/1)
Using the modification he made in the Multicopter Position Controller to publish a 3D thrust and then writing a tiltrotor mixer that inherits from his mixer mixer_multirotor_6dof, you should be able to make your tilting mechanism moving the drone correctly.
I suggest that you check with him the feasibility of this approach.

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 30 days. Feel free to reopen this issue if you deem it appropriate.
(This is an automated comment from GitMate.io.)

authors: PX4BuildBot bresch dagar imcnanie


text:
Failsafe enabled: no global position

we are having a problem with our multicoper
it is a Tarrot 650 ironman, with 17" props and a Pixhawk 1 with px4 software.
most of the time it is flying just fine. But then all of a sudden, it it will go completely crazy and freak out. as you can see in the logs provided at 1:38, it drops about 10m meters out of the air. and then recovers.
it gave a no global position error and [lib__ecl] EKF GPS fusion timeout - reset to GPS, and started beeping, so we think there may be a problem with the GPS
hope someone can help.
here is the log: https://logs.px4.io/plot_app?log=f4cc8c37-068c-4537-91ae-43313a89bd04
and here is another one just after where the same error is given: https://logs.px4.io/plot_app?log=e96bd429-0260-476c-a6ec-d7ff9ded233e

I'm not an expert, but it looks like you have a lot of vibration on your platform:

Also, you are only tracking 10 GPS sats, depending on what GPS receiver you are using this might be lower than typical.

I second Antiheavy's pointing out of the vibration. Your global position issues coincide with the worst period of vibration.
We ran into a vibration issue last year because of a poor choice of autopilot mounting foam (although on a FW vehicle). The same issues came up until we changed the mounting foam.

I'm closing this - please report back if you continue to have issues after rebuilding the mounting. You should only see one "yellow" area in the plot, corresponding to your propeller RPM.

now we have installed the new mounting foam, and here are the results, is a lot better, but there are still some vibrations around 40hz, we think look a little wired.
https://logs.px4.io/plot_app?log=f6e60660-c320-400c-95d4-0ebb39d36597

Your GPS trajectory looks very weird - what kind of GPS are you flying?

Having vibrations at half the prop frequency is not optimal but not totally unexpected either.

we are using the ublox neo-7m gps (https://www.unmannedtechshop.co.uk/ublox-neo-7m-gps-with-compass/)

authors: Antiheavy JonReacher LorenzMeier mathias-h


text:
Correct for sensor noise and baro offset during alignment

The baro is averaged during alignment and an offset calculated that is used subsequently to ensure that the reported height of the EKF origin is correct, even for in-air GPs gain and that the filter correctly reports both absolute and relative height.
Some additional averaging is used during initialisation of the states to improve accuracy.

I think the height reset needs to be pulled out from the position reset function as we should not be doing a height reset when transitioning to GPS aiding

Thanks!

authors: LorenzMeier priseborough


text:
segment-anything 能否支持

https://github.com/facebookresearch/segment-anything

一切都能分割
分割任何模型 （SAM） 根据输入提示（如点或框）生成高质量的对象蒙版，并可用于为图像中的所有对象生成蒙版。它已经在 11 万张图像和 1 亿个掩码的数据集上进行了训练，并且在各种分割任务上具有强大的零镜头性能。
这个已经转换为onnx
怎么用？

目前暂时不支持哈。

@DefTruth
目前分类模型的部署C++都不支持.onnx吗？
我需要用HRNet的语义分割来部署.onnx C++

authors: DefTruth monkeycc umie0128

repo: PaddlePaddle/FastDeploy


text:
add travis deploy script

PaddlePaddle.org uses 'mobile' repo as a content source. This script will deploy the content to make it live on the new PaddlePaddle.org website.

I am curious that where the mobile repo will be shown on the new PaddlePaddle.org website.

@Xreki : it shows like below:

@daming-lu That's great.

authors: Xreki daming-lu

repo: PaddlePaddle/Mobile


text:
运行python tools/wav2lip.py --face /home/aistudio/work/xxx.mp4 --audio /home/aistudio/work/xxx.m4a --outfile xxx.mp4莫名被Killed

aistudio@jupyter-2318074-4312609:~/work/PaddleGAN/applications/tools$ python wav2lip.py --face /home/aistudio/work/zjw1.mp4 --audio /home/aistudio/work/audio.m4a --outfile pp_tt.mp4
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/setuptools/depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
args: Namespace(audio='/home/aistudio/work/audio.m4a', box=[-1, -1, -1, -1], checkpoint_path=None, cpu=False, crop=[0, -1, 0, -1], face='/home/aistudio/work/zjw1.mp4', face_det_batch_size=16, face_detector='sfd', face_enhancement=False, fps=25.0, nosmooth=False, outfile='pp_tt.mp4', pads=[0, 10, 0, 0], resize_factor=1, rotate=False, static=False, wav2lip_batch_size=128)
predictor: <ppgan.apps.wav2lip_predictor.Wav2LipPredictor object at 0x7fc222736e50>
Reading video frames...
Killed

视频太长导致内存爆掉了

老哥，我示例的视频../docs/imgs/mona7s.mp4都爆显存，只有单张图片可以成功合成，

搞定，人脸检测参数face_det_batch_size 4，和wav2lip_batch_size 64都要调小，不然超显存

楼主解决了吗,我Windows环境的也爆掉了

楼主解决了吗，我Windows环境的也爆掉了

按照Juruobudong回答的就可以解决

楼主解决了吗，我Windows环境的也爆掉了

按照Juruobudong回答的就可以解决

谢谢，解决了

authors: 1105135335 Juruobudong fmuf

repo: PaddlePaddle/PaddleGAN


text:
[General Issue] 不准备再更新版本了吗

Thanks for your issue. To help us better solve the issue, please provide the following information：

PaddleRS version: (please specify the branch as well，e.g. PaddleRS release/1.0)
PaddlePaddle version: (e.g. PaddlePaddle 2.3.0)
Operation system: (e.g. Linux/Windows/MacOS)
Python version: (e.g. Python3.7/8)
CUDA/cuDNN version: (e.g. CUDA10.2/cuDNN 7.6.5)
Additional context: (add any other context about the problem)

欢迎您的提问。辛苦您提供以下信息，以方便我们快速定位和解决问题：

PaddleRS版本：（请提供版本号和分支信息，如PaddleRS release/1.0）
PaddlePaddle版本：（如PaddlePaddle 2.3.0）
操作系统信息：（如Linux/Windows/MacOS）
Python版本号：（如Python3.7/8）
CUDA/cuDNN版本：（ 如CUDA10.2/cuDNN 7.6.5等）
其他内容: （增加其他与问题相关的内容）

PaddleRS版本：PaddleRS release/1.0
PaddlePaddle版本：PaddlePaddle 2.5.0
操作系统信息：Windows/Linux
Python版本号：Python3.10
CUDA/cuDNN版本： CUDA12.0/cuDNN 8

你好，paddlers暂时没有发版计划～

authors: Bobholamovic giswrok

repo: PaddlePaddle/PaddleRS


text:
[Fix] Fix setup error about .version

PR types

Bug fixes
PR changes

Setup
Description

目前使用setup.py安装时会忽略.version文件从而造成问题。该修复添加了MANIFEST.in文件，确保使用setup.py时包含.version文件。

setup不会出问题，但是由于缺失.version文件，在import的时候会找不到路径


text:
readthedocs add new model

readthedocs add new model

这里是不是也应该加一下，https://github.com/yinhaofeng/PaddleRec/blob/readthedocs5/doc/source/readme.md

repo: PaddlePaddle/PaddleRec


text:
提几个建议,望各位大佬采纳

1.教程目前是英文的,能否提供中文版本,很简单吧.目前教程目录中的几个链接也都是英文的,希望提供中文.
2.PaddleSpatial仓库开设之前,我就一直跟某个飞桨大佬提议,开设时空序列预测仓库,因为我使用了easydl的时间预测序列,效果不好,说白了就是性能差,完全达不到预期,希望能有更专业的仓库,比如可以提供多种算法,easydl只需要我提供数据execl,我完全不知道内部做了什么,而且效果不怎么样.时间序列预测,应该是一个学术界研究热点,如果有一个很牛逼的时间预测序列算法,每个人都可以炒股发财了,哈哈哈哈.开个玩笑.不指望时间预测序列能预测股票,但希望,可以复现顶级论文算法,很多时间预测序列算法很牛逼的样子,似乎前景也不错,希望复现.
3.作为仓库的开发者,你们希望,输入数据,是一种怎样的组织形式呢?用execl?
4.房价预测问题,只需要弄个3层小神经网络,就可以达到很好的效果.输入是13维数组,模型输出是房价,训练时数据集得分成训练集和验证集.我想说的是,现实世界中,往往做一个实验,可以找到很多数据,输入N维数据,得到某个输出数据,比如为了研究重力和质量的关系,通过实验,得到了大量数据集,使用这些数据集是否就能得出关系呢?神经网络是否可以很好的拟合两者之间的关系呢?这个问题很简单,是正比关系,但是对于一些关系很复杂,目前不知道存在什么关系的情况下,神经网络能否很好拟合呢?举个例子,端流就很难.这也可以看出输入N维数据,输出某个结果.你们目前提供这种输入N维数据,输出某个结果的模型吗?好比房价预测问题,输入13维数据,输出房价.

yuwoyizhan,您好；
非常感谢对我们项目的关注，您说的几个问题我来回答下

目前教程确实是以英文为主，我们后续会努力同步提供中英文版本
时间序列预测也会是PaddleSpatial未来重点建设的方向，欢迎您关注。如果可行的话，也欢迎您贡献代码
我们对数据输入格式没有限制，定义合适的dataloader就可以。目前看以csv文件为主吧
不知道我们理解的是不是正确，感觉这个问题使用一般的DNN神经网络就可以做到。但是模型预测效果的好坏，也受到目标变量预测难易程度的限制。

再次感谢您的关注
祝好

1.教程目前是英文的,能否提供中文版本,很简单吧.目前教程目录中的几个链接也都是英文的,希望提供中文. 2.PaddleSpatial仓库开设之前,我就一直跟某个飞桨大佬提议,开设时空序列预测仓库,因为我使用了easydl的时间预测序列,效果不好,说白了就是性能差,完全达不到预期,希望能有更专业的仓库,比如可以提供多种算法,easydl只需要我提供数据execl,我完全不知道内部做了什么,而且效果不怎么样.时间序列预测,应该是一个学术界研究热点,如果有一个很牛逼的时间预测序列算法,每个人都可以炒股发财了,哈哈哈哈.开个玩笑.不指望时间预测序列能预测股票,但希望,可以复现顶级论文算法,很多时间预测序列算法很牛逼的样子,似乎前景也不错,希望复现. 3.作为仓库的开发者,你们希望,输入数据,是一种怎样的组织形式呢?用execl? 4.房价预测问题,只需要弄个3层小神经网络,就可以达到很好的效果.输入是13维数组,模型输出是房价,训练时数据集得分成训练集和验证集.我想说的是,现实世界中,往往做一个实验,可以找到很多数据,输入N维数据,得到某个输出数据,比如为了研究重力和质量的关系,通过实验,得到了大量数据集,使用这些数据集是否就能得出关系呢?神经网络是否可以很好的拟合两者之间的关系呢?这个问题很简单,是正比关系,但是对于一些关系很复杂,目前不知道存在什么关系的情况下,神经网络能否很好拟合呢?举个例子,端流就很难.这也可以看出输入N维数据,输出某个结果.你们目前提供这种输入N维数据,输出某个结果的模型吗?好比房价预测问题,输入13维数据,输出房价.

1.关于第二个问题,时间预测序列,我想问问,你们打算提供什么算法或者模型呢?比如对于预测股票价格这个目标变量,你们提供的算法或者模型,需要飞桨使用者提供过去一年(也就是很长时间)的股票价格还是过去一个星期(最近一段时间)的股票价格?我需要提供股票每日的成交量,最高价,最低价等自变量,还是只需要提供股票价格这个变量的相关数据?也就是说是不是为了预测某个变量,只需要提供该变量过去的数值数据,而不需要提供其他数据了?
2.关于第四个问题,房价预测问题中,数据量非常少,而且通过13个自变量,来预测房价这个因变量.我想问的是,如何通过一个算法或者模型,知道房价这个自变量是受哪些因变量影响和决定的?我在提供数据给算法或者模型训练之前,我肯定需要知道房价究竟由哪些自变量决定吧.那些跟房价无关的的自变量也就不用输入神经网络训练了.
以上这些问题,望各位大佬仔细回答一下,谢谢.就算是个人想法或者经验之谈,也好.
@zhoujingbo

1.关于第二个问题,时间预测序列,我想问问,你们打算提供什么算法或者模型呢?比如对于预测股票价格这个目标变量,你们提供的算法或者模型,需要飞桨使用者提供过去一年(也就是很长时间)的股票价格还是过去一个星期(最近一段时间)的股票价格?我需要提供股票每日的成交量,最高价,最低价等自变量,还是只需要提供股票价格这个变量的相关数据?也就是说是不是为了预测某个变量,只需要提供该变量过去的数值数据,而不需要提供其他数据了? 2.关于第四个问题,房价预测问题中,数据量非常少,而且通过13个自变量,来预测房价这个因变量.我想问的是,如何通过一个算法或者模型,知道房价这个自变量是受哪些因变量影响和决定的?我在提供数据给算法或者模型训练之前,我肯定需要知道房价究竟由哪些自变量决定吧.那些跟房价无关的的自变量也就不用输入神经网络训练了. 以上这些问题,望各位大佬仔细回答一下,谢谢.就算是个人想法或者经验之谈,也好. @zhoujingbo

您好；
1）时间序列预测问题有很多不同的方法和模型，是一个很广很深的领域，这个我们也在逐渐学习和构建。我觉得总体来讲，应该提供的对Y值预测有帮助的X变量越多越好。
2）对于哪些自变量受影响，可以用各种各样的特征选择（feature selection）的方法，比如先计算自变量和应变量的相关性等方法。
已加您微信，可以线下互相多交流讨论，谢谢。
祝好

authors: yuwoyizhan zhoujingbo

repo: PaddlePaddle/PaddleSpatial


text:
import paddlex as pdx 启动慢，只要目标检测预测，应该怎么弄

import paddlex as pdx
加了全部的paddlex的模块
启动的时候 就会比较慢
如果我只要 目标检测
其他什么都不需要 也不需要训练
那么我要怎么调用具体的模型 而不需要全部加载
识别 只需要返回坐标信息

如果我只要 目标检测
其他什么都不需要 也不需要训练

如果用paddlex发布的包，这个比较难办到。要么就基于develop分支，自行修改paddlex的代码

authors: FlyingQianMM monkeycc

repo: PaddlePaddle/PaddleX


text:
使用预加载模型进行训练，可不可以像从头训练模yaml一样，修改均值等的一些参数调整

当我准备使用官方预训练代码训练我的数据时，如何调整一些参数，我的训练指令是python main.py -c paddlex/configs/image_classification/SwinTransformer_large_patch4_window12_384.yaml -o Global.mode=train -o Global.dataset_dir=/media/

是想要修改哪些参数呢？重要的参数在配置文件paddlex/configs/image_classification/SwinTransformer_large_patch4_window12_384.yaml中可以直接修改。更多的参数可以修改配置文件paddlex/repo_apis/PaddleClas_api/configs/SwinTransformer_large_patch4_window12_384.yaml

好的，谢谢。

authors: TingquanGao ZhouBay-TF


text:
使用paddleserving压测出现一些问题

env：ubuntu1804，显卡1650，千兆网，brpc方式，pp-yolo
1.单线程请求，无报错，qps:5
2.5个线程，错误率18%
全部报错都为
E1103 17:58:25.655791  6378 general_model.cpp:561] failed call predictor with req: insts { tensor_array { float_data: -1.278791 float_data: -1.2959157 float_data: -1.3130405 float_data: -1.3301653 float_data: -1.3301653 float_data: -1.34729 float_data: -1.34729 float_data: -1.34729 float_data: -1.34729 float_data: -1.34729 float_data: -1.3301653 float_data: -1.3301653 float_data: -1.34729 float_data: -1.3644147 float_data: -1.3986642 float_data: -1.3130405 float_data: -1.2274168 float_data: -1.1589177 float_data: -1.0732939 float_data: -1.0219196 float_data: -1.0219196 float_data: -1.0390444 float_data: -1.1246682 float_data: -1.1931672 float_data: -1.2616662 .....(此处省略，都是图片数据)
2020-11-03 17:58:25,662-ERROR: Exception on /start [POST]

3.10个线程，错误率32%，一段时间后直接崩溃，除了上面的报错，崩溃报错为
2020-11-03 17:58:26,181-INFO: 192.168.1.195 - - [03/Nov/2020 17:58:26] "POST /start HTTP/1.1" 200 -
W1103 17:58:26.188755 14849 init.cc:226] Warning: PaddlePaddle catches a failure signal, it may not work properly
W1103 17:58:26.188767 14849 init.cc:228] You could check whether you killed PaddlePaddle thread/process accidentally or report the case to PaddlePaddle
W1103 17:58:26.188771 14849 init.cc:231] The detail failure signal is:

W1103 17:58:26.188772 14849 init.cc:234] *** Aborted at 1604397506 (unix time) try "date -d @1604397506" if you are using GNU date ***
W1103 17:58:26.192802 14849 init.cc:234] PC: @                0x0 (unknown)
W1103 17:58:26.192942 14849 init.cc:234] *** SIGSEGV (@0x18) received by PID 14831 (TID 0x7fdeb28dc700) from PID 24; stack trace: ***
W1103 17:58:26.193902 14849 init.cc:234]     @     0x7fdf19ba48a0 (unknown)
W1103 17:58:26.194393 14849 init.cc:234]     @     0x7fdeb586659e brpc::Controller::Call::OnComplete()
W1103 17:58:26.194905 14849 init.cc:234]     @     0x7fdeb58669a1 brpc::Controller::EndRPC()
W1103 17:58:26.195415 14849 init.cc:234]     @     0x7fdeb5867ea4 brpc::Controller::OnVersionedRPCReturned()
W1103 17:58:26.195947 14849 init.cc:234]     @     0x7fdeb588f08f brpc::policy::ProcessRpcResponse()
W1103 17:58:26.196414 14849 init.cc:234]     @     0x7fdeb582493a brpc::ProcessInputMessage()
W1103 17:58:26.196831 14849 init.cc:234]     @     0x7fdeb5825e7d brpc::InputMessenger::OnNewMessages()
W1103 17:58:26.197309 14849 init.cc:234]     @     0x7fdeb585782d brpc::Socket::ProcessEvent()
W1103 17:58:26.197836 14849 init.cc:234]     @     0x7fdeb5938825 bthread::TaskGroup::task_runner()
W1103 17:58:26.198354 14849 init.cc:234]     @     0x7fdeb5949561 bthread_make_fcontext

env：ubuntu1804，显卡1650，千兆网，brpc方式，pp-yolo
1.单线程请求，无报错，qps:5
2.5个线程，错误率18%
全部报错都为
E1103 17:58:25.655791  6378 general_model.cpp:561] failed call predictor with req: insts { tensor_array { float_data: -1.278791 float_data: -1.2959157 float_data: -1.3130405 float_data: -1.3301653 float_data: -1.3301653 float_data: -1.34729 float_data: -1.34729 float_data: -1.34729 float_data: -1.34729 float_data: -1.34729 float_data: -1.3301653 float_data: -1.3301653 float_data: -1.34729 float_data: -1.3644147 float_data: -1.3986642 float_data: -1.3130405 float_data: -1.2274168 float_data: -1.1589177 float_data: -1.0732939 float_data: -1.0219196 float_data: -1.0219196 float_data: -1.0390444 float_data: -1.1246682 float_data: -1.1931672 float_data: -1.2616662 .....(此处省略，都是图片数据)
2020-11-03 17:58:25,662-ERROR: Exception on /start [POST]

3.10个线程，错误率32%，一段时间后直接崩溃，除了上面的报错，崩溃报错为
2020-11-03 17:58:26,181-INFO: 192.168.1.195 - - [03/Nov/2020 17:58:26] "POST /start HTTP/1.1" 200 -
W1103 17:58:26.188755 14849 init.cc:226] Warning: PaddlePaddle catches a failure signal, it may not work properly
W1103 17:58:26.188767 14849 init.cc:228] You could check whether you killed PaddlePaddle thread/process accidentally or report the case to PaddlePaddle
W1103 17:58:26.188771 14849 init.cc:231] The detail failure signal is:

W1103 17:58:26.188772 14849 init.cc:234] *** Aborted at 1604397506 (unix time) try "date -d @1604397506" if you are using GNU date ***
W1103 17:58:26.192802 14849 init.cc:234] PC: @                0x0 (unknown)
W1103 17:58:26.192942 14849 init.cc:234] *** SIGSEGV (@0x18) received by PID 14831 (TID 0x7fdeb28dc700) from PID 24; stack trace: ***
W1103 17:58:26.193902 14849 init.cc:234]     @     0x7fdf19ba48a0 (unknown)
W1103 17:58:26.194393 14849 init.cc:234]     @     0x7fdeb586659e brpc::Controller::Call::OnComplete()
W1103 17:58:26.194905 14849 init.cc:234]     @     0x7fdeb58669a1 brpc::Controller::EndRPC()
W1103 17:58:26.195415 14849 init.cc:234]     @     0x7fdeb5867ea4 brpc::Controller::OnVersionedRPCReturned()
W1103 17:58:26.195947 14849 init.cc:234]     @     0x7fdeb588f08f brpc::policy::ProcessRpcResponse()
W1103 17:58:26.196414 14849 init.cc:234]     @     0x7fdeb582493a brpc::ProcessInputMessage()
W1103 17:58:26.196831 14849 init.cc:234]     @     0x7fdeb5825e7d brpc::InputMessenger::OnNewMessages()
W1103 17:58:26.197309 14849 init.cc:234]     @     0x7fdeb585782d brpc::Socket::ProcessEvent()
W1103 17:58:26.197836 14849 init.cc:234]     @     0x7fdeb5938825 bthread::TaskGroup::task_runner()
W1103 17:58:26.198354 14849 init.cc:234]     @     0x7fdeb5949561 bthread_make_fcontext

这个大概是多久会出现这个问题，会不会是负载过高，还是说负载比较低的适合也会出现。

您好，你在压测过程中内存、FD指标正常吗，是否可以提供client端的代码？

预测过程中是否出现 Fail to pthread_key_create: Resource temporarily unavailable 错误？

authors: QingYuan-L TeslaZhao wangjiawei04

repo: PaddlePaddle/Serving


text:
docker GPU Api Update

To be verified

cmd
use --gpus
image
Meets expectations
remarks

docker run --name paddle_docker_temp1 -it -v $PWD:/paddle registry.baidubce.com/paddlepaddle/paddle:2.3.2-gpu-cuda10.2-cudnn7 /bin/bash
false
registry.baidubce.com/paddlepaddle/paddle:2.3.2-gpu-cuda10.2-cudnn7

test1

docker run --name paddle_docker_temp1 -it -v $PWD:/paddle registry.baidubce.com/paddlepaddle/paddle:2.3.2 /bin/bash
false
registry.baidubce.com/paddlepaddle/paddle:2.3.2

test2

docker run --name paddle_docker_temp1 --gpus all  -it -v $PWD:/paddle registry.baidubce.com/paddlepaddle/paddle:2.3.2 /bin/bash
true
registry.baidubce.com/paddlepaddle/paddle:2.3.2

test3

docker run --name paddle_docker -it -v $PWD:/paddle registry.baidubce.com/paddlepaddle/paddle:2.3.2-gpu-cuda11.2-cudnn8  /bin/bash
true
registry.baidubce.com/paddlepaddle/paddle:2.3.2-gpu-cuda11.2-cudnn8

test4

test1

test2

test3

test4

cmd
use --gpus
Meets expectations
remarks

docker run --name paddle_docker_temp1 -it --gpus all -v $PWD:/paddle registry.baidubce.com/paddlepaddle/paddle:2.3.2-gpu-cuda11.2-cudnn8 /bin/bash
true

test1

docker run --name paddle_docker_temp1 -it  -v $PWD:/paddle registry.baidubce.com/paddlepaddle/paddle:2.3.2-gpu-cuda11.2-cudnn8 /bin/bash
false

test2

test1

test2

根据上述测试结果，docker run如果不添加--gpus 参数，则无法正常调用GPU，参考：https://docs.docker.com/config/containers/resource_constraints/#gpu

authors: dingjiaweiww gouzil

repo: PaddlePaddle/docs


text:
Panorama to commit 'templates'

When I commit from Panorama to the 'device group' it doesn't include 'templates' so how I actually commit 'templates' (network and device settings etc) ?
pano.commit_all(devicegroup="PROD")
With above I can only commit policy and object changes

Template commits are not directly supported in the commit_all method yet, but its something we're working on and should be available soon.  We'll use this issue to track progress.
In the meantime, you can use the cmd= argument to accomplish this with the raw commit XML.  For example:
To commit template 'abc':
from pandevice import panorama
pano = panorama.Panorama('10.0.0.5', 'admin', 'password')
pano.commit_all(cmd="<commit-all><template><name>abc</name></template></commit-all>")

To commit devicegroup 'xyz' and include templates:
from pandevice import panorama
pano = panorama.Panorama('10.0.0.5', 'admin', 'password')
pano.commit_all(cmd="<commit-all><shared-policy><include-template>yes</include-template><device-group><entry name='xyz'/></device-group></shared-policy></commit-all>")

Including templates in the Panorama commit is now a boolean flag you can specify.  This issue should be resolved at this point.  Can you confirm, @irom77 ?

This was fixed by #220 - closing this issue

authors: btorresgil irom77 shinmog

repo: PaloAltoNetworks/pan-os-python

license: ISC


text:
Solidcloudio terraform 0.13.0 / Azure RM 2.23.0 upgrade

Description
Upgraded the dependencies Terraform and Azure RM to their latest versions.
Motivation and Context
Keep things up to date.  I was able to deploy this infrastructure with Terraform 0.13.0 after these changes.
Changes are specific to Azure and only updated the Azure Two Tier sample.
How Has This Been Tested?
I created the infrastructure in my Azure account.
Screenshots (if appropriate)

Types of changes

Upgrade.
Terraform v0.13 introduces a new hierarchical namespace for providers that allows specifying both HashiCorp-maintained and community-maintained providers as dependencies of a module, with community providers distributed from other namespaces on Terraform Registry from a third-party provider registry.
In order to establish the hierarchical namespace, Terraform now requires explicit source information for any providers that are not HashiCorp-maintained, using a new syntax in the required_providers nested block inside the terraform configuration block:
https://www.terraform.io/upgrade-guides/0-13.html

Interpolation-only expressions are deprecated: an expression like "${foo}" should be rewritten as just foo.

Added Provider configuration block. - See upgrade guide above.

Azure RM 2.24.0
See Azure Provider change log: https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/CHANGELOG.md

Changes Azure storage parameters for updated provider.
Azure subnets now require a list of address_prefixes.
Added Subnet and NSG association objects.

Checklist

[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes if appropriate.
[ x ] All new and existing tests passed.

Not in this context...   What can be done about these Prisma Cloud errors ?

Question on this..  Is there some documentation or diagram outlining the routing / infrastructure for this sample ?
Curious to see the architecture at a higher level

I found the docs and video here https://github.com/PaloAltoNetworks/azure/tree/master/two-tier-sample

https://www.youtube.com/watch?v=vpC62NRpWSM

repo: PaloAltoNetworks/terraform-templates


text:
Horizontal Separator margin Error in "layout": "horizontal" Box

JSON:
{
  "type": "bubble",
  "size": "mega",
  "direction": "ltr",
  "body": {
    "type": "box",
    "layout": "horizontal",
    "contents": [
      {
        "type": "button",
        "action": {
          "type": "uri",
          "label": "action",
          "uri": "http://linecorp.com/"
        },
        "style": "primary"
      },
      {
        "type": "separator",
        "margin": "10px"
      },
      {
        "type": "button",
        "action": {
          "type": "uri",
          "label": "action",
          "uri": "http://linecorp.com/"
        },
        "style": "primary"
      }
    ],
    "justifyContent": "center",
    "alignItems": "center"
  }
}

This is the JavaScript code I wrote to fix this issue.
// Fix the vertical alignment of MdSep
var wrongMdSepElements = document.querySelectorAll('.hr .MdSep');
wrongMdSepElements.forEach(function (element) {
    var marginTop = getComputedStyle(element).getPropertyValue("margin-top");
    element.style.marginLeft = marginTop;
});

Done krab ^^ thank you for your report


text:
是不是不支持  echarts 4 + ？

大佬您好：
小弟想使用  vue-echarts   Built upon ECharts v4.0.1+ and depends on Vue.js v2.2.6+.
但我看到 vue-element-admin  用的  "echarts": "^3.8.5",  ，  我按照vue-echarts的例子操作，报错，是不是没法兼容啊。
谢谢

你升级一下不就好了

好的  我以为 vue-element-admin  不支持 echarts 4.1 呢
谢谢

authors: PanJiaChen X-Mars

repo: PanJiaChen/vue-element-admin


text:
大神,为什么我设置NAVbarmenu 为水平方向的,会变成纵向的

Question（提问）
<el-menu :default-active="$route.path" background-color="#fff" class="el-menu-demo" mode="horizontal" menu-trigger="click" collapse-transition="true" @select="handleSelect" >

不知道你在说什么。
请走issue模板。按照模板填写内容。


text:
写了一个外部跳转的链接，有正确打开新的页面，但是之前的页面跳转到了404页面 。

//路由代码
{
path: 'external-link',
component: Layout,
children: [
{
path: 'https://devccp.ocp311-master1.ctyun.cn',
meta: { title: 'DevOps 流水线', icon: 'DevOps流水线' }
}
]
},
写了一个外部跳转的链接，有正确打开新的页面，但是之前的页面跳转到了404页面 。

找到问题了，加了element 里 el-menu标签的 router属性


text:
Implement Merge Sort and Generic Search with custom compare function

I clean the history by re-forking your repository. (#12)

Great work!
Please refactor it to comply with the code guide.

authors: ParadoxZero TravorLZH

repo: ParadoxZero/libgeneric


text:
[FEATURE] Social media profile URLs

Description
Adding social media profile URLs in social-links.json in Alphabetical order.
Social media list
The list of social media apps/website which has public user profile feature is present in social-apps.md
You can choose any 7 social media names which are not added in social-links.json.
Make sure to NOT to choose the apps which are already done.
Example: LinkedIn, Github & Medium are already done
How to verify ❓

The social media names are checked in  social-apps.md
The same social media profile URLs are present in social-links.json

Please feel free to recommend and more apps which has social (public) user profile system.
Style
{
    "social_media_name": "link",
    "linkedin": "https://www.linkedin.com/in/<username>",
    "github": "https://www.github.com/<username>",
    "medium": "https://<username>.medium.com"
}

Let's create the user life easier by listing all social media platforms.

Hi Param, I can do this

Hi Param, I can do this

Hi @shashankyadahalli ,
Sure you can work on this.
P.S: I am thinking of splitting 7 to each, same as in social media logos so that everybody get a chance to contribute.
Let me know which 7 you want to work on.

The first 7 I can work on

Oky!
Make sure to read the Contributing Guide to know how to contribute!

Thank you

Hey, param! I can add the miscellaneous one's, if no one has been assigned yet.

Hey, param! I can add the miscellaneous one's, if no one has been assigned yet.

Yeah sure!
Go ahead. :D

Hey @shashankyadahalli @SamFusedBits ,
Earlier, I was not clear about what URLs exactly we need to add, so I have updated the issue and Project Details.
I hope now there won't be any confusion regarding what URL exactly we have to add.
Please re-read the issue, and let me know whether it's clear now or not.
If still any confusion occurs, feel free to reply me.

Hey, I can add the following urls,,,
Spotify
Snapchat
Telegram
Twitter/x
Whatsapp
Quora
Peerlist

Hey, I can add the following urls..
Snapchat
Telegram
Twitter/x
Quora
Peerlist
Codeforces
Linktree

Hey, I can add the following urls.. Snapchat Telegram Twitter/x Quora Peerlist Codeforces Linktree

If no one has been assigned yet

Hey, I can add the following urls.. Snapchat Telegram Twitter/x Quora Peerlist Codeforces Linktree

Hey @nancyvaryani ,
Sure you can work on these.
I am assigning you the issue for the same.
Please make sure to adhere to the CONTRIBUTING Guidelines and read the Project details to avoid any confusion.

Hi param I am having Issue unable to merge created branch https://github.com/Param302/SocialRepo/pull/36 with main and so pulled the same branch now unable to retrieve back, please help me what to do further

authors: Param302 SamFusedBits nancyvaryani shashankyadahalli


text:
bower package?

is there bower package for ionic?

There is no bower package at this time.
I'm not an Ionic user, but I was under the impression that modules could be added to projects by simply providing a web address or a local file. Could you include www.parsecdn.com/js/parse-1.6.2.js ?

yes, i can do it, thanks,

authors: andrewimm limulidae

repo: ParsePlatform/Parse-SDK-JS


text:
Refactor GCM so it can be reused

Trying to use the GCM module to use with Amazon SNS: https://github.com/ParsePlatform/parse-server/pull/711

@rogerhu you could make that refactor in your other PR. That will be faster for you to move on

Will do...looks like there are dependencies on how this tests are executed.

Thx and good luck!

authors: flovilmart rogerhu

repo: ParsePlatform/parse-server


text:
producer throughput periodically drops

When we deployed 2.4.0 at Parsely, we saw the producer doing this:

Every once in a while, the producer's throughput dropped significantly and then seemed to recover after a brief period. Based on how Parsely's backend works, I can make an educated guess that these dips in the customer-facing timeseries indicate that messages were actually being dropped as opposed to simply delayed.
According to tests I've run, the average throughput of the producer is largely unaffected:
2.3.1: 7508.8 messages per second
2.4.0: 7919.8 messages per second

This is the diff that we deployed that day, so the bug is likely there.
PyKafka version: 2.4.0
Kafka version: 0.8.2.1

This is what it looks like when I run a 2.4.0 producer on a test machine - note the giant troughs every few minutes.

This is what it looked like when I put 2.4.0 on a single producer node in Parsely's system:

Before the deployment, 2.3.1 is running, and 2.4.0 is running after. As you can see, there is not much difference in the throughput pattern between the two.

I just completed a rollout of 2.4.0 in Parsely production and was unable to replicate this issue.

repo: Parsely/pykafka


text:
Clojure DSL issues with directing streams

Preface this: I know the Clojure DSL's are going away and I am happy about that. I would much rather use Thrift. And do offer to help support this project in their upstream Thrift endeavors because I am already implementing that on my side.
The problem I am having when I try to follow the resources for the Clojure DSL regarding

bolt-spec
bolt-spec takes as arguments the input declaration for the bolt, the bolt implementation (an object that implements IRichBolt), and optional keyword arguments.
The input declaration is a map from stream ids to stream groupings. A stream id can have one of two forms:
[==component id== ==stream id==]: Subscribes to a specific stream on a component
==component id==: Subscribes to the default stream on a component

Basically I want to create multiple streams from a single bolt for effective routing in my topology. But to use a toy example would be to take the word count example and have the spout or bolt emit a 'dog' only stream.
However when I define a vector for my downstream bolts with explicit keys for streams created in my routing bolt I get errors that they are not defined.

If I understand correctly what you are trying to accomplish, you can use field grouping in the spec. In topologies/your-project.clj:
    {"search-bolt" (python-bolt-spec
          options
          {"url-spout" ["url"]}
          "birding.bolt.TwitterSearchBolt"
          ["url" "timestamp" "search_result"]
          :p 2
          )
     "lookup-bolt" (python-bolt-spec
          options
          {"search-bolt" ["url"]}
          "birding.bolt.TwitterLookupBolt"
          ["url" "timestamp" "lookup_result"]
          :p 2
          )
    }

Emphasis on {"search-bolt" ["url"]}. This is from an example project called birding, changing shuffle to field grouping on the "lookup-bolt" from 3846cce. I just ran this without errors.

I am trying to bind not to a specific field grouping but rather a stream. Bolts can emit multiple streams and the python bolt component even supports specifying output stream.
 {"search-bolt" (python-bolt-spec
          options
          {"url-spout" ["url"]}
          "birding.bolt.TwitterSearchBolt"
          ["url" "timestamp" "search_result"]
          :p 2
          )
     "lookup-bolt" (python-bolt-spec
          options
          {["search-bolt" "JohnSmith"] ["url"]}
          "birding.bolt.TwitterLookupBolt"
          ["url" "timestamp" "lookup_result"]
          :p 2
          )
    }

Where in my bolt I specify something like this
def process(tup):
    if tup.values[0] == 'JohnSmith':
        self.emit(tup, stream='JohnSmith')

When I run that configuration, I get:
InvalidTopologyException(msg:Component: [lookup-bolt] subscribes from non-existent stream: [JohnSmith] of component [search-bolt])

My understanding of Clojure DSL (others are welcome to jump in) is that you need to specify the stream ID in the output spec, then use that ID in the input spec:
    {"search-bolt" (python-bolt-spec
          options
          ; Use field grouping on URL to support in-memory caching.
          {"url-spout" ["url"]}
          "birding.bolt.TwitterSearchBolt"
          {"JohnSmith" ["url" "timestamp" "search_result"]}
          :p 2
          )
     "lookup-bolt" (python-bolt-spec
          options
          {["search-bolt" "JohnSmith"] ["url"]}
          "birding.bolt.TwitterLookupBolt"
          ["url" "timestamp" "lookup_result"]
          :p 2
          )

Yes, that's right. When stream id's are not specified, both in the DSL and
in emit() calls, it is assumed you are using a single stream, called
"default" internally.
But when stream ID's are specified in a bolt/spout's output, then
downstream bolts can subscribe to that stream using the DSL syntax Ron
demonstrated. To emit on that stream, the components pass the stream ID to
emit() as a kwarg. This mirrors the way Storm's Java API works, and makes
it so for simple topologies, you needn't worry about stream IDs, but for
complex ones, you can have any number and each with separate steam grouping
specs and distinct participation in the topology graph.
-Andrew
On Jul 12, 2015 11:43 PM, "Ron DuPlain" notifications@github.com wrote:

When I run that configuration, I get:
InvalidTopologyException(msg:Component: [lookup-bolt] subscribes from non-existent stream: [JohnSmith] of component [search-bolt])
My understanding of Clojure DSL
http://storm.apache.org/documentation/Clojure-DSL.html (others are
welcome to jump in) is that you need to specify the stream ID in the output
spec, then use that ID in the input spec:
{"search-bolt" (python-bolt-spec
      options
      ; Use field grouping on URL to support in-memory caching.
      {"url-spout" ["url"]}
      "birding.bolt.TwitterSearchBolt"
      {"JohnSmith" ["url" "timestamp" "search_result"]}
      :p 2
      )
 "lookup-bolt" (python-bolt-spec
      options
      {["search-bolt" "JohnSmith"] ["url"]}
      "birding.bolt.TwitterLookupBolt"
      ["url" "timestamp" "lookup_result"]
      :p 2
      )

—
Reply to this email directly or view it on GitHub
https://github.com/Parsely/streamparse/issues/162#issuecomment-120800821
.

That works perfectly for me. Thanks!!

Shall we consider reopening this to update the docs? The issue discussion should come through on search engines, but there's important info here to capture.

authors: amontalenti rduplain westover

repo: Parsely/streamparse


text:
[38398687]: Add UI for creating new personal PastelId and registring it as ID ticket

https://freedcamp.com/view/2956183/tasks/38398687
Adds UI for the Pastel ID UI functionality.
This will allow creating PastelIDs via RPC. However, the functionality to actually create a ticket and charge for the creation of the PastelID will be implemented in https://freedcamp.com/view/2956183/tasks/38401246.

Looks fine to me.


text:
Need to add checks when swiping pages backwards

When start logging, and stop logging, swipe backwards, in this page App is still logging.

We checked multiple conditions here:

On 'start logging' button click, App is taking the coordinates and on 'Stop logging' button it has stopped taking coordinates.
when application is killed or even in background it's still taking coordinates.
Bug we found was : Application started logging -> kill application -> start it again(Application is logging) -> Stop logging -> start logging ->Now application stops taking coordinates.
We can create a separate issue for that.

@aartiverma1 , could you please clarify what were you checking that indicated about locations not being logged in?
Also, wanted to share that the library we are using for location has stationaryRadius set to 5 (meters) before it starts logging location. So, it might require the phone to change location before it starts logging

Actually I set track location every second and I see that issue is not reproduced, cuz it's work after @aartiverma1 's steps

Actually, for me it's work fine. I set the delay for geo-tracking as 1 second for better the test experience.

Actually, for me, it's working fine. I set the delay for geo-tracking as 1 second for better the test experience.

@talha7o , @aartiverma1  Can you provide more details about how to replicate this to show the bug?  (Or should I close the issue? There has been a lot of refactoring of the GPS logging codebase, and one of those might have fixed this issue....)

This bug was reported in older version. App has matured alot and UI is all new now. Don't think reported bug is still valid now.

This bug was reported in older version. App has matured alot and UI is all new now. Don't think reported bug is still valid now.

Cool, thanks for the confirmation, I'll close it out!

repo: Path-Check/covid-safe-paths


text:
Add a currently filtering item-name heads up in selectedmod box

Add a "currently filtering 'item-name'" heads up in selectedmod box, so there's indication that not all modifiers are present if you have selected an item name.

Only calculated on query, users will have to figure it out on their own

authors: Ivareh bogadisa

repo: Path-of-Modifiers/pathofmodifiersapp


text:
Stop execution on error when closing file

Fix the file.Close in defer correctly: https://github.com/securego/gosec/issues/714

Pull Request Test Coverage Report for Build 1603201468

7 of 11 (63.64%)  changed or added relevant lines in 1 file are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.3%) to 85.366%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

cmd/routesum/main.go
7
11
63.64%

Files with Coverage Reduction
New Missed Lines
%

cmd/routesum/main.go
3
48.98%

Totals

Change from base Build 1468067268:
0.3%

Covered Lines:
315

Relevant Lines:
369

💛  - Coveralls

authors: PatrickCronin coveralls

repo: PatrickCronin/routesum


text:
Remove unsafe memstats functions

Since we now have memory profiling, we can remove the home-grown memory usage statistics gathering we added.

Pull Request Test Coverage Report for Build 3810423430

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

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

cmd/routesum/main.go
0
1
0.0%

Totals

Change from base Build 3810318927:
-1.3%

Covered Lines:
260

Relevant Lines:
316

💛  - Coveralls


text:
training time

When training your model, you use CPU, GPU or multi GPUs? If GPU, what's the version and how long did you take about training your model?

half a day using one titan xp.  you may train several times to find the best results.
BTW this model is for studying tensorflow api, it's too simple in applications i think.

while, i just train my own captcha datasets and want to find the best results. thanks very much for your share.

i find that in numerical set [1,2,3,4,5,6,7,8,9,0] , this model do not perform very well , is there any further solution to handle this?
thanks a lot!

especially between 1 and 7


text:
Add listed projects to their sections

[x] https://github.com/NyCodeGHG/minecraft-server
[x] https://github.com/CloudburstMC/Server
[x] https://github.com/Skungee/Skungee/
[x] https://www.spigotmc.org/threads/guide-windows-extremely-productive-development-environment.394754/ (still up to date?)
[x] https://www.spigotmc.org/threads/methods-for-changing-massive-amount-of-blocks-up-to-14m-blocks-s.395868/ (still up to date?)
[x] https://github.com/ME1312/SubServers-2
[x] https://github.com/koca2000/NoteBlockAPI
[x] https://github.com/KibbleLands/KibblePatcher
[x] https://github.com/LOOHP/InteractiveChat
[x] https://github.com/Tammo0987/Plugin-Starter
[x] https://github.com/seeseemelk/MockBukkit
[x] https://github.com/Incendo/cloud
[x] https://github.com/PrismarineJS/mineflayer
[x] https://github.com/Silthus/minecraft-server-template
[x] https://github.com/MCHPR/MCHPRS
[x] https://github.com/YatopiaMC/Yatopia
[x] https://github.com/Akarin-project/Akarin
[x] https://github.com/pl3xgaming/Purpur
[x] https://github.com/ProtocolSupport/ProtocolSupport
[x] https://github.com/ByteZ1337/ParticleLib

Everything added 😃


text:
Error in predLoess

Hello
I got the following error after trying to run rogue.
> rogue.res <- rogue(expr, labels = meta$leiden_0.8, samples = meta$Treatment, platform = "UMI", span = 0.6)
Error in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)),  :
  NA/NaN/Inf in foreign function call (arg 5)

In the context, each sample is one treatment.
This is what my dataframes look like
> expr[1:5,1:5]
      V1 V2 V3 V4 V5
Rp1    0  0  0  0  0
Sox17  0  0  0  0  0
St18   0  0  0  0  0
Mybl1  0  0  0  0  0
Sulf1  0  0  0  0  1

> meta[1:5,1:5]
  orig.ident nCount_RNA nFeature_RNA percent.mt timpoint
1    Benitez        318          278  0.9433962       NA
2    Benitez        811          580  0.2466091       NA
3    Benitez        476          392  0.6302521       NA
4    Benitez        302          268  0.3311258       NA
5    Benitez        645          485  0.3100775       NA

Hi @dm8000. A larger span value, for example 0.9, might address this. Please let me know if this works.
rogue.res <- rogue(expr, labels = meta$leiden_0.8, samples = meta$Treatment, platform = "UMI", span = 0.9)

This worked! Thank you!

repo: PaulingLiu/ROGUE


text:
Formatting and css refactor

Install and apply JS and CSS formatters
move css to separate file

Closes: #2

repo: PawelBoe/PuNiCaPass


text:
Hold notification [3/3]

Added

Decision hold reasons on application view (#157963651)

[Delivers #157963651]

👍 Will test using Ghost Inspector

repo: PayBreak/basket


text:
Main.py eror:

Custom Bot is now running...
Traceback (most recent call last):
File ".\main.py", line 18, in
main()
File ".\main.py", line 14, in main
bot.run()
File "C:\Users\user\Desktop\ClashRoyaleBuildABot\example\custom_bot.py", line 42, in run
self.set_state()
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\clashroyalebuildabot\bot\bot.py", line 116, in set_state
self.state = self.detector.run(screenshot)
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\clashroyalebuildabot\state\detector.py", line 63, in run
self._draw_text(d, v['bounding_box'], str(v['number']))
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\clashroyalebuildabot\state\detector.py", line 35, in _draw_text
text_width, text_height = self.font.getsize(text)
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'

to solve this proglem: pip install Pillow<=9.5.0

to solve this proglem: pip install Pillow<=9.5.0

this did not work for me. I entered "pip install Pillow<=9.5.0" into the command prompt and it said "The system cannot find the file specified."

authors: mrdarwinjs nschnap

repo: Pbatch/ClashRoyaleBuildABot


text:
Map view on mobile is broken

When viewing the site on mobile, it doesn't seem to load the map view on any options.

Seems to only load when page is reloaded

May be resolved because navbar was hiding a "show/hide map" button. Will revisit after next push.

Resolved by https://github.com/PeaceGeeksSociety/services-advisor/pull/108

repo: PeaceGeeksSociety/services-advisor


text:
fix linked_list & add gitigonre

修复 remove 一个不存在的node时的死循环

thks，这里在循环里边没有让 curnode 后移，添加上 curnode=curnode.next 或者直接使用 iter_node() 都可以。

这个 mr 依然有错，见 https://github.com/PegasusWang/python_data_structures_and_algorithms/issues/5  ，没有更新prevnode。
讲义和代码已经修正。


text:
small icons

icons are small when i type lsd

how can i make them bigger?

The size of the icons is not something controlled by lsd. It is dependent on the font. Try changed your font to a different one from https://www.nerdfonts.com/font-downloads

I confirmed the issue, that is related to the package ttf-isovevka-nerd from the Arch repos.
Just remove ttf-isovevka-nerd  and install ttf-nerd-fonts-symbols-2048-em to solve this issue.

authors: Radius112 Zesko meain

repo: Peltoche/lsd


text:
Remove project coverage report

Any objections?

No strong objections, since the patch coverage is arguably more import for PRs, just curious what the rationale is for disabling the project coverage report :slightly_smiling_face:

repo: PennyLaneAI/catalyst


text:
QubitDevice removed from toplevel, along with their warnings

Title:
Remove QubitDevice warnings, which will be removed in the 0.40PL
Summary:
as title
Relevant references:
#https://github.com/PennyLaneAI/pennylane/pull/6537
Possible Drawbacks:
None
Related GitHub Issues:

Do we know if blue qubit has updated their device to accommodate this removal?

Do we know if blue qubit has updated their device to accommodate this removal?

@albi3ro , I messaged them on our slack channel when the deprecation first happened to let them know. They said they would resolve it, but I'm not sure if they have or not. I'll check in.

@JerryChen97 the blue qubit device has been fixed, so this PR can be merged now.

repo: PennyLaneAI/qml