BE crash with space function

Steps to reproduce the behavior (Required)

CREATE EXTERNAL RESOURCE "hive_resource_emr" PROPERTIES ("type"="hive", "hive.metastore.uris"="thrift://<IP_ADDRESS>:9083")
CREATE EXTERNAL TABLE hive_ssb_100g_orc_customer (
c_custkey int(11) NULL COMMENT "",
c_name varchar(26) NULL COMMENT "",
c_address varchar(41) NULL COMMENT "",
c_city varchar(11) NULL COMMENT "",
c_nation varchar(16) NULL COMMENT "",
c_region varchar(13) NULL COMMENT "",
c_phone varchar(16) NULL COMMENT "",
c_mktsegment varchar(11) NULL COMMENT ""
) ENGINE=HIVE
COMMENT "PARTITION BY ()"
PROPERTIES (
"database" = "ssb_orc",
"table" = "customer",
"resource" = "hive_resource_emr",
"hive.metastore.uris"  =  "thrift://<IP_ADDRESS>:9083"
);
CREATE TABLE tpch_100g_part (
P_PARTKEY int(11) NOT NULL COMMENT "",
P_NAME varchar(55) NOT NULL COMMENT "",
P_MFGR char(25) NOT NULL COMMENT "",
P_BRAND char(10) NOT NULL COMMENT "",
P_TYPE varchar(25) NOT NULL COMMENT "",
P_SIZE int(11) NOT NULL COMMENT "",
P_CONTAINER char(10) NOT NULL COMMENT "",
P_RETAILPRICE decimal64(15, 2) NOT NULL COMMENT "",
P_COMMENT varchar(23) NOT NULL COMMENT ""
) ENGINE=OLAP
DUPLICATE KEY(P_PARTKEY)
COMMENT "OLAP"
DISTRIBUTED BY HASH(P_PARTKEY) BUCKETS 12
PROPERTIES (
"replication_num" = "1",
"in_memory" = "false",
"storage_format" = "DEFAULT"
);
select   cast(     coalesce(       case         when ref_1.c_phone <= ref_1.c_mktsegment then ref_0.P_BRAND         else ref_0.P_BRAND       end,       ref_1.c_region     ) as VARCHAR   ) as c0,   ref_0.P_BRAND as c1,   ref_1.c_mktsegment as c2,   ref_1.c_city as c3,   ref_0.P_CONTAINER as c4,   cast(coalesce(28, ref_0.P_PARTKEY) as INT) as c5,   ref_0.P_CONTAINER as c6,   ref_0.P_TYPE as c7,   ref_1.c_region as c8,   ref_1.c_nation as c9,   ref_1.c_city as c10,   ref_0.P_TYPE as c11,   ref_0.P_NAME as c12,   cast(     nullif(       ref_0.P_SIZE,       case         when true then max(cast(ref_0.P_SIZE as INT)) over
(           partition by ref_1.c_address           order by             ref_0.P_BRAND,             ref_0.P_MFGR         )
else max(cast(ref_0.P_SIZE as INT)) over (           partition by ref_1.c_address           order by             ref_0.P_BRAND,             ref_0.P_MFGR         )       end     ) as INT   ) as c13,   random() as c14 from   tpch_100g_part as ref_0
right join hive_ssb_100g_orc_customer as ref_1 on (ref_0.P_BRAND = ref_1.c_name) where   (true)   and (     space(cast(ref_1.c_custkey as INT)) = cast(       nullif(ref_0.P_COMMENT, ref_1.c_address) as VARCHAR     )   ) limit   137;

Expected behavior (Required)
Query returns correctly
Real behavior (Required)
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
*** Aborted at<PHONE_NUMBER> (unix time) try "date -d @1650114766" if you are using GNU date ***
PC: @     0x7f0430d1b337 __GI_raise
*** SIGABRT (@0x3e80000037e) received by PID 894 (TID 0x7f03d9d54700) from PID 894; stack trace: ***
    @     0x7f04317d05f0 (unknown)
    @     0x7f0430d1b337 __GI_raise
    @     0x7f0430d1ca28 __GI_abort
    @          0x1886271 _ZN9__gnu_cxx27__verbose_terminate_handlerEv.cold
    @          0x572a7e6 __cxxabiv1::__terminate()
    @          0x572a851 std::terminate()
    @          0x572a9a4 __cxa_throw
    @          0x1886178 _Znwm.cold
    @          0x344d992 std::vector<>::_M_fill_insert()
    @          0x344dd41 starrocks::vectorized::SpaceFunction::evaluate<>()
    @          0x344e0fb starrocks::vectorized::UnpackConstColumnUnaryFunction<>::evaluate<>()
    @          0x344e305 starrocks::vectorized::DealNullableColumnUnaryFunction<>::evaluate<>()
    @          0x3440c85 starrocks::vectorized::StringFunctions::space()
    @          0x310effc starrocks::vectorized::VectorizedFunctionCallExpr::evaluate()
    @          0x2c85afc starrocks::vectorized::VectorizedBinaryPredicate<>::evaluate()
    @          0x2bba1ac starrocks::ExprContext::evaluate()
    @          0x23bd5f3 starrocks::ExecNode::eval_conjuncts()
    @          0x2533306 starrocks::vectorized::HashJoinNode::_probe()
    @          0x2534251 starrocks::vectorized::HashJoinNode::get_next()
    @          0x267d3b1 starrocks::vectorized::ProjectNode::get_next()
    @          0x1f4a9c3 starrocks::PlanFragmentExecutor::_get_next_internal_vectorized()
    @          0x1f4c2ee starrocks::PlanFragmentExecutor::_open_internal_vectorized()
    @          0x1f4ced7 starrocks::PlanFragmentExecutor::open()
    @          0x1ee058b starrocks::FragmentExecState::execute()
    @          0x1ee4d2c starrocks::FragmentMgr::exec_actual()
    @          0x1ee5591 _ZNSt17_Function_handlerIFvvEZN9starrocks11FragmentMgr18exec_plan_fragmentERKNS1_23TExecPlanFragmentParamsERKSt8functionIFvPNS1_20PlanFragmentExecutorEEESC_EUlvE_E9_M_invokeERKSt9_Any_data
    @          0x20270a9 starrocks::ThreadPool::dispatch_thread()
    @          0x2022c68 starrocks::Thread::supervise_thread()
    @     0x7f04317c8e65 start_thread
    @     0x7f0430de388d __clone
    @                0x0 (unknown)

StarRocks version (Required)

You can get the StarRocks version by executing SQL select current_version()
branch-2.2 release 2f51014

select     case when 25 > unix_timestamp() then ref_1.P_MFGR else ref_1.P_MFGR end      as c0,    ref_0.s_address as c1,
ref_1.P_BRAND as c2,    add_months(     cast(cast(null as DATETIME) as DATETIME),     cast(ref_1.P_PARTKEY as INT)) as c3,    ref_0.s_address as c4,    case when (ref_1.P_RETAILPRICE = cast(null as DOUBLE))        or ((ref_0.s_suppkey <= ref_0.s_suppkey)
and (ref_1.P_BRAND >= ref_1.P_TYPE)) then 59 else 59 end      as c5,    ref_0.s_region as c6 from   ssb_100g_supplier as ref_0     inner join tpch_100g_part as ref_1     on (ref_0.s_name = ref_1.P_NAME ) where space(     cast(ref_1.P_PARTKEY as INT)) is not NULL limit 173;
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
*** Aborted at<PHONE_NUMBER> (unix time) try "date -d @1650783947" if you are using GNU date ***
PC: @     0x7f9985f09337 __GI_raise
*** SIGABRT (@0x3e80001cb33) received by PID 117555 (TID 0x7f995a7ab700) from PID 117555; stack trace: ***
    @     0x7f99869be5f0 (unknown)
    @     0x7f9985f09337 __GI_raise
    @     0x7f9985f0aa28 __GI_abort
    @          0x18872ed _ZN9__gnu_cxx27__verbose_terminate_handlerEv.cold
    @          0x572db26 __cxxabiv1::__terminate()
    @          0x572db91 std::terminate()
    @          0x572dce4 __cxa_throw
    @          0x18871f4 _Znwm.cold
    @          0x3451762 std::vector<>::_M_fill_insert()
    @          0x3451b49 starrocks::vectorized::SpaceFunction::evaluate<>()
    @          0x3451d83 starrocks::vectorized::UnpackConstColumnUnaryFunction<>::evaluate<>()
    @          0x3451f7b starrocks::vectorized::DealNullableColumnUnaryFunction<>::evaluate<>()
    @          0x34444b5 starrocks::vectorized::StringFunctions::space()
    @          0x311088c starrocks::vectorized::VectorizedFunctionCallExpr::evaluate()
    @          0x3174385 starrocks::vectorized::VectorizedIsNotNullPredicate::evaluate()
    @          0x2bbb968 starrocks::ExprContext::evaluate()
    @          0x1e3947c starrocks::vectorized::ColumnExprPredicate::evaluate()
    @          0x1af8c9c starrocks::vectorized::SegmentIterator::_filter_by_expr_predicates()
    @          0x1afa24a starrocks::vectorized::SegmentIterator::_do_get_next()
    @          0x1afd511 starrocks::vectorized::SegmentIterator::do_get_next()
    @          0x1b5b142 starrocks::vectorized::ProjectionIterator::do_get_next()
    @          0x1ea9e6a starrocks::SegmentIteratorWrapper::do_get_next()
    @          0x1b8559b starrocks::vectorized::TimedChunkIterator::do_get_next()
    @          0x1b7ed4e starrocks::vectorized::TabletReader::do_get_next()
    @          0x283437c starrocks::pipeline::OlapChunkSource::_read_chunk_from_storage()
    @          0x28349ee starrocks::pipeline::OlapChunkSource::buffer_next_batch_chunks_blocking()
    @          0x26cdc17 _ZNSt17_Function_handlerIFvvEZN9starrocks8pipeline12ScanOperator18_trigger_next_scanEPNS1_12RuntimeStateEiEUlvE0_E9_M_invokeERKSt9_Any_data
    @          0x1ed1110 starrocks::PriorityThreadPool::work_thread()
    @          0x3d4b187 thread_proxy
    @     0x7f99869b6e65 start_thread
    @     0x7f9985fd188d __clone
    @                0x0 (unknown)

branch-2.2 release 55c6918

starrocks::vectorized::ColumnExprPredicate::evaluate()

it was because function space has been pushed down to storage layer.

starrocks::vectorized::ColumnExprPredicate::evaluate()

it was because function space has been pushed down to storage layer.

This issue only occur when enable_column_expr_predicate is true, so move this issue to 2.3 version.

select * from   (     select       ref_0.ws_bill_cdemo_sk as c0     from       sqlsmith.tpcds_100g_web_sales as ref_0     where       ref_0.ws_sales_price = ref_0.ws_list_price   ) as subq_0 where   (     case       when subq_0.c0 > subq_0.c0 then space(cast(subq_0.c0 as INT))       else space(cast(subq_0.c0 as INT))     end >= case       when (         (false)         and (cast(null as VARCHAR) = cast(null as VARCHAR))       )       and (         (           (cast(null as DOUBLE) > cast(null as DOUBLE))           and (             (               (                 (subq_0.c0 is not NULL)                 and (                   (
(subq_0.c0 is NULL)                     or (cast(null as VARCHAR) <= cast(null as VARCHAR))                   )                   or (subq_0.c0 <> subq_0.c0)
)               )               or (                 (false)                 or (cast(null as DOUBLE) > cast(null as DOUBLE))               )             )
and (subq_0.c0 is not NULL)           )         )         and (cast(null as DOUBLE) <= cast(null as DOUBLE))       ) then upper(         cast(           cast(             nullif(               case                 when subq_0.c0 is NULL then cast(null as VARCHAR)                 else cast(null as VARCHAR)
end,               case                 when (                   (cast(null as DOUBLE) = cast(null as DOUBLE))                   or (subq_0.c0 is NULL)
)                 or (cast(null as DOUBLE) < cast(null as DOUBLE)) then cast(null as VARCHAR)                 else cast(null as VARCHAR)               end
) as VARCHAR           ) as VARCHAR         )       )       else upper(         cast(           cast(             nullif(               case                 when subq_0.c0 is NULL then cast(null as VARCHAR)                 else cast(null as VARCHAR)               end,               case                 when (
(cast(null as DOUBLE) = cast(null as DOUBLE))                   or (subq_0.c0 is NULL)                 )                 or (cast(null as DOUBLE) < cast(null as DOUBLE)) then cast(null as VARCHAR)                 else cast(null as VARCHAR)               end             ) as VARCHAR           ) as VARCHAR         )       )     end
)   and (     cast(       nullif(         cast(nullif(subq_0.c0, subq_0.c0) as INT),         subq_0.c0       ) as INT     ) > subq_0.c0   );
  what():  std::bad_alloc
*** Aborted at<PHONE_NUMBER> (unix time) try "date -d @1651755085" if you are using GNU date ***
terminate called recursively
PC: @     0x7f4373290337 __GI_raise
*** SIGABRT (@0x3e8000061d8) received by PID 25048 (TID 0x7f4342ba1700) from PID 25048; stack trace: ***
    @          0x3c947d2 google::(anonymous namespace)::FailureSignalHandler()
    @     0x7f4373d455f0 (unknown)
    @     0x7f4373290337 __GI_raise
    @     0x7f4373291a28 __GI_abort
    @          0x5653992 __gnu_cxx::__verbose_terminate_handler()
    @          0x5652446 __cxxabiv1::__terminate()
    @          0x56524b1 std::terminate()
    @          0x5652604 __cxa_throw
    @          0x17afa54 _Znwm.cold
    @          0x3384e52 std::vector<>::_M_fill_insert()
    @          0x3385239 starrocks::vectorized::SpaceFunction::evaluate<>()
    @          0x33856bd starrocks::vectorized::DealNullableColumnUnaryFunction<>::evaluate<>()
    @          0x3377ba5 starrocks::vectorized::StringFunctions::space()
    @          0x3042a5c starrocks::vectorized::VectorizedFunctionCallExpr::evaluate()
    @          0x2bb5e5c starrocks::vectorized::VectorizedBinaryPredicate<>::evaluate()
    @          0x2aed3e8 starrocks::ExprContext::evaluate()
    @          0x1d657fc starrocks::vectorized::ColumnExprPredicate::evaluate()
    @          0x1a24f5c starrocks::vectorized::SegmentIterator::_filter_by_expr_predicates()
    @          0x1a2650a starrocks::vectorized::SegmentIterator::_do_get_next()
    @          0x1a297d1 starrocks::vectorized::SegmentIterator::do_get_next()
    @          0x1a87502 starrocks::vectorized::ProjectionIterator::do_get_next()
    @          0x1dd621a starrocks::SegmentIteratorWrapper::do_get_next()
    @          0x1ab195b starrocks::vectorized::TimedChunkIterator::do_get_next()
    @          0x1ab72e4 starrocks::vectorized::UnionIterator::do_get_next()
    @          0x1aab10e starrocks::vectorized::TabletReader::do_get_next()
    @          0x2765d1c starrocks::pipeline::OlapChunkSource::_read_chunk_from_storage()
    @          0x276638e starrocks::pipeline::OlapChunkSource::buffer_next_batch_chunks_blocking()
    @          0x25ffc97 _ZNSt17_Function_handlerIFvvEZN9starrocks8pipeline12ScanOperator18_trigger_next_scanEPNS1_12RuntimeStateEiEUlvE0_E9_M_invokeERKSt9_Any_data
    @          0x1dfd510 starrocks::PriorityThreadPool::work_thread()
    @          0x3c2fe07 thread_proxy
    @     0x7f4373d3de65 start_thread
    @     0x7f437335888d __clone

fixed by #6491


Block enabling 2fa if cookie policy not accepted

Not accepting the cookie policy prevents temp cookies from being used which interrupts 2fa flows like displaying recovery codes (which is an issue during registration).
The fix for 2.2 is to block the ability to enable 2fa when cookie consent is not given.

Do we need another bug opened to track the 3.0 work where we want to see if we can just make this all work?
cc @ajcvickers


Improved the build matrix

What's wrong here? Any idea?

Looks like a compatibility issue with newer CFFI versions, I'll look into it, thanks for the report!

Fixed the issues in master, try rebasing this branch on latest master

Rebased.


Submit queue: PRs with "risky-change" label should be merged during business hours.

Take a flag with a range of times, e.g. --risky-changes-allowed=8am-1pm,11pm-4am (these are California times, but the flag should take UTC times). Then sort PRs with this label into the queue such that they'll get to the top around when the window opens. We can actively manage their position in the queue if the queue is blocked etc.
This is to try and get these things merged when humans are watching the jenkins jobs. We shouldn't merge risky changes at 5pm and go home. The times I put above are roughly mornings for MTV and WAW.

@roberthbailey this would have been handy yesterday.

It would have been more handy if we hadn't manually merged a risk change at 5pm. :)

Maybe we would have not done that if there was a red "risky-change" label
on the PR :)
On Wed, May 25, 2016 at 11:19 AM, Robert Bailey<EMAIL_ADDRESS>wrote:

It would have been more handy if we hadn't manually merged a risk change
at 5pm. :)
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/kubernetes/contrib/issues/1068#issuecomment-221661205

Seems like we haven't really had a need for this. I'll close for now.


maximze worked but show not found

prefix + show the follow outputs
bash: line 0: exec: maximized...: not found
Pane has been maximized, press <prefix>+ to restore. %1

Hell @yangg
Can you please give me more information:

OS version
shell
tmux version

Then, the session and window name:
$ tmux display -p '#{session_name} #{window_name}'

And finally, in the window that fails to maximize please run
$ cut -c3- ~/.tmux.conf | sh -xs _maximize_pane

and paste the output. This should be something like
$ cut -c3- ~/.tmux.conf | sh -xs _maximize_pane
+ cat
+ set -e
+ export LC_NUMERIC=C
+ LC_NUMERIC=C
+ __newline='
'
+ _maximize_pane
++ tmux display -p '#{session_name}'

...

+ tmux setw -t social:4 remain-on-exit off ';' swap-pane -s %2 -t %7

os: mac 10.13.1
shell: iTerm2 build 3.1.4.beta.1   bash
tmux: 2.6
(and tmux master on my centos7 server,  build from source yesterday)
/var/www $ cut -c3- ~/.tmux.conf | sh -xs _maximize_pane
+ cat
+ set -e
+ export LC_NUMERIC=C
+ LC_NUMERIC=C
+ __newline='
'
+ _maximize_pane
++ tmux display -p '#{session_name}'
+ current_session=0
++ tmux display -p '#{pane_id}'
+ current_pane=%0
++ grep -o '^1 %.\+maximized.\+$'
++ tmux list-panes -s -t 0 -F '#{pane_dead} #{pane_id} #{pane_start_command}'
++ true
+ dead_panes=
++ sed -n -E -e 's/^1 %0 .+maximized.+'\''(%[0-9]+)'\''$/tmux swap-pane -s \1 -t %0 \; kill-pane -t %0/p' -e 's/^1 (%[0-9]+) .+maximized.+'\''%0'\''$/tmux swap-pane -s \1 -t %0 \; kill-pane -t \1/p'
++ echo ''
+ restore=
+ '[' -z '' ']'
++ sed 's/^ *//g'
++ wc -l
++ tmux list-panes -t 0:
+ '[' 1 -eq 1 ']'
+ tmux display 'Can'\''t maximize with only one pane'
+ return

Spotted the bug!!!
See the line?
tmux new-window -t 0: -P 'exec maximized... 3> /dev/null & tmux setw -t "0:" remain-on-exit on; printf "Pane has been maximized, press <prefix>+ to restore. %s" '\''%22'\'''

I must have goofed with CTRL-A in vim :(
That should be 2 > /dev/null

Can you please try the gh-116 branch?

gh-116 fixed this issue.
Thanks for ur assistance!
On Sat, Nov 18, 2017 at 7:40 PM, Gregory Pakosz<EMAIL_ADDRESS>wrote:

Can you please try the gh-116 branch?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gpakosz/.tmux/issues/116#issuecomment-345436748, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAY-iRKpMN-0KcgNHGx9MWBmJ4W1TlXLks5s3sJKgaJpZM4Qi5V2
.

Thanks for the report. Sorry for the bug 😅


update tokens for selection only

I have large file with lots of tokens and each time I update it takes a while. Can I not just do an update for a single selection? So I can work a bit faster.

You can set Apply to selection in the bottom left.
https://docs.tokens.studio/tokens/applying-tokens#control-where-to-apply-changes


Wonderland webhook template

Summary
Closes #53
Changes
Added IoT Wonderland webhook
Checklist

[x] Scope: The referenced issue is addressed, there are no unrelated changes.
[x] Compatibility: The changes are backwards compatible, they don't break existing deployments.
[x] Testing: The changes are tested.
[ ] Documentation: Relevant documentation is added or updated.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Andreas Senn seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Is there anything I still need to change or do?

Is there anything I still need to change or do?

Besides that, we should probably check if the integration works as intended before merging. Our next release is planned in 2 weeks approx. and the template will be available then, so I think it's better to verify it now. I deployed your templates in a local TTS instance, here's how it looks:

Could you please provide me an account on your platform or at least the required info from the template so we can see if things work? If everything goes as expected, we can merge this and then the only thing left to do is to create the documentation guide.

@gitahubbit No, I'm basically asking you for a Wonderland username and API key (info requested in the template) so we can check if messages from my end device that's connected to TTS are reaching your platform through this template you submitted. We can continue discussion via email

@gitahubbit I just visited your platform's webpage and saw that it only supports certain tracking devices, so I suppose I won't be able to test this with my test LoRaWAN device. This means that we will need to rely on you to test if the integration works as expected. Please perform a rebase on the master branch and sign the CLA, so I can approve and merge this. You can submit the documentation after.


webui style update

Noticed in the web console running the query from getting started tutorial Bitmap(frame="stargazer", stargazer_id=14) would overflow the resulting text.
Overview
Text escaping its div container. Did not create an issue since this is a small css fix for some minor aesthetics.
Fixes #
I looked at the existing issues but did not see anything related to this.
Pull request checklist

[X] I have read the contributing guide.
[X] I have agreed to the Contributor License Agreement.
[ ] I have updated the documentation.
[x] I have resolved any merge conflicts.
[ ] I have included tests that cover my changes.
[X] All new and existing tests pass.

Code review checklist
This is the checklist that the reviewer will follow while reviewing your pull request. You do not need to do anything with this checklist, but be aware of what the reviewer will be looking for.

[ ] Ensure that any changes to external docs have been included in this pull request.
[ ] If the changes require that minor/major versions need to be updated, tag the PR appropriately.
[ ] Ensure the new code is properly commented and follows Idiomatic Go.
[ ] Check that tests have been written and that they cover the new functionality.
[ ] Run tests and ensure they pass.
[ ] Build and run the code, performing any applicable integration testing.

Thanks @ctravail! The webUI is an early prototype, so I'm not surprised if it has some issues like this. We did address a similar issue in the past: https://github.com/pilosa/pilosa/issues/483. This is the reason for word-break: break-all; on result-output and the other result- classes. Can you explain the problem you're seeing a little more? A screenshot might help too. We have not done extensive browser testing, what are you using?

I'm using chrome Version 58.0.3029.110 (64-bit).
Before:

After:

word-break doesn't seem sufficient for the overflowing problem.
I can update the commit to put the style in the section that styles all results. Also can update from word-wrap: break-word; to overflow-wrap: break-word; since that is the updated standard.

Thanks @ctravail! We could not reproduce your problem. The word-break: break-all in CSS should be the same function with overflow-wrap: break-word;. Since there's no harm to adding overflow-wrap, we will merge this. For your reference, this is what I have using 59.0.3071.109 (64-bit)

There is expand button to expand the div if the content is overflow out of the div. After you click the button, it shows all the content


zsock_poll() unnecessarily wait when querying for ZSOCK_POLLOUT

Describe the bug
When zsock_poll() is called to wait for the ZSOCK_POLLOUT event, and the socket is already ready for sending, it does not return immediately, but waits for the entirety of the timeout passed to it.
An analogous bug also affects zsock_select().
This has been tested on the QEMU emulated target, and on an ST Nucleo-F429ZI board that is equipped with an Ethernet port. I have not tested it on non-Ethernet interfaces (e.g. WiFi, cellular, etc.).
To Reproduce

Build the following application:

CMakeLists.txt:
cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
project(pollout_bug_demo)
target_sources(app PRIVATE main.c)

prj.conf:
CONFIG_NETWORKING=y
CONFIG_NET_IPV4=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_CONFIG_NEED_IPV4=y
CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_MY_IPV4_ADDR="<IP_ADDRESS>"

main.c:
#include <assert.h>
#include <net/socket.h>

void main(void) {
    struct sockaddr_in addr = {
        .sin_family = AF_INET,
        .sin_port = htons(1234)
    };
    int ret = zsock_inet_pton(AF_INET, "<IP_ADDRESS>", &addr.sin_addr);
    assert(!ret);

    int fd = zsock_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
    assert(fd >= 0);
    ret = zsock_connect(fd, (const struct sockaddr *) &addr, sizeof(addr));
    assert(!ret);

    printf("Connected!\n");

    struct zsock_pollfd pollfd = {
        .fd = fd,
        .events = ZSOCK_POLLOUT
    };
    ret = zsock_poll(&pollfd, 1, 5000);
    assert(ret == 1);
    assert(pollfd.revents == ZSOCK_POLLOUT);

    zsock_send(fd, "Hello, world", 12, 0);

    printf("Packet sent!\n");
}

Run it on an Ethernet-equipped board, or the QEMU emulator. On the <IP_ADDRESS> host, run something like nc -u -l 1234
Observe the 5-second delay between "Connected!" and "Packet sent!" messages. If you change the timeout passed to zsock_poll(), the delay will change accordingly.

An analogous application using zsock_select() instead of zsock_poll() can be written, exhibiting the same behaviour. Also, changing the socket type from UDP to TCP also shows the same problem.
Expected behavior
zsock_poll() shall return immediately, as equivalent calls do on Linux, macOS and Windows. In this usage, it shall block only if the internal socket buffers are indeed full.
Impact
Some network-related libraries that would be otherwise trivial to port to Zephyr cause the code to wait for extremely long if poll() is used to wait for the POLLOUT event (or an equivalent select() call).
Environment (please complete the following information):

OS: Ubuntu 18.04
Toolchain: Zephyr SDK 0.10.3
Commit SHA or Version used: aa9b762d12

Mind that in https://github.com/zephyrproject-rtos/zephyr/pull/18879, I argue against workarounds for this issue, and instead call for proper fix of the underlying issue, which is https://github.com/zephyrproject-rtos/zephyr/issues/5842 .


Dev

Some more examples (multiple cubes, skybox, volume slice)
Some tweaks along the way.
The API for the texture view needs some more love ... but probably in another PR.

Think you forgot to add that new material?

Awesome! Love the simplicity :)


CDK-945: Ignore trailing slash in URIs.

This updates the URIPattern code to ignore trailing slashes in URIs.
URIs can still match a trailing / explicitly, and URI pattern globbing
still works as before.

+1


Delete composer.lock

Composer.lock should not be part of the library repository.

I would like to politely disagree with you because my understanding is that it's purpose is to be in the repo.
Can you convince me otherwise?

@kevinkhill composer.lock will make no effect in libraries. it make effect only on project repositories.

@kevinkhill For libraries there is only option to commit the composer.lock. In fact most of the libraries do not include it in the repository.
For example:

symfony
laravel
They do not include the lock file.

Reasons to not inlcude the lock file in the library repo:

tests will always run with the latest dependencies,
no useless commits to just update the dependencies.

I concede and accept your request. Thank you for taking the time to inform me ☺


Verify PR 77 disable serial port access and skipDefaultNetworkCreation both set to true

verify https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/pull/77
https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/blob/main/environments/common/common.auto.tfvars#L9
  policy_boolean        = { "constraints/compute.skipDefaultNetworkCreation" = true, "constraints/compute.disableSerialPortAccess" = true } #constraints/compute.skipDefaultNetworkCreation = false

We will need to patch a live system and verify on the non-prod or prod TF deployment CB trigger - I can do this later today if needed
verify both flipped from false, rerun deployment, add to the ATO evidence doc
constraints/compute.skipDefaultNetworkCreation" = true
"constraints/compute.disableSerialPortAccess" = true

20240406: Closing issue during retrofit/rebase of this TEF V1 based/modified repo to TEF V4 standards
This issue may participate in the LZ refactor after rebase
Query on all issues related to the older V1 version via the tag
https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/labels/2024-pre-tef-v4


Intercepter-logging: wrong protocol for real server using http2

What kind of issue is this?

[X] Bug report.

Summary

when using OkHttp with an HTTP2 server, the logging generated by logging-interceptor is wrong with regards to the protocol. it prints "http/1.1" when in reality it is "h2"
(since in line https://github.com/square/okhttp/blob/a94f952d4fd612b649f0e1afbbcd06b7b991765b/okhttp/src/main/java/okhttp3/RealCall.java#L184 the connection is null, the connection will be null in
https://github.com/square/okhttp/blob/master/okhttp-logging-interceptor/src/main/java/okhttp3/logging/HttpLoggingInterceptor.java#L154 , thus the result will be "http/1.1", which is extremely confusing and wrong.)

how to verify this is ? / reproduce this

Create a request to a http2 capable server, fire it off, and inspect the Response (there the protocol is set to "h2" as expected), and watch the interceptor log "http/1.1".

Write a failing test:
its properly more a definition of using http1.1 as a default value, instead of saying "we do not know".

Failing test?

Looking further, this is a problem with how the logging interceptor should behave when the protocol version is unknown? Yeah, we can fix this.


Initiating unauthorized trades, and API sleeping

To start off, I have a funded alpaca account, and I'm using the polygon feed. I am updated on the latest 0.12.0 of alpaca-backtrader-api, and I am seeing unauthorized trades of unauthorized position sizes being sent. I'm running python 3.7. This error persists with Polygon true and false.
I have specified the sizer using the following code as well to 95%. Everything works perfectly fine on backtesting mode.
I then see positions being acquired on Alpaca that are not of the given sizer, and orders on price data that does not even exist for that given day. For example, today during market hours, NIO was above 50$ all day, but Alpaca (on paper mode) got a position at 46$. Then several other orders of different sizer that were not logged on my console were sent (were not logged either). I am then told to sleep and wait for the API to respond several times. When it reconnects, it sends yet another unauthorized and unlogged order. What could I be doing wrong here? Just to make sure, I used the strategy from the given starter code in this repo, and it still does not work. Example :

If you see above, I am running it live on paper, but I see data from the 17th even though today is the 23rd.
I am adding the data to cerebro like so :
#Setup Alpaca with cerebro broker
cerebro = bt.Cerebro()
store = alpaca_backtrader_api.AlpacaStore(
    key_id=ALPACA_API_KEY,
    secret_key=ALPACA_SECRET_KEY,
    paper=(args.backtest or args.paper),
    usePolygon=True
)
DataFactory = store.getdata  # or use alpaca_backtrader_api.AlpacaData
if args.live or args.paper:
  print("Using Alpaca API Broker")
  data0 = DataFactory(dataname=tickers['tickers'][0], timeframe=bt.TimeFrame.Minutes, historical=False, backfill_start=True)
  broker = store.getbroker()  # or just alpaca_backtrader_api.AlpacaBroker()
  cerebro.setbroker(broker)
elif args.backtest:
  print("Backtesting")
  cerebro.broker.setcash(100000.0)
  data0 = DataFactory(dataname=tickers['tickers'][0], historical=(args.backtest), backfill_start=True, fromdate=datetime.datetime(
    2020, 11, 18), timeframe=bt.TimeFrame.Minutes, tz=pytz.timezone('US/Eastern'))
else:
  raise RuntimeError("Bad trading mode")
cerebro.adddata(data0)

cerebro.addsizer(bt.sizers.PercentSizer, percents=95)

I have reduced the situation to the following :

Polygon is giving me data
The position size is an error on my side
Logs don't work correctly on backtrader for some odd reason
alpaca-backtrader-api is not handling the usage of API calls correctly, and is thus timing out.

I think number 1-3 is dealable, but I guess my issue is with number 4, as I've seen other users on this repo have this same issue.

Hi, not sure what you mean by handling the api calls correctly?
what do you see?

Yes please try running the code that I provided, where Paper=True, usePolygon=True, and on Minutes timeframe. It does not work as intended. It runs on old data.

    key_id=ALPACA_API_KEY,
    secret_key=ALPACA_SECRET_KEY,
    paper=True,
    usePolygon=True
)
DataFactory = store.getdata  # or use alpaca_backtrader_api.AlpacaData
data0 = DataFactory(dataname='NIO',
                        historical=False,
                        timeframe=bt.TimeFrame.Days,
                        backfill_start=True,
                        )
broker = store.getbroker()
cerebro.setbroker(broker)
cerebro.adddata(data0)

print('Starting Portfolio Value: {}'.format(cerebro.broker.getvalue()))
cerebro.run()
print('Final Portfolio Value: {}'.format(cerebro.broker.getvalue()))
cerebro.plot()`

And then print out the timestamps and price data on the next function in the strategy.

when you are running with paper trading the first step is get past data for your indicators.
this data is not considered live, but it still goes through your next function
it's because this is a hybrid solution between backtests and paper/live trading
this is why you see past data.
the solution is to check with backtrader - "are we live"?
you could see how you could go about this in the example code (e.g strategy_sma_crossover.py)
inside notify_data we do:
        if data._getstatusname(status) == "LIVE":
            self.live_bars = True

then in next() we do:
        if not self.live_bars and not IS_BACKTEST:
            # only run code if we have live bars (today's bars).
            # ignore if we are backtesting
            return

Got it. I had a misunderstanding. Thanks. Quick question however. It seems that the historical data is loaded in one second at a time for say TSLA. Do I have to wait that long for it all go through the next() function, or is there a way to make this process faster?

it shouldn't take that long, but yes you need to wait for it to complete the entire load because the data stream goes through the backtrader mechanism if it's live or not

Sounds good. I ran it today (the 30th), and it started backfilling from the 23rd. Took about 10 minutes per "day", does that sound right to you?

I still seem to be getting the "WARNING - sleep 3 seconds and retrying https://paper-api.alpaca.markets/v2/account 3 more time(s)..." whenever I start getting live data.
This is how I'm getting the data:
                          historical=False,
                          timeframe=bt.TimeFrame.Minutes,
                          backfill_start=True,
                          )
  broker = store.getbroker()
  cerebro.setbroker(broker)```


Modifications for receiver with optical inputs

Tested on a fresh installation with an R-N500. The corresponding pull request is also available for the internal python library. I have not executed the tests, as I modified the code directly on my HA installation with a restricted Python environment. However, I tried to mirror the changes of previous PRs (#294) that included new sources.

Summary by CodeRabbit

New Features

Introduced new input mappings for OPTICAL1 and OPTICAL2.
Updated configuration flow to support the new minor version.

Bug Fixes

Improved migration logic to handle transitions between versions more effectively.

Documentation

Updated requirements to reflect the latest dependency version.

Tests

Added new tests for migration and configuration options, ensuring robustness of new features.
Adjusted existing tests to align with the updated migration logic and new inputs.

Thanks for the pullrequest.
Would you mind adding the diagnostics file to this PR?
I am interested in the initialization section because the R-N500 is the first device reported working from that range. The others devices all seem to be AV receivers while the R-N500 seems to be audio only, so it would be interesting to get some more insights in what capabilities it supports/reports.

btw, sorry for the amount of work it is to add an additional input. It is on my list to make this simpler, but did not have time yet 😞

Thanks for the pullrequest.
Would you mind adding the diagnostics file to this PR? I am interested in the initialization section because the R-N500 is the first device reported working from that range. The others devices all seem to be AV receivers while the R-N500 seems to be audio only, so it would be interesting to get some more insights in what capabilities it supports/reports.

I checked out the complete repository on my laptop now and fixed the tests using the pytests module. What exactly do you mean by 'initialization' section, and how can I get this information? I'm still new to Home Assistant in general.

I was referring to the "Download diagnostics" option that some/most integrations offer nowadays. It will download a file which typically contains more detailed data useful for troubleshooting.
For this integration I store all the commands sent during initialization and the most recent commands.
It helps me to see what is going on and I can load those commands in my little simulator so I can often reproduce the issues people have without access to the actual device. I am interested since the R-N500 is the first device I know that works with this protocal that is not an AV receiver so it is nice to have the commands it supports as a reference.

 Btw, don't worry about the work one needs to do to add another input. It is not that much :)


Upgrade to Electron v2

Stable v2.0.0 is out: https://github.com/electron/electron/releases/tag/v2.0.0
We need to test Hyper against this version:

Study commit changelog to detect possible regression
Benchmark to notice if there is better performance
Test if we still need to have this PR: https://github.com/zeit/hyper/pull/2895

Test version up at https://github.com/zeit/hyper/pull/2967

Another test version at https://github.com/pecastro/hyper/tree/electron_v2
This was to try to work around the issues described in https://github.com/zeit/hyper/issues/3018.
Hyper window now works but performance is horrible ...

Maybe https://github.com/electron/electron/issues/12695 will be fixed by the time you upgrade - wasted a couple hours of my life 😄

If this isn't resolved I can take that up..Just give me the go...

@EfstathiadisDimitris https://github.com/zeit/hyper/pull/2967 is perfectly fine and ready to go

Closing via https://github.com/zeit/hyper/pull/3458


Files is not defined

Why did i get files is not defined when using gfs.files.find()

have you defined gfs?

This is problem appearing with  mongoose package in version up 6.0.0
i solved this problem only change mongoose package version to 5.13.10
npm i<EMAIL_ADDRESS>--save


Create eyelink file for testing

It would be good to have ~30 seconds of eyelink data with a few known saccades and blinks for testing the moss.eyelink module.

Btw. Maybe this is helpful https://github.com/pyeparse/pyeparse
On Sat, 3 Jun 2017 at 19:25, Michael Waskom<EMAIL_ADDRESS>wrote:

It would be good to have ~30 seconds of eyelink data with a few known
saccades and blinks for testing the moss.eyelink module.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mwaskom/moss/issues/30, or mute the thread
https://github.com/notifications/unsubscribe-auth/AB0fit6RYGB1KqeiMos1bHfAZ36Tg4rkks5sAZcdgaJpZM4NvJYN
.

Looks cool, thanks!

Project archived.


Provide a way to set the stream start time in the manifestparsed event handler

Description
Implements #3434
Added method Player.setStartTime(startTime: number) which can be used to update the stream start position in the manifestparsed event handler based on information obtained from the manifest, such as the position and duration of ad breaks. This is done in a way that avoids unnecessary fetching of segments at the beginning of the stream prior to  fetching segments at the desired start position.
This change reduces our VOD DAI stream start times from ~4.5 to ~3.5 seconds, which has a measurable effect on our QOS metrics.
Note that I tried to implement this by setting the value of player.getMediaElement().currentTime in the manifestparsed event handler, but that did not work with Safari.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to
not work as expected)
[x] This change requires a documentation update - new function Player.setStartTime(startTime:number)

Checklist:

[x] I have signed the Google CLA https://cla.developers.google.com
[x] My code follows the style guidelines of this project
[x] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have verified my change on multiple browsers on different platforms
[x] I have run ./build/all.py and the build passes
[x] I have run ./build/test.py and all tests pass

@joeyparrish  Hoping to get a code review on this. It is an alternative implementation of https://github.com/google/shaka-player/pull/3485 which you reviewed last week.


plater: improve plater-gui

Motivation for this change
While using Plater I noticed that I:

Forgot to create a desktop item, which made invoking it from a launcher
annoying
Forgot to use wrapQtAppsHook

This fixes both of those.
cc. @supersandro2000
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.


v-for on empty array prints string "undefined"

Version
2.5.0
Reproduction link
https://codepen.io/dmmikkel/pen/XePMKG
Steps to reproduce
Use v-for to iterate over empty array
What is expected?
Nothing to render
What is actually happening?
Renders string 'undefined'

dup of #6808


add support for partial update/remove for tensor and map

add partial update/remove to map and tensor structure

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

input of bag as map will be like this:  {(MapId1,(value1, value2))(MapId2,(value3, value4))....}, a bag contains several tuples, each tuple has two elements, first one being the Id of the map we wish to update, second being a tuple which contains the value of the map
input of tensor will be a map like: {{x:label1,y:label2,z:label4}:2.0,{x:label3}:3.0}
vespa tensor: https://docs.vespa.ai/documentation/tensor-user-guide.html
desired output can be found in vespa json document:
https://docs.vespa.ai/documentation/reference/document-json-format.html
all using update operation and the fields section are as follow:
desired output of update on bag as map:
{
"fields": {
"bagName{bagID}": {
"assign": {
"month": "March",
"year": 2020
}
}
}
}
desired output on remove bag:
{
"fields": {
"bagName{bagID}": {
"remove": 0
}
}
}
desired output on update tensor:
desired output on update tensor: {
"fields": {
"tensor": {
"add": {
"cells": [
{
"address": {
"x": "label1",
"y": "label2",
"z": "label4"
},
"value": 2.0
},
{
"address": {
"x": "label3"
},
"value": 3.0
}
]
}
}
}
}
desired output on remove tensor
{
"fields": {
"tensor": {
"remove": {
"address": [
{
"x": "label1"
},
{
"y": "label2"
},
{
"z": "label4"
},
{
"x": "label3"
}
]
}
}
}
}

@jingtinghuang Changes look ok, but before I merge please consider comments by @leisureshadow .

@lesters Hi, I've completed the pr changes requested by @leisureshadow


Update typings to v1.x

The Typings project was updated and has some breaking changes for v1. Update our typings usage to reflect this.

Somewhat involved process... as I started to do this, noticed some of our directives don't conform to the latest type definitions in Angular. Steps to address this:

[ ] update tsconfig.json to remove the references to typings/*
[ ] update typings.json to change ambientDependencies to globalDependencies
[ ] remove mime & yargs from globalDependencies and install from dependencies (these have been ported to NPM from DT)
[ ]  remove the typings folder as it will be completely refreshed
[ ] refresh all type defs in dependencies and in `globalDependencies

easiest way todo this, methinks, is (for dependencies) to run typings i <name> -S... then for the globals do `typings i dt~ -SG

[ ] compile to typescript... make sure no errors with type definitions... will be lots for our code (ignore), but handful in core type definitions (express, serve-static, yargs)

At this point can commit the change, but the build will be broken... need to fix issues in our code.
Next, update the code to reflect the latest type definitions. most have incorrectly defined the transclude function signature so easy fix... mostly issues with IDirective and IDirectiveFactory


not working with remote instance of mysql

query.lua:77: attempt to index field 'field' (a nil value)
After some time, it produces the above error when running with remote instance of mysql.
But it works well with local instance of mysql.

Similar issue. My error is this though:
query.lua:98: bad argument #1 to 'floor' (number expected, got nil)


Fix read_spikeglx

With https://github.com/SpikeInterface/spikeextractors/issues/561
we should fix this read_spikeglx
x_pitch/y_pitch seems to be wrong.
Is it NP depend ? @alejoe91 ?

Yes will do!


Add captcha to signup

We should add a captcha to prevent bots on signup. reCAPTCHA would be the best method. We can add a spot in the admin page(see #53 for how we could do this) to add a reCAPTCHA token to allow admins to set options for their captchas.

That would be a nice addition.
Use a new route for this implementation, for example: /users/signup2

on hold


Revert "Restructure plugin builds to avoid building more than needed"

Reverts grpc/grpc#13359
This broke assumptions in an internal build file. It can be reverted painlessly since this was just a build optimization, not really fundamental.

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

[microbenchmarks] No significant performance differences

Fast merging pure rollback.


Running python-3.10.1-amd64-full.exe on Win7 still says "Setup failed"

I'm sure it's something on my end, but shouldn't this exe be installable on Windows 7?

Wild guess.

The installer works on my Windows 7 machine. If you go to the log file, it should give you further details about why the error is happening. I suspect that your machine does not have update KB2533623 installed. You can try updating your machine via Windows Update or going to https://support.microsoft.com/en-us/topic/microsoft-security-advisory-insecure-library-loading-could-allow-remote-code-execution-486ea436-2d47-27e5-6cb9-26ab7230c704.

I believe I have provided the solution, so I'm closing this. Feel free to reopen if you're still having issues.


Redesign and improve the Gradient type and friends

It should have about the same API as today, where it still makes sense, but overall modernized. Also fulfill this:

make it #[no_std] enabled
support more than just linear interpolation
the Take iterator should be inclusive, meaning both ends are part of the output for n > 1
support slicing with at least x..=y, but other ranges may also make sense

The first two points may go hand in hand, by replacing the internal Vec with some input collection.

To learn more about [no_std], I looked into making gradient [no_std] enabled and built it successfully for thumbv6m-none-eabi. Since the alloc crate has been stabilized, you can use some collections like Vec with no_std. That required changing instances of std::vec to core::vec in gradient.rs, configuring the alloc crate behind a feature flag in lib.rs, and adding some helper code in the no_std_test.rs like the alloc error handler. For data structures and no_std, it seems like the choices are use  alloc and make users specify their own memory allocator in their crates/runtimes, or bring in a crate like heapless for your internal data structures (I didn't want to add any new dependencies). I'm very inexperienced with this though, this is what I can gather from the current information I could search.
The no_std_test fails to compile for x86_64-unknown-linux-gnu target in the same CI build. It doesn't seem like there's a solution currently for the undefined reference to '_Unwind_Resume'. It seems to be an issue with the linker and I couldn't get the rust-ld linker to work as I believe you'd have to specify library locations in the VM image. eh_unwind_resume doesn't seem to matter for helping linux-gnu build and thumbv6m didn't need it to build. I don't have Linux installed at the moment so can't test it locally, but I can build it locally for x86_64-apple-darwin on nightly.
Here are the changed files.

I have never worked with the alloc crate, so I have no idea off the top of my head what this could be. Part of the reason why making the user provide the storage solution is an interesting idea is to not have to deal with supporting allocations at all. It would be up to the user to decide if a Vec or a slice or an array, or whatever else is the most suitable. As long as it's compatible with some minimal API (basically something like something.color_at(x)).
That and the idea of having support for more than just linear interpolation makes me wonder if it's worth the effort to get alloc working, rather than changing the gradient API to not need it.


Heatmap color change not having effect

Create map
Add dataset
Change aggregation to Heatmap
Change color pallete to solid and try to change it from default black color

It's not applying the color from the selector. The selector does retain the selected color once collapsed.
cc/ @xavijam

Could you check it @javisantana please?

I fixed the issue but this opens for me a new question about heatmap.
There should not be a fixed value for heatmap, it should be always a ramp of colors. So the question, is there a way to setup a form to always show ramps and no fixed values ? @xavijam  I don't know if latest @javierarce work fixes that problem

when I said I fixed I meant I fixed the javascript exception

Yes, as far as I know we can "hide" fixed panel in the fill component. But I wanted @javierarce to confirm it.

branch?

Yes, the component should allow hiding the pane. I can have a look too.

Don't worry mate, we have it :). But one thing, we are suffering the problem of having one column to select, although it is clicked, it doesn't go to the ramps list, similar to the reported one right?

👌 . I'm having a look to that, will report later.

❤

When https://github.com/CartoDB/cartodb/pull/7772 is merged, issue selecting 'points_agg' is solved, thanks to @javierarce ;).

ok, let me rebase and test again

like a charm


Not working well with CSS Variable Autocomplete

I was trying to figure out, which postcss extension for vscode is working best with CSS Variable Autocomplete.
As yours is the one with the most recent release and especially mentioning it works... I figured it doesn't. See the video here:
https://user-images.githubusercontent.com/283700/174474882-adccdee0-432e-48fd-93fb-9bdc5a3e993a.mov
Apparently, two dashes are prepended before var( - this seems to be the case for all postcss extensions I've tested.
Might be for sure, this is also a bug from CSS Variable Autocomplete itself? I think you are best to know where this is coming from 😅
Can also be I missconfigured my vscode for some reason - then this issue a question on how to do that properly =)
Thank you so much for you work you put into these extensions 😊

Oh, an addendum (I think, I've disabled the wrong extensions when reporting this). To clarify:

✅ Working with: (vscode-css-variables)[https://github.com/vunguyentuan/vscode-css-variables]
❌ Not working with: (vscode-css-variables-autocomplete)[https://github.com/paradigm-sy/vscode-css-variables-autocomplete]

Depending on the use-case/project setup, sometimes the latter is more suitable.


Is RancherOS still actively maintained?

Hi folks
Basically I have the question if RancherOS is still actively maintained. There has been no work going on in the last couple of months, whereas the project was very active before. Most of the maintenance/development has been done by @SvenDowideit in the past. But it seems to me like he has left "Rancher" during the last couple of months, accordingly to his profile.
I really like the project and I'm actively using it for different productive servers, but the current situation seems a little bit blurry...
Has someone from rancher any information about the future of the project or could clarify the situation?

I came on here to ask exactly this question.  I noticed that Sven's "epic" PR (https://github.com/rancher/os/pull/2079) stalled as well.  Do I need to start evaluating other options?  We're running this in production as well.

why are we talking about actively maintained? Is this not a monetized product for entreprise grade anyway ? and rancherOS is just one part of the project no ?

@boistordu ...and paid/enterprise users chooses coreos/ubuntu/centos, right?

Well I don't know, since @ryansch have said that they are using it in production ....

@boistordu This is an OS.  Rancher happens to use RancherOS but you don't have to use Rancher.  We're probably going to jump ship for alpine if there's no action here soon.

Okay my mistake then, I though that there has been first rancher then rancherOS as a side project.

As people noticed, yes @SvenDowideit has moved on to bigger and better things.  This does put us in a pickle as he was the main contributor to RancherOS adding features and doing great work around LinuxKit.  So that has definitely stalled.  From a "maintenance" perspective, that is still going on as needed.  The nature of RancherOS is it is supposed to be small and simple and not need a heck of a lot of maintenance.
So where is RancherOS headed?  It's still alive and we still have plans for it.  And most importantly we have paying customers using it.  Right now the company is super focused on getting Rancher 2.0 (the management product) out the door.  As such we haven't wanted to reallocate resources to RancherOS until 2018 (sorry, we aren't a huge company).  You are going to see a lull in activity until Q1 of 2018. :(
If anyone is looking for a job to maintain RancherOS let me know.

@ibuildthecloud we'd love some re-assurance that someone is still allocated to RancherOS from a security perspective, tracking and evaluating new CVE's and whether updates/a new release are needed?

@mikemoate we still actively looking for CVE and security issues and will patch accordingly as they come.  We will also ship small releases for our paying customers.  What Darren is talking about is that until Rancher 2.0 shipped, we won't be actively adding new features into OS.  We have done some initial discussions on even RancherOS 2.0, but again, won't be able to act on it until 2018.

RancherOS v1.1.1 has been released.
Close this issue.😄

I would love to test a LinuxKit-based RancherOS. I think the provisioning pieces of LinuxKit may also be a good fit, instead of using the Docker Machine model.

@eyz We've done quite a bit of work and analysis to move RancherOS to be LinuxKit based.  In the end I don't think we will go forward with it.  While there could be some advantages to using LinuxKit it doesn't address any of our current issues.  LinuxKit ends up being a nice to have.  So I don't completely rule out using it, the advantages are just very much tangential to what we need.
We have every intention of moving RancherOS to be containerd based.  The current plan is that RancherOS 2.0 will be containerd based.  TBH we aren't in a huge rush though.  RancherOS has always been designed to be very small in scope and do one thing well.  And it does currently accomplish that. Right now we are waiting for cri-containerd to land in containerd proper (not require separate daemon) and for that to stabilize.

@ibuildthecloud Thanks for the reply. Yes, it sounds like it's a good idea to wait for the containerd space to settle a bit. LinuxKit is especially under heavy development, and I certainly understand wanting to keep things light, as well. I'm happy to see there is a roadmap of sorts for RancherOS, and I look forward to testing Rancher 2.x in the near future.

Is the plan to have a regular upgrade (ros os upgrade) from 1.x to 2.0 in moving from Cattle to K8?

@2devnull way too soon to ask i think :)


Privacy level for organ systems

This will be superseded by term-level privacy settings if we ever get something like this.


Release Google.Cloud.Batch.V1Alpha version 1.0.0-alpha27

Changes in this release:
New features

Add IServiceCollection extension methods for client registration where an IServiceProvider is required. (commit 022fab2)

Created release for Google.Cloud.Batch.V1Alpha-1.0.0-alpha27


Tests for Primes and Moduli

One more pack of tests.

I have written tests for Math.NumberTheory.Moduli. They catched several edge cases with chineseRemainder and sqrtMod*** functions. Tests also showed numerous issues with computations by non-positive modulo. I have not found any convenient and consistent way to fix them and, taking into account that non-positive moduli are mathematical nonsense, I decided to prohibit them. In future, when we drop support of older GHCs, moduli should be represented by Natural, not by Integer.

Tests for Math.NumberTheory.Primes.Heap. Fixed out-of-bounds error.

Tests for Math.NumberTheory.Primes.Sieve. Everything OK :)

Tests for Math.NumberTheory.Primes.Counting.

Since nthPrimeApprox n > n, there were overflows for bounded types (any Integral was accepted). I decided to change signature of nthPrimeApprox to accept and return Integer.
Fixed approxPrimeCount 1 (was NaN).
Documentation refers to several magic numbers such as maximal allowed arguments of exact counters and overestimate/underestimate limits for approximate counters. I decided to expose them to user, otherwise one have copy-paste them from documentation to write reliable code. BTW approxPrimeCountOverestimateLimit in documentation was totally wrong.

Last not least: I have rewritten the definition of TestableIntegral class, using type families. Now it is more structured and easier to extend.

:tada:
sweet, i'll have a read through sometime this week (on a much needed vacation)

If no one minds, I am going to merge this PR on Sunday.


_CastError: Null check operator used on a null value   File "framework.dart", line 1108, in State.setState

We are getting this as a result of some race condition in production when calling setState without checking if (mounted)
Regardless, I don't think this should break, looking at the code in framework.dart:

_element!.markNeedsBuild();

Why not change this to _element!.markNeedsBuild();?

Hi @ayushin ,
Thanks for filing the issue, please provide the output of flutter doctor -v along with minimal reproducible code sample, with the exact steps to reproduce the issue.
Thank you.

Unfortunately it is not possible. We can't reproduce the issue in development environment it is a race condition in production.
See my comments above.
I think this might be happening when widget is not mounted, and I believe you should not use ! when you haven't checked if something  nullable is not null immediately prior, so I think the code should be fixed regardless.

@ayushin to investigate this issue we would need the output of flutter doctor -v :)


Bug (?) : prettier and eslint rules indent conflicting on interpolated strings

Hi,
I'm actually implementing prettier inside projects. Until now everything has been fine, but i have recently encounter an issue.

Some files using interpolated string are not indented properly.

Files (prettier config, eslint config, package.json, etc..)
//package.json
{
  "name": "prettier-template-pb",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "eslint": "^5.13.0",
    "prettier": "1.19.1"
  },
  "dependencies": {
    "eslint-config-prettier": "^6.11.0",
    "eslint-config-standard": "^12.0.0",
    "eslint-plugin-import": "^2.16.0",
    "eslint-plugin-node": "^8.0.1",
    "eslint-plugin-prettier": "^3.1.3",
    "eslint-plugin-promise": "^4.0.1",
    "eslint-plugin-standard": "^4.0.0"
  }
}

//.prettierrc.json
{
  "trailingComma": "es5",
  "tabWidth": 2,
  "semi": false,
  "singleQuote": true,
  "jsxSingleQuote": true,
  "quoteProps": "consistent",
  "printWidth": 120,
  "arrowParens": "always"
}

//.eslintrc.json
{
    "extends": [
    "standard",
    "prettier/standard",
    "plugin:prettier/recommended"
],
    "env": {
    "browser" : true,
        "node": true
},
    "rules": {
    "eqeqeq": ["error", "always"],
        "object-curly-spacing"  : [2, "always"],
        "no-console"            : 2,
        "prefer-const"          : 2,
        "no-var"                : 2,
        "comma-dangle"          : ["error", "always-multiline"],
        "no-multi-spaces": ["error", { "ignoreEOLComments": true }],
        "indent": ["error", 2, {
        "SwitchCase": 1,
        "VariableDeclarator": 1,
        "outerIIFEBody": 1,
        "MemberExpression": 1,
        "CallExpression": {
            "arguments": 1
        },
        "FunctionDeclaration": {
            "parameters": 1,
            "body": 1
        },
        "FunctionExpression": {
            "parameters": 1,
            "body": 1
        }
    }],
        "no-unused-vars": "off"
}
}

//index.js
// File i try to format with eslint --fix
//This file is a placeholder, it's not intended to run
/* Config */
import { SOMEIMPORT_THREE, SOMEIMPORT_FOUR } from '../../../../../config/template-strings'

/* Common */
import { SOMEIMPORT } from '../../../../../common/string-transform/key/key-to-class-string'

export function someFunction() {
  // DO
  const classStringDOItems = 'something'

  // Parent
  const parentRangeKeys = 'something'
  const parentKeysParamNumberString = 'something'
  const parentKeysParamNumberStringWithThis = 'something'

  // Child
  const childInstanceStringDO = 'something'
  const childClassStringDO = 'something'

  // Range
  const rangeKeyUppercase = 'something'
  const instanceRangeKey = 'something'

  return `
export default class ${classStringDOItems} extends ${SOMEIMPORT_THREE.BASE_DO} {
  ${SOMEIMPORT_FOUR.CONSTRUCTOR} (appManager${parentKeysParamNumberString}) {
    super(appManager)${parentRangeKeys
      .map(
      (key) => `
    this.${key} = ${key}`
      )
    .join('')}
    this.${SOMEIMPORT.DO_ITEMS.ITEM_KEYS} = []
  }

  get ${SOMEIMPORT.DO.ITEM_KEYS} () {
    return this.${SOMEIMPORT.DO_ITEMS.ITEM_KEYS}
  }

  ${SOMEIMPORT_FOUR.INIT} () {
    const source = ${SOMEIMPORT_THREE.VAR_DIMS}.${rangeKeyUppercase}.${SOMEIMPORT.SOURCE}
    let enumKeys

    if (source) {
      const minIndex = source.${SOMEIMPORT.ORDER}.indexOf(${SOMEIMPORT_THREE.VAR_DIMS}.${rangeKeyUppercase}.${
    SOMEIMPORT.MIN
})
      const maxIndex = source.${SOMEIMPORT.ORDER}.indexOf(${SOMEIMPORT_THREE.VAR_DIMS}.${rangeKeyUppercase}.${
  SOMEIMPORT.MAX
})
      enumKeys = source.${SOMEIMPORT.ORDER}.slice(minIndex, maxIndex + 1)
    } else {
      enumKeys = []
      for (let i = ${SOMEIMPORT_THREE.VAR_DIMS}.${rangeKeyUppercase}.${SOMEIMPORT.MIN}; i <= ${
    SOMEIMPORT_THREE.VAR_DIMS
}.${rangeKeyUppercase}.${SOMEIMPORT.MAX}; i++) {
        enumKeys.push(i.toString())
      }
    }

    this.${SOMEIMPORT.DO_ITEMS.ITEM_KEYS} = []

    for (const ${instanceRangeKey} of enumKeys) {
      const ${SOMEIMPORT(childInstanceStringDO)} = new ${childClassStringDO}(this.${
    SOMEIMPORT.APP_MANAGER
}${parentKeysParamNumberStringWithThis}, ${instanceRangeKey})
`
}

Terminal Output

Using eslint -- fix index.js output

Repository to reproduce the issue
I'm using eslint-config-prettier in order to disable the eslint rules that are conflicting with prettier. But it seems that it's not working for some interpolated strings
Expected behavior
I'm expecting prettier to format everything without conflicting with eslint rules indent
Thanks for reading :smiley:

Hi!
indent conflicts with Prettier – don’t use it. Remove it from your config.
Use the CLI helper tool to find other unnecessary/conflicting rules in your config. Remember, "extends" can never win over "rules".

Okay, thanks a lot, everything seems to be working fine now 👍
I close the issue

Ok thanks a lot everything seems to be working now :+1:
I closed this issue

If anyone has the same problem:
This plugin disables rules in eslint and makes prettier take over (as lydell said above)
If you have  something set in .eslintrc.js in the "rules" property, it cannot be overwritten by this plugin.
For me, in vscode I had these lines:
    disabledWhen(
      ({ something }) =>
        something.condition ||
        something.condition1 <---- 'eslint(comma-dangle) Missing trailing semicolon)
    ),

and when I added the semicolon, the eslint(comma-dangle) warning turned into a eslint(prettier/prettier) warning saying "Remove trailing comma" or something like that. So it was an endless loop - I have autofix on save so when I pressed CTRL+S the warnings would toggle between comma-dangle and prettier/prettier
For me, it was the comma-dangle rule in eslint in the "rules" section. I just removed it from .eslintrc.js and added the (almost) equivalent trailingCommas: 'all' in .prettierrc


Only show "missing CuPy" dialogue on machines with CUDA devices

Right now, the warning box "No cupy installation found" (#812) is also displayed on machines without CUDA devices.
It should only be shown if any CUDA device was actually detected.

Disable the Dropdown and show a little "i"-icon, which triggers a modal with information about GPU support


Support sphinx doc strings

Discussed in https://github.com/microsoft/pylance-release/discussions/4416

Originally posted by rchiodo May 24, 2023
@jakebailey I've created a new issue for an actual bug related to missing newlines for "key" and "keyword" parameter descriptions. These are valid syntax and break the current implementation of the docstring hover for sphinx format: https://github.com/microsoft/pylance-release/issues/2002

For the sake of not making new duplicate tickets, I would like to continue the discussion that is exactly related to "The Sphinx docstring hover may be more pretty". The Sphinx website shows an example rendering of how their syntax is meant to be used: https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#info-field-lists
This is the expected rendering, which would bring it to parity with the same feature in PyCharm and match Sphinx's documentation.

Originally posted by @jeremyvital4 in https://github.com/microsoft/pylance-release/issues/1113#issuecomment-954139426

Well this is silly, had to create another issue for an issue that was turned into a discussion. Anyway, this should be handled by the doc string work to support restructured text.

The output won't be exactly as asked for, but it should look something like so:

This issue has been fixed in prerelease version 2024.6.100, which we've just released. You can find the changelog here: CHANGELOG.md

The fix for this issue is behind an experimental feature flag:
"python.analysis.supportRestructuredText": true

If you want to try our our new restructuredText support, enable this flag. It's behind a flag at the moment until we can make sure it handles all the possible Sphinx/GoogleDoc/Epytext scenarios that customers need. Please log additional issues if the flag is not meeting your needs.
Thanks :)

My long awaited feature is finally here. Would be super nice if the tooltip supports (cross) referncing with :ref: tags.

Actually cross referencing was added an issue. Please up vote it:
https://github.com/microsoft/pylance-release/issues/6042


Make govuk-cdn-logs-monitor deployable

Added govuk-cdn-logs-monitor to deployable apps list

👍  good to go!


Crash when run on one of my README.md files.

Hi,
I installed mdvl using pip for Python-3.6 and ran it over:
https://raw.githubusercontent.com/softdevteam/krun/master/README.md
$ mdvl README.md
... renders document, then at the end:
md error:  not enough values to unpack (expected 2, got 1)

I tried git master.
It works after applying this diff:
diff --git a/mdvl.py b/mdvl.py
old mode 100644
new mode 100755
index 2f8a315..a0eba98
--- a/mdvl.py
+++ b/mdvl.py
@@ -482,7 +482,7 @@ def sys_main():
                 md = fd.read()
     if err:
         print(err)
-        print md
+        print(md)
     else:
         main(md, term_width=cols)


fix: typo in from-nextjs.mdx

Description (required)

typo in from-nextjs.mdx
Add link only to import.meta.glob() for consistency with other documentation.
Change the link to /en/guides/imports/#importmetaglob for consistency with other documentation.

Related issues & labels (optional)

Closes #
Suggested label:

Lunaria Status Overview
🌑 This pull request will not trigger status changes.

Learn more
Lunaria automatically ignores changes on specific PRs by adding a ignored keyword in its title. Found: typo.
You can change this by either removing the keyword above from the PR's title, or modifying the ignoreKeywords property in your Lunaria configuration file.

Tracked Files

[!NOTE]
The notes below indicate what would happen if the pull request is merged when triggering status changes. Since a ignored keyword was found in the PR's title, the status changes indicated below won't be applied.

File
Note

en/guides/migrate-to-astro/from-nextjs.mdx
Source changed, localizations will be marked as outdated.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


Typo that breaks the kubectl apply command

Fixing a typo that breaks the kubectl apply command when you are using an RBAC-enabled Kubernetes cluster. Now both the kubectl apply -f command and the creation of the .yaml file work.

@adriantodorov : Thanks for your contribution! The author, @iainfoulds, has been notified to review your proposed change.


Added font-style for LIGHT and LIGHT_ITALIC

Hi @psliwa ! Did you have time to review this pull request?
Thanks!

Yes, of course. I will review this PR soon (max in one week). Thanks for PR.

I merged this PR as cherry-pick (https://github.com/psliwa/PHPPdf/commit/a4c59f1e146933f667e516e05ae7bdefd2f290dc) because I wanted to also add this feature to 1.2.x branch.


negative prices

We can set negative prices in products and variants.

If this was merged then this should be closed @mmoreram


docs: correct context link in google-signin-button.md

Pull Request Title

Description

JIRA Ticket(s)

JIRA Ticket: [Ticket ID 1]
Related Tickets: [Ticket ID 2, Ticket ID 3]

Type of Change

[ ] New Feature
[ ] Bug Fix
[ ] Refactor
[x] Documentation Update
[ ] Other (please specify):

Dependencies

[ ] Requires: [Link to other PR/dependency]

Breaking Changes

Checklist

[ ] Locally Tested
[ ] Ready for QA

thanks @reslear


Fix zero norm bug

@lintool @Peilin-Yang Could you take a quick look at this PR?
The bug detail is in #374 .

@Victor0118 I don’t think this is the right fix... this will impact the quality of the estimated RM. we should actually remove those documents...

According to the source code, Englishanalyzer does not remove the word containing special character.
But in RM3 implementation in Anserini, you remove words contain character not in [a-z0-9]. Is there any special reason to do this?

The [a-z0-9] throws away terms that are likely to be junk... if we remove that line, then all the RM3 results will change, then we need to verify all the effectiveness numbers, etc. I'd rather not do that...

Another choice is adding a condition like this:
if (len(doc) < threshold){
   // do not add doc to the RM3 candidate
}

This can also avoid the junk document in Wikipedia corpus. Good?

Yes, although that might also change regression results...
Why don't we just throw away all feature vectors with norm of 0?

Okay. That makes sense!

Can you run the regression experiments to make sure everything still works?
https://github.com/castorini/Anserini/blob/master/docs/regression-tuna.md

OKay!

no segments* file found in<EMAIL_ADDRESS>no segments* file found in<EMAIL_ADDRESS>no segments* file found in<EMAIL_ADDRESS>no segments* file found in<EMAIL_ADDRESS>
@lintool All regression tests passed except four index files not found above.

@lintool All regression test passed!

@Victor0118 great!
One final thing - can you add a comment that explains why we do that check in the code? Then we'll be good for merging.

@lintool Done.

How about a comment that is more descriptive? Like:
Avoids zero-length feedback documents, which causes division by zero when computing term weights.
Zero-length feedback documents occur (e.g., with CAR17) when a document has only terms that accents (which are indexed, but not selected for feedback).

@lintool Thanks for your kind suggestion. I have updated the comment.


CIVIL-1174 add proof api to gql

In the pr i also refactored the proof value of the content credential to be a slice

The change number is big cause gql gen i think


Create 0000-01-02-RyansProfile.md

no description provided

Still learning how to use github

layout: slide
title: "Welcome to our second slide!"
Your text
Use the left arrow to go back!

still learning github


Unable to use package with Next.js: ERR_REQUIRE_ESM

Describe the bug
When using this package with next.js (tested 10-12), it fails to build, producing the error ERR_REQUIRE_ESM. I have not found a configuration where this issue does not persist.
I have also tried adding a custom .babelrc with the stock configuration to disable compilation with SWC, but the issue persists.

Further Logs
Error [ERR_REQUIRE_ESM]: require() of ES Module<EMAIL_ADDRESS>from<EMAIL_ADDRESS>not supported.
Instead change the require of index.js in<EMAIL_ADDRESS>to a dynamic import() which is available in all CommonJS modules.

To Reproduce
Steps to reproduce the behavior:

Create a new next.js app using the cli
a. npx create-next-app@latest --typescript

Cd into the project folder and add this package to the project:
a. yarn add @primer/react react react-dom styled-components

Replace the contents of src/_app.tsx with the following:

Snippet
  import { ThemeProvider } from "@primer/react";
  import type { AppProps } from "next/app";
  import "../styles/globals.css";

  function MyApp({ Component, pageProps }: AppProps) {
      return (
          <ThemeProvider>
              <Component {...pageProps} />
          </ThemeProvider>
      );
  }

  export default MyApp;

Build the project with yarn build, observe console as it fails.

Expected behavior
Project builds successfully without errors.
Screenshots
N/A, refer to logs.
Desktop (please complete the following information):

OS: Ubuntu 20.04.3 LTS
Browser: N/A
Version: 34.1.0

Additional context

package.json
{
  "name": "ndocs",
  "private": true,
  "scripts": {
      "dev": "next dev",
      "build": "next build",
      "start": "next start",
      "lint": "next lint"
  },
  "dependencies": {
      "@primer/react": "^34.1.0",
      "next": "^12.0.7",
      "react": "17.0.2",
      "react-dom": "17.0.2",
      "styled-components": "^5.3.3"
  },
  "devDependencies": {
      "@types/node": "17.0.4",
      "@types/react": "17.0.38",
      "eslint": "8.5.0",
      "eslint-config-next": "12.0.7",
      "typescript": "4.5.4"
  }
}

I believe this has to do with an issue related to how Next.js imports modules.
A workaround would be to import components individually from the lib subfolder:
// using import syntax
import Box from '@primer/react/lib/Box'
import Flex from '@primer/react/lib/Flex'

Ah, I see. Thank you, this workaround works!

To anyone else who runs into this, I would also like to add that this error only occurs when an alternative package manager (such as yarn or pnpm) is used.
I tried this issue again using just npm as my package manager and the issue does not persist.

This issue was introduced in v34.0.1 of this library (just tested using v34.0.0`, and the issue does not persist.

This issue was introduced in v34.0.1 of this library (just tested using v34.0.0, and the issue does not persist.

Hi! Thanks for reporting this, will try to debug this with Next 👍

Can confirm this is related to https://github.com/primer/react/pull/1700

I can confirm this also happens on remix.run

Took a stab at this since it was relevant for https://github.com/primer/react/pull/1771
The core of the problem is that nextjs does not compile anything in node_modules. @primer/behaviors has only an esm bundle available.
Technically https://github.com/martpie/next-transpile-modules#readme should solve the problem but it still threw the same error.
So I built up @primer/behaviors in a similar manner to @primer/react in the linked PR. It seems to have solved the issue! 🍏
Next steps are to polish the PR and test it thoroughly to prevent any edge cases.


Make Nice Datepicker for Needs form

Replace with a React datepicker

Can you add a non dev description to this ticket so we can prioritize? @benjaminwood @kyleboe

Can this one be closed?

Yes, it'd done!


guildCreate event is not sending messages

so I tried guildCreate event when a bot joins a server it should send a message. i tried it multiple times and it works once but when i tried another one it wont work anymore.

Show me your code.

https://sourceb.in/ce95014ae5

Do you have any errors?
Because you don't check if the bot can send a message nor the channel exists, so there are multiple cases where your code would fail.

there is no error i even tried using a simple bot handler it works fine with it

Oh strange, if you add a console.log (or something similar) after channel is declared, does it log every time?

there is no error i even tried using a simple bot handler it works fine with it.

nvm i fixed it I jsut have to remove
client.on('guildCreate', guild => {
})

Oh yeah, I'm stupid, the handler makes sure that you don't need to put the client.on!


French sidebar on English locale

Describe the bug
French is used in the left sidebar on pypi.org even though I've chosen the English locale.
Expected behavior
The left sidebar is in English.
To Reproduce

Click English at the bottom of a pypi page.
See the green header "Locale updated" at the top.
Observe the terms "Statistiques", "Liens du projet", "Mainteneurs", etc. in the left sidebar.

My Platform
macOS; Google Chrome and Firefox
Additional context
I'll survive with the French terms. :)

Thanks for the report! This is a duplicate of https://github.com/pypa/warehouse/issues/6834.

Oops, thanks.


[RFC] Add Accelerator.is_available() interface requirement

🚀 Feature

Motivation
Such functionality on the Accelerator abstraction would:

Enable automatic hardware selection without duplicating code across Trainer & individual accelerator implementations.
Simplify the accelerator connector logic and rewrite effort: https://github.com/PyTorchLightning/pytorch-lightning/pull/11448
Enable automatic runtime checking of hardware availability during execution
Provide consistency with how the Trainer auto-detects the cluster environments natively supported by the framework. The corollary here is ClusterEnvironment.detect

https://github.com/PyTorchLightning/pytorch-lightning/blob/9e63281a4c4a62f32cad9801a23b63454f8311be/pytorch_lightning/plugins/environments/cluster_environment.py#L43-L46
https://github.com/PyTorchLightning/pytorch-lightning/blob/9e63281a4c4a62f32cad9801a23b63454f8311be/pytorch_lightning/trainer/connectors/accelerator_connector.py#L810-L812

Pitch
class Accelerator(ABC):

    @staticmethod
    @abstractmethod
    def is_available() -> bool:
        """Detect if the hardware is available."""

    def setup_environment(self, root_device: torch.device) -> None:
        """Setup any processes or distributed connections.
        This is called before the LightningModule/DataModule setup hook which allows the user to access the accelerator
        environment before setup is complete.
        Raises:
            RuntimeError:
                If corresponding hardware is not found.
        """
        if not self.is_available():
            raise RuntimeError(f"{self.__class__.__qualname__} is not configured to run on this hardware.")

class CPUAccelerator(Accelerator):
    @staticmethod
    def is_available() -> bool:
        """CPU is always available for execution."""
        return True

class GPUAccelerator(Accelerator):
   @staticmethod
    def is_available() -> bool:
        return torch.cuda.is_available() and torch.cuda.device_count > 0

and so on
See a more-detailed implementation here: https://github.com/PyTorchLightning/pytorch-lightning/pull/11797 for what this looks like in practice
To support Trainer(accelerator="auto") this is what the logic simplifies to:
for acc_cls in (GPUAccelerator, TPUAccelerator, IPUAccelerator, CPUAccelerator):
    if acc_cls.is_available():
        return acc_cls()
return CPUAccelerator() # fallback to CPU

this could be even further simplified if we offered an AcceleratorRegistry, such that the Trainer/AcceleratorConnector didn't need to hardcode the list of accelerators to detect:
for acc_cls in AcceleratorRegistry.impls:
    if acc_cls.is_available():
        return acc_cls()
return CPUAccelerator() # fallback to CPU

Alternatives
Some other alternatives exist here:
https://github.com/PyTorchLightning/pytorch-lightning/pull/11799
https://github.com/PyTorchLightning/pytorch-lightning/pull/11798
Issues with these approaches:

Also breaking changes: simply instantiating the accelerator could raise a runtime error if the device isn't available.
The bigger issue to me is that it does not ease support for Trainer(accelerator="auto"). The accelerator connector needs to hardcode & re-implement each of the device checks to determine which Accelerator to even instantiate.

Additional context

If you enjoy Lightning, check out our other projects! ⚡

Metrics: Machine learning metrics for distributed, scalable PyTorch applications.

Lite: enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.

Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

Bolts: Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.

Lightning Transformers: Flexible interface for high-performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.

cc @borda @tchaton @justusschock @awaelchli @akihironitta @rohitgr7

Looks great, I like this.

looks good!
one quick ques: why inside setup_environment here?
    def setup_environment(self, root_device: torch.device) -> None:
        """Setup any processes or distributed connections.
        This is called before the LightningModule/DataModule setup hook which allows the user to access the accelerator
        environment before setup is complete.
        Raises:
            RuntimeError:
                If corresponding hardware is not found.
        """
        if not self.is_available():
            raise RuntimeError(f"{self.__class__.__qualname__} is not configured to run on this hardware.")

and not inside init? I think we had a discussion regarding this in one of your PRs.

and not inside init? I think we had a discussion regarding this in one of your PRs.

@rohitgr7 great question. ultimately, the accelerator is mimicking torch device semantics.
PyTorch users today can create a torch.device("cuda") on a host without GPUs available without any error being raised.
An error only appears when someone tries to do CUDA operations, like moving the tensor to the device.
d = torch.device("cuda")  # this is fine
torch.tensor(0.0).to(d)  # this raises an error

To preserve this style, I don't raise an exception in init, and instead do it at setup_environment.
It also makes instantiating, mocking, and testing the different devices a lot easier to do

@ananthsub I see the reasons for that, but on the other hand I usually am in favor of raising errors as early as possible. And for testing we will probably have to mock the torch.cuda package anyways.
Not sure which one has more pros or cons, just wanted to mention this :)

@justusschock I agree, failing fast is very important.
To note:

This proposal would not affect the current logic inside of the Trainer's accelerator connector for validating that the specified hardware is in fact available at Trainer construction time.
And separately, we could move setup_environment to happen even sooner inside of Trainer._run: https://github.com/PyTorchLightning/pytorch-lightning/blob/b34d8673a9e77d25a826b7ada31d1204dfc818ab/pytorch_lightning/trainer/trainer.py#L1115

I'd argue that Strategy.setup_environment should happen before prepare_data, as currently other existing misconfiguration checks take place here that could happen sooner: https://github.com/PyTorchLightning/pytorch-lightning/blob/b34d8673a9e77d25a826b7ada31d1204dfc818ab/pytorch_lightning/accelerators/cpu.py#L28-L36

Makes sense

And separately, we could move setup_environment to happen even sooner inside of Trainer._run

Yes. Related but off-topic, there is a small misalignment in calling setup_environment() between ddp and ddp spawn #11073 but this can be easily resolved after #11643

Yeah make sense! We can call accelerator.is_available() when we init_accelerator() in accel_connector. I will modify the rewrite PR after these get merged

if we move setup_environmentup, will it be okay that self.device will be available for users inside prepare_data, configure_callbacks hooks?

if we move setup_environmentup, will it be okay that self.device will be available for users inside prepare_data, configure_callbacks hooks?

self.device would not be available because the module would not be moved to the device by then. setup_environment doesn't control this: model_to_device is what determines it.
But in general the environment setup should be the first thing that happens. This minimizes all control flow changes between processes created externally vs spawned by the trainer, as well as single process vs distributed training

oh! yeah sorry. I did a quick run... looks like it defaults to device('cpu')


Add #available checks for NSKeyedArchiver methods in tests

What's in this pull request?
Resolves 46702315

@swift-ci Please test macOS

@swift-ci Please smoke test Linux


Feature/add params to create

Priority
Yes, we needed to implement this to call some endpoints and reduce numbers of calling
What Changed & Why

Added params in the signature of create and update methods.
Make create or update requests with include params to get back related resources.

closed because I used the wrong branch


Move data to SyndeyInformaticsHub

Move this content https://github.com/kmarsyd/IntroHPCData/tree/main
to
https://github.com/Sydney-Informatics-Hub/

Done. https://github.com/Sydney-Informatics-Hub/IntroHPCData


On Chain Router

Background
Right now, we utilize skips hot routes as a make shift router to swap tokens during epoch. Skip lacks many routes (as it does not fit their specific use case), so we get tokens stuck in module accounts due to a lack of routes to swap through.
This is just one use case, there are plenty of other reasons why someone would want a basic router to get from token A to token B, without any advanced split routing / guarantees that it is the best route.
Suggested Design
https://github.com/osmosis-labs/osmosis/pull/6930
Acceptance Criteria
Router implemented and queryable, but not utilized in any stateful transactions.

Hey @czarcas7ic, I  was wondering what's left to implement ( based on work on #6930 )  it's just to review a comments and make relevant requested changes or there is something more involving in terms of logic it self?

I think its just a matter of having the time to open again with full proper tests. The primary concern with this feature is ensuring it is performant (i.e. benchmarking the toll this takes on epoch, as well as benching the query itself)
I think its not far off from where it needs to be, its just there are currently other priorities that are higher than this feature, but this feature is still important.
Not sure if you are mentioning because you want to give it a try, if so, feel free to cherry-pick and pick up work from where it was left off.
Its currently sitting at number 3 in my queue of features to work on.

Got it, thanks! I was considering picking this up, however I have already started work on other task. Let me ping you in case I manage to get back to this one.


Add Register Page

Add Register hyperlink in the homepage, which will redirect to Registration Page which you have to design.

/assign this issue to me .

@smily31 Go ahead, Good Luck!

I have used the same theme as that of Login so that it does not mismatch .
Is it fine to make a PR?

@ishitakapoor26 can I work on this issue if it is not closed?

please assign this issue to me

@dayanand-g go ahead!
Good Luck!

can I work on this issue?


Documentation paragraph 3.5 "Unknown reference" unclear

The documentation should list in the description of the validation which message types specify one or more references that should be validated.
The documentation should list per message type which fields are references that should be validated.
The documentation should clearly specify per message type field that holds a reference, to which field of which message type it refers in order to implement the validation.

Add to specification which rejection reasons are applicable to which messages.

Fixed in PR !87


How to use geocoder

Hi friends,
How can I use Geocoder gem into neo4jrb, because it depends directly from Active record?
Paolo

You can't. It relies on spatial algorithms built into Postgres and other SQL servers. You can try out https://github.com/neo4jrb/neo4jrb_spatial with the Neo4j Spatial plugin.


Only captures stdout

Maybe I haven't found the way how to do this internally, but it certainly is a bit puzzling. When a command executed with exec.send_command("ls -al").unwrap(); like in the exec example succeeds, the send_command() will return the Result containing output.
However, if it doesn't succeed on the remote machine, the remote will print the error to stderr. For most commands at least. Then the returned value from send_command() will still be Ok() but without any contained data.
I mitigated this with 2>&1 after every command to redirect stderr it to stdout on the remote machine. But I wonder if this shouldn't be built in.

Hi @Schievel1 ,
Please use the latest main branch instead of the release package.
Put
[dependencies]
ssh-rs = { git = "https://github.com/1148118271/ssh-rs" }

Or
[dependencies]
ssh-rs = { git = "https://github.com/1148118271/ssh-rs" , rev = "0e85a0455e3d8defe142c146fdeed7d5de745d9b" }

In your Cargo.toml
BRs.

Fixed by #71


Visual world tracking for each tracking

Everyone seems to stick to English, I will have to do it as well.
It would be nice to have an option, where Edit/Remove options are, to open a world map and then draw lines where the parcel/package was. The line could be animated or not. The engine will have to parse the text presented for the selected tracking. It can or may be not accurate because some points may not present a full location. Like a parcel being at Cacesa but Cacesa has multiple facilites, it will point at middle of Spain. Yes, I am aware it is hard to achieve but with time, it will be made.

Hi @moonlightz 😃 ,
That's a cool feature, as you highlighted it's prone to errors since the carrier states might not provide accurate information about the location. I'll keep it on the whishlist, we have other priority features that we want to implement first, notifications for example.


Add a devcontainer to this repo to support CodeSpaces

It would be great if a user could launch a codespace on this repo to test out prompty in a controlled environment. It could support the following use cases:
Quick test with an Azure OPENAI endpoint already deployed:

Launch CodeSpace on this repo
In VS code, right-click and choose "New Prompty" to create basic.prompty
Update the azure_deployment: field in basic.prompty with the endpoint of the deployed Azure OpenAI service
Click "run" button in basic.prompty to see output
Open terminal, execute prompty -s basic.prompty to see output.

Deploy an Azure OPENAI endpoint and test

Launch CodeSpace on this repo
Open terminal and:

azd login --use-device-code to log into a subscription
azd up to deploy a gpt-4o endpoint (and set the AZURE_OPENAI_ENDPOINT environment variable)

In VS code, right-click and choose "New Prompty" to create basic.prompty
Update the azure_deployment: field in basic.prompty with the endpoint called "gpt-4o"
Click "run" button in basic.prompty to see output
Open terminal, execute prompty -s basic.prompty to see output.

The devcontainer would need to be based on a Python3 image and install:

Python package prompty[azure]
VS Code extension prompty

It would also be good to configure the basic.prompty file created by New Prompty to use a GitHub Models endpoint, as a free endpoint that anyone can create.

In general this repo represents the actual runtime code as well as the website. It is not intended as a sample on how to use prompty. The latest extension allows for quick creation of prompty files directly from GitHub models now. Hope this helps!


Models load each time ImageInput component is rendered

The ONNX and TensorFlow.js models are being reloaded each time the ImageInput components are rendered. For example, when you toggle the dark/light theme, the ImageInput component is refreshed which forces the models to be loaded again. We may want to consider decoupling the models from the components.

This issue appears to be resolved with (https://github.com/airicbear/cis-4496-project/pull/74).


Correct documentation around goog.userAgent.product.ANDROID, CHROME.

Add some tests with modern browsers' useragent strings.

Given where the browsers are, it may make sense to add goog.userAgent.product.CHROMIUM and deprecate goog.userAgent.product.CHROME = CHROMIUM. Developers would care whether it is based on Chromium 99.9% of the time, not whether it is Google Chrome.
In addition to Android WebViews, Opera on Linux, Windows, OSX and Android is based in Chromium.
If something like that will be accepted, I may be able to contribute that.

no CLA found, which is necessary before anyone looks at this:
https://github.com/google/closure-library/blob/master/CONTRIBUTING

Thanks for discovering this, but this should have been closed by now. I submitted this internally a while ago per request from the team.


Missing features - working sudo ssh  to everything from the install-node

Reported by Ulf

Some clarification:
On an FGI cluster one can run "sudo ssh cn1" and get root.
This is accomplished with a password-less ssh-key in /root/.ssh on the install node.
Should the key be password less also in FGCI?
@tiggi

On 2015-12-15 08:19, Johan Guldmyr wrote:

Some clarification:
On an FGI cluster one can run "sudo ssh cn1" and get root.
This is accomplished with a password-less ssh-key in /root/.ssh on the
install node.

Yes. It helps maintenance a lot.
--
Ulf Tigerstedt || Senior systems specialist
CSC Oy || NeIC NT1 / NDGF GSM +358503818558
Johannesbergsvägen 17 || Närpes || Finland

UEF has via support brought up adding keys to the root user.
This is now possible by adding variable(hash) admin_root_keys. See roles/ansible-role-users/default/main.yml or this page:
https://github.com/CSC-IT-Center-for-Science/ansible-role-users/blob/master/defaults/main.yml#L13-L15
The ansible-role-users is currently only applied in admin and install.yml playbooks.


when does Graceful shutdown happens?

I have a script which many a times exits when an error is encountered.
Have it on using forever service, Found that the service status is stopped, many a times.
is that something to do with graceful shutdown?
btw I have a node program  with error, installed as a service and there I do not see the service status as stopped.

I would advise you to look at your node app code and debug why it exits. This has nothing to do with graceful shutdown, graceful shutdown only ensures that services get a chance to do cleanup on request for stopping them.

Thanks for the answer. What could be the cases when the service could stop automatically ?

Not sure if this should be asked here but how would I shutdown a service after it's installed? For example I do forever-service install my_app --script main.js. Now how do I stop and start that app manually?