[SEMANTIC-237] [Bug] Using more than 2 metrics in a model results in an error

Is this a new bug in dbt_metrics?

[X] I believe this is a new bug in dbt_metrics
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
I have defined 3 metrics. I can define and run a model that uses 2 metrics:
{{
    config(
        materialized ="incremental",
        incremental_strategy ="merge",
        unique_key =["city_id", "date_day"],
        partition_by ="date_day",
        schema = "schema_name"
    )
 }}

select *
from {{ metrics.calculate(
    [
          metric('orders_created')
        , metric('orders_finished')
    ],
    grain='day',
    dimensions=['city_id']
) }}

When I extend this to use 3 metrics:
{{
    config(
        materialized ="incremental",
        incremental_strategy ="merge",
        unique_key =["city_id", "date_day"],
        partition_by ="date_day",
        schema = "ng_public_spark"
    )
 }}

select *
from {{ metrics.calculate(
    [
          metric('orders_created')
        , metric('orders_finished')
        , metric('ride_price')
    ],
    grain='day',
    dimensions=['city_id']
) }}

I get a very long and confusing error that mentions something about date_day.
So I started debugging the compiled query. I tested each of the CTEs one by one until I got to the one that fails.

with calendar as (
    select
        *
    from `dbt_silja_mardla_spark`.`dbt_metrics_default_calendar`

)

, model_64c767185dd0c6a4ebf9b0de00d7c135__aggregate as (

    select
        date_day,
        city_id,
        max(metric_date_day is not null) as has_data,
        count(distinct property_to_aggregate__orders_created) as orders_created
    from (
        select
            cast(base_model.created as date) as metric_date_day,
            calendar.date_day as date_day,
            calendar.date_day as window_filter_date,
            base_model.city_id,
            (id) as property_to_aggregate__orders_created
        from `dbt_silja_mardla_spark`.`stg_ng_public__company_order` base_model

        left join calendar
            on cast(base_model.created as date) = calendar.date_day

        where 1=1
        and (
            created_date >= date('2023-03-16 12:00:00')
            and created_date <= date('2023-03-16 14:00:00')
            )

    ) as base_query

    where 1=1
    group by 1, 2

), model_64c767185dd0c6a4ebf9b0de00d7c135__final as (

    select
        parent_metric_cte.date_day,
        parent_metric_cte.city_id,
        coalesce(orders_created, 0) as orders_created
    from model_64c767185dd0c6a4ebf9b0de00d7c135__aggregate as parent_metric_cte
)

, model_b8a8c92f4fbcd57d006a0a6bf049e5e5__aggregate as (

    select
        date_day,
        city_id,
        max(metric_date_day is not null) as has_data,
        count(distinct property_to_aggregate__orders_finished) as orders_finished
    from (
        select
            cast(base_model.created as date) as metric_date_day,
            calendar.date_day as date_day,
            calendar.date_day as window_filter_date,
            base_model.city_id,
            (order_id) as property_to_aggregate__orders_finished
        from `dbt_silja_mardla_spark`.`stg_ng_public__company_order_try` base_model

        left join calendar
            on cast(base_model.created as date) = calendar.date_day

        where 1=1
        and (
            state = 'finished'
            and created_date >= date('2023-03-16 12:00:00')
            and created_date <= date('2023-03-16 14:00:00')
            )

    ) as base_query

    where 1=1
    group by 1, 2

), model_b8a8c92f4fbcd57d006a0a6bf049e5e5__final as (

    select
        parent_metric_cte.date_day,
        parent_metric_cte.city_id,
        coalesce(orders_finished, 0) as orders_finished
    from model_b8a8c92f4fbcd57d006a0a6bf049e5e5__aggregate as parent_metric_cte
)

, model_7d3d0d0827c0b922fbc968ea7c5446a4__aggregate as (

    select
        date_day,
        city_id,
        max(metric_date_day is not null) as has_data,
        sum(property_to_aggregate__ride_price) as ride_price
    from (
        select
            cast(base_model.created as date) as metric_date_day,
            calendar.date_day as date_day,
            calendar.date_day as window_filter_date,
            base_model.city_id,
            (ride_price) as property_to_aggregate__ride_price
        from `dbt_silja_mardla_spark`.`stg_ng_public__company_order_try` base_model

        left join calendar
            on cast(base_model.created as date) = calendar.date_day

        where 1=1
        and (
            retry_to_try is null
            and created_date >= date('2023-03-16 12:00:00')
            and created_date <= date('2023-03-16 14:00:00')
            )

    ) as base_query

    where 1=1
    group by 1, 2

), model_7d3d0d0827c0b922fbc968ea7c5446a4__final as (

    select
        parent_metric_cte.date_day,
        parent_metric_cte.city_id,
        coalesce(ride_price, 0) as ride_price
    from model_7d3d0d0827c0b922fbc968ea7c5446a4__aggregate as parent_metric_cte
)

, first_join_metrics as (

    select
        date_day,
        coalesce(
            model_64c767185dd0c6a4ebf9b0de00d7c135__final.city_id,
            model_b8a8c92f4fbcd57d006a0a6bf049e5e5__final.city_id,
            model_7d3d0d0827c0b922fbc968ea7c5446a4__final.city_id
        ) as city_id,
        coalesce(orders_created,0) as orders_created,
        coalesce(orders_finished,0) as orders_finished,
        coalesce(ride_price,0) as ride_price
    from model_64c767185dd0c6a4ebf9b0de00d7c135__final
    full outer join model_b8a8c92f4fbcd57d006a0a6bf049e5e5__final
        using (
            date_day
            , city_id
        )
    full outer join model_7d3d0d0827c0b922fbc968ea7c5446a4__final
        using (
            date_day
            , city_id
        )

)

select * from first_join_metrics

/*
, joined_metrics as (

    select
        date_day,
        city_id,
        orders_created,
        orders_finished,
        ride_price
    from first_join_metrics

)

select
    date_day ,
    city_id,
    orders_created,
    orders_finished,
    ride_price
from joined_metrics

order by 1 desc

) metric_subq

*/

So I commented out the third metric

with calendar as (
    select
        *
    from `dbt_silja_mardla_spark`.`dbt_metrics_default_calendar`

)

, model_64c767185dd0c6a4ebf9b0de00d7c135__aggregate as (

    select
        date_day,
        city_id,
        max(metric_date_day is not null) as has_data,
        count(distinct property_to_aggregate__orders_created) as orders_created
    from (
        select
            cast(base_model.created as date) as metric_date_day,
            calendar.date_day as date_day,
            calendar.date_day as window_filter_date,
            base_model.city_id,
            (id) as property_to_aggregate__orders_created
        from `dbt_silja_mardla_spark`.`stg_ng_public__company_order` base_model

        left join calendar
            on cast(base_model.created as date) = calendar.date_day

        where 1=1
        and (
            created_date >= date('2023-03-16 12:00:00')
            and created_date <= date('2023-03-16 14:00:00')
            )

    ) as base_query

    where 1=1
    group by 1, 2

), model_64c767185dd0c6a4ebf9b0de00d7c135__final as (

    select
        parent_metric_cte.date_day,
        parent_metric_cte.city_id,
        coalesce(orders_created, 0) as orders_created
    from model_64c767185dd0c6a4ebf9b0de00d7c135__aggregate as parent_metric_cte
)

, model_b8a8c92f4fbcd57d006a0a6bf049e5e5__aggregate as (

    select
        date_day,
        city_id,
        max(metric_date_day is not null) as has_data,
        count(distinct property_to_aggregate__orders_finished) as orders_finished
    from (
        select
            cast(base_model.created as date) as metric_date_day,
            calendar.date_day as date_day,
            calendar.date_day as window_filter_date,
            base_model.city_id,
            (order_id) as property_to_aggregate__orders_finished
        from `dbt_silja_mardla_spark`.`stg_ng_public__company_order_try` base_model

        left join calendar
            on cast(base_model.created as date) = calendar.date_day

        where 1=1
        and (
            state = 'finished'
            and created_date >= date('2023-03-16 12:00:00')
            and created_date <= date('2023-03-16 14:00:00')
            )

    ) as base_query

    where 1=1
    group by 1, 2

), model_b8a8c92f4fbcd57d006a0a6bf049e5e5__final as (

    select
        parent_metric_cte.date_day,
        parent_metric_cte.city_id,
        coalesce(orders_finished, 0) as orders_finished
    from model_b8a8c92f4fbcd57d006a0a6bf049e5e5__aggregate as parent_metric_cte
)

, model_7d3d0d0827c0b922fbc968ea7c5446a4__aggregate as (

    select
        date_day,
        city_id,
        max(metric_date_day is not null) as has_data,
        sum(property_to_aggregate__ride_price) as ride_price
    from (
        select
            cast(base_model.created as date) as metric_date_day,
            calendar.date_day as date_day,
            calendar.date_day as window_filter_date,
            base_model.city_id,
            (ride_price) as property_to_aggregate__ride_price
        from `dbt_silja_mardla_spark`.`stg_ng_public__company_order_try` base_model

        left join calendar
            on cast(base_model.created as date) = calendar.date_day

        where 1=1
        and (
            retry_to_try is null
            and created_date >= date('2023-03-16 12:00:00')
            and created_date <= date('2023-03-16 14:00:00')
            )

    ) as base_query

    where 1=1
    group by 1, 2

), model_7d3d0d0827c0b922fbc968ea7c5446a4__final as (

    select
        parent_metric_cte.date_day,
        parent_metric_cte.city_id,
        coalesce(ride_price, 0) as ride_price
    from model_7d3d0d0827c0b922fbc968ea7c5446a4__aggregate as parent_metric_cte
)

, first_join_metrics as (

    select
        date_day,
        coalesce(
            model_64c767185dd0c6a4ebf9b0de00d7c135__final.city_id,
            model_b8a8c92f4fbcd57d006a0a6bf049e5e5__final.city_id
            --model_7d3d0d0827c0b922fbc968ea7c5446a4__final.city_id
        ) as city_id,
        coalesce(orders_created,0) as orders_created,
        coalesce(orders_finished,0) as orders_finished
        --coalesce(ride_price,0) as ride_price
    from model_64c767185dd0c6a4ebf9b0de00d7c135__final
    full outer join model_b8a8c92f4fbcd57d006a0a6bf049e5e5__final
        using (
            date_day
            , city_id
        )
    /*full outer join model_7d3d0d0827c0b922fbc968ea7c5446a4__final
        using (
            date_day
            , city_id
        ) */

)

select * from first_join_metrics

/*
, joined_metrics as (

    select
        date_day,
        city_id,
        orders_created,
        orders_finished,
        ride_price
    from first_join_metrics

)

select
    date_day ,
    city_id,
    orders_created,
    orders_finished,
    ride_price
from joined_metrics

order by 1 desc

) metric_subq

*/

and it runs.
So I went through different test with simple sample data and got to the root problem.
This fails with a clear
Error in SQL statement: AnalysisException: Reference 'date_day' is ambiguous, could be: sampleA.date_day, sampleB.date_day, sampleC.date_day.; line 19 pos 4

-- Build similar query with simple data

with
sampleA AS (
            select date('2023-03-16') as date_day, 1 as city_id, 10 as orders_created
  union all select date('2023-03-17') as date_day, 1 as city_id, 10 as orders_created
  union all select date('2023-03-16') as date_day, 2 as city_id, 10 as orders_created
),
sampleB AS (
            select date('2023-03-16') as date_day, 2 as city_id, 10 as orders_finished
  union all select date('2023-03-16') as date_day, 3 as city_id, 10 as orders_finished
  union all select date('2023-03-17') as date_day, 3 as city_id, 10 as orders_finished
),
sampleC AS (
            select date('2023-03-18') as date_day, 3 as city_id, 10 as ride_price
  union all select date('2023-03-18') as date_day, 4 as city_id, 10 as ride_price
  union all select date('2023-03-18') as date_day, 5 as city_id, 10 as ride_price
)

select
    date_day
  , coalesce(
        sampleA.city_id
      , sampleB.city_id
      , sampleB.city_id
    ) as city_id
  , coalesce(orders_created,null) as orders_created
  , coalesce(orders_finished,0) as orders_finished
  , coalesce(ride_price,0) as ride_price
from sampleA
full outer join sampleB using (city_id)
full outer join sampleC using (city_id)

So the obvious solution is to properly coalesce both of the dimensions. This works:
-- Build similar query with simple data

with
sampleA AS (
            select date('2023-03-16') as date_day, 1 as city_id, 10 as orders_created
  union all select date('2023-03-17') as date_day, 1 as city_id, 10 as orders_created
  union all select date('2023-03-16') as date_day, 2 as city_id, 10 as orders_created
),
sampleB AS (
            select date('2023-03-16') as date_day, 2 as city_id, 10 as orders_finished
  union all select date('2023-03-16') as date_day, 3 as city_id, 10 as orders_finished
  union all select date('2023-03-17') as date_day, 3 as city_id, 10 as orders_finished
),
sampleC AS (
            select date('2023-03-18') as date_day, 3 as city_id, 10 as ride_price
  union all select date('2023-03-18') as date_day, 4 as city_id, 10 as ride_price
  union all select date('2023-03-18') as date_day, 5 as city_id, 10 as ride_price
)

select
    coalesce(
        sampleA.date_day
      , sampleB.date_day
      , sampleB.date_day
    ) as date_day
  , coalesce(
        sampleA.city_id
      , sampleB.city_id
      , sampleB.city_id
    ) as city_id
  , coalesce(orders_created,0) as orders_created
  , coalesce(orders_finished,0) as orders_finished
  , coalesce(ride_price,0) as ride_price
from sampleA
full outer join sampleB using (city_id)
full outer join sampleC using (city_id)

I still need to think about what's going on with those nulls in the date and city, but at least it does not fail.
Expected Behavior
I expect to be able to use more than 2 metrics in a model.
I assume that the problem would be solved by proper use of coalesce for all of the dimensions instead of just one of them.
Steps To Reproduce
See above.
Relevant log output
No response
Environment
dbt --version
Core:
  - installed: 1.4.5
  - latest:    1.4.5 - Up to date!

Plugins:
  - databricks: 1.4.2 - Up to date!
  - spark:      1.4.1 - Up to date!

Packages:
  - package: dbt-labs/metrics
    version: 1.4.1

Which database adapter are you using with dbt?
databricks, spark
Additional Context
No response

If I use 2 metrics, but one of them (gmv_eur) is a derived metric depending on 1 other metric (ride_price):
{{
    config(
        materialized ="incremental",
        incremental_strategy ="merge",
        unique_key =["city_id", "date_day"],
        partition_by ="date_day",
        schema = "schema_name"
    )
 }}

select *
from {{ metrics.calculate(
    [
          metric('orders_finished')
        , metric('gmv_eur')
    ],
    grain='day',
    dimensions=['city_id']
) }}

It does actually create a table with 3 columns (including the ride_price metric automatically).

But that's because the derived metric calculation happens later on in code. The problematic parts of the code only have to deal with 2 metrics.

Debugging the rows where the date_day and city_id are nulls:
Here is another example with slightly modified test data.
The null row gets added when the third table brings in a row of date_day and city_id that does not exist in the first two tables. This makes a good test case for test driven development ;)
-- Build similar query with simple data

with
sampleA AS (
            select date('2023-03-16') as date_day, 1 as city_id, 10 as orders_created
  union all select date('2023-03-17') as date_day, 1 as city_id, 10 as orders_created
  union all select date('2023-03-16') as date_day, 2 as city_id, 10 as orders_created
),
sampleB AS (
            select date('2023-03-16') as date_day, 2 as city_id, 10 as orders_finished
  union all select date('2023-03-16') as date_day, 3 as city_id, 10 as orders_finished
  union all select date('2023-03-17') as date_day, 3 as city_id, 10 as orders_finished
),
sampleC AS (
            select date('2023-03-17') as date_day, 1 as city_id, 10 as ride_price
  union all select date('2023-03-16') as date_day, 2 as city_id, 10 as ride_price
  union all select date('2023-03-16') as date_day, 3 as city_id, 10 as ride_price
  union all select date('2023-03-18') as date_day, 4 as city_id, 10 as ride_price --comment out and the null row goes away
)

select
    coalesce(
        sampleA.date_day
      , sampleB.date_day
      , sampleB.date_day
    ) as date_day
  , coalesce(
        sampleA.city_id
      , sampleB.city_id
      , sampleB.city_id
    ) as city_id
  , coalesce(orders_created,0) as orders_created
  , coalesce(orders_finished,0) as orders_finished
  , coalesce(ride_price,0) as ride_price
from sampleA
full outer join sampleB using (date_day, city_id)
full outer join sampleC using (date_day, city_id)
order by city_id, date_day

Update
This code will also return the expected results on my test data:
with
sampleA AS (
            select date('2023-03-16') as date_day, 1 as city_id, 10 as orders_created
  union all select date('2023-03-17') as date_day, 1 as city_id, 10 as orders_created
  union all select date('2023-03-16') as date_day, 2 as city_id, 10 as orders_created
),
sampleB AS (
            select date('2023-03-16') as date_day, 2 as city_id, 10 as orders_finished
  union all select date('2023-03-16') as date_day, 3 as city_id, 10 as orders_finished
  union all select date('2023-03-17') as date_day, 3 as city_id, 10 as orders_finished
),
sampleC AS (
            select date('2023-03-17') as date_day, 1 as city_id, 10 as ride_price
  union all select date('2023-03-16') as date_day, 2 as city_id, 10 as ride_price
  union all select date('2023-03-16') as date_day, 3 as city_id, 10 as ride_price
  union all select date('2023-03-18') as date_day, 4 as city_id, 10 as ride_price
)

select
    date_day
  , city_id
  , coalesce(orders_created,0) as orders_created
  , coalesce(orders_finished,0) as orders_finished
  , coalesce(ride_price,0) as ride_price
from sampleA
full outer join sampleB using (date_day, city_id)
full outer join sampleC using (date_day, city_id)
order by city_id, date_day

All I've done is I have removed the coalesce from the select.

I have created a pull request that would potentially fix the problem: https://github.com/dbt-labs/dbt_metrics/pull/241


Emphasized Kubernets word in readme file

What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Checklist

[ ] Does this PR have a corresponding GitHub issue?
[ ] Have you included relevant README for the chaoslib/experiment with details?
[ ] Have you added debug messages where necessary?
[ ] Have you added task comments where necessary?
[ ] Have you tested the changes for possible failure conditions?
[ ] Have you provided the positive & negative test logs for the litmusbook execution?
[ ] Does the litmusbook ensure idempotency of cluster state?, i.e., is cluster restored to original state?
[ ] Have you used non-shell/command modules for Kubernetes tasks?
[ ] Have you (jinja) templatized custom scripts that is run by the litmusbook, if any?
[ ] Have you (jinja) templatized Kubernetes deployment manifests used by the litmusbook, if any?
[ ] Have you reused/created util functions instead of repeating tasks in the litmusbook?
[ ] Do the artifacts follow the appropriate directory structure?
[ ] Have you isolated storage (eg: OpenEBS) specific implementations, checks?
[ ] Have you isolated platform (eg: baremetal kubeadm/openshift/aws/gcloud) specific implementations, checks?
[ ] Are the ansible facts well defined? Is the scope explicitly set for playbook & included utils?
[ ] Have you ensured minimum/careful usage of shell utilities (awk, grep, sed, cut, xargs etc.,)?
[ ] Can the limtusbook be executed both from within & outside a container (configurable paths, no hardcode)?
[ ] Can you suggest the minimal resource requirements for the litmusbook execution?
[ ] Does the litmusbook job artifact carry comments/default options/range for the ENV tunables?
[ ] Has the litmusbooks been linted?

Special notes for your reviewer:

Hi @rakeshonrediff ! Thanks for the PR, can you make a signed commit pls?

Hi @rakeshonrediff .. This PR is getting stale and has conflicts now. Can you please fix and address those and the comments, else I am afraid I have to close this one.

Closing this PR as no response from @rakeshonrediff


bug: Cannot update a component from inside the function body of a different component.

Bug Report
setSelectedPage(props.match.params.name);
is causing the problem
Ionic version:
[x] 5.x
ionic sidemenu project from ionic start
Current behavior:

index.js:1 Warning: Cannot update a component (App) while rendering a different component (Context.Consumer). To locate the bad setState() call inside Context.Consumer, follow the stack trace as described in https://fb.me/setstate-in-render
in Route (at App.tsx:37)
in View (created by StackManagerInner)
in ViewTransitionManager (created by StackManagerInner)
in ion-router-outlet (created by IonRouterOutlet)
in IonRouterOutlet (created by ForwardRef(IonRouterOutlet))
in ForwardRef(IonRouterOutlet) (created by StackManagerInner)
in StackManagerInner (created by Context.Consumer)
in Unknown (created by Component)
in Component (created by ForwardRef(IonRouterOutlet))
in ForwardRef(IonRouterOutlet) (at App.tsx:36)
in ion-split-pane (created by IonSplitPane)
in IonSplitPane (created by ForwardRef(IonSplitPane))
in ForwardRef(IonSplitPane) (at App.tsx:34)
in NavManager (created by RouteManager)
in RouteManager (created by Context.Consumer)
in RouteManager (created by IonReactRouter)
in Router (created by BrowserRouter)
in BrowserRouter (created by IonReactRouter)
in IonReactRouter (at App.tsx:33)
in ion-app (created by IonApp)
in IonApp (created by ForwardRef(IonApp))
in ForwardRef(IonApp) (at App.tsx:32)
in App (at src/index.tsx:6)
Expected behavior:

Steps to reproduce:

NPM Start
Related code:

insert short code snippets here

Other information:

Ionic info:
Ionic:

   Ionic CLI       : 6.5.0 (C:\Users\Rob\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework : @ionic/react 5.0.7

Capacitor:

   Capacitor CLI   : 2.0.0
   @capacitor/core : 2.0.0

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v13.11.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.13.7
   OS     : Windows 10

Thanks for the issue. I updated the sidemenu starter to fix the error. It should be available shortly for new Ionic apps. You can see the changes here if you want to implement them in your own project: https://github.com/ionic-team/starters/pull/1218


Better shortcut key system

Description of the new feature / enhancement

Allow key combination.
Real shift and ctrl, independent of event.key, use event.code. use raw keys.

Scenario when this would be used?
No response
Supporting information
No response

831a3d2dafe4bb3861ef60093c2bcc8700af9de2


Architecture Guidance is wrong for RDWEB

The current guidance to install RDWeb is extremely misleading, to initially configure the RDweb role it must be done using domain credentials, not ideal if your expecting to store this VM in a DMZ which is also the recommended practice. This has caused me issues on a current project.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 428e9e07-ca35-27d2-e63a-92930cec0118
Version Independent ID: 9a452a85-9afa-42d5-f319-bf1c4c50d01d
Content: Remote Desktop Services architecture
Content Source: WindowsServerDocs/remote/remote-desktop-services/Desktop-hosting-logical-architecture.md
Product: windows-server-threshold
GitHub Login: @lizap
Microsoft Alias: elizapo

#please-close


Added base for a bloom_button component with a variant attribute

👋🏼 Hey!
First of all: Great project.
I just started to fiddle around in the elixir world a few weeks ago.
as i came to the phoenix world (as mentioned on twitter a total noob still) i saw the potential but missed the capabilities of the react ecosystem. so adding value to those kind of endeavours seems to be the right move 👨🏼💻
What i implemented
with the core components coming with phoenix we already have great stuff to start implementing simple UIs in elixir, but i  always missed the ability to have an outlined variant of the button.
so thats what i added. the bloom_button can of course become a way bigger and more complex component, but an additional variant seems like a good start to me.
i hope i did everything right.
Open Question
how does versioning work here in the elixir world? i know changesets for js projects and i would add one here. i see a changelog -> should i extend it manually, will you do it?
kind regards and hopefully this is of any help. any feedback appreciated :)

I have some free time next week, is something missing here? :) can I be of any assistance?
Additionally I had a look on frankenui: https://www.franken-ui.dev
what do you think of transporting some of them to bloom? seems like a great base for many things :)

@webspaceadam - Apologies for the long delay! I've been extremely busy with life recently but back to getting Bloom up to scratch.
I'd love the contribution from some of Franken UI components if you're still up for it!


dash at beginning of client config

what kind of monsters put a dash in the beginning of their file name?
root@WTF:~# cat '-client-8YXj7Lejv0.conf'
cat: invalid option -- 'c'
Try 'cat --help' for more information.

root@WTF:~# cat -client-8YXj7Lejv0.conf
cat: invalid option -- 'c'
Try 'cat --help' for more information.

I know the solution to this is  cat ./-client-8YXj7Lejv0.conf but this is kinda mean to new users :P

That's not the solution. The solution is double dash ;)
cat -- -client-8YXj7Lejv0.conf

Solution is double dash ;)
cat -- -client-8YXj7Lejv0.conf

double dash is new to me! many ways to skin a cat :D

https://github.com/angristan/wireguard-install/blob/7c6da8df0ebf39f37beae5aa45898c4120d64041/wireguard-install.sh#L121-L122
https://github.com/angristan/wireguard-install/blob/7c6da8df0ebf39f37beae5aa45898c4120d64041/wireguard-install.sh#L48-L48
@chppppp you didn't specify an interface name, the file doesn't start with a dash.
We should add checks to avoid empty answers. If anyone wants to open a PR it's a good first issue.


chore(karpenter-core): go get<EMAIL_ADDRESS>(3/6)

Fixes #
Description
This update has the change for the import path.
Following aws' set of updates:

https://github.com/aws/karpenter-provider-aws/commit/12396f8cd91fd60500ba6bf74441d3d1ea69d0df#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52

How was this change tested?
Nothing additional
*
Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[ ] No

Release Note

NONE

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 97.541%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
35743

Relevant Lines:
36644

💛  - Coveralls

There are a couple of references to karpenter-core in comments that would be good to cleanup / update (unless this is done in one of the later PRs).

Yea, I noticed that as well. I was considering what to do with those. They aren't currently addressed in this PR, or a future one

There are a couple of references to karpenter-core in comments that would be good to cleanup / update (unless this is done in one of the later PRs).

Ok, updated everything except for the alt package naming. Should probably update that as well, but not looking to in this PR.


How to clear the textarea

Hi, I currently have this code :
<MentionsInput
placeholder={Translator.trans('label.placeholder_comment', {}, 'comment')}
value={this.state.newComment}
name="newComment"
ref="newCommentTextareaRef"
onChange={this.handleNewCommentChange}
className="comment-mention-textarea"
markup="[display:id]">
<Mention
trigger={/(?:^|\s)(@([^@]{2,}))$/}
data={this.state.items}
appendSpaceOnAdd="true"
style={{backgroundColor: 'rgba(44,187,215,0.3)'}}
renderSuggestion={this.renderSuggestion}/>

And I want to clear this textarea after I click a particular button. I tried using this code ReactDOM.findDOMNode(this.refs.newCommentTextareaRef).value = null; but it did not work. I also tried jQuery but didn't work too. For this case, how should we do it? Thank you very much.

how about setting this.state.newComment to null?


NDRS-1117: Backport handshake

This backports two 1.1.0 changes to dev, with the necessary alterations: https://github.com/CasperLabs/casper-node/pull/1256 (making the maximum message size depend on the chainspec instead of being hardcoded) https://github.com/CasperLabs/casper-node/pull/1263 (include the chainspec version in the handshake)
It also introduces the first set of rountrip tests that are ensuring we can serialize/deserialize network messages from 1.0.0 and onwards.

bors r+


feat(goctl): better generate the api code of typescript

When generating the api code of typescript, if the tag contains the options modifier, the union type is generated instead of the declared type. Here is an example.
Api:
type SomeType {
	Foo string `json:"foo,options=foo,bar,options,123"`
	Bar int `json:"bar,options=1,3,4,123"`
}

Typescript:
export interface SomeType {
    foo: 'foo' | 'bar' | 'options' | '123'
    bar: 1 | 3 | 4 | 123
}

This can provide a good intelligent complement for the front-end IDE.
I have completed  the test file.

As a comparison, the past output is:
export interface SomeType {
    foo: string
    bar: number
}

No need to define type in ts?

As a comparison, the past output is:
export interface SomeType {
    foo: string
    bar: number
}

No need to define type in ts?

As a comparison, the past output is:
export interface SomeType {
    foo: string
    bar: number
}

This is the syntax feature of typescript, called union type

IDE can know which options are available for this variable


[iOS] Add vertical stretch support

Adds vertical stretch support for iOS, for all the input elements, the vertical stretch also adds an container view and a blank view so the input doesn't expand occupying all the remaining space
This PR completes this work item: https://github.com/Microsoft/AdaptiveCards/issues/1296

plz add sample json that exercises this feature?

user activity: portrait is clipped. Scuba card has one of the input field is missing. Weather compact card has bottom is slightly clipped. Itinerary card has text slightly squeezed.


Error when retrieving datasource configurations.

Describe the issue:
When initializing a datasource the pool properties are read[1]. However, the configured pool configurations are not properly assigned to the datasource because of failing the condition in [2]. This can be observed in several places. All the places which have the mentioned issue should be fixed.
How to reproduce:

Set up a secondary user store.
Change/Add the INITIALSIZE of the pool configs.
Observe if the INITIALSIZE changes.
As the above-mentioned condition[2] fails the default JDBC pool INITIAL SIZE will be assigned,

Expected behavior:
Proper datasource configurations should be honored when initializing the database.
Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: [e.g., IS 5.11.0, IS 5.10.0]
Userstore: [JDBC]

[1] https://github.com/wso2/carbon-kernel/blob/4.6.x/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/util/DatabaseUtil.java#L346
[2] https://github.com/wso2/carbon-kernel/blob/4.6.x/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/util/DatabaseUtil.java#L444

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


C++ auto-indent not working

producing, for example,
int main()
{
  void walk_count(int, int, int, int, int), print_data();
  int my_max(int);
  clock_t start, finish;
  cout << "input nsteps" << endl;
  cin >> nsteps;
  start = clock();
  for (int x=0; x<=extent; x++)
    {
      for (int y=0; y<=extent; y++)
        walk[x][y]=0;
      }
      walk_count(x_initial+1,y_initial,nsteps-1,1,x_initial+1);
      finish = clock();
      cout << "Computation time is " << (finish-start)/(1.0*CLOCKS_PER_SEC) << " seconds" << endl;
      return 0;
    }

when it should look like
int main()
{
  void walk_count(int, int, int, int, int), print_data();
  int my_max(int);
  clock_t start, finish;
  cout << "input nsteps" << endl;
  cin >> nsteps;
  start = clock();
  for (int x=0; x<=extent; x++)
    {
      for (int y=0; y<=extent; y++)
        walk[x][y]=0;
    }
  walk_count(x_initial+1,y_initial,nsteps-1,1,x_initial+1);
  finish = clock();
  cout << "Computation time is " << (finish-start)/(1.0*CLOCKS_PER_SEC) << " seconds" << endl;
  return 0;
}

My package is just using the "Editor: Indent" (it's basically doing "cmd+a cmd+i").
If there's an issue with the indentation you should create an issue on atom's repo.


New Release

Hey,
You have merged few branches to master and there is no new release.
When will you create a new release, and upload to pypi?
Thanks 😄

Hopefully, by the end of this week, we will be having a new release.

Hello @bl4ckst0ne new release v0.1.6 has been released in PyPi


Merging transactions is broken

When mergeTx is called, the transaction is rejected with the following log:
Rejected tx. Reason: LockType.Key signature in unlock script failed validation.

Fixed by bosagora/agora#2204


Update JacksonAdapter to use Builders and Caching

This PR updates JacksonAdapter with a few changes.

Strongly configured writing empty XML elements as null. This is to ensure forwards compatibility with Jackson 2.12 which changes the default value for this configuration from true to false.
Construction of the Jackson mappers were updated to use builders instead of modifying the mappers themselves to remove some deprecated API usages.
Adds caching of Type to JavaType to reduce repeating the same logic to convert the value.
Adds logic to reduce the amount of time spent converting HttpHeaders into their deserialized header formats. Most changes come by simplifying the logic to convert headers into their collection format.
Adds verbose logs to warn when deserialization fails.

/azp run java - search - tests

/azp run java - storage - tests

Search tests all fail with a known test failure currently being investigated

/check-enforcer override


Client flush method takes a delay but does not use it

Hello, I'd like to use the delay option on the client flush method however there is no explanation of how to use it and walking through the code I can't actually figure out what the 'delay' param does. It appears to do nothing.
I'm interested in using this delay feature because we have over a dozen memcached severs and we'd like to stagger our cache flushing. This delay param seems perfect but I'm not going to use it until I can understand how it works.
It's here on the client https://github.com/mperham/dalli/blob/master/lib/dalli/client.rb#L251
which is called on each of my servers here via request
https://github.com/mperham/dalli/blob/master/lib/dalli/server.rb#L56
which in turn, calls send(:flush, delay)
Looking at the method flush it takes a 'ttl' param but then does not use it?
https://github.com/mperham/dalli/blob/master/lib/dalli/server.rb#L305
I see ttl passed in to the binary protocol packing in other places... like here https://github.com/mperham/dalli/blob/master/lib/dalli/server.rb#L381
I'm happy to fork, fix, and issue a PR if this is indeed not implemented. I'm just a little confused at the moment.
Thanks!

@breakpointer Did you ever put together some code here?

@petergoldstein Oh, hmm... If I did it's long gone by now. Sorry!

@breakpointer Ok, thanks.
I'll schedule this for review in 3.0.


Add gpt model model parameter

By defualt, the model would be gpt-4.
But, the user can specify, the model they want.

wew

not sure about this, model gpt-4 can not work on proff lvl

sometimes is work ye, but its mistacke of galagramos inside the knek

It already works if you run main.py --model gpt-3.5-turbo (so this PR is useless)


OTA firmware update mechanism

Main MCU and front panel can be SFTP flashed as of 32c89cd3c7032165a75d551cfba21c36a573dbed. Working on FPGA.


Setting fast refresh to false also disables automatic reload

Describe the bug
When I set FAST_REFRESH=false I expect the old behaviour of a full reload of the page, but instead nothing happens.
Did you try recovering your dependencies?

Yes
Which terms did you search for in User Guide?

FAST_REFRESH
Environment

❯ npx create-react-app --info

Environment Info:

  current version of create-react-app: 3.4.0
  running from /home/rasmus/.config/yarn/global/node_modules/create-react-app

  System:
    OS: Linux 5.8 Ubuntu 20.10 (Groovy Gorilla)
    CPU: (6) x64 Intel(R) Core(TM) i5-8600 CPU @ 3.10GHz
  Binaries:
    Node: Not Found
    Yarn: Not Found
    npm: Not Found
  Browsers:
    Chrome: 86.0.4240.111
    Firefox: 82.0
  npmPackages:
    react: ^17.0.1 => 17.0.1
    react-dom: ^17.0.1 => 17.0.1
    react-scripts: 4.0.0 => 4.0.0
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

(Write your steps here:)

Add FAST_REFRESH=false to the .env file
yarn start
Do a change

Expected behavior

The page reloads
Actual behavior

Nothing, I have to reload manually
Reproducible demo

N/A, just create a new app

I had this issue and replied with a hacky work around in #9913.  Looking through the file history for the hot dev client this has been fixed, but remains to be released (#9884).  Any idea from the maintainers when they intend to release the next version?  If fast refresh has issues (like in my case) this should be released sooner than later so folks can use the hot reload instead.

Any updates?


Can you add the meta charset so Spanish users can write in their language? They want to use Spanish accents

Hi @Raoden4Elantris. I think I understand the request here, and I'll explain what could be done vs. what may not be possible here.

Your use case is to support generating Latin character-based texts with diacritics to support Spanish (or other languages that use Latin diacritics) texts through the generator. This would mean that generated texts would include those diacritics (á, é, í, ó, ú, ü, ñ).
The issue with supporting diacritics is that the sprite sheet for EarthBound's text does not contain any letters with diacritics. It does contain some Japanese, which could be mapped in, but unfortunately no Latin letters with diacritics.
There are bootleg PAL versions of EarthBound, and ROM hacks for Spanish translations of EarthBound, but I don't have access to them and the work to retrofit any characters from those things into this generator seems too arduous.
There could be a library added that will take diacritics and map them to the appropriate mapped character, but this would result in generated Spanish or other Latin-based texts missing their diacritics (e.g. "Escribiré más código mañana" would become "Escribire mas codigo manana").
If there is a clean plain and flavored sprite sheet for diacritics, it could be proposed as a PR and I can consider mapping it in, but I cannot guarantee a timeline for it.

Happy to hear your thoughts!

Hi. I see what's the problem. I requested to you just because a friend of
mine wanted to use diacritics in his texts, I'll say him your answer.
Thanks anyways
El lun, 16 de sep. de 2024 8:58 a. m., Bill Eager @.***>
escribió:

Hi @Raoden4Elantris https://github.com/Raoden4Elantris. I think I
understand the request here, and I'll explain what could be done vs. what
may not be possible here.

Your use case is to support generating Latin character-based texts
with diacritics to support Spanish (or other languages that use Latin
diacritics) texts through the generator. This would mean that generated
texts would include those diacritics (á, é, í, ó, ú, ü, ñ).
The issue with supporting diacritics is that the sprite sheet
https://github.com/beager/ebtext/blob/master/assets/text/plain.png
for EarthBound's text does not contain any letters with diacritics. It does
contain some Japanese, which could be mapped in, but unfortunately no Latin
letters with diacritics.
There are bootleg PAL versions of EarthBound, and ROM hacks for
Spanish translations of EarthBound, but I don't have access to them and the
work to retrofit any characters from those things into this generator seems
too arduous.
There could be a library added that will take diacritics and map
them to the appropriate mapped character, but this would result in
generated Spanish or other Latin-based texts missing their diacritics (e.g.
"Escribiré más código mañana" would become "Escribire mas codigo manana").
If there is a clean plain and flavored sprite sheet for diacritics,
it could be proposed as a PR and I can consider mapping it in, but I cannot
guarantee a timeline for it.

Happy to hear your thoughts!
—
Reply to this email directly, view it on GitHub
https://github.com/beager/ebtext/issues/9#issuecomment-2352849014, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BGT3OFQ43FU5WKA2SLH2M33ZW3IYBAVCNFSM6AAAAABOHILMDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJSHA2DSMBRGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


[BUG] Multiple port conflicts

Silicoin has multiple port conflicts with other Chia forks, causing the Silicoin client not to function on systems already running the other forks.
I'd suggest changing the used ports as follows:
FROM > TO
9444 > 10444
9448 > 10448
9447 > 10447
9559 > 10559
9555 > 10555
9556 > 10446
9449 > 10449
9560 > 10560
9445 > 10445
9000 > 10000
9256 > 10256

How do I change these ports? More details please

@Alex11reg The configuration file is located in:
C:\Users%username%.silicoin\mainnet\config\config.yaml
However... Even though the release says it's "mainnet", it is actually running the testnet, so it's pointless to make the changes yourself as you still wouldn't be on the live blockchain. The changes need to be adopted by the project owner/devs and committed to the code, so that the coin uses the new ports by default.

i hope the ports changed

just open a PR?

Will change default ports in the next release, thanks for your suggestion :)


neon-ui bug?

I would have preferred to email or PM you, but I can't find any contact info anywhere on your app,  homepage (https://ray3k.wordpress.com), gamejolt, or youtube account. Maybe consider adding an email somewhere (unless you hid it intentionally)?
Anyway:
I noticed an odd thing about the neon-ui example. When I move my mouse slowly towards a Button or TextButton, the buttons highlight before my mouse is actually over them. It seems their bounds are larger than the actual displayed objects. When I export the example skin and load it up in libgdx, I get the same behavior. Meaning, the buttons feel too small, and they detect mouseover events before the mouse is visually over the component. Is this a bug or by design of the original author?

Here is fine, I'm also on the libGDX Discord. The Neon UI skin uses a lot of glow around the edges so the image is larger than the border would have you think. If you really want to prevent that, you'd have to figure out how to modify the Button class to only register the mouse over after a small gap. No easy solution for that I'm afraid.


Few values like _socket.remoteAddress and _socket.remotePort are undefined

Hi,
I tried using this library in my current ws based app but these variables are undefined and these are helpful for logging too.
ws._socket.remoteAddress
ws._socket.remotePort
ws.upgradeReq.url
Thanks

+1

These properties are most probably not part of the "public" interface. _socket seems to be a net.Socket which is not used in µWS. The same goes for upgradeReq. You only get upgradeReq when using the Node.js HTTP server but not when using the built-in HTTP server in µWS (simply because that server is not the Node.js HTTP server and will not act as it).
If you need the upgradeReq you have to use the Node.js HTTP server (by using handleUpgrade, or specifying server and path in the construction options). See nodejs/paths.js for an example.

If you need to get the remoteAddress aka the client IP that could be added as a functionality. But I cannot add it as a variable in an object _socket since that would require a ton of memory (each JS object is massive). It could be made a function of the socket like socket.getRemoteAddress().

This may sound like a really random idea. But hypothetically speaking you could make one 'variable' _socket object that implements an ES6 getter method to retrieve the value of socket.getRemoteAddress(). Each connection always gets the same _socket object.
Something like this:
var _socket = {
  get remoteAddress() {
    return socket.getRemoteAddress();
  }
  get remotePort() {
    return socket.getRemotePort();
  }
}

Then all you have to do is use this same object for each 'separate' connection. This way you can shim the current behavior to some extend and you save loads of memory.
Just curious what you think

This shared object, how would it know what socket to get from?

Can I have a get function for _socket, returning a reference to the shared _socket?

class Socket {
get _socket() {
remoteAddress = lalala;
remotePort = lalala;
}
}

I removed some of my comments, but in short: using those get functions it should be possible to write something like:
class Socket {
get _socket() {
return {
this.remoteAddress = ...;
this.remotePort = ...;
}
}
}
Aka, construct a new object when it is read from, containing the variables with data set.

@JrSchild I did this:
    /**
     * Phony _socket object constructed on read.
     *
     * @public
     */
    get _socket() {
        return {
            remoteAddress: '...',
            remotePort: 0
        };
    }

Where '...' will be replaced with real information. Thanks for the hint!

Brilliant solution, and on the prototype, so this costs 0 extra memory.

Thanks @alexhultman


expose ZipFile compression to export_package

adds default for compression with DEFLATED level 1 (fastest compression)

suggested in https://github.com/bioimage-io/spec-bioimage-io/pull/146#discussion_r662778485


When breakpointsLandscape is defined, it will always ignore breakpoints.

When you define breakpointsLandscape, breakpoints is never used.
I checked the code and saw this:
bool get isLandscape => true
This is the boolean that is checked to define which breakpoint to use, but it is always true.

Thanks for raising this issue. It's been fixed in the latest release.
I forgot to close this issue.


Add API for _totalFileCount

Just spent about 2 hours trying to figure out how to get the total amount of queued files.
http://phaser.io/docs/2.4.4/Phaser.Loader.html#totalLoadedFiles
None of these methods give us the _totalFileCount, they either change dynamically or give us the 'loaded' amount.
I suggest we add the  _totalFileCount method to the api page, which we can already call using game.load._totalFileCount.
Thanks!!

The total amount of queued files is Loader.totalQueuedFiles, which of course will change if the load has been started (as will the total held in totalLoadedFiles. Add the two together, at any point, and you've got the total number of files in the Loader, regardless of their state.

Yeah good idea. I guess I need to expand my brain a bit more and utilize what I already have.


⚠ Bofrost.fr has degraded performance

In 008bdf9, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 882 ms

Resolved: Bofrost.fr performance has improved in a376ebf.


Increase helm upgrade timeout to 120s

Motivation
The deployment stages failed due to timeouts. Increasing it from 60s to 120s to get rid of manual retries.
Solution

PR Checklist

[ ] Added Tests
[ ] Added Documentation
[ ] Updated the changelog

Codecov Report

Merging #135 (de81f25) into main (d7d275f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #135   +/-   ##
=======================================
  Coverage   41.05%   41.05%
=======================================
  Files          14       14
  Lines        4838     4838
=======================================
  Hits         1986     1986
  Misses       2852     2852

Flag
Coverage Δ

test
41.05% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out 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 d7d275f...de81f25. Read the comment docs.


A more general demo script

Given a video path and a saved model (checkpoint), get the frames and extract features if needed, then produce classification predictions.

Integraded in one script so no extra packege needed.
Modify the rescale_list function to be two wayed.
Use opencv instead of ffmpeg for more general use.

I'm new to Github, please let me know if there is anything unproper, Thanks!

Thanks a lot for this! Will do some testing and merge.


Checkbox checked state issue

Vue.js version
2.0.0-rc3
Reproduction Link
https://jsfiddle.net/miljan/9fzmq8qy/
Steps to reproduce
Toggle the Checkbox 1, it will update the data state, but not it checked state.
Toggle the Checkbox 2, it will update its checked sate ignoring the data checked state.
What is Expected?
I expect the checkbox to accurately relfect the component data. In a scenario where we have a Table component which rows renders a checkbox for each and on click emits an event to update the selected state (being this passed as prop), both exposed examples in the fiddle would fail. Checkbox 1 because would show no visual state change and Checkbox 2 because even without firing any event would show a falsy visual state change.

Why do you call event.preventDefault()? This keeps the checkbox from toggling.
https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault
When I remove that, everythign works fine. Also, why not use the change event?

@LinusBorg, because without those the checkbox would be swithing to checked even if the state is false. Check the Checkbox 2 example, it doesn't have any prevent but changing the checked state on each click, while the real state is not getting changed.
I'm using click event for the prevent as on change the checkbox already changed its status.
If my component relies on a prop value (false by defult) to set an checkbox checked state, the checkbox should remain unchecked until the prop value change. As you can see in the fiddle, that's not the case.

Well, Vue does correctly update the input's attribute, but the GUI does not switch:

I don't know... if you set a log in the render function, despite the preventDefault workaround, those get called and you can see the state did trully changed, but not the GUI as you said. But this is all virtual dom, so if Vue wants to render a Checkbox with checked value, the GUI is not on the way. The impression is that Vue thinks there is nothing to change, and keeps using the cached dom.

what I mean is, as demonstrated in the screenshot above, when you switch the value to false, Vue correctly removes the checked attribute (1st Screenshot), and when you switch to true, Vue correctly sets the checked attribute again.
But the browser's GUI seems to screw up, because event though Vue correctly removes the checked attribute when the value switches to false (which happens async, so after the function with e.preventDefault() ended), the GUI is still displays a checked checkbox.

Okay so I did some debugging - of the browser behaviour. the problem is the behaviour of e.preventDefault(). Add debuggers before e.preventDefault() and then step along.

it does not actually prevent the unchecking of the box immediatly. as soon as the click event starts, the checkbox becomes unchecked
it does not even revert that once it's called - after e.preventDefault() is called, the box is still unchecked
in fact, the box stays unchecked until the complete call stack - including the DOM update by Vue - is done. only then does the browser (Chrome) revert the GUI status back and makes the box on the screen checked.

So I would say this is not a Vue bug per se, but an odd browser behaviour that would have to be wqorked around....

Thanks for looking into it. Do you consider this possible workaround should be done by Vue or the implementation?

That I could tell you if I knew that a workaround would look like ...

@LinusBorg, a workaround that is working fine so far in Chrome in Mozilla.
domProps: {
  checked: checked
},
on: {
  click: e => {
    // ensure the browser doesnt apply
    // the checked state on click
    e.target.checked = checked
  }
}

Great, works for me too, and also tested it in Safari.

@miljan-aleksic I will not label this a bug, as it seems to be more because of the browser behaviour and the workaround can be implemented easy enough.
Will keep it open for discussion though, to see weither we can come up with a clever way to catch this in Vue itself somehow. But honestly, I doubt it.

Yes, tough call. If doesn't get into the core, perhaps we could document as a hint it in the Render Functions examples.

The first checkbox is expected behavior because you are calling e.preventDefault().
The second checkbox is working as intended because you are emitting the wrong event name. It works when the event name is fixed.

Hello
Please repost one or both of your fiddles if possible @miljan-aleksic @LinusBorg .
I am seeing a problem currently that sounds very much like what is being described here.
Unfortunately the fiddles are both gone so I can't see any code and the workaround mentioned by @miljan-aleksic does not make sense to me out of context (also I don't really understand render functions so that's probably part of my weakness here).
Additionally, I don't see how I could have an event name be wrong... I have a v-on: click="clicked" event in the template and in the component there is a clicked(){} method in the methods: {} object.
The event fires the method in the component definition and it must work as everything else I'd expect is occuring.
Here is a more exact description of the problem:

There is a vertical list of tasks, one task is below the next, etc... each task has a checkbox to it's right
When a user checks a checkbox to indicate task completion, that task should disappear (there is a Vuex implementation which triggers the change across the entire application so this task will disappear from all such lists... and it does)
The next task in the list moves, or otherwise appears in the spot the old task was
The checkbox accompanying the next task appears checked, even though it certainly should not be
(in fact the checkbox from the previous task never actually seems to disappear... instead it seems to hang around while the task text changes next to it)

If the above is the same problem then there's no need for me to try to show a reproducible example.
If it is not please let me know, and I will make an effort to make a fiddle to show the problem time permitting (the application this is in is complex so if reproducing it is not trivial then I may not reasonably be able to reproduce it).
Questions:
1- @yyx990803 (thanks for creating Vue, it's a better alternative to angular et al), what event name is he misusing?
2- @miljan-aleksic @LinusBorg Could you share how the work around could be reproduced without render functions?
NOTE: I am currently using event.preventDefault() just to not have a checked checkbox hanging around but it's less than ideal considering that the checkbox never appears checked, (maybe I will resort to buttons instead of checkboxes... or even images that I swap out manually)
Thank you all in advance!

It doesn't really sound like the same problem, it sounds like you didn't key your list items.
You should start a thread on forum.vuejs.org, we can continue there if necessary. closed issues are the place for this.

As in they didn't all have unique ID's?
I'll try that again in case there was some caching issue etc... but that didn't resolve the issue when I added unique id's to each checkbox previously...
hmmm or maybe it needs to be @ a higher level... (there are multiple elements in the vue components template...).
I'll try keying other (and if needed all) of the elements.
Thank you for the thoughts and I apologize for commenting on a closed issue.
If this doesn't resolve the problem I'll start a thread on the forum, (and create a fiddle that illustrates the problem).
Thanks again


mention 3.8 requirement in contrib docs

Change Summary
Mention 3.8 requirement in contrib docs. Using python3.7 to build docs will fail:
-> % make docs
flake8 --max-line-length=80 docs/examples/
docs/examples/validation_decorator_parameter_types.py:26:34: E999 SyntaxError: invalid syntax
make: *** [docs] Error 1

Where validation_decorator_parameter_types.py:26:34 has def pos_only(a: int, b: int = 2, /) -> str:  # python 3.8 only
Checklist

[n/a; docs change] Unit tests for the changes exist
[n/a; docs change] Tests pass on CI and coverage remains at 100%
[x] Documentation reflects the changes where applicable
[x] changes/<pull request or issue id>-<github username>.md file added describing change
(see changes/README.md for details)
[x] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

please review

Please update and rebase/merge with master

please review


[Security - Revocation] Refactor how CRLs are checked internally

This PR changes how CRLs are handled purely internally. After discussing with davidben@, there are various problems with the X509_STORE_set_get_crl API and we shouldn't use it. This change keeps the behavior and external API the same, but instead of bulk pushing CRL information into OpenSSL, we instead iterate through the built chain and check each certificate for revocation, as well as doing the CRL validation ourselves.

Thanks for the PR Greg! Don't we need tests that guard the new functionality introduced in this PR?

Friendly ping on the testing question. :)

Ah missed that, sorry! The existing tests should cover all of this as it's purely internal logic. If implemented correctly no behavior should change

Ah missed that, sorry! The existing tests should cover all of this as it's purely internal logic. If implemented correctly no behavior should change

Do we at least want tests that ensure we're correctly checking the signature on the CRL? Isn't that a functional difference between the current state and this PR?

Added to the tests, PTAL


Where clause with multiple values

Hey,
Is there any way to use IN and NOT IN for normal kind of columns in the where clause?
Ex: Get the objects from the db from a list of IDs.
Sorry for opening an issue, I searched the docs but couldn't find it.

What do you mean by normal kind of columns?

Integers and strings.

I need to improve the structure of the documentation.
You can find the documentation for these operations here:
https://prisma-client-py.readthedocs.io/en/stable/reference/operations/#string-fields

May I ask where you were looking in the documentation before?
I find it difficult to know whether or not the documentation I've written is well structured so any feedback would be greatly appreciated :)

Guess it is my fault.
I passed it through the page but thought that "desc" could be ordering descenent. My Bad!
Thanks!

Don't worry about it, the documentation does need some work.

Ah I see, I should use a different field name to showcase that API.

Can I ask you another doubt?
I am trying to update a foreign key in my object, and I saw previously that I had to use "connect" keywork.
I was able to make it work in create clauses, but not in update. Can you help me out?

@danielweil I think this is actually a bug, let me look into it further.

@danielweil You can't update a relation in an update_many query.

https://github.com/prisma/prisma/issues/3143

How should go on for now?

You could try using query batching and switch to making multiple update calls instead of one update_many: https://prisma-client-py.readthedocs.io/en/stable/reference/batching/
However, I don't know if this will work for your use case

Should raw queries work? I tried using it for the update and it gave me this error:

That looks like it could be a bug, Clcan you share the debug logs please?
https://prisma-client-py.readthedocs.io/en/stable/reference/logging/#debugging-the-client

Thanks! I could fix the problem with the message!. Thanks


Error Unable to execute the HTTP call or to convert the HTTP response

Hi,
I'm using Swift Explorer to access backups made on Hubic with Hubic application. I can see all my backups but when I browse a backup and try to open some folders, some time i get the error written above.
This seams to happen when there is a file (or more than one) with a size greater than 4-5 MB into the folder i try to open. I have made some tests : when i reduce the file size or remove it  i can open the folder and see its content.
All this has nothing to do with download or upload. I would like to use Swift Explorer just to browse the content of all the folders and if possible to delete some unacessary files or folders in my backups. There is no way (up till now, i didn't find) to do that with standard Hubic applications.
Is that the real cause of the error ? is there any way to make the browsing works just to see the content of folders and to delete some of the contents ?
Thank you
Taoufik

I'm having the exact same problem trying to manage my Hubic backups using Swift Explorer.

Hello.
Same problem for me since this week. Last month upload went ok without error.
I'm using swiftexplorer 1.0.7
Thank you,
Guillaume

Hi,
It's been a long time since my 2015 post.
If i remember well, i did the tests with the 1.0.7 and 1.0.6 versions of SwEx.
According to the last comment, it seems that there is nothing i can do more except using another sofwatre.
Bye
Taoufik

Hi.
Thank you for your message.
Did you find any intetesting freeware or software to replace swift explorer?
Until now, it was for me the software answering the better my needs.
bye
Guillaume

I have the same problem. I can find no way to access the data stored by Hubic backup feature. All the other applications (even the ones that are not free) see only the "syncro" part and not the backups.
Swift Explorer is the only that can access the backups, but doesn't work.
Is there any other application that can access the backups?
Is there a way to have Swift Explorer working without that error?

Same here,
Did someone find any workaround ?

I think the soft is no longer developed or maintained.
De : gauthier-h<EMAIL_ADDRESS>Envoyé : dimanche 17 avril 2016 21:06
À : roikku/swift-explorer<EMAIL_ADDRESS>Cc : Mahir Taoufik<EMAIL_ADDRESS>Objet : Re: [roikku/swift-explorer] Error Unable to execute the HTTP call or to convert the HTTP response (#50)
Same here,
Did someone find any workaround ?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com/roikku/swift-explorer/issues/50#issuecomment-211085029

V1.0.8, same pb thanks for this great soft :)

Same problem with me with 1.0.8. I cannot use anymore this software :/

I have the same problem with 1.0.8 swift explorer and Hubic
hubic unable to execute the http call or to convert the http response
I cannot upload Zip or 7z files (between 30 and 110 Go)
What is the problem ? the file size ? the size of some files inside the zip ?
Solution ?
or is there any alternative soft ?
Thanks

Same Problem.

Same message : can't access anymore to Hubic

the same !

Unable to execute the HTTP call or to convert the HTTP Response
Problem since August. At that time was a update at Hubic. Swift explorer is no longer working


[Discussion needed] Support pause for specific notification?

I doin't know this feature is useful or not. But it's worth to discuss the app structure if it needs to implement

[Update]
Pause is quite hard in rust-cli-pomodoro case because rust-cli-pomodoro supports scheduled notification. So it is important to set pause policy first.


fix(sortable): properly restore DOM after cancel()

Resolves #491

Coverage remained the same at 100.0% when pulling 53a31b3f4687b81b8240cc4d34ef1297969e7166 on thgreasi:helperCancelX3 into da521c0bf074612d59f8905c49cf33a026f60f14 on angular-ui:master.


Syncdict style

:tada: This PR is included in version 3.1.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add d3.pathRound.

Fixes #10, taking option 2.

I’m pretty sure we don’t want to introduce the overhead of calling the identity function in the common case, which means a lot of code duplication.

Now trying to call this._format as parsimoniously as possible; in the standard case _format return +x. I hope this limits the overhead.
(I'll review the git pseudo-conflicts situation if the approach seems acceptable.)

I think of format as something that takes a number and returns a string. Relying on format to return a number (and taking arbitrary input) suggests that “format” is the wrong name.
Did you overwrite the original commits?

Hmm it looks like I force-pushed over your original commit ( https://github.com/d3/d3-path/commit/7b1c4104034c008eb0c8b60b08c7da7b55331351 ) in June 2019, after a rebase.

should we name this function this._number?

yet another rebase, sorry—this has me struggling
Reference commits are: https://github.com/d3/d3-path/commit/7b1c4104034c008eb0c8b60b08c7da7b55331351 (original) and https://github.com/d3/d3-path/pull/12/commits/2897aa62351747b14b7e77bd651d7e93555cedf7 (rebase against branch two)

I’ve updated this to take a cleaner approach using an internal tagged template literal, and changed d3.pathFixed so that it defaults digits to three (which matches number.toLocaleString and seems like a very reasonable default). I think this is ready to go.

The latest commit switches to rounding per performance recommendations in #10 and https://github.com/d3/d3-geo/pull/272#issuecomment-1357067796.


chore(package): update semantic-release to version 15.13.30

:tada: This PR is included in version 8.5.45 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


FAQ: How do I publish absences?

Q. How do I publish absence data?
A. Step 1: Include sampling event records even if the sampling yielded no derived species occurrences. This allows species absences to be inferred.

I wanted to raise the issue that following the directions in the IPT manual for this FAQ would not always be appropriate for datasets shared via the OBIS community. As noted in the paper published about OBIS-ENV-DATA https://bdj.pensoft.net/article/10989/element/2/3386095// there will be events with no occurrences because sometimes the abiotic sampling is at a greater frequency than the species observations. These should not be interpreted as absences.

Hi @albenson-usgs
I can share the issue from interpretation point how we identify absent data, please read this issue https://github.com/gbif/pipelines/issues/268#issuecomment-624755278

The quoted part of the manual is here: https://ipt.gbif.org/manual/en/ipt/2.5/sampling-event-data#q-how-do-i-publish-absence-data

Occurrence records marked as absences would not be an issue, I agree. The tricky part would be in the interpretation of sampling events without occurrences as a bundle of absence records. However, this should never happen in isolation ("we did not find any organisms"), but ideally be interpreted against a timestamped checklist of the taxa that could have been expected. I may have overlooked something, but I do not think that GBIF, so far, makes these inferences during ingestion - the recommendations are on the publication process alone.
From the ingestion perspective: if GBIF do not want to index events not related to biological sampling (which I assume is true?), but published within the same dataset that also publishes sampling events on organisms, we would need to identify or discuss a level of content standardization that allows to tell different types of sampling event records apart. I am not entirely sure whether we do receive such mixed datasets from our partners; an example would help here - would you be able to point us at a dataset, @@albenson-usgs?
The most straightforward solution so far would be to publish organism-related and non-biological sampling parameters in separate datasets. Darwin Core does not offer a dedicated "sampling event type" filter with a reliable, standardized vocabulary to recognize those. The samplingProtocol would be the closest we can get, but content received is completely unstandardized so far.
Thanks for bringing this up, we will need to consider this in the context of absence evaluation from sampling events. Likely something along the lines of "if no corresponding taxon checklist is provided, do not interpret absences".

An example dataset is here. Just published a few minutes ago.
The slight problem is that it needs to be "if no corresponding taxon checklist is provided, do not always interpret absences."
I know that for instance the recently published NEON tick dataset it is ok to infer absences from events with no occurrences.

Is this still relevant please?

I may be confused here. Given that GBIF do not, to my knowledge, evaluate sampling event datasets against any checklist, and do not infer absences at all, this seems to be an issue limited to (a) data publication guidelines for the IPT and (b) data ingestion from IPTs-published datasets by OBIS. I can see the problem of inferring absences, but it does not concern any current GBIF workflow. Is this possibly a discussion better to continue in the OBIS GitHub, @albenson-usgs?

Closing this. Please feel free to re-open if anything needs to be fixed in the IPT

@mike-podolskiy90 does the IPT manual have a separate GitHub? This is still unresolved. I would like the text in the manual to be updated in such a way that it is more inclusive in how to provide absences. Until the text in the manual is modified I would like this issue to remain open somewhere.

@mike-podolskiy90 @ahahn-gbif who has the ability/authority to make changes to the IPT manual?

Thank you @albenson-usgs for quick response. I thought it was solved with the documentation.
Could you please make a pull request with your suggestions for the documentation, file is here https://github.com/gbif/ipt/blob/master/docs/en/modules/ROOT/pages/sampling-event-data.adoc

Closed via 1832


Unable to run playDataset with mono_dataset sequences

Hello
I successfully compiled " mono dataset " but when i am trying to run it with the command
./playDataset X/sequence_01 but getting the error that :-
bash: ./playDataset: No such file or directory
Can anyone tell me where this file is ,i am unable to find it.
Thanks .

Replace X/sequence_01 with the path to your dataset.


[Engineering] TokenResolver "should end polling" - All Builds Have the Same Failing Test

All of the builds have one test that is currently failing with:

I believe this has something to do with the tests being run in Node v12; they pass with Node v11 and lower.
I'm still digging into why this is, but so far, I've found that:
In the test, we pass in a log here:
TokenResolver.checkForOAuthCards(adapter, context, activity, log);

Eventually, the log does get 'End Polling' pushed to it here:
if (log)
    log.push('End polling');
return;

However, log is an empty array by the time it gets back to the assert:
assert(log.indexOf('End polling') !== -1, 'did not end polling');

This works in the latest v11 of Node, v11.15.0. This breaks in the next release, which is the first of v12, v12.0.0. I wasn't able to find anything that stands out in the changelog.
This could probably be fixed if we move everything to async/await, but I'm not sure. There might be an easier way.

Will be fixed in https://github.com/microsoft/botbuilder-js/pull/1783 via https://github.com/microsoft/botbuilder-js/pull/1783/commits/f1b6fc28c73720a7262f1fa55560e0750d835e49


change default docker image repository from docker.io to quay.io

With the recent limitations introduced by Docker, docker hub has been
rate limiting docker pulls on images for non-registered users. To avoid
this limitation we should switch the default container image
repositories to quay.io.
Signed-off-by: André Martins<EMAIL_ADDRESS>

test-me-please

Ideally, I could think dev images like this to have a separate account so we don't bring in a lot of noise to the cilium quay account.

FWIW we have applied for a dockerhub OSS account which should alleviate these types of issues. I do not know how long it will take for them to get back to us but I will be sure to update everyone if I hear anything back.

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

The CI is passing for the provisioning of the images so we can merge the PR now.


PropertyPaneDropdown Property 'SelectedKey' Not Working

Category

[X] Question
[ ] Typo
[X] Bug
[ ] Enhancement / Suggestion
[ ] Additional article idea

Expected or Desired Behavior
According to the documentation found here you should be able to add the selectedKey property to the PropertyPaneDropdown to select a default option.
Observed Behavior
_  PropertyPaneDropdown('test2', {             label: 'Dropdown',             options: [               { key: '1', text: 'One'},               { key: '2', text: 'Two' },               { key: '3', text: 'Three' },               { key: '4', text: 'Four'}             ],             selectedKey: '4',         })
The above code does not give make 'Four' the default option. When I inspect the the DOM using React tools selectedKey is not present and selectedIndex is -1. See image 1.

The onChange method appears to set the selectedKey property just fine. See image 2

I did dig around in the node_modules and found this in spwebpartbase/dist/sp-webpart-base-propertypane_.js (Line 477 in my text editor)
  case IPropertyPaneField_1.PropertyPaneFieldType.Dropdown: 	                groupFieldElement = React.createElement(office_ui_fabric_react_1.Dropdown, __assign({}, groupField.properties, {ref: setRef, selectedKey: propValue, disabled: groupField.properties.isDisabled || groupField.properties.disabled, label: groupField.properties.label, onChanged: function (option, index) { 	                    _this._onDropDownChange(groupField, option, index); 	                }})); 	                break;
selectedKey's value is set to propValue. disabled works for me and is set to groupField.properties.isDisabled so I changed the value of selectedKey to groupField.properties.selectedKey and re-served the code and it worked fine.
After I tested that I changed it back and it stopped working again. I doubt that is the final fix but hopefully it will help point you in the right direction.
_
Steps to Reproduce
_
Get RC0 Version of spfx
Create a PropertyPaneDropdown in a webpart and add the selectedKey property too it.
Serve the webpart and open the webpart property pane.
Observe that the default is not set._

This definitely looks like a bug. We will try and fix it asap.

Thank you @manishgarg1!

This is fixed. Can you please check this and confirm the same. I am closing this case now. Please re-open it if you still see the issue.

This fix works for me but it fails when I'm trying to open the WebpartPros for the first time. From second time onward dropdown values appearing. Any idea ?


:robot: Triggering CI on branch 'release-next' after synching to openshift/master

/test 4.6-e2e

OCF Webhook is merging this PR


GLSL function imageAtomicCompSwap causes GLSL to SPIRV conversion failure

Hi.  Am using:
MoltenVK version 1.0.38. Vulkan version 1.0.126.
Here is the GLSL generated by the library:
#version 450

layout(set = 0, binding = 2, std140) uniform UBO
{
    mat4 inverse_view_projection;
    mat4 project_to_voxel_screen;
    vec3 voxel_coords;
} ubo;

layout(set = 0, binding = 1, r32ui) uniform restrict uimage3D voxel_albedo_texture;
layout(set = 0, binding = 4, r32ui) uniform restrict readonly writeonly uimage3D voxel_normal_texture;

layout(location = 1) in vec3 frag_normal;
layout(location = 2) in vec3 frag_light_vec;
layout(location = 3) in vec3 frag_view_vec;
layout(location = 0) in vec4 frag_color;
layout(location = 0) out vec4 final_color;

void main()
{
    vec3 N = normalize(frag_normal);
    vec3 L = normalize(frag_light_vec);
    vec3 V = normalize(frag_view_vec);
    vec3 ambient = vec3(0.07999999821186065673828125);
    vec3 diffuse = frag_color.xyz * max(dot(N, L), 0.0);
    vec4 ndc = vec4(gl_FragCoord.x / ubo.voxel_coords.x, gl_FragCoord.y / ubo.voxel_coords.y, gl_FragCoord.z, 1.0);
    vec2 _72 = (ndc.xy * 2.0) - vec2(1.0);
    ndc = vec4(_72.x, _72.y, ndc.z, ndc.w);
    vec4 world_coords = ubo.inverse_view_projection * ndc;
    vec4 voxel_proj = ubo.project_to_voxel_screen * world_coords;
    ndc = voxel_proj / vec4(voxel_proj.w);
    vec2 _100 = (ndc.xy + vec2(1.0)) * 0.5;
    ndc = vec4(_100.x, _100.y, ndc.z, ndc.w);
    vec2 _106 = vec2(1.0) - ndc.xy;
    ndc = vec4(_106.x, _106.y, ndc.z, ndc.w);
    ivec3 voxel = ivec3(vec3(imageSize(voxel_albedo_texture)) * ndc.xyz);
    uint nextUint = packUnorm4x8(vec4(diffuse, 0.0039215688593685626983642578125));
    uint prevUint = 0u;
    uint currUint = 0u;
    uint count = 0u;
    uint _139 = imageAtomicCompSwap(voxel_albedo_texture, voxel, prevUint, nextUint);
    final_color = vec4(diffuse, 1.0);
}

If I take out the call imageAtomicCompSwap the conversion occurs.   The error message I receive is this:
"VK_ERROR_INVALID_SHADER_NV: Unable to convert SPIR-V to MSL:\nConverting SPIR-V:\n; SPIR-V\n; Version: 1.0\n; Generator: Khronos Glslang Reference Front End; 7\n; Bound: 148\n; Schema: 0\n               OpCapability Shader\n               OpCapability ImageQuery\n          %1 = OpExtInstImport "GLSL.std.450"\n               OpMemoryModel Logical GLSL450\n               OpEntryPoint Fragment %4 "main" %11 %15 %19 %33 %39 %141\n               OpExecutionMode %4 OriginUpperLeft\n               OpSource GLSL 450\n               OpSourceExtension "GL_ARB_separate_shader_objects"\n               OpName %4 "main"\n               OpName %9 "N"\n               OpName %11 "frag_normal"\n               OpName %14 "L"\n               OpName %15 "frag_light_vec"\n               OpName %18 "V"\n               OpName %19 "frag_view_vec"\n               OpName %22 "ambient"\n               OpName %25 "diffuse"\n               OpName %33 "frag_color"\n               OpName %38 "ndc"\n               OpName %39 "gl_FragCoord"\n               OpName %46 "

The shader itself is not in its original form, so it doesn't really work.  I simplified it as much as possible until I could find what was causing the error, the comp swap function seems to be throwing things off.

We only support atomics on texel buffers (*imageBuffer in GLSL) and linear images, which are of course restricted to 2D images. This is unfortunately a limitation of Metal: it doesn't support image atomics natively, so we work around that by passing the underlying buffer and doing atomics on that. An optimal-tiled 3D image won't have a buffer underlying it, so it won't work here. The code to map the image coordinates to the location in the buffer in SPIRV-Cross also only works on 2D images and (maybe) buffers.

Shoot, I didn't even notice you were using such an old version. I think that's long before I hooked up Epic's support for image atomics in SPIRV-Cross to MoltenVK. In other words, that version of MoltenVK doesn't support image atomics at all.

I didn't even notice you were using such an old version.

@phonowiz Can this issue be closed, pending you updating to a newer version? Once updated, if needed, post a different issue, clarifying specifics.

I looked at the Metal spec, I see something super similar to the function am trying to use, check here (Page 179):
https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf
I confess I don't know much about Metal and maybe am looking at the wrong thing.  Take a look, let me know what you guys think .

I looked at the Metal spec, I see something super similar to the function am trying to use, check here (Page 179):
https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf
I confess I don't know much about Metal and maybe am looking at the wrong thing. Take a look, let me know what you guys think .

That only works on buffer memory. Metal doesn't have anything equivalent for textures.

Thank you all for your time.  Great job with MoltenVK, without it wouldn't have been able to learn Vulkan using my Mac, I truly appreciate it.


How to add user binaries to rancheros

RancherOS Version: (ros os version)
v1.3.0
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
baremetal booted using PXE
I have toying around with the build process and I managed to have a kernel with the modules I need running but what I am missing is how to add files to the base system.
I added a hook script in os-kernel to build the zfs module and at the same time the zfs binaries, I copied them in the dist folder to make them available after the build is complete but now with the os project I am a bit lost as to where I could add my binaries, there is no hook I can find and I would rather not rebuild os-base  from scratch if I cna avoid it.
I am not clear where the base system is even stored for pxe between vmlinuz and initrd but it does not really matter, what I was trying to find is where I could add my files after os-base was added into the docker but Ifailed so far.

We use the buildroot to build our rootfs. https://github.com/rancher/buildroot
We keep the build config in os-base. https://github.com/rancher/os-base
If users build their own os-base, they can update OS_BASE_URL in the dapper file of rancher/os.
In addition, if os-base cannot meet special requirements, they can change the default console.
https://github.com/rancher/os/tree/master/images/02-console
If they want to add files in other consoles too, they need to focus on here.
https://github.com/rancher/os-services/tree/master/images
If these files need to be used during the bootloader process, they should focus on initrd.
https://github.com/rancher/os/blob/master/scripts/layout-initrd

Thanks for the pointers, I think I got it but there is still one thing I am not clear about: what is a "console" for rancheros ?
It looks like this is where I end up when connecting using ssh, does that mean the ssh session is running inside a docker container ?

Yes, RancherOS can switch consoles,  like default(busybox), ubuntu, centos, ...
The sshd daemon runs in these consoles, each console is a container.

nevermind I found what I was looking for, I added the binaries to the bootstrap container and changed the bootstrap go code to run zfs import -a & zfs mount -a, for some reasons I could not make it work using bootcmd kernel parameters.
I use kernel parameters to set the storage_driver to zfs and the graph path to the correct mount path.
I have one issue left which is weird, zfs mount -a fails because files already exist in the mount point, it is as if the os-docker system-docker was started before the os-bootstrap but judging by what is shown in the boot console this isnot the case and I don't understand why docker would complain that the filesystem is not correct (since it is not zfs) but still create some empty folders there.

I mostly managed to make it work, thanks for the help.


Wrong File Name

In the file below, the change to { brandUtilities } will not work
cartridges/bm_afterpay/cartridge/scripts/TransActions.js
because brandUtilities does not exist here require('*/cartridge/scripts/util/afterpayUtilities'); (i believe afterpayUtilities SHOULD BE capitalized as AfterpayUtilities.  (line 19 in 23.0.1)
I did the change manually, in my codebase, but it triggered other errors, so I'm not sure if there are additional naming conflicts.
-- any feedback on the most current working repo would be much appreciated!!!

Actually...
Digging further into this the following files (listed below) were altered due to casing issues.
in one place brandutilities is miscased, in the others, you're requiring lowercase ThresholdUtilities when it should be the capitalized one.  Likewise for AfterpayUtilities in more than one place.
modified:   cartridges/int_afterpay_core/cartridge/scripts/logic/services/afterpayHttpService.js
modified:   cartridges/int_afterpay_core/cartridge/scripts/util/AfterpayUtilities.js
modified:   cartridges/int_afterpay_core/cartridge/scripts/util/ThresholdUtilities.js
modified:   cartridges/int_afterpay_sfra/cartridge/scripts/util/getTemplateSpecificWidget.js
Lastly it might be helpful to include in readme that two lines should be commented out if working with SFRA instead of SiteGenesis in this file cartridges/int_afterpay_core/cartridge/scripts/util/AfterpayUtilities.js
 // var ctrlCartridgeName = dw.system.Site.getCurrent().getCustomPreferenceValue('apControllerCartridgeName') || 'app_storefront_controllers';
// var app = require(ctrlCartridgeName + '/cartridge/scripts/app');

Hi @Ad4mSF,
Thanks very much for reporting this. The team expects this to be resolved by #11.
Please feel free to follow up if there are any other concerns or feedback.
Thank you.


default branch from master to main for cocoapods - version_bump_podspec

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description
default branch from master to main for CocoaPods Bump
Command executed
fastlane run version_bump_podspec parameter1:"value1" parameter2:"value2"
Complete output when running fastlane, including the stack trace and command used
Assuming the version_bump_podspec looks for master -  provide an alternate for main branch
Environment
N/A

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

https://github.com/CocoaPods/CocoaPods/issues/10263


Loading screen

Cloud Please OverWrite the method  in Minecraft.java to write a new loading screen

i mean its a cool idea but i wouldnt really like that since its supposed to be a "ghost client"

That's OK. It is simply a suggestion！It is up to you...

closed due to not adding it


[Bazel][Torch] bazel build for TorchBlade

Please rebase first since the CI was broken before.

done


[Feature Request]: Make mobs be able to use Custom Enchanted Gear

Describe the feature
Allow mobs to be able to use custom enchanted gear.
If this feature is added, there should be a new command to spawn in a custom item that spawns the mob with the type of gear and its enchantments decided in the command's syntax.
PS. I know that Epiphania proposed this literally a few minutes ago but (s)he mentioned that she won't open another request so I took the liberty of doing it myself.

Oh I included the custom spawning part because I'm not sure how another plugin or /summon would summon mobs with custom enchanted gear.


Use homedir() from os package instead of env vars

I was seeing the issue described in zeit/hyper#1039 on a Windows machine, and it seemed to start happening after 0c30fc0bcfe1b6667b958896bf0bdbf801afe077 (where HOME and HOMEPATH were reversed). In any case, switching to use os.homedir() in place of the environmental variables worked for me.

Thanks!


Validate callables

One of the problems is that many callables developers may want to use do not conform to the interfaces we'll be defining here:

They're built-in and use validation mechanisms other than type declarations.
They're PHP 5-compatible and therefore cannot use scalar or return type hints.
We can optionally whitelist callables per callable type, like registering \is_string() and siblings as valid predicates, even though their signatures may not indicate so. Manual registration should be allowed, but for built-in functions we may be able to use get_defined_functions(). It also enforces developers to use type declarations while a large portion of them prefers duck typing. Catering to that audience is not a priority (type declarations improve debugging and validation experiences and that's exactly what we're trying to do here), but it would be nice if duck typing could be supported. Maybe a global assertion validation level? Maybe consider callables valid if they may not be as strictly defined as the prototype prescribes, but cannot be confirmed as otherwise incompatible? An example of this would be to allow is_string() based on the fact it takes the correct number of arguments, and does not specify any types that would violate the prototype's contract. This deviates from interface implementation compatibility (which is what we were trying to emulate here), but would prevent MANY false negatives.

This also won't work with currying and partial application, as the closures they build do not specify parameters or return values.

Coverage decreased (-21.9%) to 76.203% when pulling f35b5bb8294ef34d82ce35b98adaf73668727e1d on assert-callable into c4afb56d31da2250efca8f974657544d1d339077 on master.

Coverage decreased (-22.2%) to 77.468% when pulling 14c2a42db3fe02c84de5b80c63c7d2ec15ebace1 on assert-callable into 0b974c9dd10e404d194d3fe6b064cc128f50004c on master.

Coverage decreased (-22.2%) to 77.468% when pulling 14c2a42db3fe02c84de5b80c63c7d2ec15ebace1 on assert-callable into 0b974c9dd10e404d194d3fe6b064cc128f50004c on master.


how to use in uniapp

Clear and concise description of the problem
uniapp里可以么
how to use in uniapp
Suggested solution
但是，pinia-plugin-unistorage的start太少了
pinia-plugin-unistorage
Alternative
pinia-plugin-unistorage
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

`
import { createPersistedState } from 'pinia-plugin-persistedstate';
import { localStorage } from 'mp-storage';
const pinia = createPinia();
pinia.use(
createPersistedState({
storage: localStorage,
}),
);
`

I don't really understand what the problem is here ? Do we have a solution ? (or multiple?)

closing as stale.


Building a multi-source video player with Reactjs

Building a multi-source video player with Reactjs
Introduction:
Video playing capabilities is expected of modern websites such as blogs, social media, and educational websites. Building a video player with the ability to render video from multiple sources can be implemented with Reactjs. We will discuss in details the various steps and dependencies required to achieve the set goal.
Key Takeaways:
This article is expected to equip the reader with the understanding and necessary skills to implement the following
i. Getting started with Reactjs
ii. Using React video components to view videos from multiple sources.
iii. Video dependencies in Reactjs
iv. Styling the video components using semantic UI
v. Error handling and testing
Reference:

Great topic 🚀@SamoraCletus , make sure it matches the following:

Adds value beyond what is in the official docs and what is covered in other blog sites.
To avoid any potential article closure, it should not overlap with any existing EngEd articles or incoming topic suggestions.

Please reference any relevant EngEd articles in yours and build a unique project - Approved.

@SamoraCletus Just wanted to follow up on this topic, as we will be clearing up the queue where possible.
Just and FYI I will be closing this topic form just to help clear up the queue where possible - can be REOPENED at anytime when ready. 👍


chore: remove poetry-dynamic-versioning

poetry-dynamic-versioning is not used in the CI anymore, so removing this dev dependency.

:tada: This PR is included in version 1.11.3 :tada:
The release is available on:

v1.11.3
GitHub release

Your semantic-release bot :package::rocket:


Fix multi-line logs in Go supervisor

🙂 Expected behavior
Each log line should have a prefix with the log level and the name of the service.
🫠 Actual behavior

Some log lines get truncated:

c15f816a-validator-1  | INFO 2023/12/13 10:42:58 state-server:  INFO log: Starting State Server (version=1.2.0, git ref=refs/heads/fix/redis-shutdown, git hash=6f64a3b5e502d8b629182317def5c36acd792f1f) with config Config { state_server_config: StateServerConfig { state_fold: SFConfig { concurrent_events_fetch: 1, genesis_block: 1, query_limit_error_codes: [], safety_margin: 1 }, block_history: BHConfig { ws_endpoint: "ws://asdf:8545", http_endpoint: "http://asdf:8545", block_timeout: 60s, max_depth: 1000 }, server_address: <IP_ADDRESS>:10013, max_decoding_message_size: 104857600 }, log_config: LogConfig { enable_timestamp: false, enable_color: false } }
c15f816a-validator-1  | INFO 2023/12/13 10:42:58 state-server: Error: BlockArchiveError { source: EthersProviderError { source: HTTPError(reqwest::Error { kind: Request, url: Url { scheme: "
c15f816a-validator-1  | INFO 2023/12/13 10:42:58 state-server: http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("asdf")), port
c15f816a-validator-1  | INFO 2023/12/13 10:42:58 state-server: : Some(
c15f816a-validator-1  | INFO 2023/12/13 10:42:58 state-server: 8545)

Some log lines don't have the prefix:

c15f816a-validator-1  | INFO 2023/12/13 10:42:57 redis: 562:C 13 Dec 2023 10:42:57.963 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
c15f816a-validator-1  | 562:C 13 Dec 2023 10:42:57.963 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=562, just started
c15f816a-validator-1  | 562:C 13 Dec 2023 10:42:57.963 # Configuration loaded
c15f816a-validator-1  | INFO 2023/12/13 10:42:57 redis: 562:M 13 Dec 2023 10:42:57.964 * monotonic clock: POSIX clock_gettime
c15f816a-validator-1  | INFO 2023/12/13 10:42:57 redis: 562:M 13 Dec 2023 10:42:57.964 * Running mode=standalone, port=10011.
c15f816a-validator-1  | INFO 2023/12/13 10:42:57 redis: 562:M 13 Dec 2023 10:42:57.964 # Server initialized
c15f816a-validator-1  | INFO 2023/12/13 10:42:57 redis: 562:M 13 Dec 2023 10:42:57.965 * Ready to accept connections

🧪 Minimal test case
To reproduce the first case, set the wrong blockchain provider (e.g., http://nowhere:8545).
The second case always happens when the node is starting up.
🌎 Environment
main
✔ Possible solutions
Improve this function: https://github.com/cartesi/rollups-node/blob/main/internal/services/service.go#L29

Another example I just caught now is the server-manager's logs.
rollups-node-node-1  | INFO server-manager: finish:
rollups-node-node-1  | INFO server-manager: 	accept: yes
rollups-node-node-1  | INFO server-manager: 	type:   advance
rollups-node-node-1  | INFO server-manager: 	length: 4
rollups-node-node-1  | INFO server-manager: advance:
rollups-node-node-1  | INFO server-manager: 	msg_sender: f39fd6e5 1aad88f6 f4ce6ab8 827279cf ffb92266
rollups-node-node-1  | INFO server-manager: 	block_number: 235
rollups-node-node-1  | INFO server-manager: 	timestamp:<PHONE_NUMBER>
rollups-node-node-1  | INFO server-manager: 	epoch_index: 0
rollups-node-node-1  | INFO server-manager: 	input_index: 0
rollups-node-node-1  | INFO server-manager: voucher:
rollups-node-node-1  | INFO server-manager: 	index: 0
rollups-node-node-1  | INFO server-manager: 	length: 4
rollups-node-node-1  | INFO server-manager: 	destination: f39fd6e5 1aad88f6 f4ce6ab8 827279cf ffb92266
rollups-node-node-1  | INFO server-manager: notice:
rollups-node-node-1  | INFO server-manager: 	index: 0
rollups-node-node-1  | INFO server-manager: 	length: 4
rollups-node-node-1  | INFO server-manager: report:
rollups-node-node-1  | INFO server-manager: 	length: 4

Maybe is some difference in the logs configuration but I don't recall getting multiline logs from server-manager.
This is a sample from the echo-python@sepolia with rollups-node:1.2.0.
2024-01-11 14:46:48.959320 info server-manager pid:1 request-id:5025dda5-6994-462a-9a94-43e37c6715f0 Received AdvanceState for session default_rollups_id epoch 8
2024-01-11 14:46:48.960817 info server-manager pid:1 request-id:2246a313-2de8-4a1d-9c5b-35d06b3ec313 Received GetEpochStatus for session default_rollups_id epoch 8
2024-01-11 14:46:48.972716 info server-manager pid:1 Received CheckIn for session default_rollups_id
[INFO  rollup_http_server::http_service] Received new request of type ADVANCE
[INFO  actix_web::middleware::logger] <IP_ADDRESS> "POST /finish HTTP/1.1" 200 214 "-" "python-requests/2.27.1" 0.001152
INFO:__main__:Received finish status 200
INFO:__main__:Received advance request data {'metadata': {'msg_sender': '0x18930e8a66a1dbe21d00581216789aab7460afd0', 'epoch_index': 0, 'input_index': 37, 'block_number': 5066689, 'timestamp
':<PHONE_NUMBER>}, 'payload': '0xdeadbeef'}
INFO:__main__:Adding notice
[INFO  actix_web::middleware::logger] <IP_ADDRESS> "POST /notice HTTP/1.1" 201 11 "-" "python-requests/2.27.1" 0.000896
INFO:__main__:Received notice status 201 body b'{"index":0}'
INFO:__main__:Sending finish

Relevant log configuration:
SERVER_MANAGER_LOG_LEVEL=info
REMOTE_CARTESI_MACHINE_LOG_LEVEL=info

Maybe is some difference in the logs configuration but I don't recall getting multiline logs from server-manager.

This is the log from the test application we are using (ioctl-echo-loop).


update README.md about sample of sklearn for testing the SKLearn Serv…

When I followed the userguide about testing sklearnserver locally , it failed.
--model_dir  should  be set dir not file of model, like model.joblib

@googlebot I fixed it.

@googlebot I fixed it.

Thanks @jiaqianjing for the fixing!
/lgtm
/approve