SelectionSort

Checklist

[x] api
[x] implementation
[x] tests
[x] types
[x] documentation

API
function selectionSort(array, comparator = defaultCompare)

private function defaultCompare(a, b)

Specifics
Selection sort is a sorting algorithm that orders (default asc) items in an array. It works by comparing each item with each item to determine which is smaller. If the subsequent item is smaller it gets swapped in. Sorting is complete when every item in the array has been evaluated in this manner.
Notes

References

2.1 Elementary Sorts - Algorithms (4th ed)
Selection.java - Algorithms (4th ed)
Selection Sort - trekhleb/javascript-algorithms

Added in v0.6.0


Stacked rest.py processes

I believe I might have found a bug with your module.
I believe the following two posts may be experiencing this problem as well:
https://answers.splunk.com/answers/610189/new-scheduled-exec-process-python-optsplunketcapps.html
https://answers.splunk.com/answers/389392/issue-with-restpy-not-closing-and-running-out-of-m.html
I have written a Custom Reponse Handler to ingest data.  In an effort to keep from polling the entire dataset on every rest call, I update the URL parameters with a new filter value.
Example:
#the REST API Modular Input will automatically persist this update back to inputs.conf for you
req_args["params"]["filter"] = <current time + 1 second>
This gets written back to Splunk inputs.conf file.  Hence, every run of the rest.py loop it generates an updated inputs.conf file.
I believe Splunk sees this as a new inputs.conf entry and then starts a new instance of the rest.py.  Since rest.py is designed to run in a loop, the old instance continues to run while the new instance is created.  After a while, you get stacked up instances that just siphon the resources on the box and causes Splunk to crash.
I have update my code by commenting out the line that writes back to the inputs.conf and this behavior goes away, and only a single instance remains running.
My question is, is there a way this scenario can be handled with your module?
Obviously I can keep state via a tmp file or redis server, etc.  But this does not plumb into the rest.py code.
Thoughts?

Found another post with this issue.
https://answers.splunk.com/answers/655933/how-to-set-checkpoint-value-in-the-rest-api-modula.html


Improvements in email notifications on issues and pull requests

I would like to see some improvements in email notifications Gitea sends on issues and pull requests.
Content extensions:

distinguish issues and PRs in email subject and body
distinguish whether the issue is new, updated or closed in email subject and body
have different notifications on different comment types (e.g. different email, when I get assigned to an issue)

For that, I was thinking about having templates for subjects and adding some more data (e.g. issue and comment) to the data of the body template, so that custom templates can make use of that. Having separate templates per comment type may be an option too.
Besides, I would like to receive some more emails than today:

when user assignment changes, especially, when I get assigned to the issue/PR
on coder review, possibly both line-review comments and global review comment

Nice to have: defer the email sending and bundle some related updates into a single mail. This should be particularly useful for the review notifications. This may be somehow related to #145 by @andreynering.
I would like to hear some feedback. Perhaps I could contribute a PR.

I looked into this and after about an hour I gave up. The whole thing is not built very good. We have notifications, these are ok and get updated far more often than emails are sent. One would expect we have some kind of goroutine which sends mails based on notifications, but the whole notification implementation doesn't send any mails. Mails are being send directly by the function which creates an issue/pr comment. But not for all kinds of comments.... (this is the reason for #4279)
IMHO we should refactor these things in three steps:

Refactor the way emails are sent so they're sent based on notifications instead of issue comments
Built email content messages based on the notification type, then later add translatable strings (work for this has been done in #3875)
Make sure notifications are built for every issue action (assigned, unassigned, updated, etc.). Later possibility to make this configurable on a per-user basis,  letting the user decide which kind of notifications he wants to recieve.

@kolaente see https://github.com/go-gitea/gitea/pull/5085 , I will send another PR about mail notification after that merged.

@lunny Great, I haven't seen that!

@rasmk I agree with you we need a notification configuration UI after the mail refactoring finished.

The mail refactoring mentioned was #5085, right? Can we tackle this issue now? :)

Mail notification has merged also. See https://github.com/go-gitea/gitea/blob/master/modules/notification/mail/mail.go

I agree with @rasmk that we would need configuration options with an increase of emails. Is configuration available at all at the moment? I was contacted by a user with the request of opting-out of certain notification emails, though I haven't come across this functionality so far in Gitea. The ability to customize notifications for different repos would be brilliant, as certain repos may require greater attention than others.

I'm not sure if this is the correct place to report, but it seems like the issue templates can't be customised at the moment, even though the documentation states they are customisable.
If I create the template files according to the documentation/layout the content of the mail's don't change

#8329 partially addresses this.
Related to #145

Still in development, see:
https://github.com/go-gitea/gitea/issues/5083
https://github.com/go-gitea/gitea/pull/8329
Meanwhile, I'll see what I can do to hack the code.

Agree most of this is resolved/possible now


feat(Order/Interval/Set/Monotone): strictMono_of_pred_lt

Add strictMono_of_pred_lt and strictAnti_of_lt_pred.

Also fix a name from #16732. Do we have to deprecate the old one if it's been 12 hours?

Thanks!
bors merge


gptq 4bit avg loss is large

I user aotugptq convert blfloat model to in4 the avg loss is a bit larger than int 8.
Model is Mixtral-8X7B
int8 loss is almost 0.0004
it means that the loss of int4 is more serious?
INT4
INFO - Quantizing block_sparse_moe.experts.6.w3 in layer 29/32...
2024-04-18 09:50:18 INFO [auto_gptq.modeling._base] Quantizing block_sparse_moe.experts.6.w3 in layer 29/32...
2024-04-18 09:50:19 INFO [auto_gptq.quantization.gptq] duration: 1.210331678390503
2024-04-18 09:50:19 INFO [auto_gptq.quantization.gptq] avg loss:<PHONE_NUMBER>232422
INFO - Quantizing block_sparse_moe.experts.7.w3 in layer 29/32...
2024-04-18 09:50:19 INFO [auto_gptq.modeling._base] Quantizing block_sparse_moe.experts.7.w3 in layer 29/32...
2024-04-18 09:50:20 INFO [auto_gptq.quantization.gptq] duration: 1.2222824096679688
2024-04-18 09:50:20 INFO [auto_gptq.quantization.gptq] avg loss: 83.82467651367188
INFO - Quantizing block_sparse_moe.experts.0.w2 in layer 29/32...
2024-04-18 09:50:38 INFO [auto_gptq.modeling._base] Quantizing block_sparse_moe.experts.0.w2 in layer 29/32...
2024-04-18 09:50:43 INFO [auto_gptq.quantization.gptq] duration: 4.365283012390137
2024-04-18 09:50:43 INFO [auto_gptq.quantization.gptq] avg loss: 19.91876983642578
INFO - Quantizing block_sparse_moe.experts.1.w2 in layer 29/32...
2024-04-18 09:50:43 INFO [auto_gptq.modeling._base] Quantizing block_sparse_moe.experts.1.w2 in layer 29/32...
2024-04-18 09:50:47 INFO [auto_gptq.quantization.gptq] duration: 4.401262521743774
2024-04-18 09:50:47 INFO [auto_gptq.quantization.gptq] avg loss: 6.792891025543213
INFO - Quantizing block_sparse_moe.experts.2.w2 in layer 29/32...
2024-04-18 09:50:47 INFO [auto_gptq.modeling._base] Quantizing block_sparse_moe.experts.2.w2 in layer 29/32...
2024-04-18 09:50:52 INFO [auto_gptq.quantization.gptq] duration: 4.381655931472778
2024-04-18 09:50:52 INFO [auto_gptq.quantization.gptq] avg loss: 36.049583435058594
INFO - Quantizing block_sparse_moe.experts.3.w2 in layer 29/32...
2024-04-18 09:50:52 INFO [auto_gptq.modeling._base] Quantizing block_sparse_moe.experts.3.w2 in layer 29/32...
2024-04-18 09:50:56 INFO [auto_gptq.quantization.gptq] duration: 4.5015199184417725
2024-04-18 09:50:56 INFO [auto_gptq.quantization.gptq] avg loss: 13.600162506103516
INFO - Quantizing block_sparse_moe.experts.4.w2 in layer 29/32...
2024-04-18 09:50:56 INFO [auto_gptq.modeling._base] Quantizing block_sparse_moe.experts.4.w2 in layer 29/32...
2024-04-18 09:51:00 INFO [auto_gptq.quantization.gptq] duration: 4.375776290893555
2024-04-18 09:51:00 INFO [auto_gptq.quantization.gptq] avg loss: 2.8602569103240967
INFO - Quantizing block_sparse_moe.experts.5.w2 in layer 29/32...
2024-04-18 09:51:00 INFO [auto_gptq.modeling._base] Quantizing block_sparse_moe.experts.5.w2 in layer 29/32...
2024-04-18 09:51:05 INFO [auto_gptq.quantization.gptq] duration: 4.481191635131836
2024-04-18 09:51:05 INFO [auto_gptq.quantization.gptq] avg loss: 53.12783432006836
INFO - Quantizing block_sparse_moe.experts.6.w2 in layer 29/32...
2024-04-18 09:51:05 INFO [auto_gptq.modeling._base] Quantizing block_sparse_moe.experts.6.w2 in layer 29/32...
2024-04-18 09:51:10 INFO [auto_gptq.quantization.gptq] duration: 4.568590402603149
2024-04-18 09:51:10 INFO [auto_gptq.quantization.gptq] avg loss: 73.41600036621094
INFO - Quantizing block_sparse_moe.experts.7.w2 in layer 29/32...
2024-04-18 09:51:10 INFO [auto_gptq.modeling._base] Quantizing block_sparse_moe.experts.7.w2 in layer 29/32...
2024-04-18 09:51:14 INFO [auto_gptq.quantization.gptq] duration: 4.3780763149261475
2024-04-18 09:51:14 INFO [auto_gptq.quantization.gptq] avg loss: 27.395843505859375

Make sure you have proper dataset that is similar to the training dataset.

From my experience, moe models are mych harder to quant due to gate/routers.

You need good dataset, as close to originals training as possible with high enough of nsamples. 128 for every 7B is my rule.

Later layers have always had much higher losses than earlier layers.

Based on what you posted, can't tell if quant is good or not. Do ppl post quant and compare running avg loss of early vs later layers.


in the ion-range dualknobs example knobs are not moving

Ionic version:  (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x ] 3.x
I'm submitting a ...  (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
on the site dualknobs example is not working, knobs are not moving
Expected behavior:
knobs should move
Steps to reproduce:
directly copy this example which is on the ion-range example on the site.
 <ion-item>     <ion-label>dual, step=3, snaps, </ion-label>     <ion-range dualKnobs="true" [(ngModel)]="dualValue2" min="21" max="72" step="3" snaps="true"></ion-range>   </ion-item>
you wont be able to move knobs.
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
global packages:
@ionic/cli-utils : 1.4.0
Ionic CLI        : 3.4.0

local packages:
@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-ionic-angular : 1.3.1
Ionic Framework                 : ionic-angular 3.4.2

System:
Node       : v6.7.0
OS         : Windows 8.1
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 3.10.8

Does dualValue2 exist?
Are you on RTL by any chance? (range is broken on RTL, fixed in next version)
It works in the demo, so can you try the source:

    <ion-item>
      <ion-range dualKnobs="true" pin="true" [(ngModel)]="structure" color="dark">
        <ion-icon range-left small name="brush"></ion-icon>
        <ion-icon range-right name="brush"></ion-icon>
      </ion-range>
    </ion-item>

your example is not working either
here you can see that on the plunker
http://plnkr.co/edit/qHzkwh7UzRvyggZc0Ryb?p=preview

You didn't set structure. Set it to {lower: 33, upper: 60} and it works

@AmitMY thank you it is working now.
but if it's not a dualknob you don't need to set structure. that's weird

That is weird! Mind keeping this issue open?
Either there should be a default value set if value is not set (for example {lower: min, upper: max}, or it should be documented better: (I only knew how to help by looking at the source code)
Current doc:

Setting the dualKnobs property to true on the range component will enable two knobs on the range. If the range has two knobs, the value will be an object containing two properties: lower and upper.

Need to add something like "using dualKnobs you must set your model to have lower and upper, otherwise it will try to get and set undefined"

you are right.
if that helps ok i'll reopen

Thanks for using Ionic, we will look into this.


Support for 3D RenderTextures

Currently the editor reverts control to the default editor in this case.

Release 1.0.2


(QENG-1868) added 3.8 answers file, based on 3.7

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/Beaker Combined Smoketest/531/
:red_circle: Test failed.

retest this please

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/Beaker Combined Smoketest/535/
:red_circle: Test failed.

error unrelated to patch.


Suggestion: change Handle to HandleAsync

I was rendering a partial action in MVC (Html.RenderAction) and it cannot be async.
It would be nice to be able to implement both IRequestHandler and IHandler in the same query, so I can choose between async and normal methods, but a async Task and a void X are the same for C# (it says they are identical signarures).
Changing the IAsyncRequestHandler.Handle method to IAsyncRequestHandler.HandleAsync not only solves that kind of issue, but also conforms to the C# nomenclature, where async methods should end in Async.

In general I don't like a handler implementing both interfaces. It's a bit odd. You can do explicit implementation if you really like.


[Bug] Undefined array key "attribute" while filtering

Bug report
What I did
This was working in Laravel 7 and backpack 4 after the upgrade this error apear when using basic filters
As i debugged i see that "attribute" isnt present in applySearchLogicForColumn function line 85

The field in my controller is defined as following
        $this->crud->addField([
            'label' => 'Series', // Label for HTML form field
            'type'  => 'select',  // HTML element which displaying transactions
            'name'  => 'serie_id', // Table column which is FK for Customer table
            'entity' => 'serie', // Function (method) in Customer model which return transactions
            'attribute' => 'id', // Column which user see in select box
            'model' => 'Serie' // Model which contain FK
        ]);

Is it a bug in the latest version of Backpack?
Yes
Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version the output is:

Hello @GoatFreezy . I think there migth be some confusion here. You are showing me a field, but the error you report is in columns, so you should have some $this->crud->addColumn() statement ?
Thanks

Hello @pxpm. I've tried it already and it give me the exact same error as if it doesnt change anything. I've even tried to delete that part of the code and same errors happends. It seems that something break in the upgrade process tho i've read the upgrade guides and can't find anything related to my issue

Actually with only my fields defined for the List Operation the search bar doenst work.
protected function setupListOperation()
    {
        CRUD::column('name');
        CRUD::column('serie_id');
        CRUD::column('season_id');
        CRUD::column('number');
        CRUD::column('cover');
        CRUD::column('check');
        CRUD::column('path_fr');
        CRUD::column('path_jap');
        CRUD::column('duration');
    }

@GoatFreezy what are you trying to search ? What does not work ? You talk filters, columns etc and I am a bit lost here.
Some columns need you to do your own searchLogic https://backpackforlaravel.com/docs/5.x/crud-columns#custom-search-logic-for-columns is that the problem ?

Hello! I'm getting the same error only for one of my models.
Columns:

When I try to type smth in the 'search' field:

Model code:
class Vessel extends Model
{
    use \Backpack\CRUD\app\Models\Traits\CrudTrait;
    use HasFactory;
    use SoftDeletes;
    use Notifiable;

    protected $keyType = 'string';

    /**
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    protected $fillable = [
        'name',
        'company_id'
    ];

    /**
     * The event map for the model.
     *
     * @var array
     */
    protected $dispatchesEvents = [
        'created' => VesselCreated::class,
    ];

    public function company(): \Illuminate\Database\Eloquent\Relations\BelongsTo
    {
        return $this->belongsTo(Company::class, 'company_id', 'id');
    }
}

UPD: when I commented definition of column 'company_id' (uuid) the error didn't appear again. In the screenshot you can see my DB structure - column 'company_id' surely exists.

@pxpm Got the exacte same error as @rommeA described.
For me the error came after an upgrade of version and nothing in the code changed.
i actually have only the definition on my columns in my controllers et nothing special.
Im trying to filter on my relation ship via the search field in a list, do anything changer within the latest version ?
@rommeA After commenting you fields you still are being able to filter on it ?

@GoatFreezy I'm not using any filters (I didn't purchase a PRO version yet).
Anyways, I found a solution. Rename your columns and remove the '_id' part.
In my case I changed
CRUD::column('company_id')
to
CRUD::column('company')
After that change everything works fine.

@GoatFreezy Thanks it worked for me change service_id by service.
I don't understand why this happens


Fix transparent chain value pool calc (take in account komodo interest)

Description
Fix transparent value pool calculation including komodo interest.
Information
There are 4 chain value pools in zebra: transparent, sprout, sapling and orchard value pools.
A value pool accumulates total unspent value in the chain for the corresponding transaction type. It looks like value pools for shielded transactions are used for tracking value as part of private transaction consensus rules.
As I read in the zebra source code the transparent chain value pool ensures that this value is non-negative so it is better to maintain it in the correct state.
The transparent chain value pool is topped up with coinbase transparent outputs' value, spent with transactions' transparent inputs' value and increased by transaction transparent outputs' value.
As komodo interest is sent to outputs it is accounted in the chain value pool
More details
In initial komodo interest calculation the transaction interest was added to the transparent chain value pool incorrectly:
both the transaction value balance including the interest and separately calculated interest value for the tx were added to the pool value. As the result some tests began working incorrectly.
Apparently, komodo interest is a generated value for a certain tx (similar to coinbase value) and we should not subtract it from the value pool.
So we need to fix this calculation.
Further considerations
Transparent chain value pool is a consensus rule for zcash: their spec prohibits negative value pool (zip-209) and ensures the value pool is within some limit of money (section 3.4). So if we implement it we must take into account that above.
However in komodo apparently we do not have a transparent chain value pool and issue of money is not limited.
So maybe we must remove this feature at all from Komodo zebra.

In this commit https://github.com/dimxy/zebra/commit/a6c18d795e300b001b479f8a5c317eddda433ac6 two changes were made: removed calculation of interest,
and tx value balance was calculated with no interest on inputs (so the balance could be negative).
Since the chain value pool does not contain the current tx interest accrued to this height, this fix looks correct:
the chain pool value decreased by inputs (without interest accrued to this height) and increased by outputs (including the interest)

I need yet to check and fix fix_chain_value_pools() function used in tests. Seems it adds the currently accrued komodo interest to the pool value change but calculates tx value balance with no accrued interest on inputs.

Removed adding interest to chain pool value in prepared chain (used for tests) https://github.com/dimxy/zebra/commit/423a20bef2fc7294186b935b0597a5ef5f252b9b

Let's think more about disabling the transparent chain value pool at all as this feature does not exist in komodod rules and affects consensus

Eventually I restored transparent chain value pool calculation with use of interest (which is deducted for the tx value balance), in my latest zebra dev branch: https://github.com/dimxy/zebra/commit/8e60902b38cf007bc6b8491f876d1f0cabad5d34
I did this for consistency, to show the concept of both values but we should think if we need to disable it at all


fix chef_version_for_provides

also bonus fix for removing use of node.set in chefspec tests
Signed-off-by: Lamont Granquist<EMAIL_ADDRESS>

Cookstyle error there


[wallet-ext] Remove devnet NFT mint

Description
Describe the changes or additions included in this PR.
Test Plan
How did you test the new or updated feature?

If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)

[ ] user-visible impact
[ ] breaking change for a client SDKs
[ ] breaking change for FNs (FN binary must upgrade)
[ ] breaking change for validators or node operators (must upgrade binaries)
[ ] breaking change for on-chain data layout
[ ] necessitate either a data wipe or data migration

Release notes

Current dependencies on/for this PR:

main

PR #8895   👈

This comment was auto-generated by Graphite.


Add lint for statically-known out-of-bounds array access

E.g.
fn foo() {
    let x = [0; 10];
    println!("{}", x[100]); // warning: index expression is always out-of-bounds
}

The minimal viable form would just work with fixed sized arrays x: [T; n] and, for x[m] expressions, check if m is a compile-time constant and m >= n.

This is now implemented (MIR trans)
warning: this expression will panic at run-time


WinUI.Monaco-Editor KeyPress Notification back to WinUI UserControl

Greetings!  First this work is very useful.  I incorporated it on one of my Uno projects and works fine.
I am trying to understand how to get notified when (for example) Ctrl-S is pressed and get a notification in the WinUI3 UserControl so I can react accordingly.  I have work on this for a while but have not found an answer yet.
Can you provide some sample code to do this?

hi thanks for your comment. i think you have to observe it outside the monaco control. the monaco editor has some shortcuts (https://en.docs.monaca.io/products_guide/monaca_ide/editor) but no ctrl+s. :)
a question: how did you implement it on your uno project? i tried it on a uno app but it doesnt work for me :(

Greetings...
So far I don't see how to get Key-Pressed notifications to surface beyond
the monaco-editor jscript key processing, alternatively I have been trying
to find a way to register to such notification/event for Ctrl-S or other.
I just added a "Save" button in the host user-control within a menu-bar and
expected that the user pressed it.  Alternatively I may just automatically
save the content so the end-user will not carry the burden.
The WinUI.Monaco code has enough of the needed functionality that is needed
for my app.  I kept as much as possible the WinUI.Monaco (user-control C#)
code and want to make sure that is fully-attributed to their original
team.  Unfortunately, the code as downloaded do have a few issues (on my
app) that I resolve by making some adjustments including:

added an "InitializeEditorModel" method that is called upon the "Loaded"
event that will only call the original code once instead of every time the
"Loaded" method is invoked.  It turns out that I try to manage different
editor panels to edit different files (or content) and the original text
content is lost when I return to one of the TABs to view an already
instantiated content.  With this I can have various TABs one per one
file/content.  Once this is done I can create new tabs one per file or
content.  It works as expected.
added a simple way to manage a data model to submit/update new content.

Your thoughts?
Eduardo
(the sample code that implements a TabView to allow opening various Editors
for my app can be viewed in https://github.com/datovy-edam/Edam.Data.Catalog
comments/suggestions always welcomed)
On Tue, Nov 26, 2024 at 5:09 AM Lars Krämer @.***>
wrote:

hi thanks for your comment. i think you have to observe it outside the
monaco control. the monaco editor has some shortcuts (
https://en.docs.monaca.io/products_guide/monaca_ide/editor) but no
ctrl+s. :)
a question: how did you implement it on your uno project? i tried it on a
uno app but it doesnt work for me :(
—
Reply to this email directly, view it on GitHub
https://github.com/lk-code/winui.monaco-editor/issues/88#issuecomment-2500195006,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BG2F5N6GD5PYE57SXX7VEIT2CRCF7AVCNFSM6AAAAABSLFGPUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBQGE4TKMBQGY
.
You are receiving this because you authored the thread.Message ID:
@.***>


Autolayout Bug for Dagre algorithm

What platform were you using when you found the bug?

React Flow / Svelte Flow version:  12
Browser and version: Chrome latest
OS and version: windows

Live code example
No response
Describe the Bug
Hi when i add new node on click of "add root node" button . it adds a node and when i click on that child node it adds the node over there as well but when i remove that clich and add it again by clicking on the root node instead of "add root node" button it created a bend in the edges and casuing alot of space issue
Steps to reproduce the bug or issue
Initial Node Addition:

Click the "Add Root Node" button.

A new root node is added to the flow.
Child Node Addition:

Click on the newly added root node.

A new child node is added connected to the root node.

Removing and Re-Adding Nodes:

Click on the child node to remove it.
The child node is removed, and the associated edge is deleted.
Click the "Add Root Node" button again to add a new root node.

Re-Adding Nodes:

Click on the newly added root node to add a new child node.
A new child node is added, but edges may become bent or improperly positioned.

Issue Observed:
When re-adding nodes after removal, edges may show unwanted bends or space issues.
Expected behavior
The nodes should be placed at exact same location instead of bends in edges it should work straight because the parent have  only one child node
Screenshots or Videos

Additional context
I've added all the code from autolayout pro example and I found same issue on live example please fix this asap

I had faced something similar with dagre layout because the dagre instance was instantiated globally. This caused weird spacing and bends due to wrong lingering instance. What I did was instantiate inside of the function. Although it is expensive, it resolved the issue.
// not here
// const dagreGraph = new dagre.graphlib.Graph().setDefaultEdgeLabel(() => ({}));

const dagreLayout: LayoutAlgorithm = async (nodes, edges, options) => {
   // instantiate here
   const dagreGraph = new dagre.graphlib.Graph().setDefaultEdgeLabel(() => ({}));

  dagreGraph.setGraph({
    rankdir: options.direction,
    nodesep: options.spacing[0],
    ranksep: options.spacing[1],
  });

hey @afnanz7634, thanks for reporting this. we had a look and noticed that if you remove a node from the react flow state, it does not get removed from the dagre graph. this can be fixed by adding this to the dagre layout function (before setting the nodes):
  // first, we remove all nodes from the dagre graph
  // that are not in the react flow state anymore
  const existingNodeIds = nodes.map((node) => node.id);

  dagreGraph.nodes().forEach((node) => {
    if (!existingNodeIds.includes(node)) {
      dagreGraph.removeNode(node);
    }
  });

we have updated the pro example accordingly.


Add getters for VariantSet and ReadGroup.

Fixes issue #245. These methods are required by the ga2sam and ga2vcf tools, which convert a subset of a ReadGroup and VariantSet into SAM and VCF formats, respectively.

+1. We probably need those.

+1

Can you merge this please @adamnovak or @benedictpaten?

Done.

It doesn't seem to have merged @benedictpaten --- can you try it again please?


X Server crash on initial connection to dock

Hi,
I've probably encountered the same problem as mentioned in #153 .
When I boot my machine, login to my desktop and then connect it to the dock, the laptop screen will look strange for a short amount of time. After that I find myself back at the login screen. All running applications will be killed when the crash happens.
When I login to my account for the second time (dock still connected) everything works as expected as soon as I click on Login. After the crash happened, I can disconnect and reconnect the dock as often as I want. The crash will only happen the first time I connect the dock after a fresh boot.
My machine:
Schenker N130BU

Intel Core i5-7200U
Intel HD Graphics 620
16 GiB RAM

My Dock:
Targus DOCK117
My Configuration

DisplayLink Driver: 5.2.14
Linux Mint 19.3 (based on Ubuntu 18.04 bionic)
Kernel 4.15.0-74-generic
X.Org X Server 1.19.6
Desktop: Cinnamon 4.4.8
wm: muffin
dm: LightDM

Crash log
Before applying the fix from https://support.displaylink.com/knowledgebase/articles/1859356-x-server-crashes-on-nvidia-systems-when-displaylin
https://pastebin.com/2Wq1jSXJ
After applying the given fix from https://support.displaylink.com/knowledgebase/articles/1859356-x-server-crashes-on-nvidia-systems-when-displaylin
https://pastebin.com/3SuGmRhv

Hi,
can you also check if this
https://support.displaylink.com/knowledgebase/articles/1883074-ubuntu-16-04-x-server-starts-in-low-graphics-mode
would help?

echo "options evdi initial_device_count=2" | sudo tee -a /etc/modprobe.d/dkms.conf
This fixed the issue at hand @displaylink-dkurek . Thanks for the hint :tada:
I would highly appreciate a seperate knowledgebase article for this phenomena :slightly_smiling_face:

Yes, you are right. There are a lot of FAQs and those workarounds sometimes helps in other cases than stated.
Thanks for feedback that this worked for you. :)


Template version conflicts

Details
Describe the solution you'd like:

Let's assume a test scenario:

An umbrella chart to deploy our application, this chart will have two subcharts:

A chart using the latest version of the common library
A "third-party" chart using an outdated version of the common library (something like this chart)

When deploying the umbrella chart Helm will load the templates for both child charts and when template names collide, it will use the template that was loaded last as mentioned here. Best case scenario: it will render a manifest that won't have the desired features, worst case scenario: it will prevent manifest generation entirely. In both cases it's a really tricky thing to troubleshoot and will cause unexpected behaviour.
This is an issue with how Helm handles templates and it's especially bothersome when using library charts. There's no way of isolating templates or assigning priority to which template gets loaded last, and from comments I've seen there are no plans of supporting this in the near future.
Anything else you would like to add:

It seems like the community approaches this problem in one of two ways:

Always keeping all charts/subcharts up to date with the latest version, which is a consuming task, and kind of defeats the purpose of having versions altogether. Also, if it's a "third-party" chart we don't have direct control over when or how the common library gets updated, basically forcing us to rewrite the chart so we stay in control over the version
Adding some sort of versioning tag to the template names, so when they get loaded they can coexist and be referenced by their full name(which seems to me like the more elegant solution). Here are some discussions talking about this:

https://github.com/helm/helm/issues/11561
https://github.com/helm/helm/issues/11933
https://github.com/bitnami/charts/issues/20570

The only issue I see with the second approach is that if templates are updated manually and independently, this will cause versions to slip out of date, and will be a chore to keep up.
Additional Information:

I think there's a nice way of solving this: Since the only thing needed to load the common library is to have a template including "bjw-s.common.loader.init" and "bjw-s.common.loader.generate" we can use "bjw-s.common.loader.all template,  leave that template as unversioned to avoid forcing the users to update their chart's templates and suffixing the chart's version into the other templates` names. It would look something like this:

In the "parent" or "umbrella" chart we can keep calling the same template with no additional versiona:

# templates/common.tpl
{{/* Render the templates */}}
{{ include "bjw-s.common.loader.all" . }}

In the common library

# templates/loader/_all.tpl
{{- define "bjw-s.common.loader.all" -}}

...

{{- include  (printf "bjw-s.common.loader.init.%s" .Chart.Version) . }}

{{/* Render the templates */}}
{{ include (printf "bjw-s.common.loader.generate.%s" .Chart.Version) . }}

...

{{- end -}}

# templates/loader/_init.tpl
{{- define (printf "bjw-s.common.loader.init.%s" .Chart.Version) -}}
  {{- /* Merge the local chart values and the common chart defaults */ -}}
  {{- include (printf "bjw-s.common.values.init.%s" .Chart.Version)  . }}
{{- end -}}

# templates/loader/_generate.tpl
{{- define (printf "bjw-s.common.loader.generate.%s" .Chart.Version) -}}
  {{- /* Run global chart validations */ -}}
  {{- include (printf "bjw-s.common.lib.chart.validate.%s" .Chart.Version)  . -}}

  {{- /* Build the templates */ -}}
  {{- include (printf "bjw-s.common.render.pvcs.%s" .Chart.Version) . | nindent 0 -}}
  {{- include (printf "bjw-s.common.render.serviceAccount.%s" .Chart.Version) . | nindent 0 -}}
  {{- include (printf "bjw-s.common.render.controllers.%s" .Chart.Version) . | nindent 0 -}}

...

{{- end -}}

The downside of this is that the replacement will need to happen for all templates except for "bjw-s.common.loader.all", the upside is that it will only need to happen once.
If this is something that looks interesting to you I'll be more that happy to submit a PR with these changes

Actually, doing it like this wouldn't be feasible, since the define "name" must be strings and can't have () or $. So maybe a github action that replaces the version in the names? It would still work for the includes, those can be templated.


added default profile photo

description
#42
added a dummy/default profile image with a condition if user don't upload photo it will display default profile photo
screenshot

important
please verify from your end before merging and make me know if any problem occured, while i have also verified it's working on my local machine

hii,
i have commited new changes could you please check now it should center profile photo

and about this
The current design lacks proper color coordination, font styling, and spacing, leading to a basic appearance Please address this issue.
can we create new issue for this,
it's new topic and need to change whole website UI

hii, i have commited new changes could you please check now it should center profile photo  and about this The current design lacks proper color coordination, font styling, and spacing, leading to a basic appearance Please address this issue. can we create new issue for this, it's new topic and need to change whole website UI

Here just the welcome name and  email styling color combination and spacing is not visually appealing (which is in this page only), is a new issue required for this?

Oh sorry I thought you are asking for whole website

is it as per your expectation ?

@Vinayyy19 It's okay but ensure the color scheme is appropriately aligned with the overall color combination of the site, also handle cases (alignment part) when name is bigger and not fit in a single line.

yeah i have copied the exact color used in the entire code base

could you check out this now

i tried in minimal style but it was too normal so i added blue and white that had been use on whole website that make full website look more good rather than using one color , i think it was good if you'll check full website because it contains all used color at once if still you want we can change it but i'll recommend this is better
what do you say do we need to change it to minimal design ?


Local API - findByID works in beta.107 but is broken in beta.108

Describe the Bug
I believe that beta.108 broke the payload.findByID api in some way.
This is not an issue in beta.107
*However I was not able to reproduce this issue with the forked payload repo, where I checked out from a beta.108 tag.
Link to the code that reproduces this issue
https://github.com/martynasj/payload/blob/bug/test/_community/int.spec.ts#L51
Reproduction Steps

test('findByID api', async () => {
  const location = await payload.create({
    collection: 'locations',
    data: {
      name: 'New York',
    },
  })

  const allLocations = await payload.find({ collection: 'locations' })
  console.log(allLocations.docs)
  // finds array of these:
  // [
  //   {
  //     id: "671904875c999c26f3964f4a",
  //     name: "New York",
  //     createdAt: "2024-10-23T14:13:27.877Z",
  //     updatedAt: "2024-10-23T14:13:27.877Z",
  //   }
  // ]

  let singleLocation = await payload.db.collections['locations'].findById(location.id)
  console.log(singleLocation)
  // returns object like this:
  // {
  //   coordinates: {},
  //   _id: new ObjectId("671904875c999c26f3964f4a"),
  //   name: "Vilnius International Airport",
  //   createdAt: 2024-10-23T14:13:27.877Z,
  //   updatedAt: 2024-10-23T14:13:27.877Z,
  //   __v: 0,
  // }

  // throws NotFound error
  const singleLoc = await payload.findByID({ collection: 'locations', id: location.id })
})

Which area(s) are affected? (Select all that apply)
db-mongodb, area: core
Environment Info
Binaries:
Node: 20.17.0
npm: 10.8.2
Yarn: N/A
pnpm: 9.11.0
Relevant Packages:
payload: 3.0.0-beta.108
next: 15.0.0-canary.173
@payloadcms/db-mongodb: 3.0.0-beta.108
@payloadcms/email-nodemailer: 3.0.0-beta.108
@payloadcms/graphql: 3.0.0-beta.108
@payloadcms/next/utilities: 3.0.0-beta.108
@payloadcms/plugin-cloud: 3.0.0-beta.108
@payloadcms/richtext-lexical: 3.0.0-beta.108
@payloadcms/translations: 3.0.0-beta.108
@payloadcms/ui/shared: 3.0.0-beta.108
react: 19.0.0-rc-2d16326d-20240930
react-dom: 19.0.0-rc-2d16326d-20240930

I tested the provided test in the latest beta and it passes successfully.
In your own project where you're seeing this can you test on the latest beta please? Or at least like beta.116
If it still happens, can you then test it with a fresh database please?

Having the same problem on beta.118, also using bun. Find function works fine.

Sorry guys but Bun is not officially supported right now, at best using it as a package manager is still experimental.


Prototype HttpGet syscall

This PR prototypes GitHub read access as a HttpGet syscall.
The syscall takes three arguments: host, endpoint, route:

host specifies the service as different services format endpoints and routes differently and we wanna extract information (e.g., repository names and owners) for the purpose of security.
endpoint specifies the endpoint to send the HTTP request to. For GitHub, it is https://api.github.com.  For AWS S3, the endpoint can depend on the bucket, e.g., {bucket}.s3.amazonaws.com.
route specifies the REST API the HTTP GET request invokes, e.g., GitHub's repository REST API /repos/{owner}/{repo}.

The syscall can be tested by running the read_public_repo function in the folder snapfaas-images/github. Any requests would work as the function uses hardcoded values.

I started with the plan to implement the "GitHub reader" in a FaaS function. The problem with this approach is that such a function invocation needs to be synchronous just like the native key-value store reads. This special synchronous function invocation requires the controller to forward requests and reponses, which I think becomes too complex. I ended up directly exposing httpGet syscall to functions and directly processing the request on the host.
For the httpGet syscall, I intend for all three of its parameter to be the input of the calculation of the target resource's label.
Note: There is a third-party github rest api library octocrab but it is in async Rust so I gave up. Newer reqwest library also causes some dependency problem so I settled with reqwest 0.9.

TODO

Simplify the PR to be github specific.
Get authentication-required requests functional.

Add GithubRest syscall which currently implements GET and POST methods.
They can be tested following the commands below:
# generate test rootfs
cd snapfaas-images/rootfs/regular
./mk_appimage.sh python3 ../../github/post_commit_comment ../../../python3_github_post_commit_comment.ext4
# return to the snapfaas root directory
cd -
# build debug builds
cargo build
# test: post_commit_comment writes a "This is a test comment" comment to the first commit of the target repo
# The function first lists commits of the repo (GET) then creates the comment (POST)
python resources/github/gen_repo_req.py OWNER REPO | sudo GITHUB_AUTH_TOKEN=$(cat /path/to/your/oauth/token) target/debug/fc_wrapper --kernel resources/images/vmlinux-4.20.0 --mem_size 128 --rootfs python3_github_post_commit_comment.ext4 --vcpu_count 1

I leave out other HTTP methods as they seem irrelevant to us for now.


Passing invoice entity to invoice pdf file generator

Fixes https://github.com/Sylius/InvoicingPlugin/issues/111

Thank you, Bartosz! :1st_place_medal:


Official download links still point to 0.11.0rc2 instead of 0.11.0

Hi!
On https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md  the URLs still point to 0.11.0rc2 instead of 0.11.0.

#5629 just got merged!


Wrap the puzzle list in a table, as intended

puzzles_list.html provides a <tbody>, so it should be a child of a <table> element, as can be seen in puzzles.html. Without the wrapping <table> the formatting is poor.

Thanks! GPH hasn't had separate round pages recently, so this file fell by the wayside a little.


EMQX Operator compatibility problem in K8S

Describe the bug
When I use emqx-operator versioned 2.2.21 to install emqx versioned 5.6+ in K8S versioned 1.20, emqx is failed to start.
It says PodDisruptionBudget in "v1" is not existed.
When I check K8S doc, I found PodDisruptionBudget in "v1" is supported in k8s 1.21+ .
To Reproduce
Install emqx-ee versioned 5.6+ in 1.20 k8s cluster.
Expected behavior
Use different version of PodDisruptionBudget based on different k8s cluster version.

(~, 1.20] : policy/v1beta1
[1.21, ~): policy/v1

Anything else we need to know?:
Environment details::

Kubernetes version: 1.20
Cloud-provider/provisioner:
emqx-operator version: 2.2.21
Install method: e.g. helm/static manifests

Hi @IBeyondy This has been fixed in 2.2.22, please try it.
I don't have K8s cluster of 1.20, so if you have any problem, please let me know


Cannot take screenshot for platform-views by using RepaintBoundary?

Steps to Reproduce

run demo from webview_flutter
take screenshot by using RepaintBoundary.
get image:

flutter analyze
Analyzing flutter_app...
No issues found! (ran in 1.9s)

flutter doctor -v
[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.13.6 17G3025, locale zh-Hans-CN)
    • Flutter version 1.0.0 at /Users/zhaoya/zy/dev/flutter
    • Framework revision 5391447fae (13 days ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/zhaoya/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    ✗ ideviceinstaller is not installed; this is used to discover connected iOS devices.
      To install with Brew, run:
        brew install --HEAD usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 29.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[!] IntelliJ IDEA Community Edition (version 2016.2.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins
    ✗ This install is older than the minimum recommended version of 2017.1.0.

[✓] Connected device (1 available)
    • Robin • NBQGLMB612601533 • android-arm64 • Android 7.1.1 (API 25)

Is there any progress on this? I'm also experiencing the same issue.

@SeanningTatum I suggest you thumb up the issue if it affects you as well so it comes up when prioritizing.

@amirh I think you should add the platform-ios tag too, I experienced this in iOS.

@SeanningTatum on iOS it's a different issue (it wasn't implemented yet) the tracking issue for that is https://github.com/flutter/flutter/issues/23435

same issue for us and very annoying, any progress ?

May be related to 33568

Issue is reproducible on latest dev channel (1.20.0-0.0.pre) and with latest version of webview_flutter.

flutter doctor -v
[✓] Flutter (Channel dev, 1.20.0-0.0.pre, on Mac OS X 10.15.2 19C57, locale en-US)
    • Flutter version 1.20.0-0.0.pre at /Users/deeptibelsare/Documents/Fluttersdk/flutter
    • Framework revision d9653445f4 (8 days ago), 2020-06-09 18:43:03 -0400
    • Engine revision e8c13aa012
    • Dart version 2.9.0 (build 2.9.0-14.0.dev 5c1376615e)

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/deeptibelsare/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/deeptibelsare/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/deeptibelsare/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3, Build version 11C29
    • CocoaPods version 1.9.3

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

! Doctor found issues in 1 category.

code sample
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
import 'package:path_provider/path_provider.dart';
import 'dart:io';

import 'package:webview_flutter/webview_flutter.dart';
import 'package:gallery_saver/gallery_saver.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: new MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => new _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  static GlobalKey previewContainer = new GlobalKey();

  @override
  Widget build(BuildContext context) {

    return RepaintBoundary(
        key: previewContainer,
        child: new Scaffold(
          appBar: new AppBar(

            title: new Text(widget.title),
          ),
          body: new Center(
            child: WebView(
              initialUrl: 'https://google.com',
            ),
          ),
          floatingActionButton: new FloatingActionButton(
            onPressed: takeScreenShot,
            tooltip: 'Increment',
            child: new Icon(Icons.add),
          ), // This trailing comma makes auto-formatting nicer for build methods.
        )
    );
  }
  Future<void> takeScreenShot() async {
    return Future.delayed(const Duration(milliseconds: 20), () async {
      RenderRepaintBoundary boundary = previewContainer.currentContext.findRenderObject();
      ui.Image image = await boundary.toImage();
      final directory = (await getApplicationDocumentsDirectory()).path;
      ByteData byteData = await image.toByteData(format: ui.ImageByteFormat.png);
      Uint8List pngBytes = byteData.buffer.asUint8List();
      print(pngBytes);
      File imgFile =new File('$directory/screenshot.png');
      GallerySaver.saveImage('$directory/screenshot.png');
      imgFile.writeAsBytes(pngBytes);
    });
  }
}

Any progress?

Well, I know this may be a controversial suggestion, but the flutter_inappwebview is an alternative plugin which currently support taking screenshots (takeScreenshot function). While this isn't prioritized, it may be reasonable to use this alternative plugin if this functionality is essential for your application (like it was for me).

Update: webview_flutter 1.0.x with Hybrid-Composition enabled reproduces as well

in fact, it is " Cannot take screenshot for PlatformView by using RepaintBoundary"

Reproducible on latest master channel. Note that this is an issue with platform-views and not just webview

Code
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';

import 'package:webview_flutter/webview_flutter.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: new MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => new _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  static GlobalKey previewContainer = new GlobalKey();

  dynamic image;

  @override
  Widget build(BuildContext context) {
    return RepaintBoundary(
        key: previewContainer,
        child: Scaffold(
          appBar: AppBar(
            title: Text(widget.title),
          ),
          body: Center(
            child: WebView(
              initialUrl: 'https://google.com',
            ),
          ),
          floatingActionButton: FloatingActionButton(
            onPressed: () => takeScreenShot(context),
            tooltip: 'Increment',
            child: Icon(Icons.add),
          ), // This trailing comma makes auto-formatting nicer for build methods.
        )
    );
  }

  Future<void> takeScreenShot(BuildContext context) async {
    RenderRepaintBoundary boundary =
    previewContainer.currentContext.findRenderObject();
    ui.Image image = await boundary.toImage();
    ByteData byteData = await image.toByteData(format: ui.ImageByteFormat.png);
    Uint8List pngBytes = byteData.buffer.asUint8List();
    print(pngBytes);

    showDialog(
        context: context,
        builder: (_) {
          return Dialog(
            child: Image.memory(pngBytes, width: 200, height: 350),
          );
        });
  }
}

flutter doctor -v
[✓] Flutter (Channel master, 1.25.0-5.0.pre.91, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
    • Flutter version 1.25.0-5.0.pre.91 at /Users/pedromassango/dev/SDKs/flutter_master
    • Framework revision 7dade22f25 (16 hours ago), 2020-12-06 21:34:04 +0530
    • Engine revision 6491c7518f
    • Dart version 2.12.0 (build 2.12.0-120.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 52.0.4
    • Dart plugin version 202.8070

[✓] VS Code (version 1.51.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (3 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • macOS (desktop)             • macos         • darwin-x64     • Mac OS X 10.15.7 19H2 darwin-x64
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 86.0.4240.198

• No issues found!
Process finished with exit code 0

IOS also has such problem instead of just Android platform;

have any progress?

have any progress?

Any progress?

Another two-year old bug, I see. Dev with two code bases seems faster than this..

Well, I know this may be a controversial suggestion, but the flutter_inappwebview is an alternative plugin which currently support taking screenshots (takeScreenshot function). While this isn't prioritized, it may be reasonable to use this alternative plugin if this functionality is essential for your application (like it was for me).

yes i know it is alternative plugin but using that plugin i can not take screenshot of current state, for example in webview i am drawing something and then i want to take screenshot with drawing ,which is not happening using  [flutter_inappwebview].

Could you expose this feature from the WkWebview api on iOS.  It has takeSnapshot and createPDF options.

The only way that I think this might work is to create a javascript channel and insert something like this.  https://html2canvas.hertzen.com/ I haven't tested this yet but its the only idea I have to get around this problem until flutter adds it to the webview.

This is a limitation of platform views at the moment. The current workaround on Android is to use the Espresso framework.  I don't have an example I can share at the moment, but internal teams at Google have done this successfully when using hybrid composition.

Is there any progress on this? I'm also experiencing the same issue.

Any progress?

same problem use in apple_map_flutter

any way for apple_map_flutter

The Flutter team will be working on this feature this quarter. You can follow progress on https://github.com/flutter/flutter/issues/83856.


FN - private key compromise

Hi!
Recently there was a big PCK compromise where:

Attacker was added as a minter - here
Address minted here and here

Do we know in cases of tokens that have been for a while, does addminter frecuently happens?
I'm thinking that if it's super strange to add a new minter, maybe we could add coverage. The gap here between the addminter and the mint was 6 minutes and maybe it could have been prevented

If we start seeings FPs on Attack Detector, we could later remove it

Thanks @Vxatz


Costs for frequently used primitives

We will need to build up the primitives of the library and the associated costs. Here I will keep a running list of primitives I find that are useful and where to find their references.  @tanujkhattar

[x] Binary Squaring (Appendix G 2105.12767, Lemma 7). Square an n-bit binary number using $n^2 - n$ Toffoli gates.
[x] Sum of 3 n-bit numbers (Appendix G 2105.12767, Lemma 8) in cost $3n^2 - n -1$ Tofflis
[x] Sum of the squares of k n-bit numbers (Appendix G 2105.12767, Lemma 9) costing $kn^2$ Toffli gates
[x] Binary products of one n-bit number and one m-bit number (Appendix G 2105.12767, Lemma 10) costing $2nm - n$ Toffolis where $n \geq m$
[x] $n$ -bit adder ( Quantum 2, 74 (2018)) $n$-Toffoli gates (expand on this more)
[x] Bitonic Swap network on n-items uses a number of comparators (less than or equal operations written to a bit) that is upper bound by $\rfloor n/2 \lfloor q(q+1)/2$ where $q = \lceil \log(n)\rceil$
[x] Comparators between two n-bit numbers costs $4n - 3$ Toffoli (npj Quantum Information volume 4, Article number: 22 (2018), Appendix)
[x] Synthesizing an element of SU(2) costs $1.15\log(1/\epsilon) + 9.2$ T-gates on average (Phys. Rev. Lett. 114, 080502 )
[x] Uniform superposition over $M = 2^{k}L$ numbers where $L$ is odd. (linear T-paper) $k + 2 \log(L) + O(1)$, which includes $\log(L)$ ancilla, and $2k + 10 \log(L) + \mathcal{O}(\log(1/\epsilon))$ T-gates if the protocol is controlled and $8\log(L) +\mathcal{O}(\log(1/\epsilon))$ T-gates if it is not.  if $L=0$ then T-count is zero. If $L=1$ T-count is $2k$. The $\mathcal{O}(\log(1/\epsilon))$ is from circuit synthesis and usually goes as $1.15 \log(1/\epsilon) + 9.2$ on average.

def uniform_prepare_cost(num_items: int, controlled=False,
                         epsilon_for_rotations=1.0E-8):
    """return T-count for construction of a uniform superposition

    :param int num_items: number of items to generate superposition over
    :param bool controlled: (Default false). Flag if circuit is
                            controlled or not
    :param epsilon for rotations: Precision for Z-rotations in preparation.
                                  1.0E-8 is about 30 T-gates per rotation.
    :returns: T-count.  ancilla, T-count.
                        Space complexity is k + 2 log(L) + O(1).
                        The factor of 2 comes from the unary
                        iteration on log(L), + O(1) is from the

    """
    import numpy as np
    from sympy import factorint
    # get factorization of num_items = 2^{k}L where L is odd
    if num_items % 2 == 1:
        k = 0
        L = num_items
        factors = factorint(num_items)
    else:
        factors = factorint(num_items)
        if 2 in list(sorted(factors.keys())):
            k = factors[2]
            L = num_items // 2**k
    if not np.isclose(2**k * L, num_items) or L % 2 == 0:
        raise ValueError("Factorization of num_items into 2^k L form was unsuccessful")

    precision_rotation_cost = np.ceil(1.15 * np.ceil(np.log(1/epsilon_for_rotations)) + 9.2)
    if L == 1 and not controlled:
        return 0, 0
    elif L == 1 and controlled:
        return 0, 2 * k
    elif controlled and L > 1:
        return np.ceil(np.log2(L)) + 1, 2 * k + 10 * np.ceil(np.log2(L)) + precision_rotation_cost
    elif not controlled and L > 1:
        return np.ceil(np.log2(L)) + 1, 8 * np.ceil(np.log2(L)) + precision_rotation_cost

[ ] Uniform superposition over unary representation $n$-numbers on $n$-bits (one-hot-encoding), $n$ controlled rotations (not sure the breakdown of cost here) + $k$ CNOT ((npj Quantum Information volume 4, Article number: 22 (2018), Appendix))
[x] SelectSWAP where selection register spans integers $[0, k-1]$ in binary and swap is on an $\log(m)$-bit register with a $\log(N)$-bit register costs $k\lceil \log(m)\rceil + k\lceil \log(N) \rceil$
[x] MultiControl-X $C^{n}X$ costs $2(n-1)$ Toffoli and $n-1$ ancilla (Mike and Ike Figure 4.10)
[ ] Decrement a register of size $\log(N)$ by 1 costs $\sum_{x=1}^{\log(n)-1}C^{x}X$ Toffoli.  A controlled version is $\sum_{x=1}^{\log(n)-1}C^{x+1}X$ Toffoli

Is there anything left in this? Can we close in favor of more specific issues?

I think if anything is missing new issues can be raised organically.


Improve rectangle surrounding object

Not perfect, but now encompasses the object.

@homu r+

:pushpin: Commit be2b5b7 has been approved by smo-key

:hourglass: Testing commit be2b5b7 with merge fa18aa4...

:sunny: Test successful - status

@homu r-


Adapting hydra to 2.0.1

this seems like just an internal change yeah? Should still just start the the containers with hydra start_genesis or does this update that process?

this seems like just an internal change yeah? Should still just start the the containers with hydra start_genesis or does this update that process?

just tried this and it seems that yes start_genesis will still kick-off the containers as before.
On a different note @IPadawans, does this change also allow us to simplify the launch process for the metagraph L0 nodes to start all at once?

this seems like just an internal change yeah? Should still just start the the containers with hydra start_genesis or does this update that process?

just tried this and it seems that yes start_genesis will still kick-off the containers as before.
On a different note @IPadawans, does this change also allow us to simplify the launch process for the metagraph L0 nodes to start all at once?

Not easily @scasplte2 , we just added a new command to create the genesis and then started using this created genesis the way that was before. IMO we can add more complexity trying to do this. It makes sense?


HighQuality preset doesn´t work for me

Hey, i don´t know if i am doing something wrog but, low and medium presets workes fine, if i try to turn the high on nothing happens.
allready reinstalled gshade.
if its matter
RTX 3080
resolution      3440 x 1440, 144Hz

A few people have had this issue and I have no idea what causes it, it has to somehow be an issue with gshade since the preset works for the majority of people. The medium and high quality presets are basically the same anyways, the SSAO on the high quality is just a little better.


Fix paths for the chemiscope spinx on the website

Added html_baseurl to the conf.py but it is relevant only for the website ! In the website there is one more folder doc but if we run it locally there is no additional folder.
Here is the script  to check how it will work on the website:
tox -e docs
rm -rf tmp && mkdir tmp/
cp -r docs/build/html tmp/doc/
cd tmp
python -m http.server

Problem has been fixed by #343 and #344


Provide an opportunity to determine situations when loadable components condition execution is not needed

In the current implementation, each of WebElement's method are being listened for invocation and invoking each one of these is starting execution of loadable components condition hierarchy. We can think of some situation where this is not needed - for example when we have visibility condition set and we're invoking WebElement::getAttribute method - in this case the visibility condition does not have to be met, as element can be present in the markup but not visible. Getting attributes from it won't break anything.

We will revisit loadable functionality in the future, closing this for now.


r24 fails to build on IA32 (32-bit x86)

Regressed by 5216839b9aff. From error log:
In file included from src/fmtcl/Dither.cpp:29:
src/fmtcl/Dither.h:210:26: error: unknown type name '__m128i'
        static fstb_FORCEINLINE __m128i
                                ^
src/fmtcl/Dither.h:212:26: error: unknown type name '__m128i'
        static fstb_FORCEINLINE __m128i
                                ^
src/fmtcl/Dither.h:213:33: error: unknown type name '__m128i'
                       remap_tpdf_vec (__m128i d) noexcept;
                                       ^
src/fmtcl/Dither.cpp:1662:17: error: out-of-line definition of 'generate_dith_n_vec' does not match any declaration in 'fmtcl::Dither'
__m128i Dither::generate_dith_n_vec (uint32_t &rnd_state) noexcept
                ^~~~~~~~~~~~~~~~~~~
src/fmtcl/Dither.cpp:1704:17: error: out-of-line definition of 'remap_tpdf_vec' does not match any declaration in 'fmtcl::Dither'
__m128i Dither::remap_tpdf_vec (__m128i d) noexcept
                ^~~~~~~~~~~~~~
src/fmtcl/Dither.cpp:1532:23: error: use of undeclared identifier 'generate_dith_n_vec'
                        __m128i                 dith_n = generate_dith_n_vec <TN_FLAG> (rnd_state);
                                                         ^
src/fmtcl/Dither.cpp:1094:2: note: in instantiation of function template specialization 'fmtcl::Dither::process_seg_common_int_int_sse2<false, false, fmtcl::SplFmt_INT8, 8, fmtcl::SplFmt_INT16, 9, (lambda at src/fmtcl/Dither.cpp:1097:3)>' requested here
        process_seg_common_int_int_sse2 <
        ^
src/fmtcl/Dither.cpp:615:4: note: in instantiation of function template specialization 'fmtcl::Dither::process_seg_ord_int_int_sse2<false, false, false, fmtcl::SplFmt_INT8, 8, fmtcl::SplFmt_INT16, 9>' requested here
                        fmtcl_Dither_SET_FNC_INT_SSE2,
                        ^
src/fmtcl/Dither.cpp:1662:17: note: must qualify identifier to find this declaration in dependent base class
__m128i Dither::generate_dith_n_vec (uint32_t &rnd_state) noexcept
                ^

Works here but I guess why it could fail. Does c6e76cb3ed83e97294053ffc3e53b4be07968554 fix the problem?

Thanks, builds fine now.


await res.json()

Without await, we receive a promise instead of an expected value

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[Diagnostics] Require explicit releasenone.

Functions which which consume their arguments will release them on any branches where the arguments are unused.  Users of @_effects(readnone) and @_effects(readonly) may not consider this when annotating their functions.  Require that functions annotated thus are also annotated @_effects(releasenone).
In order to support this, adjust SILFunctionBuilder to allow distinct non-custom effects and to interpret such "conflicting" guarantees to provide the strongest guarantee.  For example, annotating a function both @_effects(readnone) and @_effects(releasenone) is equivalent to only annotating it @_effects(readnone).

@swift-ci please test

These diagnostics are raised when reading the swiftinterface in the SDK.  One solution would be to make them warnings:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/swift/Swift.swiftmodule/x86_64-apple-macos.swiftinterface:21053:15: error: annotation implies no releases, but consumes parameter 'stringInterpolation'
  @inlinable @_effects(readonly) public init(stringInterpolation: Swift.DefaultStringInterpolation) {
              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/swift/Swift.swiftmodule/x86_64-apple-macos.swiftinterface:21053:46: note: parameter 'stringInterpolation' defined here
  @inlinable @_effects(readonly) public init(stringInterpolation: Swift.DefaultStringInterpolation) {
                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/swift/Swift.swiftmodule/x86_64-apple-macos.swiftinterface:21053:15: note: add explicit @_effects(releasenone) if this is intended
  @inlinable @_effects(readonly) public init(stringInterpolation: Swift.DefaultStringInterpolation) {
              ^
                                @_effects(releasenone)

Downgraded to warnings.
@swift-ci please test

Moved new diagnostics into SILFunctionBuilder::addFunctionAttributes.
@swift-ci please test

@swift-ci please benchmark

@swift-ci please test source compatibility

Similar infrastructure issue: common.ExecuteCommandFailure: ExecuteCommandFailure(command="git -C /Users/ec2-user/jenkins/workspace/swift-PR-source-compat-suite-debug-macos/swift-source-compat-suite/project_cache/AsyncNinja clean -ffdx", returncode=1)
@swift-ci Please Test Source Compatibility Debug

@swift-ci please test


[FEATURE REQUEST] More config options

Description:
I would like to have the possibility to change the multipliers for the upgrades.
Also a way to hide the fluid and controller tooltip from upgrades

ditto I want to change the storage upgrade multipliers as well


Server class should support ssh authentication

In GitLab by @arisilon on Nov 26, 2021, 10:44
In addition to a (user, password) tuple, authentication should allow for an ssh key filename.

In GitLab by @arisilon on Jun 1, 2023, 14:50
mentioned in commit 076914c1974db7e448a44abc95d9c410004ae2da


gauge install --all is not recognized

Expected behavior
Commands in the gauge help --legacy should work.
Actual behavior
gauge install --all is not recognized.
Steps to replicate

command line
gauge install --all

Version
Gauge version: 0.9.1.nightly-2017-08-09

Plugins
-------
html-report (4.0.2.nightly-2017-08-07)
java (0.6.5.nightly-2017-07-26)

@sguptatw you just need to run gauge install. We need to update the legacy message.

Fix should be available in nightly >= 10-08-2017

The gauge help --legacy wordings is not clear - It just says Gauge 0.8.5 and below. This message has to be more clearer. Something like Use new commands instead of the commands used earlier Gauge 0.8.5 and below.
gauge help --legacy
Gauge 0.8.5 and below

Options:
<all options are listed here>

The invocation here explicitly has --legacy. So it implies the user is looking for legacy help. I guess having Gauge 0.8.5 and below is enough to indicate the version below which the legacy commands should be used.


[Awake]  Keep Screen On icon looks too much like a distorted checkbox

Description of the new feature / enhancement
Maybe a different, more descriptive icon can be used in place of the current one.
Maybe a screen with a stand.
Scenario when this would be used?
It would prevent users from confusing it as a checkbox of sorts......

Supporting information
No response

That's good feedback - I am updating the glyph in the next version of Awake. Look for #24183.


Configuration Migration Strategy for Device Settings

When the gateway starts up and synchronizes device settings from the cloud, it causes an issue with legacy configurations.
These older settings may lack required fields that were introduced in newer firmware versions. Currently, these incomplete configurations aren't being removed or updated, which results in the gateway creating new OpenPerpetualDeviceTasks for potentially invalid device configurations.
Configuration formats will likely continue to evolve with future firmware updates. We need a systematic approach to handle version differences between stored configurations and current firmware requirements.

Json is flexible as you can always add information - and then deprecate the old field.
I suggest this is handled as close as possible to the actual definition of the setting in question.

This should basically be handled in the SettingsDeviceListener at a high level. Then in the respective device class at a low level.


make the html timestamps a bit more readable

2020-11-04T21:41:50.861000Z -> 2020-11-04 21:41:50

i reverted this to fix a bug https://cryptocatz.slack.com/archives/C13A1B3RS/p1604547731265500

someone else is working on a fix

Yeah, the timestamps were intentionally ISO8601 because they were being parsed and replaced by day.js on the client side. @DanSimon, do you have JS disabled?

oh, yes I had js disabled


Extending CVE with additional information not validating the CVE schema

We are currently developing vulnerability-lookup where the organisation operating an instance can extend a CVE with comments or additional information.  We were wondering what would be the best option to add such extended meta-data in a CVE, we looked into adp but it seems bound to the fields defined in the schema. What would be the best option? We don't want to create a new external format to encapsulate the CVE entries too. We assume someone has already addressed this issue and are seeking the best strategy.

Within the constraints that there are only two ADPs right now, and the guidance for additional ADPs is still being developed, it is possible for an ADP to provide data that is not  inherently supported by the CNA container. For example, the CISA ADP provides SSVC and KEV using custom schema.
It is expected that an ADP using custom data/schema would need to provide the schema defintion and documenation.

Did @zmanion address your question @adulau?   Right now, only authorized entities can update the official CVE record.
Out of curiosity, what kind of information would you want to add to the record?


ICustomTokenRequestValidator Transient service not working on first request

Hello,
I am attempting to add a client claim when a request comes through from a client using the client_credentials flow.  I created a class that implements ICustomTokenRequestValidator:
`    public class CustomTokenRequestValidator : ICustomTokenRequestValidator
{
    public Task ValidateAsync(CustomTokenRequestValidationContext context)
    {
        var result = context.Result;

        if(result.IsError == false)
        {
            if(result.ValidatedRequest.Client.ClientId == "clientid")
            {
                string[] strpassedids = result.ValidatedRequest.Raw.GetValues("passed_through_id");
                string strPassedID = strpassedids[0];

                var client = context.Result.ValidatedRequest.Client;
                client.Claims.Add(new Claim("passed_id", strPassedID));
                return Task.CompletedTask;
            }
            else
            {
                throw new Exception("Error Validation Token: " + result.ErrorDescription);
            }
        }
        else
        {
            throw new Exception("Error Validation Token: " + result.ErrorDescription);
        }
    }
}`

I then added this class as a transient service in DI:
           builder.Services.AddTransient<ICustomTokenRequestValidator, CustomTokenRequestValidator>();
Once I start IdentityServer4, the first time I submit a request to the token endpoint, the added claim is not there.  But after the first time, the added claim is there everytime.  If I put a breakpoint in the code, the claim is there the first time. This indicates to me that the ICustomTokenRequestValidator is not done by the time the access token is created and returned to the client. Is there something more I need to do to insure the claim will be added?
Any suggestions would be appreciated.
Thanks.

Adding claims like
var client = context.Result.ValidatedRequest.
client.Claims.Add(new Claim("passed_id", strPassedID));

can have side effects - especially with the in-memory config store. There is a client claims collection directly on the ValidatedRequest object - use this one instead.

I updated my claims to be added directly to the ValidatedRequest.ClientClaims collection and it worked the first time and all subsequent times. Thanks for the assistance.


bump version

Codecov Report

Merging #45 (4b9a5db) into master (d27d668) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #45   +/-   ##
=======================================
  Coverage   99.46%   99.46%
=======================================
  Files           6        6
  Lines         186      187    +1
=======================================
+ Hits          185      186    +1
  Misses          1        1

Impacted Files
Coverage Δ

isabelle_client/__init__.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Feature/1005 - Assets Folder Properties Support

Resolves #1005
Re-factored to leverage the default Sling POST Servlet, and invokes the OOTB FolderShareHandler via a PostProcessor.

Config policy required
Granite UI names are off the sling:Folder and NOT the [sling:*Folder]/jcr:content

Example property for setting Brand Portal mcConfig property

acs-aem-commons-assets-folder-properties-support-1.0.0.zip

Coverage increased (+0.1%) to 25.751% when pulling 98594a7cefa70ceb76d2765ca885f59abeddf635 on davidjgonzalez:feature/1005 into dc491d8392ac3341396e420b1dddd7bac7d56224 on Adobe-Consulting-Services:master.

Coverage increased (+0.1%) to 25.751% when pulling 98594a7cefa70ceb76d2765ca885f59abeddf635 on davidjgonzalez:feature/1005 into dc491d8392ac3341396e420b1dddd7bac7d56224 on Adobe-Consulting-Services:master.

@ireasor thanks for the review! will adjust

@ireasor also removed the null check on the service reference object in process(..) since the reference requires it to be satisfied for the @Component to become active.

Coverage increased (+0.1%) to 25.743% when pulling 3da4c56c868ce89df17334534553e545ee1831fa on davidjgonzalez:feature/1005 into dc491d8392ac3341396e420b1dddd7bac7d56224 on Adobe-Consulting-Services:master.


NCSDK setup

Dear Master Pinto,
in your very thorough and kind step by step I miss the NCSDK v2 setup... when do you consider best to install it (after which step number)?
After seeing some stretch issues, do you use ubuntu 16.04 in rasp? which exactly (@ rasp site there are two: ubuntu mate & snappy)
thx!!

@bsense-rius

in your very thorough and kind step by step I miss the NCSDK v2 setup... when do you consider best to install it (after which step number)?

Immediately after "2.Extend the SWAP area (Raspbian Stretch Only)" is the best.

After seeing some stretch issues, do you use ubuntu 16.04 in rasp? which exactly (@ rasp site there are two: ubuntu mate & snappy)

I think that "Ubuntu Mate" and "Ubuntu 16.04" are essentially the same.
However, I have not tried the configuration of RaspberryPi + Ubuntu 16.04.
The official support OS of each maker is "Ubuntu".
Since the procedure by "Raspbian" is my own procedure, it is informal.

@bsense-rius
I fixed the procedure.

so... what is your setup so that we could reproduce all the steps? raspbian stretch or ubuntu mate? the youtube videos seem that it is raspbian.
anyway thanks!

@bsense-rius
Raspbian Stretch
#3 However, just as before, "Ubuntu Mate" seems to succeed.

thanks!


How to set expectations for inside anonymous functions

Apologies if this is mentioned in the documentation, I've looked but couldn't see anything that would help. Given the following code, how would I go about testing that the code within the anonymous function?
public function register(): void
{
    add_action('init', function () {

        // Register the post type.
        register_post_type($this->postType, $this->arguments);

        // Add the columns
        if(isset($this->columns)) {
            $this->columns->register();
        }
    });
}

I've tried the following, the assertTrue works fine, but the test fails at expect('register_post_type')->once();.
expect('register_post_type')->once();

$this->createInstance()->register();

$this->assertTrue(has_action('init', 'function ()'));

Hi,
Brain Monkey does not execute the code that you add to hooks, because to do that it would need to "emulate" WordPress and that's not its scope.
You can imagine Brain Monkey as something that counts how many times add_action / do_action / add_filter / apply_filters are called and with arguments.
That said, there's the possibility to use whenHappen() to sort-of hook when one of these functions is called and do "things" with the passed argument. Consider the passed argument to your add_action is a callback, you could execute it.
For example, assuming a SUT like this:
class Sut {

    private $postType;
    private $arguments;
    private $columns;

    public function __construct(string $postType, array $arguments, ?Columns $columns)
    {
        $this->postType = $postType;
        $this->arguments = $arguments;
        $this->columns = $columns;
    }

    public function register(): void
    {
        add_action('init',
            function () {

                // Register the post type.
                register_post_type($this->postType, $this->arguments);

                // Add the columns
                if (isset($this->columns)) {
                    $this->columns->register();
                }
            });
    }
}

You could test in like this:
    public function testRegister()
    {
        $postType = 'post';
        $arguments = ['public' => true];

        $columns = \Mockery::mock('Columns');
        $columns->shouldReceive('register')->once()->withNoArgs();

        Brain\Monkey\Functions\expect('register_post_type')
            ->once()
            ->with($postType, $arguments);

        \Brain\Monkey\Actions\expectAdded('init')
            ->once()
            ->with('function ()')
            ->whenHappen(static function (callable $callback): void {
                // This executes the callback passed as argument to add_action('init')
                $callback();
            });

        $instance = new Sut($postType, $arguments, $columns);
        $instance->register();
    }

Note 1
Documentation for whenHappen can be found here: https://giuseppe-mazzapica.gitbook.io/brain-monkey/wordpress-specific-tools/wordpress-hooks-done#respond-to-actions
Note 2
While this work, usually tests start to become a lot complex when doing things like that. Probably you can consider to don't add hooks inside register() but use  register() as hook callback.
That is having a method like thins:
    public function register(): void
    {
         // Register the post type.
        register_post_type($this->postType, $this->arguments);

       // Add the columns
       if (isset($this->columns)) {
          $this->columns->register();
       }
    }

And then in the place where you currently do:
$instance->register();

you could do instead:
add_action('init', [$instance, 'register']);

This way you could test the register method much more easily, and regarding where the hook is added, you just need to test the hook is actually called with the right callback, and Brain Monkey is perfect for that:
\Brain\Monkey\Actions\expectAdded('init')->once()->with([$instance, 'register']);

Perfect thank you, in my case whenHappen was what I needed.


It's changing my minimal frequency for both big and little core

Had this issue with your module
I can't modify those even from kernel side, it locks minimal frequency for both cores to an higher value than usual, in my case 979 mhz for big for example when my usual min freq is 300 mhz and I can't change that in any way.
I fixed removing some lines from your module by myself, I think your module should not edit min and max freq in any way actually

There's no way to alter the target frequency without chaging the min/max frequency range.
Anyway you can modify the config to suit your need.

Point is your module should not touch frequencies imho

Point is your module should not touch frequencies imho

Well, the module simply take over the QTI perfd 's job which do the same but comes with your device by default.
Which means the frequency is controlled by system 's default daemon but now managed by this module.
If you want to controlled the frequency yourself or by governer itself then you need to disable this module and stop the system performance daemon.

@duepii Well, you can disable CPU frequency range override by setting these knobs to false:
        "knobs": [
            {
                "name": "cpuFreqMax",
                "path": "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_max_freq",
                "type": "cpufreq",
                "enable": false
            },
            {
                "name": "cpuFreqMin",
                "path": "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_min_freq",
                "type": "cpufreq",
                "enable": false
            },
]


oql-parameters

Please use the form below, leaving the prefilled data to help us. Thank you.
Page link: oql-parameters
Document link: oql-parameters.md
My Issue/Suggestion
provide examples with java for each supported type ; especially using IN operator

Hi François,
Sorry about the delay in getting back to you.
Thanks very much for your suggestion. I have been trying to find time in the developers' schedule to get some input into creating examples of OQL.
You will be pleased to hear that have embarked on a project to substantially improve the OQL documentation altogether and provide a lot more examples and other information about OQL. You should see some improvements in a few weeks time.
Please let us know if you see any other areas for improvement in the OQL documentation once this first pass has been complete.
Thanks again for your suggestion for making the Mendix documentation better.
Yours
Mark van Ments


Correction for raw affiliation ICAR UMR 5191, CNRS, ENS de Lyon, Université Lyon 2, 69342 Lyon, France

Correction needed for raw affiliation ICAR UMR 5191, CNRS, ENS de Lyon, Université Lyon 2, 69342 Lyon, France
raw_affiliation_name: ICAR UMR 5191, CNRS, ENS de Lyon, Université Lyon 2, 69342 Lyon, France
new_rors: 03rth4p18;04zmssz18;02feahw73;04mn0nr69
previous_rors: 029brtt94;04zmssz18;02feahw73
works_examples: W4400126910
contact: 34b0fa07284eb800666792a7f343a41e:84c47951fdf3a09764139a20cf38 @ ens-lyon.fr

This issue was accepted and ingested by the OpenAlex team on 2024-12-19. The new affiliations should be visible within the next 7 days.


Added script to validate packages before releasing

Codecov Report

Merging #405 into dev will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff         @@
##            dev   #405   +/-   ##
===================================
  Coverage    86%    86%
===================================
  Files        56     56
  Lines      4372   4372
  Branches    468    468
===================================
  Hits       3760   3760
  Misses      462    462
  Partials    150    150

Continue to review full report at Codecov.

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


Get exact values of constants from ROOT

You mean the constants in backends/numexpr.py? Are there are other constants defined elsewhere?
In any case it is probably a good idea to move all those to a separate file, to be easily checked and seen.
As for whether they should all come from ROOT, that needs a discussion perhaps, as I am pretty sure ROOT does not have all you need. In fact, why do you need all those constants?

Note that we have constants defined in scikit-hep, which we do want to use throughout the Scikit-HEP project for consistency ...

These constants are only used for compatibility with TFormula style expressions as numexpr doesn't have an equivalent. See backends/ROOT.py.
I see 4 options for how to interpret a constant from ROOT, for example using TMath::G() which is defined as exactly 6.673e-11 in ROOT but ~100x more precisely known to be 6.67408e-11.

"TMath::G()" goes to "TMath::G()" in ROOT and "6.67408e-11" in numexpr (currently used)
"TMath::G()" goes to "TMath::G()" in ROOT and "6.673e-11" in numexpr
"TMath::G()" goes to "6.673e-11" in ROOT and "6.673e-11" in numexpr
"TMath::G()" goes to "6.67408e-11" in ROOT and "6.67408e-11" in numexpr

(2)/(3) have the benefit that we exactly mirror ROOT's behaviour instead of assuming they just want the best possible value, and (3)/(4) would be simpler as it would allow me to remove the special named constants, at the cost making the result of from_root("...").to_root() ROOT uglier.
I'm inclined to use (2), in part due to the comments of @jpivarski:

it may even be preferable to hard-code them in formulate. Hear me out: users want formulate because it lets them run TFormula expressions in numexpr, without ROOT. They want these expressions to return the same result as they did in TFormula. If there are any differences between ROOT's values of these constants and Scipy's, or skhep's, the users would prefer ROOT's values. I believe the users would want all of the constants in formulate/backends/numexpr.py to be copied from ROOT, not taken from another authority, such as Scipy or skhep!

but I'm open to hearing other opinions.

Hmm, you need to have consistency across the board. No other way possible. So if I start with a ROOT expression that explicitly uses TMath::G() (for whatever reason) then whatever expression is return at any point, it should have precisely the value behind TMath::G(). If I start from another backend and then ask for the ROOT'y expression then you cannot or should not use TMath::G() but rather the actual number you start from.


(PUP-4749) testdir incorrectly used in calling all functions test

The previous version of this test incorrectly handled the testdir
variable, as it could have been set from multiple agents, when they
exist (puppet server).  This is a simple change to only have a single
agents loop, rather than having to store an array or hash of testdirs.

:see_no_evil: This looks good to me and looks like it's passing Travis.  Not sure about the appveyor failure but doesn't seem like this should have caused any Ruby spec tests to fail since this is just an acceptance test change.  @kurtwall, @er0ck, or @hlindberg - any reason we shouldn't just merge this?

Although, should this PR be targeted at stable and then merged back up to master after it goes in?

LGTM. Merging because the AppVeyor build failure is unrelated.

@kurtwall - will this fix get merged back to the stable branch at some point?

@camlow325 I presume with the next merge-up to stable.


[backport] Change console monitor path to /spice_auto.html

The way it's now, sending a request to the root path "/" will
respond with a 404. The proper base url to use is http://:6082/spice_auto.html.
This commit changes the nova console monitor to send packets to this URL.
The HTTPS nova spice console monitor was removed because it is unused.
Connects https://github.com/rcbops/rpc-openstack/issues/1671
(cherry picked from commit 38d44ec134b5f89c9a7dc81b4738a996f6c5a70b)

recheck_ceph

recheck_swift

LGTM


Docs proofreading

@johnnyaug

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: johnnyaug:x: arouyanYou have signed the CLA already but the status is still pending? Let us recheck it.


Update front-door-security-headers.md

Add clarification that header values are limited to 128 characters
closes #68493

@shahiddev : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@shahiddev : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ktoliver please merge this PR. Thank you!


Error with diffenator / 'NoneType' object is not iterable

Running on one variable font (Nunito)
INFO:__main__:Running Diffenator
Traceback (most recent call last):
  File "/Users/rosalie/Google/env/bin/gftools-qa.py", line 492, in <module>
    main()
  File "/Users/rosalie/Google/env/bin/gftools-qa.py", line 479, in main
    qa.diffenator()
  File "/Users/rosalie/Google/env/bin/gftools-qa.py", line 141, in diffenator
    for style in self.matching_instances:
TypeError: 'NoneType' object is not iterable

I take it you're trying to run this pr, https://github.com/google/fonts/pull/4309 locally?

yep

Same issue with https://github.com/google/fonts/pull/4291
I reinstalled all the brew packages, and gftools gen-html diff -imgs works fine

That CI issue happened because the issue was too long to post, not diffenator.
Exception: GitHub POST query failed to url https://api.github.com/repos/google/fonts/issues/4291/comments:
 [ { 'code': 'unprocessable',
    'field': 'data',
    'message': 'Body is too long (maximum is 65536 characters)',
    'resource': 'IssueComment'}]
Error: Process completed with exit code 1.

but I am doing it locally not trying to post it

I'm also getting the same problem here. This is before it tries to post anything:
$ PYTHONPATH=~/others-repos/gftools/Lib gftools qa -f *.ttf --diffenator
INFO:__main__:No regression checks possible since there are no previous fonts.
INFO:__main__:Running Diffenator
Traceback (most recent call last):
  File "/opt/homebrew/bin/gftools-qa.py", line 500, in <module>
    main()
  File "/opt/homebrew/bin/gftools-qa.py", line 487, in main
    qa.diffenator()
  File "/opt/homebrew/bin/gftools-qa.py", line 149, in diffenator
    for style in self.matching_instances:
TypeError: 'NoneType' object is not iterable

Actually this is probably because it can't find the previous fonts, d'oh. Adding -fb ~/others-repos/fonts/ofl/notosans/*.ttf works...

diffenator is supposed to load the fonts from GF

If you add -a, yes?

AH silly me, you were right, I forgot the -gfb argument, don't know why I thought it was doing it automatically.

tbh the error message could be better so I'm reopening this.

We use diffenator2 so I think this is now stale. We also get a better error message now when a match cannot be found:
ValueError: Matcher was not able to detect any matching styles for instances method.
Please ensure that variable fonts have fvar instances, both fonts have designspaces which overlap or ensure that both sets of static fonts have some matching styles.


As the Designer, I want to use the Vim Syntastic plugin so that I can implement lint checkers for various programming languages.

[x] Evaluate 'getting started' setting.
[x] Evaluate new or updated key bindings.
[x] Test configuration.

This issue was completed with git-commit 13bc467.


⚠ Processors has degraded performance

In b7f5a9b, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 58 ms

Resolved: Processors performance has improved in 9f77fdf.


August maintenance releases - RC1 of 17.0.9, 18.0.8, 19.0.2

Tested an upgrade from 17.0.8 through all RCs up to 19.0.2 RC1