text:
bitwise_and cannot be matched

PyTorch ONNX Conversion Error Report
✅ Obtain model graph with `torch.export.export`
❌ Translate the graph into ONNX
⚪ Run `onnx.checker` on the ONNX model
⚪ Execute the model with ONNX Runtime
⚪ Validate model output accuracy

Error message:
Traceback (most recent call last):
  File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_core.py", line 490, in _add_nodes
    _handle_call_function_node_with_lowering(
  File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_core.py", line 372, in _handle_call_function_node_with_lowering
    raise RuntimeError(
RuntimeError: No ONNX function found for <OpOverload(op='aten.bitwise_and', overload='Tensor')>. Failure message: All overloads did not match the node `%bitwise_and : [num_users=1] = call_function[target=torch.ops.aten.bitwise_and.Tensor](args = (%arg0_1, %scalar_tensor_default), kwargs = {})`.
- Failed to match overload `OnnxFunction(<function aten_bitwise_and at 0x14f19fa60>)`: Parameter type not compatible with argument: param=`Parameter(name='self', type_constraint=TypeConstraintParam(name='TInt', allowed_types={Tensor(INT32), Tensor(INT64), Tensor(INT8), Tensor(INT16)}, description=''), required=True, variadic=False, default=_EMPTY_DEFAULT)`, assigned_types=`{}`, arg=`UINT8`
- Failed to match overload `OnnxFunction(<function aten_logical_and at 0x14f4fdda0>)`: Parameter type not compatible with argument: param=`Parameter(name='self', type_constraint=TypeConstraintParam(name='T_self', allowed_types={Tensor(BOOL)}, description=''), required=True, variadic=False, default=_EMPTY_DEFAULT)`, assigned_types=`{}`, arg=`UINT8`

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_patch.py", line 222, in _torch_onnx_export
    ir_model = torch_onnx.exported_program_to_ir(program)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_core.py", line 626, in exported_program_to_ir
    values = _add_nodes(exported_program, model, lower=lower, registry=registry)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_core.py", line 501, in _add_nodes
    raise RuntimeError(
RuntimeError: Error when translating node %bitwise_and : [num_users=1] = call_function[target=torch.ops.aten.bitwise_and.Tensor](args = (%arg0_1, %scalar_tensor_default), kwargs = {}). See the stack trace for more information.

Exported program:
ExportedProgram:
    class GraphModule(torch.nn.Module):
        def forward(self, _lifted_tensor_constant0: "i32[2]", arg0_1: "u8[3, 4, 2]", arg1_1: "i8[3, 4, 2]"):
            # File: /Users/justinc/Documents/GitHub/torch-onnx/tests/torch_tests/torch_onnx_test.py:3538 in forward, code: input & 20,
            scalar_tensor_default: "u8[]" = torch.ops.aten.scalar_tensor.default(20, dtype = torch.uint8)
            bitwise_and: "u8[3, 4, 2]" = torch.ops.aten.bitwise_and.Tensor(arg0_1, scalar_tensor_default);  scalar_tensor_default = None

            # File: /Users/justinc/Documents/GitHub/torch-onnx/tests/torch_tests/torch_onnx_test.py:3539 in forward, code: torch.bitwise_and(input, other),
            convert_element_type_default: "i16[3, 4, 2]" = torch.ops.prims.convert_element_type.default(arg0_1, dtype = torch.int16);  arg0_1 = None
            convert_element_type_default_1: "i16[3, 4, 2]" = torch.ops.prims.convert_element_type.default(arg1_1, dtype = torch.int16)
            bitwise_and_1: "i16[3, 4, 2]" = torch.ops.aten.bitwise_and.Tensor(convert_element_type_default, convert_element_type_default_1);  convert_element_type_default = convert_element_type_default_1 = None

            # File: /Users/justinc/Documents/GitHub/torch-onnx/tests/torch_tests/torch_onnx_test.py:3540 in forward, code: other & torch.tensor([1, 2], dtype=torch.int32),
            lift_fresh_copy: "i32[2]" = torch.ops.aten.lift_fresh_copy.default(_lifted_tensor_constant0);  _lifted_tensor_constant0 = None
            convert_element_type_default_2: "i32[3, 4, 2]" = torch.ops.prims.convert_element_type.default(arg1_1, dtype = torch.int32);  arg1_1 = None
            bitwise_and_2: "i32[3, 4, 2]" = torch.ops.aten.bitwise_and.Tensor(convert_element_type_default_2, lift_fresh_copy);  convert_element_type_default_2 = lift_fresh_copy = None
            return (bitwise_and, bitwise_and_1, bitwise_and_2)

Graph signature: ExportGraphSignature(input_specs=[InputSpec(kind=<InputKind.CONSTANT_TENSOR: 4>, arg=TensorArgument(name='_lifted_tensor_constant0'), target='_lifted_tensor_constant0', persistent=None), InputSpec(kind=<InputKind.USER_INPUT: 1>, arg=TensorArgument(name='arg0_1'), target=None, persistent=None), InputSpec(kind=<InputKind.USER_INPUT: 1>, arg=TensorArgument(name='arg1_1'), target=None, persistent=None)], output_specs=[OutputSpec(kind=<OutputKind.USER_OUTPUT: 1>, arg=TensorArgument(name='bitwise_and'), target=None), OutputSpec(kind=<OutputKind.USER_OUTPUT: 1>, arg=TensorArgument(name='bitwise_and_1'), target=None), OutputSpec(kind=<OutputKind.USER_OUTPUT: 1>, arg=TensorArgument(name='bitwise_and_2'), target=None)])
Range constraints: {}

Analysis
PyTorch ONNX Conversion Analysis
Model Information
The model has 0 parameters and 0 buffers (non-trainable parameters).
Number of parameters per dtype:
defaultdict(<class 'int'>, {})

Number of buffers per dtype:
defaultdict(<class 'int'>, {})

Inputs:

arg0_1: TensorMetadata(shape=torch.Size([3, 4, 2]), dtype=torch.uint8, requires_grad=False, stride=(8, 2, 1), memory_format=torch.contiguous_format, is_quantized=False, qparams={})
arg1_1: TensorMetadata(shape=torch.Size([3, 4, 2]), dtype=torch.int8, requires_grad=False, stride=(8, 2, 1), memory_format=torch.contiguous_format, is_quantized=False, qparams={})

Outputs:

bitwise_and: TensorMetadata(shape=torch.Size([3, 4, 2]), dtype=torch.uint8, requires_grad=False, stride=(8, 2, 1), memory_format=torch.contiguous_format, is_quantized=False, qparams={})
bitwise_and_1: TensorMetadata(shape=torch.Size([3, 4, 2]), dtype=torch.int16, requires_grad=False, stride=(8, 2, 1), memory_format=torch.contiguous_format, is_quantized=False, qparams={})
bitwise_and_2: TensorMetadata(shape=torch.Size([3, 4, 2]), dtype=torch.int32, requires_grad=False, stride=(8, 2, 1), memory_format=torch.contiguous_format, is_quantized=False, qparams={})

The FX graph has 12 nodes in total. Number of FX nodes per op:

placeholder: 3
call_function: 8
output: 1

Of the call_function nodes, the counts of operators used are:

aten.bitwise_and.Tensor: 3
prims.convert_element_type.default: 3
aten.scalar_tensor.default: 1
aten.lift_fresh_copy.default: 1

ONNX Conversion Information
The model contains operators the dispatcher could not find registered ONNX decompositions for. This may be due to missing implementations, decompositions not registered correctly, or a bug in the dispatcher.
Errors grouped by operator:

aten.bitwise_and.Tensor:     All overloads did not match the node %bitwise_and : [num_users=1] = call_function[target=torch.ops.aten.bitwise_and.Tensor](args = (%arg0_1, %scalar_tensor_default), kwargs = {}).

Failed to match overload OnnxFunction(<function aten_bitwise_and at 0x14f19fa60>): Parameter type not compatible with argument: param=Parameter(name='self', type_constraint=TypeConstraintParam(name='TInt', allowed_types={Tensor(INT32), Tensor(INT64), Tensor(INT8), Tensor(INT16)}, description=''), required=True, variadic=False, default=_EMPTY_DEFAULT), assigned_types={}, arg=UINT8
Failed to match overload OnnxFunction(<function aten_logical_and at 0x14f4fdda0>): Parameter type not compatible with argument: param=Parameter(name='self', type_constraint=TypeConstraintParam(name='T_self', allowed_types={Tensor(BOOL)}, description=''), required=True, variadic=False, default=_EMPTY_DEFAULT), assigned_types={}, arg=UINT8. Example node: %bitwise_and : [num_users=1] = call_function[target=torch.ops.aten.bitwise_and.Tensor](args = (%arg0_1, %scalar_tensor_default), kwargs = {}). All nodes: [bitwise_and]

uint8 is not supported

repo: justinchuby/torch-onnx


text:
event_time sampling biased when selected time is adjusted due to soundscape duration

Currently, if the chosen event_time is such that event_time + event_duration > soundscape_duration, then event_time gets set to soundscape_duration - event_duration, since event duration takes priority over the event start time.
This was the case for source time and was fixed in #53.
The fix here would be to apply the same solution implemented by @pseeth in #53, i.e we modify the distribution tuple for eve_time so that it's sampled without bias within the adjust possible range.
A quick look at the code suggests we might be able to reuse ensure_satisfiable_source_time, but then we probably want to rename it to something more generic.
@pseeth want to take a stab at this one?
Tagging @jtcramer who first surfaced this.

Sounds good. Let me make sure I understand the spec. So once event_duration is decided, we should just sample with the same distribution but with the upper bound changed to soundscape_duration - event_duration?

I believe so, but of course we need to handle all possible distributions (e.g. including "choose"). Is this logic not already implemented in ensure_satisfiable_source_time?

Yeah, that logic is taken care of already so it shouuuld be a drop-in replacement with the required tests to make sure it works.

OK, but if we're using the same function we probably want to rename it to something more broadly applicable, I think _ensure_satisfiable_time_tuple could work?
Then we'd update the code here: https://github.com/justinsalamon/scaper/blob/master/scaper/core.py#L1434-L1461
Right now the code is split on an IF related to time stretching, we can probably pull that lift out to the top of the code block to avoid the current repetition in code (we need to be careful about what changes between the two blocks though, namely the use of event_duration vs event_duration_stretched.
@pseeth since you implemented the original _ensure_satisfiable_source_time do you want to pick this one up? If you're out of cycles I can do this.

p.s. - this might impact some of our regression data!

per offline discussion with @pseeth I'll address this one.

source: gharchive/issue

authors: justinsalamon pseeth

repo: justinsalamon/scaper

license_type: permissive

license_source: bigquery


text:
npm install v-wave not working

It looks like a dependency for v-wave no longer exists.

Closing this issue. It wasn't related to this package

repo: justintaddei/v-wave

license: MIT

license_source: github-api


text:
User download from webapp bug?

https://github.com/NeoPythonProjects/WebApp_TestDownloadCsv.git
hi,
I have a very small webapp where I would like to offer the user to donwload a CSV file.
this works:
I have the download link in the about.py tab (from jutpy documentation).
I comment everything out of the main.py file
I use the jp.Route(About.path, About.serve) statements in the about.py file,
I run about.py
the local host home page opens up (file not found, as I ran it from about.py)
i then manually enter "/about" to the URL
The about page appears
I click the donwload link
it works fine. It downloads the csv file in /static/.
here is where it breaks down
I move the jp.Route() and jp.justpy statements to from about.py to main.py with the necessary import statements
I comment out the jp.Route() and jp.justpy statements in the about.py file
i run main.py
the local homepage appears (now NOT file ot found as i ran it from main.py), including a hyperlink to the about page
i click the huperlink and thus get to the about page
I click the download link on the about page (the one that worked as described above)
an EMPTY csv file is downloaded.
I'm using /static/ in the ref, including the first slash, so I don't think it's a directory issue. It feels more like a get versus post request, getting to the about page by adjusting the URL manually works, but via the hyperlink it doesn't work. Anyway, I've googled for about 2 days and have spoken to my Python tutor, who suggested I log the issue, if indeed it is an issue.
Thank you so much for your help!

Hi,
Could you please post the two versions of the program? It is easier for me to work with code rather than a verbal description.

Hi,
Thank you for your help!
In case it matters, I'm using Windows 10, and Chrome (latest version - Version 88.0.4324.150 (Official Build) (64-bit))
A debug-friendly version is in here (no need to comment out code, as described earlier):
https://github.com/NeoPythonProjects/TestDownload.git
This works:

run about.py from within about.py
browser opens local host (file not found, but that's ok)
manually add '/about' to URL
about page opens showing download file hyperlink
click download hyper link, csv file opens up

This does NOT work:

run main.py
browser opens localhost (no error this time, but showing home page which has a div and a hyperlink to about page)
on home  page click hyperlink to about page
about page opens
click 'donwload file'
result: "Failed - No File" - description on downloaded file icon in download bar

about.py
`import justpy as jp
class About:
path = "/about"
@classmethod
def serve(cls, req):
    wp = jp.QuasarPage()
    download_link = jp.A(a=wp, text="Download file About", href="/static/WAO_db_downloadtest.csv",
                         download="WAO_test_about.csv")
    return wp

if name == "main":
jp.Route(About.path, About.serve)
jp.justpy(port=8001)`
main.py
`import justpy as jp
from webapp.about import About
from webapp.home import Home
jp.Route(Home.path, Home.serve)
jp.Route(About.path, About.serve)
jp.justpy(port=8000)`

Hi, did this updated request ever reach you? It was posted 8 days ago. thank you.

I'm sorry, I can't replicate the problem. Perhaps if you could create a very simple example that shows this bug I could be more helpful.

Hi,
thanks for getting back to me.
I'm not sure how to simplify it. The github project is as simple as it gets: it has 2 web-pages: (i) a home page which has nothing on it but a hyperlihnk to the 'about' page, and (ii) the 'about' page that has nothing on it but a download link.
Download from the 'about' page works if you run about.py, and manually add '/about' the URL. It does not if you run main.py and go to the 'about' page via hyperlink from the home page.
If that works for you then we're stuck, and I'll have to recode in flask.
Thanks for your help.

As stated in the documentation the default static route is /static
https://github.com/justpy-org/justpy/blob/286424c9f8b55bc6d71187fcaeb6572a222fd22f/docs/tutorial/static.md?plain=1#L7
and the directory serving the default route is the current working directory of the main function.
https://github.com/justpy-org/justpy/blob/286424c9f8b55bc6d71187fcaeb6572a222fd22f/docs/tutorial/static.md?plain=1#L13
If you want to make the directory os.getcwd()+/static the serving directory for /static create the file justpy.env in your current working directory and configure the static directory as follows
STATIC_DIRECTORY="./static"

authors: NeoPythonProjects elimintz tholzheim

repo: justpy-org/justpy


text:
Add JustList: {JustList name}

https://github.com/justswaporg/justlists/example.justlists.ts
Checklist

[x] I understand that this is not the place to request a token listing.
[x] I have tested that my JustList is compatible by pasting the URL into the add a list UI at justswap.org.
[x] I understand that filing an issue or adding liquidity does not guarantee addition to the justlists website.

Please provide the following information for your token.
JustList URL must be HTTPS.
JustList URL:
JustList Name:
Link to the official homepage of the JustList manager:

Sorry, your issue will be closed as you did not submit your information in the correct format.

repo: justswaporg/justlists


text:
Add JustList: {JustList name}

Before submission deletes this line:
THIS IS NOT A TOKEN LISTING REQUEST FORM. IF YOU DO NOT FOLLOW THE FORMAT OR MAKE A GENERIC TOKEN REQUEST YOUR ISSUE WILL BE DELETED WITHOUT COMMENT
YOUR JUSTLIST MUST FOLLOW THE JSON SPECIFICATION
https://github.com/justswaporg/justlists/blob/main/example.justlists.ts
Checklist

[ ] I understand that this is not the place to request a token listing.
[ ] I have tested that my JustList is compatible by pasting the URL into the add a list UI at justswap.org.
[ ] I understand that filing an issue or adding liquidity does not guarantee addition to the justlists website.

Please provide the following information for your token.
JustList URL must be HTTPS.
JustList URL:
JustList Name:
Link to the official homepage of the JustList manager:

Please submit the correct information, invalid information will cause the issue to close


text:
🛑 Journals is down

In c48cbce, Journals (https://tecnoscientifica.com/journal/tasp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Journals is back up in 012608f after 8 minutes.

repo: justudin/tsp-status


text:
jobs-api doc: fix example to use view0 instead of sink0

@mstemm

lgtm.

source: gharchive/pull-request

authors: go-oleg mstemm

repo: juttle/juttle-service


text:
Add json module

A draft for implementing Json module for Juttle.
The reasoning behind introducing a Json module is that adapters can produce serialised JSON values, which the user might want to parse, e.g. in the cases when the JSON type cannot be inferred from the schema.
There are two open questions:

how should we report parse errors from JSON parser? As a warning?
there seems to be a bug in juttle-spec dealing with nested objects, as mocha outputs (this can be observed when running the tests):

    -      {
    -        "key": "value"
    -      }
    +      [
    +        [Function]
    +      ]

cc: @dmajda - could you please take a look if this is moving in the right direction?
cc: @demmer

how should we report parse errors from JSON parser? As a warning?

The module function should throw a Juttle exception with proper code (i.e. it should wrap the parser exception). This means that when parsing blows in compile-time, an error based on this exception will be produced, and when it blows in runtime (e.g. in put), a warning & point drop will automagically occur.

there seems to be a bug in juttle-spec dealing with nested objects, as mocha outputs (this can be observed when running the tests)

Please file an issue with a minimal test case and feel free to either fix this yourself or assign to me.

could you please take a look if this is moving in the right direction?

It is.

Fixed the throw, renamed to JSON, the other issues were fixed in referenced PRs.

Lint fixes, squashed the commits to be atomic.

+1

authors: bkutil dmajda

repo: juttle/juttle


text:
Enhance

@pcarn, wanna look this over and see if it's more up your alley?

Fixed

For reference, this fixes https://github.com/jvarness/hubot-yelp/issues/2

Looks good. I think something that would make it better would be to let us configure the address of our office, and have it find places close to us, instead of general KC. Here's some code that does that if you want to check it out. https://github.com/github/hubot-scripts/blob/master/src/scripts/yelp.coffee

Also, for the command, I would have the regex say that'?s so if people use an apostrophe it will still accept it.

I'll consider using the optional apostrophe in a later release.
As for using the address of the campus, I think we can use the HUBOT_YELP_DEFAULT_LOCATION setting. We can set that location to the office if we want.
Also, I think what we could add to supplement the script might be allowing us to specify a radius in the configuration. I'm not sure what the default is, but we can discuss this later.

authors: jvarness pcarn

repo: jvarness/hubot-yelp

license: mit


text:
有办法增加一个提交任务时指定下载目录的功能吗

如题

无


text:
Ensure journeys are not walking only

Currently as our locations are within 20 minutes of each other by walking the API is returning the walking time instead of the time via public transport as often this is the quickest way to travel from A to B.
Need to work out how to exclude this walking only journeys without completely excluding them as the travel time by public transport may be those that vary from private transport times. We could do this by looking into if we can force the API to give public transport only times (walking may be part of the journey but not all of the journey).
When getting the results from the API can we also get the mode of transport used.

Could limit the time walking to a percentage of the actual duration?
https://playground.traveltime.com/travel-time-distance-matrix

departure_searches.
properties
array[string] | optional
Properties to be returned about the shapes.
Possible values: is_only_walking.
When selected, the is_only_walking parameter will return a value of True if a journey only involves walking (e.g for a public transport search in an area with no public transport available).

One idea to filter walking only journeys out of our data is to use the distance_breakdown parameter. Filter out the distance travelled by each mode of transport. If walking distance > public_transport distance then remove the journey.
These are not walking only journeys but are journeys which rationally people would not take.

According to the department for transport National Travel Survey: England 2018 the average distance (miles) and average number of trips walked per person per year is 210 and 262 respectively. From this data we have calculated the average walking trip to be 1.3km or 0.8 miles. We are considering using 1.3km as a minimum travel distance to try and account for trips which people would rationally walk and use transport for. This should be a variable in the config to ensure flexibility to change this for different analysis purposes.

Walking only journeys may be considered public transport?
Perhaps collect time to walk as well -> calculate reluctance to walk eg. if walk time is 3x public transport time

Currently analysing points in Taunton to try and decide on a method on capturing shorter journeys. Looking at variables you can specify within the API eg. max walk time - API Documentation.

Hey @chloe-murrell I am wondering why that bus journey is 53 minutes, when walking along the same route is quicker. How could that be? Is it due to wait time for example?

Walking only journeys may be considered public transport?

I think when we are comparing the public transport options to the private transport option, if there is no public transport that is faster than walking, then that means the public transport option is lacking and so walking becomes the default option for the traveler and the time it would take to walk that journey can be recorded.
So a person going from A to B in private transport would take the car. The same journey by public transport might be taken by bus if there's a viable (not too indirect) route, but if no route exists then they would probably walk. Even if it is too far to plausibly walk, that is the only available option where no private transport is available.

Perhaps collect time to walk as well -> calculate reluctance to walk eg. if walk time is 3x public transport time

On multi-leg journeys (i.e. something like walk-bus-walk) a reluctance to walk parameter would be really helpful to keep journey plans realistic. We do not want journey times like 40 mins walk + 4 mins bus (one stop) + 40 mins walk! Especially if there's a much more direct walking-only journey.
Is your proposal that we force a walking-only journey and measure that? Then if the time is 3x greater than the alternative (e.g. walk-bus-walk) journey, we would choose the walking option? If so, I think that sounds sensible and something we can include in our methodology.
We would need to make sure the multiplier is an adjustable parameter in the config as 3x would be pretty lenient, and capture some journeys that I think people would be less-likely to take. Nonetheless it's a good start.
Maybe to avoid making an API call for a (forced) walking-only journey for every journey we query, we set a check that only makes that call when the time taken for the walking parts of the journey are equal to or more than the public transport parts.
Force walk-only logic:

Walking duration (start)
Public transport duration
Walking duration (end)
walk>=public?
Force Walk-only?

10
25
10
False
False

10
25
15
True
True

So in the second example, there is a walk-only API call made because the walking time is more than the public transport time. So now we need to decide whether to record that, or the original walk-bus-walk journey - the total time for this journey is 50 mins and the actual time on public transport is 25 mins.
Record walk-only result logic: using two example walk duration times of 120 mins and 180 mins:

Public trans duration (m)
Walk trans duration (m)
walk 3x public?
Record Walk-only?

50
120
False
True

50
180
True
False

Or, should we be focusing on just the public transport leg of this journey? ie using 25 mins as the test.:

Public trans duration (m)
Walk trans duration (m)
walk 3x public?
Record Walk-only?

25
120
True
False

25
180
True
False

Please let me know your thoughts.
By the way, if you want to make tables like this use: https://www.tablesgenerator.com/markdown_tables

@MartinWoodONS
We are particularly wondering how we can implement some kind of walkReluctance type parameter, like OTP has. Are you aware of any kind of logic that is used that we could implement? I have searched the documentation and user forums but found nothing.
And on that subject, do you think that OTP can do everything that we need here, like:

plan A-B and multi-stage routes like  A-B-C -A
one to many results, like A-B, A-C, A-D.....
accurately compare private transport and public transport travel times using realistic travel data?
reduced or remove badly optimised routes that a human wouldn't take (which is what we are struggling with with the current API), e.g. dog leg routes to take one stop on the bus

If it can do all of that, how far away are you from creating a docker container that we could run on GCP?
Thanks!

NEXT STEPS/FUTURE ISSUES

Call the API code for Newport locations twice (once for walking and once for public transport) compare journey times and see how many are walking only.
Find a way to store data from API call which shows breakdown of journey eg. time spent travelling by train vs bus vs walking
Work on method to implement walk reluctance?

Walking only journeys should be included but limited to a certain time which the "average" person would walk. Too start with we will set this at 40minutes - (maximum walking time).
Time saving parameter if travelling by public transport saves more than 12 minutes then they will choose public transport over walking. This should also eliminate journeys which spend a very little amount of time on public transport (eg. one stop).

Consider this source - https://www.mendip.gov.uk/media/26802/AP4-1B-Tetlow-King-for-Waddeton-Park-How-far-do-people-walk/pdf/AP4-1B_-Tetlow_King_for_Waddeton_Park-_How_far_do_people_walk.pdf?m=637429619250730000#:~:text=The%20average%20length%20of%20a,this%20varies%20according%20to%20location.

[ ] Once issues #79 #80 are completed review this mind map and create tickets for step 2 and 3 if required.

authors: chloe-murrell chloemurrell jwestw


text:
Redirect on proxied server returns location with http protocol instead of https

In our configuration we use nginx-proxy to add SSL to the non secure backend. In our application we have some places, where redirect is sent. Currently our server configuration builds location sent in redirect as an absolute URL, which is producing URL starting with HTTP. This is causing problems on some browsers, that handle such redirects improperly.
Currently we have to override the whole nginx.tmpl to put:
proxy_redirect http:// https://;

just under "proxy_pass" declaration in SSL config, which is rewriting locations returned in redirects starting with HTTP.
It would be very good if you could fix this issue internally in the nginx-proxy.

Can you do a protocol relative redirect in your application? e.g. redirect to //domain.com/...

Not really, currently I am using Tomcat as a container and its internal implementation of redirect builds the absolute URL when sending 302 code.

proxy_redirect http:// https:// might be a bit heavy handed to include in the default image.  If I understand it correctly, that would replace all http:// with https:// for any redirects from the backend which could prevent redirecting to valid http:// locations on other domains.
If it's proxy_redirect http://domain.com https://domain.com that might be better but that would still prevent some possibly valid HTTPS to HTTP redirects.  Not sure.
Usually a proxy or load-balancer sets a X-Forwarded-Proto or a Forwarded header that you're backend can use to determine the protocol to redirect to.  This might already be passed through via nginx though.

@jwilder You mean like this? https://github.com/jwilder/nginx-proxy/blob/master/nginx.tmpl#L1-L6 :wink: :+1:

@md5 Aha! Yes, I forgot that was there.

@jwilder Just noticed that link to RFC 7239 in your previous comment. It might actually be good for nginx-proxy to start setting a Forwarded header in addition to X-Forwarded-Proto and X-Forwarded-For.

Our case is a bit more complicated, because on one environment we use nginx-proxy and on the other one we use different proxy, which has this redirect URL rewrite function enabled and we want to keep our application configuration simple and consistent. We were wondering whether this "proxy_redirect" option could become a configuration option in nginx-proxy if you don't want to enable it by default?

@montgomery1944 could solve it?

@jaimess, the issue should be resolved by using X-Forwarded-Proto in web server to build a proper Location header for redirect.

Proto header did the trick for just proxy calls. Redirections needed 2 more properties in connector tag in tomcat server.xml file: proxyPort="443" scheme="https"

repo: jwilder/nginx-proxy


text:
using a composite manager makes background transparent

Which operating system does the issue occur on?
Ubuntu 16.04, awesome wm
If on linux, are you using X11 or Wayland?
I use X11
If I run one of compton, xcompmgr or unagi the background of an alacritty window gets transparent.

This should only be the case if you've setup your composite manager to make windows transparent.
I'm using compton myself and it seems to work just as intended.

This sounds like it's working as intended?

To clarify: in my setup no focused windows get an opacity of 0.85, while focused get 1.0. All other windows work as expected - they get semi transparent when not focused. Alacrity windows behave always the same way: their background is transparent==opacity of 0.0, foreground color is always the same focused or not focused.

Could you share the relevant bits of .compton.conf to help reproducing this?

I have no config

left is a focused alacritty window and right is a urxvt window, while compton is running.

@diefans can you please post your alacritty.yml?

# Configuration for Alacritty, the GPU enhanced terminal emulator

# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty it self.
env:
  # TERM env customization.
  #
  # If this property is not set, alacritty will set it to xterm-256color.
  #
  # Note that some xterm terminfo databases don't declare support for italics.
  # You can verify this by checking for the presence of `smso` and `sitm` in
  # `infocmp xterm-256color`.
  TERM: xterm-256color

# Window dimensions in character columns and lines
# Falls back to size specified by window manager if set to 0x0.
# (changes require restart)
dimensions:
  columns: 80
  lines: 24

# Adds this many blank pixels of padding around the window
# Units are physical pixels; this is not DPI aware.
# (change requires restart)
padding:
  x: 2
  y: 2

# Display tabs using this many cells (changes require restart)
tabspaces: 8

# When true, bold text is drawn using the bright variant of colors.
draw_bold_text_with_bright_colors: false

# Font configuration (changes require restart)
#
# Important font attributes like antialiasing, subpixel aa, and hinting can be
# controlled through fontconfig. Specifically, the following attributes should
# have an effect:
#
# * hintstyle
# * antialias
# * lcdfilter
# * rgba
#
# For instance, if you wish to disable subpixel antialiasing, you might set the
# rgba property to "none". If you wish to completely disable antialiasing, you
# can set antialias to false.
#
# Please see these resources for more information on how to use fontconfig
#
# * https://wiki.archlinux.org/index.php/font_configuration#Fontconfig_configuration
# * file:///usr/share/doc/fontconfig/fontconfig-user.html
font:
  # The normal (roman) font face to use.
  normal:
    family: Fantasque Sans Mono # should be "Menlo" or something on macOS.
    # family: Fantasque Sans Mono # should be "Menlo" or something on macOS.
    # Style can be specified to pick a specific face.
    style: Regular

  # The bold font face
  bold:
    family: Fantasque Sans Mono # should be "Menlo" or something on macOS.
    # Style can be specified to pick a specific face.
    style: Bold

  # The italic font face
  italic:
    family: Fantasque Sans Mono # should be "Menlo" or something on macOS.
    # Style can be specified to pick a specific face.
    style: Italic

  # Point size of the font
  size: 12.0

  # Offset is the extra space around each character. offset.y can be thought of
  # as modifying the linespacing, and offset.x as modifying the letter spacing.
  offset:
    x: 0.0
    y: 0.0

  # Glyph offset determines the locations of the glyphs within their cells with
  # the default being at the bottom. Increase the x offset to move the glyph to
  # the right, increase the y offset to move the glyph upward.
  glyph_offset:
    x: 0.0
    y: 0.0

  # OS X only: use thin stroke font rendering. Thin strokes are suitable
  # for retina displays, but for non-retina you probably want this set to
  # false.
  use_thin_strokes: true

# Should display the render timer
render_timer: false

# Use custom cursor colors. If true, display the cursor in the cursor.foreground
# and cursor.background colors, otherwise invert the colors of the cursor.
custom_cursor_colors: false

# Colors (Tomorrow Night Bright)
colors:
  # Default colors
  primary:
    background: '0x120707'
    foreground: '0xfffedc'

  # Colors the cursor will use if `custom_cursor_colors` is true
  cursor:
    text: '0x000000'
    cursor: '0xffffff'

  # Normal colors
  normal:
    black:   '0x000000'
    red:     '0xd54e53'
    green:   '0xb9ca4a'
    yellow:  '0xe6c547'
    blue:    '0x7aa6da'
    magenta: '0xc397d8'
    cyan:    '0x70c0ba'
    white:   '0xffffff'

  # Bright colors
  bright:
    black:   '0x666666'
    red:     '0xff3334'
    green:   '0x9ec400'
    yellow:  '0xe7c547'
    blue:    '0x7aa6da'
    magenta: '0xb77ee0'
    cyan:    '0x54ced6'
    white:   '0xffffff'

  # Dim colors (Optional)
  dim:
    black:   '0x333333'
    red:     '0xf2777a'
    green:   '0x99cc99'
    yellow:  '0xffcc66'
    blue:    '0x6699cc'
    magenta: '0xcc99cc'
    cyan:    '0x66cccc'
    white:   '0xdddddd'

# Visual Bell
#
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once
# rung, the terminal background will be set to white and transition back to the
# default background color. You can control the rate of this transition by
# setting the `duration` property (represented in milliseconds). You can also
# configure the transition function by setting the `animation` property.
#
# Possible values for `animation`
# `Ease`
# `EaseOut`
# `EaseOutSine`
# `EaseOutQuad`
# `EaseOutCubic`
# `EaseOutQuart`
# `EaseOutQuint`
# `EaseOutExpo`
# `EaseOutCirc`
# `Linear`
#
# To completely disable the visual bell, set its duration to 0.
#
visual_bell:
  animation: EaseOutExpo
  duration: 0

# Background opacity
background_opacity: 1.0

# Mouse bindings
#
# Currently doesn't support modifiers. Both the `mouse` and `action` fields must
# be specified.
#
# Values for `mouse`:
# - Middle
# - Left
# - Right
# - Numeric identifier such as `5`
#
# Values for `action`:
# - Paste
# - PasteSelection
# - Copy (TODO)
mouse_bindings:
  - { mouse: Middle, action: PasteSelection }

mouse:
  double_click: { threshold: 300 }
  triple_click: { threshold: 300 }

selection:
  semantic_escape_chars: ",│`|:\"' ()[]{}<>"

hide_cursor_when_typing: false

# Style of the cursor
#
# Values for 'cursor_style':
# - Block
# - Underline
# - Beam
cursor_style: Block

# Live config reload (changes require restart)
live_config_reload: true

# Shell
#
# You can set shell.program to the path of your favorite shell, e.g. /bin/fish.
# Entries in shell.args are passed unmodified as arguments to the shell.
# shell:
#   program: /bin/bash
#   args:
#     - --login

# Key bindings
#
# Each binding is defined as an object with some properties. Most of the
# properties are optional. All of the alphabetical keys should have a letter for
# the `key` value such as `V`. Function keys are probably what you would expect
# as well (F1, F2, ..). The number keys above the main keyboard are encoded as
# `Key1`, `Key2`, etc. Keys on the number pad are encoded `Number1`, `Number2`,
# etc.  These all match the glutin::VirtualKeyCode variants.
#
# Possible values for `mods`
# `Command`, `Super` refer to the super/command/windows key
# `Control` for the control key
# `Shift` for the Shift key
# `Alt` and `Option` refer to alt/option
#
# mods may be combined with a `|`. For example, requiring control and shift
# looks like:
#
# mods: Control|Shift
#
# The parser is currently quite sensitive to whitespace and capitalization -
# capitalization must match exactly, and piped items must not have whitespace
# around them.
#
# Either an `action`, `chars`, or `command` field must be present.
#   `action` must be one of `Paste`, `PasteSelection`, `Copy`, or `Quit`.
#   `chars` writes the specified string every time that binding is activated.
#     These should generally be escape sequences, but they can be configured to
#     send arbitrary strings of bytes.
#   `command` must be a map containing a `program` string, and `args` array of
#     strings. For example:
#     - { ... , command: { program: "alacritty", args: ["-e", "vttest"] } }
#
# Want to add a binding (e.g. "PageUp") but are unsure what the X sequence
# (e.g. "\x1b[5~") is? Open another terminal (like xterm) without tmux,
# then run `showkey -a` to get the sequence associated to a key combination.
key_bindings:
  - { key: V,        mods: Control|Shift,    action: Paste               }
  - { key: C,        mods: Control|Shift,    action: Copy                }
  - { key: Q,        mods: Command, action: Quit                         }
  - { key: W,        mods: Command, action: Quit                         }
  - { key: Insert,   mods: Shift,   action: PasteSelection               }
  - { key: Key0,     mods: Control, action: ResetFontSize                }
  - { key: Equals,   mods: Control, action: IncreaseFontSize             }
  - { key: Subtract, mods: Control, action: DecreaseFontSize             }
  - { key: Home,                    chars: "\x1bOH",   mode: AppCursor   }
  - { key: Home,                    chars: "\x1b[H",   mode: ~AppCursor  }
  - { key: End,                     chars: "\x1bOF",   mode: AppCursor   }
  - { key: End,                     chars: "\x1b[F",   mode: ~AppCursor  }
  - { key: PageUp,   mods: Shift,   chars: "\x1b[5;2~"                   }
  - { key: PageUp,   mods: Control, chars: "\x1b[5;5~"                   }
  - { key: PageUp,                  chars: "\x1b[5~"                     }
  - { key: PageDown, mods: Shift,   chars: "\x1b[6;2~"                   }
  - { key: PageDown, mods: Control, chars: "\x1b[6;5~"                   }
  - { key: PageDown,                chars: "\x1b[6~"                     }
  - { key: Tab,      mods: Shift,   chars: "\x1b[Z"                      }
  - { key: Back,                    chars: "\x7f"                        }
  - { key: Back,     mods: Alt,     chars: "\x1b\x7f"                    }
  - { key: Insert,                  chars: "\x1b[2~"                     }
  - { key: Delete,                  chars: "\x1b[3~"                     }
  - { key: Return,   mods: Shift,   chars: "\x1b[1;2Q"                     }
  - { key: Return,   mods: Control, chars: "\x1b\x0d"                     }
  - { key: Left,     mods: Shift,   chars: "\x1b[1;2D"                   }
  - { key: Left,     mods: Control, chars: "\x1b[1;5D"                   }
  - { key: Left,     mods: Alt,     chars: "\x1b[1;3D"                   }
  - { key: Left,     mods: Alt|Control,     chars: "\x1b[1;7D"                   }
  - { key: Left,     mods: Alt|Shift,     chars: "\x1b[1;9D"                   }
  - { key: Left,                    chars: "\x1b[D",   mode: ~AppCursor  }
  - { key: Left,                    chars: "\x1bOD",   mode: AppCursor   }
  - { key: Right,    mods: Shift,   chars: "\x1b[1;2C"                   }
  - { key: Right,    mods: Control, chars: "\x1b[1;5C"                   }
  - { key: Right,    mods: Alt,     chars: "\x1b[1;3C"                   }
  - { key: Right,    mods: Alt|Control,     chars: "\x1b[1;7C"                   }
  - { key: Right,    mods: Alt|Shift,     chars: "\x1b[1;9C"                   }
  - { key: Right,                   chars: "\x1b[C",   mode: ~AppCursor  }
  - { key: Right,                   chars: "\x1bOC",   mode: AppCursor   }
  - { key: Up,       mods: Shift,   chars: "\x1b[1;2A"                   }
  - { key: Up,       mods: Control, chars: "\x1b[1;5A"                   }
  - { key: Up,       mods: Alt,     chars: "\x1b[1;3A"                   }
  - { key: Up,       mods: Alt|Control,     chars: "\x1b[1;7A"                   }
  - { key: Up,       mods: Alt|Shift,     chars: "\x1b[1;9A"                   }
  - { key: Up,                      chars: "\x1b[A",   mode: ~AppCursor  }
  - { key: Up,                      chars: "\x1bOA",   mode: AppCursor   }
  - { key: Down,     mods: Shift,   chars: "\x1b[1;2B"                   }
  - { key: Down,     mods: Control, chars: "\x1b[1;5B"                   }
  - { key: Down,     mods: Alt,     chars: "\x1b[1;3B"                   }
  - { key: Down,     mods: Alt|Control,     chars: "\x1b[1;7B"                   }
  - { key: Down,     mods: Alt|Shift,     chars: "\x1b[1;9B"                   }
  - { key: Down,                    chars: "\x1b[B",   mode: ~AppCursor  }
  - { key: Down,                    chars: "\x1bOB",   mode: AppCursor   }
  - { key: F1,                      chars: "\x1bOP"                      }
  - { key: F2,                      chars: "\x1bOQ"                      }
  - { key: F3,                      chars: "\x1bOR"                      }
  - { key: F4,                      chars: "\x1bOS"                      }
  - { key: F5,                      chars: "\x1b[15~"                    }
  - { key: F6,                      chars: "\x1b[17~"                    }
  - { key: F7,                      chars: "\x1b[18~"                    }
  - { key: F8,                      chars: "\x1b[19~"                    }
  - { key: F9,                      chars: "\x1b[20~"                    }
  - { key: F10,                     chars: "\x1b[21~"                    }
  - { key: F11,                     chars: "\x1b[23~"                    }
  - { key: F12,                     chars: "\x1b[24~"                    }
  - { key: F13,                     chars: "\x1bO2P"                    }
  - { key: F14,                     chars: "\x1bO2Q"                    }
  - { key: F15,                     chars: "\x1bO2R"                    }
  #- { key: F16,                     chars: "\x1bO2S"                    }
  #- { key: F17,                     chars: "\x1b[15;2~"                    }
  #- { key: F18,                     chars: "\x1b[17;2~"                    }
  #- { key: F19,                     chars: "\x1b[18;2~"                    }
  #- { key: F20,                     chars: "\x1b[19;2~"                    }
  #- { key: F21,                     chars: "\x1b[20;2~"                    }
  #- { key: F22,                     chars: "\x1b[21;2~"                    }
  #- { key: F23,                     chars: "\x1b[23;2~"                    }
  #- { key: F24,                     chars: "\x1b[24;2~"                    }
  #- { key: F25,                     chars: "\x1bO5P"                    }
  #- { key: F26,                     chars: "\x1bO5Q"                    }
  #- { key: F27,                     chars: "\x1bO5R"                    }
  #- { key: F28,                     chars: "\x1bO5S"                    }
  #- { key: F29,                     chars: "\x1b[15;5~"                    }
  #- { key: F30,                     chars: "\x1b[17;5~"                    }
  #- { key: F31,                     chars: "\x1b[18;5~"                    }
  #- { key: F32,                     chars: "\x1b[19;5~"                    }
  #- { key: F33,                     chars: "\x1b[20;5~"                    }
  #- { key: F34,                     chars: "\x1b[21;5~"                    }
  #- { key: F35,                     chars: "\x1b[23;5~"                    }
  #- { key: F36,                     chars: "\x1b[24;5~"                    }
  #- { key: F37,                     chars: "\x1bO6P"                    }
  #- { key: F38,                     chars: "\x1bO6Q"                    }
  #- { key: F39,                     chars: "\x1bO6R"                    }
  #- { key: F40,                     chars: "\x1bO6S"                    }
  #- { key: F41,                     chars: "\x1b[15;6~"                    }
  #- { key: F42,                     chars: "\x1b[17;6~"                    }
  #- { key: F43,                     chars: "\x1b[18;6~"                    }
  #- { key: F44,                     chars: "\x1b[19;6~"                    }
  #- { key: F45,                     chars: "\x1b[20;6~"                    }
  #- { key: F46,                     chars: "\x1b[21;6~"                    }
  #- { key: F47,                     chars: "\x1b[23;6~"                    }
  #- { key: F48,                     chars: "\x1b[24;6~"                    }
  - { key: F1,       mods: Shift,   chars: "\x1b[1;2P"                   }
  - { key: F2,       mods: Shift,   chars: "\x1b[1;2Q"                   }
  - { key: F3,       mods: Shift,   chars: "\x1b[1;2R"                   }
  - { key: F4,       mods: Shift,   chars: "\x1b[1;2S"                   }
  - { key: F5,       mods: Shift,   chars: "\x1b[15;2~"                  }
  - { key: F6,       mods: Shift,   chars: "\x1b[17;2~"                  }
  - { key: F7,       mods: Shift,   chars: "\x1b[18;2~"                  }
  - { key: F8,       mods: Shift,   chars: "\x1b[19;2~"                  }
  - { key: F9,       mods: Shift,   chars: "\x1b[20;2~"                  }
  - { key: F10,      mods: Shift,   chars: "\x1b[21;2~"                  }
  - { key: F11,      mods: Shift,   chars: "\x1b[23;2~"                  }
  - { key: F12,      mods: Shift,   chars: "\x1b[24;2~"                  }
  - { key: F1,       mods: Control, chars: "\x1b[1;5P"                   }
  - { key: F2,       mods: Control, chars: "\x1b[1;5Q"                   }
  - { key: F3,       mods: Control, chars: "\x1b[1;5R"                   }
  - { key: F4,       mods: Control, chars: "\x1b[1;5S"                   }
  - { key: F5,       mods: Control, chars: "\x1b[15;5~"                  }
  - { key: F6,       mods: Control, chars: "\x1b[17;5~"                  }
  - { key: F7,       mods: Control, chars: "\x1b[18;5~"                  }
  - { key: F8,       mods: Control, chars: "\x1b[19;5~"                  }
  - { key: F9,       mods: Control, chars: "\x1b[20;5~"                  }
  - { key: F10,      mods: Control, chars: "\x1b[21;5~"                  }
  - { key: F11,      mods: Control, chars: "\x1b[23;5~"                  }
  - { key: F12,      mods: Control, chars: "\x1b[24;5~"                  }
  - { key: F1,       mods: Alt,     chars: "\x1b[1;6P"                   }
  - { key: F2,       mods: Alt,     chars: "\x1b[1;6Q"                   }
  - { key: F3,       mods: Alt,     chars: "\x1b[1;6R"                   }
  - { key: F4,       mods: Alt,     chars: "\x1b[1;6S"                   }
  - { key: F5,       mods: Alt,     chars: "\x1b[15;6~"                  }
  - { key: F6,       mods: Alt,     chars: "\x1b[17;6~"                  }
  - { key: F7,       mods: Alt,     chars: "\x1b[18;6~"                  }
  - { key: F8,       mods: Alt,     chars: "\x1b[19;6~"                  }
  - { key: F9,       mods: Alt,     chars: "\x1b[20;6~"                  }
  - { key: F10,      mods: Alt,     chars: "\x1b[21;6~"                  }
  - { key: F11,      mods: Alt,     chars: "\x1b[23;6~"                  }
  - { key: F12,      mods: Alt,     chars: "\x1b[24;6~"                  }
  - { key: F1,       mods: Super,   chars: "\x1b[1;3P"                   }
  - { key: F2,       mods: Super,   chars: "\x1b[1;3Q"                   }
  - { key: F3,       mods: Super,   chars: "\x1b[1;3R"                   }
  - { key: F4,       mods: Super,   chars: "\x1b[1;3S"                   }
  - { key: F5,       mods: Super,   chars: "\x1b[15;3~"                  }
  - { key: F6,       mods: Super,   chars: "\x1b[17;3~"                  }
  - { key: F7,       mods: Super,   chars: "\x1b[18;3~"                  }
  - { key: F8,       mods: Super,   chars: "\x1b[19;3~"                  }
  - { key: F9,       mods: Super,   chars: "\x1b[20;3~"                  }
  - { key: F10,      mods: Super,   chars: "\x1b[21;3~"                  }
  - { key: F11,      mods: Super,   chars: "\x1b[23;3~"                  }
  - { key: F12,      mods: Super,   chars: "\x1b[24;3~"                  }

Looks similar? https://github.com/jwilm/alacritty/issues/1059

@maximbaz I think so...

Thanks for the link @maximbaz
It appears the author of that other issue filed an issue upstream which has so far been ignored. https://github.com/tomaka/glutin/issues/984

I do wonder how useful the background_opacity setting in alacritty really is with the ability to set this up with compositors. I guess for macos it's nice.
But so far it has mainly created issues for me with windows flickering on resize and the issue mentioned in #1059 (and potentially this issue).
If this issue is solved by disabling transparency (as mentioned in #1059), it can probably be closed as duplicate.

The "native" alacritty's opacity is fancier than what compton can provide, compton can only apply a certain level of opacity on everything, while alacritty is being smart and renders some blocks with fully opaque, which although confuses some people, in my mind makes alacritty look better and improves readability (an example can be seen on the text ~/private/alacritty in the bottom of the screenshots below).
Some screenshots are in order 🙂
compton at opacity 95%:

alacritty at opacity 95%:

differences highlighted:

I do wonder how useful the background_opacity setting in alacritty really is with the ability to set this up with compositors. I guess for macos it's nice.

Huh? Setting the transparency with your compositor causes the WHOLE window to have transparency applied, console contents, and all... That's not good, ideally, since text is then not as sharp.
I did notice something interesting however... Here I'm running xfce4 w/ compositing enabled, and am showing xterm w/ transset, xfce4-terminal, and alacritty (all with 0.92 opacity) but only alacritty even shows the opacity properly in the screenshot, though they all look very similar on my screen (aside from the text being slightly transparent in xterm due to transset)

I'm wondering if this isn't a compositor issue, actually...
Anyone else using xfce4's compositor and having issues? Works fine for me, aside from the screenshots not showing the actual background transparency. In the screenshot, the two bottom windows have less transparency than I see on the actual screen.
Makes me wonder if there's some kind of rendering issue that y'all are having on your screens, that's similar to the effect this screenshot is showing, where alacritty is actually lighter than the other windows, even though when I actually look at them, they all look correct.

@gordol I am not a native english speaker, but are you really questioning whether my screenshot shows exactly what my screen is showing or not and that my windows may "look correct", if I would "actually look at them"?
hmmm....

@diefans
I'm saying there is nuance in regards to how your particular compositor may be drawing windows to the screen. Especially with the reports of many users saying their windows flicker when resizing. I do not experience these issues with alacritty, for what that's worth.
What I see on the screen, and what my screenshot shows are not the same. I physically see way more transparency in the bottom two windows than the screenshot reflects.
I am not questioning whether your screenshot reflects what you say you see. My point is, your compositor may be the problem, not Nvidia, or alacritty, nor even glutin.

@gordol I tried it with xcompmgr, unagi and compton - all with the same result. I also tried the archlinux fork with scrolling from https://github.com/neon64/alacritty, which works as expected but seems outdated. So there must be introduced something, which leads to my issue.

Indeed, as noted above by @jwilm, I believe the issue is triggered by the recent glutin upgrade: https://github.com/tomaka/glutin/issues/984 An older check out of alacritty would be using an older version of glutin libs.

I'm gonna close this since it seems to be a duplicate of #1059. Just easier to keep the discussion in one place.

authors: chrisduerr diefans gordol jwilm maximbaz

repo: jwilm/alacritty


text:
Weird input after windows move with Alt F7

Which operating system does the issue occur on?
Solus Linux 4 Fortitude
If on linux, are you using X11 or Wayland?
X11

How to replicate this ?
Disable the decorations, open Alacritty and try use Alt F7 when you are focused on Alacritty. After that move it with the mouse or keyboard arrows and try to type a command.
Expected result: good input
Actual result: bad input, with ^ characters
Note: After waiting around 1 minute it accepts input the right way
Note1: This is happening only when the decorations are turned off.
Note2: It accepts input only if I start with the letter n and it puts in the terminal the character ':'

I found the problem to this issue ! It is not Alacritty's fault, it is WM's. Alt-F7 and dragging the window is not the proper way of moving the window.
Try using Alt(or Super key) and left click of the mouse and move the window.
I close this issue as it is not an Alacritty bug, it's more a env bug.


text:
Dbudzinski/fix form component

Description
This PR touches a lot of files, but the bulk of the changes are in the Form component.
The changes in Checkbox, DateField, DropDown, Radio, and TextField all are to abstract the "HelperText" functionality into a common reusable component.
The changes in the random .scss files are just to clean up errors and warnings.
Lastly, the changes in Form, FormSection, and Account all relate to redesigning the logic of the form component.  I moved the section logic that was in Account to be built into Form and FormSection.  I also moved a lot of the boilerplate (buttons, events, layout, etc.) out of Account and into the Form so that the reusable Form provides more complete, encapsulated functionality.  The Form serves as a common context provider to pass state into all of the child sections.  Then each section is a fairly independent entity, each with their own layout, buttons, submit action, etc.  As a result, Account only contains the logic and layout specific to the User values being edited on this page.
Steps completed:
According to our definition of done, I have completed the following steps:

[ ] User stories met
[ ] Storybook stories
[ ] Unit tests added
[x] Linting passing
[x] Unit tests passing
[ ] Docs updated (including config and env variables)
[x] Translations added
[x] UX tested
[x] Browsers / platforms tested
[x] Rebased & ready to merge without conflicts
[x] Reviewed own code

Thank you! I still suggest to handle all the submit logic in one place, as it seems to be more of the Form than of FormSection logic. Other things look great except some small issues.

So I would agree about the submit logic, except that different sections submit to different endpoints, so having 1 common submit function forces coupling and input type concatenation that otherwise wouldn't need to exist. I tried to even go so far as to make the error return type fully generic with the return type of the submit method, but couldn't get it working in a clean enough way.

authors: AntonLantukh dbudzins

repo: jwplayer/ott-web-app


text:
Include types to most upstream modules

This PR adds types to the following files, as per https://github.com/jxnl/instructor/issues/390.
instructor/cli/files.py
instructor/cli/usage.py
instructor/exceptions.py

This ellipsis thing is amazing

repo: jxnl/instructor


text:
Doesn't work with vue-cli?

I am using nuxt.js to run my vue app with webpack. However I set up the plugin in nuxt.config.js and tried to modify the webpack resolve config, as well as tried to import the vue with compiler. However the error persists and the ellipsis component isn't available for me to use in my app. It seems related to the fact the code you wrote uses a template string instead of .vue?
Tried setting up webpack based on https://github.com/charliekassel/vuejs-datepicker/issues/32
Currently got it to work by copy and pasting your code and create my own ellipsis.vue component in my app.

@Anima-t3d thk i will change my rollup config

repo: jypblue/vue-ellipsis


text:
Fix for data race in generating request ids

This fixes a bug where calling random.Int31() from multiple go routines generates a race condition.
The problem is:
==================
WARNING: DATA RACE
Read at 0x00c420027460 by goroutine 281:
math/rand.(*rngSource).Int63()
/usr/local/Cellar/go/1.7.3/libexec/src/math/rand/rng.go:243 +0x156
math/rand.(*Rand).Int63()
/usr/local/Cellar/go/1.7.3/libexec/src/math/rand/rand.go:64 +0x51
math/rand.(*Rand).Int31()
/usr/local/Cellar/go/1.7.3/libexec/src/math/rand/rand.go:70 +0x38
github.com/k-sone/snmpgo.genRequestId()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/util.go:26 +0x66
github.com/k-sone/snmpgo.(*messageProcessingV1).PrepareOutgoingMessage()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/mprocessing.go:33 +0x87
github.com/k-sone/snmpgo.(*snmpEngine).SendPdu()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/engine.go:21 +0xfe
github.com/k-sone/snmpgo.(*SNMP).sendPdu.func1()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/client.go:320 +0xf2
github.com/k-sone/snmpgo.retry()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/util.go:56 +0x6d
github.com/k-sone/snmpgo.(*SNMP).sendPdu()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/client.go:322 +0x19d
github.com/k-sone/snmpgo.(*SNMP).GetRequest()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/client.go:162 +0xb3
...
Previous write at 0x00c420027460 by goroutine 13:
math/rand.(*rngSource).Int63()
/usr/local/Cellar/go/1.7.3/libexec/src/math/rand/rng.go:244 +0x1be
math/rand.(*Rand).Int63()
/usr/local/Cellar/go/1.7.3/libexec/src/math/rand/rand.go:64 +0x51
math/rand.(*Rand).Int31()
/usr/local/Cellar/go/1.7.3/libexec/src/math/rand/rand.go:70 +0x38
github.com/k-sone/snmpgo.genRequestId()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/util.go:26 +0x66
github.com/k-sone/snmpgo.(*messageProcessingV1).PrepareOutgoingMessage()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/mprocessing.go:33 +0x87
github.com/k-sone/snmpgo.(*snmpEngine).SendPdu()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/engine.go:21 +0xfe
github.com/k-sone/snmpgo.(*SNMP).sendPdu.func1()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/client.go:320 +0xf2
github.com/k-sone/snmpgo.retry()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/util.go:56 +0x6d
github.com/k-sone/snmpgo.(*SNMP).sendPdu()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/client.go:322 +0x19d
github.com/k-sone/snmpgo.(*SNMP).GetRequest()
/Users/whoami/Desktop/code/golang/src/github.com/k-sone/snmpgo/client.go:162 +0xb3
....
Goroutine 281 (running) created at:
...
Goroutine 13 (running) created at:
...
It is generated by do something similar to the following:
for ip := network.CIDR.IP.Mask(network.CIDR.Net.Mask);
network.CIDR.Net.Contains(ip);
IncrementIP(ip) {
go func(dupip net.IP) {
QuerySNMP(ip)
}(ip)
}
Putting a mutex around calls to rand.Int31() solves this issue.

Thank you very much! I had overlooked it :flushed:

I added a commit 22cd474bfb564a13bbcbda278d28d4970bb7bb95

authors: ascotan k-sone

repo: k-sone/snmpgo


text:
关于路由文件

router文件夹里面的index.js里的resolve具体的作用是什么呢

该写法主要功能是路由的异步加载，使用了webpack的API，import的封装是Promise，具体请参考
Promise
webpack import()

authors: k-water paddingC

repo: k-water/vue-music


text:
osX

Dear all,
I have installed nocturn on my osX 12.6 using brew and unfortunately it appears I cannot login .
The app login correctly, I am asked for the 2FA, I input the code, and then I am asked for the login again etc etc (tried 4 times)

So, I got a similar report in https://github.com/k0kubun/Nocturn/issues/115 (I'm sorry it was reported not in English), and the problem is that I can't reproduce it. I need you to investigate why it's happening or fix it yourself when I can't reproduce it.
Can you open a developer console, look for errors, and try to print the backtrace when an error happens if any?

Ok, I´ll have a look and document here.


text:
be more forgiving when trailing slash is specified in the directory path

apiVersion: vendir.k14s.io/v1alpha1
kind: Config
minimumRequiredVersion: 0.8.0
directories:
- path: vendor

and
apiVersion: vendir.k14s.io/v1alpha1
kind: Config
minimumRequiredVersion: 0.8.0
directories:
- path: vendor/

should be equivalent. in v0.10.0 trailing slash causes a fs rename error.

fixed in https://github.com/k14s/vendir/commit/1b7581a6802455a18dc44e8d88d7fc49d40517dc. will be included in the next release.

included in https://github.com/k14s/vendir/releases/tag/v0.11.0


text:
Support for output of github actions in annotation format

Proposal
I want to display an error message on the code if there is an error when incorporating runn into Github actions.
Allow errors to be output in the following format
https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message
As the development cycle of the product is to create a scenario that will end successfully locally and then push to git, the priority seems to be quite low.
The idea is to have a simple error output that can be used in various ways, not limited to Github actions.

Great !!
I thought it would be good to implement the switching of output by env GITHUB_ACTION directly into runn.

I thought it would be good to implement the switching of output by env GITHUB_ACTION directly into runn.

looking good.
I think phpstan and others behaved like that.


text:
tedlium3 prepare.sh FileNotFoundError

I am trying to download and train tedlium recipe, but I cannot successfully run prepare.sh
2022-09-06 21:38:54 (prepare.sh:51:main) Stage 0: Download data
2022-09-06 21:38:54 (prepare.sh:74:main) Stage 1: Prepare tedlium3 manifests
2022-09-06 21:38:54 (prepare.sh:85:main) Stage 2: Prepare musan manifests
2022-09-06 21:38:54 (prepare.sh:96:main) Stage 3: Compute fbank for tedlium3
2022-09-06 21:38:54 (prepare.sh:106:main) Stage 4: Compute fbank for musan
2022-09-06 21:38:54 (prepare.sh:115:main) Stage 5: Prepare phone based lang
2022-09-06 21:38:54,348 INFO [prepare_transcripts.py:84] Generating train.text
2022-09-06 21:38:54,348 INFO [prepare_transcripts.py:66] Loading data/manifests/supervisions_train.json!
Traceback (most recent call last):
File "/icefall/egs/tedlium3/ASR/./local/prepare_transcripts.py", line 95, in
main()
File "/icefall/egs/tedlium3/ASR/./local/prepare_transcripts.py", line 85, in main
prepare_transcripts(manifests_dir, lang_dir)
File "/icefall/egs/tedlium3/ASR/./local/prepare_transcripts.py", line 67, in prepare_transcripts
with open(supervisions_train, "r") as load_f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/manifests/supervisions_train.json'
How can I fix this error?

Please use
ls -lh data/manifests

to find the exact name for  supervisions_train.json and replace the one used in
prepare_transcripts.py:66.

The code is outdated. After you fix it, would you mind creating a PR for it?

12K Aug 15 15:18 musan_recordings_music.jsonl.gz
15K Aug 15 15:18 musan_recordings_noise.jsonl.gz
6.0K Aug 15 15:18 musan_recordings_speech.jsonl.gz
9.5K Aug 15 15:18 musan_supervisions_music.jsonl.gz
488 Aug 15 15:17 tedlium_recordings_dev.jsonl.gz
570 Aug 15 15:17 tedlium_recordings_test.jsonl.gz
67K Aug 15 15:17 tedlium_recordings_train.jsonl.gz
44K Aug 15 15:17 tedlium_supervisions_dev.jsonl.gz
72K Aug 15 15:17 tedlium_supervisions_test.jsonl.gz
14M Aug 15 15:17 tedlium_supervisions_train.jsonl.gz
This is the list I got when I use ls -lh data/manifests. I guess "tedlium_supervisions_train.jsonl.gz" is the corresponding file.
Should I extract this before replacing it?
PS: Just to be clear, if PR stands for a pull request, yes I can make a pull request after fixing this issue.

Should I extract this before replacing it?

No, you don't need to extract it.
please change the following code to
https://github.com/k2-fsa/icefall/blob/e18fa78c3a010fac4e6d3e83bdcff28197df04dc/egs/tedlium3/ASR/local/prepare_transcripts.py#L63-L71
to
import lhotse # move this line to the beginning of the file

train_text = Path(lang_dir) / "train.text"
sups = lhotse.load_manifest("data/manifests/tedlium_recordings_train.jsonl.gz")
for s in sups:
  texts.append(s.text)

Also, I think you can remove the variable texts and write s.text to the file directly.

PS: Just to be clear, if PR stands for a pull request, yes I can make a pull request after fixing this issue.

Yes, please create a pull-request to fix it.
Thanks!

(prepare.sh:115:main) Stage 5: Prepare phone based lang
INFO [prepare_transcripts.py:88] Generating train.text
Traceback (most recent call last):
File "/icefall/egs/tedlium3/ASR/./local/prepare_transcripts.py", line 99, in
main()
File "/icefall/egs/tedlium3/ASR/./local/prepare_transcripts.py", line 89, in main
prepare_transcripts(manifests_dir, lang_dir)
File "/icefall/egs/tedlium3/ASR/./local/prepare_transcripts.py", line 68, in prepare_transcripts
texts.append(s.text)
AttributeError: 'Recording' object has no attribute 'text'
Ok now I am getting this error...

Sorry, I have updated the code, please use
sups = lhotse.load_manifest(f"{manifests_dir}/tedlium_supervisions_train.jsonl.gz")

What is the difference between that and the third line of this code? They look the same to me.
import lhotse # move this line to the beginning of the file

train_text = Path(lang_dir) / "train.text"
sups = lhotse.load_manifest(f"{manifests_dir}/tedlium_supervisions_train.jsonl.gz")
for s in sups:
  texts.append(s.text)

I was using tedlium_recordings_train, not tedlium_supervisions_train.

You can check the edit history.

I see. Now I am getting this error message:
(prepare.sh:115:main) Stage 5: Prepare phone based lang
INFO [prepare_transcripts.py:88] Generating train.text
INFO [prepare_transcripts.py:70] Loading data/manifests/supervisions_train.json!
Traceback (most recent call last):
File "/icefall/egs/tedlium3/ASR/./local/prepare_transcripts.py", line 99, in
main()
File "/icefall/egs/tedlium3/ASR/./local/prepare_transcripts.py", line 89, in main
prepare_transcripts(manifests_dir, lang_dir)
File "/icefall/egs/tedlium3/ASR/./local/prepare_transcripts.py", line 71, in prepare_transcripts
with open(supervisions_train, "r") as load_f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/manifests/supervisions_train.json'

Could you show your changes, i.e., the output of git diff?

diff --git a/egs/tedlium3/ASR/local/prepare_transcripts.py b/egs/tedlium3/ASR/local/prepare_transcripts.py
index 416264e..f867b4d 100755
--- a/egs/tedlium3/ASR/local/prepare_transcripts.py
+++ b/egs/tedlium3/ASR/local/prepare_transcripts.py
@@ -23,6 +23,7 @@ consisting of supervisions_train.json and does the following:
 1. Generate train.text.

 """
+import lhotse
 import argparse
 import json
 import logging
@@ -62,6 +63,9 @@ def prepare_transcripts(manifests_dir: str, lang_dir: str):

     supervisions_train = Path(manifests_dir) / "supervisions_train.json"
     train_text = Path(lang_dir) / "train.text"
+    sups = lhotse.load_manifest(f"{manifests_dir}/tedlium_supervisions_train.jsonl.gz")
+    for s in sups:
+       texts.append(s.text)

     logging.info(f"Loading {supervisions_train}!")
     with open(supervisions_train, "r") as load_f:

Should I extract this before replacing it?

No, you don't need to extract it.
please change the following code to
https://github.com/k2-fsa/icefall/blob/e18fa78c3a010fac4e6d3e83bdcff28197df04dc/egs/tedlium3/ASR/local/prepare_transcripts.py#L63-L71
to

import lhotse # move this line to the beginning of the file

train_text = Path(lang_dir) / "train.text"

sups = lhotse.load_manifest(f"{manifests_dir}/tedlium_supervisions_train.jsonl.gz")

for s in sups:

  texts.append(s.text)

Please see the above comments. You have not DELETED the original code yet.

I see. Thanks!
Now I am having an issue with prepare_lexicon.py...
INFO [prepare_lexicon.py:66] Loading data/manifests/supervisions_train.json!
Traceback (most recent call last):
  File "/icefall/egs/tedlium3/ASR/./local/prepare_lexicon.py", line 100, in <module>
    main()
  File "/icefall/egs/tedlium3/ASR/./local/prepare_lexicon.py", line 90, in main
    prepare_lexicon(manifests_dir, lang_dir)
  File "/icefall/egs/tedlium3/ASR/./local/prepare_lexicon.py", line 67, in prepare_lexicon
    with open(supervisions_train, "r") as load_f:

Do you think it will be helpful to create a PR before fixing prepare_lexicon.py?

Now I am having an issue with prepare_lexicon.py...

That is the same issue. Could you change its code by following https://github.com/k2-fsa/icefall/issues/566#issuecomment-1240197489 ?

Do you think it will be helpful to create a PR before fixing prepare_lexicon.py?

I suggest that you create a PR to fix both of them as they have the same issue.

I edited prepare_lexion.py regarding the changes that I made in prepare_transcripts.py and it seems like it works! I will create a PR soon. Thank you very much for your help!

authors: csukuangfj shcxlee


text:
HELP: Docker private registry

Environmental Info:
K3s Version:
k3s version v1.26.3+k3s1
go version go1.19.7
Operating System: Debian GNU/Linux 12
#docker version
Client: Docker Engine - Community
 Version:           20.10.23
 API version:       1.41
 Go version:        go1.18.10
 Git commit:        7155243
 Built:             Thu Jan 19 17:34:13 2023
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.23
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.18.10
  Git commit:       6051f14
  Built:            Thu Jan 19 17:32:04 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.20
  GitCommit:        2806fc1057397dbaeefbea0e4e17bddfbd388f38
 runc:
  Version:          1.1.5
  GitCommit:        v1.1.5-0-gf19387a
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Cluster configuration: only one master node
Configuration done:
To prepare docker private registry:
First I generated a public certificate for my registry, in /home/user/
I have the three files drancher.xxx.fr-chain.pem  drancher.xxx.fr.key  drancher.xxx.fr.pem
To install the docker private registry, I followed these steps:
#nano docker-compose.yaml
version: '3.0'

services:

  registry:
    container_name: docker-registry
    restart: always
    image: registry:2
    environment:
      REGISTRY_HTTP_TLS_CERTIFICATE: /home/user/drancher.xxx.fr.pem
      REGISTRY_HTTP_TLS_KEY: /home/user/drancher.xxx.fr.key
      REGISTRY_HTTP_TLS_CA: /home/user/drancher.xxx.fr-chain.pem
    ports:
      - 5000:5000
    volumes:
      - docker-registry-data:/var/lib/registry
      - /home/user:/certs

volumes:
  docker-registry-data: {}

#docker-compose up -d

On my node, I placed the registries.yaml in /etc/rancher/k3s/
mirrors:
  "drancher.xxx.fr:5000":
    endpoint:
      - "https://drancher.xxx.fr:5000"

configs:
  drancher.xxx.fr:5000:
    tls:
      insecure_skip_verify: true

Then I restarted the k3s service
 systemctl restart k3s
I checked with crictl info
"registry": {
      "configPath": "",
      "mirrors": {
        "drancher.xxx.fr:5000": {
          "endpoint": [
            "https://drancher.xxx.fr:5000"
          ],
          "rewrite": null
        }
      },
      "configs": {
        "drancher.xxx.fr:5000": {
          "auth": null,
          "tls": {
            "insecure_skip_verify": true,
            "caFile": "",
            "certFile": "",
            "keyFile": ""
          }
        }
      },

To make sure that kubectl will pull the image I've build and push earlier in  the docker registry:
#nano mydebian.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/name: mytest
  name: mytest
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: mytest
  template:
    metadata:
      labels:
        app.kubernetes.io/name: mytest
    spec:
      containers:
      - image: drancher.xxx.fr:5000/mydebian:v1
        name: mytest

When running kubectl describe pods
Events:
  Type     Reason     Age                   From               Message
  ----     ------     ----                  ----               -------
  Normal   Scheduled  14m                   default-scheduler  Successfully assigned default/mytest-8656785ff8-rvzvr to dworker3
  Warning  Failed     13m (x6 over 14m)     kubelet            Error: ImagePullBackOff
  Normal   Pulling    13m (x4 over 14m)     kubelet            Pulling image "drancher.grenoble.cnrs.fr:5000/mydebian:v1"
  Warning  Failed     13m (x4 over 14m)     kubelet            Failed to pull image "drancher.xxx.fr:5000/mydebian:v1": rpc error: code = Unknown desc = failed to pull and unpack image "drancher.xxx.fr:5000/mydebian:v1": failed to resolve reference "drancher.xxx.fr:5000/mydebian:v1": failed to do request: Head "https://drancher.xxx.fr:5000/v2/mydebian/manifests/v1": dial tcp x.x.x.x:5000: connect: connection refused
  Warning  Failed     13m (x4 over 14m)     kubelet            Error: ErrImagePull
  Normal   BackOff    4m26s (x44 over 14m)  kubelet            Back-off pulling image "drancher.xxx.fr:5000/mydebian:v1"

After looking for the reason why I get that error, I realized that I have a problem here, the registry is not up:
#docker ps
CONTAINER ID   IMAGE        COMMAND                  CREATED          STATUS                          PORTS     NAMES
9bdef5c855d1   registry:2   "/entrypoint.sh /etc…"   22 minutes ago   Restarting (1) 29 seconds ago             docker-registry

When running docker logs 9bdef5c855d1 I can see this line:
time="2023-12-13T17:18:32.738983852Z" level=fatal msg="open /home/user/drancher.xxx.fr.pem: no such file or directory"
Also, I think Im missing the part of config tls in registries.yaml  but I don't know how to fix it since the registry certificate is public so maybe would be recognized by the node ?
Thank you

@brandond can you please help me out with this ?

When running docker logs 9bdef5c855d1 I can see this line:
time="2023-12-13T17:18:32.738983852Z" level=fatal msg="open /home/user/drancher.xxx.fr.pem: no such file or directory"

That doesn't sound like a problem with k3s; you need to figure out how to get your cert and files mounted into the docker container.

I knew it isn’t a problem with k3s, I guessed it was with the way I configured the registry but couldn’t identify it. Thank you for your response !
On the k3s side, should I still change the registries.yaml (after mounting the cert and key files in the dockainer container) ? Im a bit confused about the k3s documentation for the config part of registries yaml file

If you set insecure_skip_verify: true  you don't need to do anything on the k3s side, it ignores the certs completely.

authors: MalikaML brandond


text:
Not working for Android devices

Does KickThemOut work for Android devices? I had 2 connected to my network and they didn't even show up.

Yes, it should work with Android devices. Try restarting the script, and see if it works then. Note that the devices have to be conducting some sort of internet-connected activity to show up. Let me know if I helped resolve your issue. Thanks!

Seems that my Android devices don't get kicked out of the network :/ Furthermore, I tried kicking my desktop pc out (connected to the router with an ethernet cable), and it also didn't quite work. I couldn't ping google's server, but I could ping youtube and even watch videos.

Almost the same for me at osx.
I only have a disconnect for a second maybe and then it continues pinging successfully.
64 bytes from 8.8.8.8: icmp_seq=129 ttl=49 time=26.966 ms   // before spoof
Request timeout for icmp_seq 130                                                 // enable spoof (kickthemout)
64 bytes from 8.8.8.8: icmp_seq=131 ttl=49 time=26.249 ms   // spoof  still enabled!

same problem here

With KickThemOut v2.0, you can manually enter the number of ARP packets to be sent out. More packets increase the efficiency of the tool in terms of keeping the device disconnected.
Closing this issue due to inactivity.

authors: Klizzy andreasgtech artgerecht k4m4


text:
Update Release instructions with chart readme version bump

Update chart readme tags before the release so it is properly reflected in ArtifactHub
Inline update of Yury's actual email address

..

HOW TO RUN CI
---
By default, all the checks will be run automatically. Furthermore, when changing website-related stuff, the preview will be generated by the netlify bot.
Heavy tests
Add the heavy-tests label on this PR if you want full-blown tests that include more than 2-cluster scenarios.
Debug tests
If the test suite is failing for you, you may want to try triggering Re-run all jobs (top right) with debug logging enabled. It will also make the print debug action more verbose.

This is to avoid the deviation between

and the actual version

that we experience now


text:
operator awx-operator (2.12.0)

operator awx-operator (2.12.0)

/merge possible

/merge possible

authors: awx-auto framework-automation


text:
operators flux (0.25.2)

Signed-off-by: Chanwit Kaewkasi chanwit@gmail.com
Thanks submitting your Operator. Please check below list before you create your Pull Request.
Updates to existing Operators

[x] Did you create a ci.yaml file according to the update instructions?
[x] Is your new CSV pointing to the previous version with the replaces property if you chose replaces-mode via the updateGraph property in ci.yaml?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml or annotations.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

/merge possible

/merge possible

authors: chanwit framework-automation


text:
Devlink Error message

This commit fixes an IF condition being met incorrectly.
The GetPfName() in utils package returns the wrong error even when device is non-devlink.
line in utils.go
because it compares underlying netlink provider error message to different string than what actual implementation returns.
line in netlink_provider.go
signed off:
eoghan.russell@intel.com
thanks to @ahalimx86 for spotting this.

I can see the golangci-lint due to "context deadline exceeded". This seems to be occurring on other PR's also.
The "build-test-lint / test" failed due to some dependency issues. I fixed this on my own branch when testing, by adding "go mod tidy" to the Makefile on line 98.
Will discuss in meeting.

because it compares underlying netlink provider error message to different string than what actual implementation returns.
line in netlink_provider.go

please note that we embed (sort of) the netlink error with %v

@Eoghan1232

The GetPfName() in utils package returns the wrong error even when device is non-devlink.

the netlink error is embedded within the returned error, what is the full error you are getting.
the issue with netlink go impl is that there is no good way to understand programatically why it failed so we resort to string comparison :(

OK,  was trying to remember why we matched on this specific string and not the one returned by netlink provider.

i couldnt find a good reason for doing it. Intel i40e returned this error with devlink, but its safe to use the string proposed here.
its generally not a good idea to rely in code path on error strings especially if those are provided by external libs which are an impl of an interface we use internally.


text:
APP-431: Incorrect links in Credentials demo bundle apps

Fix links
Review: @Slash32 and @AlexAlex99

looks good

repo: kaaproject/sample-apps


text:
【質問】注文約定照会の約定数量の反映について

買いの注文を入れて直後に注文約定照会を行ったところ、以下のようなデータ（部分）が帰ってきました。
ステータスは 5 で 「終了（発注エラー・取消済・全約定・失効・期限切れ」　ですが、約定数量がゼロです。
約定数量が反映されるタイミングが微妙に遅れることがあるのでしょうか？？
約定数量が反映されたかどうかのステータス確認方法を教えてください。
"State":5,"OrderState":5,"OrdType":6,"RecvTime":"2020-10-06T12:49:42.6142587+09:00","Symbol":"1447","SymbolName":"ＩＴｂｏｏｋホールディングス","Exchange":1,"ExchangeName":"東証ﾏｻﾞｰｽﾞ","Price":769.0,"OrderQty":100.0,"CumQty":0.0,"Side":"2",

タイムラグはない認識です
当該注文は約定してないのではないですか？
cumqtyが約定数量となりますので、こちらを参照するか、各明細でのRectypeが8のレコードで判断すれば良いと思われます

失礼しました。
注文が失効になっていました。Rectypeも確認しました。ありがとうございます。
IOC指値で買いを入れているのですが失効するのはどういう条件になるのでしょう？

IOCだからかと思われます。
注文の特性上、板には乗りませんので、対等する注文がない場合はキャンセルされるためです。

authors: uedatakeshi yasuyuki-nakazawa

repo: kabucom/kabusapi


text:
【質問】ストップ高ストップ安の時の板情報について

GET/board/{Symbol}をストップ高ストップ安状態で実行するとどのパラメータに反映されるでしょうか？
BidSignやAskSignの値でストップ高、ストップ安がわかるのでしょうか？

@kitty2117
ストップ高、ストップ安中の板情報は、BidSignやAskSignの値が特別気配となっていて、現値が値幅制限の上限または下限になっています。ストップ高またはストップ安の銘柄の時価情報・板情報を取得して確認されるとわかると思います。

１．板情報のBidSign、AskSignの値が0102
２．銘柄情報のUpperLimit、LowerLimitの値
この２点ですね。ありがとうございます

ご参考
本日7083 ＡＨＣグループ がストップ高だったので情報とってみました
板情報のAskSignが0102になっていて、売り板のSell1からsell10が全部０になってますね。
それと銘柄情報のUpeerLimitが1344、板情報のCurrentPriceとBidPriceが1344でした。
7083 get board
{'AskPrice': 1344.0,
'AskQty': 380500.0,
'AskSign': '0102',
'AskTime': '2024-05-29T14:51:52+09:00',
'BidPrice': 1344.0,
'BidQty': 3900.0,
'BidSign': '0101',
'BidTime': '2024-05-29T14:51:52+09:00',
'Buy1': {'Price': 1344.0,
'Qty': 380500.0,
'Sign': '0102',
'Time': '2024-05-29T14:51:52+09:00'},
'Buy10': {'Price': 1311.0, 'Qty': 500.0},
'Buy2': {'Price': 1343.0, 'Qty': 1200.0},
'Buy3': {'Price': 1341.0, 'Qty': 400.0},
'Buy4': {'Price': 1336.0, 'Qty': 400.0},
'Buy5': {'Price': 1333.0, 'Qty': 400.0},
'Buy6': {'Price': 1328.0, 'Qty': 400.0},
'Buy7': {'Price': 1324.0, 'Qty': 500.0},
'Buy8': {'Price': 1321.0, 'Qty': 400.0},
'Buy9': {'Price': 1318.0, 'Qty': 500.0},
'CalcPrice': 1344.0,
'ChangePreviousClose': 300.0,
'ChangePreviousClosePer': 28.74,
'CurrentPrice': 1344.0,
'CurrentPriceChangeStatus': '0057',
'CurrentPriceStatus': 1,
'CurrentPriceTime': '2024-05-29T13:10:47+09:00',
'Exchange': 1,
'ExchangeName': '東証グ',
'HighPrice': 1344.0,
'HighPriceTime': '2024-05-29T12:58:07+09:00',
'LowPrice': 1062.0,
'LowPriceTime': '2024-05-29T09:08:12+09:00',
'MarketOrderBuyQty': 342600.0,
'MarketOrderSellQty': 1700.0,
'OpeningPrice': 1104.0,
'OpeningPriceTime': '2024-05-29T09:03:11+09:00',
'OverSellQty': 0.0,
'PreviousClose': 1044.0,
'PreviousCloseTime': '2024-05-28T00:00:00+09:00',
'SecurityType': 1,
'Sell1': {'Price': 1344.0,
'Qty': 3900.0,
'Sign': '0101',
'Time': '2024-05-29T14:51:52+09:00'},
'Sell10': {'Price': 0.0, 'Qty': 0.0},
'Sell2': {'Price': 0.0, 'Qty': 0.0},
'Sell3': {'Price': 0.0, 'Qty': 0.0},
'Sell4': {'Price': 0.0, 'Qty': 0.0},
'Sell5': {'Price': 0.0, 'Qty': 0.0},
'Sell6': {'Price': 0.0, 'Qty': 0.0},
'Sell7': {'Price': 0.0, 'Qty': 0.0},
'Sell8': {'Price': 0.0, 'Qty': 0.0},
'Sell9': {'Price': 0.0, 'Qty': 0.0},
'Symbol': '7083',
'SymbolName': 'ＡＨＣグループ',
'TotalMarketValue': 2835270144.0,
'TradingValue': 1614205400.0,
'TradingVolume': 1302300.0,
'TradingVolumeTime': '2024-05-29T13:10:47+09:00',
'UnderBuyQty': 41900.0,
'VWAP': 1239.5035}
7083 get symbol info
{'BisCategory': '9050      ',
'DisplayName': 'ＡＨＣ',
'Exchange': 1,
'ExchangeName': '東証グ',
'FiscalYearEndBasic': None,
'KCMarginBuy': True,
'KCMarginSell': True,
'LowerLimit': 744.0,
'MarginBuy': True,
'MarginSell': False,
'PriceRangeGroup': '10000',
'Symbol': '7083',
'SymbolName': 'ＡＨＣグループ',
'TotalMarketValue': None,
'TotalStocks': None,
'TradingUnit': 100.0,
'UpperLimit': 1344.0}


text:
Class 'Kachkaev\PHPR\Engine\AbstractREngine' not found

Fatal error: Class 'Kachkaev\PHPR\Engine\AbstractREngine' not found in /home/websites/test/www/src/Kachkaev/PHPR/Engine/CommandLineREngine.php on line 7
I am using centos 6,composer1.51.
Do you use exec() to run R script?

Hi @gitbobo! Sorry to hear that. Do you think your issue can be similar to https://github.com/kachkaev/php-r/issues/22?
If you can't solve the problem by tweaking the way you autoload and import the classes, please paste your code here.

Do you use exec() to run R script?
The library uses a child PHP process, details here: https://github.com/kachkaev/php-r/blob/master/src/Kachkaev/PHPR/Process/CommandLineRProcess.php

Hi@kachkaev,thanks for your reply!
I still figure this problem,it seemed related to framework, it's ok with symfony, but there's something wrong with yii.
May I ask a question,compare to exec(), what's the advantage of php-r?
It seemed exec() can do everything php-r can do

May I ask a question,compare to exec(), what's the advantage of php-r?

I think the advantages depend on your task. If you simply want to execute a static R file from PHP, then just exec() is probably enough. However, when it comes to customizing the input or parsing the output, the library becomes quite useful as it saves you from implementing a lot of low-level stuff.

I still figure this problem,it seemed related to framework, it's ok with symfony

Good luck with that! Feel free to share your findings here so that others could take a shortcut!

authors: gitbobo kachkaev

repo: kachkaev/php-r


text:
Uncaught TypeError: $export is not a function

I've just updated to the latest react-storybook 2.1.1 and with our old configuration I'm now getting the following error:
Uncaught TypeError: $export is not a function @	es6.object.define-property.js?6967:2

which relates to this piece of code
var $export = require('./_export');
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
$export($export.S + $export.F * !require('./_descriptors'), 'Object', {defineProperty: require('./_object-dp').f});

/** WEBPACK FOOTER **
 ** node_modules/core-js/library/modules/es6.object.define-property.js
 **/

By adding exclude: /node_modules/, to the webpack config, the error goes away and everything seems to work fine.
Is there a reason you do not exclude the node modules, or do you need more information to debug this?
We have a custom css setup in an extra webpack.config file, not sure if this has any impact on the javascript compilation?

@Nickman87 we just released v2.2.0. Could you try that?
I hope it'll fix this issue.

Hi @arunoda, this has indeed solved the issue for me, awesome :).
It also fixes https://github.com/kadirahq/react-storybook/issues/289 for me, so maybe that issue can be closed now?

Awesome.

repo: kadirahq/react-storybook


text:
Missing /out/MuZeroOut/board\r_temp.pth.tar after backpropagation

Hello,
I try to launch the training for "hex" on my machine. The command I'm using is
python Main.py train -c Configurations/ModelConfigs/MuzeroBoard.json --game hex --gpu 1

I haven't touched anything in the configuration, so there are the ones from master.
The 50 self play iterations run successfully, then the 100 iterations of the back-propagation as well. However, after it finishes, I get the following error:
Traceback (most recent call last):
  File "Main.py", line 202, in <module>
    switch[content.algorithm](game, content, run_name)
  File "Main.py", line 86, in learnM0
    c.learn()
  File "C:\Users\antoi\projects\muzero\Coach.py", line 175, in learn
    self.opponent_net.load_checkpoint(folder=self.args.checkpoint, filename='temp.pth.tar')
  File "C:\Users\antoi\projects\muzero\MuZero\MuNeuralNet.py", line 243, in load_checkpoint
    raise FileNotFoundError(f"No MuZero Representation Model in path {representation_path}")
FileNotFoundError: No MuZero Representation Model in path ./out/MuZeroOut/board\r_temp.pth.tar

Indeed, the files I have in that folder are the following:
25/02/2021  08:11             1.231 boardgames_Hex_hex_20210225-081121.json
25/02/2021  08:39                97 checkpoint
25/02/2021  08:39         1.834.891 checkpoint_0.pth.tar.examples
25/02/2021  08:39         2.437.259 decoder_temp.pth.tar.data-00000-of-00001
25/02/2021  08:39               930 decoder_temp.pth.tar.index
25/02/2021  08:39         2.378.703 d_temp.pth.tar.data-00000-of-00001
25/02/2021  08:39             1.046 d_temp.pth.tar.index
25/02/2021  08:39         1.379.677 p_temp.pth.tar.data-00000-of-00001
25/02/2021  08:39               715 p_temp.pth.tar.index
25/02/2021  08:39         2.437.116 r_temp.pth.tar.data-00000-of-00001
25/02/2021  08:39               878 r_temp.pth.tar.index

Here are the versions of the libs I use:

python: 3.8.5
tensorflow: 2.4.1
keras: 2.4.3

I'm running on Windows 10 with CUDA 11 and, if it matters, a GTX1070 as GPU.

Hi @sherpal, I've also encountered this issue multiple times. The cause is that the model checkpoints are saved in multiple files, as indicated by the .data-XXX...
This is new behaviour from tensorflow > 2.1 which we did not test. A quick fix would be to downgrade to:

Python 3.7.9
tensorflow 2.1.0
keras 2.3.1

Indeed, downgrading (almost) worked.
There was still a catch with the h5py package which made a breaking change in its 3.x version, and hence I hit the following issue: https://github.com/keras-team/keras/issues/14265
But
pip uninstall h5py
pip install h5py==2.10

fixed it.

authors: joeryjoery sherpal

repo: kaesve/muzero


text:
not support Alibaba Cloud OSS

any plan?

Could you be more specific about what doesn't work?  Alibaba should be mostly S3-compatible and goofys might just need a small tweak like s3fs-fuse/s3fs-fuse#1305.

it should work if you pass the correct --endpoint. please reopen with --debug_s3 if it doesn't work

authors: gaul kahing xinmans

repo: kahing/goofys


text:
Proposal: A dedicated KaiaScan SDK in typescript

Description

This proposal outlines the need for a dedicated KaiaScan SDK in Go, detailing its benefits and functionalities. KaiaScan, a blockchain explorer specifically designed for the Kaia ecosystem, provides real-time data tracking and insights into token movements, transactions, and more.

Core functionalities:
Token information retrieval
Transaction tracking
Block information
Contract Interaction

Why proposal?
It simplifies the integration of kaiascan functionalities into application.
It encapsulate api calls making it a user-friendly approach to access kaia blockchain information.
Enhanced developer experience

Bounty track
Developer tool

Done.
Github LInk: https://github.com/PaulElisha/kaiascan-sdk-ts
Dorahack: https://dorahacks.io/buidl/19222

Approved for 1500 KAIA payout

closing

authors: PaulElisha zxstim

repo: kaiachain/kaia-dapp-mono


text:
TalksのIndexページに目次が欲しい

解決したいこと

Talksページにアクセスすると、初日の最初のトークが表示されます。2日目になると初日のトークより2日目のトークへのアクセスがしやすいと嬉しい気持ちです。手動でスクロールしなくても2日目のトークをシュッと表示できるように、目次を追加することを提案します。

WAKARU

authors: nissyi-gh unasuke

repo: kaigionrails/conference-app


text:
Allow customizing kubelet resolvConf setting

Introduce the kubelet_resolv_conf variable. This allows to customize
which resolv.conf file is being used by kubelet when creating a new
pod.
This is especially useful on nodes running systemd-resolved, like
Ubuntu Bionic, where /run/systemd/resolve/resolv.conf may be used
instead of /etc/resolv.conf in order to avoid a DNS resolution loop
as described there: https://coredns.io/plugins/loop/

LGTM

thanks !

authors: FlorentFlament kairen

repo: kairen/kube-ansible


text:
🔧 Fix renovate file matching pattern

It was not super obvious, but it appears that it matches the full path, which means that none of the run.sh files would ever match.  This would explain why they are not showing up in the dependency dashboard.
Tested at https://regex101.com/r/n0FZYa/1

This did the trick!

repo: kairos-io/community-bundles


text:
Pull requests

Fixes #

comment

comment

Fantastic!!

reg comment

repo: kaizencc/github-merit-badger


text:
Reason for getComposeViewModel

Hello,
I am trying to implement a simple app, and this is my first android app ; it's quite hard. I chose Orbit and Koin with Jetpack Compose, so this repository is of great help.
Could you tell my the reason why you decided to implement those functions:
@Composable
fun getComposeViewModelOwner(): ViewModelOwner {
    return ViewModelOwner.from(
        LocalViewModelStoreOwner.current!!,
        LocalSavedStateRegistryOwner.current
    )
}

@Composable
inline fun <reified T : ViewModel> getComposeViewModel(
    qualifier: Qualifier? = null,
    noinline parameters: ParametersDefinition? = null,
): T {
    val viewModelOwner = getComposeViewModelOwner()
    return KoinJavaComponent.getKoin().getViewModel(qualifier, { viewModelOwner }, parameters)
}

Thanks!

Hello @lud, this app uses Koin lib for dependency injection. So this function create/return already created ViewModel using Koin

I can't remember why I needed this :D I ended up choosing different technologies for that project, but thank you :)

authors: alexfrostdev lud


text:
bs-dropdown menu item actions not firing after 2.1.0

Recently upgraded to ember-bootstrap 2.1, but it seems to have broken all of my dropdowns.
When clicking a menu item in the dropdown, the dropdown closes, but action associated with the menu item is no longer called, heres a code snippet:
{{#bs-dropdown as |dd|}}
  {{#dd.button}}
    {{reportModel.reportType}}
  {{/dd.button}}
  {{#dd.menu renderInPlace=false as |menu|}}
    {{#each reportModel.validReportTypes as |rt|}}
      {{#menu.item class=(if (eq reportModel.reportType rt) ' active' '')}}
        {{!-- reportModel.reportType is never set --}}
        {{rt}}
      {{/menu.item}}
    {{/each}}
  {{/dd.menu}}
{{/bs-dropdown}}

Adding onclick={{action ...}} to the  element fixes it, but I'm sure my usage without onclick attribute should still be supported.
I will try to find some time this week to add a failing test

Output from ember bootstrap:info
Npm packages:ember-bootstrap: ^2.1.0 -> 2.1.0
ember-cli: ~3.2.0 -> 3.2.0bootstrap: n/a
bootstrap-sass: ^3.3.7 -> 3.3.7
ember-cli-sass: ~7.1.5 -> 7.1.7
ember-cli-less: n/a
Bower packages:
bootstrap: n/a
bootstrap-sass: n/a
ember-bootstrap configuration:
importBootstrapFont: false
bootstrapVersion: 3
importBootstrapCSS: false
importBootstrapTheme: true

In Addition to this bug, by clicking dropdown a warning message appears about "sendAction" deprecation. It is related to using sendAction on open/close dropdown
if (this.get('isOpen')) {                     this.send('closeDropdown');                   } else {                     this.send('openDropdown'); }
deprecate.js:102 DEPRECATION: You called <x:ember-popper::ember479>.sendAction("registerAPI") but Component#sendAction is deprecated. Please use closure actions instead. [deprecation id: ember-component.send-action] See https://emberjs.com/deprecations/v3.x#toc_ember-component-send-action for more details.

Also, regular link-to's in a dropdown item are causing full page navigation i.e. reload of the page, instead of regular transitions.

@stark-mkl this seems unrelated, the deprecation comes from ember-popper, and a PR is already prepared: https://github.com/kybishop/ember-popper/pull/92

A fix is underway: #661
That thing was pretty weird, have a look there for an (somewhat) explanation.

Just released the fix as 2.1.1!


text:
Analytics

mixpanel adjustment
my liquidity fix

Merging with Vera's approval.

authors: bryancolligan taariq

repo: kallisto-finance/kallisto-vault-ui


text:
Question on h_rel_logits and w_rel_logits

Hi, I would like to know if the h_rel_logit takes the form [B nh W W H H] and w_rel_logit [B nh H H W W]. Then they are permuted to  [B Nh H W H W] and reshaped to pB, Nh, HW, HW]?
If this is the case, the permuations in lines 83 and 84 in class AAConv2d should be switched around to this:
h_rel_logits = h_rel_logits.permute(0,1,4,2,5,3).reshape(B, self.nh, HW, HW)
w_rel_logits = w_rel_logits.permute(0,1,2,4,3,5).reshape(B, self.nh, HW, HW)
I'm not sure if I have have misinterpreted something. Could you help clarify?
Thank you.

Hi - you are correct, thanks for pointing this out. h_rel_logits should be permuted [0,1,4,2,5,3] since q is permuted before sending it to relative_logits_1d in the computation of h_rel_logits. I'll push an update.

repo: kamenbliznashki/chexpert


text:
git tableflip

git reset --hard
git clean -df

see table flip alias

repo: kamilsk/dotfiles


text:
Add documentation and updates.

Document CakeResque.
Document CakeResqueShell.
When stopping a worker, if the queues a worker is pooling from are empty, they are removed from the queues list.
When clearing a queue, if the queues are empty, they are removed from the queues list.
Add tests!

Changes Unknown when pulling 0a737a5a1b3b90b4bfe54c07a382b42baf8d78d1 on bar:docs into ** on kamisama:master**.

authors: bar coveralls

repo: kamisama/Cake-Resque