[Transaction] Adopt single thread pool in TC

Motivation
Optimize code and improve maintainability.
Modification

Option 1 (the way I use)
Create a thread pool at peer TC.

advantage
Each TC has a single thread pool to perform its own tasks, and will not be blocked due to sharing a single  thread with other TCs
disadvantage
Too many thread pools may be created

Option 2
Create an ExecuteProvider in the TC service.  It create some single-threaded pools when the TC Service is created, and  then assign a single-threaded pool to TC when the TC is created

The advantages and disadvantages are opposite to the option one

Verifying this change

[ ] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API: (yes / no)
The schema: (yes / no / don't know)
The default values of configurations: (yes / no)
The wire protocol: (yes / no)
The rest endpoints: (yes / no)
The admin cli options: (yes / no)
Anything that affects deployment: (yes / no / don't know)

Documentation
Check the box below or label this PR directly (if you have committer privilege).
Need to update docs?

[ ] doc-required
(If you need help on updating docs, create a doc issue)

[x] no-need-doc
(Please explain why)

[ ] doc
(If this PR contains doc changes)

/pulsarbot run-failure-checks

This PR introduced a thread leak. Please review #14524 which is a fix for that particular problem.


kvm: Do not rebase DATADISK in vm start/migration

Description
We do not need to rebase the qcow2 image of DATADISK and ROOT disk which does not have a backing file.

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[X] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[X] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

@blueorangutan package

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. [S]

Packaging result: :heavy_check_mark: centos7 :heavy_check_mark: centos8 :heavy_check_mark: debian. SL-JID 95

@blueorangutan test

@shwstppr a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests [S]

[S] Trillian test result (tid-91)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 34323 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4800-t91-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Smoke tests completed. 85 look OK, 1 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

test_01_migrate_VM_and_root_volume
Error
80.66
test_vm_life_cycle.py

test_02_migrate_VM_with_two_data_disks
Error
48.22
test_vm_life_cycle.py

@weizhouapache I'm confused by your description in context of the code change. If we do have a disk, but no backing format, we go ahead and rebase it as qcow2, am I right?
and if we don't have a file path or we do have a backing format, we do nothing.

@weizhouapache I'm confused by your description in context of the code change. If we do have a disk, but no backing format, we go ahead and rebase it as qcow2, am I right?
and if we don't have a file path or we do have a backing format, we do nothing.

@DaanHoogland I changed the title and description.
we do nothing if (1) disk does not have a backing file ; (2) disk has backing file, and also backing file format.
we set backing file format only if disk has a backing file but does not have backing file format.

@weizhouapache I'm confused by your description in context of the code change. If we do have a disk, but no backing format, we go ahead and rebase it as qcow2, am I right?
and if we don't have a file path or we do have a backing format, we do nothing.

@DaanHoogland I changed the title and description.
we do nothing if (1) disk does not have a backing file ; (2) disk has backing file, and also backing file format.
we set backing file format only if disk has a backing file but backing file format is missing

exactly what the code does, good text for the tin ;)

@blueorangutan package

@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. [S]

@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. [S]

@blueorangutan package

@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. [S]

Packaging result: :heavy_check_mark: centos7 :heavy_multiplication_x: centos8 :heavy_multiplication_x: debian. SL-JID 152

@blueorangutan test

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests [S]

@blueorangutan test

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Trillian test result (tid-245)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36842 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4800-t245-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Smoke tests completed. 85 look OK, 1 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

test_01_migrate_VM_and_root_volume
Error
82.99
test_vm_life_cycle.py

test_02_migrate_VM_with_two_data_disks
Error
52.30
test_vm_life_cycle.py


[Label] Cursor for labels attached to inputs should probably be default

See title.
Or maybe the docs/examples could recommend using label instead of div, which would also enable the clickable label for="" mechanics

I added a new example with label/for in next version docs.


Alexey on GitHub ask fix npe retention time

Manually resolved conflicts.

Strange, this test runs fine locally?!

That did it.


Normalize line endings on paste

Enables pasting multi-line text into the terminal.
cc @EisenbergEffect, @yangl900, @DuncanmaMSFT
Fixes #660

@Tyriar This the PR I mentioned in our email exchange earlier :)

I created an issue for tracking and amended the top comment so it will close off automatically :smiley:

@parisk coveralls doesn't seem to be completing, the build seems to have completed successfully though https://travis-ci.org/sourcelair/xterm.js/jobs/230548323

Seems to be OK now 😄 .

I'm seeing some weird behavior after this. For the following string:
a
b
c

Cmd pastes on same line:

Powershell pastes in reverse and the cursor is on the first line:


Facial emotion recognition using FER library and MTCNN

Kindly assign this project to me under GSSOC'24

Can you assign it to me? @Niketkumardheeryan
GitHub profile link: https://github.com/ashis2004
Email ID<EMAIL_ADDRESS>What is your participant role?: GSSoC-2024 contributor
Can you add the label for GSSoC, i want to work on it
Thanks.

Can you assign it to me? @Niketkumardheeryan
Full Name- Gaurav Kumar Singh
GitHub profile link: https://github.com/Gaurav-576
Approach:

using opencv top perform bounding box operation on a human face

then using YOLO to predict age and gender of the person

If needed, I am flexible to change my approach as per the project requirements.
What is your participant role?: GSSoC-2024 contributor
Thanks.


Change wording for API Token

I changed the wording so that it says "Create API Token". I also edited the help message so that it actually helps the user.
Issue #11874

Hi @arshm06, this looks good but you will need to update translations as well before we can merge.

@di I have updated translations. Thank you!


[#3206] - use modified date from metadata for last updated display

Pull Request Checklist:

[x] Positive Test Case Written by Dev

[x] Automated Testing

[x] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

Open a resource landing page, verify last updated isn't now.

oh, I didn't realize we had that problem on the my resources page.  I'll look into wrapping it into this PR... should be small enough.


Video tutorial for Custom entry type

For review.

@koppor : maybe it can be published now?

Done. Sorry for delay. Too much other things going on.

No problems! (only solutions)


Change Sort Order Once Again

Sorts by position first, then by required, then by alphabetical.

:+1:


Squiss.stop: Wait for currently running jobs to complete

My comprehension of the stop method is that it tells Squiss to stop polling/fetching new jobs, but it does nothing about currently running jobs.
To properly handle a graceful shutdown when the server stops (on SIGTERM signal), I think that the stop method should also accept a timeout param in ms and returns a Promise after all the running jobs are completed (or the timeout has expired). This way, we could have the following code:
// Handling graceful shutdown
const gracefulShutdown = () =>
  myQueue.stop(true, 10000)
    .then(() => process.exit(0));

process.on('SIGTERM', gracefulShutdown);

Jobs which are in the middle of their processing now have 10 additional seconds, to either complete their job, rollback some transactions, etc
What do you think?

Any update?

@loris  I have created an enhanced, typescriped library based on this one with your fix in it - https://github.com/PruvoNet/squiss-ts
Please be aware that the api is not fully backwards compatible. Please let me know if that helps you


perf(plugins/image-to-txt): use logical core count

Checklist

[x] Run npm test
[ ] Documentation has been updated and adheres to the style described in CONTRIBUTING.md
[x] Commit message adheres to the Conventional commits style, following the @commitlint/config-conventional config

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
668

Relevant Lines:
668

💛  - Coveralls


Add Homebrew instructions for installing on macOS

Ready to go once Homebrew/homebrew-cask#112320 is merged

Hey @weiameili or @jakoritarleite, do you have a macOS machine with Pensala and Homebrew installed?
Could you run the following commands and share the output?
brew tap nrlquaker/createzap
brew createzap pensela

I'm trying to get Pensela added to Homebrew in https://github.com/Homebrew/homebrew-cask/pull/112320
It's nearly ready to go and regular install and uninstall works fine 👍
However, for a "super uninstall" they have an option --zap which removes extra config/temp files created by the app.
Someone needs to run Pensela first to know what these files are, which I can't do.
So it would be great if you were able to run Pensela and the commands above to get the paths of these extra config files so they can be zapped ⚡
Thanks!

Oh got you.
I do have a Mac which I use, but I'm not with it right now. I will be able to create the zap stanza just at wednesday.
Right after I create the zap I'll reach you.

Thanks @jakoritarleite!


[backend] Search function

Won't fix due of sunsetting this project.

This should be kept in the issues, and maybe we will open up a repo for Nightjar, that time we can refer to these issues to design some features.

yeah, when we get to the build phase, this feature will most likely happen.


define rodata after data

this seems needed for esp8266 to get things to work properly (when placing rodata in ram at least)
I have no idea why this makes a difference though

Hi @icewind1991, I recently discovered a bug with the linker script (see https://github.com/esp-rs/xtensa-lx-rt/pull/22) this might have been the issue with esp8266, would you mind trying again?


Updating Block Headers after we receive the block

The header was not being persisted because it was already found in the database.
Added a second method to update it.

Please check tests

Merging to see if this fixes the critical issue - we will comment out / clean up the tests later


Add Dockerfile Lint

fix #148
fix #121

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 7

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 7

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 7

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 7

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 7

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 8

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 8

See the complete overview on Codacy


DB null layout render doesn't work in whenEmpty

NLog version: 4.7.2
Platform: .Net 4.8
Current NLog config
<?xml version="1.0" encoding="utf-8" ?>
<nlog internalLogLevel="Warn"
  internalLogFile="C:\Temp\NLog.Internal.txt"
  internalLogToConsole="true"
  autoReload="true"
  throwExceptions="true"
  xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <targets async="true">
    <target xsi:type="Database" name="DbDefault"
            connectionStringName = "frameworkLogging"
            commandText = "INSERT INTO Logs ([Date], [Level], [Logger], [Message], [Exception], [LogGuid], [Username], [Source], [LogGroupingIdentifier]) VALUES (@log_date, @level, @logger, @message, @exception, @logGuid, @username, @source, @logGroupingIdentifier)" keepConnection="true">
      ...
      <parameter name="@exception" layout="${exception:format=tostring:whenEmpty=${db-null}}" />
      ...
    </target>
    ...
</nlog>

What is the current result?
When exception is empty/null, an empty string.
What is the expected result?
When exception is empty/null, a NULL value is written to the database.
Did you checked the Internal log?
trace: 2020-08-04 10:27:20.6864 Trace   DatabaseTarget: Parameter: '@exception' = '' (String)
Are there any workarounds? no
Is there a version in which it did work?
Not that I know of
Can you help us by writing an unit test?
Not sure

What happens if you add parameterType="System.Object" :
<parameter name="@exception" layout="${exception:format=tostring:whenEmpty=${db-null}}" parameterType="System.Object" />

Interesting, that works like a charm.
I assume that could also fix cases where I try to log a system.Guid? to a nullable guid column.
Would it be possible within the scope of this issue to document the use of system.Object for nullable columns? Or may be it's clearer to add an additional argument to to parameter, like:
<parameter name="@exception" layout="${exception:format=tostring:whenEmpty=${db-null}}" allowNullValues="true" />

There are two DatabaseTarget parameter properties:

dbType="DbType" - What type to send to the database.
parameterType="Type" - What type to convert into before sending to the database (Default String, but if having specified dbType= then it tries to guess a better value).

When parameterType converts to string, then it also translates null into string.Empty. When using parameterType="System.Object" then it means do not perform any conversion (Take the raw output).
NLog 4.6 changed DatabaseTarget from only supporting string to support custom DbType and ParameterType. But it would be breaking change if starting to take the non-string-road by default (Not having configured dbType or parameterType).

Have no opinion about adding a allowDbNull-property so when null or string.empty then it automatically coalesce into DbNull. Removing the need to specify whenEmpty=${db-null}.

Resolved by #4076


error: native library SDL2 is being linked to by more than one version of the same package, but it can only be linked once; try updating or pinning your dependencies to ensure that this package only shows up once

http://puu.sh/qglql/a99cbbb906.png
My dependencies:
[dependencies]
sdl2 = "0.21"
sdl2_image = "0.16.0"
sdl2_ttf = "0.21"
sdl2_mixer = "0.17.0"

Quick fix: Change all the version numbers to "0.21".
[dependencies]
sdl2 = "0.21"
sdl2_image = "0.21"
sdl2_ttf = "0.21"
sdl2_mixer = "0.21"

Currently, these projects are keeping their version numbers in sync, so just make sure you're using the same versions of all these dependencies. For example, you should be able to upgrade to 0.22 of everything in a few more weeks, but don't try to mix 0.22 of one crate with 0.21 of another.

sdl2_ttf recently pushed a new version for 0.22, so depending on the other crates it may be possible to use 0.22 for everything now.

Should this be closed and marked as fixed now?


Issue with MudDataGrid and CommittedItemChanges event

Bug type
Component
Component name
MudDataGrid
What happened?
The Columns that utilize EditTemplates will not fire CommittedItemChanges event when editing inline. Below is an example from MudBlazor.com under "Editing" for "MudDataGrid":
    <Column T="Element" Field="Position">
        <EditTemplate>
            <MudSelect @bind-Value="context.Item.Position" Required RequiredError="You must select a Position!!!"<EMAIL_ADDRESS>                <MudSelectItem Value="0">zero</MudSelectItem>
                <MudSelectItem Value="1">one</MudSelectItem>
                <MudSelectItem Value="17">seventeen</MudSelectItem>
            </MudSelect>
        </EditTemplate>
    </Column>

Expected behavior
There should be mechanism to fire the change events when editing inline using custom templates.
Reproduction link
https://try.mudblazor.com/snippet/cEQGkrOFOUVHpYnD
Reproduction steps
1.Run the snippet
2.Changing name field will fire the committed change event
3.Changing Position field will not fire the committed change event
...
Relevant log output
No response
Version (bug)
6.0.10
Version (working)
No response
What browsers are you seeing the problem on?
Microsoft Edge
On what operating system are you experiencing the issue?
Windows
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Just wanted to add the same issue.
I'm having trouble with numeric fields not fireing the CommitedItemsChanges when using custom EditTemplate.
I added the custom EditTemplate becouse leving it auto will not work (crash on convert double to decimal?) when fields are nullable.
Any help would be appriciated to overcome this issue.
<Column T="CostBalance" Field="@nameof(CostBalance.Qta)" Title="Quantity">
<CellTemplate>
    @((context.Item.Qta ?? 0).ToString("F2"))
</CellTemplate>
<EditTemplate>
    <MudNumericField @bind-Value="context.Item.Qta"
        Min="0" Required RequiredError="Add quantity!"
        Format="N2" Immediate="true" />
</EditTemplate>
</Column>

I ran into the same issue, and developed a work around.  Sharing here in case it is helpful.  I created a new component that uses the Mud Component I want to use in the EditTemplate, pass in the context to the new component as a required Parameter, and catch the MudDataGrid as a CascadingParameter.  I then bind the Value and ValueChanged of the Mud Component separately (rather than using bind-Value) and, in the ValueChanged callback, invoke the CommitedItemChanges.
Example of the new component ("Editor.razor"):
<MudSelect T="int" Value="Position" ValueChanged="HandleValueChanged"
    Required RequiredError="You must select a Position!!!"<EMAIL_ADDRESS>                    <MudSelectItem Value="0">zero</MudSelectItem>
                    <MudSelectItem Value="1">one</MudSelectItem>
                    <MudSelectItem Value="17">seventeen</MudSelectItem>
</MudSelect>

@code{
    [Parameter]
    [EditorRequired]
    public CellContext<Element> Context { get; set; } = default!;

    [CascadingParameter]
    public MudDataGrid<Element> DataGrid { get; set; } = default!;

    private int Position
    {
        get => Context.Item.Position;

    }

    private async Task HandleValueChanged(int newPosition)
    {
        Context.Item.Position = newPosition;
        await DataGrid.CommittedItemChanges.InvokeAsync(Context.Item);
    }
}

Example of usage (note the Editor component in the EditTemplate, and the context being passed in to the Context parameter):
<MudDataGrid T="Element" Items="@Elements.Take(4)" ReadOnly="false"
    EditMode="DataGridEditMode.Cell"
    CommittedItemChanges="@CommittedItemChanges"
    Bordered="true" Dense="true">
    <Columns>
        <TemplateColumn Title="Position">
            <EditTemplate>
                <Editor Context="@context"/>
            </EditTemplate>
        </TemplateColumn>
    </Columns>
</MudDataGrid>

Link to working example:
https://try.mudblazor.com/snippet/wEwREAFqzQsOJuen

Yeah I ended up here with the same issue, we're using MudDataGrid with EditTemplate extensively now and need it working as we're deploying to production...
Using your work around for now @keg247 Thanks so much for posting that!
Hoping this is addressed some time soon!

The other way around without additional component, that works for numeric editors:
<MudNumericField Variant="Variant.Text" Step="1" Min="0" Max="6"<EMAIL_ADDRESS>T="int" ValueChanged="f => { context.Item.Number= f; _dataGrid.CommittedItemChanges.InvokeAsync(context.Item); }" />

Here's my Workaround which uses Generics
 <PropertyColumn Property="x=>x.MinWeight" Title="Min Weight">      <EditTemplate>          <NewFix T="SupplierInvoiceLineItemDTO" TValue="int" Context="context" ValueExpression="x=> x.MinWeight" />      </EditTemplate>  </PropertyColumn>
And the Matching Component
`
@typeparam T
@typeparam TValue
@using System.Linq.Expressions
@using System.Reflection

@code {
    [Parameter]
    [EditorRequired]
    public CellContext Context { get; set; } = default!;
[CascadingParameter]
public MudDataGrid<T> DataGrid { get; set; } = default!;

[Parameter]
public Expression<Func<T, TValue>> ValueExpression { get; set; } = default!;

[Parameter]
public string Format { get; set; }

[Parameter]
public bool HideSpinners { get; set; }

private TValue GetValue()
{
    var compiledExpression = ValueExpression.Compile();
    return compiledExpression(Context.Item);
}

private async Task HandleValueChanged(TValue newValue)
{
    var memberExpression = ValueExpression.Body as MemberExpression;
    if (memberExpression != null)
    {
        var property = memberExpression.Member as PropertyInfo;
        if (property != null)
        {
            property.SetValue(Context.Item, newValue);
            await DataGrid.CommittedItemChanges.InvokeAsync(Context.Item);
        }
    }
}

}
`


Research on BBS+ Signature scheme

https://www.youtube.com/watch?v=hXxQqQLBVZ8&t=2s
https://www.youtube.com/watch?v=AVnCVzW0rkI
https://www.youtube.com/results?search_query=bbs+signature
https://w3c-ccg.github.io/ldp-bbs2020/

https://academy.affinidi.com/deciphering-bbs-signatures-e853bbf437bf
https://docs.modernising.opg.service.justice.gov.uk/research-development/articles/verifiable-credentials-bbs/
https://opensourcelibs.com/lib/bbs-signatures
https://www.lfph.io/wp-content/uploads/2021/02/Verifiable-Credentials-Flavors-Explained.pdf
https://docs.modernising.opg.service.justice.gov.uk/research-development/articles/verifiable-credentials-bbs/
Traditional Digital Signatures
Traditional digital signatures look a bit like this. You have a message and a keypair (private and public key) which you use to produce a digital signature on the data.
By having the message, public key, and the signature; verifiers are able to evaluate whether the signature is valid or not,

BBS+ or Multi messsage signature
Multi-message digital signature schemes (like BBS+), on the other hand, are able to sign an array of messages, rather than a single message over which the entire digital signature is applied.
In the context of verifiable credentials, each message corresponds to a claim in the credential.

In addition to the simple ability to sign and verify a set of messages, multi-message digital signatures have the added capability of being able to derive a proof of the digital signature.

In the context of verifiable credentials, the entity deriving the proof is the credential subject or holder. This process allows you to select which messages you wish to disclose in the proof and which messages you want to keep hidden.
The derived proof indicates to the verifier that you know all of the messages that have been signed, but that you are only electing to disclose a subset of these messages.

The verifier, or the entity with which you’re sharing the data, is only able to see the messages or credential claims which you have selectively disclosed to them. They are still able to verify the integrity of the messages being signed, as well as establish the authenticity of the issuer that originally signed the messages. This provides a number of privacy guarantees to the data subject because relying parties are only evaluating the proof of the signature rather than the signature itself.


Proof-of-concept wallet with deep links to and from Tasit apps

Issue link

https://github.com/tasitlabs/tasit/issues/196
Auto-close the issue?

Closes #196
Types of changes

New feature (non-breaking change that adds functionality)
Notes

Still a work-in-progress.
react-navigation with deep link paths wired slightly incorrectly at the moment.
Info used when working on this:
https://reactnavigation.org/docs/en/deep-linking.html
https://github.com/expo/examples/blob/master/with-webbrowser-redirect/app/App.js
https://docs.expo.io/versions/latest/workflow/configuration/#scheme
https://docs.expo.io/versions/latest/workflow/linking/#handling-urls-in-your-app

Deep linking with transaction data https://youtu.be/CcDA6DsDpjk

@marcelomorgado I think this is good to merge


Separate large data from the main application state, store in indexeddb

First of all, the app is only unresponsive for very short times when moving widgets and loading the audio initially, it's totally useable now that it's not frozen all the time!
However, I'm running into these issues:

The length is NaN it says
When running, it says "Error: No data at ref ..."
If I pick a file X, and then change to Y, the Y is only previewed after I move the widgets around a bit. (I don't really care about the preview TBH, I don't know if users would want to play the audio from within Rivet.)

Got it, let me work on it a bit more

It's still not going to be ideal because when using the node executor, it's going to need to serialize the whole audio node over the websocket 🤔

Try latest commit @Swimburger!

It works on Node executor, but not browser.
Browser is still saying this: Error: No data at ref 6YQm4R4c9_RxpK3lRi-Ez

Okay all of the above should be fixed now @Swimburger

Works great, no issues!

I didn't mean to remove it as draft lol. I was gonna approve.


DASH manifest default_KID parameter

Your DASH manifest is missing the required default_KID parameter in the
i know that the dash manifest required to have it but the question is
is it possbile for me to add it without make change to the dash manifest stream?
or if i have the key/kid pair is it possible to make it work without it  like it does when i test it in jwplayer or shakaplayer?
the same dash manifest will work in when it have the default_KID but it wont when it dosent thats when i use exoplayer
but if i use webplayer tester like jwplayer will work if it have it or not so whats the different ?
this is the dash manifest i use
https://linear314-it-dash1-prd-ll.cdn13.skycdp.com/016a/31478/FHD/skysportf1/master.mpd
kid: 00366649eb2eb82ee172e1bd310e4136
key: 27e85c17d97722288ffa5970389d8baf

is it possbile for me to add it without make change to the dash manifest stream

You can customize the DashManifestParser with DashMediaSource.Factory.setManifestParser and providing a subclass of DashManifestParser that overrides the parseContentProtection method.

if i use webplayer tester like jwplayer will work if it have it or not so whats the different

The manifest also contains data for PlayReady and Widevine, maybe the other player had access to these DRM schemes? To use Widevine for example, you need to provide the license service URL in HttpMediaDrmCallback passed to DefaultDrmSessionManager.Builder (see demo app).

am sorry am new to this things and still learning
i did this example before #1208
every things ok and working but i want to make some change to it to make it work without default_KID
so how i start what i cant change

i want to make some change to it to make it work without default_KID

As the DASH spec doesn't allow streams without a default_KID, we don't really want to add support for this in the library.
But as I said above, you can work around it yourself by providing a custom DashManifestParser that adds the missing in information in parseContentProtection.


add high school: EUCSJ HTX Køge

School URL: https://www.eucsj.dk/htx/htx-koege.aspx

@StaTicDKK17 First stage of verification passed, official domain is eucsj.dk as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@StaTicDKK17 Pull request merged. Thank you!

@StaTicDKK17 Pull request merged. Thank you!

Can you tell me when I will be able to get a license then? I tried to add it just now, but I got told that my email was not regocnized. Any idea why? I used<EMAIL_ADDRESS>as email


Unable to create examples for endpoints with multiple query parameters

Describe the bug
When I try to create an example with multiple values for a query parameter, I get an error.
To reproduce
Steps to reproduce the behavior:
Try to create an endpoint example like this:
examples:
  - query-parameters:
      entities:
        - abcd
        - efgh

Observe error Expected example to be a string. Example is: ["abcd","efgh"]
Expected behavior
If you can build a spec that accepts multiple values for a query parameter, you should be able to create an example use case with multiple values for a query parameter.
Screenshots
N/A
Versions

Desktop OS: macOS
Fern Version: 0.16.3

@davidkonigsberg if you're still facing this issue, let me know. Closing as stale in the meantime.
Happy to re-engage if anyone else runs into this!


[WIP] bazel: Upgrade Bazel version to 7.3.1

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

atm this is not getting passed the arm cache stage
when i tried to update this previously i commented out the toolchains fetch - now it points to the toolchains in the repo - not sure we need it at all tbh, but at least we could make it only fetch on x64


Separation of music and speech

Here is a question about the model mentioned. Up to now it was mainly about the separation of speech and environmental sounds.
Could the model also be used to separate speech and music? Or is there any experience with how it works with the MUSDB18 dataset, for example? I am not interested in separating all 4 components. It would be enough to separate speech and the rest.
I am curious to learn more about it. And a follow-up question in a moment:
What about the training duration? Let's assume I have a normal consumer graphics card, e.g. the GeForce 2080. Could I use it to train, and if so, how long would that take? Is there any experience here?

Of course it can be used any separation task. If you want to extract the voice from the song just use two sources: the singing voice and the rest as trainign targets.
The training duration of what? Sudo rm -rf is pretty fast you can try to fork the repo and use it in order to see. In a few hours with a single GPU you will have very decent results.
Btw this is not an issue. If you want to ask about things like that please reach me via e-mail and do not open an issue ticket.


Why is vibrato_rate not used?

In my opinion, vibrato_rate (peak frequency) is more plausible than vibrato_extend (peak amplitude) to represent pitch pulsating. Why is vibrato_rate not used?

Hi! In early experiments, we do tried using vibrato_rate as the control. However, we found that vibrato rate is not very effective for control, as the model barely learns to change its output vibrato frequency with different vibrato_rate inputs. It might be relevant to the noise and inaccuracy in vibrato rate detection, or it might be relevant to the RNN f0 generation model is having a hard time correlating vibrato_rate input to the output value, or it might be related to the in-continuous vibrato_rate value (because of discrete frequency resolution in DFT) and its distribution. Ethier way, we deprecated the vibrato_rate as control.

Hi! If you do not have further questions or discussions, I am closing the issue. Feel free to open a new issue for more questions later!


e.getMarkers() - how can i get markers with props?

I have this code:
<MarkerClusterer
      averageCenter
      enableRetinaIcons
      gridSize={60}
      onClick={onClickCluster}
      zoomOnClick={false}
    >
      {[
        { x: 45, y: 40, id: 0 },
        { x: 46, y: 40, id: 1 },
        { x: 45, y: 41, id: 2 },
        { x: 45, y: 42, id: 3 },
        { x: 45.05, y: 40, id: 4 },
      ]
        .map((el, i) => (
          <Marker
            position={{ lat: el.x, lng: el.y }}
            onClick={e => onClickMarker(e, el)}
            id={i}
            ref={refMarkers}
          />
        ))}
    </MarkerClusterer>

If i use e.getMarkers- i get array of objects with markers but they don't have props. How can i get array of markers with props? I want to know ids from  props of marker which contents cluster (when user click on cluster).

Yeah, only native getMarkers() (returns google.maps.Marker, not react-google-maps/Marker. Unfortunately.
Feel free to suggest a API change

You'll have to map the google.maps.Marker to react-google-maps/Marker manually.
<MarkerClusterer onClick={cluster => this.filter(cluster.getMarkers(), coordinates)} />

Where coordinates is the full list of markers for the map, with some extra data that you need. You can then create the filter method which finds the coordinates based on what getMarkers yields:
filter(markers, coordinates) {

    const cluster = markers.map(model => [model.position.lat(), model.position.lng()]);
    const filtered = coordinates.filter(model => {
        return contains([model.position.lat(), model.position.lng()])(cluster);
    });

}

Where filtered is now a filtered list of coordinates with the additional data that was used to render the <Marker /> components.
Note that I use the contains from Ramda because it makes equality a whole lot easier.

You should assign an id to a marker instance, by passing in an object to the options prop. These properties will be available through the marker instances when using getMarkers(). Note that while you can pass any key with any value you like, i would advise against doing this.
<MarkerClusterer>
   <Marker options={{ id: 123, foo: "bar" }} />
</MarkerClusterer>

Thanks @DonnyVerduijn – that's useful.


Shouldn't call finalize on LazyTraceThreadPoolTaskScheduler delegate; fixes gh-1485

fixes #1485

@evilnull Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@evilnull Thank you for signing the Contributor License Agreement!


Raycast3D does not work in Beta 4.1

Godot version
4.1 Beta 1
System information
Win 10, RTX 2070 mobile
Issue description
Raycast3D does not detect collisions with bodies.
Steps to reproduce

Start a new 3d scene
create a static body 3d with a collision shape
create a Raycast3d and point it towards the static body so that it intersects with it
enable Raycast3D and make sure it's set to collide with bodies
In _process() say: print("is colliding) if raycast.is_colliding() else print("not colliding').
Run the scene and it prints 'not colliding' even though it definitely is colliding

Minimal reproduction project
not needed, takes 30 secs to do the steps above

Please upload an MRP to make this easier to investigate, to see if this is a bug or an issue with configuration

A small Godot project which reproduces the issue, with no unnecessary files included. Be sure to not include the .godot folder in the archive (but keep project.godot).
Required, unless the reproduction steps are trivial and don't require any project files to be followed. In this case, write "N/A" in the field.
Drag and drop a ZIP archive to upload it. Do not select another field until the project is done uploading.

raycast41.zip

I have tested the MRP with v4.1.beta.custom_build [9723077f4] and can't reproduce:
./bin/godot.linuxbsd.editor.dev.x86_64.llvm --path /tmp/raycast41
Godot Engine v4.1.beta.custom_build.9723077f4 - https://godotengine.org
Vulkan API 1.2.175 - Forward+ - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 2070

is colliding
is colliding
is colliding
[...]

Looking at the script, it should be noted, that the collision-detection doesn't work, when it is used as an editor-extension. It would be best to update the initial description to include this detail.
@tool
extends RayCast3D

func _process(delta):
	print("is colliding") if is_colliding() else print("not colliding")

Interesting. You're right, it does work in runtime. But something's clearly changed with raycasts in 4.1 that is causing issues in my 4.0 projects. Eg, when I say: if raycast.is_colliding(): raycast.get_collider().something, I get an error saying that there is no collider (ie, that it's null), which is baffling because how can there be no collider if the condition is_colliding() has just been met...
Suppose this one can be closed until I find out what the real issue is.

There are valid conditions where the collider object is not present but collision occurs, as it depends on get_instance_id which is allowed to be empty, but this would need some more specific information on when it is happening

Interesting. You're right, it does work in runtime. But something's clearly changed with raycasts in 4.1 that is causing issues in my 4.0 projects. Eg, when I say: if raycast.is_colliding(): raycast.get_collider().something, I get an error saying that there is no collider (ie, that it's null), which is baffling because how can there be no collider if the condition is_colliding() has just been met...
Suppose this one can be closed until I find out what the real issue is.

@macryc I am also running into this issue in a large project with many enemies. The frustrating this is that is a very intermittent error, so is almost impossible to reproduce. I have several levels or error trapping to check for null but still get this error randomly. Something did change in 4.1 related to raycasts, as I never had it in previous versions.
Did you ever come to any solutions to work around this?


UI support for new Service and Ingestion APIs

[x] Schema updation of generated typescripts and integration on UI
[ ] #3924

[x] List APIs

[ ] Get APIs

[ ] Create APIs

[ ] Update APIs

[x] Delete APIs

[ ] #3925
[ ] #3926

link

Ingestion UI.zip

@devyani-kaushik just upload the images directly

Closing for 0.10.0


Orchestration script fails with mysql_user redirected error

When executing ansible-for-devops/orchestration/scripts/db.sh, the last command fails with an error;
<IP_ADDRESS> | FAILED! => {
    "msg": "The module mysql_user was redirected to community.mysql.mysql_user, which could not be loaded."
 If you install Ansible with pip3 install ansible, then it should have the mysql modules installed by default.

It's on my mac, which is still a pet, so it looks like brew install ansible


Nuki integration broken in 0.97

Home Assistant release with the issue: 0.97.0

Last working Home Assistant release (if known): 0.96.x
Operating environment (Hass.io/Docker/Windows/etc.): Hassio

Component/platform: Nuki

Description of problem: Nuki lock component is active only for ~ 1 minute after HA restart. It is possible lock/unlock right after restart HA. But after few minutes it is in "Unavailable" state forever.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

lock:
  - platform: nuki
    host: 192.*.*.*
    token: !secret nuki_token

Traceback (if applicable):

Additional information:
See pic.

Probably related to: https://github.com/home-assistant/home-assistant/issues/25786
I confirm after calling nuki.check_connection lock entity become available.
A think there is some problem with refreshing lock state in nuki compoment!

Thanks for reporting @bigboban :)

Should be fixed by:
https://github.com/home-assistant/home-assistant/pull/25881
The fix is released in 0.97.2.

It seems to @MartinHjelmare !
Many thanks :)


Wallet Emits ProposedObjective multiple times for the same objective

Describe the bug
The wallet should only emit one event per objective that is proposed. Right now it can emit multiple. This means wallet users have to deal with duplicate events.
To Reproduce

Add a console.log listener to the ObjectiveProposed event in the directly-funded-channel.test.ts.
Notice that there are multiple logs for the same objective.

Closing this as I think I'm mistaken on this. I'm often wiping the database so it's easy to get confused about channelId's being re-used.


ADAPT-3201 | @mattanglin | campaign header logo

Ready for Review
Summary
Adds ability to replace Stanford lockup text with custom logo image.
https://stanfordits.atlassian.net/browse/ADAPT-3201
Review By (Date)

August 5th, 2021 @ 4:00pm (PDT) (For sync w/ OOD)

Criticality

1

Review Tasks

Check out this branch
Setup env with Storyblok key for  DEV - OOD Giving
Upload logo image for "Logo Image" field in lockup for the test story in dev
Run gatsby locally and navigate to http://localhost:8000/campaign-page
verfiy that lockup renders with custom campaign logo
Delete the lockup custom Logo Image
Refresh GraphQL cache
Verify that lockup renders with default Sanford text

NOTE: Pulling this into draft as there have been some additional scope changes

You totally did things right, @mattanglin! This comment isn't related to the code, but I'm thinking this new logo situation can cause some issues on MD breakpoint (tablet), since the text part can be longer 🤔  I guess I'm wondering, how flexible is this lockup going to get 😂 , will they upload a tall logo image but same width, and will they enter long text in the 2nd cell? Looks like even with the text they have in mind, the logo still extends a bit beyond the left side for MD.

You totally did things right, @mattanglin! This comment isn't related to the code, but I'm thinking this new logo situation can cause some issues on MD breakpoint (tablet), since the text part can be longer 🤔 I guess I'm wondering, how flexible is this lockup going to get 😂 , will they upload a tall logo image but same width, and will they enter long text in the 2nd cell? Looks like even with the text they have in mind, the logo still extends a bit beyond the left side for MD.

@yvonnetangsu Very good callouts. We just had a quick sync with them and they actually just want the option for an image without text so it will be a little easier to manage a single container for the various viewports (as opposed to the image and text). They'll just ned to make sure they apply alt text to anything they upload.
I put this PR back into draft and will re-request review once I've made the changes

🤔 I guess I'm wondering, how flexible is this lockup going to get 😂 , will they upload a tall logo image but same width, and will they enter long text in the 2nd cell?

The lockup was never really designed to be flexible as it has rigorous branding restrictions. Perhaps break out of the lockup when there is a logo?

🤔 I guess I'm wondering, how flexible is this lockup going to get 😂 , will they upload a tall logo image but same width, and will they enter long text in the 2nd cell?

The lockup was never really designed to be flexible as it has rigorous branding restrictions. Perhaps break out of the lockup when there is a logo?

That works for me. I'll pull it into the campaign header

Awesome, @mattanglin, that answers my question. Thanks!

@yvonnetangsu @sherakama Refactored logo image to replace lockup in campaign header when set as simple image link with maximum width in mobile


[Chore] Patterns: Swap dryrun with verify action on deploy endpoint

Signed-off-by: leecalcote<EMAIL_ADDRESS>

Codecov Report

Merging #4682 (f80b62b) into master (b1ef53e) will decrease coverage by 6.97%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4682      +/-   ##
==========================================
- Coverage   32.84%   25.87%   -6.98%
==========================================
  Files          61       61
  Lines        5106     5106
==========================================
- Hits         1677     1321     -356
- Misses       2990     3456     +466
+ Partials      439      329     -110

Flag
Coverage Δ

e2etests
?

gointegrationtests
?

integrationtests
?

unittests
25.87% <ø> (ø)

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

Impacted Files
Coverage Δ

mesheryctl/internal/cli/root/system/start.go
1.11% <0.00%> (-58.52%)
:arrow_down:

mesheryctl/internal/cli/root/system/restart.go
2.50% <0.00%> (-47.50%)
:arrow_down:

mesheryctl/internal/cli/root/system/status.go
0.00% <0.00%> (-47.44%)
:arrow_down:

mesheryctl/internal/cli/root/system/update.go
1.05% <0.00%> (-34.74%)
:arrow_down:

mesheryctl/internal/cli/root/system/stop.go
1.78% <0.00%> (-23.22%)
:arrow_down:

mesheryctl/internal/cli/root/system/check.go
1.39% <0.00%> (-22.38%)
:arrow_down:

mesheryctl/internal/cli/root/system/logs.go
3.29% <0.00%> (-20.88%)
:arrow_down:

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 fa53f94...f80b62b. Read the comment docs.

@utkarsh-pro good with this action name change?

This change is paired with an update made in the Verify button that uses this endpoint in MeshMap.

Pushing forward with this change... @utkarsh-pro


Cloudformation (Serverless Application Model - SAM) serverless.template in Visual Studio shows errors but builds and deploys

Describe the bug
There are a number of errors shown when adding entries into a serveless.template json file. These entries are all valid according to the documentation and the template builds and deploys correctly but there are red squiggly error marks shown in the json file.
To Reproduce

There are a number of incorrect syntax errors. One such example is with the following resource:
"MySQLUserDBCluster": {
       "Type":"AWS::RDS::DBCluster",
       "Properties": {
       "DBClusterIdentifier": "UserDBCluster",
       "MasterUsername": "atadmin",
       "MasterUserPassword": {
         "Ref": "MasterMySQLPassword"
       },
       "EngineVersion": "8.0",
       "Engine" : "aurora-mysql",
       "EngineMode" : "provisioned",
         "ServerlessV2ScalingConfiguration": {
           "MaxCapacity": 20,
           "MinCapacity": 1
         },
       "VpcSecurityGroupIds": [
         {
           "Ref": "MySecurityGroup"
         }
       ]
     }
   },

the lines
"ServerlessV2ScalingConfiguration": {
           "MaxCapacity": 20,
           "MinCapacity": 1

are shown to be in error. When I hover over "ServerlessV2ScalingConfiguration" it says "ServerlessV2ScalingConfiguration key is invalid for this object"
The same goes for the reference to MySecurityGroup. Hovering over it, It says "MySecurityGroup is an invalid type for this reference". However, it is not and it works fine.
Expected behavior

I would expect the code to show correct syntax. The items should appear in the intellisence dropdowns and should resolve without a red squiggly line.
Development System (please complete the following information):

Windows Version: 11 Pro version 10.0.22631
Visual Studio Version: Professional 2022, version 17.9.5
AWS Toolkit for Visual Studio Version: <IP_ADDRESS>

Additional context

This was first submitted on AWS re:Post here: https://repost.aws/questions/QUNhx2zUN1RN2ZNjhCQ1RH7A/cloudformation-serverless-application-model-sam-serverless-template-in-visual-studio-shows-errors-but-builds-and-deploys

@dzeidman Thanks for bringing this issue to our attention. I was able to reproduce this issue and am investigating further

@dzeidman Thanks for bringing this issue to our attention. I was able to reproduce this issue and am investigating further

Any update on this? It is a big issue in as much that it hides other genuine errors that we may have in our template.


[ST-648] Hides explicit session handling

To hide session ID from commands, and to handle multiple sessions, the CLI saves session ID into a file.

Save a test session file into ~/.config/launchable/session.json
Remove --session  required on subset and record tests

--session is still remained. Users can specify it by themselvis.

Session file format
{
  "BUILD_ID:PID": "SESSION_ID"
}

Basic flow

Start build, then remoe session file
Recrod session, store session ID into a session file
Subset tests with session ID from the session file
Record tests with session ID from the session file
Close session, then remove session file (This close session request is not yet implemented)

I'm working to modify this PR to run record session in subset and recrod build.

I'm working to modify this PR to run record session in subset and recrod build.

@kohsuke I added another code that runs record session in subset and record tests.

subset and record tests

If --session passed, use the param
If --name passed, search corresponding session from ~/.config/launchable/session.json

If there is no session, run record session internally

Also, I added responses pip module to mock HTTP requests. Please review my additional code 🙏

@kohsuke I added another code that runs record session in subset and record tests.

subset and record tests

If --session passed, use the param
If --name passed, search corresponding session from ~/.config/launchable/session.json

If there is no session, run record session internally

Also, I added responses pip module to mock HTTP requests. Please review my additional code 🙏

@kohsuke I modified storing session to use multiple text files instead of a single JSON file. Also record build removes the session directory on each run. I think it is more robust than the previous impl. Please final review!

@kohsuke I modified storing session to use multiple text files instead of a single JSON file. Also record build removes the session directory on each run. I think it is more robust than the previous impl. Please final review!

Oh I found a problem

Also record build removes the session directory on each run.
It will remove ongoing sessions on where runs multi build run on the same instance.

Oh I found a problem

Also record build removes the session directory on each run.
It will remove ongoing sessions on where runs multi build run on the same instance.

Fixed

Fixed

Let's ship this, except for that one thing where the build name might not be file system safe.

Let's ship this, except for that one thing where the build name might not be file system safe.

Alright, I fixed it to hash the filename. It's time to merge!

Alright, I fixed it to hash the filename. It's time to merge!


Error on 8GB file

[ERROR] - Error writing response: Resource temporarily unavailable (os error 11)
get this error when i try to download 8gb file on my local network

It would be great if you can share your debug log tracing as well.

eather doesnt happen or i cant catch it during write byte spam but it doesnt stop downloading tho so thats different with debuging on

Alright, I will try reproduce with a 8 GB file but what kind of file did you try?

I have made a simple test on my Linux amd64 workstation and I can not reproduce the issue. Tested using latest server v1.11.0.

The file above was downloaded without problems and no error logs displayed on server.
Can you provide more context like what server version and OS are you using as well as your environment?

setup is ubuntu 20 on docker
2020-12-31T09:01:17.699021932Z 2020-12-31T09:01:17 [DEBUG] - write 8192 bytes
2020-12-31T09:01:17.699028468Z 2020-12-31T09:01:17 [DEBUG] - write 8192 bytes
2020-12-31T09:01:17.699045817Z 2020-12-31T09:01:17 [DEBUG] - write 8192 bytes
2020-12-31T09:01:17.699053283Z 2020-12-31T09:01:17 [DEBUG] - write 8192 bytes
2020-12-31T09:01:18.720553263Z 2020-12-31T09:01:18 [DEBUG] - write 8192 bytes
2020-12-31T09:01:20.772868163Z 2020-12-31T09:01:20 [DEBUG] - error dropping request: Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }
2020-12-31T09:01:20.772930902Z 2020-12-31T09:01:20 [ERROR] - Error writing response: Resource temporarily unavailable (os error 11)
2020-12-31T09:01:20.772943433Z 2020-12-31T09:01:20 [DEBUG] - keep_alive = true for <IP_ADDRESS>:51374
2020-12-31T09:01:25.952437861Z 2020-12-31T09:01:25 [DEBUG] - ioerror in keepalive loop = Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }
2020-12-31T09:01:25.952480139Z 2020-12-31T09:01:25 [DEBUG] - keep_alive loop ending for <IP_ADDRESS>:51374

i caught it finally, this happens on macos big sur safari download every time

Ok, Is the Docker one also running on Mac big Sur?

The problem is that I don't have a Mac big sur on hand to test it. But I will test it again on Mojave.

Ok, Is the Docker one also running on Mac big Sur?

no docker is running on ubuntu on mac its just safari,chrome

Ok, Is the Docker one also running on Mac big Sur?

no docker is running on ubuntu on mac its just safari,chrome

I have finally reproduced the issue on MacOS Mojave (just using Chrome or Safari). But the error can occur on Unix-like systems (Macos/Linux).
Issue with v1.11.0 (Rust 1.47.0)
Error occurs on server v1.11.0 for example during large file downloads.
In my case I have tested it with a 8.87GB file download.
~> static-web-server -V
# static-web-server 1.11.0
~> static-web-server --port 12345 --root /Users/joseluisq/Downloads/ --assets /Users/joseluisq/Downloads/assets/
# 2021-01-02T20:44:33 [SERVER] - Static HTTP Server "my-static-server" is listening on [::]:12345
# 2021-01-02T21:03:04 [ERROR] - Error writing response: Broken pipe (os error 32)

Issue context
The issue is related to https://github.com/rust-lang/rust/issues/46981 which is fixed (unfortunately for this project) on Rust 1.48.0 (after v1.11.0 release).
However I have already verified this bug fix with latest Rust 1.49.0 and it works. See below.
Server compiled with Rust 1.49.0
Here screenshots of my Safari and Chrome tests on Mojave, as you can see both downloads were successful as well as no error traces on server logs.

So I plan a bug fix release v1.11.1 soon. Stay tuned.

I have finally reproduced the issue on MacOS Mojave (just using Chrome or Safari). But the error can occur on Unix-like systems (Macos/Linux).
Issue with v1.11.0 (Rust 1.47.0)
Error occurs on server v1.11.0 for example during large file downloads.
In my case I have tested it with a 8.87GB file download.
~> static-web-server -V
# static-web-server 1.11.0
~> static-web-server --port 12345 --root /Users/joseluisq/Downloads/ --assets /Users/joseluisq/Downloads/assets/
# 2021-01-02T20:44:33 [SERVER] - Static HTTP Server "my-static-server" is listening on [::]:12345
# 2021-01-02T21:03:04 [ERROR] - Error writing response: Broken pipe (os error 32)

Issue context
The issue is related to https://github.com/rust-lang/rust/issues/46981 which is fixed (unfortunately for this project) on Rust 1.48.0 (after v1.11.0 release).
However I have already verified this bug fix with latest Rust 1.49.0 and it works. See below.
Server compiled with Rust 1.49.0
Here screenshots of my Safari and Chrome tests on Mojave, as you can see both downloads were successful as well as no error traces on server logs.

So I plan a bug fix release v1.11.1 soon. Stay tuned.

v1.12.0 is released which contains the bug fix.
Please test it again and feel free to re-open the issue if you face the problem again.
Thanks!

v1.12.0 is released which contains the bug fix.
Please test it again and feel free to re-open the issue if you face the problem again.
Thanks!

thank you very cool

thank you very cool

@joseluisq
still happens
2021-01-03T04:58:20.188018027Z 2021-01-03T04:58:20 [SERVER] - Static HTTP Server "lnh" is listening on <IP_ADDRESS>:80
2021-01-03T05:00:46.739101174Z 2021-01-03T05:00:46 [ERROR] - Error writing response: Resource temporarily unavailable (os error 11)
REPOSITORY                    TAG        IMAGE ID       CREATED         SIZE
joseluisq/static-web-server   latest     e1575c5ef29b   8 hours ago     5.02MB

@joseluisq
still happens
2021-01-03T04:58:20.188018027Z 2021-01-03T04:58:20 [SERVER] - Static HTTP Server "lnh" is listening on <IP_ADDRESS>:80
2021-01-03T05:00:46.739101174Z 2021-01-03T05:00:46 [ERROR] - Error writing response: Resource temporarily unavailable (os error 11)
REPOSITORY                    TAG        IMAGE ID       CREATED         SIZE
joseluisq/static-web-server   latest     e1575c5ef29b   8 hours ago     5.02MB

Ok, I will investigate why that happens. Few questions below:

2021-01-03T04:58:20.188018027Z 2021-01-03T04:58:20 [SERVER] - Static HTTP Server "lnh" is listening on <IP_ADDRESS>:80
2021-01-03T05:00:46.739101174Z 2021-01-03T05:00:46 [ERROR] - Error writing response: Resource temporarily unavailable (os error 11)
REPOSITORY                    TAG        IMAGE ID       CREATED         SIZE
joseluisq/static-web-server   latest     e1575c5ef29b   8 hours ago     5.02MB

Are you using Docker on a Linux machine or Mac?
Does still the macos big sur problem persist or is now solved?

Ok, I will investigate why that happens. Few questions below:

2021-01-03T04:58:20.188018027Z 2021-01-03T04:58:20 [SERVER] - Static HTTP Server "lnh" is listening on <IP_ADDRESS>:80
2021-01-03T05:00:46.739101174Z 2021-01-03T05:00:46 [ERROR] - Error writing response: Resource temporarily unavailable (os error 11)
REPOSITORY                    TAG        IMAGE ID       CREATED         SIZE
joseluisq/static-web-server   latest     e1575c5ef29b   8 hours ago     5.02MB

Are you using Docker on a Linux machine or Mac?
Does still the macos big sur problem persist or is now solved?

@joseluisq docker is on ubuntu machine and mac is connected to it by lan and i am trying to download from safari it halts download when error happens

@joseluisq docker is on ubuntu machine and mac is connected to it by lan and i am trying to download from safari it halts download when error happens

I have finally reproduced it:
~> static-web-server --port 8188 --root /Users/joseluisq/Downloads/ --assets /Users/joseluisq/Downloads/assets/
2021-01-03T15:34:36 [SERVER] - Static HTTP Server "my-static-server" is listening on [::]:8188
2021-01-03T15:37:20 [ERROR] - Error writing response: Resource temporarily unavailable (os error 35)
2021-01-03T15:37:45 [ERROR] - Error writing response: Resource temporarily unavailable (os error 35)

I have reproduced this when I tried to download a large file twice. For example using Chrome and Safari.
Because the downloading file is blocked until is finished (first request) then the other download request produces a 503 error .
Unfortunately I realised that the server is not implementing concurrent downloads properly.
So It would address the issue in order to don't block a file during downloads.
I'm thinking about async but It will take a bit time to accomplish.
I will re-open the issue for now.
Stay tune.

I have finally reproduced it:
~> static-web-server --port 8188 --root /Users/joseluisq/Downloads/ --assets /Users/joseluisq/Downloads/assets/
2021-01-03T15:34:36 [SERVER] - Static HTTP Server "my-static-server" is listening on [::]:8188
2021-01-03T15:37:20 [ERROR] - Error writing response: Resource temporarily unavailable (os error 35)
2021-01-03T15:37:45 [ERROR] - Error writing response: Resource temporarily unavailable (os error 35)

I have reproduced this when I tried to download a large file twice. For example using Chrome and Safari.
Because the downloading file is blocked until is finished (first request) then the other download request produces a 503 error .
Unfortunately I realised that the server is not implementing concurrent downloads properly.
So It would address the issue in order to don't block a file during downloads.
I'm thinking about async but It will take a bit time to accomplish.
I will re-open the issue for now.
Stay tune.

in my tests its 1 browser 1 download no other action is happening

in my tests its 1 browser 1 download no other action is happening

Just an update on this.
I have started a v2 branch with address this issue properly since is based on tokio meaning that for example you can have concurrent downloads for files of any size without friction.
The code base is WIP but I will try to deliver a beta release soon.

Just an update on this.
I have started a v2 branch with address this issue properly since is based on tokio meaning that for example you can have concurrent downloads for files of any size without friction.
The code base is WIP but I will try to deliver a beta release soon.

sure whenever you get chance men

sure whenever you get chance men

Update #28 tracks progress of new v2 release.

Update #28 tracks progress of new v2 release.

First v2.0.0-beta.1 release and Docker image published.
Feel free to test it.

First v2.0.0-beta.1 release and Docker image published.
Feel free to test it.


[FEATURE] Git branch display/switch

Is your feature request related to a problem? Please describe.
I love using exo for logs and process management, but I find that I constantly go to my terminal to check what branch I have checked out with Git.
Describe the solution you'd like
I would love to have my current git branch displayed in some status area (like in VSCode). When I click on this, I would like to see a list of branches that I have checked out locally, and if I click on one, I would like to change to that branch. If there are changes preventing me from switching branches, it would be fine to show an error message.
Describe alternatives you've considered
Going back and forth between exo and my terminal 🙃
Additional context
N/A

@brandonbloom This is another one that I wanted to just write down. I don't think that VCS integration is going to be a priority for quite a while, so I'm closing this.


video zoomed in, and corrupted

Hi,
when i applied the script, the video zoomed [ in video man, his head cut!]
anyhelp!

Sure! Sorry to hear you've got an issue. Please could you make a jsfiddle of your issue so I can see exactly what's going on? Thanks.

check the screen shots, i attached for you, the normal view, the problem because of plugin and the cause for zooming in video, i think " transform "

The transform is part of the parallax and positioning of the video. It is designed to fit the whole div and be responsive. It should behave like the background-image property in CSS. The reason it may look like it's cutting off at the top is to ensure that it maintains its aspect ratio when growing and shrinking.

Then, They must be shown in this case only, right?

I'm really sorry but I don't understand your point


v2.0.0-beta.1 broken on Safari

Builds that are uglified with v2.0.0-beta.1 will break in safari with the error SyntaxError: Cannot declare a let variable twice: 't'.
This is actually a bug in safari Version 10 and it is fixed in Technology Preview (Release 37 (Safari 11.1, WebKit 12605.1.2).
This issues was reported upstream in UglifyJS2:
https://github.com/mishoo/UglifyJS2/issues/1753
I don't believe there is anything for ember-cli-uglify to do here except wait. I'm only opening an issue so beta.1 doesn't become final with a breaking change in a major browser and as a reference for anyone else trying out the beta.

See https://github.com/glimmerjs/glimmer-blueprint/issues/58.  I think we can update the defaults here, to be compatible...

I'm on latst everything (ember, ember-data, with this targets.js:
browsers: [
'last 2 Chrome versions',
'last 1 Firefox versions',
'last 1 Safari versions',
'last 1 Edge versions'
]
with "ember-cli-uglify": "2.0.0-beta.1" and with Safari iOS 10.3.3 (latest) everything works in Safari (and Chrome of course) and on my MacOS Sierra 10.12.5 with Safari (default) and Technology Preview.
Everything good. Why the issue?

I can confirm.
Ember-data 2.14.x fix the problem. ~2.13.2 is broken.


boards: nrf: Enable HW PWMs on nrf52832_mdk and nrf52840_mdk

This is a follow-up to commit e2b38e02bf08a338224559a2378a44b609f58e73 (PR #13059). I forgot to make these changes there.
Default PWM instances are enabled in Kconfig and DTS (with channel 0 set to LED0 pin) for these boards so that it is possible to build basic samples blink_led and fade_led for them without extra modifications.

Codecov Report

Merging #13123 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #13123   +/-   ##
=======================================
  Coverage   48.78%   48.78%
=======================================
  Files         313      313
  Lines       46484    46484
  Branches    10728    10728
=======================================
  Hits        22678    22678
  Misses      19310    19310
  Partials     4496     4496

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 7df6037...42cc81f. Read the comment docs.

Rebased to resolve the conflict in boards/arm/nrf52832_mdk/Kconfig.defconfig.

Marked it as a bug, since after https://github.com/zephyrproject-rtos/zephyr/commit/e2b38e02bf08a338224559a2378a44b609f58e73 was merged to master, the basic samples blink_led and fade_led can no longer be built for these boards without adjustments. CI did not signal a build failure for https://github.com/zephyrproject-rtos/zephyr/commit/e2b38e02bf08a338224559a2378a44b609f58e73 because pwm was not stated as supported for these boards. Not sure if I should change this as well.

CI did not signal a build failure for e2b38e0 because pwm was not stated as supported for these boards. Not sure if I should change this as well.

Yes you should change this, though it doesn't need to be part of this commit. I'd suggest a follow up PR that marks pwm as supported on all appropriate nordic boards.


Add support for function as wait parameter

In order to satisfy a use case for our app, we need the ability to
lazily evaulate the wait duration of the debounce timeout. Accomplish
this by allowing wait to be a function.
@bjoerge would you accept this change?

Super useful, thanks! Published as v1.1.0

Thank you thank you thank you!


Question: How to change DateTime to a spicific date

Hi. Currently in Android I use the following code:
val calendarNew = Calendar.getInstance()

calendarNew.set(Calendar.DAY_OF_WEEK, 2)
calendarNew.set(Calendar.HOUR_OF_DAY, 18)
calendarNew.set(Calendar.MINUTE, 0)
calendarNew.roll(Calendar.WEEK_OF_YEAR, 1)

return calendarNew.timeInMillis

How can I do the same with KLock?
The purpose of this code is to take get time of the next week day when I need to send a notification.

So you want to get a date for a specific day of the week (Monday, Tuesday...), for a specific week in the year?
And if that's the case:
Let's consider this year 2021. The first week started on Friday, and the second week on Monday. So requesting the Tuesday for the first week would be a date in 2020 or an error, right? And the second Tuesday would be 5th of January of 2021.
Is that correct?

@soywiz Not for a specific week of they year, just for the next. The idea is to set notify user the next week at convenient time. For example. Current datetime - 09:08 am, 25th of July 2021. Then the date returned by this function would be:
06:00 pm, 27th of July 2021. (because we rolled to the next week 1st august, whuch is sunday. And we pick specific day of this week, which is 27th)

In next version of Klock, you will be able to do this:
(Date(2021, Month.July, 25) + 1.weeks).inThisWeek(DayOfWeek.Monday, KlockLocale.yourLocale)

It is locale-dependant because in some places, week starts on Sunday, in others in Monday. Hope it helps!

@soywiz That would be awesome! Thanks

@soywiz
Also there should be a way to change hour of day. Like:
(DateTime.now() + 1.weeks).inThisWeek(DayOfWeek.Monday, KlockLocale.yourLocale).thisHourOfDay(18, KlockLocale.yourLocale)

The function I created works with Date, not with DateTime. You can construct your DateTime from the Date part, and specifying the time that is right for you

@soywiz yes, that would work


[BUG] no logs file output for broken widgets

Environment
Self-Hosted (Docker)
System
ubuntu 23.10 docker with traefik and glances
Version
2.1.1
Describe the problem
glances widgets fail and say 'see logs for more info' andthe logs contain nothing but this
`yarn run v1.22.15
$ node server
Checking config file against schema...
✔ Config file is valid, no issues found
SSL Not Enabled: Public key not present
██████╗  █████╗ ███████╗██╗  ██╗██╗   ██╗
██╔══██╗██╔══██╗██╔════╝██║  ██║╚██╗ ██╔╝
██║  ██║███████║███████╗███████║ ╚████╔╝
██║  ██║██╔══██║╚════██║██╔══██║  ╚██╔╝
██████╔╝██║  ██║███████║██║  ██║   ██║
╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝   ╚═╝

Welcome to Dashy! 🚀
Your new dashboard is now up and running with Docker

Using Dashy V-2.1.1. Update Check Complete
✅ Dashy is Up-to-Date
`
Additional info
No response
Please tick the boxes

[X] You have explained the issue clearly, and included all relevant info
[X] You are using a supported version of Dashy
[X] You've checked that this issue hasn't already been raised
[X] You've checked the docs and troubleshooting guide
[X] You agree to the code of conduct

Hi is this still a problem?
Can you share you glances config and you dashy config?

Looks like you're looking at the wrong logs
Widgets are executed client-side, so you'll need to check your browser log (as opposed to the Docker logs).
Here's how (TL;DR Ctrl + Shift + J)


ReadME file changes

I have upgraded our README file changes for our project AI -nutrition APP using Gemini

done


Unify Cost API

Edge Selection doesn't have an optional attribute, for just adding a constant cost (or incentive) for selecting an edge. I ended up using the EdgeDistance cost with weight of 0 in the plugin, which was an unsatisfying workaround.

No default values for graph attribute names


Fixing a typo

Changed but > bug in 2nd para, to try out contributing to this project.

@atalsma Thank you so much for the contribution! We really appreciate it. Welcome to ClearlyDefined. 🎉


Fraud prevention - How do we prevent fake accounts from accumulating too much identity verification?

In every online-enabled system, fake accounts run rampant. If we're using primarily SSO for verifying a user's individuality, even the strongest SSO accounts integrations for identity verification ( i.e. banks) could be fraudulently acquired.
For example, as an individual in the US, I could have bank accounts with 3 banks, each with SSO. I could sell access to two of those accounts to others, who could then use those accounts to bolster the identity of a fake account.

One way of thinking about addressing this is attempting to reach "across" SSO accounts to verify individuality. Especially if we're using tools like web scraping in order to collect more information than is present in the SSO APIs, then we could look to confirm various identifying bits of information about the individual that way.
For example, we could obtain "name", "address", "phone number", and "email" from each provider, and temporarily cache them while we perform this comparison. If they "mostly" align, for some suitable definition of "mostly", we can allow each integration to be marked as "valid". If the information differs too heavily (i.e. separate addresses for two separate services, or there's no overlap between verifiable information at all)

Maybe a good exercise would be to try to define "mostly" and pull down our own data across our initial target integrations.
Another question for this approach would be how does it start? What would the minimum threshold be for us to start enforcing "cohesion"?
Also, what sort of people would this exclude? Is there a higher percent of "cohesion" for particular populations?

Wouldn't it be the case that even if there is a strong cohesion as well, its not guaranteed that the user's identity is verified?
The issue here is, let us say if user A accounts are managed or fraudulently acquired by user B and B is using them in PIS system to identify himself. So, our job is to find user B type of users to have minimum cohesion score sorts or not let the consumers use his conclusive data.
One solution I can think of is biometric verification of the individual. For instance, there is Aadhaar card in India for identity verification where they collect biometric information of the individual in question. I think same would be the case for SSN as well. I dont know if there will be a way to access this biometric data. In my opinion this is the strongest verification possible.
Assuming that we have biometric data available and when the consumer app needs to access conclusive data the user has to undergo biometric (finger print etc.,) scan and within the PIS system we have to validate the match before proceeding further.

Yes, I think that's a good approach, @kevinahuber - getting a sense of what could be obtained from an initial suite of integrations, both from the APIs and "web scraping" - in this case, visually verifying we can obtain the data in question, would help.
The minimum threshold is a tricky problem - I think that will be inherently tied to how many accounts can provide verified information, how many folks have said accounts, on average, and other variables that we don't have enough information to grasp. I think this goes for defining "mostly cohesive", as well.

@chaitanyajun12, totally agree that this is also a non-starter. I think biometric verification is very important, but at least in the USA, FaceID and Fingerprint scanning is only implemented for mobile technologies, and is entirely decoupled from identity for privacy purposes (at least in the Apple ecosystem - I'm less familiar with Android).
I do think these technologies have a solid place in this conversation, especially in countries that have more accessible systems, but I think the problem your posing might fit more neatly into this issue: #16


edit package page sort channels

On the edit package page the channels that are created could be sorted by title … or there could be a way to sort these.

… same for menu on the add channels page.
(or i need to get used to the sort by latest at top …)

… actually does not seem sorted at all at the moment

yeah, the "sorting" is the db shitting out records at will. i'll get on that next and add a search box as well.

sorting is now done by title, more advanced stuff here: https://github.com/PieceMeta/piecemeta-angular-frontend/issues/16


yield from the template

Previously, the only possible loading indicators were loadingText and a CSS background image. This gives a much bigger range of possibilities, such as CSS animations with custom markup.

#51. I believe this is already a feature, where you can swap in your own template.

I think it would be nice to Yield from the template - but we should remove the loadingText if there's a block given.
i thiiiiink the syntax is like
{{#if blockGiven}}
  {{yield}}
{{else}}
  ... original template ...
{{/if}}

The correct property is hasBlock http://emberjs.com/api/classes/Ember.Component.html#property_hasBlock
... and done

Thanks @davidgoli - can we get a lil' test for this?

@hhff sure - mind if I add the ember-cli-htmlbars-inline-precompile package to write an integration test?

@hhff Test added. Note that I had to revert to the old-style template helper that is supported by Ember 1.10 (which is the baseline for ember-infinity) but is deprecated in Ember 1.13. I also added the htmlbars-inline-precompile package per current best practice (https://github.com/rwjblue/ember-qunit#component-unit-tests)

@davidgoli - if you merge from master this guy should be passing

Also - can we please add a short description of how to use this to the README ?

@hhff Merged, fixed, and README updated.

awesome - can you squash this?

Squash it? I don't think I have merge permission, if that's what you mean.

Oh i just mean squash the commits @davidgoli
https://robots.thoughtbot.com/git-interactive-rebase-squash-amend-rewriting-history
We just do this so the Changelog is super clean and clear :)

@hhff how does this look?

looks great!  Is there a deprecation warning when using the template helper?

oh yeah I think so... in reality, it means the same thing as hasBlock, but always returns false on later versions. But, it's still necessary for backwards compatibility as well. What's your recommendation for how to handle this?

ie, create a helper, or what?

I'd say the move is to use emberVersionIs in the component to wrap both of those.
We're already using it in the route.js here: https://github.com/hhff/ember-infinity/blob/master/addon/mixins/route.js#L2 so it should be easy to add :+1:

Looks like that's not quite as easy for the Component case, since hasBlock is a helper not a component property. Fortunately, there's an officially-endorsed polyfill solution: https://github.com/emberjs/ember.js/issues/11430#issuecomment-124988006

Yeah that's passing ember-1.12, ember-1.13, ember-release, and ember-canary locally. Only question is where to put the polyfill.

@hhff isolated the changes to only this component. Please take another look.

whoops, forgot to add -u before pushing.

THE MAN!  thankyou @davidgoli !

Published: +<EMAIL_ADDRESS>


#300 Add .cs class for missing resource types in generator code

Added missing resource types to the Generator code.
NOTE Due to limitations in the Generator code Key Vault Certificate and Role Assignment cannot be supported at this time. Specifically Key Vault Certificate cannot be created using bicep so the proper variable names cannot be determined for the Generator. Role Assignments have additional properties that are needed that cannot be derived from the generated ARM template.
Closes #300
Closes #268

Some additional Qs, should follow up issues be created to investigate/address the stuff you noted in your PR description? Specifically, should testing KV certificate be a part of Benchpress if it's not possible to create through bicep? (Also asking this because I came across that issue retesting all of our examples 😆 )
Lastly, this work also closes #268.

Some additional Qs, should follow up issues be created to investigate/address the stuff you noted in your PR description? Specifically, should testing KV certificate be a part of Benchpress if it's not possible to create through bicep? (Also asking this because I came across that issue retesting all of our examples 😆 )
Lastly, this work also closes #268.

I indeed was planning on adding a work item for Role Assignments.
Regarding KV Certificate, specifically as it pertains to the Generator code, if bicep cannot create it, the Generator cannot generate it. In the context of the vision for Benchpress (as a general Azure IaC testing framework) KV Certificate should be supported for testing.

Is this story also the one to update the .PSScriptRooot imports in Get-ResourceByType.ps1?

Is this story also the one to update the .PSScriptRooot imports in Get-ResourceByType.ps1?

JK just saw that Caroline is picking it up.

Are we missing the .cs class for Role Assignments?

It's covered in the initial comments from creating the PR:
"NOTE Due to limitations in the Generator code Key Vault Certificate and Role Assignment cannot be supported at this time. Specifically Key Vault Certificate cannot be created using bicep so the proper variable names cannot be determined for the Generator. Role Assignments have additional properties that are needed that cannot be derived from the generated ARM template."


Local function is shadowing imported function with the same name in generated erlang

To Reproduce

Create a file main.ml containing

let print thing = Io.format "~0tp~n" [ thing ]

let weird_join_but_ok list joiner =
  let join el acc = acc @ [el; 0] in
    Lists.foldl join [] (Lists.join joiner list)

 let main _ =
  print (weird_join_but_ok [1; 3] 2) ;
  ()

Run command caramel compile main.ml && escript main.erl
Erlang gets generated with

-spec weird_join_but_ok(list(integer()), integer()) -> list(integer()).
weird_join_but_ok(List, Joiner) ->
  Join = fun
  (El, Acc) -> erlang:'++'(Acc, [El | [0 | []]])
end,
  lists:foldl(Join, [], Join(Joiner, List)).

When running, it results in:

[1,0,3,0,2,0,0,0]

Expected behavior
Erlang gets generated with
  lists:foldl(Join, [], lists:join(Joiner, List)).

and running it results in
[1,0,2,0,3,0]

Environment (please complete the following information):

OS Ubuntu Linux 18.04
Caramel version 0.1
Erlang version 23.2.2

Related test (I think): https://github.com/AbstractMachinesLab/caramel/blob/c2562fa4486ec907761ef3a31e839e16ffa29bc7/tests/compiler/expressions.t/names.ml#L18


add 'form' attribute to NativeControl component

Codecov Report

Merging #907 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@           Coverage Diff            @@
##           master   #907      +/-   ##
========================================
+ Coverage   93.99%    94%   +<.01%
========================================
  Files          85     85
  Lines        3599   3600       +1
  Branches      568    568
========================================
+ Hits         3383   3384       +1
  Misses         90     90
  Partials      126    126

Impacted Files
Coverage Δ

packages/switch/index.tsx
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


How to handle forms?

Description

[x] question
[ ] feature request
[ ] bug report

Find a smart way to handle a form.
Expected Results
<form onsubmit=|e| { e.prevent_default(); Msg::Submit(FormData::from(e.target()) },>
    <input type="text", value=&self.search, />
    <button>{ "Search" }</button>
</form>

Retrieving a FormData object from an HTML form.
Actual Results
If I correctly understand, to handle a form I need a message for each input to update model state and a message for the submit button.

    <input type="text", value=&self.search, oninput=|e| Msg::Update(e.value) />
    <button onclick=|_| Msg::Submit>{ "Search" }</button>

I don’t know if my proposal is the good way to do that (I discovert FormData while writing this issue) but it seems less painful than added one message per input.

I play with stdweb to implement FormData, and here is a real example:
use stdweb::web::formdata::FormData;
use stdweb::web::event::IEvent;
use stdweb::unstable::TryInto;
use yew::{html,  Component, ComponentLink, Html, Renderable, ShouldRender};

#[derive(Default)]
pub struct Model {
    state: State,
}

#[derive(Debug, Default)]
pub struct State {
    terms: String,
    strict: bool,
}

impl From<FormData> for State {
    fn from(data: FormData) -> Self {
        Self {
            terms: data.get("terms").unwrap(),
            strict: data.get("strict") == Some("on".to_string()),
        }
    }
}

impl std::fmt::Display for State {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        write!(f, "{:?}", self)
    }
}

pub enum Msg {
    Submit(FormData),
}

impl Component for Model {
    type Message = Msg;
    type Properties = ();

    fn create(_: Self::Properties, _: ComponentLink<Self>) -> Self {
        Default::default()
    }

    fn update(&mut self, msg: Self::Message) -> ShouldRender {
        match msg {
            Msg::Submit(data) => self.state = data.into(),
        }

        true
    }
}

impl Renderable<Model> for Model {
    fn view(&self) -> Html<Self> {
        html! {

                <form onsubmit=|e| { e.prevent_default(); Msg::Submit(FormData::new(&e.target().unwrap().try_into().unwrap())) },>
                    <input type="text", name="terms", value=&self.state.terms, />
                    <input type="checkbox", name="strict", checked=self.state.strict, />
                    <button>{ "Search" }</button>
                </form>

{ &self.state }

        }
    }
}

https://github.com/koute/stdweb/pull/324

Looks like this has been fixed!

Hi
This example has been very useful to me, but I think it is outdated now. This is how I was able to get the form data (It does not cover the full example):
use wasm_bindgen::JsCast;
use web_sys::{EventTarget, HtmlFormElement, FormData};
use gloo_console::debug;

let form_onsubmit = {
        Callback::from(move |event: SubmitEvent| {
            let target: Option<EventTarget> = event.target();
            debug!(target.clone());
            let form = target.and_then(|t| t.dyn_into::<HtmlFormElement>().ok());
            debug!(form.clone());

            if let Some(form) = form {
                let form_data = FormData::new_with_form(&form);
                debug!(form_data.expect("form data"));
            }

            event.prevent_default();
        })
    };

Used with:
<form enctype={ "multipart/form-data" } onsubmit={ form_onsubmit }>
...
</form>


Add mono-complete rule for Fedora

Fedora: https://packages.fedoraproject.org/pkgs/mono/mono-complete/

Is this rule currently depended upon or is adding this a about bringing Fedora into spec with other distros?

It is generated by the suggestion automation and then confirmed manually. I have no idea if the key is in use in the wild.


Add Namecoin-Qt v0.3.76

Thank you for the contribution. It will be merged in a different pull request due to some simple recommended alterations. Your contribution is still included (and still credited to you), with the appropriate modifications, when applicable.
Changes:

Changed name and header, according to the token reference.
Corrected version.
More specific license.

I figured I would use the token reference, however the app is really called Namecoin-Qt and when Bitcoin-Qt was called that the formula was named bitcoin-qt.
Thanks for making these changes, it's much appreciated since this was my first formula! :smile:

when Bitcoin-Qt was called that the formula was named bitcoin-qt.

Only temporarily.


triptych seems to lock up nvim when opening a directory containing a named pipe

Bug description
Opening (either in the middle or the preview pane) a directory containing a named pipe locks up neovim, does not respond to <ESC> or <C-c> needed to pkill nvim
Noticed the issue while randomly browsing my home directory, so its pretty annoying having the whole editor suddenly lock up if you accidentally scroll past the wrong directory.
Steps to reproduce

Create a directory containing a named pipe:

mkdir namedpipetest
mkfifo namedpipetest/test.pipe

Browse to the directory with triptych
Observe lockup

I tried checking the logs for nvim and they just abruptly end when opening Triptych:
chdir(namedpipetest)
Executing DirChanged Autocommands for "*"
autocommand <Lua 140: ~/.local/s

Setup

Operating system: Arch Linux
Nvim version: 0.10.1
Triptych config:

	{
		"simonmclean/triptych.nvim",
		event = "VeryLazy",
		dependencies = {
			"nvim-lua/plenary.nvim",
			"nvim-tree/nvim-web-devicons",
		},
		config = function(self, opts)
			require("triptych").setup({})
			vim.keymap.set("n", "<leader>e", ":Triptych<CR>", { silent = true })
		end,
	},

On further investigation it looks like its due to opening the file, as neovim also locks up when trying to open the file manually with :e test.pipe
Maybe the easiest fix would just be to make triptych skip loading previews or trying to open any named pipe?

I've pushed a fix should stop things freezing when scanning over FIFOs in Triptych
It will still crash if you try to open the file, but this is a neovim issue rather than a Triptych one. I could prevent the user from opening the file from Triptych, but my thinking is this isn't the right call. Neovim might be updated in future to handle these filetypes. What do you think?

Fantastic, thanks for the speedy fix!
Yes I'm unsure if triptych should have to add extra things to work around neovim bugs, I'm fairly new to neovim so I don't know how quickly that bug would be resolved in neovim.
One the other hand telling the user that opening pipes will lock up neovim and they should not do it seems good UX wise, even if it would only affect opening files through triptych.
Looks like theres already an open issue about it in neovim: https://github.com/neovim/neovim/issues/29867
This fix should be good enough for me. I guess you can decide if you want to add a warning or something before attempting to open named pipes, and then it can be removed when neovim fixes the lockup-issue.


Make autosaving errors more visible and annoying

Right now there is no contrast to the error messages that occur when autosaving fails in the new editor, and they look too similar to successful saves (same color, etc).  Given this can cause data loss, I suggest changing the font to red (or use some other method of gaining someones' attention) to warn the user.

I made it blink, do you think this is intrusive enough?

Yeah that'd be better!


migration workflow draft

Pull Request summary:
[Describe briefly what the PR is about]
Description of changes:
[Add more in depth analysis of what changed, provide logs, examples of usage]
Checklist:

[ ] Make sure to run pre-commit before committing changes
[ ] Make sure all checks have passed
[ ] PR description is clear and comprehensive
[ ] Mentioned the issue that this PR solves (if applicable)
[ ] Make sure you test the changes

I have created dev-ux-migration branch from which dev versions will be produced, so we can sync work there without polluting main.


Notes

Add project plans and notes. (text file originally created in google doc)

Conversation from FB for PDF for the research paper:
Aria Yuan Wang
9/30, 5:30pm
Aria Yuan Wang
2013.Stansbury.etal.pdf

Raj Agrawal
9/30, 5:31pm
Raj Agrawal
http://www.sciencedirect.com/science/article/pii/S0960982211009377


Using a req. to store a reference to a helper that will be available to all controllers

I am adding a sort of event tracking to our express app, the usual way of going about this
was to require the tracker at the top of the controller file and use it within the controller logic. For example:
controller.js
const User = require('./models/user.js');
const tracker = require('./helpers/tracker.js');

module.exports.uploadFile = function(req, res, next) {

  const userId = req.user.id;
  User.findOne({ _id: userId })
    .then(function(user) {
        tracker.track('Uploaded a file', {
           name: user.name
        });

        return res.send({ ok: 1 });
    });

}

This example works fine.
My second approach is to store the tracker in the req variable so that I don't need to require the file on all my controller files. For example:
app.js
const tracker = require('./helpers/tracker.js');
app.use(function(req, res, next) {
    req.tracker = tracker;
    return next();
});

controller.js
const User = require('./models/user.js');
module.exports.uploadFile = function(req, res, next) {

  const userId = req.user.id;
  User.findOne({ _id: userId })
    .then(function(user) {
        req.tracker.track('Uploaded a file', {
           name: user.name
        });
        return res.send({ ok: 1 });
    });

}

The second example makes more sense to me, but are there any reason (performance?) that this isn't a good idea?

If you are going to do this you should probably add it to the res.locals or req.app.locals.  These are setup specifically for things like this.  These are the available in your middleware (what you mean by controllers I guess), but they would also be available to the views.
const tracker = require('./helpers/tracker.js');
app.use(function(req, res, next) {
    res.locals.tracker = tracker;
});
app.use(function (req, res) {
  res.locals.tracker();
})

or
const tracker = require('./helpers/tracker.js');
app.locals.tracker = tracker;

app.use(function (req, res) {
  req.app.locals.tracker();
})

Regarding to your question, no, there is nothing wrong on doing that.

The second example makes more sense to me, but are there any reason (performance?) that this isn't a good idea?

Regarding to your question, no, there is nothing wrong on doing that.

In fact there is a performance hit to adding to the req object directly.  Especially if it is only on some routes.  So like I said in my answer, the best way is to use res.locals which is setup for that.
Also, closing this as there has been no response from the original author and any more discussion on this would be unproductive.


Helicone worker throws JSON parse error with regular OpenAI call

The Helicone worker server throws the following error in completion:
POST /v1/chat/completions 500 Internal Server Error (104241.23ms)
at ServiceWorkerGlobalScope.[kDispatchFetch] (/worker/helicone/worker/node_modules/@miniflare/core/src/standards/event.ts:385:13)
at Object.handle (/worker/helicone/worker/node_modules/itty-router/index.mjs:1:614)
at /worker/helicone/worker/src/routers/openaiProxyRouter.ts:20:12
at proxyForwarder (/worker/helicone/worker/src/lib/HeliconeProxyRequest/forwarder.ts:66:28)
at getCachedResponse (/worker/helicone/worker/src/lib/cache/cacheFunctions.ts:73:52)
at getMaxCachedResponses (/worker/helicone/worker/src/lib/cache/cacheFunctions.ts:95:20)
at async Promise.all (index 0)
at KVNamespace.get (/worker/helicone/worker/node_modules/@miniflare/kv/src/namespace.ts:209:12)
at convertStoredToGetValue (/worker/helicone/worker/node_modules/@miniflare/kv/src/namespace.ts:128:19)
at JSON.parse ()
SyntaxError: Unexpected number in JSON at position 1907
Completion call (using the official OpenAI node module:
 response = await openai.chat.completions.create({
            model: "gpt-3.5-turbo",
            messages: [
              {
                role: "system",
                content: `Summarize this item description with a maximum of 1-4 words, in plain german.
              Remove all prices (EUR, TL, etc.), remove all tokens that look like article-numbers, and quantities.
              Remove any redundant information. Keep information that might be useful for customs declarations. Do not make up or add any information.
              The output is just the summarized text, without any explanation.`,
              },
              {
                role: "user",
                content: articleNumberDescription?.substring(0, 3000),
              },
            ],
            temperature: 0,
            max_tokens: 100,
            user: customerId,
          })

Where articleNumberDescription is a simple "Katheter für medizinische Zwecke"
OpenAI Config:
openai: {
    apiKey: keys["openai-key"],
    basePath: keys["openai-base-path"],
    baseURL: keys["openai-base-path"],
    defaultHeaders: {
      "Helicone-Auth": `Bearer ${keys["helicone-api-key"]}`,
      "Helicone-Cache-Enabled": "true",
      "Cache-Control": "max-age=2592000",
      "Helicone-Property-App": "data-normalization-service",
      "Helicone-Retry-Enabled": "true",
    },
  },

This is very strange behaviour. For me, that looks more like a bug than a user error. Any ideas?

Do you have the same error if you hit OpenAI directly?
Also, please set the messages to a variable and then console.log that variable? I want to see what the computed messages looks like


Items need separate interaction points for left and right hands

Setting an ideal interaction point for right-handed use often means it feels backwards when the same object is held by the left hand.

Btw, here's how we're solving this for now:
using UnityEngine;
using System.Collections;
using NewtonVR;

public class HandedInteractableItem : NVRInteractableItem
{
	[SerializeField]
	Transform LeftHandInteractionPoint;

	[SerializeField]
	Transform RightHandInteractionPoint;

	public override void BeginInteraction (NVRHand hand)
	{
		if (hand.IsLeft)
		{
			InteractionPoint = LeftHandInteractionPoint;
		}
		else
		{
			InteractionPoint = RightHandInteractionPoint;
		}

		base.BeginInteraction (hand);
	}
}

Submitted a PR for this in https://github.com/TomorrowTodayLabs/NewtonVR/pull/137

Going to close this as an issue. It's on the trello board.


For a VS extension, RxUI runs in Unit Test mode if Resharper is installed.

(Windows 10, Visual Studio 2015, RxUI 6.5)
I'm using ReactiveUI with WPF to create a Visual Studio extension.
Running the extension on my experiment instance of Visual Studio without Resharper everything is fine.
However when I run the application in a copy of Visual Studio with Resharper installed the UI remains blank.
I believe this is because Resharper depends on nunit, and because nunit is loaded ModeDetector thinks that we are running a unit test and destroys the threading.
I see that Splat provides ModeDetector.OverrideModeDetector (https://github.com/paulcbetts/splat/blob/495874640b048384d727b3a82cff60aca7313a34/Splat/ModeDetector.cs), but RxUI doesn't appear to surface that functionality.
Has anyone got any suggestions?

Just use Splat's ModeDetector.OverrideModeDetector, RxUI will automatically "detect" that change

Good idea, I'll give it a go.

Awesome that worked a treat.