Escape from battle crash

Bug Description:
When the player escapes from a wild Pokémon battle, the game crashes.
Steps To Reproduce:

Start a battle with a wild Pokémon
Keep trying to escape
Bug occurs when escape is successful

What should Charmander do?

[1] - Attack
[2] - Switch
[3] - Item
[4] - Run

> 4
You escaped!

- - - INTERNAL ERROR - - -

ERROR MESSAGE:
Invalid battle state; neither won, lost, nor escaped. Could not load player turn.

If you have not edited any files, feel free to create an issue on the repository by going to the link below.

Note: your save file will be preserved in the program folder. Any unsaved progress will be lost (sorry).

[https://github.com/Pokemon-PythonRed/Pokemon-PythonRed/issues/new/choose]

Press Enter to exit.

>

$

Expected Behaviour:
I'm assuming the battle should just end as it already printed You escaped!.
Context:

Python Version: 3.8.10 64-bit

PPR Version: latest commit

[ ] I decline to being added to the Contributors list.

I'll have a look into this.

It was a quick fix, just had to change an if to an elif. I'll make a PR.

Thanks for finding small bugs like this.

No problem!

ERROR MESSAGE:
Invalid battle state; neither won, lost, nor escaped. Could not load player turn.

At least I know the effort I went to writing error messages wasn't wasted.

Did my fix not work? It seemed to work for me. And yes, the messages were very useful.
How did you get that error?


Fermion base rebuild

Tasks:

[x] Bump to latest Normalize. (current **v5.0.0)
[x] Styling for headers, paragraphs.
[x] Styling for code elements.
[x] Styling for horizontal rules.
[x] Styling for small scripts.
[x] Styling for mark elements and contextuals.
[x] Styling for hyperlinks.
[x] Styling for bold and auxiliary elements and fixes.
[x] Form element styling.
[x] Table styling.
[x] Responsiveness for images.
Media responsivenes.
[x] Reponsiveness for tables.
[x] Grid based on flexbox.
[x] Navigation (based on nav), header, footer.
[x] Link style for buttons. Special button style for certain small links.
[x] Custom checkboxes, radios, file uploads etc.

Core implementation has been mostly completed, minor additions are still being made, but the core will be complete very very soon.


Better RegEx for the system flags

Currently, the /(?:\s)(-l|-m|-w|-a|-i)/i pattern doesn't allow the use of this anymore: !approve 1100 | -a or !approve 1100 | -w, Canary. This new pattern fixes that, whilst it should also still ignore links.

Closing this, because it has been implemented now.


Change default GCP machine instance type

What does this PR do?
Use n1-standard-4 - 4cpus 15GB (see https://cloud.google.com/compute/docs/general-purpose-machines#n1_machines)
What does it look like?
This just changes the default that ends up in the <cluster-name>-uservalues ConfigMap
What is the effect of this change to users?
This is needed because the n1-standard-2 has only 2 cpus.
The nginx-ingress-controller (which is a commonly used app) has a cpu request of 2, which makes it impossible to schedule.
Any background context you can provide?
N/A
What is needed from the reviewers?
N/A
Do the docs need to be updated?
Yes
Should this change be mentioned in the release notes?

[x] CHANGELOG.md has been updated

Is this a breaking change?
No

Link to docs change https://github.com/giantswarm/docs/pull/1617


add # noqa to some doc strings

fix lint

I think that it’s better to ignore E501 throughout the entire code base and just rely on black to automatically reformat code relevant lines. Docstrings and comments shouldn’t have any bearing on the line length lint test

I think I could also update that to use multi-line math and not need to ignore the line length check, not sure what option do you prefer

I do not have any strong opinion. Maybe we want our doc-strings to be quite complete with formulas and explanations where we might not want to be limited by this lint checker. Again, no strong opinion :)

I think I could also update that to use multi-line math and not need to ignore the line length check, not sure what option do you prefer

I think that the best is to disable that flag globally, but you could also use multi line math in the docstrings

so shall we merge as it is :) ?


Support vmv.v.v and vmerge.vvm for bf16 with zvfbfmin

Resolve: https://github.com/riscv-non-isa/rvv-intrinsic-doc/issues/349

bf16 should able to support vmv.v.f as well, I mean that could hold in FPR in theory (both for w/ and w/o zfbhmin)

Updated!

Please use make yapf-format


Migrate away from Tox to UV and Make

[!IMPORTANT]
Switch CI branch to main once tandem PR is merged:

https://github.com/canonical/observability/pull/229

Switching to UV and Make in favour of Tox due to speed and a long-term plan to improve CI. To test with this PR you can run the following commands:

tox -e lint -> make unit
tox -e static -> make static
tox -e fmt -> make fmt
tox -e unit -> make unit
tox -e scenario -> make scenario
tox -e integration -> make integration

Want to use args?

make integration ARGS=--keep-models

Currently missing:

[x] scenario tests
[x] colour formatting in GH CI output
[x] requirements.txt management
[x] Can we consolidate the charmcraft.yaml charm-binary-python-packages since we have a pyproject.toml (single source of truth)

CI for charm-pull-request.yaml is being updated to conditionally test with make instead of tox depending on the existence of a tox.ini file in the repo root.
Tandem PR:

https://github.com/canonical/mimir-coordinator-k8s-operator/pull/90

tox -e lint -> make unit is this ok?
shouldn't be: tox -e lint -> make lint?


removes older base image tag files we do not use anymore

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


Send data to connected device

It's possible to do it?

for example ,android, we access "http://ip/getdata", error : Network is unreachable.
and first of all , it can't connect ap, because there's not internet on ap ,you connect it,then android auto change to other wifi network....

@MousyBusiness and @rrrovalle any updates on the Internet connectivity feature? Were you able to make it work @by90?

A few points, the current implementation provisions for no internet, you'll see the network capability is removed and binding is forced after connection to prevent os disconnections. If you want to provide a working sample I'll be happy to help debug your issue.

I am getting this type of error-
help me out to connect wifi (ssid, password) in mobile.
E/flutter (23119): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method connect on channel flutter_iot_wifi)
E/flutter (23119): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
E/flutter (23119):
E/flutter (23119): #1      FlutterIotWifi.connect (package:smarty/features/home/presentation/views/flutter_iot_wifi.dart:14:23)
E/flutter (23119):
E/flutter (23119): #2      AccessPointWidget._connect. (package:smarty/features/home/presentation/views/wifi.dart:4753:65)
E/flutter (23119):
E/flutter (23119):


Add support for shouldServerExitOnShutdown capability

As per https://github.com/redhat-developer/vscode-microprofile/pull/68#issuecomment-907213637, there should be support for the capability, meaning the language server shuts down when shutdown is received instead of when exit is received.

I don't yet know why, but when I test this in an extension host, the MicroProfile language server shuts down immediately on exit, on the latest (vscode-languageclient 0.7.0) branch. I'll try investigating further.


export FormData

I get a Type error when attempting to use FormData in a body (even though my project uses Node 18):
    .body(({ input: { username, password } }) => {
      const data = new FormData();

      data.append('username', username);
      data.append('password', password);
      data.append('grant_type', 'username');

      return data;
    })

Type 'FormData' is not assignable to type 'BodyType'.
        Property 'sort' is missing in type 'FormData' but required in type 'URLSearchParams'.

I can fix this by importing FormData from undici, but then I have to install undici in my project:
import { FormData } from 'undici';
It would be nice to not have to install undici in my project. This could be achieved by exporting FormData in typical-fetch.

That sounds reasonable. I'll have a look this week.

I had a interesting finding on this: In another project of mine, I'm using undici directly.
In that project, I had to use @types/node types (the global FormData type).


Avoiding a ReverseIterator object allocation in ConfigurationRoot get

Replacing the Reverse method call with a for loop, hence avoiding the ReverseIterator new object allocation.

Here is the result of a benchmark I ran where ConfigurationRoot was built using 2 MemoryConfigurationProviders.

BenchmarkDotNet=v0.10.13, OS=Windows 10.0.17763
Intel Xeon CPU E5-1650 v4 3.60GHz, 1 CPU, 12 logical cores and 6 physical cores
.NET Core SDK=3.0.100-preview3-010280
  [Host]     : .NET Core 3.0.0-preview3-27414-8 (CoreCLR 4.6.27414.77, CoreFX <IP_ADDRESS>06), 64bit RyuJIT
  Job-MAAXQT : .NET Core 3.0.0-preview3-27414-8 (CoreCLR 4.6.27414.77, CoreFX <IP_ADDRESS>06), 64bit RyuJIT

Runtime=Core  Server=True  Toolchain=.NET Core 3.0
RunStrategy=Throughput

Method
Mean
Error
StdDev
Op/s
Gen 0
Allocated

UsingReverse
256.55 ns
5.213 ns
13.079 ns
3,897,916.7
0.0010
88 B

UsingForLoop
80.39 ns
1.604 ns
2.680 ns
12,439,488.4
-
0 B

cc @HaoK

Thanks @kshyju

Awesome. Thanks! 🎉


Is there a reason for why DataArray.swap_dims() cannot be done in place like Dataset.swap_dims?

Problem description
This is a problem if I want to swap_dims in DataArray Accessor.
Code Sample
This is what I'm forced to do:
import xarray as xr
import numpy as np
@xr.register_dataarray_accessor('testing')
class TestAccessor(object):
    def __init__(self, xarray_obj):
        self._obj = xarray_obj
    def the_problem(self):
        self._obj = self._obj.swap_dims({'x':'x2'})
        print(self._obj)

arr = np.random.rand(4,3,2)
cube = xr.DataArray(arr, dims=['ya', 'x', 'y'], coords={'y':[1,3], 'ya':[1,2,3,6], 'x':[1,2,5]})
cube.coords['x2'] = ('x', [1,2,3])
cube.testing.the_problem()
print(cube)

this prints:
<xarray.DataArray (ya: 4, x2: 3, y: 2)>
array([[[ 0.659583,  0.167555],
        [ 0.357974,  0.46081 ],
        [ 0.85115 ,  0.845257]],

       [[ 0.280308,  0.777399],
        [ 0.512527,  0.542036],
        [ 0.838603,  0.799414]],

       [[ 0.572031,  0.350464],
        [ 0.205219,  0.812232],
        [ 0.687778,  0.984928]],

       [[ 0.803385,  0.63981 ],
        [ 0.089909,  0.499857],
        [ 0.25266 ,  0.967909]]])
Coordinates:
  * y        (y) int32 1 3
  * ya       (ya) int32 1 2 3 6
    x        (x2) int32 1 2 5
  * x2       (x2) int32 1 2 3
<xarray.DataArray (ya: 4, x: 3, y: 2)>
array([[[ 0.659583,  0.167555],
        [ 0.357974,  0.46081 ],
        [ 0.85115 ,  0.845257]],

       [[ 0.280308,  0.777399],
        [ 0.512527,  0.542036],
        [ 0.838603,  0.799414]],

       [[ 0.572031,  0.350464],
        [ 0.205219,  0.812232],
        [ 0.687778,  0.984928]],

       [[ 0.803385,  0.63981 ],
        [ 0.089909,  0.499857],
        [ 0.25266 ,  0.967909]]])
Coordinates:
  * y        (y) int32 1 3
  * ya       (ya) int32 1 2 3 6
  * x        (x) int32 1 2 5
    x2       (x) int32 1 2 3

where the two xarrays are clearly different.
I would want to do:
import xarray as xr
import numpy as np
@xr.register_dataarray_accessor('testing')
class TestAccessor(object):
    def __init__(self, xarray_obj):
        self._obj = xarray_obj
    def the_problem(self):
        self._obj.swap_dims({'x':'x2'}, inplace = True)
        print(self._obj)

arr = np.random.rand(4,3,2)
cube = xr.DataArray(arr, dims=['ya', 'x', 'y'], coords={'y':[1,3], 'ya':[1,2,3,6], 'x':[1,2,5]})
cube.coords['x2'] = ('x', [1,2,3])
cube.testing.the_problem()
print(cube)

this would keep the two xarrays the same, as they should be:
<xarray.DataArray (ya: 4, x2: 3, y: 2)>
array([[[ 0.659583,  0.167555],
        [ 0.357974,  0.46081 ],
        [ 0.85115 ,  0.845257]],

       [[ 0.280308,  0.777399],
        [ 0.512527,  0.542036],
        [ 0.838603,  0.799414]],

       [[ 0.572031,  0.350464],
        [ 0.205219,  0.812232],
        [ 0.687778,  0.984928]],

       [[ 0.803385,  0.63981 ],
        [ 0.089909,  0.499857],
        [ 0.25266 ,  0.967909]]])
Coordinates:
  * y        (y) int32 1 3
  * ya       (ya) int32 1 2 3 6
    x        (x2) int32 1 2 5
  * x2       (x2) int32 1 2 3
<xarray.DataArray (ya: 4, x: 3, y: 2)>
array([[[ 0.659583,  0.167555],
        [ 0.357974,  0.46081 ],
        [ 0.85115 ,  0.845257]],

       [[ 0.280308,  0.777399],
        [ 0.512527,  0.542036],
        [ 0.838603,  0.799414]],

       [[ 0.572031,  0.350464],
        [ 0.205219,  0.812232],
        [ 0.687778,  0.984928]],

       [[ 0.803385,  0.63981 ],
        [ 0.089909,  0.499857],
        [ 0.25266 ,  0.967909]]])
Coordinates:
  * y        (y) int32 1 3
  * ya       (ya) int32 1 2 3 6
    x        (x2) int32 1 2 5
  * x2       (x2) int32 1 2 3

I have version 0.10.0, the newest on conda-forge.

swap_dims is not an in-place operation
http://xarray.pydata.org/en/stable/generated/xarray.Dataset.swap_dims.html
It returns a new dataset with swapped dims. If you want to do it in place, there is a keyword argument for that.
Sent from my iPhone

On Dec 1, 2017, at 7:37 AM, Leevi Annala<EMAIL_ADDRESS>wrote:
Problem description
This is a problem if I want to swap_dims in DataArray Accessor.
Code Sample
This is what I'm forced to do:
import xarray as xr
import numpy as np
@xr.register_dataarray_accessor('testing')
class TestAccessor(object):
def init(self, xarray_obj):
self._obj = xarray_obj
def the_problem(self):
self._obj = self._obj.swap_dims({'x':'x2'})
print(self._obj)
arr = np.random.rand(4,3,2)
cube = xr.DataArray(arr, dims=['ya', 'x', 'y'], coords={'y':[1,3], 'ya':[1,2,3,6], 'x':[1,2,5]})
cube.coords['x2'] = ('x', [1,2,3])
cube.swap_dims({'x':'x2'})
cube.testing.the_problem()
print(cube)
this prints:
<xarray.DataArray (ya: 4, x2: 3, y: 2)>
array([[[ 0.659583,  0.167555],
[ 0.357974,  0.46081 ],
[ 0.85115 ,  0.845257]],
   [[ 0.280308,  0.777399],
    [ 0.512527,  0.542036],
    [ 0.838603,  0.799414]],

   [[ 0.572031,  0.350464],
    [ 0.205219,  0.812232],
    [ 0.687778,  0.984928]],

   [[ 0.803385,  0.63981 ],
    [ 0.089909,  0.499857],
    [ 0.25266 ,  0.967909]]])

Coordinates:

y        (y) int32 1 3

ya       (ya) int32 1 2 3 6
x        (x2) int32 1 2 5

x2       (x2) int32 1 2 3
<xarray.DataArray (ya: 4, x: 3, y: 2)>
array([[[ 0.659583,  0.167555],
[ 0.357974,  0.46081 ],
[ 0.85115 ,  0.845257]],
[[ 0.280308,  0.777399],
[ 0.512527,  0.542036],
[ 0.838603,  0.799414]],
[[ 0.572031,  0.350464],
[ 0.205219,  0.812232],
[ 0.687778,  0.984928]],
[[ 0.803385,  0.63981 ],
[ 0.089909,  0.499857],
[ 0.25266 ,  0.967909]]])
Coordinates:

y        (y) int32 1 3

ya       (ya) int32 1 2 3 6

x        (x) int32 1 2 5
x2       (x) int32 1 2 3
where the two xarrays are clearly different.

I would want to do:
import xarray as xr
import numpy as np
@xr.register_dataarray_accessor('testing')
class TestAccessor(object):
def init(self, xarray_obj):
self._obj = xarray_obj
def the_problem(self):
self._obj.swap_dims({'x':'x2'}, inplace = True)
print(self._obj)
arr = np.random.rand(4,3,2)
cube = xr.DataArray(arr, dims=['ya', 'x', 'y'], coords={'y':[1,3], 'ya':[1,2,3,6], 'x':[1,2,5]})
cube.coords['x2'] = ('x', [1,2,3])
cube.swap_dims({'x':'x2'})
cube.testing.the_problem()
print(cube)
this would keep the two xarrays the same, as they should be:
<xarray.DataArray (ya: 4, x2: 3, y: 2)>
array([[[ 0.659583,  0.167555],
[ 0.357974,  0.46081 ],
[ 0.85115 ,  0.845257]],
   [[ 0.280308,  0.777399],
    [ 0.512527,  0.542036],
    [ 0.838603,  0.799414]],

   [[ 0.572031,  0.350464],
    [ 0.205219,  0.812232],
    [ 0.687778,  0.984928]],

   [[ 0.803385,  0.63981 ],
    [ 0.089909,  0.499857],
    [ 0.25266 ,  0.967909]]])

Coordinates:

y        (y) int32 1 3

ya       (ya) int32 1 2 3 6
x        (x2) int32 1 2 5

x2       (x2) int32 1 2 3
<xarray.DataArray (ya: 4, x: 3, y: 2)>
array([[[ 0.659583,  0.167555],
[ 0.357974,  0.46081 ],
[ 0.85115 ,  0.845257]],
[[ 0.280308,  0.777399],
[ 0.512527,  0.542036],
[ 0.838603,  0.799414]],
[[ 0.572031,  0.350464],
[ 0.205219,  0.812232],
[ 0.687778,  0.984928]],
[[ 0.803385,  0.63981 ],
[ 0.089909,  0.499857],
[ 0.25266 ,  0.967909]]])
Coordinates:

y        (y) int32 1 3

ya       (ya) int32 1 2 3 6
x        (x) int32 1 2 5

x2       (x) int32 1 2 3
I have version 0.10.0, the newest on conda-forge.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@rabernat, please note that i'm working with dataarrays. There is no inplace keyword.

Ah right. So you would do
cube = cube.swap_dims({'x':'x2'})

Seems like I forgot a confusing line in my example. For example in dataarray_accessor, we have a need for in-place swap.
cube = xr.DataArray(arr, dims=['ya', 'x', 'y'], coords={'y':[1,3], 'ya':[1,2,3,6], 'x':[1,2,5]}) #First dataarray object. cube now referes to this.
cube.coords['x2'] = ('x', [1,2,3])
cube = cube.swap_dims({'x':'x2'}) #Second dataarray object. cube now refers to this and first dataarray object is now forgotten

vs:
cube = xr.DataArray(arr, dims=['ya', 'x', 'y'], coords={'y':[1,3], 'ya':[1,2,3,6], 'x':[1,2,5]}) #First dataarray object. cube now referes to this.
cube.coords['x2'] = ('x', [1,2,3])
cube.swap_dims({'x':'x2'}, inline=True) #This just changes the first dataarray object. cube still refers to the first dataarray object

So the question again was, is there a reason, why the inline keyword is implemented on dataset, but not on dataarray.

If I did it again, I would remove the inplace keyword argument from even Dataset methods. Almost every method in xarray creates new underlying objects, so it's misleading to call them "inplace". (Most of our inplace methods actually create a new object and then assign its properties to an existing object.)
Why not make your accessor method return a new DataArray object? That would be more inline with how most xarray methods work. If you have any special attributes you've set on the accessor you can copy those over to the new result.

Thank you for your explination. I will to look into my problem from another angle.

If I did it again, I would remove the inplace keyword argument from even Dataset methods.

How about deprecating these? Would that be too much of a change you think? (I never use them)

How about deprecating these? Would that be too much of a change you think? (I never use them)

Yes, this is a good idea! Opened #1756 to keep track.


⚡ Improve media subtype on iOS

I think something wrong with subtypes now. Video subtype values dosn't correspond native values. For example for video I should get value 131072, but I get 1048576.

For example for video with subtype PHAssetMediaSubtypeVideoHighFrameRate I should get value 131072, but I get 1048576.

You should not depend on specific subtype values. And it's now directly returned from the native definition.

You should not depend on specific subtype values.

How can I use this then? For example, if I want display only screenshots (on ios) I can check if subtype == 1 << 2, and it's work fine, but not for video subtypes.


fix(v1): updated routing RegExp to support md files ending with html

Motivation
This PR fixes #2133 issue about unsupported md files ending with html.
Example: file-html.md
Have you read the Contributing Guidelines on pull requests?
Yes.
Test Plan
I've updated the routing.page RegExp. Next, I introduced a new test case with an html ending endpoint then I ran yarn prettier && yarn lint and yarn test.

I've added an example-html.md file in the docs folder and tried to access it with this link: http://localhost:3000/en/example-html it should throw the same error as in the issue.

@Tarektouati could you create a branch with the repo setup to repro the error? I just tried it and there's no error. Note that you need to go to /en/next/example-html.md to see the docs for the unpublished version.

@yangshun I've created a branch with to reproduced bug.

@Tarektouati you should also have docs in the path. I checked out your repo and here's the page:

@yangshun  Yeah it works with docs in the path, but if you remove it the server will throw the same error as in the issue.

Sure, but what's wrong with the server throwing for an invalid path?

if it's an invalid path, the server should return a valid HTTP response with a status code, but actually the server crashes due to an unhandled use case.

@saibonala can you help to see if this PR solves your issue in #2133?


[fix](inverted index) Fix the incorrect type usage in the test_storage_page_size_fault case.

What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary: Incorrect usage of tablet id type, should use int64_t.
Release note
None
Check List (For Author)

Test

[x] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[ ] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[ ] No.
[ ] Yes.

Does this need documentation?

[ ] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

run buildall


Fix PEP 8 errors on Course 3

This fixes common PEP 8 errors on Course 3

@cominixo01 Could you please resolve the conflicts first?


Need Fully Custom URL for collector

We are experimenting with sending Zipkin spans to a Splunk Http event collector instead of a regular Zipkin collector.  The RestTemplateSender for the Zipkin2 integration always appends "api/v2/spans" to the baseURL, which is not a valid URL in our Splunk setup.  It would be helpful if we could specify the complete URL in this case without having "api/v2/spans" appended to it.  From the documentation, I can see that we could completely replace the Sender class and change this, but we'd prefer not to do this if adding a simple property would work instead.

There are 2 ways you can customize the RestTemplate that is used: https://cloud.spring.io/spring-cloud-sleuth/single/spring-cloud-sleuth.html#_sending_spans_to_zipkin
If the ZipkinRestTemplateCustomizer does not provide what you need then you will need to create a custom instance of Sender.

If the ZipkinRestTemplateCustomizer does not provide what you need then you will need to create a custom instance of Sender.

Yes - I did see that doc ... The customizer doesn't allow customizing the URL since this it is part of the sender, not the template.  And I didn't want to create the custom instance of Sender just to change the way it is appending api/v2/spans to the baseUrl.  It seems reasonable to allow the full Url to be controlled by a property if that is what the developer wants, without duplicating the rest of the code in RestTemplateSender.

We never considered parametrizing the URL. You're the first user to ask for this feature. Once there are more people interested in this change we can consider adding the feature. Until then you need to create the custom Sender instance.

We experimented with implementing our own Sender and noticed that events were being sent twice - once from RestTemplateSender and once from our sender.  I will try to recreate in a small example - we were probably doing something wrong.

A recent feature was added where multiple senders can be created, to not have that happen your sender needs to have a name of ZipkinAutoConfiguration.SENDER_BEAN_NAME

The feature to not have multiple senders is only in the 2.2 release, correct?  So, as I understand it, unless we go with the 2.2 snapshot build, using our own RestTemplateSender will result in multiple events.

If you create your own sender with name ZipkinAutoConfiguration.SENDER_BEAN_NAME then the whole configuration will not be applied and there will be only one sender - yours.That's the suggested way to go.


Network Status shows no network connection

I am using Win 10 Pro 22H2 and after using the Windows Utility, my computer shows there is no network connection, however, I am still connected.  I have tried making the appropriate changes to the Registry, but it still fails to show that I am connected.  Please advise.

I'd recommend resetting your network.
netsh int ip reset
netsh winsock reset
Run from an admin prompt


4Sum [Leetcode - Medium]

Can you assigned this to me for c++.

@khushij12 Assigned in C++

@piyushsharma220699 Could you assign me this in Java

Please do assign this to me. I would like to work on it in C++.

@dhairyaostwal I've added the tag. You can work on this in Java.

@purohitmansi This issue is already assigned to @khushij12 in C++. Sorry cant assign you this one :)

Okayy
On Sat, 2 Oct 2021, 12:34 pm Piyush Sharma, @.***>
wrote:

@purohitmansi https://github.com/purohitmansi This issue is already
assigned to @khushij12 https://github.com/khushij12 in C++. Sorry cant
assign you this one :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/piyushsharma220699/Hacktoberfest-2021/issues/143#issuecomment-932697521,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARMXVKQALOGTTB23LU63JZDUE2VGBANCNFSM5FF66I6A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


[CINFRA-383] Forward Config to Log

Scope & Purpose
This PR forwards a configuration change from a replicated state to the replicated log.

https://jenkins01.arangodb.biz/view/PR/job/rlog-matrix-pr/27/


Map::MapTileWidth() and Map::MapTileHeight() are ambiguous

Started using OP2Utility, specifically for loading maps. The functions MapTileWidth() and MapTileHeight() are named such that they would give the tile dimensions versus the map dimensions.
These should either be MapWidth()/MapHeight() or MapTileCountX()/MapTileCountY().

A lot of internal calculations are based in pixels, while others are done in tiles. Hence MapWidth/MapHeight would be ambiguous.
I've never much enjoyed the different lengths of the two names though, so maybe an "X"/"Y" difference would be better?

Urgh, the devs made a lot of really weird decisions during development. I'll leave it up to your judgement, just wanted to note that it surprised me when it didn't have the values I expected.
I did also note a distinct lack of comment documentation for the various functions. From tearing the code apart before in OP2Landlord I was at least familiar with how the maps deal with it but to the unfamiliar the functions and structure of the map would be baffling. Comments for the functions would have cleared that up pretty much right away.
Anyway, I can add documentation if you'd like.

Please do. And maybe discuss with Brett about method name changes. I noticed Brett also like the "..Count" style names. I'm guessing that comes from C# programming conventions?

Yup. :)
I'll spend a little time getting the functions documented. Aside from some assumptions I made that were incorrect the code appears to work well.

I'd like to change the function name to be:
Map::WidthInTiles();
Map::HeightInTiles();
Any issues with that? I think it is better defined than the current names. Leeor, please feel free to add documentation. We are trying to keep from being overly verbose, I you are correct that we are lacking right now.
-Brett

That resolves any ambiguity. Go for it.


Gitlinker Plugin

Plugin: gitlinker.nvim
Plugin repository: https://github.com/ruifm/gitlinker.nvim
Is the plugin on nixpkgs: Yes -- https://search.nixos.org/packages?channel=23.05&show=vimPlugins.gitlinker-nvim&from=0&size=50&sort=relevance&type=packages&query=gitlinker
Extra information
This is a useful plugin imo, and would be awesome if it were available in Nixvim natively.

Here you go :)


feat(aip_xx1_description): added cameras 6 and 7

Added the ids for cameras 6 and 7 as part of the c1 cameras installation.
The extrinsics corresponds to the ones taken on the 10/25
Signed-off-by: Kenzo Lobos-Tsunekawa<EMAIL_ADDRESS>

@knzo25
I think we start using calibration params in aip_launcher instead of  aip_description.iv.
Maybe aip_description.iv is no longer used in the latest autoware.
So, could you make another PR to aip_launcher?

@miursh
Sorry, I completely missed the last comment as I was out at the time. I will send the PR now

@miursh
I sent the PR in
https://github.com/tier4/aip_launcher/pull/102
:bow:


Clarification for including and excluding files from deployment.

This isn't really a bug, but I'm not sure where I should report this. I can't find a repository/tracker for website content, so if you could please forward this to the appropriate place, I'd much appreciate it! ❤
The INCLUDING AND EXCLUDING FILES FROM DEPLOYMENT page on the website states currently:

Claudia uses the standard Node.js packaging model, so if you’re used to NPM, things will just work out of the box:
all the standard patterns ignored by NPM are ignored by Claudia as well (including .git, .hg and so on)

if .gitignore or .npmignore exist, patterns listed in those files will be excluded
if the package.json file includes the files property, only those patterns will be included. See the files section of the NPM configuration guide for more information.
all NPM workflow steps (such as post-install) will be executed as during a normal installation, so you can script additional tasks such as transpilation easily.

It’s a good practice, although not necessary, to explicitly list the files or file patterns you want to deploy in the files property of package.json. This will ensure you avoid deploying test and development resources and local configuration files. You do not have to list package.json here, it will automatically be included.

I feel that there are a few inconsistencies here that you should definitely call out.

[ ] Maybe state that it uses npm pack so you can use that to see what would be included
[ ] If .gitignore or .npmignore exist, patterns listed in those files will be excluded -- This is very misleading... If .npmignore exists, it uses this file to get it's excludes even if .gitignore exists, this means you can list files in .gitignore but not include them in .npmignore if you want files to be deployed, but not committed to the repo.

@gnarf Hi!
Thank you for pointing this out, we saw it and will see to clarify. Its already forwarded.
Thank you again!

I just checked the page and it seems to still say the same thing, is there
another issue open I can track?
On Nov 19, 2017 23:10, "Gojko Adzic"<EMAIL_ADDRESS>wrote:

Closed #134 https://github.com/claudiajs/claudia/issues/134.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/claudiajs/claudia/issues/134#event-1349132891, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAhh60xXrok_ZCQ7K3k-hGP_27j1LOdmks5s4PvKgaJpZM4QQWJp
.

i've left a note that npm pack is executed, and I think the wording is not misleading at all. we can't explain how npm pack works in detail on that page, people should go and learn about npm pack if they need those edge cases

Ah yes, this helps a lot...  Thanks!
On Nov 20, 2017 08:56, "Gojko Adzic"<EMAIL_ADDRESS>wrote:

i've left a note that npm pack is executed, and I think the wording is not
misleading at all. we can't explain how npm pack works in detail on that
page, people should go and learn about npm pack if they need those edge
cases
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/claudiajs/claudia/issues/134#issuecomment-345702339,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAhh61x-iwjZZFR7E5OuOLexPYtKgHqQks5s4YT8gaJpZM4QQWJp
.

Took me a while to find this information. Might actually be helpful to just have a small warning section or something.


Allow reply from individual notifications on Android

Summary
Refactored Android Push notifications. With this refactor we ensure that each notification is not merged with previous ones as we used to do, this allows a user to reply to a specific message in case there are multiple notifications from the same channel but different threads.
Following the android documentation for push notification best practices:

After a user replies with the inline reply action, use MessagingStyle.addMessage() to update the MessagingStyle notification and do not retract or cancel the notification. Not cancelling the notification allows a user to send multiple replies from the notification.

This PR also includes the sender avatar in the push notification and fixes an issue when trying to reply to a message that belongs to a thread.
Ticket Link
https://mattermost.atlassian.net/browse/MM-22933
https://mattermost.atlassian.net/browse/MM-36693
Screenshots

Release Note
Android:
* Added ability to reply to individual messages using the push notifications
* Included sender avatar in push notifications
* Fixed an issue that cause the reply from a push notification to fail when the message belongs to a thread

Building app in separate branch.

@enahum is there a specific server that I need to log in with to test this properly?

@matthewbirtch no, community would do

@enahum I haven't tested but this sounds like we're removing a pretty key piece of functionality that is stacking push notifications?
cc// @matthewbirtch

@esethna do watch the screenshots, they are grouped together, Also it would be good if you give the Android docs a read https://developer.android.com/training/notify-user/group

Also this work will help you handle CRT notifications with just a little tweak

@enahum Thanks, I'm just trying to understand how we used to group before vs how we are grouping now.
Based on the screenshots it looks like we are grouping by thread now? But how did we used to group before this change, by channel?

@esethna we are grouping by channel, not thread... what we use to do was replace the notification message with all the conversations that sent a notification for a specific channel


Badges aren't working :(

It looks like whatever service backs up the badges isn't working properly.

(https://github.com/microsoft/winget-pkgs/pull/65272#issuecomment-1176498022)

The issue has been fixed now and can be closed.

It's broken again :(

Maybe my browser was caching weird, it looks fine for me now. Closing again...


Will Kestrel  cancel the request immediately

when there are many requrest in the queue, and some user may refresh or stop in the browse when website is slow, if kestrel not cancel the request immediately, that will make site much slower,
I know there is CancelationToken I can use to cancel the action immediately ,  but I may not use CancelationToken everywhere,  I know Thread can Abort() , but in asp.net core  seems there are Tasks , and I don't know how to cancel a Task  immediately.
so my question is will "kestrel" or "asp.net core's HttpContext"  abort the request immediately  when connection reset

No, Kestrel has no way to abort user code. Cancellation is cooperative. If you have long, expensive operations then they should listen to the HttpContext.RequestAborted CancelationToken and terminate themselves.

Yes the system is fundamentally cooperative. Aborting a thread is an extremely dangerous operation and can leave an app unstable. You can safely kill an entire process, but that of course has its own issues.

May I ask , How Node or PHP or  Classic ASP , WebForm handel connection reset ?

Aborting a thread is an extremely dangerous operation and can leave an app unstable

dangerous only when you are sending data to database or complex business logic. and if the page only contains query data and send html data, it's safe to abort immediately.
so here's what I'm thinking:
// default is false
HttpContext.IgnoreUserAbort = true; // force the thread running even when browse abort.

How other systems handle connection resets is not particularly relevant because ASP.NET Core is not any of those systems (and shares almost nothing with any of them).
The idea is that if you already know your code is "safe" for Thread.Abort, you might as well write your code cooperatively anyway (such as by using cancellation tokens).
I found a few links discussing Thread.Abort and how to safely stop code from running:

https://blogs.msmvps.com/senthil/2008/12/17/the-dangers-of-thread-abort/
https://stackoverflow.com/questions/1559255/whats-wrong-with-using-thread-abort
https://haacked.com/archive/2004/11/12/how-to-stop-a-thread.aspx/
http://www.windowsdevcenter.com/pub/a/dotnet/2003/02/18/threadabort.html

@Eilon I see your point from this blog https://blogs.msmvps.com/senthil/2008/12/17/the-dangers-of-thread-abort/
and May I ask , Should/Will MVC or RazorView RazorPage those frameworks  check HttpContext.RequestAborted  when context switch , I mean  when switch filter pipeline in MVC  ,  render partial view in RazorView or RazorPage,  I think at those point , thow a TaskCancelationException is safe.

@John0King - I'm not aware of any plans to make such a change. @davidfowl / @rynowak - any thoughts on checking HttpContext.RequestAborted from more places?

We shouldn't, it's already caused issues in identity, session and static files automagically using the token so no. You should use the token where appropriate in your API where you explicitly want to cancel work based on the connection lifetime.

We periodically close 'discussion' issues that have not been updated in a long period of time.
We apologize if this causes any inconvenience. We ask that if you are still encountering an issue, please log a new issue with updated information and we will investigate.


[FEAT] Android 13 support

Is your feature request related to a problem? Please describe.
Possibly, if latest ApkTool version is not broadly compatible with APKs built with Android 13 build tools.
Describe the solution you'd like
Android 13 support from ApkTool. Historically, ApkTool has released updates for new Android versions. If the latest ApkTool version is not compatible with Android 13 build tools, I would like to see an ApkTool release that is compatible.
Additional context
N/A

API 33 (Android 13) is in the upcoming 2.6.2 release slated by end of year. It will bring this compatibility.


Google sign-in without firebase

In most of tutorials on the web, I can see that the plugin google_sign_in doesn't require firebase. In pub page, it is mentioned that the application must be registered in the following link :
https://developers.google.com/mobile/add?platform=android
That link is now redirecting to firebase's homepage. So my question is:
Is it still possible to Sign-in without firebase ? Where should I register the app in that case ?

Is this planned any sooner?

For using google_sign_in with a plain Google Cloud project, here's what I'm doing:

From the GCP Console for your project, go to APIs & Services > Credentials (https://console.cloud.google.com/apis/credentials)
Click the Create Credentials button, select OAuth Client ID
On the next screen, select Android as the Application Type
Fill in Signing-certificate fingerprint
Fill in Package name

It seems like creating a Firebase app takes care of this step for you (and does a bunch of other things to your GCP project as well), but it's the only thing required for basic login as far as I can tell.

This method does not give idtoken

It does, you need to make sure to register both SHA-1 and SHA-256 keys in project settings.

@omarbelkhodja Is the issue still relevant after comments above?

Yes, this is a big problem. There don't seem to be any documentation except https://github.com/flutter/flutter/issues/36673#issuecomment-520446732. Thanks @truthmast

Has anyone a solution to this issue?

From https://github.com/flutter/flutter/issues/73455 by @avioli
https://github.com/flutter/flutter/issues/73455#issuecomment-759116031 should be documented to avoid running into issues

From https://github.com/flutter/flutter/issues/73455 by @avioli
https://github.com/flutter/flutter/issues/73455#issuecomment-759116031 should be documented to avoid running into issues

works fine for android and not for ios. i spend a lot of time on ios regarding google login without firebase

Any Solutions for IOS ? Every solution I have found has been only for android

I find the solution. Just download the .plist file from gg cloud, rename the file to GoogleService-Info.plist and put it in Runner.

Any updates on this?

Please at least clarify it:

Is firebase required for google_sign_in to work on iOS?
If yes add it to plugin description if no add working example without firebase

Thanks a lot.

Updating my instructions from a previous comment to include steps for setting up iOS
For using google_sign_in with a plain Google Cloud project (no Firebase required), here's what I'm doing:
Android

From the GCP Console for your project, go to APIs & Services > Credentials (https://console.cloud.google.com/apis/credentials)
Click the Create Credentials button, select OAuth Client ID
On the next screen, select Android as the Application Type
Fill in Signing-certificate fingerprint

For instructions on finding your signing-certificate fingerprint, https://developers.google.com/android/guides/client-auth)

Fill in Package name

iOS

From the GCP Console for your project, go to APIs & Services > Credentials (https://console.cloud.google.com/apis/credentials)
Click the Create Credentials button, select OAuth Client ID
On the next screen, select iOS as the Application Type
Fill in Bundle ID
After clicking Create a dialog will open with a DOWNLOAD PLIST button -- Grab this file and rename it to GoogleService-Info.plist
Open Xcode and put this plist file into the Runner folder

Everything online says google_sign_in can be used on android without having to explicitly set the client_id when instantiating the GoogleSignIn instance. When I was using firebase, this worked fine. Now, I'm trying without firebase and am not able to get an id_token unless not only I do specify the client_id but also make sure to not use the android one I created but use the web one instead. Is this because I have misconfigured something or is this expected behavior? I definitely must echo the sentiment that documentation for this basic functionality seems to be sorely lacking.

same as @anqit
here  are some workarounds

I followed this documentation https://medium.com/codebrew/flutter-google-sign-in-without-firebase-3680713966fb
Since I've changed  classpath 'com.google.gms:google-services:4.3.15'
I'm getting the following issue
requires google-services.json file where that is coming from firebase
this is confusing ??


Add leading/trailing ones and zero count instructions

Since #1115 has been merged, we have a bit more space to add some useful instructions. I think 4 of such instructions could be:

u32clz - count leading zeros.
u32ctz - count trailing zeros.
u32clo - count leading ones.
u32cto - count trailing ones.

We have some of these implemented in #874, and I also believe @bitwalker Implemented handling of these in the compiler somewhere. So, we may be able to re-use some of the logic.
In addition to these, I think we should add corresponding procedures to the std::math::u64 module. This would allow us to compute these values for field elements as well (i.e., first split the field element into low/high 32-bit values using u32split and then use std::math::u64 module to compute the desired value).
One open question: in #874 we also had an implementation of ilog2 instruction on field elements. I wonder if we should also implement this one - or if the above operations can be used somehow to emulate it relatively efficiently.
Implementing the above functionality should close #807 and #863.

@bobbinth I have a couple of clarifying questions:

Do we want these instructions to consume the value it is applied to? Judging by the mmr implementation — yes, but I want to make sure.
Do we want to create corresponding decorators, as it was done in the #874? (It's quite a silly question because in order to effectively compute these values we'll need either a decorators, or new operations)

Yes, to be consistent with other similar instructions, these instructions would work as "pop element off the stack and then push the result of the operation onto the stack.
In cases where adding a decorator can make the operation more efficient, we should add it. But I would not introduce new operations in the VM.

Closed by #1176 and #1179.


Bit Operators

This is an implementation of issue #8. It still doesnt have yet the multiply/division optimization, the constatant propagation nor the spir-v emission.

Thanks a lot for your contribution! SPIR-V support should be pretty easy to add, and unit tests should be added too to test the generation (instead of changing the sfml example).
I'll look more deeply into your contribution once I have more time.


"Component tokens" component

Make an internal component that automates documentation of a components "component tokens" to be used in Storybook (and Storefront in the future).
Notes:

Use postcss plugins in js to parse our css
Let import do the work and pass the content to the component
List all CSS variables in a table
Maybe support comments in code thats also interpreted?

Something along the lines of:
Input CSS:

.ds-button {
  --dsc-button-background--active: var(--ds-color-accent-base-active); /** Button background */
  …
}

Component use:
import css from '@digidr/designsystemet-css/button'

<ComponentTokens css={css} />

Rendered table:

Token
Description
Value

--dsc-button-background--active
Button background
var(--ds-color-accent-base-active)

I like this, but we should probably filter on --dsc-, and mark our internal variables with something like --dsci- (i for internal`)

Agree! Like the concept - good work 💪  and marking internal is a good suggestion @Barsnes 🙌


Where are beeware files installed?

Hello!
This project seems very interesting and all, but the downside is that the files needed to create an executable are too big. I am referring mostly to Android, which requires a lot of files in order to compile an app. I would like to uninstall all the android components from my PC due to space constraints, but I cannot seem to find where they have been installed. I deleted the android folder from my Python folder, as well as gradle and android studio. However, I still have a few more gigabytes to delete and I can't find them. When beeware downloads jdk, for example, where is it downloaded? How can I find all beeware components and delete the ones I do not currently need?

Nevermind, I found it! Everything i included in a folder named .briefcase in C:\Users\User.briefcase

Everything that Briefcase downloads as part of the build process is contained in the .briefcase directory within your user's home directory. (i.e., ~/.briefcase on macOS and Linux; C:\Users\<your username>\.briefcase on Windows).
Closing the ticket since the question should be answered; if you need any more details, feel free to keep the discussion going here, or open a new ticket.


Issuefix for metadata manager fixes

What type of PR is this?

/kind bug fix

What this PR does / why we need it:

region name coming as bucket name fix
removing query result from log
fixing msg when type is valid and region not specified
converting bucketSizeOperator  and objectSizeOperator to camelCase
store objects even though some api failed for object level
supporting caseinsensitive cloud type and coverting to lowercase internally

Which issue(s) this PR fixes:
Fixes #
Test Report Added?:

/kind TESTED

Test Report:

region name coming as bucket name fix

converting bucketSizeOperator  and objectSizeOperator to camelCase

removing query results from the log

fixing msg when type is valid and region not specified

supporting case-insensitive cloud type and converting to lowercase internally

Special notes for your reviewer:

LGTM


add reference to additional credential exchange protocol

Dear,
As mentioned by @arnoweiss, to follow the PR process, I'm opening an issue for https://github.com/eclipse-dataspace-protocol-base/DataspaceProtocol/pull/63
Improvement requests
Type: non-normative

Update reference to DCP instead of IATP
Add reference to OID4VC

Why Is the Feature Desired?
There are 2 changes:

Per decision of the EDWG to rename IATP by DCP
Proposal to explicitly mention other possible protocols, such as OID4VC to

avoid the creation of an artificial gravity effect around the same self-referencing protocol drafts DSP <-> DCP.
avoid the creation of a misrepresentation that DSP could only work with DCP.
ensure broader adoption of DSP from non-EDC based connector.

Solution Proposal
https://github.com/eclipse-dataspace-protocol-base/DataspaceProtocol/pull/63
Best
Pierre

Please see my comments in the PR regarding OpenId4. I will not approve the PR unless the OpenId reference is removed for the reasons I stated.
Regarding the EDWG, we can have that discussion there, but it was very clearly stated and agreed to that all EDWG profile specifications must be compatible with DSP and DCP. They serve as the baseline interop for data spaces using DSP and a decentralized identity architecture.

Hi @jimmarino,
Copy/pasting my reply to your comment on the PR.
Your message is raising the concern about the creation of a mandatory dependency between DSP and DCP. I don't recall that such a decision was voted in the EDWG.
On the opposite, there is a decision at the EDWG that each protocol has it's own TCK, making it possible by design, to be compatible with DSP with or without DCP.
For me to remove the reference to OpenId4VC, could you point to the normative parts of DSP that:

mandate that only DCP can be used
only non-human interaction are eligible for DSP.

?
Best regards,
Pierre

overtaken by event. fixed #58


Change of kaobox color possible?

Summary
I do not know if such option is possible, but I would like to change the color of the kaobox environment
Details
The original kaobox is bluei-ish, the goal is to be able to change the color to other colors
Additional context
Here is how the box is as of now.

For the record...
First change the color used in the kaobox definition in the file kao.sty (lines 1256, 1257). Then add the new color definition in the preamble of the main.tex file, according to this (https://latexcolor.com/) (line 77). And finally, compile the document as explained in the instructions.


Fish version of starship in emacs

Description
Checklist

[ ] Code formatted with ./format.

[ ] Code tested through nix-shell --pure tests -A run.all.

[ ] Test cases updated/added. See example.

[ ] Commit messages are formatted like
{component}: {description}

{long description}

See CONTRIBUTING for more information and recent commit messages for examples.

If this PR adds a new module

[ ] Added myself as module maintainer. See example.

[ ] Added myself and the module files to .github/CODEOWNERS.

Thanks! Rebased to master in a43e7112e58da89171d6ccdb2a0dece5cfd02480.

I'm on latest home-manager, but starship seems to initialize in fish regardless of this logic. I've tried TERM=dumb fish in my terminal emulator, and starship still runs. In emacs, TRAMP hangs on Waiting for prompt from remote shell.... My fish config output from home-manager seems like it should work. I added an echo to the interactive section, and it prints, so I'm pretty sure the logic is evaluated, at least?

Generated fish config
# ~/.config/fish/config.fish: DO NOT EDIT -- this file has been generated
# automatically by home-manager.

# if we haven't sourced the general config, do it
if not set -q __fish_general_config_sourced

set -p fish_function_path /nix/store/3snpm79srsml0mi9lg0lcllc71hhxjw7-fish-foreign-env-git-20200209/share/fish-foreign-env/functions
fenv source /etc/profiles/per-user/lh/etc/profile.d/hm-session-vars.sh > /dev/null
set -e fish_function_path[1]

# and leave a note so we don't source this config section again from
# this very shell (children will source the general config anew)
set -g __fish_general_config_sourced 1

end

# if we haven't sourced the login config, do it
status --is-login; and not set -q __fish_login_config_sourced
and begin

# Login shell initialisation
set MENU rofi -dmenu

# fish-foreign-env does not handle $()
set LESS_TERMCAP_mb (tput bold; tput setaf 2)
set LESS_TERMCAP_md (tput bold; tput setaf 6)
set LESS_TERMCAP_me (tput sgr0)
set LESS_TERMCAP_so (tput bold; tput setaf 3; tput setab 4)
set LESS_TERMCAP_se (tput rmso; tput sgr0)
set LESS_TERMCAP_us (tput smul; tput bold; tput setaf 7)
set LESS_TERMCAP_ue (tput rmul; tput sgr0)
set LESS_TERMCAP_mr (tput rev)
set LESS_TERMCAP_mh (tput dim)
set LESS_TERMCAP_ZN (tput ssubm)
set LESS_TERMCAP_ZV (tput rsubm)
set LESS_TERMCAP_ZO (tput ssupm)
set LESS_TERMCAP_ZW (tput rsupm)

# fish does not perform wordsplitting
set EDITOR emacsclient -ca emacs

# and leave a note so we don't source this config section again from
# this very shell (children will source the general config anew)
set -g __fish_login_config_sourced 1

end

# if we haven't sourced the interactive config, do it
status --is-interactive; and not set -q __fish_interactive_config_sourced
and begin

# Abbreviations
abbr --add --global -- mkd 'mkdir -pv'
abbr --add --global -- nrs 'sudo nixos-rebuild switch'
abbr --add --global -- nrsl 'sudo nixos-rebuild switch -option builders '\'''\'''
abbr --add --global -- nrsu 'sudo nix-channel --update; sudo nixos-rebuild switch'
abbr --add --global -- sctl 'sudo systemctl'
abbr --add --global -- uctl 'systemctl --user'

# Aliases

# Prompt initialisation
if test [[  "$TERM" != "dumb"  -a \( -n "$INSIDE_EMACS"  -o "$INSIDE_EMACS" == "vterm" \)  ]]
eval (/nix/store/5jvknq0lqih481xykpfjdsq3h48vjq0m-starship-0.44.0/bin/starship init fish)
end

# Interactive shell intialisation
# add completions generated by Home Manager to $fish_complete_path
begin
set -l joined (string join " " $fish_complete_path)
set -l prev_joined (string replace --regex "[^\s]*generated_completions.*" "" $joined)
set -l post_joined (string replace $prev_joined "" $joined)
set -l prev (string split " " (string trim $prev_joined))
set -l post (string split " " (string trim $post_joined))
set fish_complete_path $prev "/home/lh/.local/share/fish/home-manager_generated_completions" $post
end

fish_vi_key_bindings
# Emulates vim's cursor shape behavior
# Set the normal and visual mode cursors to a block
set fish_cursor_default block
# Set the insert mode cursor to a line
set fish_cursor_insert line
# Set the replace mode cursor to an underscore
set fish_cursor_replace_one underscore
# The following variable can be used to configure cursor shape in
# visual mode, but due to fish_cursor_default, is redundant here
set fish_cursor_visual block
echo "this is executing"

# and leave a note so we don't source this config section again from
# this very shell (children will source the general config anew,
# allowing configuration changes in, e.g, aliases, to propagate)
set -g __fish_interactive_config_sourced 1

end


Provide an alternative to Uri#queryParameters which returns the values as a list

This issue was originally filed by @MarkBennett

What steps will reproduce the problem?

Parse a Uri with a query string. (i.e. Uri.fromString("http://test.com/?age=32&name=Mark)
Parse and transform uri query string manually.
Be sad when I wasted extra lines.

What is the expected output? What do you see instead?
I expected to be able to call uri.params to access a Map of the params. This would also safely escape parameters, etc.
What version of the product are you using? On what operating system?
Version <IP_ADDRESS>204121423, Build 6479
Dart SDK version 6478, Dartium version
Please provide any additional information below.
This issue arose as the result of a forum post...
https://groups.google.com/a/dartlang.org/group/misc/browse_thread/thread/b4f94de2bb6456cb#

Now also has Uri.queryParametersAll that returns Map<String,List<String>>


Mailgen Emails Breaks in iOS Email App when there is more than 1 recipients

Describe the bug
Seems like the email is not full-width.
To Reproduce
Steps to reproduce the behavior:
Prerequisites:

Install Monika v1.6.3 first by running npm install -g @hyperjumptech/monika or download the binary in the release page
Make sure to setup your email in your iOS Email app

Create a new file called config.yml:

notifications:
  - id: unique-id-smtp
    type: smtp
    data:
      recipients:
        - YOUR_EMAIL_ADDRESS_HERE
      hostname: YOUR_SMTP_HOST
      port: YOUR_SMTP_PORT
      username: YOUR_SMTP_ACCOUNT
      password: YOUR_SMTP_PASSWORD
probes:
  - id: sample_1
    name: Sample Request
    requests:
      - method: GET
        url: https://reqres.in/api/users/23
    alerts:
      - query: response.time > 200
        message: Response time is {{ response.time }} ms, expecting less than 200ms
      - query: response.status != 200
        message: Status code is not 200. I think their service is down.
      - query: isEmpty(response.body)
        message: Response body should not be empty!
    incidentThreshold: 1
    recoveryThreshold: 1

Run Monika by running monika -c config.yml
Check your email in iOS Email App

Expected behavior
It should display the email in full-width
Screenshots

Desktop (please complete the following information):

OS: iOS 15

Additional context
Please check https://www.npmjs.com/package/mailgen for better context. Probably test other themes

Hi @galanggg how is it going? After creating an issue in Mailgen (https://github.com/eladnava/mailgen/issues/55) it seems that the bug is not reproduce-able somehow.
Do you find anything while working on this? If you are not interested anymore in this issue or couldn't reproduce because of hardware limitation, let me know :grinning:

Hi, mas @dennypradipta. First of all, I want to apologize because since this issue was created to this day I haven't had time to debug due to busy work at the office and other things. Maybe you can re-assign this issue to someone else 😄


Add Transform2d component

Objective
Add Transform2d and GlobalTransform2d components and use them to replace Transform and GlobalTransform in 2D systems.
Closes #2548
Closes https://github.com/bevyengine/bevy/issues/4149
Tasks

[x] Use the 2D matrix in the shaders. Leaving this as-is for now. See @superdump's comment below.
It should be investigated while keeping @superdump's thoughts about reducing the split between 2D and 3D in mind.

Changelog

Added Transform2d and GlobalTransform2d components.
Added Spatial2dBundle and Transform2dBundle.
Changed SpriteBundle, MaterialMesh2dBundle, Text2dBundle, Camera2dBundle, and the associated systems to use 2D transform components.
Changed sync_simple_transforms and propagate_transforms to be generic over the transform types.

Migration Guide
SpriteBundle, MaterialMesh2dBundle, Text2dBundle, Camera2dBundle, and the associated systems were changed to use the new Transform2d and GlobalTransform2d components.
Keep in mind that queries for Transform and GlobalTransform will no longer match entities spawned with these bundles.
sync_simple_transforms and propagate_transforms are now generic over the transform types.
// Before (0.10)
app.add_systems((
    sync_simple_transforms,
    propagate_transforms,
));

// After (0.11)
app.add_systems(
    Update,
    (
        sync_simple_transforms::<Transform, GlobalTransform>,
        propagate_transforms::<Transform, GlobalTransform>,
        // And the same for the new 2d transform components
        sync_simple_transforms::<Transform2d, GlobalTransform2d>,
        propagate_transforms::<Transform2d, GlobalTransform2d>,
    )
);

This sounds like a pain for all the third party plugins that want to be dimension-agnostic...

This sounds like a pain for all the third party plugins that want to be dimension-agnostic...

There will be some more effort required for plugin authors, but the improvement to performance, memory-footprint(more than halved), and ergonomics for the users is well worth it.
And for what it's worth. Porting bevy_rapier to this branch was very straightforward and it worked on the first compile.

And for what it's worth. Porting bevy_rapier to this branch was very straightforward and it worked on the first compile.

Could it still be used to create games with 3D graphics and 2D physics? Or would you have to add some translation layer to convert between the 2D and 3D transforms?

could you add "closes #2548" to the PR description?
The issue doesn't request a 2d transform but in the "alternatives" section it says

A Transform2D component would be more ideal

This would also solve the long-lasting problem that Transform cannot represent 2D shears. May I know what is currently blocking this PR so that I can help push it forward?

Neither Transform or Transform2d support any shearing as it stands.
I was planning on revisiting this PR soon to try and get it merged for 0.13 :)

Neither Transform or Transform2d support any shearing as it stands.

That's a little unfortunate, because I think this would be the best opportunity if we will ever support shearing. I think I got this PR confused with NodeTransform for UI and drew the wrong conclusion.
Performance-wise I'd expect a plain Affine2d to out-perform the current Transform2d encoding, but of course accessing the TRS components would not be as convenient. If it is decided that using using Affine2d for Transform2d is not an option, may I propose we use a diagonalisable matrix (therefore Mat2 instead of Vec2) for Transform2d::scale? In that case, scale would simply become scale: Mat2::from_diagonal(scale), and it would only take 8 extra bytes per entity, but we will be able to faithfully represent each Affine2d in a Transform2d.

I would really love this.
Wouldn't adding a 3D suffix to Transform and friends make sense for the sake of consistency?
There could be type aliases for the base names based on a feature defaulting to 3D which would have the same result as is the PR (Transform being an alias for Transform3D), but it would also allow for 2D projects to have the same ergonomics.
This would also close #4149 .

Benchmark
Command used: cargo run --release --example bevymark -- --waves 1 --per-wave 50000 --benchmark
This PR(yellow) vs main(red).

There's more gains to be made as this is still using Affine3s on the rendering side and were sending those to the gpu as well :)

@devil-ira hmm. So as noted in a comment above - is the idea to use z only for sorting, and use the Affine2 for the 'mesh uniform'? What about if you want to rotate about the x or y axes? (I'm thinking of spinning coins in platform games.) I mean, you can emulate that with a sprite animation, or with vertical/horizontal scaling, I suppose. Could you emulate a rotation around y = x (or 1,1 if you like)? I'm not sure.
I have a general concern that strictly limiting sprites or 2D meshes to only 2D transforms will work for some but force others to just go 3D, or implement awkward hacks for trying to achieve the same thing that would be simple in 3D.
@cart what are your thoughts on this space?

That is my biggest concern as well. Ideally we maintain enough flexibility that we don't end up railroading users.
We could easily keep allowing the use of 3D transforms with sprites. This would only need a few lines to be tweaked here. I think this is the right choice.
This may create issues if say, a 2d physics plugin, later requires 2D transforms and you want to use 3D ones for your sprites, but I was already planning to support parenting 3D transforms to 2D ones (and not vice versa) to support a 2D game sim + 3D graphics (ie. Metroid Prime).
And introducing skew would provide some flexibility too.
(@ruifengx might have opinions on this.)

And introducing skew would provide some flexibility too.

It would be great if Transform2d provides a skew. Apparently I was overcomplicating the situation and an additional skew: f32 would be enough to support any 2D affine transformation. But we still need to decide what skew means. I can think of three possible interpretations:

scale = Vec2::new(sx, sy) and skew = k together form an upper triangular matrix [[sx, 0], [k, sy]], in place of the current diagonal matrix from sx and sy;
skew = k indicates a [[1, 0], [k, 1]] skew matrix, applied before scale;
skew = k indicates the same skew matrix, but applied after scale;

In my current use cases, the skew always change together with scale, so any of these would work equally well for me (it just means I need to use different formulae for the pre-calculation). The first one saves one multiplication, while the second and the third ones make skew only related to the skewing angle (independent of scaling).

In my opinion, if we can stick to using a 3D affine transform in the render world and use a 2D transform abstraction in the main world if people want to use it, that provides the most flexibility for people to use either a simpler 2D API or a 3D in a 2D kind of world API as they want/need to. It could leave some performance on the table, but also, I feel a bit like there’s more performance to be gained generally, and the level of performance is maybe not as important as flexibility and simplicity in this case. Would you all feel ok if we started with using a 3D affine transform in the render world and then offering both simpler 2D and 3D transforms for use for 2D stuff, and maybe later looking into whether a move to pure 2D in the rendering side is necessary/significantly beneficial?

That sounds good to me :)

I'm currently looking at splitting render ordering into a separate component in another PR so I can get rid of z_translation in this one.

Any idea when this might land 🙂? I'm guessing it won't be in 0.13.

So why do we need a separate GlobalTransform2d? Can't we have Transform2d and Transform both propagate into GlobalTransform if we require them to be disjoint? Seems like this would resolve some of the issues with keeping positions generic for external plugins.

This needs a proper design :)
Tracked in https://github.com/bevyengine/bevy/issues/7876


Run tests with spin-registry-push as well

This PR adds ability to run existing tests with apps pushed using spin-registry-push command. To test that, it starts a registry, managed by k3d and build/push apps to this registry.

requesting review from @kate-goldenring @Mossaka @jsturtevant

Hi @Mossaka, when you have some bandwidth, could you please (re)-review this PR and provide your feedback. thank you

Hi @Mossaka, could we please merge this PR (if there are no blocking comments).


Use nginx image which supports bcrypt

This is a follow-up to #4332 which was not fixed in the correct way
The problem is basically that the example uses htpasswd file with bcrypt hashes while the nginx image in question do not support bcrypt

@stevvooe : Pinging you as requested in #4332.
Give me a note if you want me to squash the commits.

Please update your commit message to not reference the issue #, as it will ping the issue every time it is introduced into a new branch. Issue and PR numbers are a Github construct and should only be mentioned in other issues or PRs.

Can you add a note about the problem you were trying to solve in the other PR?

Ok, I have added the note as requested even though I felt that was kinda like repeating myself and Stephen.

@stevvooe @vidarl PTAL at my copyedit.

LGTM

Thanx for the fix @mstanleyjones. I have been offline for a few days.
Glad to see this one merged


TS version popup-text breaks current trigger

[2021/6/14 20:32:15] Info: 时间轴: BrowserConsole: Trigger UCU Morn Afah has invalid outputString mornAfahPlayer. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)
[2021/6/14 20:32:23] Info: 时间轴: BrowserConsole: Trigger UCU Akh Morn has invalid outputString text. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)
[2021/6/14 20:32:35] Info: 时间轴: BrowserConsole: Trigger UCU Exaflare has invalid outputString text. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)
[2021/6/14 20:32:55] Info: 时间轴: BrowserConsole: Trigger UCU Akh Morn has invalid outputString text. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)
[2021/6/14 20:33:10] Info: 时间轴: BrowserConsole: Trigger UCU Morn Afah has invalid outputString mornAfahPlayer. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)
[2021/6/14 20:33:24] Info: 时间轴: BrowserConsole: Trigger UCU Exaflare has invalid outputString text. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)
[2021/6/14 20:33:43] Info: 时间轴: BrowserConsole: Trigger UCU Morn Afah has invalid outputString mornAfahPlayer. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)
[2021/6/14 20:33:58] Info: 时间轴: BrowserConsole: Trigger UCU Akh Morn has invalid outputString text. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)
[2021/6/14 20:34:14] Info: 时间轴: BrowserConsole: Trigger UCU Exaflare has invalid outputString text. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)
[2021/6/14 20:34:33] Info: 时间轴: BrowserConsole: Trigger UCU Morn Afah has invalid outputString mornAfahPlayer. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)
[2021/6/14 20:34:47] Info: 时间轴: BrowserConsole: Trigger UCU Akh Morn has invalid outputString text. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)
[2021/6/14 20:35:05] Info: 时间轴: BrowserConsole: Trigger UCU Exaflare has invalid outputString text. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)
[2021/6/14 20:35:24] Info: 时间轴: BrowserConsole: Trigger UCU Morn Afah has invalid outputString mornAfahPlayer. (Source: file:///C:/Users/Trim21/Desktop/act/cactbot/dist/ui/raidboss/raidboss.bundle.js, Line: 13665)

There is a previous error in log, didn't know if they are relative.
re-produecd in emulator

Do you have a log you can post for this?

reason: I set some config set non-default value of outputString.
Nothing about log.


how do I use options in TypeScript

Hi,
Trying to use this awesome library as part of a TypeScript project. Though I have been doing TypeScript for a few months now, I seem to have a lot of trouble using the options type.
Using the type definitions from @types/csv-parse, I am able to successfully import and use parse as follows:
import * as parse from 'csv-parse';

However, to help with discovery, I want to declare an options variable as follows:
const options : options = {
    delimiter: ',',
    quote: '"'
};

What import statement should I use to do that?
When I use the following, while it compiles fine, I end up with a Cannot find module 'csv-parse/types' error at runtime:
import {options} from 'csv-parse/types';

If I drop that line and use any type for my options, it runs fine and compiles fine, but I obviously loose intellisense and type-checking in my code.

I'm not familiar with TypeScript but It seems quite normal you get such an error when importing a module which does not exists. I'm not against creating this types file f it help to have such a meta information file for TypeScript users.

Thanks for the quick response. Looks like andy-ms was the one who posted those on DefinitelyTyped.
Sounds like I should file a bug (or submit a patch) against that project instead.

I think we shall get in touch with @andy-ms and propose him to import those information here if they apply to this package

DefinitelyTyped/DefinitelyTyped#15024 should allow you to import { Options } from "csv-parse" directly.

@andy-ms Thanks for the update. Looks like import { options } from 'csv-parse'; is not working. Looking at the definition file, those types are declared in module 'csv-parse/types' but are not re-exported.
I can't say I have a lot of experience with definition files, so don't expect anything immediate on that.

That pull request isn't merged yet so it won't work immediately.

Ah, had missed that small, yet important detail. I will give it a shot.

i'm addressing this question to all TypeScript users. What would you prefer, having the type definitions along the original package (in our case csv-parse) or inside a centralising package (DefinitelyTyped, i'm surprised to not found any package.json inside this repo), or both ?

We recommend bundling types if possible. That would ensure that the types reflect the correct version of the library, and users only have to install one package.
The reason there's no package.json for DefinitelyTyped is that it represents many packages, one per directory, and the packages are generated automatically from the definitions.

It makes sense. Any help will be appreciated to ensure the types are correctly integrated with this package and associated to some tests.

@wdavidw The current definitions use any[][] for the stringify input parameter. This means you can't use an array of objects, since object is not assignable to any[], and therefore object[] is not assignable to any[][]. Perhaps this could be changed to any[][] | object[] ?

Any progress on this? I would love to see types bundled with this package. It would make this lib a lot easier and safer to use.

There have been some progress, not everything is typed yet but the most important modules are, for example:

csv-generate
csv-parse
csv-stringify

It is still uncomplete and help would be appreciated. The type definitions are also tested, for example in csv-parse.

Doing some cleanup.


fix: Added root element as the ParentBoundary for TableFilterPane.

Description

When the Table is placed at the top of the Canvas the Filterplane overflows / gets out of the canvas. It was fixed before but due to some changes the CANVAS_WIDGET collapses in deploy mode.
We are now using id = root element itself as the BoundaryParent and also have a save offset of 70.

Fixes #7996
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Tested Manually

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Test coverage results :test_tube:
:white_circle: Total coverage has not changed
No changes to code coverage between the base branch and the head branch

/ok-to-test sha=93e2f5e

/ok-to-test sha=dc07329

@yaldram is the DP ready for testing ?

@shwetha-ramesh Yes it is ready for testing.

@yaldram tested this DP. Working fine now in edit, comment and deploy mode.

Hey @shwetha-ramesh just for my knowledge do we also check the preview mode, I see some diffs there often compared to the view mode

@yaldram removing myself from the review, I am not sure of the impact ill let others take a call

Hey @shwetha-ramesh just for my knowledge do we also check the preview mode, I see some diffs there often compared to the view mode

@somangshu my bad, I meant preview mode and not comment mode in my last comment.
This is how it looks on Preview mode


Submariner: add support for IBM ROKS

Enable Submariner deployment on IBM ROKS (managed Openshift service), similar to other Openshift managed services (ROSA and ARO) submariner-gateway will be deployed using K8S LB service and there is no need to run cloud prepare.

/cc @aswinsuryan @sridhargaddam

/retest-required

/test unit-tests-sonarcloud

/retest

/lgtm

/test unit-tests-sonarcloud

/assing @yboaron
/unassign @aswinsuryan
iunassign @KevinFCormier

/assign @yboaron
/unassign @KevinFCormier


[WIP] partially unbreak chunked gzip responses on appengine

see #618

Added WIP, ping when it's ready for review. :)

I do think this is correct, it just doesn't fix things all the way because the data coming back from GAE httplib is still not chunked.

This needs to be rebased. @t-8ch would you like me to do that?

Sorry for forgetting this...
@sigmavirus24 This would be awesome, it may take till tomorrow for me to get at my PC

@t-8ch I'll take a stab in a couple hours. :custard:

:sparkles: :custard: :sparkles:

Also @t-8ch please don't apologize for forgetting this. You did the hard work of figuring out what int GAE returns for a response to a HEAD request. That would have blocked me.

@sigmavirus24 @shazow I did the rebase, it was actually trivial :-)

Thanks @t-8ch! :custard:


Final Submission

Gather all files needed to submit final game.  Test that submitted file works as expected.

Done.


[N02] Inadequate NatSpec

We identified the following instances of incorrect or incomplete NatSpec comments:

in the getPaymentDelegation function of the Accounts contract:

the @param account statement is missing
the @return statement describes both values returned as a single value instead
of two separate values
the @return statement should note that the fraction parameter is a
FixidityLib value, or has 24 decimals of precision

in the initialize function of the Exchange contract:

the @param stableTokenIdentifier statement is in the wrong order.

throughout the codebase, the getVersionNumber functions share a common issue:

the @return statement describes all four values returned as a single value
instead of four separate values
during this review we identified this issue in the ExchangeBRL, StableTokenBRL,
Validators, Exchange, and ExchangeEUR contracts
this issue is replicated across the codebase and is found in code outside the
scope of this review

In order to keep the codebase well documented, consider updating the NatSpec comments.

The issue with @return statements exists throughout the contracts code base, including many contracts that were outside the scope of this audit. For consistency, and to get them all in one go, we'll keep singular @returns for now, but have created #9268 to fix this throughout our smart contracts in the immediate future.


How to use Parse send

I've a NAS-WR01ZE for which I want to fix the MSB. MQTT sub shows:
markr@Yavin4:~$ mosquitto_sub -h alderaan.paracas.nl -u domoticz -p 1883 -P xxx  -t 'zwave/11/50/0/value/65537' -v
zwave/11/50/0/value/65537 {"time":1662221570016,"value":-21474833.6,"nodeName":"Leeslamp","nodeLocation":"Woonkamer"}

I want to fix the :-21474833.6 value, and it seems that Devices values configuration should work.  I added an item:

Selected the correct device
Selected "Electric consumption (kWh)" as value
Selected "energy" as device class (leaving it empty gives similar results)
Enabled Parse Send
Entered "return 999;" in the text box

I would expect to get "999" in the MQTT subscription, but it doesn't. What am I missing here?

Ah, I forgot to click on Save at the bottom.

BTW, this is sooo nice. This is how to get reasonable readings kWh from this el cheapo wall plug:
return Math.round(((value * 100) & 0x7fffffff) * 0.26) / 100;

I got the correction factor 0.26 from https://gist.github.com/KloudJack/4489ffcbeae58b88072f391dca55b40d.

Glad you like it @markruys 🎉


⚠ ClamAV has degraded performance

In 0472230, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 76 ms

Resolved: ClamAV performance has improved in 55c2852 after 6 minutes.


Confused about installation versions

Repro steps: (as of 12/19/2024)
install cs using official script
run cs install mill
run mill --version
Expected:
mill version 0.12.3 as per this PR: https://github.com/coursier/coursier/pull/3188
(edit: the PR did nothing but bump up the version in .mill-version; I could have sworn there was another update that was more meaningful than that but I could be thinking of something else)
Actual:
mill version 0.11.13

Background context:
I'm new to the java/scala ecosystem (honestly I tried circa 2012 but gave up because of the various forms of indirection). For one reason or another, I'm in a position to try again and hoping that the overall ecosystem has matured (which is a definite improvement over 2012). However, I also posted regarding sbt and the annoying warning regarding giter8 when running sbt new (https://github.com/coursier/coursier/issues/3045) so I decided to give mill a try especially because I like the fact that build.sc uses scala to build scala;  but that is neither here or there. I like the fact that cs is a standard in package mgmt for scala et al. but just like the whole dependency chain of ownership between sbt, giter8, coursier, maven central?, etc. I don't know how issues and updates get propagated.
Issue/question:

How is it that mill is not the most up-to-date version after running cs install mill?
(possibly out of scope) What are the chains of propagation in order to keep things updated?

#3188 updates the Mill version used to build coursier itself
For Mill installation refer to https://mill-build.org/mill/cli/installation-ide.html
Mill installed via coursier is not recommended (https://mill-build.org/mill/cli/installation-ide.html#_coursier_unsupported)
To update your locally used Mill version, just bump the version in your local .mill-version file


Start Main Functionality of DALL-E Image Generator - CORS Fix and Image Container

Description:
This pull request represents the initial steps toward implementing the core functionality of the DALL-E Image Generator. The changes introduced in this pull request address CORS origin issues and enhance the image container's structure for a smoother user experience.
Changes Made:

Fixed CORS Origin Issue:

Implemented necessary changes to allow cross-origin requests for a more seamless integration of the DALL-E API.
Leveraged the cors middleware to ensure the application can successfully communicate with external APIs.

Enhanced Image Container:

Adjusted the structure of the image container to ensure responsive design and better utilization of available screen space.
Applied styling modifications to improve the presentation of images within the container.

Outstanding Tasks:

Implement Image Generation Logic:

Build the core logic to generate DALL-E images based on user inputs.
Integrate with the DALL-E API to retrieve and display generated images.

User Input Handling:

Develop a user-friendly interface to collect relevant input parameters for image generation.

UI Refinements:

Polish the user interface, focusing on design, user interactions, and responsiveness.

Fixes #817
Screenshots
https://github.com/SurajPratap10/Imagine_AI/assets/85815172/8734638c-0b7d-4a7d-9c48-f404f36adfbc
Checklist

[x] Tests have been added or updated to cover the changes
[ ] Documentation has been updated to reflect the changes
[x] Code follows the established coding style guidelines
[x] All tests are passing

@SurajPratap10 ,I have started main fucntionality and also fixed husky deployment error,please review and merge my pull request


Register provider via policy For DigitalTwins.

Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

/azp run java - digitaltwins - ci

API change check
API changes are not detected in this pull request.

/azp run java - digitaltwins - tests


x/tools/gopls: v0.14.2 crashes with an Error

gopls version
Build info
----------
golang.org/x/tools/gopls v0.14.2
<EMAIL_ADDRESS>h1:sIw6vjZiuQ9S7s0auUUkHlWgsCkKZFWDHmrge8LYsnc=
<EMAIL_ADDRESS>h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=
<EMAIL_ADDRESS>h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
<EMAIL_ADDRESS>h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
<EMAIL_ADDRESS>h1:2O2DON6y3XMJiQRAS1UWU+54aec2uopH3x7MAiqGW6Y=
<EMAIL_ADDRESS>h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
<EMAIL_ADDRESS>h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ=
<EMAIL_ADDRESS>h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=
<EMAIL_ADDRESS>h1:brbkEFfGwNGAEkykUOcryE/JiHUMMJouzE0fWWmz/QU=
<EMAIL_ADDRESS>h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k=
<EMAIL_ADDRESS>h1:Oku7E+OCrXHyst1dG1z10etCTxewCHXNFLRlyMPbh3w=
<EMAIL_ADDRESS>h1:KUas02EjQK5LTuIx1OylBQdKKZ9jeugs+HiqO5HormU=
<EMAIL_ADDRESS>h1:YGD4H+SuIOOqsyoLOpZDWcieM28W47/zRO7f+9V3nvo=
<EMAIL_ADDRESS>h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM=
<EMAIL_ADDRESS>h1:tzxjVAj+wSBmDcF6zBB7/myTy3gX9xvi8Tyr28AuQgc=
go: devel go1.22-d6ef98b8fa Thu Nov 16 05:53:55 2023 +0000

go env

GOVERSION=devel go1.22-d6ef98b8fa Thu Nov 16 05:53:55 2023 +0000
GOHOSTARCH=amd64
GOHOSTOS=windows
What did you do?

go install golang.org/x/tools/gopls@latest based on IDE extensions recommendation
What did you expect to see?
Gopls in a working condition.
What did you see instead?
[Error - 4:23:41 PM] Client gopls: connection to server is erroring. Shutting down server. [Error - 4:23:43 PM] Stopping server timed out [Error - 4:23:43 PM] Stopping server failed Error: Stopping the server timed out 	at c:\Users\R\.vscode\extensions\golang.go-0.40.0\dist\goMain.js:21721:19 [Error - 4:23:44 PM] Client gopls: connection to server is erroring. Shutting down server. [Error - 4:23:44 PM] Client gopls: connection to server is erroring. Shutting down server. [Error - 4:23:44 PM] Client gopls: connection to server is erroring. Shutting down server. [Error - 4:23:44 PM] Client gopls: connection to server is erroring. Shutting down server.
Editor and settings

No Custom Settings
Logs

I revert to v0.14.1, which is working fine.

Hi, very little code changed between<EMAIL_ADDRESS>and v0.14.2 -- we just upgraded the x/telemetry dependency. Could you please help us investigate this failure on your end?
Since your error is not revealing, can you connect to a gopls daemon instance?
In your terminal:
go run golang.org/x/tools/gopls@latest -listen=localhost:8091

And then from your editor, start gopls with -remote=localhost:8091.
What do you see in your terminal? Does the gopls instance crash? Is the process busy?

@raghvenders since we can't reproduce and the error message does not include a stack trace from gopls, we don't have much to go on. Unless you or someone else experiencing a similar issue can help us debug, this will be difficult to figure out.
It is of course concerning that v0.14.2 is not working for you. If you could help us investigate, it would be greatly appreciated. Thanks.

@findleyr - The above error message that I mentioned was from gopls(server) stack when Go extension for vscode recommends gopls v14.2. After update, I was not able to LSP operations like method navigation or so. Even after I restarted my IDE, I encountered the same error. Hence I downgraded it to v0.14.1
However when I tried to reproduce it now i tried to upgrade it to through Go for vs code , recommendations - v0.14.2 and did install, now I have not encountered the issue. I will keep monitoring it though.
Help to track more : By the way , I did half way in your thing, starting gopls server with go run. However I don't know how to start modify gopls client in editor like this - -remote=localhost:8091 as I don't find relevant gopls flag. Kindly help on this.

@raghvenders thanks so much for testing again! It's possible you may have hit a problem while upgrading.
To set the -remote flag, pass it to "go.languageServerFlags" in settings.json.
More info: https://github.com/golang/vscode-go/blob/master/docs/troubleshooting.md#collect-gopls-information
Let us know if you encounter this again.


Sqlparser cannot parse a query generated by Drift

The Drift test suite generates the following query (crudTests > "inserting updates a select stream"):
SELECT f.really_good_friends,"user"."id" AS "nested_0.id", "user"."name" AS "nested_0.name", "user"."birth_date" AS "nested_0.birth_date", "user"."profile_picture" AS "nested_0.profile_picture", "user"."preferences" AS "nested_0.preferences" FROM friendships AS f INNER JOIN users AS "user" ON "user".id IN (f.first_user, f.second_user) AND "user".id != $1 WHERE(f.first_user = $1 OR f.second_user = $1)
When passing that through the SqlEngine.parse() the following error occurs:
Malformed sql: Expected identifier after '$' at <FileLocation: 355 unknown source:1:356>, Expected identifier after '$' at <FileLocation: 379 unknown source:1:380>, Expected identifier after '$' at <FileLocation: 401 unknown source:1:402>
I am not equipped to figure out whether the queries should be round tripable. But since the database executes it, I guess parser should be able to process it.

This is not ideal, but sort of expected. We use the postgres dialect in those tests because both sqlite3 and postgres support the $ character to declare variables. We prefer ? in sqlite3, but that is not supported by postgres.
With drift extensions enabled in the parser, the dollar sign has a special meaning which causes the query to be invalid. If you disable drift extensions in the parser, the query should parse correctly.
Really, we should be running $1 on postgres and ?1 on sqlite3, and only for packages that care about multiple dialects. I've opened #2536 to track that.


Kill the little typer and type annotation in lambda params

Lambda params are not supposed to be given types
They are used in little typer to synthesize types
Little typers are only used in ide and in unification (check the solution of types)

For ide we can store types in the concretes instead!
For unification, we can use a core type checker which gives us the types!

This can save memory consumption

Little typers are only used in ide and in unification (check the solution of types)

What about isPropType()?

What is Lambda params are not supposed to be given types ?

Well, it's a reference to the "Stop doing Math" meme.

Does it mean we can have only \ x => ... ?

No, we can use annotated lambdas to do "infer" for lambdas, but in core, they get removed (and the type is still in Result::type)

Little typers are only used in ide and in unification (check the solution of types)

What about isPropType()?

Well, we can have another LittleTyper that only works for type expressions.

What is Lambda params are not supposed to be given types ?

Well, it's a reference to the "Stop doing Math" meme.

Does it mean we can have only \ x => ... ?

No, we can use annotated lambdas to do "infer" for lambdas, but in core, they get removed (and the type is still in Result::type)

Oh, I see. the concrete typed lambda: \(x : X) => x will be separated to a core lambda \x => x and a type Pi X -> X. Is it right?

What is Lambda params are not supposed to be given types ?

Well, it's a reference to the "Stop doing Math" meme.

Does it mean we can have only \ x => ... ?

No, we can use annotated lambdas to do "infer" for lambdas, but in core, they get removed (and the type is still in Result::type)

Oh, I see. the concrete typed lambda: \(x : X) => x will be separated to a core lambda \x => x and a type Pi X -> X. Is it right?

Totally! ✅💯


slack: 4.36.138 -> 4.36.140

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for slack is: Desktop client for Slack
meta.homepage for slack is: https://slack.com
meta.changelog for slack is: https://slack.com/release-notes
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 4.36.140 with grep in /nix/store/gq4f1hzykkzkx2h2jxaskncnppisblyk-slack-4.36.140
found 4.36.140 in filename of file in /nix/store/gq4f1hzykkzkx2h2jxaskncnppisblyk-slack-4.36.140

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
slack

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/gq4f1hzykkzkx2h2jxaskncnppisblyk-slack-4.36.140 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A slack https://github.com/r-ryantm/nixpkgs/archive/d6e365ed754eb5144c477326a8d8e18d03d726ea.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/d6e365ed754eb5144c477326a8d8e18d03d726ea#slack

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/gq4f1hzykkzkx2h2jxaskncnppisblyk-slack-4.36.140
ls -la /nix/store/gq4f1hzykkzkx2h2jxaskncnppisblyk-slack-4.36.140/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

slack

Maintainer pings
cc @mmahut @amaxine for testing.

Tested on Linux, works fine.


yarn setup fails on windows

Issue Summary
When setting up a dev env on windows, yarn setup fails
[2021-12-21 15:45:01] INFO Relation: User to Role
[2021-12-21 15:45:01] INFO Finished database init!
Running "symlink:githooks" (symlink) task
>> Error: EPERM: operation not permitted, symlink '..\..\.github\hooks\pre-commit' -> '.git/hooks/pre-commit'
Warning: Failed to create symlink: (file) .git/hooks/pre-commit -> ..\..\.github\hooks\pre-commit. Use --force to continue.

Aborted due to warnings.
Done in 101.19s.

C:\data\src\24adv\Ghost (main -> upstream<EMAIL_ADDRESS>

Error is in grunt symlink when creating symlinks for githooks
This works in wsl, but not in native windows - maybe the solution is to use only wsl.
Steps to Reproduce
On Windows (not wsl!)
Follow: https://ghost.org/docs/install/source/
Fails on yarn setup
Ghost Version
4.32.0
Node.js Version
16.13.0
How did you install Ghost?
https://ghost.org/docs/install/source/
Database type
SQLite3
Browser & OS version
Windows 10
Relevant log / error output
[2021-12-21 15:45:01] INFO Relation: User to Role
[2021-12-21 15:45:01] INFO Finished database init!
Running "symlink:githooks" (symlink) task
>> Error: EPERM: operation not permitted, symlink '..\..\.github\hooks\pre-commit' -> '.git/hooks/pre-commit'
Warning: Failed to create symlink: (file) .git/hooks/pre-commit -> ..\..\.github\hooks\pre-commit. Use --force to continue.

Aborted due to warnings.
Done in 101.19s.

C:\data\src\24adv\Ghost (main -> upstream<EMAIL_ADDRESS>

Code of Conduct

[X] I agree to be friendly and polite to people in this repository

Ghost is primarily written for & tested on unix/linux/mac based environments but we're happy to accept PRs fixing this.

Don't know if you tried this yet, but running command prompt as an administrator worked for some reason.

@iswarmondal Sure, feel free to submit a PR for review 👍🏼

I think this this needs to be "Run as Administrator." when using cmd or gitbash.
Reference-https://github.com/gruntjs/grunt-contrib-symlink/issues/1
Solution-just need to documented in readme.
can I do this?


Issue with View/Edit/Create - Unit Capacity Data

Steps to replicate:
Login as an ECMPS user
In the workspace, open any configuration tab and navigate to the Unit Information (Unit Capacity) section
Click View/Edit/Create options. Fails to open the respective modal.
Note: No pre-filtering is required on this section. Any UI work or creation of backend endpoints out of scope for this ticket

Bug Fixed


Add cosine similarity native UDF example

Adding a Spark Java UDF that computes the cosine similarity between two float vectors.  The implementation is custom CUDA code and shows how a RAPIDS accelerator UDF can handle nested type inputs.
This also adds a native performance benchmark for cosine similarity along with the cmake framework for building benchmarks.  Benchmarks are not built by default but can be requested via -DBUILD_UDF_BENCHMARKS=ON.
As with other native UDFs, this does not build unless the udf-native-examples build profile is specified.

build

@jlowe looks really good. Mostly curious on the L2 thing.


KL135 Color

The light colors on the KL135 light bulb don't quite sync up correctly in HomeKit.
For example:
If you select the blue color in HomeKit, the resulting color is light blue. If you select blue in the Kasa app and then save the light bulb state in a scene in HomeKit, when the scene is recalled, the color isn't blue but light blue.
Thanks!

The issue should now be fixed

Hmmm… okay I am not seeing that behavior with my bulb.
On Thu, Jan 25, 2024 at 10:42 AM bobbergen @.***> wrote:

Tested and color sync in HomeKit is actually worse now but I have moved on
from Kasa bulbs to Philips Hue bulbs.
—
Reply to this email directly, view it on GitHub
https://github.com/nberardi/scrypted-tplink-smarthome/issues/2#issuecomment-1910467129,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACEH5AIFSK5QNG4FMQDE4TYQJ4PVAVCNFSM6AAAAABBUYP6GWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJQGQ3DOMJSHE
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


TableFormer demo

Can we please get a demo on using the tableformer model for inference, similar to the layout model?

@mohit-raghavendra , its in https://github.com/DS4SD/docling-ibm-models/blob/main/tests/test_tf_predictor.py there is a json used in this code, you need to make your backend parser output equivalent to this (IOCR); let me know if you have found something else or if your use case is different