Cascading Parameter breaks two way binding

Describe the bug
The usage of CascadingValue / CascadingParameter seems to break two-way binding patterns that work fine otherwise.
To Reproduce
First, an example of code that works perfectly fine (staring from the default Server Side blazor template):
Index.razor:

Hello, world!

Value on index: @TestValue

<BooleanEditor @bind-Value="@TestValue"></BooleanEditor>
@code  {
    bool TestValue { get; set; }
}

BooleanEditor.razor:

Current value from boolean editor: @Value

<button @onclick="@(() => Value = !Value)">Toggle Value</button>

@code {
    private bool _value;
    [Parameter]
    bool Value
    {
        get => _value;
        set
        {
            if (value != _value)
            {
                _value = value;
                ValueChanged.InvokeAsync(_value);
            }
        }
    }
    [Parameter] EventCallback<bool> ValueChanged { get; set; }
}

Now let's modify the example so that we use a cascading value.  Note that the type of the value doesn't matter - I'm using a DateTime here - and that we're not even actually using the value.
Index.razor:

Hello, world!

Value on index: @TestValue

<CascadingValue Value="@(DateTime.Now)">
    <BooleanEditor @bind-Value="@TestValue"></BooleanEditor>
</CascadingValue>
@code  {
    bool TestValue { get; set; }
}

BooleanEditor.razor:

Current value from boolean editor: @Value

<button @onclick="@(() => Value = !Value)">Toggle Value</button>

@code {
    private bool _value;
    [Parameter]
    bool Value
    {
        get => _value;
        set
        {
            if (value != _value)
            {
                _value = value;
                ValueChanged.InvokeAsync(_value);
            }
        }
    }
    [Parameter] EventCallback<bool> ValueChanged { get; set; }
    [CascadingParameter] DateTime DateValue { get; set; }
}

The boolean editor now stops working.  Based on some debugging, it seems like a 'stale' value is being held onto somehow and pushed back into the setter for the boolean editor.   I.e. :

The value is toggled
The value is set in the parent control
the old value is set in the BooleanEditor
The old value is set in the parent control

It's possible I'm not using a good pattern here to support the two way binding, but it seems fairly standard to me?
Also note that merely commenting out this line of code makes the problem go away again: [CascadingParameter] DateTime DateValue { get; set; }
Expected behavior
Two way binding continues to work
Additional context
Preview 6

It seems that having theValueChanged.InvokeAsync inside the setter is ultimately what is confusing the component binding system?   If I change the BooleanEditor to work like the following, it works just fine:
<button @onclick="@ToggleValue">Toggle Value</button>

@code {
    [Parameter] bool Value { get; set; }
    [Parameter] EventCallback<bool> ValueChanged { get; set; }
    [CascadingParameter] DateTime DateValue { get; set; }
    void ToggleValue()
    {
        Value = !Value;
        ValueChanged.InvokeAsync(Value);
    }
}

I have modified the Index.razor a little, and with this modification program works correctly:
<CascadingValue Value="@dt">
    <BooleanEditor @bind-Value="@TestValue"></BooleanEditor>
</CascadingValue>

@code
{
    DateTime dt = DateTime.Now;
...

As you can see now CascadingValue is not changed each time it is evaluated.
I have added some logging to the original program and now I see this interesting sequence of events after clicking the button:
Editor value changed to True, calling ValueChanged
TestValue in Index changed to True
Returning from Value setter
Editor value changed to False, calling ValueChanged
TestValue in Index changed to False
Returning from Value setter
Editor OnParameterSet
Editor OnParameterSet
Editor OnParameterSet
Editor OnParameterSet
Response sent: http://localhost:54782/_blazor?id=omRsLtPVLXOEAmxH-Rvf5Q with HTTP status 101.0
Response sent: http://localhost:54782/_blazor?id=omRsLtPVLXOEAmxH-Rvf5Q with HTTP status 101.0
Index rendered
Editor rendered
Index rendered
Editor rendered
Editor rendered

Blazor client side doesn't work either and I it has exactly the same sequence of events.
   It looks like setting  IsFixed="true" on the CascadingValue also fixes the problem.
In my actual use case I was doing something like <CascadingValue Value="@(PermissionSet.ForUser(CurrentUser))"> which of course was also generating a new 'value' (in the form of a new object) each time it was evaluated.
It seems to me that there is probably still a bug here in the binding evaluation, but having a CascadingValue which produces a new value each time it is evaluated is also clearly a bad idea to begin with.

Actually, that doesn't seem to be the only cause.  It seems to break on any reference type as well...  Even when it's not changing.
<CascadingValue Value="@person">
    <BooleanEditor @bind-Value="@TestValue"></BooleanEditor>
</CascadingValue>
@code  {
    Person person = new Person { Name = "John" };
    bool TestValue { get; set; }
}

  [CascadingParameter] Person person { get; set; }

Thanks for contacting us, @srowan.
@javiercn, can you please look into this? Thanks!

I looked at this because I was doing some stuff in this area. Hope that's OK.
This is happening because of calling ValueChanged.InvokeAsync inside the parameter setter, which you definitely should not do. Doing that means that every time the BooleanEditor receives a changed value parameter from its parent, it also notifies the parent that the value has changed, which in turn causes the parent to re-render. In the best case this is pointless extra rendering; in a worse case it causes a functional problem like you're observing with CascadingValue.
The <CascadingValue>'s value changes (in the original example because you're using DateTime.Now which obviously keeps changing, or in the "arbitrary reference-type" case, it might have changed by internal mutation). This causes Blazor to re-render the subscribed child, and because it's higher up in the rendering tree than the <BooleanEditor> itself, it does so before updating the parameter on the child. This creates a loop where the child keeps telling the parent to re-render, and the parent keeps telling the child-to re-render.
To avoid all this, don't call ValueChanged.InvokeAsync from inside a [Property] setter. That's like triggering a C# event from inside a handler for the same event. You wouldn't do that: you'd have a separate code path for triggering the event. So, the implementation at https://github.com/aspnet/AspNetCore/issues/11308#issuecomment-502923893 is the right one and behaves sensibly.

@SteveSandersonMS makes sense, and easy enough.  Perhaps an error should be raised if blazor can detect this?   The confusing thing here is that this is how we were always taught to design components with INotifyPropertyChanged which seems roughly equivalent : https://docs.microsoft.com/en-us/dotnet/framework/wpf/data/how-to-implement-property-change-notification

Hi,
I'd like to step into this because I have a similar problem. I'd like to inform the parent component that a Parameter in the child has been changed by using data binding. Just to be clear.

SteveSandersonMS  wrote
This is happening because of calling ValueChanged.InvokeAsync inside the parameter setter, which you definitely should not do.

However, when not calling ValueChanged.InvokeAsync the parent doesn't get updates from the parameter change. Or do you just suggest to move away the call to ValueChanged from the property setter?
Thanks
Sven

Or do you just suggest to move away the call to ValueChanged from the property setter?

Yes, you should (in fact, must) call it, but shouldn't do it from inside the bound property setter. The implementation at https://github.com/aspnet/AspNetCore/issues/11308#issuecomment-502923893 is the right one and behaves sensibly.

Thank you @SteveSandersonMS .
Sorry, I just deleted my comment because I re-read your answer and missed the last (most important) part. It already contains the main point.


fix, apidocs link

I fixed according to the change in the form of URL of a API document.

Integrated, thanks @kazuhira-r :)


Finishing the ConSet

The master already contain the ConSet type, with basic set of methods. However, two things are missing:

[ ] Tests
[ ] Iterator related traits (Extend, .iter, IntoIter for reference and FromIter).

The ConSet type is very similar to the ConMap one, so the implementations of the above will end up being similar too. Few notable things:

The tests of ConMap also indirectly test the underlying implementation that is shared. There's no need to do as thorough tests once again with sets (like all the multi-threaded inserts). Few tests that try to call each method in one or two scenarios should be enough.
The ConMap Extend and FromIter work both on tuples (K, V) and prepared Arc<Element>s. The set has no such thing, they would simply take T directly.

If considering working on this, please write a comment to claim the issue (and specify if you want to tackle both or only one of the subtasks). It is fine to put into review in parts as smaller pull requests or as one bigger, as you prefer.
Don't hesitate to ask if you have any questions or want some help.

Hey @vorner , thank you for opening your project at GoodFirstIssues; I'm reading/studying a bit around the topic of concurrent data structures and I hope to get more understanding starting with some small contribution.
I still have to properly get into the details of the paper that you linked and of your implementation; needless to say it's quite interesting.
There is some work-in-progress in #4; any comment is more than welcome and feel free to drop there any consideration. Thanks in advance.

You're welcome, I'll be glad to get some contributions :-).
As for studying, few notes:

These „good first issue“ tasks are meant to be possible without understanding the concurrent parts, they are hidden inside the raw module. Nevertheless, I'll appreciate if you read through the raw module as well ‒ and I'll be glad for any clarifications in the comments, pointing out of things that I've overlooked, etc, or even making the code more readable (which I'm less able to judge as he author).
My implementation is only inspired by the paper, but is simplified a lot. So I think it makes sense to read the implementation first and then proceed to the paper.

I'll get around to looking at the code soon, but I won't promise it'll be today (maybe, maybe not).

OK, this seems to be completed, so closing.
If anyone is looking for further easy tasks, I'll make sure to get around to creating few more soon.


notification

We have integrated push notification functionality in application but we are unable to get notification.
So plzz help me

Hey!
We've split up this repo in three. One for each platform. If your issue is still valid please reopen in the appropriate repo which are:

https://github.com/firebase/friendlychat-web
https://github.com/firebase/friendlychat-android
https://github.com/firebase/friendlychat-ios


fix a clippy warning

Thanks, I don't think this lint is on stable yet so I didn't see it. Rebasing should fix the tests.


Input-type action)id listener bug

Description
Is this a bug?
When i'm using the action_id in section-type, the payload is being received via app.action(actionID, function).
But when using the action_id in input-type, the payload is not being received via the app.action(actionID, function).
is there a different implementation for it?
What type of issue is this? (place an x in one of the [ ])

[ x] bug
[ ] enhancement (feature request)
[ ] question
[ ] documentation related
[ ] example code related
[ ] testing related
[ ] discussion

Requirements (place an x in each of the [ ])

[ x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x ] I've read and agree to the Code of Conduct.
[x ] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report
when using the action_id in input-type, the payload is not being received via the app.action(actionID, function).
Reproducible in:
package version:
@slack/bolt 3.3.0
node version: 14.15.X
OS version(s):
64-bit OS
Steps to reproduce:

{       "type": "input",         "block_id":"b_employee",       "element": {               "type": "users_select",               "action_id": "a_employee",               "placeholder": { 	              "type": "plain_text", 	              "text": "Select an item", 	              "emoji": true                 }       },       "label": {             "type": "plain_text",             "text": "Select employee",             "emoji": true       } }

app.action('a_employee', async ({ body, context, ack }) => {
await ack();
console.log('action! 1');
});
Expected result:
when using the action_id in input-type, the payload should be received via the app.action(actionID, function).
Actual result:
when using the action_id in input-type, the payload didn't received data via the app.action(actionID, function).
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.

Hi @jonryborbevobling, thanks for asking the question!
For input typed blocks, it's supposed to be mainly used in modal data submission (refer to the view_submission document for details). To trigger block_actions events for each block element, you can set dispatch_action flag to true. Check the document for more details.

It does work now when I used dispatch_action to true.
Thank you.


Augmenter/refactor

Codecov Report

Merging #87 into master will decrease coverage by 0.58%.
The diff coverage is 88.88%.

@@             Coverage Diff              @@
##             master      #87      +/-   ##
============================================
- Coverage     85.67%   85.08%   -0.59%
- Complexity      145      150       +5
============================================
  Files            39       39
  Lines           335      342       +7
  Branches         20       22       +2
============================================
+ Hits            287      291       +4
- Misses           37       40       +3
  Partials         11       11

Impacted Files
Coverage Δ
Complexity Δ

.../algo3/engine/score/augmenters/ScoreAugmenter.java
60.00% <50.00%> (-40.00%)
2.00 <1.00> (+1.00)
:arrow_down:

src/main/java/edu/fiuba/algo3/model/Game.java
91.83% <83.33%> (ø)
20.00 <2.00> (ø)

src/main/java/edu/fiuba/algo3/model/Player.java
95.00% <95.00%> (+4.52%)
9.00 <9.00> (ø)

...engine/score/augmenters/ExclusivityMultiplier.java
100.00% <100.00%> (ø)
7.00 <1.00> (+1.00)

...ba/algo3/engine/score/augmenters/NoMultiplier.java
80.00% <100.00%> (+5.00%)
4.00 <1.00> (+1.00)

...algo3/engine/score/augmenters/ThreeMultiplier.java
100.00% <100.00%> (ø)
5.00 <1.00> (+1.00)

...a/algo3/engine/score/augmenters/TwoMultiplier.java
83.33% <100.00%> (+3.33%)
4.00 <1.00> (+1.00)

...c/main/java/edu/fiuba/algo3/model/MatchResult.java
100.00% <100.00%> (ø)
7.00 <1.00> (ø)

.../java/edu/fiuba/algo3/constants/AugmenterType.java
75.00% <0.00%> (-12.50%)
4.00% <0.00%> (ø%)

Continue to review full report at Codecov.

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


Vertical divider does not work with explicit column width

https://jsfiddle.net/1tqqj43x/1/
It seems that the vertical divider ignores any explicit width set to columns and appears in the dead center of a row. This is even if the columns are direct descendants of a grid.
Not sure if bug or feature. Is it supposed to only work on evenly divided columns instead of explicitly set ones?

See the note in divider about use with grids
http://semantic-ui.com/elements/divider.html#divider
You can just use a ui divided grid, vertical divider is expected to behave that way.
https://jsfiddle.net/hdrt7wpn/


Format the Option modifier as “alt”, not ⌥

Apple has dropped the ⌥ symbol from (some? all?) recent keyboards:

Which means we are formatting the Option key in a way that can be confusing for some users, since they can’t find the ⌥ key on their keyboards. Note that this problem also applies to Apple themselves, since macOS keeps using the ⌥ symbol in menus.
I suggest that we use the “alt” string instead, because that’s present both on the older and the newest keyboard models. In other words, format Option-K as “alt-K”, not “⌥K”.
@shpakovski, what do you think?

Hi Tom! Ugh, this is so controversial… Let’s wait while Apple releases new MacBook Pro? 😃

The trouble is that an app can tell you to press something like ⌥K when there’s no such key as ⌥ on your keyboard. And you’re right – Control is the same problem.
We went through an internal discussion for an app we use MASShortcut for and decided to leave the code as it is, at least for the moment, because the current behaviour is consistent with the system. Which is the most important thing.
So I’m closing the issue – but still, having to explain your users why you use symbols that aren’t on their keyboards sucks.


[new feature] crash test dummy scheduler for unit tests

I've been spending quite a lot of time recently debugging the dask distributed scheduler being unexpectedly invoked in the middle of defining the dask.array graph, both by xarray and by my own application code. If the distributed client and scheduler are on opposite ends of a high-latency network, this can easily compound into hours of overhead in some cases. Another, worse situation that I'm fighting against is when the dask graph definition is performed inside a process pool - a dire necessity for particularly large graphs. In this case, an accidental invocation of the threaded scheduler from inside the subprocess will cause a random and complete deadlock of the Python interpreter, and an inexperienced developer will never figure out what's going on.
To debug this, so far I have been starting a distributed scheduler without workers and watched for my code getting stuck when it accidentally tries submitting stuff to it. This approach however is impractical when writing unit tests.
I'd like to propose writing a new scheduler, crash (I'm open to suggestions for a better name), that raises Exception as soon as anybody tries computing anything with it.
Mock up:
import dask
from dask.array.utils import assert_eq

dask.config.set(scheduler='crash')

def test1():
    # graph definition. scheduler='crash' verifies parts of the graph are not
    # silently computed under the hood
    a = dask.array.arange(4, chunks=2)
    # internally invokes compute(scheduler='sync')
    assert_eq(a, dask.array.from_array([0, 1,2, 3], chunks]=2)

At first glance I can see how this would be useful.  My inclination would
be for someone to build this externally to Dask first and see how it works
in practice before adding it to the package.  My hope is that this is a few
lines of code to do.  Would you be willing to experiment with this on your
own workload (which sounds like it would be useful anyway) and report back
what you find?
On Thu, Jul 26, 2018 at 2:52 AM, crusaderky<EMAIL_ADDRESS>wrote:

I've been spending quite a lot of time recently debugging the dask
distributed scheduler being unexpectedly invoked in the middle of defining
the dask.array graph, both by xarray and by my own application code. If the
distributed client and scheduler are on opposite ends of a high-latency
network, this can easily compound into hours of overhead in some cases.
Another, worse situation that I'm fighting against is when the dask graph
definition is performed inside a process pool - a dire necessity for
particularly large graphs. In this case, an accidental invocation of the
threaded scheduler from inside the subprocess will cause a random and
complete deadlock of the Python interpreter, and an inexperienced developer
will never figure out what's going on.
To debug this, so far I have been starting a distributed scheduler without
workers and watched for my code getting stuck when it accidentally tries
submitting stuff to it. This approach however is impractical when writing
unit tests.
I'd like to propose writing a new scheduler, crash (I'm open to
suggestions for a better name), that raises Exception as soon as anybody
tries computing anything with it.
Mock up:
import dask
from dask.array.utils import assert_eq
dask.config.set(scheduler='crash')
def test1():
# graph definition. scheduler='crash' verifies parts of the graph are not
# silently computed under the hood
a = dask.array.arange(4, chunks=2)
# internally invokes compute(scheduler='sync')
assert_eq(a, dask.array.from_array([0, 1,2, 3], chunks]=2)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/3815, or mute the thread
https://github.com/notifications/unsubscribe-auth/AASszEb8sg-EzgJvq5SKVmhqBmOL-fNxks5uKZFVgaJpZM4VhhDD
.

Sorry - this is still valid but very deep in the backlog


Added Windows support using cross-env library

I added the cross-env as a dependency and to the scripts.  cross-env provides a script which sets an environment unix style to work on Windows and linux operating systems.
I don't have a linux machine to test on.  Once the user gets MongoDB running on the default port, user can simply run 'npm install' then 'npm run start' and everything will work great with these changes on Windows 10 64-bit and Windows 7 64-bit on Node version 5.5.0 and NPM version 3.3.12.
These settings should not affect linux / mac users.  It would be great if someone can test on those machines.

@Magneticmagnum Thanks!! I'll get to testing on mac soon!

Yep I did that too : it's the kind of tricks a windows user must know. For a reason though, I had to specify the env manually before launching the app otherwise I got "environment=undefined".
Just run the following command each time you want to change the environment :
set NODE_ENV=development or set NODE_ENV=production

@Magneticmagnum Thanks for this. Merged!

No problem, great repo!


docs: Adjust the schema to cover required values for AI agent (box/box-openapi#439)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

2 of 148 (1.35%)  changed or added relevant lines in 20 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.1%) to 68.705%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

Box.Sdk.Gen/Managers/Ai/IAiManager.cs
0
1
0.0%

Box.Sdk.Gen/Schemas/AiAgentBasicGenTool/AiAgentBasicGenTool.cs
0
3
0.0%

Box.Sdk.Gen/Schemas/AiAgentLongTextTool/AiAgentLongTextTool.cs
0
3
0.0%

Box.Sdk.Gen/Managers/Ai/GetAiAgentDefaultHeaders.cs
0
4
0.0%

Box.Sdk.Gen/Schemas/AiAgentLongTextTool/AiAgentLongTextToolEmbeddingsField.cs
0
4
0.0%

Box.Sdk.Gen/Schemas/AiAgentLongTextTool/AiAgentLongTextToolEmbeddingsStrategyField.cs
0
4
0.0%

Box.Sdk.Gen/Schemas/AiAgentTextGenResponse/AiAgentTextGenResponse.cs
0
4
0.0%

Box.Sdk.Gen/Managers/Ai/GetAiAgentDefaultQueryParams.cs
0
6
0.0%

Box.Sdk.Gen/Managers/Ai/AiManager.cs
0
7
0.0%

Box.Sdk.Gen/Schemas/AiAgentAskResponse/AiAgentAskResponse.cs
0
7
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-1.1%

Covered Lines:
6673

Relevant Lines:
9717

💛  - Coveralls


Punctuation misalignment problem.

Hi, I'm Thinh,
I'm training tacotron2 model with 27h of audio recording. I used phoneme embedding for represent input text. But our model has misalignment for punctuation position. I train two model: The first one, the punctuation still stored as character (ex: '.' or ';'), and the second, I convert all punctuation into pau phoneme representation. Both models above are misalignment at the punctuation position.
Any suggestions on how to train better?

You can checkout this repository https://github.com/mozilla/TTS which uses Graves' monotonic attention mechanism. The attention mechanism is similar to https://google.github.io/tacotron/publications/location_relative_attention/index.html
Alternatively, you can checkout https://github.com/fatchord/WaveRNN
which reduces sequence's length by a factor of 4 or so, that helps very much in training attention mechanism.

You can checkout this repository https://github.com/mozilla/TTS which uses Graves' monotonic attention mechanism. The attention mechanism is similar to https://google.github.io/tacotron/publications/location_relative_attention/index.html
Alternatively, you can checkout https://github.com/fatchord/WaveRNN
which reduces sequence's length by a factor of 4 or so, that helps very much in training attention mechanism.

Thank for your suggestion. But I still want to know the reason of my problems. One special thing in my data is that each punctuation is a silent which padded to zero. Back to your suggestion,
can that solution solve the cause of the problem? I saw that my tacotron2 model have good alignment for sentences without punctuation.

This is a general attention problem. My guess is that when the network sees a ".", it cannot predict how long the silent will last (because it varies very much). Because of that it will need other information to be able to predict the length of the silent segment.  So, the network will try to read other characters to predict the silent segment. In short, the network try to overfit the dataset to predict silent segments.
Location relative attention guarantees that the network only attends to surrounding characters of ".", it should solve this attention problem, however, it will be more unstable/harder to train.

A great answer, thank you so much. I will try some method to guide Network predict the silient segment.

The season of this problems is my data has mismatch transcriptions.

Hi, I'm Thinh,
I'm training tacotron2 model with 27h of audio recording. I used phoneme embedding for represent input text. But our model has misalignment for punctuation position. I train two model: The first one, the punctuation still stored as character (ex: '.' or ';'), and the second, I convert all punctuation into pau phoneme representation. Both models above are misalignment at the punctuation position.
Any suggestions on how to train better?

Can you share how you deal with "phoneme embedding", do you change this in text symbol or anywhere? And what type of phoneme are you using?

Hi, I'm Thinh,
I'm training tacotron2 model with 27h of audio recording. I used phoneme embedding for represent input text. But our model has misalignment for punctuation position. I train two model: The first one, the punctuation still stored as character (ex: '.' or ';'), and the second, I convert all punctuation into pau phoneme representation. Both models above are misalignment at the punctuation position.
Any suggestions on how to train better?

Can you share how you deal with "phoneme embedding", do you change this in text symbol or anywhere? And what type of phoneme are you using?

I use Phonetic dictionary to convert grapheme to phoneme and I change symbols to include my phonemes, punctuation and number.

@chazo1994 Can you share your symbols.py file? I still can not imagine how phonemes are represented. Also about punctuation, you have "padded to zero", do you keep the set _punctuation as in NVIDIA repo.

padded to zero
I'm sorry for my late reply, to represent phonemes based you need a phonetic dictionary. I cannot share my symbol.py file because of my company policy. In addition, I keep the set _punctuation as NVIDIA repo.

padded to zero
I'm sorry for my late reply, to represent phonemes based you need a phonetic dictionary. I cannot share my symbol.py file because of my company policy. In addition, I keep the set _punctuation as NVIDIA repo.

This is a general attention problem. My guess is that when the network sees a ".", it cannot predict how long the silent will last (because it varies very much). Because of that it will need other information to be able to predict the length of the silent segment. So, the network will try to read other characters to predict the silent segment. In short, the network try to overfit the dataset to predict silent segments.
Location relative attention guarantees that the network only attends to surrounding characters of ".", it should solve this attention problem, however, it will be more unstable/harder to train.

Do you know and repo or fork which implement location relative attention for tacotron2?

@chazo1994 Hi, glad to hear you have solved your problem with dataset; can it be shared? It would be great for other researchers


On a Mac, running ./scripts/build should pass

arvindiyengar: ~/Rancher/prometheus-federator/src/github.com/aiyengar2/prometheus-federator
$ ./scripts/build
Successfully packaged chart and saved it to: bin/rancher-project-monitoring/rancher-project-monitoring-0.1.0.tgz
base64: invalid argument bin/rancher-project-monitoring/rancher-project-monitoring-0.1.0.tgz
Usage:  base64 [-hDd] [-b num] [-i in_file] [-o out_file]
  -h, --help     display this message
  -Dd, --decode   decodes input
  -b, --break    break encoded string into num character lines
  -i, --input    input file (default: "-" for stdin)
  -o, --output   output file (default: "-" for stdout)

On a Mac, running ./scripts/build should pass. Simple fix is to provide --input instead of relying on positional parameters.

arvindiyengar: ~/Rancher/prometheus-federator/src/github.com/aiyengar2/prometheus-federator
$ git fetch upstream
git checkout upremote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (1/1), 677 bytes | 112.00 KiB/s, done.
tFrom github.com:rancher/prometheus-federator
   f8111be63..b4ddcc665  main       -> upstream/main
arvindiyengar: ~/Rancher/prometheus-federator/src/github.com/aiyengar2/prometheus-federator
$ git checkout upstream/main
Note: switching to 'upstream/main'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at b4ddcc665 Merge pull request #28 from aiyengar2/fix_base64_command
arvindiyengar: ~/Rancher/prometheus-federator/src/github.com/aiyengar2/prometheus-federator
$ ./scripts/build
Successfully packaged chart and saved it to: bin/rancher-project-monitoring/rancher-project-monitoring-0.1.0.tgz

LGTM, closing.


feat: making clickable badges

Summary of Changes
Added a component that leverages the style fo the Flag component to make badges on Amundsen clickable. On click a search should be performed with that badge value.
Tests
Documentation
N/A
CheckList
Make sure you have checked all steps below to ensure a timely review.

[ ] PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"

In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

[ ] PR includes a summary of changes, including screenshots of any UI changes.
[ ] PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
[ ] In case of new functionality, my PR adds documentation that describes how to use it.

All the public python functions and the classes in the PR contain docstrings that explain what it does

[ ] PR passes all tests documented in the developer guide

Codecov Report

Merging #519 into master will decrease coverage by 5.48%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #519      +/-   ##
==========================================
- Coverage   81.03%   75.55%   -5.49%
==========================================
  Files         229       42     -187
  Lines        5699     1816    -3883
  Branches      676      174     -502
==========================================
- Hits         4618     1372    -3246
+ Misses       1013      394     -619
+ Partials       68       50      -18

Impacted Files
Coverage Δ

.../static/js/components/PreferencesPage/constants.ts

...undsen_application/static/js/ducks/issue/api/v0.ts

...pplication/static/js/components/HomePage/index.tsx

...s/components/DashboardPage/QueryListItem/index.tsx

...undsen_application/static/js/ducks/user/reducer.ts

...undsen_application/static/js/ducks/search/utils.ts

...pplication/static/js/ducks/announcements/api/v0.ts

...tion/static/js/ducks/tableMetadata/owners/sagas.ts

...nts/common/ResourceListItem/UserListItem/index.tsx

...tic/js/components/common/EditableText/constants.ts

... and 176 more

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 c32080e...9c5d9b4. Read the comment docs.

👀  @ttannis @dikshathakur3119

🔨


fix(TS): valueset checks on array members

Currently trying to validate an OperationDefinition like https://www.hl7.org/fhir/operationdefinition-example.json will fail because the valueset test is run against the array of OperationDefinition.resource values rather than its entries.
Would be good to include parsing tests for fhir-typescript from spec artifacts to make sure validating core spec artifacts doesn't generate errors.

Thanks for the catch and PR!


[Wait #2258][sub-plugin] Add function to stop model training @open sesame 08/09 11:05

[sub-plugin] Add function to stop model training
nnstreamer tensor_trainer call this function to stop model training
Self evaluation:

Build test:   [X]Passed [ ]Failed [ ]Skipped
Run test:     [X]Passed [ ]Failed [ ]Skipped

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2271. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

:octocat: cibot: @songgot, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2271-202308081145300.064126968383789-6f5f4fcbc0698d140ed6af50ac8e0b6264c3518a/.

:octocat: cibot: @songgot, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2271-202308091058070.89385795593262-6f5f4fcbc0698d140ed6af50ac8e0b6264c3518a/.


Feature: Seed monster level parsing

Description
Added 'seed monster level' parsing to the item level parser
Replication Steps
Rarity: Currency
Primal Scrabbler Grain
--------
Stack Size: 1/100
Seed Tier: 2
Spawns a Level 76 Monster when Harvested
Provides 181 Units of Raw Primal Lifeforce when Harvested
Can be Harvested after 9 Growth Cycles
--------
Consumes 40 Wild Units of Condensed Lifeforce from a Disperser per Growth Cycle
Requires 4 Adjacent Primal Seeds of at least Tier 1 to Grow
--------
Allows you to modify an item, resulting in Lucky modifier values when Harvested (crafted)
--------
Right-click this item then left-click the ground to plant it in the Sacred Grove. Once planted and fully grown, can be Harvested by using a nearby Primal Collector.

Screenshots/Video

How Has This Been Tested?

[ ] ran npm run ng:lint
[ ] ran npm run format
[ ] ran npm run ng:test
[ ] added unit tests
[x] manually tested

I wonder if it is more valuable to people to know if it is just above or below 76. To my knowledge pricing ilvl 1-75 are all the same and 76+ are all the same. Do we see this as something safe enough to parse around or leave it to the user to fix the ilvl?

I think it's fine to leave it to the user. This pr simply adds the ability for it to be parsed.


Log error: 'install' is deprecated, use 'async_install' instead

In latest version:
Logger: hacs.repository.plugin.artem-sedykh.mini-climate-card
Source: custom_components/hacs/repositories/helpers/methods/installation.py:17
First occurred: 8:04:39 AM (1 occurrences)
Last logged: 8:04:39 AM

'install' is deprecated, use 'async_install' instead

Maybe you need to update the version of hacs?


Extra credit: Recommender system for feed

The current feed API GET /api/articles/feed returns articles created by followed users, ordered by most recent first.
Using machine learning, could you enhance the feed to also mix in some articles from authors I am not currently following but which I may like, based on various signals like say:

currently followed authors
articles read in the past
other ML magic?

Note that I am proposing this as extra credit. Thus simply returning followed authors' articles most recent first is perfectly acceptable. But what would a Recommender System, even a rudimentary one, look like for RealWorld Conduit?

Fantastic idea! I'd love to see a TensorFlow version of this 🙃

When i first heard about this project, the thing that came to my mind was the simplicity and ease of use. These are valuable resources for beginners and intermediate users to learn and get started. I feel implementation of machine learning to the existing architecture ruins the point.
With that said i love the idea though. Though it shouldn't be hard wired in manipulating the users feed, instead a new endpoint for recommendations could display all the articles based on user's favorites and following pattern.
GET /api/articles/recommend
Any thoughts on having this as a separate machine learning project? The focus currently is with web frontend and backend. Having this as a ML starter would be amazing and if we can get this in a separate project, we can consume it's api in all other backend's to have the recommendation feature.

I suppose communication is key here. With 19 backends WIP right now on top of the three reference backends, it is not possible to force everyone to enhance their backends to provide a recommender system. Hence it should be made clear this is extra credit, you don't have to do it, but if you did how would it go?
Perhaps we could ask folks to show the recommender work in a separate fork or branch so that readers can clearly see the diff with and without it.


The inspector data of the V3 version web interface is displayed incorrectly, and the values are all 0, but the inspector of the V2 version displays correctly.

Prerequisites
What version of pinpoint are you using?
3.0.0
Describe the bug
The inspector data of the V3 version web interface is displayed incorrectly, and the values are all 0, but the inspector of the V2 version displays correctly.
Screenshots
Inspector V3 ：

Inspector V2.3.0 ：

@wyfaq
Based on the screenshots you shared, it's hard to determine which is the cause.
The v3 data is for application, and the v2 screen is for agent, so it's hard to compare exactly.
If the data of agent in v3 is also 0, it seems that the data is not being collected properly in pinot's table.
You need to look at why the data is not being collected properly.
Is the collector failing to collect the data or is PINOT failing to store the data properly, etc.
First, see if the agent data in v3 is okay, then connect to pinot and see if the data is being collected properly.
Translated with DeepL.com (free version)

@wyfaq
根据您分享的屏幕截图，很难确定哪个是原因。v3 数据用于应用程序，而 v2 屏幕用于代理，因此很难进行准确比较。
如果 v3 中 agent 的数据也是 0，那么似乎 pinot 的表中没有正确收集数据。 您需要查看数据没有正确收集的原因。 是收集器未能收集数据还是 PINOT 未能正确存储数据等。
首先，查看 v3 中的代理数据是否正常，然后连接到 pinot 并查看数据是否被正确收集。

@wyfaq
Based on the screenshots you shared, it's hard to determine which is the cause. The v3 data is for application, and the v2 screen is for agent, so it's hard to compare exactly.
If the data of agent in v3 is also 0, it seems that the data is not being collected properly in pinot's table. You need to look at why the data is not being collected properly. Is the collector failing to collect the data or is PINOT failing to store the data properly, etc.
First, see if the agent data in v3 is okay, then connect to pinot and see if the data is being collected properly.

Is the inspector data collection method of Webui V3 different from that of v2?

@wyfaq
Based on the screenshots you shared, it's hard to determine which is the cause. The v3 data is for application, and the v2 screen is for agent, so it's hard to compare exactly.
If the data of agent in v3 is also 0, it seems that the data is not being collected properly in pinot's table. You need to look at why the data is not being collected properly. Is the collector failing to collect the data or is PINOT failing to store the data properly, etc.
First, see if the agent data in v3 is okay, then connect to pinot and see if the data is being collected properly.

Is the inspector data collection method of Webui V3 different from that of v2?

@wyfaq
V2 is storing data in hbase, and V3 is storing data in pinot.


No Audio When download video using -f option

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
I'm using the latest version. When ever I download using the -f option to conserve space, the downloaded video has no audio. I'm force to download with no options which always downloads the highest resolution in webm format which is normally to big for me to download.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[x] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU', '-f', '397', 'https://www.youtube.com/watch?v=jcgfQEbptdo&t=11s']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp (linux_exe)
[debug] Python 3.11.9 (CPython x86_64 64bit) - Linux-6.5.0-35-generic-x86_64-with (OpenSSL 3.1.4 24 Oct 2023)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, mutagen-1.47.0, requests-2.32.2, secretstorage-3.3.3, sqlite3-3.44.2, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1820 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp)
[youtube] Extracting URL: https://www.youtube.com/watch?v=jcgfQEbptdo&t=11s
[youtube] jcgfQEbptdo: Downloading webpage
[youtube] jcgfQEbptdo: Downloading ios player API JSON
[debug] Loading youtube-nsig.74204f6c from cache
[debug] [youtube] Decrypted nsig B1dqHP_zj22ijfAb => tYUvMYm2FRpjsg
[debug] Loading youtube-nsig.74204f6c from cache
[debug] [youtube] Decrypted nsig 2yBhIwEFz8KrDlC6 => XA7dh95zpDu4yw
[youtube] jcgfQEbptdo: Downloading m3u8 information
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[info] jcgfQEbptdo: Downloading 1 format(s): 397
[debug] Invoking http downloader on "https://rr4---sn-huoob-avnz.googlevideo.com/videoplayback?expire=1718470423&ei=t3JtZrKcDOiemLAP1bmu6Aw&ip=<IP_ADDRESS>&id=o-AMRiOIo2E9t9tdhGP8pvPEDkb4flX0v-YO3BuKgDGH6a&itag=397&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=2g&mm=31%2C29&mn=sn-huoob-avnz%2Csn-avn7ln7l&ms=au%2Crdu&mv=m&mvi=4&pl=24&initcwndbps=360000&bui=AbKP-1Nr3R3y0ZgORdFRMV69Gdi-CO7-6mrSSuNoT8hVNH-JHf0t_3Tzy9_f9Bd0sg-Ssa86pWejJIw2&spc=UWF9f6HdKUVn4nmeuw1Nwx_gb8wBkI9Y-QivpzBo4QWucDGbBByaSJFX8neF&vprv=1&svpuc=1&mime=video%2Fmp4&ns=-Tb_jrPHwi_9WUeOzLo-7d4Q&rqh=1&gir=yes&clen=353505527&dur=41724.765&lmt=1703910035802757&mt=1718448308&fvip=1&keepalive=yes&c=WEB&sefc=1&txp=543G434&n=XA7dh95zpDu4yw&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRAIgezhFetxg38WPeujq7CBEE-Xov3wzpErp3LeUrI4y_GwCICvqkbr3JL-9eJDWlfvnxtDHivXwgAEUZVUtq_1iOvCH&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHlkHjAwRQIgZKZrjZGY-j_wD9edcUj5F3No3Y1TVYpkm-Vfz39c2pcCIQCQFUonDvOWKGxDTKBUWwb0kbA2hpst9wsCQ0SHtnw3SA%3D%3D"
[download] Resuming download at byte 25226052
[download] Destination: Learn Blockchain & Solidity Development   Full Course 2024 [jcgfQEbptdo].mp4

There is no audio because you are asking yt-dlp to download format 397, which is a video only format.
You can check all available formats with yt-dlp -F "URL".
If you just want to download a lower resolution version, I would use yt-dlp -S res:480 "URL".

here is the output of yt-dlp -F. Please tell me which code I should use. It appeared to me that 397 was mp4 which I thought was audio/video.Not just video.
[youtube] Extracting URL: https://www.youtube.com/watch?v=jcgfQEbptdo&t=11s
[youtube] jcgfQEbptdo: Downloading webpage
[youtube] jcgfQEbptdo: Downloading ios player API JSON
[youtube] jcgfQEbptdo: Downloading m3u8 information
[info] Available formats for jcgfQEbptdo:
ID      EXT   RESOLUTION FPS CH |   FILESIZE   TBR PROTO | VCODEC          VBR ACODEC      ABR ASR MORE INFO
sb3     mhtml 48x27        0    |                  mhtml | images                                  storyboard
sb2     mhtml 80x45        0    |                  mhtml | images                                  storyboard
sb1     mhtml 160x90       0    |                  mhtml | images                                  storyboard
sb0     mhtml 320x180      0    |                  mhtml | images                                  storyboard
233     mp4   audio only        |                  m3u8  | audio only          unknown             [en] Default
234     mp4   audio only        |                  m3u8  | audio only          unknown             [en] Default
139-drc m4a   audio only      2 |  242.64MiB   49k https | audio only          mp4a.40.5   49k 22k [en] low, DRC, m4a_dash
139     m4a   audio only      2 |  242.64MiB   49k https | audio only          mp4a.40.5   49k 22k [en] low, m4a_dash
249     webm  audio only      2 |  238.36MiB   48k https | audio only          opus        48k 48k [en] low, webm_dash
250     webm  audio only      2 |  332.17MiB   67k https | audio only          opus        67k 48k [en] low, webm_dash
140-drc m4a   audio only      2 |  643.99MiB  129k https | audio only          mp4a.40.2  129k 44k [en] medium, DRC, m4a_dash
140     m4a   audio only      2 |  643.99MiB  129k https | audio only          mp4a.40.2  129k 44k [en] medium, m4a_dash
251     webm  audio only      2 |  601.74MiB  121k https | audio only          opus       121k 48k [en] medium, webm_dash
602     mp4   256x144     15    | ~  1.84GiB  379k m3u8  | vp<IP_ADDRESS>  379k video only
394     mp4   256x144     30    |   79.36MiB   16k https | av01.0.00M.08   16k video only          144p, mp4_dash
269     mp4   256x144     30    | ~  1.41GiB  289k m3u8  | avc1.4D400C    289k video only
160     mp4   256x144     30    |   56.55MiB   11k https | avc1.4D400C     11k video only          144p, mp4_dash
603     mp4   256x144     30    | ~  2.08GiB  428k m3u8  | vp<IP_ADDRESS>  428k video only
278     webm  256x144     30    |  103.48MiB   21k https | vp9             21k video only          144p, webm_dash
395     mp4   426x240     30    |  126.21MiB   25k https | av01.0.00M.08   25k video only          240p, mp4_dash
229     mp4   426x240     30    | ~  1.68GiB  346k m3u8  | avc1.4D4015    346k video only
133     mp4   426x240     30    |   96.51MiB   19k https | avc1.4D4015     19k video only          240p, mp4_dash
604     mp4   426x240     30    | ~  2.12GiB  436k m3u8  | vp<IP_ADDRESS>  436k video only
242     webm  426x240     30    |  173.27MiB   35k https | vp9             35k video only          240p, webm_dash
396     mp4   640x360     30    |  234.06MiB   47k https | av01.0.01M.08   47k video only          360p, mp4_dash
230     mp4   640x360     30    | ~  3.03GiB  623k m3u8  | avc1.4D401E    623k video only
134     mp4   640x360     30    |  166.03MiB   33k https | avc1.4D401E     33k video only          360p, mp4_dash
18      mp4   640x360     30  2 |  904.19MiB  182k https | avc1.42001E         mp4a.40.2       44k [en] 360p
605     mp4   640x360     30    | ~  3.33GiB  686k m3u8  | vp<IP_ADDRESS>  686k video only
243     webm  640x360     30    |  352.96MiB   71k https | vp9             71k video only          360p, webm_dash
397     mp4   854x480     30    |  337.13MiB   68k https | av01.0.04M.08   68k video only          480p, mp4_dash
231     mp4   854x480     30    | ~  3.92GiB  806k m3u8  | avc1.4D401F    806k video only
135     mp4   854x480     30    |  239.54MiB   48k https | avc1.4D401F     48k video only          480p, mp4_dash
606     mp4   854x480     30    | ~  5.39GiB 1110k m3u8  | vp<IP_ADDRESS> 1110k video only
244     webm  854x480     30    |  498.31MiB  100k https | vp9            100k video only          480p, webm_dash
22      mp4   1280x720    30  2 | ≈995.57MiB  200k https | avc1.64001F         mp4a.40.2       44k [en] 720p
398     mp4   1280x720    30    |  563.49MiB  113k https | av01.0.05M.08  113k video only          720p, mp4_dash
232     mp4   1280x720    30    | ~  6.06GiB 1248k m3u8  | avc1.4D401F   1248k video only
136     mp4   1280x720    30    |  354.46MiB   71k https | avc1.4D401F     71k video only          720p, mp4_dash
609     mp4   1280x720    30    | ~  7.12GiB 1465k m3u8  | vp<IP_ADDRESS> 1465k video only
247     webm  1280x720    30    |  838.24MiB  169k https | vp9            169k video only          720p, webm_dash
399     mp4   1920x1080   30    |  983.24MiB  198k https | av01.0.08M.08  198k video only          1080p, mp4_dash
270     mp4   1920x1080   30    | ~ 16.37GiB 3370k m3u8  | avc1.640028   3370k video only
137     mp4   1920x1080   30    |  931.49MiB  187k https | avc1.640028    187k video only          1080p, mp4_dash
614     mp4   1920x1080   30    | ~ 11.20GiB 2305k m3u8  | vp<IP_ADDRESS> 2305k video only
248     webm  1920x1080   30    |    1.25GiB  258k https | vp9            258k video only          1080p, webm_dash
616     mp4   1920x1080   30    | ~ 19.19GiB 3951k m3u8  | vp<IP_ADDRESS> 3951k video only          Premium

As you can see, 397 is a 480p av1 video only format
397     mp4   854x480     30    |  337.13MiB   68k https | av01.0.04M.08   68k video only          480p, mp4_dash

What are you trying to archive?
Do you want the lowest resolution av1 video? Do you want any 480p video? Do you want the smallest possible file?

Sorry, I see the error. I need 18 or 22.
Thanks

@iomari I ran into the same problem but all of the formats with the resolution I wanted was marked "video-only".  I found out I could make yt-dlp download a video stream and an audio stream and merge it automatically by doing something like this:
yt-dlp -f 397+140 [URL]
397 is the video-only stream, while 140 is the audio-only stream.
Hope that helps you in the future!


[ENG-3879] Show dataverse specific info

Ticket: ENG-3879
Feature flag: n/a

Purpose

Show which files are draft vs published for dataverse

Summary of Changes

Add providerSpecificData object to File abstract class

Add titleSuffix to this object
Add suffix for file list view and file detail view

Add test for checked out, unviewed, and dataverse files

Screenshot(s)

list view

file detail view

Side Effects

None

QA Notes

We show both versions as separate files in the file list view, so I've added some text to distinguish which one is the published version

It seems this PR is to add a (Published) or (Draft) post-fix to the file name. In which case, does it make sense to simply override the parent class' name() getter for the dataverse files?

Hmmm, overriding name() may cause unexpected issues if/when we add stuff to filenames for other providers (rename modal autopopulating incorrectly comes to mind), but I think adding a separate getter like fullFileName() or something like that would do the trick.

It seems this PR is to add a (Published) or (Draft) post-fix to the file name. In which case, does it make sense to simply override the parent class' name() getter for the dataverse files?

I would second this. Futa, there is a currentUserPermission method on line 87 that looks like it could be a good template for this.

It seems this PR is to add a (Published) or (Draft) post-fix to the file name. In which case, does it make sense to simply override the parent class' name() getter for the dataverse files?

Hmmm, overriding name() may cause unexpected issues if/when we add stuff to filenames for other providers (rename modal autopopulating incorrectly comes to mind), but I think adding a separate getter like fullFileName() or something like that would do the trick.

How about adding a new displayName getter to the parent File and override that in DataverseFile. That way we only need to change some references to use displayName getter.


Add 'is_octal' validation rule

This new rule will help in validating octal number formats like "0o123" or "0123".

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

13 of 13 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 96.805%

Totals

Change from base Build<PHONE_NUMBER>:
0.02%

Covered Lines:
2666

Relevant Lines:
2754

💛  - Coveralls


Add Parallax

Add Parallax, currently a prototype for a pure module system for JAX.

Thanks for the PR! Before I merge this in, do you have any thoughts on #50? Parallax (as well as other libraries in Awesome JAX) haven't had any activity for over a year, and I'm wondering whether this list would be more useful if we seperate active vs. less active libraries.

I see! I replied in #50 that I think it is better to create a new section for inactive libraries.
Besides, Parallax is a prototype rather than a library ready for production, so it is reasonable that it is not updated after the main features are implemented.
One of the authors has a good talk on Parallax in the JAX Flax Hugging Face community week - day 3
https://drive.google.com/file/d/1pbZFJHpAS0JtrCxGh4XWAwxZgW1PsMwe (starting from 27:00)

Thanks for your input @ayaka14732! I'll merge your PR in now, then split the section up later.


Log exceptions cause and stack trace

Prod is unstable and the current code is hiding the real issue behind a Connection to backend-engine failed. Please retry later message.

LGTM


DSD-1487: custom text styles for Storybook 7

Fixes JIRA ticket DSD-1487
This PR does the following:

Updates the custom text styles that were originally added for previous version of Storybook.

How has this been tested?

local Storybook

Accessibility concerns or updates

n/a

Checklist:

[ ] I have updated the Storybook documentation accordingly.
[ ] I have added relevant accessibility documentation for this pull request.
[ ] All new and existing tests passed.

Front End Review:

[ ] Review the Vercel preview deployment once it is ready.

This looks good. To clarify, we don't want DS styles in the Storybook site, right?

@EdwinGuzman Overall, no, we don't.


Revise Prometheus PVC Spec Syntax Error

What this PR does / why we need it:
Revise Prometheus PVC spec syntax error.
I found out that the yorkie-monitoring helm chart was not storing prometheus metrics, which leads to data loss of metrics every time a node goes down (e.g., EC2 spot instance goes down).
This was because the helm chart syntax of volumeClaimTemplate was wrong (it was not linked to storageSpec). Therefore, I corrected the syntax to make Prometheus successfully claim PVC.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Additional documentation:

Checklist:

[x] Added relevant tests or not required
[x] Didn't break anything

@hackerwins Can you wait before merging this PR?


Concatenate BERT and CNN

I'm trying to concatenate two model in one. I have a BERT model and EfficientNet model.
input_text = model_Bert.inputs[:2]
text = model_Bert(input_text)
input_img = model_EfNet.layers[0].input
img = model_EfNet(input_img)
concatenated = layers.concatenate([text, img], axis=1) #same dimension
dense = layers.Dense(512, activation='relu')(concatenated)
dense = layers.Dense(128, activation='relu')(dense)
dense = layers.Dropout(0.3)(dense)
outputs = layers.Dense(2, activation='softmax', name = 'real_output')(dense)
model_Multimodal = keras.models.Model(inputs=[input_text, input_img], outputs=outputs)

But I got this error:
ValueError Traceback (most recent call last) in 9 outputs = layers.Dense(2, activation='softmax', name = 'real_output')(dense) 10 ---> 11 model_Multimodal = keras.models.Model(inputs=[input_text, input_img], outputs=outputs)

~/anaconda3/lib/python3.7/site-packages/keras/legacy/interfaces.py in wrapper(*args, **kwargs) 89 warnings.warn('Update your ' + object_name + ' call to the ' + 90 'Keras 2 API: ' + signature, stacklevel=2) ---> 91 return func(*args, **kwargs) 92 wrapper._original_function = func 93 return wrapper

~/anaconda3/lib/python3.7/site-packages/keras/engine/network.py in init(self, *args, **kwargs) 92 'inputs' in kwargs and 'outputs' in kwargs): 93 # Graph network ---> 94 self._init_graph_network(*args, **kwargs) 95 else: 96 # Subclassed network

~/anaconda3/lib/python3.7/site-packages/keras/engine/network.py in _init_graph_network(self, inputs, outputs, name, **kwargs) 167 'must come from keras.layers.Input. ' 168 'Received: ' + str(x) + --> 169 ' (missing previous layer metadata).') 170 # Check that x is an input tensor. 171 layer, node_index, tensor_index = x._keras_history

ValueError: Input tensors to a Model must come from `keras.layers.Input`. Received: [<tf.Tensor 'Input-Token_1:0' shape=(None, 128) dtype=float32>, <tf.Tensor 'Input-Segment_1:0' shape=(None, 128) dtype=float32>] (missing previous layer metadata).

How can I merge this two models?

excuse me did you solve it ?

Hi @mathshangw, I took embeddings of this two models and then fuse them in a new one network, but performance was not very satisfying.
This is my thesis, if you want to check my solution you can find the code here: https://github.com/efabb95/Emotion-recognition-with-neural-network-attention-based-model

thanks a lot for replying and the link .. excuse me I'm trying to concatenate two models by extracting the embedding for the sentence but got
ValueError: Layer weight shape (30522, 768) not compatible with provided weight shape torch.Size([1, 15, 768])

I didn't use pytorch, however you have to check your input because you are passing a matrix instead of a tensor.

thanks a lot, another question, please . I read that bert work on subwords so if I need to get the caption for the image , should i use sentence embedding or word embedding ? appreciate your time

Do you carry out hate speech recognition/emotion recognition or something else? BERT returns in the first position [0] the sentence embeddings, in the other positions [1..N] the words embeddings. For me it's better to use sentence embeddings so that you don't have to deal with the different number of words in each sentence.
In my thesis I used only sentence embeddings.


Is there a way to get the chart image with tooltips shown?

Hi, I am using this package on my nodejs service and I am very happy with it so far, now I am just wondering, is there an option to get the tooltips shown in the image? I need to show the chart with the exact numbers for each data in the chart (for example: bar chart).
I saw people on stackoverflow do it but with the regular package and I think those solution wont work for me. anyways thanks in advance.

It sounds like you are looking for data labels.  This plugin is built into the library, you just have to enable it.  Check out the docs to customize the data labels.
Here's an example (link)


progress bar showing confusing status during a failed copy

What steps did you take:
# /home/carvel-imgpkg-v12/cmd/imgpkg/imgpkg copy --tar <redacted>.tar --to-repo <redacted> --registry-username=<redacted> --registry-password=<redacted>
copy | importing 14 images...
 858.78 MiB / 858.80 MiB [===============================================================================================================================================================================================================] 100.00% 27.98 MiB/s
 copy | Error: Error uploading images: Put "http://<redacted>/manifests/sha256-<redacted>.imgpkg": http: ContentLength=1575 with Body length 0
 858.78 MiB / 858.80 MiB [===============================================================================================================================================================================================================] 100.00% 11.57 MiB/s
 copy | Error: Error uploading images: Put "http://<redacted>/manifests/sha256-<redacted>.imgpkg": http: ContentLength=1575 with Body length 0
 858.78 MiB / 858.80 MiB [================================================================================================================================================================================================================] 100.00% 7.31 MiB/s
 copy | Error: Error uploading images: Put "http://<redacted>/manifests/sha256-<redacted>.imgpkg": http: ContentLength=1575 with Body length 0
 858.78 MiB / 858.80 MiB [================================================================================================================================================================================================================] 100.00% 4.89 MiB/s
 copy | Error: Error uploading images: Put "http://<redacted>/manifests/sha256-<redacted>.imgpkg": http: ContentLength=2830 with Body length 0
 858.79 MiB / 858.80 MiB [================================================================================================================================================================================================================] 100.00% 3.77 MiB/s
 copy | Error: Error uploading images: Put "http://<redacted>/manifests/sha256-<redacted>.imgpkg": http: ContentLength=2830 with Body length 0
 858.79 MiB / 858.80 MiB [==========================================================================================================================================================================================================] 100.00% 3.75 MiB/s 3m49s
copy | done uploading images
Error: Retried 5 times: Put "http://<redacted>/manifests/sha256-<redacted>.imgpkg": http: ContentLength=2830 with Body length 0
# /home/carvel-imgpkg-v12/cmd/imgpkg/imgpkg version
imgpkg version 0.12.0
Succeeded

What happened:
The progress bar output is showing 100% when the copy command failed due to a timeout.
This could be a rounding issue and the copy command was really really close to finishing (858.79 MiB / 858.80 MiB) although that could also be reporting incorrectly too.
What did you expect:
The progress bar output to show a progress of less than 100% since the copy command did not succeed.
Anything else you would like to add:
Looks like the ResponseHeaderTimeout set to 10 seconds in the file registry.go could be the cause, as the client is abruptly closing the connection. Setting to a higher value (30 seconds) or not setting the value, resolves the issue

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.

Doing some quick math,
858.78 / 858.80 = 0.9999883558
So, that does round to 100.00 if we're only using two decimals.
I'm thinking that this really isn't a bug unless we don't want to show 100% only when it has been completed. I'm not sure what the technical implications that would have.
@DennisDenuto How would you like to move forward on this? Keep this open, close it out? If we keep it open, I suspect it would be a pretty low priority unless we hear about more folks running into this.

@aaronshurley
I was more sus about the reported upload in MB (858.78 / 858.80 and then later 858.79 / 858.80). was it really only .02 MB from successfully writing everything, and managed to make .01 MB progress before failing again??
I am kinda worried that when a retry occurs, it is messing with the progress bar values (the actual upload isn't really 858.78 but something else).
moving forward on this bug I think would be:

confirm that retry doesn't mess with the progress bar values.

Note:
A lot of the retry / progress bar logic will be changed as part of https://github.com/vmware-tanzu/carvel-imgpkg/issues/155
so this concern will probably be validated/invalidated as part of working on that issue too.

Introduced an error during the 'writing' of an image to force a retry.
The progress bar resets correctly back to zero.
Closing this issue as i'm unable to reproduce this bug.


Create BDD Scenario for List Operation

As a developer
I need to set up a BDD workflow to test the list API
So that I can test the list API from the outside in
Details and Assumptions

Changes will be made in the .feature file
Use Gherkin syntax
Use Selenium to conduct UI testing through the web interface

Acceptance Criteria
Given a workflow is set up to run BDD tests
When I run the behave command
Then the list API BDD scenario should pass (green)

@rachitjain2706 while writing the scenario, could you also rename testone and testtwo to actual inventory items


[labs/ssr] Add "module" to condition name to resolve for Module Loader

This was causing errors in lit.dev repo running eleventy plugin in VM mode.

This was when trying to load tslib which has these package exports
    "exports": {
        ".": {
            "module": "./tslib.es6.js",
            "import": "./modules/index.js",
            "default": "./tslib.js"
        },

and we actually want the "module" export, as the "import" one is causing the error above.

Brilliant investigation & elegant fix! Is there a way to test this change?

Aha, yes! I have manually went to<EMAIL_ADDRESS>in the lit.dev repo, updated this line, and confirmed the dev command to run successfully.

Nice! Is it possible to add a unit test as well?

@AndrewJakubowicz thanks for keeping me honest, test added!

Looks like this is caused by https://github.com/microsoft/tslib/issues/161 which appears to be stalled.

Looks like this is caused by microsoft/tslib#161 which appears to be stalled.

@justinfagnani I agree this is non-standard on their part but it seems other tools are including "module" in their default conditions too e.g.
https://vitejs.dev/config/shared-options.html#resolve-mainfields
https://webpack.js.org/guides/package-exports/#conditions
https://github.com/rollup/plugins/tree/master/packages/node-resolve/#exportconditions


write-read roundtrip results in different value, when key of a map is a decimal

My test generator found following, wrong behavior.
(let [w (transit/writer :json)
      r (transit/reader :json)]
      (transit/read r (transit/write w {0.5 0})))
==> {0 0}

(let [w (transit/writer :json)]
     (transit/write w {0.5 0.5}))
==> "[\"^ \",\"~i0.5\",0.5]"

Version: [com.cognitect/transit-cljs "0.8.239"]

I am having the same issue.

Added a test that exposes this behaviour. Feel free to check out my branch and run lein cljsbuild once test :)

Taking a stab at it later

Parent issue: https://github.com/cognitect/transit-js/issues/36

Just as an FYI, due to the difficulties of exact representation and comparison in floating point, using floats as keys in a hash table is generally considered a bad idea.


Where buy frontend and backend

Improved correction according reviews of PRs 228 and 223

Good job! Thank you! :fire:


Bootstrap color palette to Gutenberg block editor

I propose we add custom Bootstrap palette to be added to the block editor. Ref
If you are using the block editor this is a feature that would help A LOT to keep consistency across your site.
Since we have pre-processing I'm guessing it could be done as in the reference, but since I'm not familiar with the process in here I'd like to hear your opnions before diving in. What are your opinions on this? How should I go about implementing it? Feel free to join in

I think it's a good idea to add some basic support for the block editor. We're happy if you want to contribute. The process here is simple. Just fork the theme repo, do your changes and create a Pull request.

I think that it wouldn't be that hard, plus it would do ground work for more theme customization. Since theme.json is available it would make it a lot easier to implement and not depend on the PHP add_theme_support way of doing it.
The only thing we would need to make is the for scss-compiler.php file to generate the theme.json in the root dir with all the colors as specified in here.
I'm not sure SCSS Compiler CAN compile to .json buit looking at the SCSS code and generated CSS file I'd say the first part of the _root.scss has everything we need to do this, list all the colors:
@each $color, $value in $colors {
    --#{$variable-prefix}#{$color}: #{$value};
}

Any idea how I would about doing this? I'm not familiar with SCSS compiler and I'm having a hard time figuring it out how to add just the colors to the .json

Building support in the scss is quite easy, using the example you posted. Unfortunately, the json/PHP is a bit harder. The compiler can't just read the variables and write json for it. This would basically require all the scss variables to be declared in PHP in some way, so both the compiler and a file writer for json can both use them.
In understrap they use gulp to generate the code, unfortunately in the current system of bootScore this won't fit, as we mainly focus on not needing additional tools. I'll take a closer look at the code on understrap soon, to see if I can get some inspiration.
The only way I can imagine this working the best if we give people instructions on how to edit the theme.json.

I've did a bit of research and got a working prototype:

It uses an external tool https://github.com/sabberworm/PHP-CSS-Parser
composer require sabberworm/php-css-parser to add the library
After the SCSS Compiler does all the work, it will load the bootstrap.min.css and parse the variables.
You need to add the bootscore_compile_json() function after this line in functions.php for it to work
It will get all the whitelisted variables and structure the data in a array
Convert it to JSON and update theme.json

The function:
function bootscore_compile_json()
{
  require __DIR__ . '/../vendor/autoload.php';
  $parser = new \Sabberworm\CSS\Parser(file_get_contents(get_stylesheet_directory() . '/css/lib/bootstrap.min.css'));
  $cssDocument = $parser->parse();
  $vars_whitelist = array("--bs-primary","--bs-secondary","--bs-blue", "--bs-indigo", "--bs-purple", "--bs-pink", "--bs-red", "--bs-orange", "--bs-yellow", "--bs-green", "--bs-teal", "--bs-cyan", "--bs-white", "--bs-gray", "--bs-gray-dark");
  $rulesets = $cssDocument->getAllRuleSets();
  $custom_palette = array();

  foreach ($rulesets as $val)
  {
    $tmp = $val->getRules();
    foreach ($tmp as $rule)
    {
      $ruleV = (string) $rule->getValue();
      $ruleR = $rule->getRule();
      if (in_array($ruleR, $vars_whitelist))
      {
        $_name = str_replace("--bs-", "", $ruleR);
        $_color = array(
          "name" => ucfirst($_name),
          "slug" => $_name,
          "color" => $ruleV
        );
        $custom_palette[] = $_color;
      }
    }
  }
  $json_stru = array(
    "version" => 1,
    "settings" => array(
      "color" => array(
        "palette" => $custom_palette
      )
    )
  );
  $fp = fopen(get_stylesheet_directory() . '/theme.json', 'w');
  fwrite($fp, json_encode($json_stru));
  fclose($fp);
}

What do you think?

Loading in another external library will make the theme more heavy, and recompiling slower, which is a thing to consider. Although I must say, I totally didn't consider that there would even be a library that can read css like that. Testing would be required how hard this can hit performance.
Also, I played around with the theme.json, and even though it's nice, I personally wouldn't use it. It also overrides things like font families in Gutenberg, and if you don't set them they will also be empty in Gutenberg. I would go for the approach of the editor-color-palette and loading a colors.json in there.

Now that theme.json evolved a bit I think it's a good time to revive this.
After refactoring, instead of just the palette, it now also loads font families and set body text and bg colors, plus opens up for any exposed BS variable to be included in theme.json
I also tested the performance and it takes around 0.7 seconds to execute the function on my end. With a check for last modified like the bootscore_compile_scss()  has it shouldn't be a problem, right?
Here's the new function:
function bootscore_compile_json()
{
  require __DIR__ . '/../vendor/autoload.php';
  $parser = new \Sabberworm\CSS\Parser(file_get_contents(get_stylesheet_directory() . '/css/lib/bootstrap.min.css'));
  $cssDocument = $parser->parse();
  $vars_fetch = array("--bs-primary", "--bs-secondary", "--bs-blue", "--bs-indigo", "--bs-purple", "--bs-pink", "--bs-red", "--bs-orange", "--bs-yellow", "--bs-green", "--bs-teal", "--bs-cyan", "--bs-white", "--bs-gray", "--bs-gray-dark", "--bs-body-font-family", "--bs-font-sans-serif", "--bs-font-monospace", "--bs-body-color", "--bs-body-bg");
  $rulesets = $cssDocument->getAllRuleSets();
  $custom_palette = array();

  foreach ($rulesets as $val)
  {
    $tmp = $val->getRules();
    foreach ($tmp as $rule)
    {
      $ruleV = (string) $rule->getValue();
      $ruleR = $rule->getRule();
      if (in_array($ruleR, $vars_fetch))
      {
        $custom_palette[$ruleR] = $ruleV;
      }
    }
  }

  $json_stru = array(
    "version" => 2,
    "styles" => array(
      "color" => array(
        "text" => $custom_palette["--bs-body-color"],
        "background" => $custom_palette["--bs-body-bg"]
      ),
      "typography" => array(
        "fontFamily" => "var(--wp--preset--font-family--default-font-family)",
      )
    ),
    "settings" => array(
      "typography" => array(
        "fontFamilies" => array(
          array(
            "fontFamily" => $custom_palette["--bs-body-font-family"],
            "slug" => "default-font-family",
            "name" => "Default Bootstrap Font"
          ),
          array(
            "fontFamily" => $custom_palette["--bs-font-sans-serif"],
            "slug" => "font-sans-serif",
            "name" => "Sans Serif"
          ),
          array(
            "fontFamily" => $custom_palette["--bs-font-monospace"],
            "slug" => "font-monospace",
            "name" => "Monospace"
          )
        )
      ),
      "color" => array(
        "palette" => array(
          array(
            "name" => "Primary",
            "slug" => "primary",
            "color" => $custom_palette["--bs-primary"]
          ),
          array(
            "name" => "Secondary",
            "slug" => "secondary",
            "color" => $custom_palette["--bs-secondary"]
          ),
          array(
            "name" => "Blue",
            "slug" => "blue",
            "color" => $custom_palette["--bs-blue"]
          ),
          array(
            "name" => "Indigo",
            "slug" => "indigo",
            "color" => $custom_palette["--bs-indigo"]
          ),
          array(
            "name" => "Purple",
            "slug" => "purple",
            "color" => $custom_palette["--bs-purple"]
          ),
          array(
            "name" => "Pink",
            "slug" => "pink",
            "color" => $custom_palette["--bs-pink"]
          ),
          array(
            "name" => "Red",
            "slug" => "red",
            "color" => $custom_palette["--bs-red"]
          ),
          array(
            "name" => "Orange",
            "slug" => "orange",
            "color" => $custom_palette["--bs-orange"]
          ),
          array(
            "name" => "Yellow",
            "slug" => "yellow",
            "color" => $custom_palette["--bs-yellow"]
          ),
          array(
            "name" => "Green",
            "slug" => "green",
            "color" => $custom_palette["--bs-green"]
          ),
          array(
            "name" => "Teal",
            "slug" => "teal",
            "color" => $custom_palette["--bs-teal"]
          ),
          array(
            "name" => "Cyan",
            "slug" => "cyan",
            "color" => $custom_palette["--bs-cyan"]
          ),
          array(
            "name" => "White",
            "slug" => "white",
            "color" => $custom_palette["--bs-white"]
          ),
          array(
            "name" => "Gray",
            "slug" => "gray",
            "color" => $custom_palette["--bs-gray"]
          ),
          array(
            "name" => "Gray Dark",
            "slug" => "gray-dark",
            "color" => $custom_palette["--bs-gray-dark"]
          )
        )
      )
    )
  );
  $fp = fopen(get_stylesheet_directory() . '/theme.json', 'w');
  fwrite($fp, json_encode($json_stru));
  fclose($fp);
}

Can you fork the theme and create a working example to test?
Path to css has changed from /css/lib/bootstrap.min.css to /css/main.css.

Can you fork the theme and create a working example to test?

I forked it here and in this branch is the working prototype. I tested it with child theme and it seems to be working also.

Tested and works flawlessly. Think that's pretty smart and would love to add this feature to the theme.

@iwasthesword are you able to maintain this part in the long-therm?
@justinkruit what do you think?

If so, I'm in.

@iwasthesword are you able to maintain this part in the long-therm?

Yes, I can maintain this in the long term.

I think it's best too. I will soon start working on adding the 'last modified' check so it doesn't fire every load and polish the code bit and prepare for the next release.

I've been testing with the theme.json today, but for some reason it still feels buggy. Spacing on blocks go missing, font families missing when you don't add them, etc. Next to that, adding this library will also render the theme.json on each page load when developing.
It's a nice system, but I honestly think it's for the best if users add the colors themselves, either with theme.json or via add_theme_support('editor-color-palette', array()).

I've used the understrap build system (basically at package.json npm build script) and personally prefer it to bootscores SCSSphp compilation, but come back to bootscore as its woocommerce support and out-of-the-box menu system and other things are stronger.
The understrap system basically copies all the required SCSS files from the parent theme and compiles with NPM scripts.  Understrap also has a browser watch compilation if you like that kind of thing, all are pretty straightforward.
What I like about it is you have more control over the SCSS, I comment some of Bootstrap SCSS imports that I don't use and comment out lots of fontawesome SCSS.  Also dependencies like:

fontawesome
bootstrap5

are simply pulled down via NPM, at the moment the bootscores main theme is having to package these dependencies.
The NPM build command is straightforward and ubiquitous and wouldn't think it would scare people away from using the theme, themes like this are developer-centric.   NPM build makes life easier and is powerful and configurable.
I disabled bootscores SCSSphp compilation and moved over to NPM script in the work I'm currently undertaking and run a NPM scripts that compiles the SCSS and copies it to the CSS directory.  Like this
"scripts": {
        "css": "npm-run-all css-compile css-postcss css-minify",
        "css-compile": "sass --style expanded --source-map --embed-sources --no-error-css --quiet scss/main.scss:css/main.css",
        "css-minify": "cleancss -O1 --format breakWith=lf --with-rebase --source-map --source-map-inline-sources --output css/ --batch --batch-suffix \".min\" \"css/*.css\" \"!css/*.min.css\" \"!css/*rtl*.css\"",
        "css-postcss": "postcss --config src/build/postcss.config.js --replace \"css/*.css\" \"!css/*.rtl*.css\" \"!css/*.min.css\"",
        "copy-assets": "node src/build/copy-assets.js"
    },

I initially ran the copy-assets NPM script which just runs a piece of JS to copy the required asset files from the parent theme.
Understrap has scripts to compile and minify JS
"js": "npm-run-all js-compile js-minify",
    "js-compile": "rollup --config src/build/rollup.config.js --sourcemap",
    "js-minify": "terser js/child-theme.min.js --config-file src/build/terser.config.json --source-map \"content=js/child-theme.js.map,url=child-theme.min.js.map,filename=child-theme.min.js\" --output js/child-theme.min.js",

And browser-sync scripts to compile when SCSS is updated etc
 "watch": "npm-run-all --parallel watch-run-*",
    "watch-bs": "npm-run-all --parallel bs watch-run-*",
    "watch-run-css": "nodemon --watch src/sass/ --ext scss --exec \"npm-run-all css\"",
    "watch-run-js": "nodemon --watch src/js/ --ext js --exec \"npm-run-all js\"",

Not sure there is much appetite to explore this after your work last year to integrate a PHP SCSS compiler.  But I'd be interested in using NPM with bootscore and could chip in.


Add tests to guard reading experiments and configs

Closing as this should be completed as part of #5. I'll update #5 to reflect that requirement.


[x] don't ignore deleted files in changed-since

Realized that you can do something silly like just delete a file without
affecting any others.
Tested by deleting storage/libradb/src/metrics.rs, then running cargo xbuild --changed-since HEAD and seeing that libradb and a bunch of other packages
were re-tested.

/land


Detaching Associations

Hi, I was just wondering if there was already a way to detach an association from a Model?
For example, I have a use case for a need to detach a contact from a Deal.
I appreciate if this functionality is not built in just yet, if it is not I will take a look at getting this in on my fork and submit a PR here
Thanks,
Adam

Here is the Pull request : #22 !

v0.11 released, thank you!


Fix: list is cut off at bottom in LHN

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/5005
Tests | QA Steps

Open LHN on IOS.
Check the LHN should not hide behind the bottom home bar.

Please test https://github.com/Expensify/App/issues/3637 as well which will be directly affected by this PR.
Tested On

[x] Web
[x] Mobile Web
[x] Desktop
[x] iOS [Affected Platfrom]
[x] Android

Screenshots

Web

Mobile Web

Desktop

iOS

https://user-images.githubusercontent.com/24370807/137527541-c5bede00-75ab-47ec-b30a-5eedb181b937.mp4
Android

@iwiznia Could you please review this?

Gentle Bump... I am getting impatient here. There is another step on my proposal after this PR but we can't test that until this is merged.

🚀 Deployed to staging by @iwiznia in version: 1.1.8-10 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Polybar complains about jsoncpp when launched from i3

Describe the issue
I have this line in my i3 config:
exec_always --no-startup-id ~/.config/polybar/launch.sh

and these lines in the launch.sh script:
killall -q polybar
polybar default > ~/polylog 2>&1

When I launch i3 or refresh it, the contents of ~/polylog are:
polybar: error while loading shared libraries: libjsoncpp.so.11: cannot open shared object file: No such file or directory

However, when I run the launch.sh script from a terminal, polybar loads fine. I  am running Arch Linux and have the jsoncpp package installed (v1.8.4-2). I installed polybar using the polybar package in the AUR (clean installed after installing jsoncpp).
I understand that this is likely not a polybar issue but I am not sure where else to ask.
Expected behavior:
Polybar should launch when launched from i3.
Actual behavior:
Polybar throws an error about missing jsoncpp when launched from i3, but runs perfectly fine when run from a terminal.
To Reproduce
My config has nothing special, just the i3 module and the systray.
[bar/default]
monitor = DVI-I-1
width = 100%
height = 26
padding-left = 2
padding-right = 2
module-margin-left = 2
module-margin-right = 2
modules-left = i3 xwindow
tray-position = right

Polybar Log
Output when run from i3 (not terminal):
polybar: error while loading shared libraries: libjsoncpp.so.11: cannot open shared object file: No such file or directory

Environment:

WM: i3-gaps
Output of polybar -vvv:

polybar 3.2.1

Features: +alsa +curl +i3 -mpd +network +pulseaudio +xkeyboard

X extensions: +randr (+monitors) -render -damage -sync -composite +xkb +xrm +xcursor

Build type: RelWithDebInfo
Compiler: /bin/c++
Compiler flags: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -Wextra -Werror -Wno-noexcept-type -O2 -pedantic -pedantic-errors
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now

For some reason you have a stray libjsoncpp.so.11 file in your system somewhere that polybar links against when building but doesn't always find. The version of jsoncpp you are using actually provides libjsoncpp.so.20
Please try finding the libjsoncpp.so.11 file with either locate libjsoncpp.so.11 or find / -name "libjsoncpp.so.11" and seeing which package it belongs to with pacman -Qo /path/to/libjsoncpp.so.11
Please post everything you find here. This is likely a misconfiguration on your system but I don't want to rule out an error on our side yet. Because polybar actually builds jsoncpp alongside polybar if you don't have jsoncpp 1.7.7 or newer and the version that it builds actually would create libjsoncpp.so.11 but it should be disabled, so it's definitely possible that we have messed up.

find / -name "libjsoncpp.so.11" doesn't return any results.

I ended up following the symlink advice from #963 and it is now working for me as well. Is there anyway I can help find the root cause for this?

I have a polybar binary in /usr/local/bin/polybar and one in /bin/polybar. I guess I must have compiled one version a while ago and it landed /usr/local/bin and that's what i3 is picking up.
Thanks for the help.


feat: add stackexchange data

The datasets aren't that large but I think they are meaningful because those are questions humans care about.
We can copy/paste this pipeline for other StackExchange datasets.
We have two kinds of tasks: Answering the question and generating a title for a question.
Did some conservative filtering by just dropping all questions or answers with figures or links.


[Dev UI] Runners should refresh schema when changing between actions

In the breadcrumbs, it's possible to quickly change between actions, flows, etc.

Ensure that the input (and/or output) schemas are appropriately refreshed. When we updated to the new UI, we had some regressions, since we made heavy use of ngOnInit, instead of signals.

[x] ~Models~ - N/A
[x] Flows
[x] Prompts
[x] Tools
[x] Embedders
[x] Indexers
[x] Retrievers
[x] Evaluators

All of these seem to be in working order now!


making compiledGlobalTags a function to always get latest tags

The point of a TagGenerator is to generate a set of tags applied to every metric.  These tags are not immutable and may change during the course of an application's life.  Currently though, we only get the tags once when the reporter actor is created, and never fetch them again.  This fixes that.

Current coverage is 78.34%

Merging #241 into master will not affect coverage as of 2de38c7

@@            master    #241   diff @@
======================================
  Files           69      69
  Stmts         3255    3255
  Branches       412     412
  Methods          0       0
======================================
  Hit           2550    2550
  Partial          0       0
  Missed         705     705

Review entire Coverage Diff as of 2de38c7

Powered by Codecov. Updated on successful CI builds.

+1


Link issue

Subject: Link issue
Description:
Click a link provided by a coucher.
Results:
on https://couchers.org/user/alexander_p, he did supply a URL to couchsurfing.com, to his own profile, however, when I click that URL, I got redirected to couchers.org
What I did expect is that I should go to the couchsurfing website, perhaps first redirected to a warning page that you are leaving couchers.org and that couchers.org can't be responsible for the content on the other site.
Backend version: develop-c0f4e3f1
Frontend version: develop-c0f4e3f1
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0
Page: https://couchers.org/user/alexander_p
User: richee (2740)

This is an issue with that particular website and their server. Discussed on slack.


GitLab template doesn't use docker

Is your feature request related to a problem? Please describe.
Currently in the versioned template file, there is a 'before_script' action that is needed to run KICS.  The script does a wget and pulls the latest version.
Describe the solution you'd like
Instead of running this before_script, this should all be done in a container and should be referenced:
image:
name: checkmarx/kics
entrypoint: ['']
I think the same goes for GH Action as well (the entrypoint script)
Describe alternatives you've considered
N/A
Additional context
N/A

This is a duplicate of  #2962


Frikki/refactor/dom

[ ] I added new tests for the issue I fixed/built
[x] I ran npm test for the package I'm modifying
[ ] I used npm run commit instead of git commit

DO NOT DELETE BRANCH AFTER MERGE!!!

DO NOT DELETE BRANCH AFTER MERGE!!!

Is this for every PR or just this one? And why?

Would be nice to one day see small PRs that refactor dom with some of these ideas, for now though, let's close this.


Add support for alternative JSON [de/]serializers

A hard dependency on Jackson makes this project difficult to adopt in existing large projects or ones that are sensitive to dependencies.  In particular, an option to use Android's built-in JsonReader parser would be very handy.
A modular design that allowed custom code generators (or sufficient hooking in the standard generator) would be greatly preferred as it is technically possible to build a custom JSON parser that will outperform Jackson for your particular use case.  Specifically, Jackson creates many internal unnecessary objects because it doesn't have strong awareness of what concrete target type the JSON type is going to fit into.  With this knowledge in the parser generator, primitives (including strings) can be constructed with less object overhead.

You're thinking of Jackson Databind, not the Jackson streaming API, which is what this library uses. There is absolutely no way that using Android's JsonReader could even come close to being as fast as this. Also, including only the Jackson streaming API as a dependency is much smaller than you think (~230kb as a jar, even smaller when compiled into your app). You're probably used to using Jackson core + Jackson annotations + Jackson databind, which can be pretty big.
The purpose of this library is to generate the fastest possible JSON parsing/serializing code with almost no additional effort from the app developer, and using the Jackson streaming API is the best way to do that at the moment. We're very happy with our decision and will not be changing that until something faster comes along.

I was referring to the streaming core.  It is inappropriate to require this
dependency in third party libraries.  For instance, does Retrofit require
Jackson?  No, that would be a problematic requirement.  Instead, it offers
a way to use Jackson conveniently along with other engines.
I understand the design motivation but I cannot use this library as-is
because I can't require Jackson in users of my library.
El 22/2/2015 13:33, "Eric Kuck"<EMAIL_ADDRESS>escribió:

You're thinking of Jackson Databind, not the Jackson streaming API, which
is what this library uses. There is absolutely no way that using Android's
JsonReader could even come close to being as fast as this. Also, including
only the Jackson streaming API as a dependency is much smaller than you
think (~230kb as a jar, even smaller when compiled into your app). You're
probably used to using Jackson core + Jackson annotations + Jackson
databind, which can be pretty big.
The purpose of this library is to generate the fastest possible JSON
parsing/serializing code with almost no additional effort from the app
developer, and using the Jackson streaming API is the best way to do that
at the moment. We're very happy with our decision and will not be changing
that until something faster comes along.
—
Reply to this email directly or view it on GitHub
https://github.com/bluelinelabs/LoganSquare/issues/29#issuecomment-75461391
.

I would suggest reading up on what Jackson core is. It doesn't map objects at all like you seem to think it does. What you said about creating unnecessary internal objects because of not knowing the concrete type is only true of Databind.
Regardless, this library generates code to serialize and parse your objects for you. To do that, it has to target a JSON library. Making it work with another system would pretty much require forking it and rewriting the majority of the code. This isn't a runtime library like Retrofit, so the comparison doesn't fit.
If you're that concerned about the tiny amount of space Jackson will take up and don't care about performance, then it sounds like this isn't the library for you.


Issue converting Twilio Media Stream (mulaw) to PCM for @aws-sdk/client-transcribe-streaming

Hello, and thanks for this library!  I'm trying to use it to convert audio coming in from Twilio so it can be transcribed by Amazon Transcribe.  Unfortunately, I'm getting back empty responses from AWS (ex: { TranscriptEvent: { Transcript: { Results: [] } } }).  Here's the transport stream I'm using for the conversion.
new stream.Transform({
  transform(chunk, encoding, done) {
    const wav = new WaveFile();
    wav.fromScratch(1, 8000, '8m', Buffer.from(chunk, 'base64'));
    wav.fromMuLaw();
    this.push(Buffer.from(wav.data.samples));
    done();
  }
});

The audio from Twilio is mulaw encoded.  AWS has this on their best practices webpage for supported audio "PCM (only signed 16-bit little-endian audio formats, which does not include WAV)".  I'm assuming that's exactly what I get when running wav.fromMuLaw(), correct?  Should I try using wav.getSamples(false, Int16Array) instead of wav.data.samples?  Any other things I should try?
Thanks for your help.

I was able to get this working with a very slight variation of the snipped I pasted above.
new stream.Transform({
  transform(chunk, encoding, done) {
    const wav = new WaveFile();
    wav.fromScratch(1, 8000, '8m', chunk);
    wav.fromMuLaw();
    this.push(Buffer.from(wav.data.samples));
    done();
  }
});

I'm writing to the transport stream like this.
transportStream.write(Buffer.from(payload, 'base64'))


Better handling of raw data

is there a path specified in the recordings[n]/raw/hdf5_path?
does it exist?
return(HDF5 file attribute)
is there a .dat or .bin of the same basename in the same path? (not sure how we deal with multiple recordings but k
return(.dat/bin)
is there a .raw.kwd of the same basename in the same path?
return(raw.kwd)
basically priority 1) hdf5 link 2) .dat/bin 3) .raw.kwd

The logic (inc #488) should be:

is there a path specified in the recordings[n]/raw/hdf5_path?
does this path exist? if so, return it
if not, does a file with the same name exist in the same directory as the kwik file? if so, return it_
is there a .dat or .bin of the same basename in the same path? if so, return it (maybe we will remove this because of complexities with multiple .dats!
is there a .raw.kwd of the same basename in the same path? if so, return it


[Project Submission] a-jam

The discussion about this project can be found here: https://github.com/ipfs/community/discussions/564

Thanks!!


[cucumber-expressions] generated expressions - expose argument names

@aslakhellesoy
resolves #82
I think cucumber-expressions needs it own repo similar to gherkin so there is a single CI build to test everything.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue).
[x] New feature (non-breaking change which adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected).

Checklist:

[x] I've added tests for my code.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.

I think cucumber-expressions needs it own repo similar to gherkin so there is a single CI build to test everything.

We'll be gradually moving the entire Cucumber ecosystem into a single monorepo (this one), and have read-only manyrepos, one for each language. The cucumber-expressions library already has manyrepos:

https://github.com/cucumber/cucumber-expressions-java
https://github.com/cucumber/cucumber-expressions-javascript
https://github.com/cucumber/cucumber-expressions-ruby

This is currently synced manually by me using a script called push-subtrees. I want to automate this as part of CI, but haven't gotten around to it yet. FYI this script uses a tool called splitsh-lite

K. My main concern was when I create a PR here, I'd like a CI build for each of the subtrees I touch.

Yes I would love for that to happen, but it's tricky to set up.

@charlierudolph I've requested some help with this in splitsh/lite#24

awesome!