Fix mark_as_read method

I have a problem with the mark_as_read method that gives me the following error:
    messenger.mark_as_read(message_id)
  File "/usr/local/lib/python3.10/dist-packages/heyoo-0.0.8-py3.10.egg/heyoo/__init__.py", line 577, in mark_as_read
    if response.status_code == 200:
AttributeError: 'dict' object has no attribute 'status_code'

The problem lies in the line if response.status_code == 200:. In this context, response is a dictionary obtained from the JSON response of the POST request. Dictionaries in Python do not have a status_code attribute, so the error is thrown.
To fix this, you need to change that line to if response.get("status_code") == 200:. This will access the value of the status_code attribute in the response dictionary and check if it equals 200.

I just found out it's a mistake made in #77989d2.


feat: add other interfaces from the spec for discovery

Signed-off-by: Remi Cattiau<EMAIL_ADDRESS>
Proposed Changes

Add the interface from the Discovery spec
Another package including Discovery service and Subscription service will be created
Clean formatting of examples/express-ex/index.js example

It could be both but Discovery and Subscription might have a common definition, that is why I think SDK holding the definition might be a good way, as it is defining the common vocabulary (interfaces).
But at the same time, they might evolve more, it is a broader issue is cloudevents spec is the cloudevent/discovery/subscription or just cloudevent.

Hmm yes. If the Subscription API and Discovery API each make use of types from the other, then I agree it makes sense for those types to live here.


feat: eliminate unnecessary projection.

Which issue does this PR close?

Closes #.
Rationale for this change

What changes are included in this PR?
This PR add a rule to eliminate unnecessary projection.
Are these changes tested?
add unit test.
Are there any user-facing changes?
None

@alamb look like there is a unstable test

@alamb look like there is a unstable test

I also look it in other PR CI

Merging this PR seems to have broken two tests in main:

expected:

[
    "Explain [plan_type:Utf8, plan:Utf8]",
    "  Projection: t1.t1_id, t1.t1_name, t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "    Filter: EXISTS (<subquery>) [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "      Subquery: [t1_int:UInt32;N]",
    "        Projection: t1.t1_int [t1_int:UInt32;N]",
    "          Filter: t1.t1_id > t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "            TableScan: t1 [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "      TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
]
actual:

[
    "Explain [plan_type:Utf8, plan:Utf8]",
    "  Filter: EXISTS (<subquery>) [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "    Subquery: [t1_int:UInt32;N]",
    "      Projection: t1.t1_int [t1_int:UInt32;N]",
    "        Filter: t1.t1_id > t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "          TableScan: t1 [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "    TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
]

Left:  ["Explain [plan_type:Utf8, plan:Utf8]", "  Projection: t1.t1_id, t1.t1_name, t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "    Filter: EXISTS (<subquery>) [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "      Subquery: [t1_int:U ...

Right: ["Explain [plan_type:Utf8, plan:Utf8]", "  Filter: EXISTS (<subquery>) [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "    Subquery: [t1_int:UInt32;N]", "      Projection: t1.t1_int [t1_int:UInt32;N]", "        Filter: t1.t1_id > t1.t1_int [t1_i ...

<Click to see difference>

thread 'sql::subqueries::exists_subquery_with_same_table' panicked at 'assertion failed: `(left == right)`
  left: `["Explain [plan_type:Utf8, plan:Utf8]", "  Projection: t1.t1_id, t1.t1_name, t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "    Filter: EXISTS (<subquery>) [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "      Subquery: [t1_int:UInt32;N]", "        Projection: t1.t1_int [t1_int:UInt32;N]", "          Filter: t1.t1_id > t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "            TableScan: t1 [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "      TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]"]`,
 right: `["Explain [plan_type:Utf8, plan:Utf8]", "  Filter: EXISTS (<subquery>) [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "    Subquery: [t1_int:UInt32;N]", "      Projection: t1.t1_int [t1_int:UInt32;N]", "        Filter: t1.t1_id > t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "          TableScan: t1 [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "    TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]"]`:

expected:

[
    "Explain [plan_type:Utf8, plan:Utf8]",
    "  Projection: t1.t1_id, t1.t1_name, t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "    Filter: EXISTS (<subquery>) [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "      Subquery: [t1_int:UInt32;N]",
    "        Projection: t1.t1_int [t1_int:UInt32;N]",
    "          Filter: t1.t1_id > t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "            TableScan: t1 [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "      TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
]
actual:

[
    "Explain [plan_type:Utf8, plan:Utf8]",
    "  Filter: EXISTS (<subquery>) [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "    Subquery: [t1_int:UInt32;N]",
    "      Projection: t1.t1_int [t1_int:UInt32;N]",
    "        Filter: t1.t1_id > t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "          TableScan: t1 [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "    TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
]

', datafusion/core/tests/sql/subqueries.rs:143:5
stack backtrace:
   0: rust_begin_unwind
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/core/src/panicking.rs:64:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/core/src/panicking.rs:211:5
   4: sql_integration::sql::subqueries::exists_subquery_with_same_table::{{closure}}
             at ./tests/sql/subqueries.rs:143:5
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/core/src/future/future.rs:125:9
   6: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:525:48
   7: tokio::coop::with_budget::{{closure}}
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/coop.rs:102:9
   8: std::thread::local::LocalKey<T>::try_with
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/std/src/thread/local.rs:446:16
   9: std::thread::local::LocalKey<T>::with
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/std/src/thread/local.rs:422:9
  10: tokio::coop::with_budget
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/coop.rs:95:5
  11: tokio::coop::budget
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/coop.rs:72:5
  12: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:525:25
  13: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:349:19
  14: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:524:36
  15: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:595:57
  16: tokio::macros::scoped_tls::ScopedKey<T>::set
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/macros/scoped_tls.rs:61:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:595:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:515:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:161:24
  20: tokio::runtime::Runtime::block_on
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/mod.rs:490:46
  21: sql_integration::sql::subqueries::exists_subquery_with_same_table
             at ./tests/sql/subqueries.rs:148:5
  22: sql_integration::sql::subqueries::exists_subquery_with_same_table::{{closure}}
             at ./tests/sql/subqueries.rs:121:47
  23: core::ops::function::FnOnce::call_once
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/core/src/ops/function.rs:250:5
  24: core::ops::function::FnOnce::call_once
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

expected:

[
    "Explain [plan_type:Utf8, plan:Utf8]",
    "  Projection: t1.t1_id, t1.t1_name, t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "    LeftSemi Join: t1.t1_id = __correlated_sq_1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "      TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "      SubqueryAlias: __correlated_sq_1 [t1_int:UInt32;N]",
    "        Projection: t1.t1_int AS t1_int [t1_int:UInt32;N]",
    "          Filter: t1.t1_id > t1.t1_int [t1_id:UInt32;N, t1_int:UInt32;N]",
    "            TableScan: t1 projection=[t1_id, t1_int] [t1_id:UInt32;N, t1_int:UInt32;N]",
]
actual:

[
    "Explain [plan_type:Utf8, plan:Utf8]",
    "  LeftSemi Join: t1.t1_id = __correlated_sq_1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "    TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "    SubqueryAlias: __correlated_sq_1 [t1_int:UInt32;N]",
    "      Projection: t1.t1_int AS t1_int [t1_int:UInt32;N]",
    "        Filter: t1.t1_id > t1.t1_int [t1_id:UInt32;N, t1_int:UInt32;N]",
    "          TableScan: t1 projection=[t1_id, t1_int] [t1_id:UInt32;N, t1_int:UInt32;N]",
]

Left:  ["Explain [plan_type:Utf8, plan:Utf8]", "  Projection: t1.t1_id, t1.t1_name, t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "    LeftSemi Join: t1.t1_id = __correlated_sq_1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "   ...

Right: ["Explain [plan_type:Utf8, plan:Utf8]", "  LeftSemi Join: t1.t1_id = __correlated_sq_1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "    TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N] ...

<Click to see difference>

thread 'sql::subqueries::in_subquery_with_same_table' panicked at 'assertion failed: `(left == right)`
  left: `["Explain [plan_type:Utf8, plan:Utf8]", "  Projection: t1.t1_id, t1.t1_name, t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "    LeftSemi Join: t1.t1_id = __correlated_sq_1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "      TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "      SubqueryAlias: __correlated_sq_1 [t1_int:UInt32;N]", "        Projection: t1.t1_int AS t1_int [t1_int:UInt32;N]", "          Filter: t1.t1_id > t1.t1_int [t1_id:UInt32;N, t1_int:UInt32;N]", "            TableScan: t1 projection=[t1_id, t1_int] [t1_id:UInt32;N, t1_int:UInt32;N]"]`,
 right: `["Explain [plan_type:Utf8, plan:Utf8]", "  LeftSemi Join: t1.t1_id = __correlated_sq_1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "    TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]", "    SubqueryAlias: __correlated_sq_1 [t1_int:UInt32;N]", "      Projection: t1.t1_int AS t1_int [t1_int:UInt32;N]", "        Filter: t1.t1_id > t1.t1_int [t1_id:UInt32;N, t1_int:UInt32;N]", "          TableScan: t1 projection=[t1_id, t1_int] [t1_id:UInt32;N, t1_int:UInt32;N]"]`:

expected:

[
    "Explain [plan_type:Utf8, plan:Utf8]",
    "  Projection: t1.t1_id, t1.t1_name, t1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "    LeftSemi Join: t1.t1_id = __correlated_sq_1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "      TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "      SubqueryAlias: __correlated_sq_1 [t1_int:UInt32;N]",
    "        Projection: t1.t1_int AS t1_int [t1_int:UInt32;N]",
    "          Filter: t1.t1_id > t1.t1_int [t1_id:UInt32;N, t1_int:UInt32;N]",
    "            TableScan: t1 projection=[t1_id, t1_int] [t1_id:UInt32;N, t1_int:UInt32;N]",
]
actual:

[
    "Explain [plan_type:Utf8, plan:Utf8]",
    "  LeftSemi Join: t1.t1_id = __correlated_sq_1.t1_int [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "    TableScan: t1 projection=[t1_id, t1_name, t1_int] [t1_id:UInt32;N, t1_name:Utf8;N, t1_int:UInt32;N]",
    "    SubqueryAlias: __correlated_sq_1 [t1_int:UInt32;N]",
    "      Projection: t1.t1_int AS t1_int [t1_int:UInt32;N]",
    "        Filter: t1.t1_id > t1.t1_int [t1_id:UInt32;N, t1_int:UInt32;N]",
    "          TableScan: t1 projection=[t1_id, t1_int] [t1_id:UInt32;N, t1_int:UInt32;N]",
]

', datafusion/core/tests/sql/subqueries.rs:174:5
stack backtrace:
   0: rust_begin_unwind
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/core/src/panicking.rs:64:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/core/src/panicking.rs:211:5
   4: sql_integration::sql::subqueries::in_subquery_with_same_table::{{closure}}
             at ./tests/sql/subqueries.rs:174:5
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/core/src/future/future.rs:125:9
   6: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:525:48
   7: tokio::coop::with_budget::{{closure}}
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/coop.rs:102:9
   8: std::thread::local::LocalKey<T>::try_with
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/std/src/thread/local.rs:446:16
   9: std::thread::local::LocalKey<T>::with
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/std/src/thread/local.rs:422:9
  10: tokio::coop::with_budget
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/coop.rs:95:5
  11: tokio::coop::budget
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/coop.rs:72:5
  12: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:525:25
  13: tokio::runtime::scheduler::current_thread::Context::enter
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:349:19
  14: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:524:36
  15: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:595:57
  16: tokio::macros::scoped_tls::ScopedKey<T>::set
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/macros/scoped_tls.rs:61:9
  17: tokio::runtime::scheduler::current_thread::CoreGuard::enter
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:595:27
  18: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:515:19
  19: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/scheduler/current_thread.rs:161:24
  20: tokio::runtime::Runtime::block_on
             at /home/bgardner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.2/src/runtime/mod.rs:490:46
  21: sql_integration::sql::subqueries::in_subquery_with_same_table
             at ./tests/sql/subqueries.rs:179:5
  22: sql_integration::sql::subqueries::in_subquery_with_same_table::{{closure}}
             at ./tests/sql/subqueries.rs:152:43
  23: core::ops::function::FnOnce::call_once
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/core/src/ops/function.rs:250:5
  24: core::ops::function::FnOnce::call_once
             at /rustc/75a0be98f25a4b9de5afa0e15eb016e7f9627032/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Likely because tests were run on the branch, there were no conflicts, then upon merge the merged output failed the tests?

@avantgardnerio it's a Bors problem.
Due to this PR is conflict with Other merged PR


Investigate best practice for Snapshot between brs-023 and brs-027 must be coordinated

Duplicate of #268


Error when importing any non-system default packages

🐛 Bug Reports
When reporting a bug, please provide the following information. If this is not a bug report you can just discard this template.
🌍 Environment

Your operating system and version:OSX Catalina
Your python version:3.7.3
How did you install python (e.g. apt or pyenv)? Did you use a virtualenv?:  anaconda
Your Rust version (rustc --version):rustc 1.46.0-nightly (346aec9b0 2020-07-11)
Your PyO3 version:0.11.0
Have you tried using latest PyO3 master (replace version = "0.x.y" with git = "https://github.com/PyO3/pyo3")?:No

💥 Reproducing
I was tring to import some other packages to finish my project, therefore I have to use a package that was installed by a package manager like pip or anaconda, however, when I was trying to import these packages like below, error happens

use pyo3::prelude::*;
fn main() {
let gil = Python::acquire_gil();
let py = gil.python();
let _mod = PyModule::import(py, "pandas").unwrap();
}

The python that I used with Rust cannot import any other non-system-default packages, but the default packages like sys is working fine, importing a non-system-default packages would trigger the error below:

UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service
from . import _distributor_init
thread 'main' panicked at 'called Result::unwrap() on an Err value: PyErr { type: Py(0x1052570c0, PhantomData) }', src/adapter/uqer_adapter.rs:40:51
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

To be noticed, importing these packages is working well when I use the python in terminal which is the same python that running in rust, I also checked the sys.path to makesure that they have the same import directory

Does PyO3 do the equivalent of import site? This is required, I think, for the egg/wheel path magic to kick in.
To check it, you could try doing PyModule::import(py, "site") before the pandas import...

Does PyO3 do the equivalent of import site? This is required, I think, for the egg/wheel path magic to kick in.
To check it, you could try doing PyModule::import(py, "site") before the pandas import...

Sorry for the late reply, importing site seems work well, importing pandas causing troubles, is site package important for python to import non-default packages?

Does PyO3 do the equivalent of import site? This is required, I think, for the egg/wheel path magic to kick in.
To check it, you could try doing PyModule::import(py, "site") before the pandas import...

Also I the first post that I report this bug, it says I need to check whether mkl-service is installed or not, I am sure that the mkl-serivece is installed.

As there has been no response on this question for some time, I'm going to close it. Thank you for the discussion.

As there has been no response on this question for some time, I'm going to close it. Thank you for the discussion.


Use LRU cache to speed up access to a few read only properties

This doesn't do anything to help the "first access" and the file load. but it does really help repeated accesses.

[ ] Closes Issue #xxxx
[ ] Tests added
[ ] Changes are documented in CHANGELOG.rst

TBH, I really don't want to merge this in. Doing caching at this level of granularity is quite intruisive and difficult to maintain.
I would rather understand the usecases were you think that h5ds can change. My understanding is that it is pretty fixed. But maybe i'm wrong.

lru_cache can also make difficulties with garbage collection (search for "dont lru_cache method"). Maybe functools.cached_property would be better (https://docs.python.org/3.10/library/functools.html#functools.cached_property)

I would rather understand the usecases were you think that h5ds can change. My understanding is that it is pretty fixed. But maybe i'm wrong.

I think there are some properties which are fixed (this compression properties seem like they won't change after creating the Dataset) and others which might change (eg shape). Maybe it would be good to make a list of properties which won't change and which might be changed?

Closed in favor of #197 and #198


Send build url to Harbormaster as soon as build starts

Closes #133
Closes #94

Awesome. You want to fix the tests, or should I?

Fixed tests, ready for review

Almost there. This now assumes you're using both the build wrapper and the notifier. However, some people use just the notifier, and instead of applying with arc patch, they configure a staging area. So this is the right approach, but we need to still send the artifact URI in the notifier (aka build result processor). The only thing I haven't tested is whether if you send two artifacts with the same name to the same build PHID how that shows up in the differential UI. Hopefully it just displays one link.

That's fair. I've reverted changes to BuildResultProcessor for those cases.

Ok, I just tested what happens when you try to send two artifacts with the same key:
{"error":"ERR-CONDUIT-CORE","errorMessage":"ERR-CONDUIT-CORE: #1062: Duplicate entry 'uri-PwLy5JFwgQcn' for key 'key_artifact'","response":null}

It looks like we'll pass with an INFO message in the BuildResultProcessor
            logger.info("harbormaster", "Sending Harbormaster BUILD_URL via PHID: " + phid);
            Task.Result sendUriResult = new SendHarbormasterUriTask(logger, diffClient, phid, buildUrl).run();

            if (sendUriResult != Task.Result.SUCCESS) {
                logger.info(LOGGING_TAG, "Unable to send BUILD_URL to Harbormaster");
            }

I think this is acceptable behavior. I'll probably tweak the message a little bit when this fails to say that this is normal, and to be expected if you're running the BuildWrapper (e.g. the arc patch) stage.


Option to disable boltz.exchange swaps?

Is there such an option? Thanks

clboss-ignore-onchain option disables boltz swaps, and channel creation for the time you set. You can use an arbitrary high number to make it kinda permanent.

Ideally, I would like to just disable boltz swaps, but it'll still use any available onchain funds for new channels etc.
At the moment it seems with this option, it disables both like you said.

Is there a particular reason why you want to disable this?  I know it is costly, but it is mostly a one-time cost: either it is buying inbound liquidity, or it is consolidating onchain funds to make larger channels instead of piddling little channels when an existing channel closes.

Is there a particular reason why you want to disable this? I know it is costly, but it is mostly a one-time cost: either it is buying inbound liquidity, or it is consolidating onchain funds to make larger channels instead of piddling little channels when an existing channel closes.

Just to chime in here, it's a false assumption, that it's a one-time cost. Channels can be (and are being) closed by either party, anytime. A boltz swapped out liquidity needs to make back at least 5000ppm of the swapped amount, before breaking even. That's highly unlikely over an average channels lifetime. To be blunt, it's practically impossible to reliably be net positive with boltz.

But NeedsOnchainFunds does not trigger on every close, only those for which the close creates onchain funds close enough to the trigger point for channel creation.  This can be tweaked to reduce further.


Update operation for Cholesky decomposition

The Wikipedia page for the Cholesky decomposition provides formulas to perform rank one update, rank one downdate and update the decomposition as if rows had been added or removed from the decomposed matrix.
I am interested in the latter operation and found that it is not implemented in nalgebra.
Would there be interest in a pull request adding those operations (I am unfamiliar with the code base but might have the time to implement it in about a month) ?

Hi!
Yes, that would be a great addition! Don't hesitate to ask if you need help implementing this (especially regarding generics; the internals of nalgebra can be quite difficult in that regard).

I have implemented rank_one_update, the code is here and the corresponding test here.
All reviews are welcome. I had troubles with the test due to the fact that $scalar is not a scalar but a RandScalar<f64> instead in this test file (it appears to be different depending on the test file, I could change it easily if you are ok with it). Otherwise the code is a close transcription of Eigen's implementation.
I will work on the row addition/deletion tomorow.

I found a number of unneeded StorageMut in solve.rs, I will include the fix in the Cholesky PR (as I needed the correct trait).

I just submited a pull request with all the methods + tests.
I tried my best to follow the patterns of the library but any comment on the code is welcome.
Experience wise my main source of friction was the DefaultAllocator trait, I spent a lot of time on seemingly unrelated error message that could, in fact, be solved by using the correct allocator or adding an allocator trait.
I have not found much documentation on the subject but understanding the why and how of the allocator would probably make writing generic code much easier for newcomers.
In the future, if there is some interest, I could implement some linear solvers such as the conjugate gradient.

Damn, the Rust: nightly NO_STD=1 CARGO_FEATURES=""  job fails and I am not sure why.
Have you any pointer on what I missed ?

Now merged.


1.Added ability to specify which sports to load from SS,2.Added ability to pass echo status back to plugin

1.Added ability to specify which sports to load from SS
2.Added ability to pass echo status back to plugin

:shipit:


SSCS-10295 adjournment interpreter requirements

Before creating a pull request make sure that:

[ ] commit messages are meaningful and follow good commit message guidelines
[ ] README and other documentation has been updated / added (if needed)
[ ] tests have been updated / new tests has been added (if needed)

Please remove this line and everything above and fill the following sections:
JIRA link (if applicable)
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ ] No

New branch SSCS-10295-1 is created for this.


Can you add a crate for generating random numbers?

Preferably rand! Thanks :)

rand is not available for on-chain programs(restrictions), however you can now use switchboard-v2 crate in Solana Playground for this purpose. Learn more from switchboard-docs.


xen-network: wait for network.target

This commit makes bridge-up-notification dependant on network.target instead of networkd-wait-online.service. That change allows to run bridge when network management stack is up, and avoid situation when guest domain is not starting because network is not connected or not configured properly.
According to the documentation, we should use just After=network.target, because this is a passive unit.

This commit adds the possibility to start DomU when the network is unavailable.
It was tested with tsn0 not started.
There is an alternative solution provided by Renesas in spider-1.2.0 branch https://github.com/renesas-rcar/meta-xt-prod-devel-rcar-gen4/commit/33586656749ed69183cba0cf0204c8dea4a9e67d
So, this PR is a proposal for discussion.

Yes, I am fine with this approach. This is the valid change for the "common" part. If any product (like prod-devel) wants another behavior, it can change it in own layer.
Reason why we waited for network-online is because we booted prod-devel over a network and we wanted NFS to be available for DomUs when they are created... So, maybe we need another PR for prod-devel to retain old behavior, but do not make any changes to prod-devel yet. We will see if problem persists first.
Acked-by: Volodymyr Babchuk<EMAIL_ADDRESS>

Ack is added. Tested with prod-devel-gen4 on the Spider board.
Ready to be merged.


Would be helpful to have a jhur dataset that reads in data as chr when it should be numeric

Like a problem dataset example :)

One possible example I am thinking is to use as.numeric to convert BLQ reading to NA so that R can perform descriptive stat with remaining data.

Love that idea!

I think this might make sense for classes instead of cleaning- so I am going to change the label

I am going to backlog this for now. Need a good dataset!


Hard coded ID for person and able to display on GUI

looks good for now
can try to add some junit tests later

looks good, in the future can increment id for each new Person instantiated.


(0.7.x) BZ1283953: Cluster failing to cleanup the global lock properly. Fix for uberfire-extensions IOServiceSecuritySetupTest.

See https://github.com/uberfire/uberfire/pull/228
This is the corollary for 0.7.x

See https://github.com/uberfire/uberfire-extensions/pull/130

+1
https://github.com/uberfire/uberfire/commit/11a9bd690d56bc9a6853334bb5a7f8ddd2c3ce4f


loosen dependencies to allow rails5, and update ruby version references

Loosen dependencies to allow rails5, and update some ruby version references in travis and rvm configs.

+1, thanks!


Make the core TaskPaperRuby stuff into a gem?

Seems like "taskpaper" is already snapped up by @lodestone!

@mattgemmell - trying to think of the best comeback to that -

"Finders keepers!" :tongue:

"Nyeah, nyeah!" :stuck_out_tongue:

"First come, first serve!" :bowling:

... hm, yeah none of that seems appropriately hilarious so I'll just go for serious this time.
I snagged the gem namespace after I found myself working on my super-secret, super-plain text, super-multi-format (markdown, asciidoc, taskpaper, etc.) parser. I needed something in ruby so I wrote it over a few hours.
It seems like, and correct me if I'm wrong, but it seems like your lib is less command-line focused and mine is more command line focused. Maybe there's some proactive synergystic awesome-sauce to be had between the two libraries.
What do you think?

Hello,
Oh, TaskPaperRuby is very much command-line focused; the HTML-export stuff
is really just an extended and useful demo, and not something I consider
part of the core package. I just wanted a decent Ruby interface to the
file-format, keeping in mind the common use-cases for TaskPaper users in
the app itself.
My goal is always pragmatic, end-user-focused automation, rather than
absolute flexibility, excellent architecture, or an optimised parser. :) I
think TaskPaperRuby is pretty much functionally complete at the moment,
barring some possible enhancements regarding conveniences like running
@search queries and returning results, and that sort of thing. I'll add
bits and pieces as I see the need, but I think it's very useful in its
current form already.
Best,
-Matt
--
Matt Gemmell
http://mattgemmell.com/
http://twitter.com/mattgemmell
On 2 April 2016 at 21:10, Matt Petty<EMAIL_ADDRESS>wrote:

@mattgemmell https://github.com/mattgemmell - trying to think of the
best comeback to that -
"Finders keepers!" [image: :tongue:]
"Nyeah, nyeah!" [image: :stuck_out_tongue:]
"First come, first serve!" [image: :bowling:]
... hm, yeah none of that seems appropriately hilarious so I'll just go
for serious this time.
I snagged the gem namespace after I found myself working on my
super-secret, super-plain text, super-multi-format (markdown, asciidoc,
taskpaper, etc.) parser. I needed something in ruby so I wrote it over a
few hours.
It seems like, and correct me if I'm wrong, but it seems like your lib is
less command-line focused and mine is more command line focused. Maybe
there's some proactive synergystic awesome-sauce to be had between the
two libraries.
What do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/mattgemmell/TaskPaperRuby/issues/1#issuecomment-204793109

Hey @mattgemmell - that makes sense. I'll take a better look later today at what you've got vs what I've got. It may be that what I wrote is un-needed. I'm not opposed to admitting that!
-Cheers

@lodestone Options are always good. :) Looking forward to seeing what you come up with. I'm just glad that two of my favourite plain formats – Markdown and TaskPaper – are getting active interest and dev effort. Have a good weekend.

@mattgemmell what no Asciidoc love? :wink: All my markdown using friends are starting to hate my Asciidoc evangelism.

Just hadn't heard of it. :)


LOG-944: Run loki-benchmark on local docker host

new target in makefile: bench-docker-compose
updated README
TODO: query workload failed due to prom error

First attempt: the write workload works, but the read failed due to empty prometheus results.


Rename magpie to beneficiary and Registry to KeepRegistry

In https://github.com/keep-network/keep-core/pull/1681 we renamed magpie to beneficiary.
In https://github.com/keep-network/keep-core/pull/1687 we renamed Registry to KeepRegistry.
Here we are adjusting keep-ecdsa to accommodate these changes.

Double-checked with the client, looks good:


Reduce duplication of pointer types

Example:
void foo(global uint* A, int n) {
  A[n] = n;
}

void bar(global uchar4 * A, int n) {
  A[n].x = (uchar)n;
}

kernel void goth(global uint *A, global uchar4 *B, int n) {
  foo(A, n);
  bar(B, n);
}

Produces two pointer-to-storage-buffer-of-runtime-array-of-32-bit-int types, each decorated with ArrayStride 4.
e.g.
               OpDecorate %_ptr_StorageBuffer_uint ArrayStride 4
               OpDecorate %_ptr_StorageBuffer_uint_0 ArrayStride 4
...
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
...
%_ptr_StorageBuffer_uint_0 = OpTypePointer StorageBuffer %uint

This is slightly wasteful and could confuse older versions of the validator. (See https://github.com/KhronosGroup/SPIRV-Tools/pull/783)
It would be an enhancement if we could avoid generating two different pointer types in this case.

This is not the case anymore


Allow user to switch between different views of the recent usage table

some (helper & system) tests added to this one @ldodds if you'd like to re-review


Please show branch name and PR # in the list of pull requests or in tooltip

It would be very helpful to be able to see the pull request number and branch name from the list of pull requests.  Currently to get to this information I think you have to expand the PR item and click on description.
The reason is for findability.  At least for our team we tend to refer to the PRs by the name of the branch or by PR numbers, not by the description line from the PR.  For example we have a CI system setup that sends messages to slack with a link to the PRs saying the build status.  This link includes the PR number and the branch name, but not the description.
Ideas:

prefix the PR description in the list with the PR number.  (ex: "#1234: (bugfix) Fix nasty bug in backend"
Show branch name in the tooltip
Could allow users to configure what to show for name.  For our team we may go with PR #, branch name, message

We already have this feature ;)


get_transcript works on my laptop but not on my Virtual Private Server anymore

What code / cli command are you executing?
I am running
from youtube_transcript_api import YouTubeTranscriptApi

transcript = YouTubeTranscriptApi.get_transcript("dg9H_fHNFD8", languages=["fr"])
print(transcript)

Which Python version are you using?
Python 3.11.2
Which version of youtube-transcript-api are you using?
youtube-transcript-api 0.6.2
Expected behavior
This exact same code works like a charm on my laptop, and it had been working on my VPS for weeks. Since yesterday, it has stopped working, raising the error below. It does not work for any video or language. On my laptop it still works flawlessly.
I was worried my VPS's IP address may have been blocked, but I changed my VPS's IP and I still get the same error.
Any idea where this problem could come from ?
The Error I get
youtube_transcript_api._errors.TranscriptsDisabled:
Could not retrieve a transcript for the video https://www.youtube.com/watch?v=dg9H_fHNFD8! This is most likely caused by:
Subtitles are disabled for this video
If you are sure that the described cause is not responsible for this error and that a transcript should be retrievable, please create an issue at https://github.com/jdepoix/youtube-transcript-api/issues. Please add which version of youtube_transcript_api you are using and provide the information needed to replicate the error. Also make sure that there are no open issues which already describe your problem!

I got it working again ! by connecting my VPS to a VPN.
Asking my VPS provider to change my IP was not enough apparently (maybe youtube blocked all requests coming from my provider ?)


Add commit hash to items added to CHANGELOG.md

Hey guys 👋
Thanks for maintaining a change-log. Perhaps it'd be better if you could also introduce the commit hash. That way we (and you, as the developer) can precisely see what notable changes have been made between each release.
Right now, I know you "skip npm install on start when node_modules directory already exists", but I can't see what was done to bring upon that change, code-wise.

Good feedback - we are still learning how to do such a project on GitHub :)
Do you have a good example from other projects with a good Changelog?

I haven't come across a CHANGELOG as succinct and well-maintained as NodeJS. Here, have a look. Of course, with each project, the needs are a bit different, but hope this helps you out in some way.

Ah - I see. Maybe if we would use the releases on GitHub it would also work, right? At least you would know the point in the we released v0.0.6 or v0.0.7, correct?

Yup, GitHub releases are basically git tags. Keep in mind tho, the release tab on GitHub does not replace the need for maintaining a CHANGELOG. As mentioned here

Releases are GitHub's way of packaging and providing software to your users. You can think of it as a replacement to using downloads to provide software.

At best, GitHub will pull annotated git tag messages and turn them into notes, or you could add them under the release notes yourself. If you're going to opt-in for the second option, maintaining a CHANGELOG and linking to it within each release should suffice.
But in the end, it all comes down to how the maintainers choose to do things. What I've stated above are merely my opinions, and are in no way a standard. Here's a neat little website that might answer most, if not all your questions about maintaining a changelog.

Thanks for the suggestion! It's more or less the first GitHub project I'm working on with more then a few known users 😃
When we do the next release I will create a proper GH release and I will mark the current state as 0.0.7.
I would like to close this issue, but feel free to comment on it if we do something stupid, ok?

Go ahead. Looking forward to the next release!


Change the behavior if the pool does not exist.

This PR enables that user can not use sqrt price limit parameter if the pool does not exist.
Because if the pool does not exist, anyone can not estimate correct sqrt price limit.
But, as long as the current sqrt price limit and slippage point are known, this parameter can be used.
Also, we already implemented 2 phase swaps, it can possible the token swap even if the tokenX -> tokenY pool does not exist.
I changed is statement condition from
tokenInAddr != wethAddr && tokenOutAddr != wethAddr

to
!isPoolExists

[x] unit test
[x] integration test

Thank you for your updates!
I just want to ask if it is ok to use the same slippagePoints, sqrtPriceLimitX96 when the isPoolExists  is false and the tokens are swapped in a multi-hop way?

Thank you for your updates!
I just want to ask if it is ok to use the same slippagePoints, sqrtPriceLimitX96 when the isPoolExists  is false and the tokens are swapped in a multi-hop way?

@SoraSuegami
When isPoolExists is false, using same slippage is ok, and sort price limit is calculated by each swap.
We should keep in our mind, current implementation is just 2 single swaps, not a multi-hop (auto routing).

Could you also add your commits to the audit-fix branch?

Could you also add your commits to the audit-fix branch?

Ok, let me then.


Instructs dev to observe examples on port 5555

The make file currently sets the server port to 5555 instead of 5000, as the current documentation suggests.

Thank you!


Adding Redis Pub/Sub handler (closes #574)

This adds a basic Handler which pushes messages to a Pub/Sub Redis channel.
Let me know if you think it should be rewritten as part of the existing Redis handler - or if this is fine!

Thanks, looks fine to me as is, very simple.


use only required goblin features

By default goblin includes features that this crate doesn't use. Removing them cuts down compile time by 13% on my machine

The goblin parser will be removed entirely soon anyway: #551

Done


New version: eza-community.eza version 0.18.14

Pull request has been created with WinGet Releaser v2 :rocket:
Microsoft Reviewers: Open in CodeFlow

Hi @cafkbot-winget,
The package didn't pass a Defender or similar security scan. This might be a false positive and we can rescan tomorrow.
(Automated response - build 880.)

Automatic Validation ended with:

Installation failed with exit code -1978335187
2024-05-01 23:40:10.521 [FAIL] Installer failed security check. Url: https://github.com/eza-community/eza/releases/download/v0.18.14/eza.exe_x86_64-pc-windows-gnu.zip Result: 0x80004005

(Automated response - build 880.)

@wingetbot run


New Path Helper

The Function from System.IO.Path in that new Codeunit are not accessing the local filesystem, but there are very useful to e.g. to separate file name from file extension.

Thank you for your contributions. Case closed :)


[cmake] avoid recompiling common test sources multiple times

@Moandor-y @simonlingoogle , code coverage check is failing here too. Thoughts?


Show a nice warning message to explain we need a vikit key

Today an error is raised when vikit key is missing, let's show something funnier to push developers get their key with hyperlink to the subscription link
Today we lose too many testers because of this

Also let the user knoz she needs to restart the colab after using the key

Yes that looks like a great message for now, thanks!
So if you want I can assign you to this issue?
On the related note, you are right the none checks are useless and not the intended behavior.  Feel free to include a fix on the same pull request or another one, as you wish as those are mostly environment matters

Yeah, I'd appreciate it if you could assign this to me. I'll send a pull request soon

solved with fr #108


Error in Build job (HTML-Proofer found 83 failures!)

Checklist

[X] I have read and accepted the contributing guidelines.

How did you create the site?
Built from jekyll-theme-chirpy
Describe the bug
When building and deploying the site I get this error
Run bundle exec htmlproofer _site --disable-external --check-html --allow_hash_href
  bundle exec htmlproofer _site --disable-external --check-html --allow_hash_href
  shell: /usr/bin/bash -e {0}
  env:
    GITHUB_PAGES: true

Running ["ScriptCheck", "LinkCheck", "ImageCheck", "HtmlCheck"] on ["_site"] on *.html...

- _site/404.html
  *  internal script /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js does not exist (line 1)
  *  internally linking to /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css, which does not exist (line 1)
     <link rel="stylesheet" href="/assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css">
- _site/about/index.html
  *  internal script /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js does not exist (line 1)
  *  internally linking to /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css, which does not exist (line 1)
     <link rel="stylesheet" href="/assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css">
- _site/index.html
  *  internal script /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js does not exist (line 1)
  *  internally linking to /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css, which does not exist (line 1)
     <link rel="stylesheet" href="/assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css">
- _site/posts/(ISC)[2](https://github.com/sawmj/sawmj.github.io/actions/runs/6712113983/job/18240974196#step:6:2)-CC/index.html
  *  internal script /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js does not exist (line 1)
  *  internally linking to /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css, which does not exist (line 1)
     <link rel="stylesheet" href="/assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css">
- _site/posts/Create-Free-VPN/index.html
  *  image /assets/img/vpn/OpenVPN_logo.svg.png does not have an alt attribute (line 1)
  *  image /assets/img/vpn/Pasted image 202[3](https://github.com/sawmj/sawmj.github.io/actions/runs/6712113983/job/18240974196#step:6:3)0[4](https://github.com/sawmj/sawmj.github.io/actions/runs/6712113983/job/18240974196#step:6:7).png does not have an alt attribute (line 1)
  *  image /assets/img/vpn/Pasted image<PHONE_NUMBER>080[9](https://github.com/sawmj/sawmj.github.io/actions/runs/6712113983/job/18240974196#step:6:10).png does not have an alt attribute (line 1)
  *  image /assets/img/vpn/Pasted image<PHONE_NUMBER>1312.png does not have an alt attribute (line 1)

  *  internal script /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js does not exist (line 31)
  *  internally linking to /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css, which does not exist (line 1)
     <link rel="stylesheet" href="/assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css">
- _site/posts/HTB-COP/index.html
  *  image /assets/img/cop/Pasted image 202306[10](https://github.com/sawmj/sawmj.github.io/actions/runs/6712113983/job/18240974196#step:6:11)031213.png does not have an alt attribute (line 1)
  *  image /assets/img/cop/Pasted image<PHONE_NUMBER>1320.png does not have an alt attribute (line 3)
(https://github.com/sawmj/sawmj.github.io/actions/runs/6712113983/job/18240974196#step:6:12).png does not have an alt attribute (line 3)

  *  image /assets/img/cop/Screenshot 2023-06-24 020540.png does not have an alt attribute (line 1)
  *  internal script /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js does not exist (line 7)
  *  internally linking to /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css, which does not exist (line 1)
     <link rel="stylesheet" href="/assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css">
- _site/posts/HTB-Jupiter/index.html

  *  image /assets/img/jupiter/Screenshot 2023-06-17 1509[12](https://github.com/sawmj/sawmj.github.io/actions/runs/6712113983/job/18240974196#step:6:13).png does not have an alt attribute (line 1)
  *  internal script /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js does not exist (line [13](https://github.com/sawmj/sawmj.github.io/actions/runs/6712113983/job/18240974196#step:6:14))
  *  internally linking to /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css, which does not exist (line 1)
     <link rel="stylesheet" href="/assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css">
- _site/posts/OpenVPN-Malware/index.html
  *  image /assets/img/openvpn/Pasted image [20](https://github.com/sawmj/sawmj.github.io/actions/runs/6712113983/job/18240974196#step:6:21)230504135351.png does not have an alt attribute (line 23)
  *  image /assets/img/openvpn/Pasted image<PHONE_NUMBER>5429.png does not have an alt attribute (line 23)
  *  image /assets/img/openvpn/Pasted image 20230504[21](https://github.com/sawmj/sawmj.github.io/actions/runs/6712113983/job/18240974196#step:6:22)0559.png does not have an alt attribute (line [23](https://github.com/sawmj/sawmj.github.io/actions/runs/6712113983/job/18240974196#step:6:24))
  *  image /assets/img/openvpn/Screenshot (4).png does not have an alt attribute (line 23)
  *  internal script /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js does not exist (line 23)
  *  internally linking to /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css, which does not exist (line 1)
     <link rel="stylesheet" href="/assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css">
- _site/posts/PNPT-Review/index.html
  *  internal script /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js does not exist (line 1)
  *  internally linking to /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css, which does not exist (line 1)
     <link rel="stylesheet" href="/assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css">

HTML-Proofer found 83 failures!
Ran on [52](https://github.com/sawmj/sawmj.github.io/actions/runs/6712113983/job/18240974196#step:6:53) files!

Error: Process completed with exit code 1.

Steps To Reproduce
https://github.com/sawmj/sawmj.github.io/
Expected Behavior
success in building the site
Environment
Not really sure, I'm used to edit files from github directly recently
Anything else?
No response

@cotes2020 , Why closing it? Any help?


last line in src block not overwritten when edit special write

https://github.com/nvim-orgmode/orgmode/blob/d791e8fe9f4e5a6b64ea8642476b7d9ba246939c/lua/orgmode/objects/edit_special/types/src.lua#L126
Maybe this - 1 is unnecessary?

Yeah, it's the situation that the SRC block sits on the last line of the buffer. It works fine elsewise. Thank you!


Add Level column/mapping (for each activity)

This is the internal (company) Level mapping (vs the BSIMM level mapping)

this is done


Users/vivasa/publishsymbols/indexsourcefix

Task name: PublishSymbols
Description: IndexSource issue fixed for TFS version control
Documentation changes required: (Y/N) N
Added unit tests: (Y/N) N
Attached related issue: (Y/N)
Checklist:

[x] Task version was bumped - please check instruction how to do it
[x] Checked that applied changes work as expected

Issue assigned PublishSymbolsV2 v2.246.1 task fails with "ScriptHalted"


Download

Hi I’m very new and have no idea how to use this site. Im not sure how to inbox a user. Is this a vax pass available to download?

You need the following

A Mac & Xcode
An apple developer account https://www.appypie.com/how-to-create-a-free-apple-developer-account#Create
The "signpass" app or binary file

Oh wow u replied! Thankyou :) so it def has to be a Mac? Any particular one? Will start lookin on gumtree.
Thankyou again for getting back to me
Shell 😊
Sent from ProtonMail for iOS
On Sat, Jan 15, 2022 at 3:05 pm, Lucas Cullen @.***> wrote:

You need the following

A Mac & Xcode
An apple developer account https://www.appypie.com/how-to-create-a-free-apple-developer-account#Create
The "signpass" app or binary file

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>


use phone-pad

Details

Proposal: https://github.com/Expensify/App/issues/5321#issuecomment-921927347
Approval: https://github.com/Expensify/App/issues/5321#issuecomment-924192144
Fixed Issues

$ https://github.com/Expensify/App/issues/5321
Tests

QA Steps

Create workspace
Go through VBA flow with test credentials
Below inputs will have number pad for ios & android

Company Information Step

Zip Code

Personal Information Step

SSN
Zip Code

Can't test Personal Information Step & for IOS
Tested On

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

Screenshots

Web

Mobile Web

Desktop

iOS

Android

🚀 Deployed to staging by @Jag96 in version: 1.1.2-9 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by @timszot in version: 1.1.3-1 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


how to get the right API version

Hi, how to get the right API version for the powerdns backend ?

Hello,
Can you develop ? The PowerDNS API major version is v1 for a while.

you mean 4.1.1 ?

4.1 is the PowerDNS version. PDA is compatible to versions over 4.1, but there were some changes in the API, you should upgrade to >4.3. Current version is 4.5


Allow customizing page size

We should support 25, 50, 100, and 500, and 1000. Default could be 100.

Doesn't seem that useful.


Doesn't work with engine

Looks like this doesn't work with engines. Here is the short error snippet:
Build Error (Analyzer)
Duplicate plugin/preset detected.
If you'd like to use two separate instances of a plugin,
they need separate names, e.g.
  plugins: [
    ['some-plugin', {}],
    ['some-plugin', {}, 'some unique name'],
  ]

Looks like some broccoli plugin is registered twice ?!? Maybe this error is already enough as a hint to point to the problem. If not please ping I can work on a repro case for more detailed errors.

Hmm, I thought I guarded against this case here: https://github.com/chancancode/ember-concurrency-async/blob/master/index.js#L12-L13, not sure why this is still happening.

hasPlugin and addPlugin are not looking at the same plugin name. So hasPlugin is always false, rendering the guard useless. I did some investigation 🕵 , and it seems that:

Given the require.resolve-ed path of the plugin module as Plugin.
addPlugin takes Plugin and registers it with the name ember-concurrency-async (same as the full package's name). This is the code path that resolves the Plugin path into this name.
hasPlugin takes Plugin but instead of resolving it to ember-concurrency-async, it calls normalize on it, which keeps it exactly as it is, a full path to the module.
When the comparison happens, we compare 'ember-concurrency-async' === '/path/to/module/ember-concurrency-async/lib/babel-plugin-transform-ember-concurrency-async-tasks' which will result in a false negative.

I'm not familiar enough with how ember-cli-babel-plugin-helpers works to figure out the best solution. My instinct was that we should call resolve instead of normalize on Plugin inside hasPlugin. This would probably resolve the issue but we'd need to change how hasPlugin works and I don't know if this will break existing things. Or maybe the addon should not be saved using the package's name inside addPlugin? Maybe someone has better ideas on how to solve this here or in ember-cli-babel-plugin-helpers.

@gossi, @teddyzeenny #11 updates the minimum ember-cli-babel-helpers to a version that fixes this issue.

Released as<EMAIL_ADDRESS>


Configure ProcessPool with a serializer object instance

…instead of a boolean flag.
We will need more flexibility with serializing results coming from ProcessPool when using PyArrow tables as the container for all data. ArrowTableSerializer is introduces as a third serialization option in another CL.

Codecov Report

Merging #252 into master will decrease coverage by 0.24%.
The diff coverage is 90.9%.

@@            Coverage Diff             @@
##           master     #252      +/-   ##
==========================================
- Coverage   86.93%   86.69%   -0.25%
==========================================
  Files          71       71
  Lines        3812     3818       +6
  Branches      581      521      -60
==========================================
- Hits         3314     3310       -4
- Misses        399      404       +5
- Partials       99      104       +5

Impacted Files
Coverage Δ

petastorm/workers_pool/process_pool.py
93.06% <100%> (-1.19%)
:arrow_down:

petastorm/reader.py
92.69% <100%> (+0.21%)
:arrow_up:

petastorm/benchmark/throughput.py
82.96% <66.66%> (+0.25%)
:arrow_up:

petastorm/pytorch.py
86.88% <0%> (-3.28%)
:arrow_down:

petastorm/workers_pool/tests/test_workers_pool.py
96.87% <0%> (-2.5%)
:arrow_down:

petastorm/tf_utils.py
79.13% <0%> (-1.74%)
:arrow_down:

Continue to review full report at Codecov.

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


Doesn't work?

Doesn't work?
Tried clicking on choose a root folder but doesn't display anything...

Fixed. Thanks for reporting this issue.


how to control velocity of fw using mavsdk

I want to limit the velocity of fixedwing at certain waypoints is it possible ? can anyone help me out .thanks in advance.

Did you try setting the speed in the mission item?

can we only speed in mission item because im using attitude setpoints for navigation

Oh so you're using offboard mode? Did you try one of the fw params?

no use tried setting it

can we only use or set speed in mission item because im using attitude setpoints for navigation

I don't understand what you mean. Are you using mission mode with waypoints or attitude setpoints?

im using attitude setpoints

So this API? https://mavsdk.mavlink.io/main/en/cpp/api_reference/structmavsdk_1_1_offboard_1_1_attitude.html

currently using mavsdk-python api offboard attitude

Ok, so with attitude control you have to control thrust which is probably suboptimal for fixedwing. I can see how that's not optimal. Let me ask in Slack if someone has a better suggestion.

ok thank you waiting for your response


Not able to compile infer on Linux Ubuntu 14.10

I have followed this link to setup infer on Linux machine (https://github.com/facebook/infer/blob/master/INSTALL.md#install-the-dependencies)
After that I followed steps to checkout infer and clang to compile But I am not able to do so/
Checkout Infer
git clone https://github.com/facebook/infer.git
cd infer
git submodule update --init --recursive
Compile clang
facebook-clang-plugins/clang/setup.sh # go have a coffee :)
Compile the clang plugin
./compile-fcp.sh
Compile Infer
make -C infer
I have checked out at home directory. After running make -C infer, I am getting following error:
make: Entering directory '/home/user/infer/infer'
make -C src clang
make[1]: Entering directory '/home/user/infer/infer/src'
GIT_COMMIT=$(git rev-parse HEAD 2> /dev/null || printf "unknown commit");
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2> /dev/null || printf "unknown branch");
UNKNOWN="-unknown";
if [ -e "/home/user/infer/.release" ]; then
UNKNOWN="";
fi;
GIT_TAG=$(git tag --points-at HEAD 2> /dev/null || printf "v0.3.0$UNKNOWN");
sed -e 's/@MAJOR@/0/g'
-e 's/@MINOR@/3/g'
-e 's/@PATCH@/0/g'
-e "s/@GIT_COMMIT@/$GIT_COMMIT/g"
-e "s#@GIT_BRANCH@#$GIT_BRANCH#g"
-e "s/@GIT_TAG@/$GIT_TAG/g"
backend/version.ml.in > backend/version.ml
atdgen -t backend/jsonbug.atd -o backend/jsonbug
make[1]: atdgen: Command not found
Makefile:173: recipe for target 'backend/jsonbug_t.ml' failed
make[1]: *** [backend/jsonbug_t.ml] Error 127
make[1]: Leaving directory '/home/user/infer/infer/src'
Makefile:19: recipe for target 'clang' failed
make: *** [clang] Error 2
make: Leaving directory '/home/user/infer/infer'
Can you please help me to set up infer?

Hello @swatigoel,
I think that your problem is due to a missing atdgen binary (make[1]: atdgen: Command not found).
Make sure all your dependencies have been installed correctly (run opam list and check they are all there) or re-install them with the command:
./opam install -y extlib.1.5.4 atdgen.1.6.0 javalib.2.3.1 sawja.1.5.1

If they are all there and the problem persists, run:
eval `./opam config env`

and try again.

can you please tell me in which directory, I have to run this command
./opam install -y extlib.1.5.4 atdgen.1.6.0 javalib.2.3.1 sawja.1.5.1

I got it... I am doing opam setup
Setup Opam
wget https://github.com/ocaml/opam/releases/download/1.2.2/opam-1.2.2-x86_64-Linux -O opam
chmod +x opam
./opam init -y --comp=4.01.0
eval ./opam config env
./opam install -y extlib.1.5.4 atdgen.1.6.0 javalib.2.3.1 sawja.1.5.1

Hello @martinoluca ,
I run this command "eval ./opam config env" as per setup steps but I got below error:
The program 'opam' is currently not installed. You can install it by typing:
sudo apt-get install opam
So I did sudo apt-get install opam, it installed opam but after running command "eval ./opam config env" again I got below error:
[ERROR] Your version of OPAM (1.1.1) is not recent enough to read ~/.opam/config. Upgrade OPAM to a more recent version (at least 1.2) to read this file correctly.
'opam config env' failed.
opam-version    1.1.1
os              linux
File /home/user/.opam/config: Bad format! opam-version

Right, seems like you've installed opam from apt-get rather than using the one you downloaded with wget.
You now have to use that one, which means you should suppress the ./ from the command and type instead:
eval `opam config env`

thank you for your quick response, I used this comman now eval ./opam config env and run
make -C infer again. Now it's giving another error
make: Entering directory '/home/user/infer/infer'
make -C src clang
make[1]: Entering directory '/home/user/infer/infer/src'
GIT_COMMIT=$(git rev-parse HEAD 2> /dev/null || printf "unknown commit");
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2> /dev/null || printf "unknown branch");
UNKNOWN="-unknown";
if [ -e "/home/user/infer/.release" ]; then
UNKNOWN="";
fi;
GIT_TAG=$(git tag --points-at HEAD 2> /dev/null || printf "v0.3.0$UNKNOWN");
sed -e 's/@MAJOR@/0/g'
-e 's/@MINOR@/3/g'
-e 's/@PATCH@/0/g'
-e "s/@GIT_COMMIT@/$GIT_COMMIT/g"
-e "s#@GIT_BRANCH@#$GIT_BRANCH#g"
-e "s/@GIT_TAG@/$GIT_TAG/g"
backend/version.ml.in > backend/version.ml
atdgen -t backend/jsonbug.atd -o backend/jsonbug
atdgen -j backend/jsonbug.atd -o backend/jsonbug
atdgen -t backend/jsonbug.atd -o backend/jsonbug
atdgen -j backend/jsonbug.atd -o backend/jsonbug
make[1]: *** No rule to make target '/home/user/infer/facebook-clang-plugins/clang-ocaml/build/clang_ast_converter', needed by 'clang/clang_ast_t.ml'.  Stop.
make[1]: Leaving directory '/home/user/infer/infer/src'
Makefile:19: recipe for target 'clang' failed
make: *** [clang] Error 2
make: Leaving directory '/home/user/infer/infer'

try running
make -C infer clean && make -C infer

Thanks, It worked. Now I've completed infer setup. I want to know how can I run this for my application.

one more thing, I want to know. How can I maintain opam and infer setup for subsquent sessions.

From now on, you'll need to pull the latest changes from the infer repo, then run make -C infer to build the new changes.
To run Infer on your codebase, follow the instructions here http://fbinfer.com/docs/analyzing-apps-or-projects.html

thanks for your help. It really helped me to set up infer.


Upscale no msg return

Upscale no msg return. when the Upscale img has been created, but the msg2 not return, still repect waitting
cmd: npx tsx example/upscale.ts

Same issue

+1 Same issue

+1 same issue

+1 Same issue, and Variation's loading callback is not working.

Change the code on line 162 of the file midjourney.ts from
return await this.WaitOptionMessage(content, Upscaled, loading);
to
return await this.WaitOptionMessage(content, Image #${index}, loading);

Change the code on line 162 of the file midjourney.ts from
return await this.WaitOptionMessage(content,\ Upscaled`, loading);toreturn await this.WaitOptionMessage(content, `Image #${index}`, loading);`

Change the code on line 162 of the file midjourney.ts from
return await this.WaitOptionMessage(content, Upscaled, loading);
to
return await this.WaitOptionMessage(content, Image #${index}, loading);

and Variation's loading callback is not working.

This is still not addressed, is it?


feat: add Modelina configuration file support

Description
Currently, it's hard to utilize the full feature suite of Modelina, because they are hidden behind callbacks (to allow full customization of model rendering). To enable these features we need to support a basic configuration file, that the user can use to customize the model generation phase when running the asyncapi generate models command.
This PR is just a proof of concept to be used for discussing how to proceed.
To enable the configuration file a user can do the following:
asyncapi generate models typescript -c="./typescript_model.js"

Where the configuration file is:
const {TS_COMMON_PRESET, TypeScriptOptions, IndentationTypes} = require('@asyncapi/modelina');
/** @type {TypeScriptOptions} */
module.exports = {
  enumType: 'union',
  modelType: 'interface',
  indentation: {
    size: 10,
    type: IndentationTypes.SPACES
  },
  mapType: 'record',
  renderTypes: false,
  moduleSystem: 'CJS',
  constraints: {
    modelName: (context) => {
      return `Custom${context.modelName}`;
    },
    propertyKey: (context) => {
      return `custom_prop_${context.objectPropertyModel.propertyName}`;
    }
  },
  typeMapping: {
    Any: (context) => {
      // Always map AnyModel to number
      return 'number';
    }
  },
  presets: [
    {
      preset: TS_COMMON_PRESET,
      options: {
        example: true
      }
    }
  ]
}

This gives 100% control of the generators to the user.
Related issue(s)
Related to https://github.com/asyncapi/modelina/issues/780

I love the approach. Gives a ton of flexibility. Have you thought about how to handle dependencies? I mean, what if in this file I want to import one dependency like lodash? Where should it go? A local package.json might be too much given that I may not even be running the command from a Node.js project or a project at all 🤔 Maybe scanning the file first to install the dependencies in their latest version? 🤔

I actually did not think about that, but definitely a valid concern 🤔 Hmm...
At the point where you need to create a node project to run the command, do you not think it will be easier to add your own integration instead of using the CLI? So you have a script such as:
import { TypeScriptGenerator, TS_COMMON_PRESET } from '@asyncapi/modelina';
import SomeDependency from 'something';

const generator = new TypeScriptGenerator({
  presets: [
    {
      preset: TS_COMMON_PRESET,
      options: {
        example: true
      }
    }
  ]
});

export async function generate(): Promise<void> {
  const models = await generator.generate(input);
  for (const model of models) {
    console.log(model.result);
  }
}
generate();

When we extend this feature to the AsyncAPI generator and templates, adding a solution that enables dependencies would be needed anyway... Might need to take a page out of the AsyncAPI generator 🤔

You could always provide a clear instruction on how one can bundle dependencies into the config script. This is how GitHub Actions work now. You bundle all the code into one file that GitHub workflow uses and dist code. So you have instruction, if you want config file to contain some external dependencies then install them and then bundle with @vercel/ncc.
Anyway it is more on modelina side, right? not cli. You provide guide there, and just add it as link in description: 'Path to config file'

You could always provide a clear instruction on how one can bundle dependencies into the config script. This is how GitHub Actions work now. You bundle all the code into one file that GitHub workflow uses and dist code. So you have instruction, if you want config file to contain some external dependencies then install them and then bundle with @vercel/ncc.

Can you clarify a bit more about what you mean? How bundling dependencies and code could work?

Anyway it is more on modelina side, right? not cli. You provide guide there, and just add it as link in description: 'Path to config file'

Yea I think so too, see https://github.com/asyncapi/modelina/issues/780
But I want to see what functionality overlaps between CLI and Generator integrations before placing the logic in Modelina. Because arguments and the configuration file are overlapping in the CLI and the generator will probably have multiple configuration files (TBD), so I would rather not place common logic in Modelina before actually having proof it's needed.
I think the best way is to slowly progress and see what works and what does not. Always easy to remove stuff once we see commonalities 🙂

Can you clarify a bit more about what you mean? How bundling dependencies and code could work?

you create this:

import { TypeScriptGenerator, TS_COMMON_PRESET } from '@asyncapi/modelina';
import SomeDependency from 'something';

const generator = new TypeScriptGenerator({
  presets: [
    {
      preset: TS_COMMON_PRESET,
      options: {
        example: true
      }
    }
  ]
});

export async function generate(): Promise<void> {
  const models = await generator.generate(input);
  for (const model of models) {
    console.log(model.result);
  }
}
generate();

then you install dependencies
then you install vercel bundler and run ncc build your-config.js --external="@asyncapi/modelina" (my assumption is that you do not want to bundle modelina in the bundle as it runs inside modelina anyway 😄 )
use generated index.js as the config that you pass to CLI

of course I did not test ☝🏼 with modelina and cli. Purely theoretical idea 😄

Because arguments and the configuration file are overlapping in the CLI and the generator will probably have multiple configuration files (TBD)

sorry I didn't get this. What overlaps, the -c that you add on CLI? with what exactly?

of course I did not test ☝🏼 with modelina and cli. Purely theoretical idea 😄

Ahh okay got it! Yea that is definitely another solution 👍

sorry I didn't get this. What overlaps, the -c that you add on CLI? with what exactly?

Oftentimes configuration files are used as the baseline, and then arguments overwrite it i.e. a user could do:
asyncapi generate models typescript -c="./typescript_model.js" --tsModelType="interface"

So even if the config file specified to output models to class the argument takes priority. Like this proof of concept does.

Oftentimes configuration files are used as the baseline, and then arguments overwrite it i.e. a user could do:

ah yes, but this can be solved by making these mutually exclusive. So if you use config, other props are ignored.

@Shurtu-gal @jonaslagoni is this PR still needed?

Its not needed no, once #1376 is merged it will automatically be included once we add it in Modelina 🙂


Spread

add feature so that each number in a sequence won't move more than x places in the next sequence

This option needs to be implemented in randomize-array first


#66 - feat: allow to skip all deps

PR Checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Configuration related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

Which package are you modifying?

[x] @koliveira15/nx-sonarqube
[ ] docs-site

What is the current behavior?
For now, we can only ignore implicit dependencies. While auditing many repositories, it pushes the  app sources and its dependencies that may result in duplicate reports.
Closes #66
What is the new behavior?
This PR allows us to ignore all project dependencies.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information
I made it simple but I think a better way to implement this would be to use an enum like this :
skipDeps?: 'none' | 'implicit' | 'all'

Also, as the getDependentPackagesForProject function is internal, without modifying a bunch of code, I couldn't test the branch properly

Great, looking forward, suggestions seems fine


ProjectDB search by name doesn't work on uncommitted new objects

ProjectDB.Find() will never find objects that haven't been committed yet since their names are still only in DiffUtil. This was a problem when trying to prevent duplicate texture imports in the terrain importer. Needed to give ProjectTexture its own name field to work around this.

Fixed in upcoming changes made for #34


DRILL-5812: Restore the minor fragment Gantt chart canvas

Minor update to restore the fragment Gantt chart
https://issues.apache.org/jira/browse/DRILL-5766?focusedCommentId=16176955&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16176955
@arina-ielchiieva please review.

+1, LGTM. @kkhatua thanks for finding this bug.


matInput colors for Dark Theme are incorrect

The matInput colors for Dark theme are not right, they show up as black when focused.  I dug around and wasn't 100% clear on how this should be fixed properly.  It looks like setting the 900 on mat-palette($mat-grey, 900...) in the first parameter is responsible.  But if you change that it also changes the navbar, etc.
I was able to override these settings in styles.reset.scss-theme.scss with the following:
 .mat-focused {
    .mat-form-field-label {
      color: mat-color($accent, lighter) !important;
    }

    .mat-form-field-ripple {
      background-color: mat-color($accent, lighter);
    }
  }

But that seems kind of like a hack and not proper.  I also didn't fix the cursor color in that fix, just the ripple, and the field label.  For a proper fix you would also want to address the cursor color.

Cant' understand why this is closed without any comment or solution.
Sorry if I didn't been able to find the answer.

@JosepAlacid I don't remember in particular but I guess at that time I though it was fixed by that referenced commit, its almost a year ago so I don't remember the details. Is this still an issue? Can you submit a fix?


tutorial name does not agree with code name

Description
The simulator tutorial references JointDataset, which does not exist.
Expectation
It should probably be updated to IterableJointDataset or JointLoader.

Hello @bkmi, JointDataset was added in the latest version (0.7.3). See https://lampe.readthedocs.io/en/stable/api/lampe.data.html#lampe.data.JointDataset .


Use njit-jerse copy of specimin-evaluation

Don't merge yet - I want to run CI again after I've moved all the target repos to the njit-jerse organization and make sure that it passes.


Visualizer, uncaught promise

I'm unable to get the visualizer to work. Its always returning the below error when I click on the button to bring it up.  The page navigates, and the controls load, but the loading icon spins and no actual content comes up.
I've changed my SAPUI5 resource to use the CDN latest version and others without success.  Any suggestions?

Did you read my further comment to move up coding in eclipse? maybe a path issue, becuase your code runs one level below expected.
Currently the sap trial scp is done, so i can not have a look on it.
In some situations, this comes up, when special data is not escaped or wrong positioned insided model.
Inside MetadataVis.controller uncomment line 264 to debug the collected data.
Also try to set an empty array for Lines. If lines is referencing some entities that are not part of the nodes, the renderer will abort without addtional info. Therefore i added the "iterate navigationProperty(s)" loop.
If you have references to ids (for what ever reason) that are not part of the nodes, this can lead to such an issue.
If this is the case and you have fixed it, let me know to push this fix into the code.
Regards Holger


Tabs and TabBar on web

Awesome project!
Do you @Kaiden42 have any plans on making the Tabs and specifically TabBar widget available on the web?

Awesome project!

Thanks!
I could take a look at this on the upcomming days. It wouldn't be that hard to implement. The only problem I can see so far is using the Icons as there is currently no easy way of specifying the icon font on the web AFAIK.

Thanks!


Indexing WASM memory directly from JS stopped working with update

I just updated Spasm to the latest (It was 0.1.13 before) and LDC to 1.18 (was probably 1.16). I didn't update my .js bindings.
The code does initialize, and calling any D function that returns only an int or a float works. But for some reason, if the D code returns a pointer, trying to derefer it directly like this: spasm.heapi32s[dBornePointer / 4] seems to always return 0. Dereferencing and setting new values still works by defining these:
export extern (C) byte derefer_byte(byte* arg){ return *arg;}
export extern (C) ubyte derefer_ubyte(ubyte* arg){ return *arg;}
export extern (C) short derefer_short(short* arg){ return *arg;}
export extern (C) ushort derefer_ushort(ushort* arg){ return *arg;}
export extern (C) int derefer_int(int* arg){ return *arg;}
export extern (C) uint derefer_uint(uint* arg){ return *arg;}
export extern (C) long derefer_long(long* arg){ return *arg;}
export extern (C) ulong derefer_ulong(ulong* arg){ return *arg;}
export extern (C) float derefer_float(float* arg){ return *arg;}
export extern (C) double derefer_double(double* arg){ return *arg;}
export extern (C) size_t derefer_size_t(size_t* arg){ return *arg;}

export extern (C) byte set_byte(byte* to, byte arg){ return *to = arg;}
export extern (C) ubyte set_ubyte(ubyte* to, ubyte arg){ return *to = arg;}
export extern (C) short set_short(short* to, short arg){ return *to = arg;}
export extern (C) ushort set_ushort(ushort* to, ushort arg){ return *to = arg;}
export extern (C) int set_int(int* to, int arg){ return *to = arg;}
export extern (C) uint set_uint(uint* to, uint arg){ return *to = arg;}
export extern (C) long set_long(long* to, long arg){ return *to = arg;}
export extern (C) ulong set_ulong(ulong* to, ulong arg){ return *to = arg;}
export extern (C) float set_float(float* to, float arg){ return *to = arg;}
export extern (C) double set_double(double* to, double arg){ return *to = arg;}
export extern (C) size_t set_size_t(size_t* to, size_t arg){ return *to = arg;}

...and using them instead.
Do you have any idea how this happened? I noticed that the newer .js files would pass a __heap_base argument to _start(), even when it does not take any arguments... is this related?

Normally, with every update you simply do a dub run spasm:bootstrap-webpack and a dub run spasm:webidl -- --bindgen to update all the javascript files to the latest version. But I know have a custom setup, so here it goes:
I suspect you are having issues with the adjustments I made to the memory. You can have a look at the CHANGELOG.md, specifically the item about setupMemory() under 0.2.0.
I changed the config to the linker to export memory instead of importing it. This allows the wasm module to start with as little as 2kb of memory and grow as required.
But, Javascript is unaware of whenever wasm grows its memory, and when it does the heap pointers in js land get invalidated. That is the reason of the setupMemory addition. You need to call that every time before you murk in the heap (or every time the heap grows). Spasm is conservative and just calls it every time it enters a JS binding function from wasm.
It is a known issue and most libraries deal with it in this way, sadly.

I changed the config to the linker to export memory instead of importing it. This allows the wasm module to start with as little as 2kb of memory and grow as required.

Wow, sounds cool. That explains why I couldn't find new WebAssembly.Memory({initial:16*16, maximum:16*16}) in the newer .js files.
Finished for today, but can't wait to change my own .js to do the same. Thanks.

__heap_base is currently passed from javascript to inform the webassembly module of where its heap starts. I recently found a way to resolve that internally. I'll first get master green again and then fix that so that you don't have to pass that.
In the meantime, you do need to call spasm.rt.memory.alloc_init and pass the __heap_base. Otherwise the allocator will stomp all over the stack. That is, if you use spasm's allocator at all.

If you want you can get the __heap_base in wasm by declaring it like so:
  extern(C)
  {
    /* Symbols created by the compiler/linker.
     */
    extern __gshared
    {
      size_t __data_end;  // the end of the data section (starts at address 1024).
      size_t __heap_base; // the place you can start allocating from
    }
  }

Also check the spasm.intrinsics module where you can grow memory or requests its current size. If you ever need to.


Cache factory supplied submaps for optimization.

Calling a submap factory every time a nested dependency is resolved can be an expensive approach.

Fixed in #16


Mysterious Pub/Sub timeouts if using any version past 0.6.3

For some odd reason if I try and upgrade the gem version past 0.6.3 Gcloud pubsub stops working.
gcloud = Gcloud.new('my_project_id', 'my_key')
pubsub = gcloud.pubsub
works up until here:
pubsub.topic = "my_topic"
Just runs endlessly...  Any ideas on how I can better debug or figure out what's wrong?
I've tried 0.12.2 and 0.11.0

@Hopperman Thanks for opening this issue! I tried to reproduce it myself using 0.12.2. This is what I get:
irb(main):001:0> pubsub = gcloud.pubsub
D0812 11:02:46.268869000<PHONE_NUMBER>10816 ev_posix.c:106] Using polling engine: poll
=> #<Gcloud::Pubsub::Project:0x007f98a416d368 @service=Gcloud::Pubsub::Service(bustling-kayak-91516)>
irb(main):002:0> pubsub.topic = "my_topic"
NoMethodError: undefined method `topic=' for #<Gcloud::Pubsub::Project:0x007f98a416d368>
	from (irb):2

Are you sure about the code you pasted in your description?

@quartzmo No worries! thought it might be helpful to others who stumble upon the same issue
Pretty sure. I'll attach a screenshot from my terminal soon

@Hopperman The method invoked in your code does not exist, either in the current version (0.12.x) or in earlier versions such as 0.6.x. Can you try some other logic to test your upgrade?

@quartzmo This is using the old version in my rails console
rails c Running via Spring preloader in process 57909 Loading development environment (Rails 5.0.0.rc1) irb: warn: can't alias context from irb_context. irb(main):001:0> Gcloud.new('comship-1198', File.open('./cs-pubsub-develop.json')) => #<Object:0x007f9eb927a510 @project="comship-1198", @keyfile=#<File:./cs-pubsub-develop.json>> irb(main):002:0> gc = _ => #<Object:0x007f9eb927a510 @project="my-project", @keyfile=#<File:./cs-pubsub-develop.json>> irb(main):003:0> gc.pubsub => #<Gcloud::Pubsub::Project:0x007f9eb9232558 @connection=Gcloud::Pubsub::Connection(comship-1198)> irb(main):004:0> pubsub = _ => #<Gcloud::Pubsub::Project:0x007f9eb9232558 @connection=Gcloud::Pubsub::Connection(my-project)> irb(main):006:0> pubsub.create_topic "new-topic" => #<Gcloud::Pubsub::Topic:0x007f9eb860bc70 @connection=Gcloud::Pubsub::Connection(comship-1198), @gapi=#<Google::APIClient::Schema::Pubsub::V1::Topic:0x3fcf5c305f00 DATA:{"name"=>"projects/my-project/topics/new-topic"}>, @name=nil, @exists=nil>

Also wow that's weird because after I call pubsub.create_topic I can do this:
irb(main):007:0> pubsub.topic "my-topic" => #<Gcloud::Pubsub::Topic:0x007f9eb85b9c40 @connection=Gcloud::Pubsub::Connection(comship-1198), @gapi=#<Google::APIClient::Schema::Pubsub::V1::Topic:0x3fcf5c2dced4 DATA:{"name"=>"projects/my-project/topics/my-topic"}>, @name=nil, @exists=nil>

In the description for this issue (above), you wrote:
pubsub.topic = "my_topic"

not
pubsub.topic "my_topic"

I can't reproduce any issue in 0.12.2, it all works fine for me.

My apologies, that must have been a typo.
Must be something wrong with my local environment then, will try a complete fresh install on a VM or different machine. Thanks for looking into this.

Sounds good! If you don't find anything can you please close this issue? Cheers!

When you do your fresh install, you might want to look for anything amiss with the installation of the grpc dependency. In all versions 0.7.0 and later, the Pub/Sub support uses gRPC for its transport layer.

Will do, I think it might actually be grpc somehow. Will close once I've confirmed

@Hopperman Did you find the problem?

@blowmage  Yep, I started seeing gRPC errors. Not sure why yet but I'm guessing it's my environment. Will reopen another, more specific, ticket if I can't manage to fix it.

@Hopperman More info would be terrific. Let me know if you want to remote pair on it.

@blowmage thanks! that would be amazing. Will keep you posted, busy implementing pubsub (again) in another service where I'll be using the latest versions. So I'm pretty sure I'll run into it soon.


table borders are not in thick format and broken in between lines

I embedded PDF.js in my Web Application. The image quality is poor, table borders are not thick enough and broken in between lines.
I have downloaded pdfjs-1.0.1040-dist. I am attaching the relevant code for your reference.
var viewport = pdfPage.getViewport(2);
// Use the same hack we use for high dpi displays for printing to get
// better output until bug 811002 is fixed in FF.
console.log('vp: wt='+viewport.width+' ht='+viewport.height);
var PRINT_OUTPUT_SCALE =2;
var canvas = document.createElement('canvas');
canvas.width = Math.floor(viewport.width) * PRINT_OUTPUT_SCALE;
canvas.height = Math.floor(viewport.height)* PRINT_OUTPUT_SCALE;
// The rendered size of the canvas, relative to the size of canvasWrapper.
//canvas.style.width = (PRINT_OUTPUT_SCALE * Math.floor(viewport.width)) + 'px';
//canvas.style.height = (PRINT_OUTPUT_SCALE * Math.floor(viewport.height)) + 'px';
canvas.style.width = (PRINT_OUTPUT_SCALE * 100)+'%';
canvas.style.height = (PRINT_OUTPUT_SCALE * 100)+'%';
		var cssScale = 'scale(' + (1 / PRINT_OUTPUT_SCALE) + ', ' +	(1 / PRINT_OUTPUT_SCALE) + ')';
		//var cssScale = 'scale(' + (1) + ', ' +	(1) + ')';
								//width				//height
		CustomStyle.setProp('transform' , canvas, cssScale);
		CustomStyle.setProp('transformOrigin' , canvas, '0% 0%');

			var printContainer = document.getElementById('printContainer');
			var canvasWrapper = document.createElement('div');
			canvasWrapper.style.width = (viewport.width/PRINT_OUTPUT_SCALE) + 'pt';
			canvasWrapper.style.height = (viewport.height/PRINT_OUTPUT_SCALE) + 'pt';

			canvasWrapper.style.pageBreakAfter = 'always';
			canvasWrapper.appendChild(canvas);

			printContainer.appendChild(canvasWrapper);

			canvas.mozPrintCallback = function(obj) {
				var ctx = obj.context;

				ctx.save();
				ctx.fillStyle = 'rgb(255, 255, 255)';
				ctx.fillRect(0, 0, canvas.width, canvas.height);
				ctx.restore();
				ctx.scale(PRINT_OUTPUT_SCALE, PRINT_OUTPUT_SCALE);

				var renderContext = {
						canvasContext: ctx,
						viewport: viewport,
						intent: 'print'
				};

				pdfPage.render(renderContext).promise.then(function() {
					// Tell the printEngine that rendering this canvas/page has finished.
					obj.done();
				},

We need the PDF file to reproduce the issue. It might be an image decoding problem.

you can check the 2 files attached for reference.

Hello Van.Attaching the PDF file you requested.PFA.
Thanks and Regards,
Arjun Patil
On Wed, 10/07/2015 10:35 PM, Tim van der Meij<EMAIL_ADDRESS>wrote:

We need the PDF file to reproduce the issue. It might be an image decoding problem.

—

Reply to this email directly or view it on GitHub.

@ArjunPatil You cannot attach files by e-mail. You have to upload the file on GitHub.

@timvandermeij, can you share your other email id with me so i can send PDF file.I'm unable to upload PDF on GitHub.

You can just drag-and-drop a PDF file into the box where you type your message. Alternatively we ask users to upload a PDF file on Dropbox, Google Drive or another file sharing service and post the link here.

@timvandermeij  please find the documents on following link
https://www.dropbox.com/sh/pdu40fzl5ti8hhv/AACefuSmP7e2aZMd6asWYgAfa?dl=0

This renders exactly in PDF.js as it does in Adobe Acrobat, so I don't see any issues here. The PDF itself just contains a poor quality image: nothing we can do about that. Closing as invalid.


Add optional mechanism to influence use of implicit pattern global variables

This is an idea, suggested by @beekhof.
What this mechanism does is allow an (optional) way to use the values we implicitly define in the framework using different parameter names.
So, for example, if you need to use the localClusterDomain in a chart, but it needs to be defined as a different variable name, you can still use it, like so (assuming it declares a route.domain variable):
mychart:
  name: mychart
  project: hub
  extraLocalClusterDomainFields:
    - route.domain

Remember any extra variables declared this way are in addition to the "global" parameters, which will be added to the application definition unconditionally.

So I think this makes somewhat sense, although I'd need to really try this. Maybe we can hold off merging this until we have an actual real-life use case/user? As it does add quite a few lines


Use the uri query parameter to distinguish cached URLs

I haven’t demoed or tried this – I don’t think I have access to your AWS account? But this is my best guess for what’s causing #1394, so hopefully resolves that (when applied).

Thanks!


Create a new zone when click is detected

This creates a new zone when a click is detected and runs the coming tasks on that new zone.
Also, modify the user_interaction example to do the requests using XMLHttpRequest.

Codecov Report

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

@@           Coverage Diff           @@
##           master      #87   +/-   ##
=======================================
  Coverage   96.46%   96.46%
=======================================
  Files          26       26
  Lines         622      622
  Branches       76       76
=======================================
  Hits          600      600
  Misses         22       22

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 9f49da0...ef4b8a2. Read the comment docs.


BadZipfile: File is not a zip file

I'm trying to pull bill text for previous congresses for some data science research I'm working on. When I try to run the following command
./run govinfo --collections=BILLS --extract=mods,text,xml,pdf --congress=114
I get a BadZipfile error on every bill (example for s29 below). If I try to manually open the package.zip, I end up with the never ending zip -> cpgz -> cycle.
The strange thing is that if I delete all of the text-versions subdirectories and then rerun the same command, it works fine for the vast majority of bills (~90%). I haven't been able to figure out any rhyme or reason to this behavior but can confirm that I've observed it across Mac OSx and Ubuntu as well as many congresses.

Error fetching package 114s29is in collection BILLS from https://www.govinfo.gov/app/details/BILLS-114s29is.
Traceback (most recent call last):
File "/Users/trent/Documents/congress/tasks/govinfo.py", line 174, in update_sitemap2
mirror_results = mirror_package(collection, package_name, lastmod, lastmod_cache.setdefault("packages", {}), options)
File "/Users/trent/Documents/congress/tasks/govinfo.py", line 313, in mirror_package
extracted_files = extract_package_files(collection, package_name, file_path, lastmod_cache, options)
File "/Users/trent/Documents/congress/tasks/govinfo.py", line 371, in extract_package_files
with zipfile.ZipFile(package_file) as package:
File "/anaconda2/envs/congress2/lib/python2.7/zipfile.py", line 770, in init
self._RealGetContents()
File "/anaconda2/envs/congress2/lib/python2.7/zipfile.py", line 811, in _RealGetContents
raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file

For some additional context, below is a table showing the % of bills that had their bill text properly extracted broken down by congress. So it looks like 22% of bills failed with the BadZipfile error in each congress, except for the 114th which had no failures for some strange reason.

103    0.784871
104    0.784470
105    0.783371
106    0.785635
107    0.772524
108    0.779064
109    0.773925
110    0.784199
111    0.777987
112    0.772009
113    0.777428
114    1.000000
115    0.783106
116    0.767378

I've been seeing something similar and have a patch to delete bad files so they are re-downloaded on the next run. It seems like this is fixing it - it may be lots of temporary glitches. But I'm not entirely sure. I will share my changes when I can (I'm on vacation and am limiting my screen time).
On December 29, 2019 11:17:38 AM GMT+09:00, dsal1951<EMAIL_ADDRESS>wrote:

For some additional context, below is a table showing the % of bills
that had their bill text properly extracted broken down by congress. So
it looks like 22% of bills failed with the BadZipfile error in each
congress, except for the 114th which had no failures for some strange
reason.

103    0.784871
104    0.784470
105    0.783371
106    0.785635
107    0.772524
108    0.779064
109    0.773925
110    0.784199
111    0.777987
112    0.772009
113    0.777428
114    1.000000
115    0.783106
116    0.767378

--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/unitedstates/congress/issues/247#issuecomment-569467450

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Merged #255, so deeming this resolved.


 The tests on my boot2docker almost never pass for my anymore :(

:+1:


Game objects on different layers do not trigger overlaps callback.

I'm not sure if this intentional or not, but game objects on different layers will not trigger the callback defined in the overlaps function.
Example:
Player rendered on 'sprite' layer and bullet's rendered on 'bullet' layer never overlap.  Player has 'player' tag.  Bullet has 'bullet' tag.
overlaps('player', 'bullet', (p, b) => {     destroy(p);     destroy(b); });
Neither are destroyed during overlap.

It is a design decision for objects on different layers don't collide (looks like it's not mentioned in docs, will add)
so now layers are used for:

control which objects are drawn on top
have some layers not affected by the camera with camIgnore() (e.g. for UI)

mostly how I use it is separate background, game scene, and UI, which are kinda "different worlds", thus made the decision to not check for collision for objects on different layer (also saves a bit performance from that), but not that tied to it, let me know if you have any thoughts

The issue I'm running into is when spawning a new sprite using the position of another sprite.  The new sprite appears over the top of the reference sprite.  This just becomes an issue of aesthetics.  Should bullets appear on top of the ship or from behind the ship?

For draw order issue, you can also use readd() to readd an object to the scene, so it'll appear in front of everyone else on that layer, does that help with your case?

readd() does the trick!  Thanks.

Good to hear!


Bug: class target can't be negative

I think there is a problem in the ssd loss at this line:
https://github.com/kuangliu/torchcv/blob/b04e3f11b96e024d932562af342659d7904533f1/torchcv/loss/ssd_loss.py#L63
By looking at the different parts of the code, it seems like cls_targets will always be positive.
I think operator < should be replaced by <= or simply ==.

Actually class_targets could be negative.
For example, in retinanet/box_coder.py, I mark class_targets of ignored boxes to -1. And the cls_loss of ignored boxes should be set to 0.
This line is useless for SSD models.

Thanks for your answer.
I see. Adding a comment would be nice.