guess var_info for no_bs_start_match2 compilation errors

Given some code like the following:
trim_leading_dash1(<<$-, Rest/binary>>) -> trim_leading_dash1(Rest);
trim_leading_dash1(Binary)              -> Binary.

The compiler will add an annotation for the {x,0} register
{'%',{var_info,{x,0},[accepts_match_context]}}.

This annotation is not available in the disasm, so when we recompile
this function, the compiler gives an error.
This change detects which x-register should accept the match context
by peeking the first instruction after the entrypoint label. This
instruction can either be a {test,bs_start_match3,..} instruction or
bs_start_match4 (if the compiler can determine that the function will
always be passed a binary), both of which contain the register
which will be matched.
closes #44
see also #36

Pull Request Test Coverage Report for Build 306

-1 of 12 (91.67%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.4%) to 85.039%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/khepri_fun.erl
11
12
91.67%

Files with Coverage Reduction
New Missed Lines
%

src/khepri_fun.erl
1
92.27%

Totals

Change from base Build 300:
-0.4%

Covered Lines:
1313

Relevant Lines:
1544

💛  - Coveralls

It looks like are_comments_conflicting/2 might need an update, I think you can combine type information about a variable with the accepts_match_context annotation and still have a successful compile

Thank you for the patch! It looks good to me.

It looks like are_comments_conflicting/2 might need an update, I think you can combine type information about a variable with the accepts_match_context annotation and still have a successful compile

Yes, are_comments_conflicting/2 is overly conservative to catch real examples of conflicts which I didn't get so far. Do you know what erlc -S would emit in this case? I suppose that it combines all properties in the list of a single {var_info, {x,0}, [...]}, but I just want to make sure it doesn't emit multiple var_info for a single register.

Where I ran into it, I think I tried having two var_infos for the same register in separate back-to-back instructions and I think that compiled. I'll try to dig up a good example...

Looks like erlc -S groups together accepts_match_context and typing information:
{'%',{var_info,{x,0},[{type,{t_bs_context,1,0,0}},accepts_match_context]}}.

No worries, I'm not in a rush :)
I stumbled on some more var-info related validation failures and I have a big refactor I haven't been able to format as a nice PR yet. I'm curious to hear y'all's thoughts on this approach. I changed pass2_process_instruction/2 into  pass2_process_instructions/3 which recurses over the functions instead of being lists:map'ed. Then I have a few new clauses that try to preempt annotations like
pass2_process_instructions(
  [{get_tuple_element, Src, Element, _Dst} = Instruction | Rest],
  State,
  Result) ->
    VarInfo = {var_info, Src, [{type, {t_tuple, Element + 1, false, #{}}}]},
    Comment = {'%', VarInfo},
    pass2_process_instructions(Rest, State, [Instruction, Comment | Result]);
pass2_process_instructions(
  [{get_map_elements, _Fail, Src, {list, _}} = Instruction | Rest],
  State,
  Result) ->
    Instruction = replace_label(Instruction, 2, State),
    VarInfo = {var_info, Src, [{type, {t_map, any, any}}]},
    Comment = {'%', VarInfo},
    pass2_process_instructions(Rest, State, [Instruction, Comment | Result]);
pass2_process_instructions(
  [{put_map_assoc, _Fail, Src, _Dst, _Live, {list, _}} = Instruction | Rest],
  State,
  Result) ->
    VarInfo = {var_info, Src, [{type, {t_map, any, any}}]},
    Comment = {'%', VarInfo},
    pass2_process_instructions(Rest, State, [Instruction, Comment | Result]);
pass2_process_instructions(
  [{bs_start_match4, _Fail, _, Var, Var} = Instruction | Rest],
  State,
  Result) ->
    VarInfo = {var_info, Var, [accepts_match_context]},
    Comment = {'%', VarInfo},
    pass2_process_instructions(Rest, State, [Instruction, Comment | Result]);
pass2_process_instructions(
  [{test, bs_start_match3, _Fail, _, [Src], _Dst} = Instruction | Rest],
  State,
  Result) ->
    Instruction = replace_label(Instruction, 3, State),
    VarInfo = {var_info, Var, [accepts_match_context]},
    Comment = {'%', VarInfo},
    pass2_process_instructions(Rest, State, [Instruction, Comment | Result]);
%% ... Rest of pass2_process_instruction/2 clauses ...
pass2_process_instructions([], _State, Result) ->
    lists:reverse(Result).

This preempts most of the beam_validator errors but some more will come up, so I have a third pass for dealing with beam_validator:
validate_asm(Asm) ->
    case beam_validator:validate(Asm, weak) of
        ok ->
            Asm;
        {error, [{_GeneratedModuleName, ValidationFailures}]} ->
            fix_validation_failures(Asm, ValidationFailures)
    end.

And then I have some very ugly code in fix_validation_failures/2 that lists:foldl/3 over the failures and fixes two cases so far:
%% First: this case fails in functions that call a function that accepts
%% a binary match but doesn't have the `accepts_match_context' annotation
{_FailingFun, {{Call, Arity, {f, Label}}, _, no_bs_start_match2}
%% Fixed by scanning the Functions in Asm to the one with an entry label
%% matching Label and inserting
{'%', {var_info, {x, 0}, [accepts_match_context]}}
%% With an added TODO that the register is hard-coded and needs to be
%% determined somehow, and also that this validation failure shows up once
%% per caller, which means we could add many annotations where we only need
%% one.

%% Second: some binary matches also need type information, so this matches
%% the validation failure:
{{_Module, Name, Arity} = _FailingFun,
 {{bs_start_match_4, _Fail, _, Var, Var} = Instruction,
  _,
  {bad_type, {needed, Needed}, {actual, _Actual}}}
%% Which we fix by scanning to the function with that Name and Arity in Asm
%% and merging in this annotation before ^Instruction
{'%', {var_info, Var, [{type, Needed}]}}
%% And I say merging because usually there's already an annotation for that
%% variable with `accepts_match_context'.

f y'all think this is a good approach, I can try to clean up my changes and make a PR. What do you think, is it unadvised to call out to beam_validator:validate/2 directly like this?

Another question: could we end up with multiple var_info added for the same register in the middle of a function body, if e.g. there is another get_tuple_element instruction?
Do you plan to add some kind of clean-up phase where % comments are moved back to the beginning of the function and possibly merged if there are multiple entries for the same register?
I don't know if the compiler is strict on where those % comments can appear.

Makes sense about beam_validator vs. beam_disasm :+1:. I think the compiler propagates up the {_, beam_validator, ValidationFailure} (in erl 23: {beam_validator, ValidationFailure}) from that call to beam_validator:validate/2 when compile:forms/2 errors out. Seems wise to match on the output of compile:forms/2 rather than beam_validator:validate/2.
With respect to the placement of %s: it seems like the compiler is very permissive, annotations don't need to follow a label and you can even have a {'%',{var_info,[accepts_match_context]}} followed by type info like {'%',{var_info,[{type,{t_bs_context,1,0,0}}]}} and as far as I can tell, the compiler is merging them.
Actually the reason I wanted to add annotations in pass2_process_instructions/3 is that I noticed a beam_validator failure where it needed an annotation following a label after entry-point of the function. I've got an example around here somewhere...

Ok sorry for the huge code blocks here :sweat_smile:. Here's an excerpt I translated from the Elixir Decimal library:
deci.erl
-module(deci).

-export([context/1, parse/1]).

do_precision(Sign, Digits, NumDigits, Exp1,
             Precision, Rounding) ->
    Precision2 = erlang:min(NumDigits, Precision),
    {Signif1, Remain1} = lists:split(Precision2,
                                         Digits),
    Signif2 = case 'increment?'(Rounding,
                                  Sign,
                                  Signif1,
                                  Remain1)
                    of
                    A when A =:= false orelse A =:= nil -> Signif1;
                    _ -> digits_increment(Signif1)
                end,
    Signals = case any_nonzero(Remain1) of
                     B when B =:= false orelse B =:= nil -> [rounded];
                     _ -> [inexact, rounded]
                 end,
    Exp2 = Exp1 + erlang:length(Remain1),
    Coef1 = digits_to_integer(Signif2),
    Dec = #{'__struct__' => 'Elixir.Decimal',
               sign => Sign, coef => Coef1, exp => Exp2},
    {Dec, Signals}.

'increment?'(_, _, _, []) -> false;
'increment?'(down, _, _, _) -> false;
'increment?'(up, _, _, _) -> true;
'increment?'(ceiling, Sign, _, Remain) ->
    case Sign == 1 of
        false -> false;
        true -> any_nonzero(Remain)
    end;
'increment?'(floor, Sign, _, Remain) ->
    case Sign == -1 of
        false -> false;
        true -> any_nonzero(Remain)
    end;
'increment?'(half_up, _, _, [Digit1 | _]) ->
    Digit1 >= 53;
'increment?'(half_even, _, [], [53 | Rest1]) ->
    any_nonzero(Rest1);
'increment?'(half_even, _, Signif1, [53 | Rest1]) ->
    case any_nonzero(Rest1) of
        false -> lists:last(Signif1) rem 2 == 1;
        true -> true;
        A -> erlang:error({badbool, 'or', A})
    end;
'increment?'(half_even, _, _, [Digit1 | _]) ->
    Digit1 > 53;
'increment?'(half_down, _, _, [Digit1 | Rest1]) ->
    case Digit1 > 53 of
        false ->
            case Digit1 == 53 of
                false -> false;
                true -> any_nonzero(Rest1)
            end;
        true -> true
    end.

any_nonzero(Digits) ->
    lists:any(fun (Digit1) -> Digit1 /= 48 end,
              Digits).

digits_to_integer([]) -> 0;
digits_to_integer(Digits1) ->
    erlang:list_to_integer(Digits1).

digits_increment(Digits1) ->
    digits_increment(lists:reverse(Digits1), []).
digits_increment([57 | Rest1], Acc1) ->
    digits_increment(Rest1, [48 | Acc1]);
digits_increment([Head1 | Rest1], Acc1) ->
    lists:reverse(Rest1, [Head1 + 1 | Acc1]);
digits_increment([], Acc1) -> [49 | Acc1].

precision(#{'__struct__' := 'Elixir.Decimal',
            coef := 'NaN'} =
              Num1,
          _Precision1, _Rounding1) ->
    {Num1, []};
precision(#{'__struct__' := 'Elixir.Decimal',
            coef := inf} =
              Num1,
          _Precision1, _Rounding1) ->
    {Num1, []};
precision(#{'__struct__' := 'Elixir.Decimal',
            sign := Sign1, coef := Coef1, exp := Exp1} =
              Num1,
          Precision1, Rounding1) ->
    Digits1 = erlang:integer_to_list(Coef1),
    _numDigits1 = erlang:length(Digits1),
    case _numDigits1 > Precision1 of
        false -> {Num1, []};
        true ->
            do_precision(Sign1,
                         Digits1,
                         _numDigits1,
                         Exp1,
                         Precision1,
                         Rounding1)
    end.

context(A) -> context(A, []).

context(Num1, Signals1) ->
    Context1 = 'Elixir.Decimal.Context':get(),
    {Result1, PrecSignals1} = precision(Num1,
                                             case Context1 of
                                                 #{precision := A} -> A;
                                                 A when erlang:is_map(A) ->
                                                     erlang:error({badkey,
                                                                   precision,
                                                                   A});
                                                 A -> A:precision()
                                             end,
                                             case Context1 of
                                                 #{rounding := B} -> B;
                                                 B when erlang:is_map(B) ->
                                                     erlang:error({badkey,
                                                                   rounding,
                                                                   B});
                                                 B -> B:rounding()
                                             end),
    begin
        C = Context1,
        D = put_uniq(Signals1, PrecSignals1),
        E = nil,
        F = Result1,
        case handle_error(D, E, F, C) of
            {ok, G} -> G;
            {error, H} ->
                erlang:error('Elixir.Decimal.Error':exception(H))
        end
    end.

put_uniq(List1, Elems1)
    when erlang:is_list(Elems1) ->
    'Elixir.Enum':reduce(Elems1,
                         List1,
                         fun (A, B) -> put_uniq(A, B) end);
put_uniq(List1, Elem1) ->
    case 'Elixir.Enum':'member?'(List1, Elem1) of
        A when A =:= false orelse A =:= nil ->
            [Elem1 | List1];
        _ -> List1
    end.

handle_error(Signals1, Reason1, Result1,
             Context1) ->
    Context2 = case Context1 of
                     A when A =:= false orelse A =:= nil ->
                         'Elixir.Decimal.Context':get();
                     B -> B
                 end,
    Signals2 = 'Elixir.List':wrap(Signals1),
    Flags1 = 'Elixir.Enum':reduce(Signals2,
                                    case Context2 of
                                        #{flags := C} -> C;
                                        C when erlang:is_map(C) ->
                                            erlang:error({badkey, flags, C});
                                        C -> C:flags()
                                    end,
                                    fun (D, E) -> put_uniq(E, D) end),
    'Elixir.Decimal.Context':set(Context2#{flags :=
                                                 Flags1}),
    ErrorSignal1 = 'Elixir.Enum':find(Signals2,
                                         fun (F) ->
                                                 'Elixir.Enum':'member?'(case
                                                                             Context2
                                                                             of
                                                                             #{traps
                                                                                :=
                                                                                G} ->
                                                                                G;
                                                                             G
                                                                                when
                                                                                erlang:is_map(G) ->
                                                                                erlang:error({badkey,
                                                                                traps,
                                                                                G});
                                                                             G ->
                                                                                G:traps()
                                                                         end,
                                                                         F)
                                         end),
    case ErrorSignal1 of
        H when H =:= false orelse H =:= nil ->
            {ok, Result1};
        _ ->
            Error1 = [{signal, ErrorSignal1},
                        {reason, Reason1}],
            {error, Error1}
    end.

parse(<<"+", Rest1/binary>>) -> parse_unsign(Rest1);
parse(<<"-", Rest1/binary>>) ->
    case parse_unsign(Rest1) of
        {#{'__struct__' := 'Elixir.Decimal'} = Num1,
         Rest2} ->
            {Num1#{sign := -1}, Rest2};
        error -> error
    end;
parse(Binary1) when erlang:is_binary(Binary1) ->
    parse_unsign(Binary1).

parse_digits(Bin1) -> parse_digits(Bin1, []).

parse_digits(<<Digit1/integer, Rest1/binary>>,
             Acc1)
    when erlang:is_integer(Digit1) andalso
             Digit1 >= 48 andalso Digit1 =< 57 ->
    parse_digits(Rest1, [Digit1 | Acc1]);
parse_digits(Rest1, Acc1) ->
    {lists:reverse(Acc1), Rest1}.

parse_exp(<<E1/integer, Rest1/binary>>)
    when E1 =:= 101 orelse E1 =:= 69 ->
    case Rest1 of
        <<Sign1/integer, Rest2/binary>>
            when Sign1 =:= 43 orelse Sign1 =:= 45 ->
            {Digits1, Rest3} = parse_digits(Rest2),
            {[Sign1 | Digits1], Rest3};
        _ -> parse_digits(Rest1)
    end;
parse_exp(Bin1) -> {[], Bin1}.

parse_float(<<".", Rest1/binary>>) ->
    parse_digits(Rest1);
parse_float(Bin1) -> {[], Bin1}.

parse_unsign(<<First1/integer, Remainder1:7/binary,
               Rest1/binary>>)
    when First1 =:= 105 orelse First1 =:= 73 ->
    case 'Elixir.String':downcase(Remainder1) ==
             <<"nfinity">>
        of
        false -> error;
        true ->
            {#{'__struct__' => 'Elixir.Decimal', exp => 0,
               sign => 1, coef => inf},
             Rest1}
    end;
parse_unsign(<<First1/integer, Remainder1:2/binary,
               Rest1/binary>>)
    when First1 =:= 105 orelse First1 =:= 73 ->
    case 'Elixir.String':downcase(Remainder1) == <<"nf">>
        of
        false -> error;
        true ->
            {#{'__struct__' => 'Elixir.Decimal', exp => 0,
               sign => 1, coef => inf},
             Rest1}
    end;
parse_unsign(<<First1/integer, Remainder1:2/binary,
               Rest1/binary>>)
    when First1 =:= 110 orelse First1 =:= 78 ->
    case 'Elixir.String':downcase(Remainder1) == <<"an">>
        of
        false -> error;
        true ->
            {#{'__struct__' => 'Elixir.Decimal', exp => 0,
               sign => 1, coef => 'NaN'},
             Rest1}
    end;
parse_unsign(Bin1) ->
    {Int1, Rest1} = parse_digits(Bin1),
    {Float1, Rest2} = parse_float(Rest1),
    {Exp1, Rest3} = parse_exp(Rest2),
    case case Int1 == [] of
             false -> false;
             true -> Float1 == []
         end
        of
        false ->
            Int2 = case Int1 == [] of
                         false -> Int1;
                         true -> [48]
                     end,
            Exp2 = case Exp1 == [] of
                         false -> Exp1;
                         true -> [48]
                     end,
            Number1 = #{'__struct__' => 'Elixir.Decimal',
                          sign => 1,
                          coef =>
                              erlang:list_to_integer(erlang:'++'(Int2,
                                                                 Float1)),
                          exp =>
                              erlang:list_to_integer(Exp2) -
                                  erlang:length(Float1)},
            {Number1, Rest3};
        true -> error
    end.

If you scroll down to label 92 for example, there are some annotations that are needed for the get_tuple_element but that's all under a label that isn't the function's entrypoint. With pass2_process_functions/3 as I have it, that comes out to
{'%',{var_info,{x,0}, [{type,t_tuple,1,false,#{}}]}}.
{get_tuple_element,{x,0},0,{y,2}}.
{'%',{var_info,{x,0}, [{type,t_tuple,2,false,#{}}]}}.
{get_tuple_element,{x,0},1,{x,0}}.

But those annotations are good enough to satisfy the validator.

I have a change in progress now for adding some annotations in pass1_process_instruction/3: b3cdd95. It took away all the coverage on the error path of compile:forms/2 though, so I haven't added it here yet - I'd like to figure out some test cases first.

Nice job! I'm looking forward to see the end result :-)


Logs: Download Robot Logs

As a Run App user, I would like to be able to download my robot's logs from the Run App.
Acceptance Criteria

User able to download logs from robot settings page

Implementation Notes

Dependent on #1349

Design

TBD

Duplicate of #1727


Fails to detect Amazon Kindle Fire Tablets

Amazon Kindle Fire tablets are detected as Desktop Landscape

@bgfeldm Can you share a User Agent string?

Hi - Amazon's Fire devices use Silk browser so the UA detection should look for 'silk'
Some good info here:
Amazon Silk User Agent Strings
http://docs.aws.amazon.com/silk/latest/developerguide/user-agent.html
User Agent Strings for Fire Tablets
https://developer.amazon.com/public/solutions/devices/fire-tablets/specifications/04-user-agent-strings


Fix typo in thinking in jax colab notebook url.

one char typo fix.

The same change is required in the associated markdown file to make the test pass.

Done / updated. Thanks @jakevdp !


fix: affinity config

I found that there is a problem with the affinity part. When I modify this part, it cannot be run helm install on k8s. So, I correct it, please feel free to review it.

@nature1995 thanks!


[INVERSE_FUNCTION_PREFERRED] should not replace !ClosedRange.isEmpty()

Describe the bug
Given the following code:
val range: ClosedRange<Int> = 0..1
check(!range.isEmpty())

Diktat suggests replacing this with the nonexistent ClosedRange.isNotEmpty() function:
[INVERSE_FUNCTION_PREFERRED] it is better to use inverse function: isNotEmpty() instead of !isEmpty() (diktat-ruleset:inverse-method)

Expected behavior
Rule should not be triggered when the isNotEmpty function does not exist.
 We will fix it.
But actually strange that they did not implement isNotEmpty() function, may be need to contribute to the stdlib 🤔

As a quick workaround you can use @Suppress("INVERSE_FUNCTION_PREFERRED")


docs(DEVELOPER): add rust dependencies for build atc-router

Summary

When building Kong from source, if we choose to build atc-router, then we need the rust dependency.
Checklist

[ ] The Pull Request has tests
[ ] There's an entry in the CHANGELOG
[ ] There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Full changelog

[Implement ...]

Issue reference

Fix #[issue number]

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


[Issue] Constantly increasing numbers for N of N completed

[X] Make sure you've installed the latest version using instructions in the wiki

Output from azd version
Run azd version and copy and paste the output here:
azd version 0.4.0-beta.1 (commit 2bf7a529914d86d8e9f5d7b6f95a4f20a2351e01)

Output from az version
Run az version and copy and paste the output here (minimum required version is 2.38.0):
{
  "azure-cli": "2.40.0",
  "azure-cli-core": "2.40.0",
  "azure-cli-telemetry": "1.0.8",
  "extensions": {
    "containerapp": "0.3.11",
    "containerapp-compose": "0.2.2"
  }
}

Describe the bug
When azd is provisioning resources, it reports N of ~N completed, but ~N constantly increases. It seems like it'd be better to just not report ~N, if it's unknowable?
Screenshots from one session:

To Reproduce
I believe I've seen this on every azd up.

git clone https://github.com/pamelafox/msdocs-django-postgresql-sample-app-azd/
Run azd up

Expected behavior
I expect to see a constant denominator.
Environment
Information on your environment: Mac OS X Ventura M1
VS Code
Version: 1.72.2 (Universal)
Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075
Date: 2022-10-12T22:16:30.254Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.1.0
Sandboxed: No
Additional context
I imagine the team is aware of this, but I couldn't find a related issue in the tracker.

@weikanglim @ellismg remember we having a similar request to show the total # of resources being provisioned upfront?

maybe there is a limitation on the ARM APIs to provide us deterministic set of resources being provisioned upfront and we get updated results from ARM. Will let the team chime-in
@weikanglim @ellismg @jongio

@rajeshkamal5050 The current way of how the progress it shown is indeed non-deterministic at provision time.
The way Azure provisioning works through ARM is that the client submits an ARM template JSON (which can be compiled from a Bicep template), and Azure will return a deployment. As the template is further evaluated, the deployment's state changes. We currently poll the deployment's state to get the number of resources being provisioned, and number of resources provisioned.
I don't think we can get a number of resources upfront that is also accurate given that the ARM template requires evaluation, and this evaluation itself could depend on querying other Azure resources that exist.

Hm, have you considered just not showing a number, versus showing the ever changing numbers? Currently, it feels buggy (for me at least), and doesn't seem to provide much information since it keeps changing.

@pamelafox with the new UX updates. This issue is not applicable anymore. Closing this.


WebKitFormBoundary with grape not work(postman)

I use postman to test api, it send WebKitFormBoundary data with form-data content-type.
But grape cannot recognize

Can you provide some detail, maybe a curl repro or test or example? Usually a POST gets parsed by Rack::Utils::Multipart and this looks like multipart form data.

I use Postman for api test

and this following request is catch from Charles(a web debug proxy)
POST /api/v1/topic HTTP/1.1
Host: localhost:3000
Content-Length: 147
Cache-Control: no-cache
Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop
Content-Type: multipart/form-data
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
Postman-Token: cea8c580-15da-3602-c6df-7cad170c5175
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2,ja;q=0.2

------WebKitFormBoundaryg8BnIGABK4VLD2Be
Content-Disposition: form-data; name="title"

12312321312
------WebKitFormBoundaryg8BnIGABK4VLD2Be--

Notice the WebKitFormBoundaryg8BnIGABK4VLD2Be, this maybe mean request is from webkit browser.

You should write a spec for this in Grape next. I think we want to support this out of the box.

@TangMonk I'm trying to reproduce it, but I can't. I have tried to reproduce it with a minimal grape app:
class Example < Grape::API

  resource :test do
    params do
      requires :title, type: String
    end
    post :la do
      params[:title]
    end
  end
end

I'm sending a post request with postman:
POST /test/la HTTP/1.1
Host: localhost:9292
Cache-Control: no-cache
Postman-Token: 01dea549-fbe1-ee26-fd9f-b5d6ebba57f2
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="title"

Another title
----WebKitFormBoundary7MA4YWxkTrZu0gW

But I get a 201 (as expected):
::1 - - [20/Sep/2015:11:48:34 +0200] "POST /test/la HTTP/1.1" 201 13 0.0328

and the title in the response.
If you compare both requests, yours and mine, you can see one important difference:
Yours:
Content-Type: multipart/form-data

Mine:
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

The boundary parameter is what the server uses to split the parameters in a multipart/form-data, you can see a good explanation here: http://stackoverflow.com/questions/3508338/what-is-the-boundary-in-multipart-form-data, and WebKitFormBoundary is just a name (and by the way, postman uses chrome).
So the problem seems to be that your postman is missing the boundary param, could you check the postman version, or any headers or settings you may have changed?

@dblock could you remove the feature request tag, please?

@towanda, I figure it out, I just add content type manually to postman

Thanks

Thanks for jumping in @towanda.


Turtorial tensorflow addons version mismatch

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):colab
TensorFlow version and how it was installed (source or binary):binary
TensorFlow-Addons version and how it was installed (source or binary):binary
Python version:3.7
Is GPU used? (yes/no):yes

Describe the bug
Default tensorflow-addons in turtorial is 0.8.3 with tensorflow==2.2.0
A clear and concise description of what the bug is.
The tensorflow-addons version should >= 0.9.1 according to https://github.com/tensorflow/addons#c-custom-op-compatibility
Code to reproduce the issue
https://www.tensorflow.org/addons/tutorials/tqdm_progress_bar
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Waiting on: https://github.com/googlecolab/colabtools/issues/1243

Closing since new issue is filed to fix this:
https://github.com/tensorflow/addons/issues/2124


This kafka path was wrong

@proteusvacuum
You can see the correct path being used (hardcoded) here:
https://github.com/dimagi/commcarehq-ansible/blob/master/ansible/roles/kafka/files/kafka.sh#L2-L2

:+1: Should this be a variable instead? {{kafka_path}} that is used in both places?

It could be, but I don't expect it to change.


slickPause and slickPlay Do Nothing with AutoPlay

I have Slick version 1.3.15.  When I use the slickPause and slickPlay functions, nothing changes.  My slides still switch once every few moments when it should be paused.

I need a jsFiddle


Feats: Individual plot-Joshuia

Individual plot by Joshua

The plot to create the histogram for a specific country is here.

Let me know if any changes need to be made!


feat(gi): added FilterWith, MapWith, FindWith, FoldWith, etc.

Added to gi and sub-packages:

FilterWith
FindWith
FoldWith
FoldPackWith
MapWith
ReduceWith

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (5dcf657) to head (17c1132).

Additional details and impacted files
@@            Coverage Diff             @@
##              main       #44    +/-   ##
==========================================
  Coverage   100.00%   100.00%
==========================================
  Files           73         3    -70
  Lines         1100       248   -852
==========================================
- Hits          1100       248   -852

Flag
Coverage Δ

gi
?

optional
100.00% <ø> (ø)

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

coverage: 100.0%. remained the same
when pulling 17c11325b054bc13380c36fe8b1427f5b5e8e819 on feature/gi-2
into 5dcf657a4a2ca87f2f6798914ebeea40205f9657 on main.


Add unified language server support

Adds Unified Language Server for markdown and text files.
I had to make two entries: unified_language_server_md and unified_language_server_txt due to it having different arguments depending on what you want to check.
I ran the linters with success but had to manually generate the docs because the script would change way too many things.

You dont need to generate the docs with these commits (in fact, don't). You can modify cmd at runtime with on_new_config (or perhaps one of the other hooks), to avoid having duplicate entries like this.

You dont need to generate the docs with these commits (in fact, don't). You can modify cmd at runtime with on_new_config (or perhaps one of the other hooks), to avoid having duplicate entries like this.

I'll try what you mention and re-activate the pr later!


[SYSTEM]:

Discord Username
Lars Tore#5287
System
Starfinder 1e
Notes on the Support
Is it possible to make this for Starfinder also?

Should be possible, but implementation and further investigation will be made in the future, currently only some systems will be supported (porting to other systems require considerable amounts of time). I will update this issue with news when I get back to it.
Thanks for reaching out!


Added resources for learning Git

Added resources for learning Git

Sorry, I accidentally mixed this with old (unfinished) commits. I'm going to delete this branch and re-do


OLM E2E Tests on Openshift

Problem Statement
Our existing integration and E2E tests cover a basic deployment using flat kustomize, but do not cover a full OLM installation.
The purpose of this task is to add E2E tests that verify OLM deployment in a full Openshift environment.
Prerequisites

[ ] https://github.com/Kong/kubernetes-testing-framework/issues/283

Acceptance Criteria

[ ] E2E tests now deploy the full OLM based installation of the Gateway Operator on openshift

Duplicate of https://github.com/Kong/gateway-operator/issues/60


error AL0999: Internal error: 'One or more errors occurred.', Stack trace=unknown Error: The package could not be created.

error AL0999: Internal error: 'One or more errors occurred.', Stack trace=unknown
Error: The package could not be created.
After the January 2019 Update, I am not able to run my extension. I get the error mentioned above with no other context. Nothing was changed in the code besides having to remove the schemaModeUpdate property in launch.json after the update.

Hi @kavila02, this GitHub repository is dedicated to handling issues and feedback for the latest Developer Preview releases of the AL development tools for Dynamics 365 Business Central.
If you can reproduce the problem on the latest Business Central Developer preview version we will be happy to look further into it. Otherwise please contact the regular support channel.
You can open Support Request to CSS through PartnerSource portal or contact your Service Account Manager (SAM) in the local subsidiary to understand what is included in your contract as of support incident and PAH (Partner Advisory Hours). Your SAM might also step by step direct you how to open a support request or how to get credentials if this is the first time for you / your company.
For more details please read:
https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/
https://github.com/Microsoft/AL/wiki/Frequently-Asked-Questions#i-found-an-issue-on-nav-2018-what-do-i-do


Help with backend connection

Hello,
Not really an issue, little help wanted :) How could I add some/modify headers of http request or connect curl to backend connection of this library?
I got to this part, but couldn`t figure out how to add curl output back to client, or manipulate outgoing connection:
File: Clue/Socks-React/Server.php
return $that->connectTarget($stream, $target);
I would like to add this $target to curl and make use of advanced curl http calls, and then return output to the client.
Thanks for help,

How could I add some/modify headers of http request or connect curl to backend connection of this library?

This is not a library, it's a project that's aimed to used through its main bin file. Also, SOCKS can transport any TCP/IP application protocol, so there's really nothing specific to HTTP at all.
I'm failing to see how this is related to this project, so I suppose for question would be better suited for stack overflow (or such)? :)
I hope this helps :+1:

Ahh I though that you gave me a hint, since it would take you a second but im strugling for more than two days. If I gave it to stack overflow I have to explain about this lib and stuff.
Of course It doesnt help :-1:

I'm not familiar with using curl with SOCKS, so the best I can do is point you to http://stackoverflow.com/questions/13444738/how-to-use-a-socks-5-proxy-with-curl, perhaps this helps :+1:
As an alternative, I would suggest taking a look at https://github.com/clue/php-buzz-react#socks-proxy, which I am familiar with :)
Also contact me via email if this is a professional project and you need a quote :+1:


v2 release: Identify and filter out false positives

Removes getOCRResult and provides functions for downloading and debugging.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 50.74627% with 66 lines in your changes missing coverage. Please review.

Project coverage is 39.65%. Comparing base (897da96) to head (9d4b773).

Files with missing lines
Patch %
Lines

src/index.ts
0.00%
51 Missing :warning:

src/textUtils.ts
83.95%
13 Missing :warning:

src/io.ts
0.00%
1 Missing and 1 partial :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #2      +/-   ##
==========================================
+ Coverage   31.06%   39.65%   +8.59%
==========================================
  Files           4        5       +1
  Lines         132      232     +100
  Branches       15       25      +10
==========================================
+ Hits           41       92      +51
- Misses         89      137      +48
- Partials        2        3       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Is there a way to upload/update profile photo on contact/Account photoUrl field?

I'm trying to Update/Upload Image on contact (using PhotoUrl field), I don't find away to upload the Contact/Account profile pic. Can anyone please help me solving this?

Did you find any solution to this @ChandanShankar

triaging old issues...
the PhotoUrl field is expected to be an URL, not a blob.
https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_account.htm


Fixed Title Visual Alignment

User Interface: Fixed the visual alignment on the feed title.
Don't understand why there was margin on left hand side, looked a bit off..

it aligns with the text


Add definitions to LedgerJS

Add definition for Ledger Live
Reference:
https://ledger-dev.slack.com/archives/G01PTMLU1K8/p1636993736005700?thread_ts=1636987743.002500&cid=G01PTMLU1K8

Related PR: https://github.com/LedgerHQ/ledgerjs/pull/707


Add a .bazelversion for the 1.x track

This is a trivial change to begin branched development.
In order to support a Federation release track for each major Bazel version, we will need a branch for each.
The current plan is to have a N.x branch corresponding to actual bazel releases, while the master branch is for the upcoming major release. We'll see how that works in practice.

Note that the upstream branch is 1.x, not master.


[jsfm] Support to use callNativeModule directly

See #1677 for more details.

Support to use callNativeModule if it exists.
Be able to set methods on module.

The "callNative"s would be refactored in branch jsfm-feature-0.19, this solution is temporary.

After discussion, this feature has been implemented in jsfm-feature-0.19, and have few difference with this code.
This PR will be closed.


[ChartJS]  Infinite strobe effect when sliding from: or to: values

Hello,
At https://ux.symfony.com/demos/live-component/chartjs when changing any of from: or to: values the chart goes into an infinite update loop and randomizes colors. This in turn has this cool strobe effect that I doubt is the intended behavior.
I am not sure if this can be an issue for photo-sensitive people, but, feels like worth mentioning.
Unfortunately I cannot help with this since I am looking at the demos to get back into trying JS after a decade of not working with it, but I wanted to report the issue at least.

Good catch thanks @llupa
It's a now-identified little bug that is beeing fixed right now.


ewelink Adaptive light brightness and color not changing

What issue do you have? Please be as thorough and explicit as possible.
Hi, dears,
I am currently using an unbranded Ewelink adaptive bulb. The bulb works normally in the eWelink application, however, I am not able to change the color or the brightness from the homebridge accessories screen or the Homekit app, noting that the logs seem to be normal when controlling the device from both homebridge accessories screen and the Homekit app, simply, the device seems to ignore the commands.
the Bulb has the below details as fetched from the plugin:
Brand: QM Smart Cloud
Model (UIID): QMS-5C-RGB (104)

--

--

Details of your setup.

Do you use (1) Homebridge UI-X (2) Homebridge CLI or (3) HOOBS?

(1)

Which version of Homebridge/HOOBS do you have?

1.4.1

Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known.

VirtualBox

Which version of this plugin (homebridge-ewelink) do you have? Has the issue started since upgrading from a previous version?

v8.15.0

Which eWeLink devices do you have that are causing issues? Please include product models if applicable.

Adaptive bulb
Brand: QM Smart Cloud
Model (UIID): QMS-5C-RGB (104)
Please paste any relevant logs below.

[5/11/2022, 2:53:04 AM] [eWeLink] [Light] current brightness [74%].
[5/11/2022, 2:53:07 AM] [eWeLink] [Light] current brightness [42%].
[5/11/2022, 2:53:09 AM] [eWeLink] [Light] current colour [2700K].
[5/11/2022, 2:53:13 AM] [eWeLink] [Light] current brightness [99%].
[5/11/2022, 2:53:16 AM] [eWeLink] [Light] current colour [rgb 64 0 255].
[5/11/2022, 2:53:23 AM] [eWeLink] [Light] current colour [rgb 255 110 117].
[5/11/2022, 2:53:24 AM] [eWeLink] [Light] current colour [rgb 255 54 57].
[5/11/2022, 2:53:26 AM] [eWeLink] [Light] current colour [rgb 255 170 84].
[5/11/2022, 2:53:28 AM] [eWeLink] [Light] current colour [rgb 255 57 54].
[5/11/2022, 2:53:30 AM] [eWeLink] [Light] current colour [rgb 255 194 133].
[5/11/2022, 2:53:31 AM] [eWeLink] [Light] current colour [3003K] via adaptive lighting.
[5/11/2022, 2:53:32 AM] [eWeLink] [Light] current colour [2700K] via adaptive lighting.
[5/11/2022, 2:53:35 AM] [eWeLink] [Light] current colour [3003K] via adaptive lighting.
[5/11/2022, 2:53:38 AM] [eWeLink] [Light] current colour [rgb 255 57 54].
[5/11/2022, 2:53:42 AM] [eWeLink] [Light] current colour [rgb 255 170 84].
[5/11/2022, 2:53:43 AM] [eWeLink] [Light] current colour [3003K].
[5/11/2022, 2:53:45 AM] [eWeLink] [Light] current colour [2700K].
[5/11/2022, 2:53:47 AM] [eWeLink] [Light] current colour [rgb 255 170 84].
[5/11/2022, 2:53:54 AM] [eWeLink] [Light] current brightness [43%].
[5/11/2022, 2:53:55 AM] [eWeLink] [Light] current brightness [44%].
[5/11/2022, 2:53:57 AM] [eWeLink] [Light] current brightness [1%].
[5/11/2022, 2:53:58 AM] [eWeLink] [Light] current brightness [63%].
[5/11/2022, 2:54:00 AM] [eWeLink] [Light] current brightness [64%].

Hi,
Closing this just as been a little overwhelmed with issues recently.
If this is still an issue or a feature you would like implemented then please do re-open this ticket!
Thanks for your understanding!


[pg] configmap update -> rolling update -> wrong primary label

kubedb 0.9.0
pg 10-v2
By modifying the pg object
kubectl -n demo edit pg mypostgres and adding a configSource (which points to a configMap), does trigger the rolling bounce of all pods in the StatefulSet, but somehow, the primary pod (that is running the postgres as master), became labeled wrongly: "replica".

wrong, my mistake.


Fast zero-allocation universal hash function

This pull request adds a fast generic hash functions that can be used in MapOf.
This allowed to make two new constructors that do not require user to specify hash function manually
func NewUniversalMapOf[K comparable, V any]() *MapOf[K, V]
func NewUniversalMapOfPresized[K comparable, V any](sizeHint int) *MapOf[K, V]

The core idea behind is to create generic higher order function that can construct hash func for a specific comparable type.
hash := MakeHashFunc[string]()
seed := maphash.MakeSeed()
fmt.Println(hash(seed, "foo"), hash(seed, "bar"))

MakeHashFunc uses some reflection under the hood, but resulting function it produces is very fast zero-allocation hasher that's based on some unsafe magic (the same way as hashers that already exist in this package).
Below are the becnhmarks for different types
BenchmarkMakeHashFunc/int_hash-12<PHONE_NUMBER>	         0.9810 ns/op	       0 B/op	       0 allocs/op
BenchmarkMakeHashFunc/string_hash-12                311438284	         3.841 ns/op	       0 B/op	       0 allocs/op
BenchmarkMakeHashFunc/xsync_test.Point_hash-12      442970949	         2.739 ns/op	       0 B/op	       0 allocs/op
BenchmarkMakeHashFunc/*xsync_test.Point_hash-12<PHONE_NUMBER>	         0.9841 ns/op	       0 B/op	       0 allocs/op

Thank you very much for the feedback

@destel many thanks on your contribution!


Visual Studio Support

Title says it all.
I would say a clone of the UI built in XS should suffice - once that's been settled.
For this to work with iOS, we will also have to figure out #7 Network Discovery.

I put an IP address box in the UI until we have discovery

What are the install steps for this?

It's not released yet, but if you want to give it a spin:

Clone this repo
Build Continuous.Client.VisualStudio.sln
Find the VSIX file it creates and install that

The UI is listed under Edit > Other Windows > Continuous Coding

Great, I'll give it a spin!

The UI is listed under Edit > Other Windows > Continuous Coding

You mean View > Other Windows?

Is this still being worked on for VS?

Any updates on this? I know that (sadly) this repo hasn't been touched for 2+ years, but Xamarin Studio has been replaced by Visual Studio completely now. Would be a shame to let all this great code go to waste...


javascript concept added

New changes with new javascript concept

I also faced a similar issue on my site but thankfully I hire a developer which resolve that's issue.


Add more comments

Add comments explaining how pattern switching works.

This is part of the ongoing reorganization / documentation effort that's happening. Check out doxygen and the Pattern class to check out the commenting / documentation standards I'm looking for. Hopefully the pattern switching will be abstracted away with nicely documented behavior too.


KeyNotFoundException when opening the magic storage crafting interface with calamity's potion of cadance open

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at RecursiveCraft.RecursiveSearch.UseExistingIngredients(IEnumerable`1 ingredientList, Int32& ingredientsNeeded, Int32& trueIngredientsNeeded) in RecursiveCraft\RecursiveSearch.cs:line 185
   at RecursiveCraft.RecursiveSearch.CraftableAmount(Recipe recipe, Int32 amount, Int32 trueAmount, List`1 forbiddenItems) in RecursiveCraft\RecursiveSearch.cs:line 93
   at RecursiveCraft.RecursiveSearch.UseIngredientFromRecipe(List`1 newForbiddenItems, Int32 validItem, Int32& ingredientsNeeded, Int32& trueIngredientsNeeded) in RecursiveCraft\RecursiveSearch.cs:line 141
   at RecursiveCraft.RecursiveSearch.CraftableAmount(Recipe recipe, Int32 amount, Int32 trueAmount, List`1 forbiddenItems) in RecursiveCraft\RecursiveSearch.cs:line 102
   at RecursiveCraft.RecursiveSearch.UseIngredientFromRecipe(List`1 newForbiddenItems, Int32 validItem, Int32& ingredientsNeeded, Int32& trueIngredientsNeeded) in RecursiveCraft\RecursiveSearch.cs:line 141
   at RecursiveCraft.RecursiveSearch.CraftableAmount(Recipe recipe, Int32 amount, Int32 trueAmount, List`1 forbiddenItems) in RecursiveCraft\RecursiveSearch.cs:line 102
   at RecursiveCraft.RecursiveSearch.FindIngredientsForRecipe(Recipe recipe, Int32 timeCraft) in RecursiveCraft\RecursiveSearch.cs:line 34
   at MagicStorageExtra.RecursiveCraftIntegration.SingleSearch(RecursiveSearch recursiveSearch, Recipe recipe) in MagicStorageExtra\RecursiveCraftIntegration.cs:line 145
   at MagicStorageExtra.RecursiveCraftIntegration.RecursiveRecipes() in MagicStorageExtra\RecursiveCraftIntegration.cs:line 109
   at MagicStorageExtra.CraftingGUI.RefreshRecipes(HashSet`1 hiddenRecipes, HashSet`1 craftedRecipes, HashSet`1 favorited) in MagicStorageExtra\CraftingGUI.cs:line 1098
   at MagicStorageExtra.CraftingGUI.<>c__DisplayClass144_0.<RefreshItems>b__1() in MagicStorageExtra\CraftingGUI.cs:line 917
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Mod list:
[
  "CalamityModMusic",
  "CalamityMod",
  "WheresMyItems",
  "SmartDoors",
  "VeinMiner",
  "MagicStorageExtra",
  "CalValEX",
  "OmniSwing",
  "RecursiveCraft"
]

This shows up in the chat but doesn't crash the game and everything keeps working normally after that. I wasn't sure whether I should report this to you or to magic storage so I've done both. Here is the corresponding Magic Storage issue: https://github.com/ExterminatorX99/MagicStorage/issues/30

I found what caused the issue, it's from this mod, but I can't solve it in 1.3 without wasting the performances

Thanks for looking into it, do you expect that the issue might be possible to solve once 1.4 is ready? Is there a way I can mitigate the issue in game in the mean time?

I already wrote the code for 1.4, an issue on this branch needs to be fixed in order to test it...
To mitigate it ? The blood orb is the item causing the issue by being in all the potions recipe, so to avoid it, you could remove any blood orb from your storage while making potions that needs other potions

Thanks a lot for your help!


Deploy VMs using Powershell tutorial broken

When following the tutorial and typing the following group of commands into the latest Powershell an error is returned when using the "Set-AzVMOperatingSystem" cmdlet.
#Create the NIC
$wsn = Get-AzVirtualNetworkSubnetConfig -Name  Workload-SN -VirtualNetwork $testvnet
$NIC01 = New-AzNetworkInterface -Name Srv-Work -ResourceGroupName Test-FW-RG -Location "East us" -Subnet $wsn
#Define the virtual machine
$VirtualMachine = New-AzVMConfig -VMName Srv-Work -VMSize "Standard_DS2"
$VirtualMachine = Set-AzVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName Srv-Work -ProvisionVMAgent -EnableAutoUpdate
ERROR: Set-AzVMOperatingSystem : Object reference not set to an instance of an object.
At line:1 char:19

... alMachine = Set-AzVMOperatingSystem -VM $VirtualMachine -Windows -Com ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : CloseError: (:) [Set-AzVMOperatingSystem], NullReferenceException
FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.SetAzureVMOperatingSystemCommand

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

ID: 96ac90e6-c74e-67bc-6bbf-f904193856d3
Version Independent ID: 2c4b11cc-5d86-5e1e-60a6-a76022a9ec4f
Content: Deploy and configure Azure Firewall using Azure PowerShell
Content Source: articles/firewall/deploy-ps.md
Service: firewall
GitHub Login: @vhorne
Microsoft Alias: victorh

@akersha
Thanks for your feedback! We will investigate and update as appropriate.

@akersha
Thank you for bringing this to our attention.
I've delegated this to content author @vhorne, who will review it and offer their insightful opinions.

@akersha
No repro. Please make sure you're using the latest PowerShell 7 locally and the latest Azure PowerShell.
A small update was made to include credentials for the Set-AzVMOperatingSystem command. Here's what that section looks like now:
#Define the virtual machine
$SecurePassword = ConvertTo-SecureString "<choose a password>" -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential ("<choose a user name>", $SecurePassword);
$VirtualMachine = New-AzVMConfig -VMName Srv-Work -VMSize "Standard_DS2"
$VirtualMachine = Set-AzVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName Srv-Work -ProvisionVMAgent -EnableAutoUpdate -Credential $Credential
$VirtualMachine = Add-AzVMNetworkInterface -VM $VirtualMachine -Id $NIC01.Id
$VirtualMachine = Set-AzVMSourceImage -VM $VirtualMachine -PublisherName 'MicrosoftWindowsServer' -Offer 'WindowsServer' -Skus '2019-Datacenter' -Version latest

Thank you for the response and update information. Much appreciated!
Respectfully,
Alex
On Tue, Feb 20, 2024 at 12:10 PM Vic @.***> wrote:

@akersha https://github.com/akersha
No repro. Please make sure you're using the latest PowerShell 7 locally
and the latest Azure PowerShell.
A small update was made to include credentials for the
Set-AzVMOperatingSystem command. Here's what that section looks like now:
#Define the virtual machine
$SecurePassword = ConvertTo-SecureString "" -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential ("", $SecurePassword);
$VirtualMachine = New-AzVMConfig -VMName Srv-Work -VMSize "Standard_DS2"
$VirtualMachine = Set-AzVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName Srv-Work -ProvisionVMAgent -EnableAutoUpdate -Credential $Credential
$VirtualMachine = Add-AzVMNetworkInterface -VM $VirtualMachine -Id $NIC01.Id
$VirtualMachine = Set-AzVMSourceImage -VM $VirtualMachine -PublisherName 'MicrosoftWindowsServer' -Offer 'WindowsServer' -Skus '2019-Datacenter' -Version latest
—
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/119958#issuecomment-1954668953,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABACV5FWF22SEUO5EONNZCTYUTKIVAVCNFSM6AAAAABDNQYA26VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJUGY3DQOJVGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

#please-close


Import from Places into DataScript.

Coverage increased (+0.9%) to 42.615% when pulling 69f989359e743b2886136ff33890ef01b4e26583 on ncalexan:really-import into 2fc9a7c08de4dbbc73f6060effb78fa21c5f4855 on mozilla:master.

Consider adding a post-import test that uses the real API to fetch visited pages.


Duplicated control bar on a video

Describe the bug
I've faced an issue with duplicating control panel on playing video. I've tried different configurations and none solved the issue.
To Reproduce
Steps to reproduce the behavior:

Integrate the latest version(v3/current, it's 3.0.3 for now) using cdn
Use the basic script:
var player = fluidPlayer(
'my-video',
{
}
);
Try to load any video

Expected behavior
Video should be played with the default settings as it shown in the documentation
Screenshots or Links

Desktop (please complete the following information if relevant):

OS: Ubuntu 20.04
Browser Chrome
Version latest

Affected version
v3.0.3
Additional context
Im not sure weather it is a global issue, or

by default fluidplayer removes the default "controls" from video
https://github.com/fluid-player/fluid-player/blob/master/src/fluidplayer.js#L1810
check if it has the "controls" attribute in the video tag, you can remove it once the player starts, with the function "playerInitCallback", or hide it with css.

@alice-luc Have you been able to fix this? Thanks @Joel2B for the comment!

i guess so @leroybm
its been a while)


CAS Id not matching user accounts

The change in user identifiers to an opaque id has affected the matching of users to their accounts.  It appears that methodology assumed the user path was CAS id There should probably be a function, _getAccount(CASId) or similar that returns the account identifier.

deployed to sandbox at v1.1.0-beta.44

@qjhart please review and let me know how you want to go about patching rc

@jrmerz yes go ahead and update main and submit the new image, and I'll pull it in.


Fixes issue where ServicePointManager.ServerCertificateValidationCallback has invalid params

In testing this I am hitting an endpoint that has a custom SSL Certificate that is basically self-issued. It's not trusted by any root CA's. Because of this, I wanted to invoke the callback with ServicePointManager.ServerCertificateValidationCallback. However, when this was called, I was receiving params that contained both the cert and chain as null values, so there was nothing for me to validate. This was due to there only being 1 certificate in the chain and your method was jumping ahead before it set the params to pass.
I modified it so that the params are set before the method jumps ahead.

@paulcbetts any feedback? Do I have to buy the ModernHttpClient Pro, where that code seems to be refactored?


Created types and sequences.

Describe your changes
Checklist

[x] I have read the [CONTRIBUTING]
[x] I have performed a self-review of my own code
[x] I have run the code locally and it works as expected
[x] I have commented my code, particularly in hard-to-understand areas

Screenshots (if appropriate)

My github desktop decided to destroy itself so i had to make a new pull request.


[Bug]  temporal-cassandra domin name cannot be resolved

What are you really trying to do?
report a bug

Describe the bug

pod stuck on container init even the temporal-cassandra is working find
temporal-admintools-6d54c4ccf-rhd5p    1/1     Running    0          8m17s
temporal-cassandra-0                               1/1     Running    0          8m17s
temporal-frontend-8f59f594b-lqrx6         0/1     Init:1/4   0          8m17s
temporal-history-7dfb5ff65-j4fjf               0/1     Init:1/4   0          8m17s
temporal-matching-7fd865fbd4-xlbj6      0/1     Init:1/4   0          8m17s
temporal-schema-setup-p6m5l                0/2     Init:1/4   0          8m17s
temporal-web-78745cd865-bdlnt            1/1     Running    0          8m17s
temporal-worker-cf5d58f6b-7cphl           0/1     Init:1/4   0          8m17s
and then i check the log on temporal-frontend

seem it resolved the k8s host machine dns and connect a external IP
so i try to dig this domain name on my own pod

temporal-cassandra.temporal.svc.cluster.local resolves to the correct address
seems k8s-dns is normal
temporal-cassandra hosts conf:

And just for reference i fixed it by change the cassandra.host to FQDN
temporal-helm/templates/_helpers.tpl: line 320
{{/*
All Cassandra hosts.
*/}}
{{- define "cassandra.hosts" -}}
{{- range $i := (until (int .Values.cassandra.config.cluster_size)) }}
{{- $cassandraName := include "call-nested" (list $ "cassandra" "cassandra.fullname") -}}
{{- printf "%s.%s.svc.cluster.local." $cassandraName $.Release.Namespace -}}
{{- end }}
{{- end -}}
{{/*
The first Cassandra host in the stateful set.
*/}}
{{- define "cassandra.host" -}}
{{- $cassandraName := include "call-nested" (list . "cassandra" "cassandra.fullname") -}}
{{- printf "%s.%s.svc.cluster.local." $cassandraName .Release.Namespace -}}
{{- end -}}
but i m not sure the reason
pls help to check and confirm
Minimal Reproduction

Environment/Versions

OS and processor: linux CentOS Linux release 7.7.1908 (Core) kernel: 5.4.144-1.el7.elrepo.x86_64

Temporal Version:
chart version: 0.13.3
appVersion: 1.13.1

Are you using Docker or Kubernetes or building Temporal from source?
using Kubernetes

Additional context

I am having the same issue

We no longer assume cluster.local which may help. Please re-open if this is still an issue.


Use dynspread=True by default for explorer if datashade/rasterize

I think it's more user friendly if dynspread is True, or else can barely see anything:

With dynspread=True:

I think dynspread has docs, except that Bokeh doesn't support tooltips for all the widgets?

Alternatively, the explorer could warn the user when they set rasterize/datashader on a dataset that has too little data.

Is there a downside to setting dynspread=True in any case though?

Maybe, if so that would be the default in hvPlot?

You wouldn't want to use any form of spreading if you are rendering antialiased lines in datashader. But I don't know if antialiased lines have reached hvplot yet.

BTW, I think Explorer should also be enabling either LTTB or rasterize automatically when the data size is too large. Maybe LTTB by default for line data >100000 points, and rasterize by default for point data > 100000 points?

What's LTTB?


What version of godep (output of godep version)?

godep v56 (darwin/amd64/go1.6)
I deleted godep and project folder, then reinstall it. Now It works.


Fix Normal distribution methods to use the conjugate prior

Also, add more comments to distribution::base.hh to specify that that is what distribution classes should do.

I actually have the start of a unit test, but it will be in a follow-up pull request.


Write change log

Please write change logs of version 2 and  3

I will start writing a change log from the next version. Not much is changed from 2 to 3. I have added a menu  to the player and refactored some part of the library. I had to increase the major version because the refactoring introduced some breaking changes.


⚠ Bofrost.be has degraded performance

In db1d1da, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 4441 ms

Resolved: Bofrost.be performance has improved in d9cf55c after 6 minutes.


Correction to SQL connection string

In the documentation it is stated as two-word connected and pascal cased string, like so: IntegratedSecurity=SSPI.
Reference link: https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/listeners-client-connectivity-application-failover?view=sql-server-ver15#ConnectToPrimary
But i encountered an error when trying to deploy my replica set configuration, which turned out to be because of a missing space in-between the variable. So after changing it to: Integrated Security=SSPI, it deployed successfully. Which is also supported by MSDN examples:
https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnectionstringbuilder?view=netframework-4.8#remarks
https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnectionstringbuilder.integratedsecurity?view=netframework-4.8#System_Data_SqlClient_SqlConnectionStringBuilder_IntegratedSecurity
adding related Git Issue: https://github.com/MicrosoftDocs/sql-docs/pull/3821#event-2890519406

@Jazzbear : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @Jazzbear , thank you so much for your contribution, and for making our documentation better! This change looks correct to me :) #sign-off

fixes https://github.com/MicrosoftDocs/sql-docs/pull/3821


What to do if two icons have the same file name?

So I just downloaded icons from 2 different packs, but they have the exact name, do I have to rename them or leave it as it is?

They will be automatically handled as duplicates.

But will they work in gd?

Yes


TST: Reduce flakiness in lsmr test

Reference issue

Fixes https://github.com/scipy/scipy/issues/8163
What does this implement/fix?

I believe that the comparison of x to a subsequent iteration of x is not valid, I can find instances where pointwise x and x_ref vary by as much as 0.5 while the norm(b - A*x) for both is very small. This happens because setting x0=x0 doesn't results in exact the same estimates which leads the 2nd call to lsmr to run one iteration longer about 1 in 3000 tests and one iteration less 1 in 100,000 times.
Additional information

@rgommers This probably fell off your radar. I addressed comments two weeks ago.

Thanks for the ping @sethtroisi, LGTM now. Merged.


Desired changes to Zulip

Everything here is a nice to have that is probably not easily possible, but we could try to look into in case it is.
Add hack to auto-scroll to bottom for each message
This is something a lot of people want so they can follow the zulip conversation without needing to go and scroll down periodically.
This would probably take the form of a modification to their frontend code, or a greasemonkey-style user script.
Pin topics to side list
So that they're always the first topic in the list, instead of the most-recently-messaged one.
CSS changes in frontend
Mostly a denser interface, changing size of certain elements
Allow unpriveliged users to move their own messages to other streams
Zulip allows this between topics in the same stream, but not between streams. This is mostly a "oops wrong stream" issue.

Allow unpriveliged users to move their own messages to other streams

This is implemented in new versions of Zulip - we should upgrade.


World reset after Update?

Hello,
i used the Commands "arkmanager saveworld" and "arkmanager update" and after that the whole Server has been resetted... Any Option to get the Old World back?

If you look in $arkserverroot/ShooterGame/Saved/SavedArks, assuming you are not running a map mod, you should see multiple TheIsland_{datetime}.ark files.  You could try copying TheIsland.ark to another filename, then copy one of the TheIsland_{datetime}.ark files from before the reset over TheIsland.ark.
This won't help if the characters / tribes have also been wiped, as those are stored separately to the saved world, with no automatic backups.

All Files have been resetted :(
GameUserSettings.ini and all other, no saves in that Folder

That sounds like the $arkserverroot/ShooterGame/Saved directory was deleted.  Either that, or the $arkserverroot was changed.
ARK Server Tools never deletes that directory, steamcmd shouldn't delete that directory, and I doubt that the ARK server would delete that directory.
The only option to recover from this would be to restore from a backup (e.g. that created by arkmanager backup).

Closing for inactivity, @Proto96  feel free to reopen if you need it.


Missing Bicep/ARM Template

[Enter feedback here]
No template for managing the Azure resource through IaC.

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

ID: e2d3d6a4-64b0-4a37-f387-696f88865a54
Version Independent ID: e02b6c38-47ab-59f7-358f-c0f225837e54
Content: Quickstart - Create and manage resources in Azure Communication Services - An Azure Communication Services quickstart
Content Source: articles/communication-services/quickstarts/create-communication-resource.md
Service: azure-communication-services
Sub-service: arm
GitHub Login: @tophpalmer
Microsoft Alias: chpalm

Hi @bleepzter thanks for bringing this to our attention. I have assigned the issue to the content author to evaluate and update this doc as appropriate


cregistry: add build instruction to README.sqlext

See also commit 4664a4a6c680ec55387f7c3ecd94102588a8f299.

We also have a port for this, I think.

For the record, the port is macports.sqlext.


Datepicker malfunctioning

If datepicker has child element it wont work. Asked for help in stackoverflow http://stackoverflow.com/questions/27395378/angular-ui-bootstrap-datepicker-malfunctioning

Is this something to be fixed? I noticed this has been marked in Purgatory.


CQ-4272964 Refactor per JIRA comment

Description
Per: https://jira.corp.adobe.com/browse/CQ-4272964?focusedCommentId=21693623&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-21693623

Following observations after latest fix
Issue of "row 1 expanded" still persists.
Each cell expansion is announced as "Cell_name collapsed" rather tha "Cell_name expanded".
For reproducing issue#1,

Open asset properties page
Open tag picker
Enter columnview using keyboard controls
Use "up" and "down" keys to navigate between 4 options shown in first column. Let the voiceover complete its narration. Everytime it announces "row 1 collapsed row 1 expanded" after announcing correct names. Some times it directly announces "row 1 collapsed"

Related Issue
https://jira.corp.adobe.com/browse/CQ-4272964?focusedCommentId=21693623&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-21693623
Motivation and Context
Ensure focused item gets announced by VoiceOver when navigating items in ColumnView
Types of changes

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

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.

@icaraps Please review.

@icaraps Gentle reminder to review PR.


Import error for SvelteKit

Describe the bug
Importing this package in SvelteKit leads to warnings in development and to errors in production builds related to ES modules.
I've set up a demo where I've made the following changes from a new SvelteKit project:

npm install copy-image-clipboard
In src/routes/+page.svelte I've added basic code to check for image copy support:

import { canCopyImagesToClipboard } from 'copy-image-clipboard';

onMount(() => {
	const canCopy = canCopyImagesToClipboard();

	console.log('Can Copy Images To Clipboard:', canCopy);
});

When running in development mode with vite dev I get the following warning: copy-image-clipboard doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix. Forced re-optimization of dependencies
When creating a production build with vite build I get the following error:
(node:13) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/home/projects/sveltejs-kit-template-default-8qhsvf/node_modules/copy-image-clipboard/dist/index.js:175
export { canCopyImagesToClipboard, convertBlobToPng, copyBlobToClipboard, copyImageToClipboard, createImageElement, getBlobFromImageElement, getBlobFromImageSource, isJpegBlob, isPngBlob, requestClipboardWritePermission };
^^^^^^

SyntaxError: export declarations may only appear at top level of a module
    at compileFunction (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:6:341450)
    at wrapSafe (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:6:218347)
    at Module.prototype._compile (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:6:218723)
    at Module._extensions[".js"] (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:6:219743)
    at Module.prototype.load (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:6:217769)
    at Module._load (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:6:215340)
    at <anonymous> (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:6:983454)
    at _evaluate (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:15:300439)
    at _evaluate (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:15:300563)
    at <anonymous> (<anonymous>)
Error: 500 /
    at normalise_error_handler/<@file://file:///home/projects/sveltejs-kit-template-default-8qhsvf/node_modules/ (sveltejs/kit/src/core/postbuild/prerender.js:68:12)
    at save@file://file:///home/projects/sveltejs-kit-template-default-8qhsvf/node_modules/ (sveltejs/kit/src/core/postbuild/prerender.js:370:21)
    at visit@file://file:///home/projects/sveltejs-kit-template-default-8qhsvf/node_modules/ (sveltejs/kit/src/core/postbuild/prerender.js:219:7)
    at <anonymous> (<anonymous>)
[vite-plugin-sveltekit-compile] Failed with code 1
error during build:
Error: Failed with code 1
    at fn/</<@file://file:///home/projects/sveltejs-kit-template-default-8qhsvf/node_modules/ (sveltejs/kit/src/utils/fork.js:83:13)
    at EventEmitter.prototype.emit (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:6:155574)
    at ChildProcess/this._handle.onexit (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:6:956239)
    at _onChildExit/< (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:15:393246)
    at _0x5d97a4 (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:15:150541)
    at _0x2fb6cc/< (https://sveltejskittemplatedefault8qhs-lxfs.w-corp.staticblitz.com/blitz.927bd077ab89da68c6338c4363cc22e79cccb4ef.js:15:150281)
    at <anonymous> (<anonymous>)

i got same err

I also encountered this problem. I think you should add "type" : "module" in package.json

publint is really helpful for catching errors like these: https://publint.dev/copy-image-clipboard

This was fixed in https://github.com/LuanEdCosta/copy-image-clipboard/pull/45 by adding the missing "type": "module", but hasn't been released yet
@LuanEdCosta do you think we could get a new release?

@LuanEdCosta just checking in again here quickly - would it be possible to cut a new release?

@LuanEdCosta it'd be super helpful to us if we could get a new release. Would you be able to help us out?


chore(main): release 0.66.1

:robot: I have created a release beep boop
0.66.1 (2024-02-20)
Bug Fixes

Config: Do not use double quotes in formatted strings (c99fa90)
Docker: Wrong python version used with dockerfile (6b516be)

Miscellaneous

Fixtures: Add base fixtures that will always be loaded in the database on deployment (b04a587)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/BLSQ/openhexa-app/releases/tag/0.66.1 :sunflower:


Add support for testing coverage with custom stats

It is very useful to test a query's coverage percentage against caniuse data.
If a user is using custom stats, it may be even more beneficial to check the coverage against custom stats instead of the caniuse stats.
E.g.,
const browsers = browserslist('>.5% in my stats', { stats });
const coverageInUs = browserslist.coverage(browsers, 'US');
const coverageOfUsers = browserslist.coverage(browsers, 'my stats');

For sure! I will try to add browserslist.coverage(browsers, { stats }) support on this weekend.

Done 4748478

Released in 3.0.


env2yaml not processing file in --path.confg

Would be nice if the docker-entrypoint or logstash would replace ENV. This was a feature in the now deprecated docker image.
Hack I'm doing on docker-entrypoint:
#!/bin/bash -e

# Map environment variables to entries in logstash.yml.
# Note that this will mutate logstash.yml in place if any such settings are found.
# This may be undesirable, especially if logstash.yml is bind-mounted from the
# host system.
#env2yaml /usr/share/logstash/config/logstash.yml

PATH_CONFIG=/opt/logstash/conf.d #TODO grab from args
while IFS='=' read -r name value ; do
    # replace ${name}, ${name|default}, ${name | default} => value
    find ${PATH_CONFIG} -type f -name "*.conf" -print0 | xargs -0 sed -i.bak -r 's~\$\{'${name}' ?(|\|[^\}]{1,})}~'${value}'~g'
done < <(env)
rm ${PATH_CONFIG}/*.bak
if [[ -z $1 ]] || [[ ${1:0:1} == '-' ]] ; then
  exec logstash "$@"
else
  exec "$@"
fi

Hi,
Could you expand a little bit on the problem and proposed solution? I'm having trouble understanding what the goal is.
Thanks.

When using the docker container from https://hub.docker.com/_/logstash/, strings like ${ENV_ELASTICSEARCH_HOST:default_value} in the config would be replaced with their corresponding ENV in the container or fall back to the default value. I'm find now that I'm migrating to this new docker image, that the ENV var is not being replaced like it used too. The more I reflect on this the more I think this issues belongs to the logstash repo, but the existence of env2yaml makes me question that.

Just found your comment https://github.com/elastic/logstash-docker/issues/24#issuecomment-297903833. I'll test out using ENV.PATH_CONFIG tomorrow.

Figured out what changed.

key: ${ENV} -> 'value'
key: ${ENV}/path -> None <- This use case is mentioned in the docs
key: '${ENV}' -> ${ENV}'
key: "${ENV}" -> ${ENV}' <- This used to work in older versions

I've reconfigured my ENV to work around this. Would be nice if "${ENV}" was supported again.


Enable setting the user that the container runs with

Background & motivation
I want to set the user that a container runs with, like the --user command to the docker command line. My image has functionality that can only be unlocked by modifying the user who runs the container
Desired behaviour
Ability to set the user that runs the container
How important is this to you?
Painful; the lack of this feature makes using Kurtosis frictionful.
What area of the product does this pertain to?
SDK: the Software Development Kit libraries - Typescript, Go, etc.

Now done via https://docs.kurtosis.com/api-reference/starlark-reference/user/


DateValidator::timestampAttribute should have a format

DateValidator::timestampAttribute should provide an option that allows formatting the value to not only be a unix timestamp but also a date in format 'Y-m-d' to store in a database column of type 'date'.

db can use native fields and better deal with that data than with integers
parsing date values from data input adds the local time to the timestamp. this can be avoided when converted to Y-m-d format afterwards.

related: #5857

I've checked the forum, the issues of the framework and the only solution to save a date field in MySQL is using a beforesave function.
Should I add another function which allows also save the date type field by default without using a beforesave function to give the correct format, as when working with several models and many date type fields becomes cumbersome.
For example:
My Config:
    // Formatter
    'formatter' => [
        'class' => 'yii\i18n\Formatter',
        'locale' => 'es-ES',
        'dateFormat' => 'php:d/m/Y',
        'timeFormat' => 'short',
        'defaultTimeZone' => 'America/Caracas'
    ],

My Model:
    public function rules()
    {
        return [
            [['Turn003'], 'required'],
        ];
    }

My View:
    <?= $form->field($model, 'Turn003')->widget(\yii\jui\DatePicker::classname(), [
    ]) ?>

Save Bd MYSQL: 0000-00-00.
Of course the problem is that I change the format 'yyyy-mm-dd', but because I do beforesave functions in the models, if I'm not putting any special formatting, I'm just putting my form in my language, this I meant in the issue support save format data types (date, time and numeric) that opened yesterday, its solution DateValidator :: timestampAttribute, works perfectly, but note that there is also need to save the date type field in readable format according to the language.
I hope they can do something about it as there are many applications in different issues regarding the subject.
I hope you understand now, thanks in advance the truth that his work with the formatter and validator is excellent.
Thks,

I've created this gist:
https://gist.github.com/FabrizioCaldarelli/eb376822f07c6832d76b
I've overwritten DateValidator class file, so changes to yii\validators\DateValidator should be simple.


Set DrainconnectionsOnHostRemoval to true for any cluster w/healthchecks

Fixes #603 by setting DrainConnectionsOnHostRemoval to true if the cluster has healthchecks enabled.
//cc https://github.com/heptio/gimbal/issues/208
Signed-off-by: Steve Sloka<EMAIL_ADDRESS>

/hold
I need to test this quickly to validate that it actually does what it says.

@stevesloka it would be great if you could write an e2e test for this, taking the ingressroute from #603 and checking that contour emits the right envoy data structure.

Milestone removed, please re-add the 0.10 milestone when this PR is ready. Thanks.

:+1: I'll get those e2e's in, thanks!

@stevesloka i'm going to merge this fix for 0.10. I've opened #926 to track the missing test


Using SpatialData with FederatedSchema Stitching

Is there an existing issue for this?

[X] I have searched the existing issues

Product
Hot Chocolate
Describe the bug
When using Federated Schema Stiching and underlaying Service uses Spatial Data an error at the api-gateway is thrown when fetching the Schema:

Unable to resolve type reference [Position]. (HotChocolate.Types.InputObjectType)
at HotChocolate.Configuration.RegisteredType.GetType[T](TypeReference typeRef)
at HotChocolate.Types.InputField.OnCompleteField(ITypeCompletionContext context, ITypeSystemMember declaringMember, InputFieldDefinition definition)
at HotChocolate.Types.FieldBase1.CompleteField(ITypeCompletionContext context, ITypeSystemMember declaringMember) at HotChocolate.Types.FieldBase1.HotChocolate.Types.Helpers.IFieldCompletion.CompleteField(ITypeCompletionContext context, ITypeSystemMember declaringMember)
at HotChocolate.Internal.FieldInitHelper.CompleteFieldsInternal[TField](ITypeCompletionContext context, ITypeSystemMember declaringMember, TField[] fields)
at HotChocolate.Internal.FieldInitHelper.CompleteFieldsInternal[TFieldDefinition,TField](ITypeCompletionContext context, ITypeSystemMember declaringMember, IEnumerable1 fieldDefinitions, Func3 fieldFactory, Int32 fieldCount)
at HotChocolate.Internal.FieldInitHelper.CompleteFields[TFieldDefinition,TField](ITypeCompletionContext context, ITypeSystemMember declaringMember, IReadOnlyList1 fieldDefs, Func3 fieldFactory)
at HotChocolate.Types.InputObjectType.OnCompleteFields(ITypeCompletionContext context, InputObjectTypeDefinition definition)
at HotChocolate.Types.InputObjectType.OnCompleteType(ITypeCompletionContext context, InputObjectTypeDefinition definition)
at HotChocolate.Types.TypeSystemObjectBase1.CompleteType(ITypeCompletionContext context) at HotChocolate.Configuration.TypeInitializer.CompleteType(RegisteredType registeredType) at HotChocolate.Configuration.TypeInitializer.<CompleteTypes>b__29_0(RegisteredType type) at HotChocolate.Configuration.TypeInitializer.ProcessTypes(TypeDependencyFulfilled fulfilled, Func2 action)
at HotChocolate.Configuration.TypeInitializer.CompleteTypes()
at HotChocolate.Configuration.TypeInitializer.Initialize()
at HotChocolate.SchemaBuilder.Setup.InitializeTypes(SchemaBuilder builder, IDescriptorContext context, IReadOnlyList`1 types)
at HotChocolate.SchemaBuilder.Setup.Create(SchemaBuilder builder, LazySchema lazySchema, IDescriptorContext context)
at HotChocolate.SchemaBuilder.Create(IDescriptorContext context)
at HotChocolate.SchemaBuilder.HotChocolate.ISchemaBuilder.Create(IDescriptorContext context)
at HotChocolate.Execution.RequestExecutorResolver.CreateSchemaAsync(String schemaName, RequestExecutorSetup options, RequestExecutorOptions executorOptions, IServiceProvider serviceProvider, TypeModuleChangeMonitor typeModuleChangeMonitor, CancellationToken cancellationToken)
at HotChocolate.Execution.RequestExecutorResolver.CreateSchemaServicesAsync(String schemaName, RequestExecutorSetup options, CancellationToken cancellationToken)
at HotChocolate.Execution.RequestExecutorResolver.GetRequestExecutorNoLockAsync(String schemaName, CancellationToken cancellationToken)
at Microsoft.Extensions.DependencyInjection.HotChocolateStitchingRequestExecutorExtensions.<>c__DisplayClass5_0.<b__2>d.MoveNext()
--- End of stack trace from previous location ---
at HotChocolate.Execution.RequestExecutorResolver.CreateSchemaAsync(String schemaName, RequestExecutorSetup options, RequestExecutorOptions executorOptions, IServiceProvider serviceProvider, TypeModuleChangeMonitor typeModuleChangeMonitor, CancellationToken cancellationToken)
at HotChocolate.Execution.RequestExecutorResolver.CreateSchemaServicesAsync(String schemaName, RequestExecutorSetup options, CancellationToken cancellationToken)
at HotChocolate.Execution.RequestExecutorResolver.GetRequestExecutorNoLockAsync(String schemaName, CancellationToken cancellationToken)
at HotChocolate.Execution.RequestExecutorResolver.GetRequestExecutorAsync(String schemaName, CancellationToken cancellationToken)
at HotChocolate.Execution.RequestExecutorProxy.GetRequestExecutorAsync(CancellationToken cancellationToken)
at HotChocolate.AspNetCore.HttpPostMiddlewareBase.HandleRequestAsync(HttpContext context)
at HotChocolate.AspNetCore.HttpPostMiddlewareBase.InvokeAsync(HttpContext context)
at Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.<>c__DisplayClass20_0.<b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Steps to reproduce

Enable SpatialTypes on unterlaying service

            .AddAuthorization()
            .AddTypes()
            .AddMutationConventions()
            .AddSpatialTypes()

Publish is to Redis cache

            .SetName(unterlayingService)
            .PublishToRedis(
                graphQlConfiguration.GetValue<string>("RedisConfigurationName"),
                sp => sp.GetRequiredService<IRedisConnectionFactory>().GetConnection()));

Add  RemoteSchema of the unterlaying service to our API-Gateway

      .AddAuthorization()
      .AddDirectiveMergeHandler<IgnoreAuthorizeDirectiveHandler>()
      .AddRemoteSchemasFromRedis(graphQlConfiguration.GetValue<string>("RedisConfigurationName"), sp => sp.GetRequiredService<ConnectionMultiplexer>())
      .IgnoreType("ApplyPolicy")
      .AddRemoteSchema("unterlayingService", true)
      .ModifyRequestOptions(opt => opt.IncludeExceptionDetails = true)

Adding SpacialData on the api-gateway does not help
Relevant log output
No response
Additional Context?
No response
Version
13.0.5

Stitching is no longer supported and will be replaced by HotChocolate.Fusion.

Ah, that's a shame I just hit this same problem today. So it looks like we're in a gap between the current documented stitching system being unsupported and the new Fusion piece not being released? Even a temporary workaround until the release of fusion would be appreciated if anyone has one?


play nice with vintageous

as a vintageous user
when I open git: status and see that it acts like a normal vintageous-aware document
I do not want any commands (e.g. [d]) to be acted upon unless I am in insert mode

@leemhenson - I just pushed a change to master that should resolve this issue.  When you get a chance, can you pull down the master branch and see if the issue is resolved?  If so, I'll include the change in the next release.

Ok, I've installed it from master and it looks like it is now completely disabling Vintageous on the status view....

Oh I think I miscommunicated my wish. I don't want Vintageous disabled, I just want GitSavvy to only respond to keypresses if I am in Vintageous' insert mode. I should be able to use Vintageous (and other plugins, e.g. EasyMotion) to move my cursor to the appropriate filename, switch to Insert Mode and then stage, commit etc.

If it's any help, I got the same thing implemented on SublimeGit too: https://github.com/SublimeGit/SublimeGit/issues/125

Can you explain a bit more about how this works in SublimeGit?  I'm happy to address this, but the more information you can give me, the sooner I'll get to it?
Also, how would you feel about a key-combo that:

disables GitSavvy's status view key-bindings
removes __vi_external_disable from the view (enabling Vintageous key-bindings)

On second press, it would do the opposite.  There could be an option in GitSavvy settings that would invert this behavior.

In SublimeGit I use a setting:
"git_status_disable_vintageous": false
and that's all I need to do. Vintageous operates normally and when I switch to insert mode, all of Sublime Git's keybindings are activated. Drop out of insert mode, and the SG keybindings are deactivated.

@leemhenson, I'll take a whack at this.  From your description, Vintageous must either set properties on the view when not in insert mode, or it provides a hook of some sort for when the transition occurs.

@guillermooo, hope you don't mind my asking: can you recommend a strategy for accomplishing this?  Essentially, key-bindings for GitSavvy should only be in effect when Vintageous enters insert mode.  I took a cursory look through the Vintageous codebase and didn't see any obvious view settings that I could check for.

Hi @divmain. This is already working for the status view, could you please add the diff views too?

Hi @jipumarino, I don't have much bandwidth for GitSavvy at the moment.  Addressing this issue will be something of an investment for me, since I'm not a vintageous user.  So for now, this is a low-priority issue.  I'm very open to PRs if you'd like to take a whack at it, or if you could do some investigation on the vintageous side to elucidate what needs to change, either would be very helpful.

;) Thank you, I'll give it a shot and let you know how it goes.

Since I don't have much to go on, closing this issue.  Feel free to re-open if and when there's more information for how to interact with vintageous.


fix(createClient): throw error on SK use

Fixes #330

There are two ways to go about fixing this problem:

Exclusion -> if sk_ then throw
Inclusion -> if pk_` then do not throw

I've implemented 1., let me know if this works 🙏


Weapon not blackisting

Hello, i tried to use the weapon blacklislt but for some reason its not working
config.zip

Got it to work. Sorry
But it has to be restarted everytime foe it to blacklist the weapons. Any solutions?

This issue already exists #6


build fails on MAC

To avoid build failure on MAC computer, you should remove those "inline" key words of function.

jocover fixed this. close it.


CSS in JS

[ ] styled-components, because Fela, the only possible competitor, isn't 10x better (from 0 to 1)
[ ] https://github.com/styled-components/styled-components/blob/master/docs/faq.md
[ ] Extract useful patterns from http://jxnblk.com/axs and https://github.com/jxnblk/cxs

Fele as nice and all, but... details.

Does styled-components support SSR?

As for SSR: https://github.com/este/este/issues/1197#issuecomment-257080024
As for linting: https://github.com/styled-components/styled-components#linting Maybe, I am not sure, it will become something like GraphQL for styles.
As for extension system: I like that pattern and I bet styled-components will leverage it, when it will be need. Fela is really awesome, but, it offers several various approaches for the same think, unit plugin doesn't work, it looks like webpack for styling.

Also, styled-components.com got a huge traction. A lot of people working on it. I am afraid Fela came too late.

Hmm, http://jxnblk.com/grid-styled/ doesn't work with SSR.

Have you gotten styled-components supporting SSR? It doesn't seem to out of the box yet.

We've got an open PR to add a better API for SSR, so we'll have that soon.

I don't think they have a large amount of test coverage.

We actually have something like 97% test coverage; we just don't advertise it anywhere because what does that even mean.
Not sure what you mean here by extension system?

@mxstbr good to hear SSR is working, I was simply going off the current issue.
I was aware there were some tests, but wasn't aware of the coverage, it's nice to see a badge or something with a clear indicator. It provides confidence that updates have less potential to introduce bugs. Other than that I'm not sure what you're asking in regards to the meaning. Knowing how close a project is to 100% coverage is always useful.
By an extension system I mean something similar to http://fela.js.org/docs/introduction/Ecosystem.html
Don't get the wrong idea, I'm not bashing your project, I was just making comparisons. Thanks for giving your insight.

Definitely didn't think you were bashing styled-components, it's always good to have a discussion!
I'm pretty sure I could cheat pretty easily and get to "100% test coverage" without having any confidence in my library. 😉 it's a pretty vanity number imo, but I can see where you're coming from in that it at least makes sure there's no undefined is not a function-type errors.
We chose not to allow custom extensions, as we didn't see the value in them. Basically everything a plugin can do you can do with JavaScript. What are you missing from styled-components that would be an extension in another library? (note: we're working on a "Bourbon for styles in JavaScript", so things like lighten(color) will soon be a thing in JS land!)

@mxstbr as far as extensions go the best example I can give are debugging related extensions. Performance and logging. These are two things that would never vary project to project so it makes little sense for every end user to write them, but they also shouldn't be included in production so they make sense as an extension vs a feature.

Here you have a logger! Not sure it's worth adding a plugin system for 4 lines of code, plus we will soon have an official API for this, so no more monkey-lib-importing.
// logger.js
import styleSheet from 'styled-components/lib/models/StyleSheet'

const logGeneratedStyles = () => {
  console.log(styleSheet.rules().map(rule => rule.cssText).join('\n'))
}

export default logger

I'm not sure what you mean by performance? How is that an extension?

Performance reporting that is. Reporting render timers:

There's other examples on the page I referenced earlier.
Automatically beautifying the code, performance reporting, and logging are all that benefit from being external since they are only needed in development.
There's also some that are production but optional, automatically adding units, the template string vs the JS object rules. It'd be possible to write a plugin that uses a template string of CSS, LESS, etc.
I'm currently working on a plugin that will generate source files for the generated CSS.

So I changed my mind, again. Sorry for the confusion.
https://github.com/styled-components/styled-components/issues/256


Redundant code

yo
ClientConnectedToServerEvent -> Minecraft.getMinecraft().getNetHandler().getNetworkManager().channel().config().setOption(ChannelOption.TCP_NODELAY, true);
thank me l8r

you'll have to check that the network manager isn't null & do it when the player is actually connected to the server

oh also needs forge

Yeah I chose not to use forge so it could support all mc versions with one jar.

You could use the way you're using now to get the NetworkManager and just reflect to get the Channel - would be faster than your current method and a third of the size.

On 2 Nov 2016, at 08:35, prplz<EMAIL_ADDRESS>wrote:
Closed #4.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Resolve local dependencies from local_libs directory

This solution is not ideal, because you can directly import your indirect dependencies. Please tell if that's unacceptable

 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.Marcin Mikołajczyk 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.

Don't forget to add some labels to this!


dynamic HTML with links

Hey
I get via an API, HTML containing links :
{
  "html":"Hello world"
}

To avoid the page reloads on click, I need to apply the v-link directive right ?
So I create another directive which compiles my DOM element.
var a = this.el.querySelectorAll('a');
_.forEach(a, function(el) {
  el.setAttribute('v-link', el.getAttribute('href'));
  _this.vm.$compile(el);
});

It works like I want, but maybe there is a more "official" way to do this ?
In any case, bravo for the hard work behind Vue.js :+1:

This should work, but $compile() is pretty low-level and you need to store the returned unlink function and call them later for proper cleanup. The probably easier way is to intercept click events on a containing element, call event.preventDefault(), then call router.go() yourself.
Maybe I should add an option for global link hijacks.

@yyx990803 did you add an option for global link hijacking? If so how can it be used.
I'm currently using the following workaround in the top level component (this might be a naive solution):
mounted() {
    window.addEventListener('click', event => {
        let target = event.target
        while (target != null && target.tagName != 'A') {
            target = target.parentNode;
        }
        if (target && target.href && this.isSameDomain(target.href)) {
            event.preventDefault();
            this.$router.push(this.$options.filters.relativize(target.href));
        }
    });
},

isSameDomain speaks for itself and the relativize filter returns the full path of the url.

You probably won't get a reply from Evan asking a question in a two year old, closed issue hardly related to the original topic.
I suggest to use our forum instead to ask the community: forum.vuejs.org

@LinusBorg the reason why I using that code snippet is exactly what this issue is about; dynamic html containing links. Which I like handeled by Vue Router instead of doing a page reload.
But sure, I'll try the forum.

@matsrietdijk Do you know if the global link hijacking is implemented :)? I don't see this in the docs, so I guess your solution is still the best one?

No it's not. Otherwise it would be in the docs.