Analyzer and CFE disagree on promotion of this.

With the non-nullable experiment on, I see errors from the analyzer on the return this statements in the extension and class below.  The CFE gives no errors.
extension Test on num {
  int get foo {
    num self = this;
    if (this is int) return this;
    if (self is int) return self;
    return 3;
  }
}

class A {
  B get foo {
    A self = this;
    if (this is B) return this;
    if (self is B) return self;
    return B();
  }
}

class B extends A {}

void main() {}

I believe this may be a long-standing issue, should we try to resolve this in the NNBD release?
cc @scheglov @johnniwinther @lrhn @munificent @eernstg @stereotype441

I do want promotion of this to work like it does for (final) local variables. There is no good reason not to allow it.
For extensions, the this really is just a variable in the desugared code.
So, yes please, let's fix this now.

Oh, I missed the part about classes.
It totally makes sense for extensions, where this is already synthetic.
Do we do promotion of this in classes as well?

For code in the body of a method which is inherited, a promotion could be both safe and useful. So, yes, I think classes should support promotion of this as well.

https://dart-review.googlesource.com/c/sdk/+/139063

@johnniwinther seems to think that this is actually not supported by the front end, and that presumably the reason I'm not seeing errors for the example above is because errors are suppressed in NNBD mode, and implicit casts are allowed in non-NNBD mode.  The modified example below which makes the implicit downcast a sidecast seems to validate this.
Given that this is not implemented in the CFE either, we should re-evaluate whether to spend time on this now.
extension Test on A {
  C get foo {
    A self = this;
    if (this is C) return this;
    if (self is C) return self;
    return C();
  }
}

class A {
  C get foo {
    A self = this;
    if (this is C) return this;
    if (self is C) return self;
    return C();
  }
}

class B extends A implements C {}

class C {}

void main() {}

Would there be any risk of lock-in if we don't do this promotion now, but want to do it later?
Since our promotion is only to subtypes, invocations should stay sound, but extension methods might get shadowed if we start promotiong. The biggest risk is that someone does
class Foo {
  if (this is Bar) {
    var list = [this];
  }
}

and starts getting a List<Bar> instead of a List<Foo>.
So, it's not completely non-breaking to promote this later. If at all possible, I'd be happiest if we do it now (just treat this like a final variable with the current class as declared type, and do that everywhere).

Just note that the "just treat this like a final variable ... " entails a lot of work in the CFE and maybe even the backends. That an expression is this holds valuable information that is not conveyed in an alias.

This is consistent in the two front ends, and I don't think this is something we should try to push into the null safety release.  I filed a language issue to track the desire to do better here, closing this out.


Fix loader in Houdini 18 as it returns 'long' instead of 'int'

What's changed?
It seems somehow the returned version number is not an int in Houdini 18 but a long. As such, the assertion in the VersionDelegate would catch it incorrectly.
This is now resolved by checking it against numbers.Integral to ensure it's also Python 3+ proof where long no longer exists.

Hi, we solved this issue few day ago with try except under import part. Like:
try:
    long
except NameError:
    long = in

and in displayText we add this check:
isinstance(value, long):
    value = int(value)

Seems like a similar fix. I'll merge this in a few days if there are no objections.


Pass plot notebooks

PR fixing all plots for the notebooks

The plots are all fixed as far as I can tell right now. Here and there there are issues with spatialdata-plot for which I have opened issues. Some that I will address still.
For squidpy there is only the question what the intent was for the cell in which it is stated that currently multi-table is broken.

looks great @melonora ! from the reviewNB it seems like the output were not visible, but from the built docs they are! so I think we are good to go, LGTM!
FYI: I'm doing the xenium use case off #93 and once done will ask for review and then merge #93 and the xenium one

Great, I'll be available for review.

Thanks, I rendered the figures (except for the mibitof notebook, which is not working as reported in spatialdata-plot). Merging!


Add configuration for all durable state

To keep them consistent and extendable, let's move all the config for durable state into this config.
For: https://projects.engineering.redhat.com/browse/MMENG-918

LGTM


Cart::update()

Hi I am trying to update the Quantity of a item in the cart when I use Cart::update($rowId,$qty)
I get this in the cart content
CartCollection {#235 ▼
  #items: array:1 [▼
    "c287c01b76942b7b09df2614b6bd8e4f" => CartRowCollection {#236 ▼
      #associatedModel: null
      #associatedModelNamespace: null
      #items: array:7 [▼
        "rowid" => "c287c01b76942b7b09df2614b6bd8e4f"
        "id" => 11
        "name" => "Prueba"
        "qty" => 2
        "price" => "567.99"
        "options" => CartRowOptionsCollection {#237 ▶}
        "subtotal" => 567.99
      ]
      +"qty": 1
    }
  ]
}

my new value is in the array of item but I also see  qty set as 1 outside of that array and that 1 is the value I get as the qty of the row...

Please supply me the code you're using, because I can't reproduce this.

Sure here is the function
a form is submited and
id = c287c01b76942b7b09df2614b6bd8e4f
qty = 2
public function updateCart()
{
	$rowId = Input::get('id');
	$qty = Input::get('qty');
	Cart::update($rowId, $qty );
	return redirect('/carrito');
	return $id;
}

Ive also tried instead of using a variable for $qty  setting the number manually with the same results.

I want update multiple row with POST method, please help me, thanks :)

I hope this one will help you. Here is my code that I used in my eCommerce project.
public function updateCart()
    {
    	$new_quantity = Input::get('quantity'); //Get the new quantity in Input tag names 'quantity'
    	$rowid = Input::get('rowid');                 //Get the specific product rowId to update the quantity
    	Cart::update($rowid, array(                 // Let's update cart!
    		'qty' => $new_quantity
    		));

    	return redirect()->route('mycart'); //Return to the 'mycart' view
    }

In cart form, all you need to do is give the action this url <form action="{{ url('/cart/update') }}" method="POST"....
This url will call the updateCart function in the Controller that you have the updateCart funciton written in.
Hope this will help you!


Strip Matrix parameter from BasePath check

Summary
Modify Parser to strip matrix parameter when checking for basePath
Testing
unit test added

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

Project coverage is 0.00%. Comparing base (59551e4) to head (7a606f6).
Report is 1286 commits behind head on master.

:exclamation:  There is a different number of reports uploaded between BASE (59551e4) and HEAD (7a606f6). Click for more details.
HEAD has 53 uploads less than BASE

Flag
BASE (59551e4)
HEAD (7a606f6)

integration
7
1

integration2
3
1

temurin
12
1

java-21
7
1

skip-bytebuffers-true
3
1

skip-bytebuffers-false
7
0

unittests
5
0

unittests1
2
0

java-11
5
0

unittests2
3
0

integration1
2
0

custom-integration1
2
0

Additional details and impacted files
@@              Coverage Diff              @@
##             master   #14383       +/-   ##
=============================================
- Coverage     61.75%    0.00%   -61.76%
=============================================
  Files          2436        3     -2433
  Lines        133233        6   -133227
  Branches      20636        0    -20636
=============================================
- Hits          82274        0    -82274
+ Misses        44911        6    -44905
+ Partials       6048        0     -6048

Flag
Coverage Δ

custom-integration1
?

integration
0.00% <ø> (-0.01%)
:arrow_down:

integration1
?

integration2
0.00% <ø> (ø)

java-11
?

java-21
0.00% <ø> (-61.63%)
:arrow_down:

skip-bytebuffers-false
?

skip-bytebuffers-true
0.00% <ø> (-27.73%)
:arrow_down:

temurin
0.00% <ø> (-61.76%)
:arrow_down:

unittests
?

unittests1
?

unittests2
?

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

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

IIUC, the intention is to avoid bypassing the isBaseFile() check? What is the purpose of isBaseFile()? I'd suggest making it very limited (e.g. only allow ".", or is it even required?)

I’m not aware of the historical reasons for why this check is necessary, This type of check is generally used to filter paths, likely to allow access only to certain files, such as configuration files or top-level resources, while excluding directories and complex paths.
For example : https://example.com/file.txt , https://example.com/image.png
Let me make the check a more tighter

@soumitra-st Can you help take a look? Which path do we need to allow bypassing the auth check?
I want to make this whitelist very restricted so that only the allowed path can bypass the auth check. This way we can avoid other possible attacks, instead of explicitly handling them one by one.

Modify Parser to strip matrix parameter when checking for basePath

@praveenc7 ,Pinot does not support MatrixParam. Can you elaborate on the context of handling MatrixParam for top-level resources only?

@soumitra-st Can you help take a look? Which path do we need to allow bypassing the auth check?
I want to make this whitelist very restricted so that only the allowed path can bypass the auth check. This way we can avoid other possible attacks, instead of explicitly handling them one by one.

The current whitelist paths are HERE:
new HashSet<>(Arrays.asList("", "help", "auth/info", "auth/verify", "health"));
In addition to the above whitelisted paths, all top files having at least one '.' are allowed. This is likely done to allow access to top-level resource files. If we need to remove implicit access to all the top-level resources, we must figure out the list and add it to the UNPROTECTED_PATHS.

Modify Parser to strip matrix parameter when checking for basePath

@praveenc7 ,Pinot does not support MatrixParam. Can you elaborate on the context of handling MatrixParam for top-level resources only?

@soumitra-st I don't quite understand, we are striping the matixParamter during urlCheck and not handling for any specific case. Can you provide more details or example on what you mean?

Modify Parser to strip matrix parameter when checking for basePath

@praveenc7 ,Pinot does not support MatrixParam. Can you elaborate on the context of handling MatrixParam for top-level resources only?

@soumitra-st I don't quite understand, we are striping the matixParamter during urlCheck and not handling for any specific case. Can you provide more details or example on what you mean?

You are stripping the matrixparams from the URL before, https://pinot.example.com/file.txt;param1=value1 will behave as https://pinot.example.com/file.txt . My questions is, why have https://pinot.example.com/file.txt;param1=value1 URL? IMO, Pinot does not support MatrixParam, it supports QueryParam .

In addition to the above whitelisted paths, all top files having at least one '.' are allowed. This is likely done to allow access to top-level resource files.

@soumitra-st Do we need to carry-over this behavior? I don't follow why we want to allow such access without going through auth

@soumitra-st Thanks for the example. You’re right that Pinot doesn’t support MatrixParam but instead relies on QueryParam. However, users may unintentionally or maliciously include special characters after matrix-style parameters (;) in URLs, which could pose security risks if not handled properly. cc : @siddharthteotia

@praveenc7, I agree with the security issue. Did you discover this issue from a code/security review or pen testing?
I see one issue. Now https://pinot.example.com/file.txt;param1=value1/blah will be checked as if it is https://pinot.example.com/file.txt and will be executed without AUTH. Is it desirable?

In addition to the above whitelisted paths, all top files having at least one '.' are allowed. This is likely done to allow access to top-level resource files.

@soumitra-st Do we need to carry-over this behavior? I don't follow why we want to allow such access without going through auth

@Jackie-Jiang , I checked the git history but could not find why we have both whitelisting (UNPROTECTED_PATHS) and open top-level resources. We can remove the open top-level resources, find the list of top-level files, and add them to the whitelist. Let me know if we should do that; I can create a task.

In addition to the above whitelisted paths, all top files having at least one '.' are allowed. This is likely done to allow access to top-level resource files.

@soumitra-st Do we need to carry-over this behavior? I don't follow why we want to allow such access without going through auth

@Jackie-Jiang , I checked the git history but could not find why we have both whitelisting (UNPROTECTED_PATHS) and open top-level resources. We can remove the open top-level resources, find the list of top-level files, and add them to the whitelist. Let me know if we should do that; I can create a task.

Agree. I'm not familiar with how these resources are utilized, maybe we can directly remove them.

Thanks @praveenc7 for the context in Slack. The gap exposes serious security issue. Approving the PR.
@Jackie-Jiang , we can take up the whitelisting enhancement separately. WDYT?


Add support for new routing rules

What is the context of this PR?
Added support for the new when rules schema design introduced by https://github.com/ONSdigital/eq-questionnaire-validator/pull/96

This PR adds the interface to support the new operator and operations. This class is not yet used to evaluate routing for a questionnaire, that will be done in the next piece of work. This introduces the main interface and unit tests to go with it. However, because of this, it is hard to know if any edge cases have been missed that might only be captured by an integration test.
Normal functions have been used for the operations instead of anonymous lambda functions to take advantage of type hints. Even for the simple ones like not, lambda has not been used to keep it consistent.

This PR depends on: https://github.com/ONSdigital/eq-questionnaire-runner/pull/630
How to review
Ensure the changes makes sense and that there are adequate unit tests in place.
Checklist

[ ] New static content marked up for translation
[ ] Newly defined schema content included in eq-translations repo

I reckon we should take this opportunity to document the rules and usages. Looking at the tests I find it hard to determine if anything is missing and see some instances where it looks like duplication, is [(0.5, 0.5), True] not the same as [(3, 3), True] ? If we did document the rules (even a simple grid might help), we could use it as contract, which we write tests against. It would also make it easier for author and anyone else when looking at our rules. The flip side would be ones we don't mention are untested.

Document in what sense?. We have the initial doc for routing rules in runner but now also the schemas itself in validator which is the source of truth?. Not quite sure what other documentation you mean.
So for why [(0.5, 0.5), True] is tested as well as [(3, 3), True] is to check diff types, to ensure for example floats werent being casted for ints etc. I could make the tests clearer if I did the params inline but would cause a lot of duplication. But happy to consider either option.

If I come to the repo afresh, there is no guide or at least a sign post to what rules we have and which ones are supported, which has been raised as an issue before. Even simple comments next to the parametrize list would help


problem with safari and change currentTime

Browser: Safari 12.1.1
OS: Mac os mojave
Clappr Version: latest
Steps to reproduce:

https://78.ru/images/uploads/1558877101988.mp4 play file
seek to unload position
page hang

https://bit.ly/2J6nLmI

Hi @amiznikov, this seems to be an issue related to how Safari handles the video buffering and playback using MP4 directly.
Your MP4 file is approximately 1.5 GB, and Safari struggles to keep the buffer filled and the playback running smoothly. After seeking for a while it hangs, even without any Clappr code. You can check this behavior here. There's only the <video> tag on the code, with no JS running, and the playback hangs after a while when seeking.

I'd suggest creating a DASH or HLS stream instead of accessing the MP4 directly. This will allow for better buffer handling and smoother playback for larger videos.


Enables gosimple linter and fixes lint errors

As part of #10392 we are incrementally adding (and conforming to) the golangci-lint default linters.
This PR adds enables gosimple in static-analysis.sh and fixes the lint errors it produces.

@tomponline Some of these lint errors actually came from errcheck. I'm guessing this is because golangci-lint is not available on the jenkins runner (we're currently skipping golangci-lint if it's not installed).
We can install golangci-lint on the runner, but this won't matter once the github action is finished.


Solar Eclipse 2024 issues

[ ] As sky is "darkening" before totality, synchronize reduction of sky opacity with the part of the moon that appears sky-colored.

[ ] Fix issue where if you zoom out on sun during eclipse and then zoom in, the dark overlay on the sun doesn't line up and occasionally has saw teeth.

[ ] Update % eclipsed value so it can't exceed 100%.

I think #16 should resolve all of these. As I mentioned there, I wasn't able to fix the opacity flickering of the annotation (especially after changing the zoom level), so that PR adds a series of moon sprites of varying opacities.


Multi-tooltip not functioning (likely result of tooltip hover bug)

https://github.com/nnnick/Chart.js/blob/43606d1faaa108ea91c3329b6a675cf4d8152736/src/Chart.Core.js#L1047-L1134
Seems like whatever bug is causing the tooltip hover triggers to have a weird offset (referenced in #2033) could also be causing overlapping data points to not display in the tooltip when it does pop up.
reference images attached - in each case, just 2 lines overlapping: the yellow fill is under one line, and it is the only label being displayed in the tooltip, while the green/blue points should also be showing in those tooltips.

Can't speak for other users (seems to be relatively widespread issue though), but I'm on OSX, using a second monitor, latest Chrome (as of 2/22/2016) on that monitor but not in fullscreen.

@jbrz I think we saw this issue during v2 dev. Does your canvas have any padding / margin applied as a CSS style?

Thanks for the speedy reply!
Removing padding appears to fix the tooltip-hover issue (Sorry! Was messing around with some hacky BS), but multi-tooltip is still not working.
Just spitballing here (and I didn't see anything when I looked through that whole block), but possible that something in medianPosition() is causing premature return/break?

I'm surprised that the padding is still an issue since I remember fixing it. :frowning: I just quickly looked through the v2 position function and it doesn't reference padding at all https://github.com/nnnick/Chart.js/blob/v2.0-dev/src/core/core.helpers.js#L630-L657
I think I actually might have a fix for the multi-tooltip not finding all the points. I was experimenting with a better object lookup system over the weekend. This may be one of the cases that it would fix. What is your tooltip mode set to?

sorry, didn't mean to close.

Everything under the hood is default, I've only changed styling options up to this point - only wanted to break one thing at a time :smile:

hmm, could you post your config?

var chartData = {
  labels: [],
  datasets: [{
    label: "Total",
    fill: true,
    border: false,
    backgroundColor: "rgba(255,243,155,0.3)",
    borderColor: "rgba(255,243,155,0.4)",
    pointBorderColor: "rgba(255,243,155,0.4)",
    // String - cap style of the line. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap
    borderCapStyle: 'butt',

    // Array - Length and spacing of dashes. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash
    borderDash: [],

    // Number - Offset for line dashes. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset
    borderDashOffset: 0.0,

    // String - line join style. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin
    borderJoinStyle: 'round',

    // String or array - Point fill color
    pointBackgroundColor: "#fff",

    // Number or array - Stroke width of point border
    pointBorderWidth: 0.01,

    // Number or array - Radius of point when hovered
    pointHoverRadius: 5,

    // String or array - point background color when hovered
    pointHoverBackgroundColor: "rgba(120,170,220,1)",

    // Point border color when hovered
    pointHoverBorderColor: "rgba(120,170,220,1)",

    // Number or array - border width of point when hovered
    pointHoverBorderWidth: 1,

    // Tension - bezier curve tension of the line. Set to 0 to draw straight Wlines connecting points
    tension: 0,
    //- highlightFill: "rgba(255,243,155,0.2)",
    //- highlightStroke: "rgba(255,243,155,0.2)",
    data: [10,12,14,15,16,17,18,19,20]
  },
  {
    label: "Set 1",
    backgroundColor: "rgba(255,255,255,0)",
    borderColor: "rgba(10,235,235,1)",
    borderCapStyle: 'butt',
    borderDash: [],
    borderDashOffset: 0,
    borderJoinStyle: 'round',
    pointBorderColor: "rgba(10,235,235,1)",
    pointBackgroundColor: "#fff",
    pointBorderWidth: 1,
    pointHoverRadius: 5,
    pointHoverBackgroundColor: "rgba(120,170,220,1)",
    pointHoverBorderColor: "rgba(120,170,220,1)",
    pointHoverBorderWidth: 2,
    tension: 0,

    //- fillColor: "rgba(255,255,255,0)",
    //- strokeColor: "rgba(10,235,235,1)",
    //- highlightFill: "rgba(255,255,255,0)",
    //- highlightStroke: "rgba(120,170,220,1)",
    data:[8,9,14,1,2,3,4,5,6]
  },
  {
    label: "Set 2",
    backgroundColor: "rgba(255,255,255,0)",
    borderColor: "rgba(110,235,0,1)",
    pointBorderColor: "rgba(110,235,0,1)",
    borderCapStyle: 'butt',
    borderDash: [],
    borderDashOffset: 0,
    borderJoinStyle: 'round',
    pointBackgroundColor: "#fff",
    pointBorderWidth: 1,
    pointHoverRadius: 5,
    pointHoverBackgroundColor: "rgba(120,170,220,1)",
    pointHoverBorderColor: "rgba(120,170,220,1)",
    pointHoverBorderWidth: 2,
    tension: 0,
    //- highlightFill: "rgba(151,187,205,0)",
    //- highlightStroke: "rgba(151,187,215,1)",
    data: [2,3,0,14,14,2,14,14,14]
  },
  {
    label: "Set 3",
    backgroundColor: "rgba(255,255,255,0)",
    borderColor: "rgba(255,159,20,1)",
    pointBorderColor: "rgba(255,159,20,1)",
    borderCapStyle: 'butt',
    borderDash: [],
    borderDashOffset: 0,
    borderJoinStyle: 'round',
    pointBackgroundColor: "#fff",
    pointBorderWidth: 1,
    pointHoverRadius: 5,
    pointHoverBackgroundColor: "rgba(120,170,220,1)",
    pointHoverBorderColor: "rgba(120,170,220,1)",
    pointHoverBorderWidth: 2,
    tension: 0,
    //- highlightFill: "rgba(30,128,235,0)",
    //- highlightStroke: "rgba(30,128,215,1)",
    data: [0,0,0,0,0,12,0,0,0]
  },
  {
    label: "Set 4",
    backgroundColor: "rgba(255,255,255,0)",
    borderColor: "rgba(247,70,74,1)",
    pointBorderColor: "rgba(247,70,74,1)",
    borderCapStyle: 'butt',
    borderDash: [],
    borderDashOffset: 0,
    borderJoinStyle: 'round',
    pointBackgroundColor: "#fff",
    pointBorderWidth: 1,
    pointHoverRadius: 5,
    pointHoverBackgroundColor: "rgba(120,170,220,1)",
    pointHoverBorderColor: "rgba(120,170,220,1)",
    pointHoverBorderWidth: 2,
    tension: 0,
    //- highlightFill: "rgba(20,235,128,0)",
    //- highlightStroke: "rgba(20,235,128,1)",
    data: []
  }]
}

var chartOptions = {
  responsive: false,
  elements: {
    line: {
      tension: 0,
      fill: false
    }
  }
};

var hoursLineChart = new Chart(ctx, {
  type: 'line',
  data: chartData,
  options: chartOptions
})```

thanks

Sorry was just cutting and pasting from big old jade file.  Fiddle above should be working^

Fixed padding issue in #2073

@jbrz for the tooltips are you expecting all datasets to show? If so, you can change the tooltip mode.
I did so here: https://jsfiddle.net/8axzrjyt/8/
I also updated to use the latest version from the v2.0-dev branch

Yes, was expecting all datasets.

@jbrz does my updated fiddle solve your problem?

Yes

Awesome!


Not working correctly, does not run the programs

Description
What steps will reproduce the problem?

Try to run a program with numpy and pandas, i think that is what is not working for me
Traceback

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\plugins\application\container.py", line 492, in _compute_dependencies
    dependencies.declare_dependencies()
  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\dependencies.py", line 458, in declare_dependencies
    add(dep['modname'], dep['package_name'],
  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\dependencies.py", line 389, in add
    DEPENDENCIES += [Dependency(modname, package_name, features,
  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\dependencies.py", line 331, in __init__
    self.installed_version = programs.get_module_version(modname)
  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\utils\programs.py", line 839, in get_module_version
    mod = __import__(module_name)
  File "C:\Users\anasi\anaconda\Lib\site-packages\matplotlib\__init__.py", line 161, in <module>
    from . import _api, _version, cbook, _docstring, rcsetup
  File "C:\Users\anasi\anaconda\Lib\site-packages\matplotlib\rcsetup.py", line 27, in <module>
    from matplotlib.colors import Colormap, is_color_like
  File "C:\Users\anasi\anaconda\Lib\site-packages\matplotlib\colors.py", line 57, in <module>
    from matplotlib import _api, _cm, cbook, scale
  File "C:\Users\anasi\anaconda\Lib\site-packages\matplotlib\scale.py", line 22, in <module>
    from matplotlib.ticker import (
  File "C:\Users\anasi\anaconda\Lib\site-packages\matplotlib\ticker.py", line 143, in <module>
    from matplotlib import transforms as mtransforms
  File "C:\Users\anasi\anaconda\Lib\site-packages\matplotlib\transforms.py", line 49, in <module>
    from matplotlib._path import (
Traceback (most recent call last):
  File "C:\Users\anasi\anaconda\Lib\site-packages\numpy\core\_multiarray_umath.py", line 44, in __getattr__
    raise ImportError(msg)
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\plugins\application\container.py", line 492, in _compute_dependencies
    dependencies.declare_dependencies()
  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\dependencies.py", line 458, in declare_dependencies
    add(dep['modname'], dep['package_name'],
  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\dependencies.py", line 389, in add
    DEPENDENCIES += [Dependency(modname, package_name, features,
  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\dependencies.py", line 331, in __init__
    self.installed_version = programs.get_module_version(modname)
  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\utils\programs.py", line 839, in get_module_version
    mod = __import__(module_name)
  File "C:\Users\anasi\anaconda\Lib\site-packages\pandas\__init__.py", line 26, in <module>
    from pandas.compat import (
  File "C:\Users\anasi\anaconda\Lib\site-packages\pandas\compat\__init__.py", line 27, in <module>
    from pandas.compat.pyarrow import (
  File "C:\Users\anasi\anaconda\Lib\site-packages\pandas\compat\pyarrow.py", line 8, in <module>
    import pyarrow as pa
  File "C:\Users\anasi\anaconda\Lib\site-packages\pyarrow\__init__.py", line 65, in <module>
    import pyarrow.lib as _lib
Traceback (most recent call last):
  File "C:\Users\anasi\anaconda\Lib\site-packages\numpy\core\_multiarray_umath.py", line 44, in __getattr__
    raise ImportError(msg)
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\plugins\application\container.py", line 492, in _compute_dependencies
    dependencies.declare_dependencies()
  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\dependencies.py", line 458, in declare_dependencies
    add(dep['modname'], dep['package_name'],
  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\dependencies.py", line 389, in add
    DEPENDENCIES += [Dependency(modname, package_name, features,
  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\dependencies.py", line 331, in __init__
    self.installed_version = programs.get_module_version(modname)
  File "C:\Users\anasi\anaconda\Lib\site-packages\spyder\utils\programs.py", line 839, in get_module_version
    mod = __import__(module_name)
  File "C:\Users\anasi\anaconda\Lib\site-packages\pandas\__init__.py", line 49, in <module>
    from pandas.core.api import (
  File "C:\Users\anasi\anaconda\Lib\site-packages\pandas\core\api.py", line 1, in <module>
    from pandas._libs import (
  File "C:\Users\anasi\anaconda\Lib\site-packages\pandas\_libs\__init__.py", line 17, in <module>
    import pandas._libs.pandas_datetime  # noqa: F401 # isort: skip # type: ignore[reportUnusedImport]
Traceback (most recent call last):
  File "C:\Users\anasi\anaconda\Lib\site-packages\numpy\core\_multiarray_umath.py", line 44, in __getattr__
    raise ImportError(msg)
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

 This problem is caused by installing Numpy, or a package that depends on it, with pip in a conda environment. Since pip and conda packages are binary incompatible, they can't be mixed in the same environment.
To solve this problem, I'm afraid you'll have to remove and reinstall Anaconda. To properly do that, please follow the instructions in the second part of our video about that (the first part describes why you can't mix pip and conda packages).


Neovim (and maybe vim): v:progpath is set to the unwrapped executable

In vim the v:progpath read-only variable is set to the unwrapped executable which means that plugins that use it end up using the wrong executable. This is problematic because the environment isn't set correctly without them.
This causes some problem with firenvim which I have reported at https://github.com/glacambre/firenvim/issues/365.
The solution might not necessarily be to set v:progpath to the wrapped executable.
cc @manveru @rvolosatovs @Ma27

I think this is a general problem with wrappers :-/ For example, tmux continuum (to save/restore tmux session) fails to restore various things on NixOS.

tmux continuum (to save/restore tmux session) fails to restore various things on NixOS.

What is its fix?

Don't know. I didn't find the upstream issue, so I don't know if there is a workaround or not. But the problem comes from the fact that the unwrapped program is seen in process listings, whereas to be able to restore programs one would need to restart the wrapper program. Not sure how to fix that...

the unwrapped program is seen in process listings, whereas to be able to restore programs one would need to restart the wrapper program.

Searching through the process list sounds bad to me in the first place.

Not sure how to fix that...

Firenvim's fix for this is https://github.com/glacambre/firenvim/commit/6cd421e423d7fc5f7826e08907b27053160d30bb. I personally dislike it but its the only possible solution that I see.


Fixed #30095 -- Fixed system check error for using tuples in RangeField choices.

ticket 30095

Any thoughts about completely overriding RangeField._check_choices instead?
I assume ArrayField suffers from similar problems.

@charettes overriding RangeField._check_choices require a lot of code duplication. I thought it is easier to override is_value() based on @carltongibson comment on the ticket.

Maybe raising the is_value() helper to class level would allow avoiding too much duplication

(Note: My suggestion on the ticket was a maybe we reduce duplication...)

@felixxm
I moved is_value() to class level and renamed it to  _choices_is_value() and Added a grouped choice to the test choices.
I will prepare another patch for ArrayField we successfully merged this one.

@felixxm Do we need something else on this patch?

@hramezani I think we should add a fix for ArrayField to this PR.

@felixxm I added a commit to fix ArrayField with lists in choices.

@hramezani Thanks for updates :+1: I simplified tests, changed _choices_is_value() to classmethods's, used super() in them and added lists and tuples to ArrayField's and RangeField's checks, because both support them.

@hramezani Thanks for updates  I simplified tests, changed _choices_is_value() to classmethods's, used super() in them and added lists and tuples to ArrayField's and RangeField's checks, because both support them.

Thanks @felixxm. Good as always :+1:


chore(Combinatorics/Additive/PluenneckeRuzsa): Use semantic lemma names

I, as the main author of those theorems, can never remember their names. Symbol-reading as a naming convention fails here because there are too many symbols to mention to

distinguish the series of results from other results in Mathlib
distinguish the different results within that series

Using semantic names solves both issues quite nicely.

Deprecations?
(I won't insist here if you're sure no one is using these downstream yet. But I wouldn't want anyone to think I was shirking on deprecations. :-)
bors d+

There's one person using them downstream: me 😄. I am very sure of that because the current statements are a bit weird and anyone trying to use them would have complained to me.
I don't have a huge lot of time to add deprecations that certainly no one will use, so I'm going to declare this fine.
bors merge


Updates from shipping apps

This PR will be updated cone https://github.com/ResearchKit/AppCore/pull/55 is accepted.

@peculiar: I think that your branch is currently failing compilation. It's missing some APPCore stuff like APCCorrelationsSelectorDelegate, APCScoring, etc.
Do you have the APPCore updates anywhere? The master branch in your APPCore fork doesn't seem to have those.

(I want to see if the new step navigation rules feature can be used to simplify APHExerciseCheckinTask navigation logic.)

@rsanchezsaez: it'll compile once a pending update to AppCore is accepted (after issue(s) have been addressed). Thanks for noticing the issue.

Is the update available anywhere or is this a behind-the-scenes update? Thanks!

I'll update this PR once the following PRs have been accepted:

https://github.com/ResearchKit/AppCore/pull/55
https://github.com/ResearchKit/AppCore/pull/59

Thanks @insha, merged.

Thank you @YuanZhu-apple.


[Snyk] Upgrade @oclif/plugin-autocomplete from 1.3.10 to 1.4.6

Snyk has created this PR to upgrade @oclif/plugin-autocomplete from 1.3.10 to 1.4.6.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 8 versions ahead of your current version.

The recommended version was released on 2 years ago.

Issues fixed by the recommended upgrade:

Issue
Score
Exploit Maturity

Improper Control of Dynamically-Managed Code ResourcesSNYK-JS-EJS-6689533
265
No Known Exploit

Release notes

Package name: @oclif/plugin-autocomplete

1.4.6 - 2023-02-12

1.4.5 - 2023-02-04

1.4.4 - 2023-01-31

1.4.3 - 2023-01-29

1.4.2 - 2023-01-23

1.4.1 - 2023-01-19

1.4.0 - 2023-01-18

1.4.0-beta.1 - 2022-10-18

1.3.10 - 2023-01-01

    from @oclif/plugin-autocomplete GitHub release notes

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
This PR was automatically created by Snyk using the credentials of a real user.
Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:

🧐 View latest project report
📜 Customise PR templates
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Not updating now


Dependency updates

Codecov Report

Merging #9 (0f7095a) into main (c5bfb41) will not change coverage.
The diff coverage is 0.00%.

@@          Coverage Diff          @@
##            main      #9   +/-   ##
=====================================
  Coverage   0.00%   0.00%
=====================================
  Files          4       4
  Lines         73      80    +7
=====================================
- Misses        73      80    +7

Impacted Files
Coverage Δ

src/p256.rs
0.00% <0.00%> (ø)

src/plugin.rs
0.00% <0.00%> (ø)

src/yubikey.rs
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


Problem registering new user.

There is an problem while registering for new user in codejudge. It gives error even if filled all the details that are needed to create the account. It gives an error as "Please enter all the details asked before you can continue!" The values are not stored in the database while registering even i gave my database root access. Please reply as soon as possible. need to resolve this quickly. And there is another issue of compiling the program. The submit button does not work.

Same problem here. Can confirm.

This works fines in windows but not in linux. But the compiler part does not work in windows, so it needs linux.


Owner auth API provisioned with CLI 4.22.1 without read operation do not require owner input on subscription API

Describe the bug
When I provision an API with the following schema for DataStore by following these steps

schema is

type SocialNote
    @model
    @auth(rules: [
        { allow: owner, ownerField: "owner", operations: [create, update, delete] },
    ]) {
    id: ID!
    content: String!
    owner: String
}

The schema has owner auth with operations: [create, update, delete]. I have not restricted read permissions so all users can read each others data. The resulting subscription operations no longer require owner field as input.
amplify update api and choose enabled for DataStore

The provisioned API have subscription operations that do not require owner field

DataStore Code

getAuthorizationInfo returns isOwner, passed to buildScriptionGraphQLOperation (link)
isOwner is determined when the subscription level is not equal to public (link)
buildScriptionGraphQLOperation uses isOwner and constructs the subscription operation with owner field input. (link)

Previous logic that is incorrect:

if subscription is not public, and regardless of the operations, alway add owner field to the subscriptions

Now:

if subscription is not public, but read operation is not restricted on the model, then don't add the owner field to the subscription. (This logic needs to be confirmed)

Expected behavior
DataStore sync to cloud should construct the correct requests to API based on my schema. when i have a schema containing owner auth and certain operations set then it should know which subscription operations requires owner field and which do not.
Additional context
Amplify CLI related change released in 4.22.1 https://github.com/aws-amplify/amplify-cli/issues/4182
iOS Issue: https://github.com/aws-amplify/amplify-ios/issues/691
Android Issue: https://github.com/aws-amplify/amplify-android/issues/699
JS issue: https://github.com/aws-amplify/amplify-js/issues/6507

Transferring issue to Amplify CLI


Which element to identify its activation comes from to prevent input pasthrough

I have just want to know which element to identify its activation comes from to prevent input pasthrough
eg: to prevent input passthrough if the trigger from input node, of course
it will send the command if the trigger is from Alexa.

for example:

in node-red-contrib-alexa-local i detect the topic is null or not to prevent input pass through.

in node-red-contrib-homekit I detect the msg.hap.context is null or not to prevent input pass through.

Hi wongman!
I had semilar problems and decided me to break the passtrough. The Input on the Node is only serves updates the status in Alexa.
Her my fork https://github.com/dermm/node-red-contrib-amazon-echo
If you see the lines that have been changed, you could change it so that it is still passed through with an addition in the payload.

Hi dermm, thank you for the kind post and really welcome contribute!
Since the author here is not more present (we hope one day to see him back!) are you interested to keep developing his module?
Thank you

Hi wongman!
I had semilar problems and decided me to break the passtrough. The Input on the Node is only serves updates the status in Alexa.
Her my fork https://github.com/dermm/node-red-contrib-amazon-echo
If you see the lines that have been changed, you could change it so that it is still passed through with an addition in the payload.

Thanks @dermm Good news. Let me try it now.

@dermm how to install your it on my Node-red?

@dermm It worked very well, good job. Thanks.
@datech appreciate if you merge this function to you code to improve the using experience.
Thanks.

Hello, how did you manage to modify the files ?
If I do so in my node module, when I restart node red it states that the amazon echo nodes are not recognized.
Is there a command to update something to make it work ?

Just replace 2 files then node-red-stop and node-red-start

@wongnam, @dermm Can you confirm that #60 will resolve this?

@datech Hi, I am afraid that I cannot check this button right now. I no longer use this button because it won't handle all my devices if it has more than 20 units.
BTW, Thank for the node.

I guess it's a big of echo, maybe you created names of devices too similar each other. Try to give short unique name, remove.all devices from Amazon account, remove echo from Amazon account, reset echo to factory, add it again and rediscover devices

@wongnam, thanks for the info, I will close the issue then.
BTW, I've just done a test with 70 devices which my Echo Dot 3 managed to discover.


About Specifications and Issues

about Specifications
Why is there a mix of specifications up to 1.7 and use of 2.0?
Example:

1.7's avatar_url
2.0's datetime type (aware/native)

about Issues
We can't make an issue unless we use a special method.
Can not:
1, Go to Issues tab
2, Click "New issue" button
Can:
Access the link to create an new issue.
(https://github.com/iDevision/enhanced-discord.py/issues/new)

Why is there a mix of specifications up to 1.7 and use of 2.0?
They are branches. 2.0 is the only maintained branch.

We can't make an issue unless we use a special method.
That's a github/browser bug. I am able to create issues just fine.

They are branches. 2.0 is the only maintained branch.
The 1.7 and 2.0 mentioned here are from Discord.py. My apologies.

What I want to ask is why there is a mix of User.avatar_url, which is the spec up to 1.7 of discord.py, and datatime type aware, which is the spec from 2.0 of discord.py.
If this is the case, people who want to migrate from discord.py may have to rewrite the code.
What do you think about this?

That's a github/browser bug. I am able to create issues just fine.
I think it's not github's bug.

I think you can recreate it this way:

open issue tab. (this repository)
Click "New issue" button.
You will see two options, "Ask a question" and "Discord Server".

Selecting "Ask a question" will take you to the Discussions tab of the original Discord.py.
Selecting "Discord Server" will take you to the original Discord.py's official server invite link.
I don't know if this is correct because I don't know much about Github, but I think it has something to do with the files in this folder(https://github.com/iDevision/enhanced-discord.py/tree/master/.github/ISSUE_TEMPLATE).
(I'm not a native speaker, so I use the DeepL translator. Sorry.)

The 1.7 and 2.0 mentioned here are from Discord.py. My apologies.
What I want to ask is why there is a mix of User.avatar_url, which is the spec up to 1.7 of discord.py, and datatime type aware, which is the spec from 2.0 of discord.py.
If this is the case, people who want to migrate from discord.py may have to rewrite the code.
What do you think about this?

Where exactly do you see the mix ? In the online docs ? Because the 2.0 branch is a direct upgrade from dpy2.0a with a few added features.

I think it's not github's bug.

Oh yeah, I saw what you mean, I'll fix it

Oh yeah, I saw what you meant, I'll fix it

Thank you.

Where exactly do you see the mix ?

I'm sorry, I forgot to tell you. It's in the program.
You will be able to reproduce this way:
import discord # enhanced-discord.py
import datetime
import traceback

client = discord.Client()

@client.event
async def on_ready():
    message = await client.get_channel(<channel_id>).fetch_message(<message_id>)

    try:
        message.created_at < datetime.datetime.utcnow()
    except Exception as e:
        """ If the datetime offset is different, an error will be print """
        # Error: TypeError: can't compare offset-naive and offset-aware datetimes
        traceback.print_exc(e)

    message.author.avatar_url
    message.author.avatar.url # Error

In 2.0, the datetime offset returned by created_at, etc. is now aware. However, the offset returned by datetime.utcnow is naive. These comparisons will raise a TypeError.
In 1.7, if you want to get the avatar url of a user, use User.avatar_url. However, in 2.0, User.avatar.url is used.
Is there a reason for these?


refactor: add checks for HNS and blob storage

Added some checks that decreases the input needed when creating a storage account with hns and checks for different kinds of storage.

Modifications made to module code, however no changes in functionality, so marking this as refactor.

Ultimately this is a very good suggestion, however I wouldn't want to merge it until we've come to a decision collectively.

@hknutsen I see your point. A solution could be creating a datalake module, but that could quickly miss out on benificiary updates from this repo. I agree that we should not add complexity for complexitys sake, but I think in cases where it provides a reasonable benefit to the end user it should maybe be allowed.
For an example a user withould prior knowledge of this module could potentially hit 5 errors in succession on when trying to create a premium block blob storage with hns enabled.
This is not a huge issue, but I think the modules should be designed in a way that they can be used without to much prior indepth knowledge of the module itself.

@ErlendT I agree that this PR is much better than creating a separate datalake module 🙂

I also thinks that this addition will reduce the number of errors when you create a storage account with hierarchical namespace enabled.

I'll update tests (#145) to verify the values of blob, share and queue properties, then I'll look into getting this merged 😊

Tests pass 🎉

@equinor/ops-coredev Could one of you have a look before we merge this?


Parse authorship in typeStatus field

Parsing authorship makes it easier to manually set the protonym for type materials, as well as resolving homonym situations.

Codecov Report
Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (1a14521) 85.75% compared to head (4d0f9e4) 59.77%.

:exclamation: Current head 4d0f9e4 differs from pull request most recent head 4a99d52. Consider uploading reports for the commit 4a99d52 to get more accurate results

Files
Patch %
Lines

...pp/models/dataset_record/darwin_core/occurrence.rb
0.00%
13 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@               Coverage Diff                @@
##           development    #3717       +/-   ##
================================================
- Coverage        85.75%   59.77%   -25.99%
================================================
  Files             2037     1533      -504
  Lines            75329    46775    -28554
================================================
- Hits             64601    27960    -36641
- Misses           10728    18815     +8087

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


Automatically publish new plugin version on release

Description of changes: Automates the publication of a new plugin version to JetBrains when a release is cut, and uses the release changenotes for plugin changenotes.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

For an example of the workflow executing in my fork, see: https://github.com/jobarr-amzn/ion-intellij-plugin/runs/6958541247?check_suite_focus=true
This is the release that triggered the workflow: https://github.com/jobarr-amzn/ion-intellij-plugin/releases/tag/<IP_ADDRESS>


Add FirstPage() and LastPage() to PaginatedList

Currently if you want to check if the current page is the first page in a template, you have to do
<% if not $NotFirstPage %>

🤮

Rebased again, tests are green now


Sprite generation yields root path

I switched over to compass-rails, and everything worked very smoothly with the exception of my spriting.
When I try to @include mobile-sprite(tooltip); it will end up inserting background: url('/mobile-s04c77704f6.png') no-repeat and as a result Sprockets/Rails can't find the asset.
Is there a config option to modify the default generated route?
Would it make more sense to have it default to /assets/mobile-s04c77704f6.png?

What's in your compass configuration file?
Sent from my iPhone
On Feb 1, 2012, at 1:36 PM, Logan<EMAIL_ADDRESS>wrote:

I switched over to compass-rails, and everything worked very smoothly with the exception of my spriting.
When I try to @include mobile-sprite(tooltip); it will end up inserting background: url('/mobile-s04c77704f6.png') no-repeat and as a result Sprockets/Rails can't find the asset.
Is there a config option to modify the default generated route?
Would it make more sense to have it default to /assets/mobile-s04c77704f6.png?

Reply to this email directly or view it on GitHub:
https://github.com/Compass/compass-rails/issues/4

project_type = :rails

After doing a bit more RTFM I found this was caused by mixing Sprockets directives and @imports in a SASS file.
I moved all my @import and @include stuff into a separate file without sprockets, and then had application.css include it via sprockets, and everyone was happy again.

Sprockets directives make me cry
Sent from my iPhone
On Feb 1, 2012, at 2:26 PM, Logan<EMAIL_ADDRESS>wrote:

After doing a bit more RTFM I found this was caused by mixing Sprockets directives and @imports in a SASS file.
I moved all my @import and @include stuff into a separate file without sprockets, and then had application.css include it via sprockets, and everyone was happy again.

Reply to this email directly or view it on GitHub:
https://github.com/Compass/compass-rails/issues/4#issuecomment-3765289


fix: 1.9.0 build

Closes #268

Coverage remained the same at 97.302% when pulling 5521c7e92cdfc9bbc80be48a8c177c8552c0789d on issue-268 into 4b9b6375d8deb855eaed44a48daa808c753a93a8 on master.

:tada: This PR is included in version 1.9.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Simplify use of arguments object in events

Occasionally I will run into situations in my project where I need data to be bound to my callback for events such as in the example below.
<!-- app.vue -->
<my-component @test:event="testHandler('someValue', arguments)"></my-component>

methods: {
    testHandler(componentValue, args) {
    }
}

<!-- MyComponent.vue -->
<button @click="$emit('emitValue1', 'emitValue2')">Click me</button>

I think that explicitly accessing the arguments object is a bit tedious. I propose creating a new modifier .bind which will automatically apply the arguments object to the function, such that the final syntax would look like:
<!-- app.vue -->
<my-component @test:event="testHandler.bind('someValue')"></my-component>

methods: {
    testHandler(componentValue, emitValue1, emitValue2) {
    }
}

<!-- MyComponent.vue -->
<button @click="$emit('emitValue1', 'emitValue2')">Click me</button>

I have already looked into this and it is a fairly small change to the compiler. I don't know if bind is the correct word to use for this, as it doesn't allow change to the this context, maybe apply? Anyway feedback is welcome, and if this is a desirable feature I can write tests for this and create a PR.

I think that explicitly accessing the arguments object is a bit tedious. I propose creating a new modifier .bind which will automatically apply the arguments

I don's think this provides a significant advantage - you save exactly 2 characters by replacing "arguments"(9 chars) with ".bind()" (7 chars).
Furthermore, ES6 makes it very easy to deal with arguments with destrcturing:
handler(someValue, [value1FromArgument, value2FromArgument]) {
  // do your thing
}

Live example: https://jsfiddle.net/Linusborg/50wL7mdz/12329/

Or use the spread operator:
<my-component @test:event="testHandler('someValue', ...arguments)"></my-component>


Auth security improvements

During a security review of the auth code we identified the following improvements:

JWTAuthorizationHeaderPrincipalGetter is not currently used and may be removed
offline scope is not needed as we don't refresh the tokens at the moment
/oauth2/userinfo should return 401 when no auth
Reduce the validation secret cookie TTL as it doesn't need to be set to 1h
Ensure all cookies are set to HttpOnly/Secure

@yiannistri where do you see that JWTAuthorizationHeaderPrincipalGetter is not used? I can see we are adding it here. Do you mean that we do not want to add it to the "chain" anymore?

Reduce the validation secret cookie TTL as it doesn't need to be set to 1h

What should the new value be?

That's correct, we don't make any requests from the UI using the auth header just the cookie is used for now.

If/when we start using the auth header we will need to add it of course but for now it's obsolete.

The validation secret cookie can be set to a smaller value i.e. ~5m as it only needs to be valid while the OIDC flow takes place. @bigkevmcd do you think 5m is ok for this?

/oauth2/userinfo should return 401 when no auth

Could you clarify where we are not returning the correct status here.
The UserInfo func is "fall-through", so if we get to the end the user is authenticated.
From what I see we are writing the following codes in these "leave early" situations:

StatusMethodNotAllowed when not GET, which is obviously correct.
StatusBadRequest when the IDTokenCookie is not found. This feels correct to me, but at a stretch I guess could be changed to StatusUnauthorized, although it doesn't really fit the RFC.
StatusUnauthorized when the UserInfo is not found on the Provider. This is correct.
And StatusInternalServerError whenever some struct cannot be marshalled. Again this is right.

I know the comment on the func says we return 401 status in any other case, so just checking we actually mean to do that and change all the above status codes to StatusUnauthorized.

I would argue that when the user (or the user's browser) does not supply the IDToken cookie, the request lacks valid authentication credentials and therefore it should return a StatusUnauthorized. But it can be interpreted both ways so I won't insist if you think a StatusBadRequest is more suitable (we don't send back a WWW-Authenticate header anyway).
I won't insist on changing the other status codes either although I do think auth endpoints in general do not need to be super helpful with their status codes. Unless of course you're okta or auth0.
@bigkevmcd let us know if you have any thoughts on this.

WWW-Authenticate is for basic auth, so it wouldn't be appropriate.
Oh, and I think for the cli-based auth, we'll want JWTAuthorizationHeaderPrincipalGetter.
Otherwise, the response codes look good to me.
And, I think it's ok to say "bad request" to an endpoint that does the authentication as opposed to "requires authentication" but I don't feel very strongly about it, so if there was a good upstream to copy from, I'd be happy.

@yiannistri and @ozamosi what is the status of the final one issue that isn't marked above?

/oauth2/userinfo should return 401 when no auth

Is that completed?  This is part of a milestone for the next release.

@davidstauffer - @yiannistri has confirmed that the last point isn't complete, we currently return 401 rather than 400... not ideal but probably not a critical fix, just something to be aware of that could be updated if you happen to be in the code.


troublesome leap_hand_left.urdf

Hi! About the left side of leap hand urdf, did you notice the collision of the mesh seems not that correct? This means, the thumb of leap hand left can not rotate freely and can easily get stuck with palm link. Is there any new version of leap hand urdf left?

Hi @zhoubohan0
Good catch, there is something wrong about the leap hand collision mesh for the left hand. Due to some issues in the original leap hand modeling, the left and right leap hand are not simply mirrored, which makes this problem not so easy to solve. I will fix it soon and let you know.

hi @zhoubohan0
This bug has been fixed in recent commits 99720cdf44f5c6564ef9fd208a7cbc8bdf65953d and 6eeda17435d46dde5915a16fd37b248bd8bb468e.
If you still encounter some collision issues related to the left leap hand, feel free to open another issue.


Added the option to add two links to the icon section items and remov…

…ed the rich text editor field

PR amsterdam made


Blcient chunksize to 40MB

Increase default upload chunksize from 10MB to 40MB

<< Expletive Deleted >>
Thanks for the catch.
On Thu, Jan 28, 2021 at 12:15 PM Don Brower<EMAIL_ADDRESS>wrote:

@dbrower requested changes on this pull request.
In Makefile
https://github.com/ndlib/bendo/pull/240#discussion_r566266019:

@@ -35,6 +35,7 @@ rpm: ./bin/bendo ./bin/bclient ./bin/butil
bin/bendo=/opt/bendo/bin/bendo
bin/bclient=/opt/bendo/bin/bclient
bin/butil=/opt/bendo/bin/butil

looks like line needs a backslash.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ndlib/bendo/pull/240#pullrequestreview-578560888, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZUMTANZPU3ZKKLPSLLWE3S4GLURANCNFSM4WV5SH7Q
.

<< Expletive Deleted >>
Thanks for the catch.
On Thu, Jan 28, 2021 at 12:15 PM Don Brower<EMAIL_ADDRESS>wrote:

@dbrower requested changes on this pull request.
In Makefile
https://github.com/ndlib/bendo/pull/240#discussion_r566266019:

@@ -35,6 +35,7 @@ rpm: ./bin/bendo ./bin/bclient ./bin/butil
bin/bendo=/opt/bendo/bin/bendo
bin/bclient=/opt/bendo/bin/bclient
bin/butil=/opt/bendo/bin/butil

looks like line needs a backslash.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ndlib/bendo/pull/240#pullrequestreview-578560888, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZUMTANZPU3ZKKLPSLLWE3S4GLURANCNFSM4WV5SH7Q
.


[FLINK-20852][metrics][webui] Provide more detailed per subtask backpressure stats

This PR focuses on providing idleTime and busyTime metrics per subtask in the "BackPressure" tab in the WebUI. Additionally back pressure ratio in this tab is rewritten to use backPressuredTime metric, which is vastly simplifying the existing JobVertexBackPressureHandler.
Brief change log
Please check individual commit messages.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Thanks for the review @zentol. Azure is green, so merging.

Thanks for the review @zentol. Azure is green, so merging.


a downloaded file was overwritten when using remote execution

Hello,
When I remotely executing my codes, I got this error:

Yes, the downloaded file is .gz and it should look for .csv file. The codes should manually gunzip it. However, even if I manually gunzip it, the clearml-agent will disregard the existence of .gz and .csv file and re-download the folder and thus these .gz and .csv files got overwritten by the new downloaded folder, which makes it unable to find the needed .csv file.
It works perfectly fine if I manually execute the codes from the local machine in the .clearml venv environment.
Can someone help me with this? Thanks!

Hi @LanceKnight
Seems like it is trying to reference a relative path (see last line in the log ../../data/raw ...)
Since the code is running from a newly created virtual environment, the relative path changed.
Maybe use absolute path ?

HI, @bmartinn , it turned out to be a problem with another package. See this. Thanks for the absolute path suggestion so I can identify the problem :)


🐛 [FIREBASE_MESSAGING] OnTokenRefresh stream dont't work using iOS physical device/Emulator.

When a new token is generate by the methods deleteToken and getToken, the stream onTokenRefresh doesn't call the
callback registered.
await FirebaseMessaging.instance.deleteToken();
await FirebaseMessaging.instance.getToken();

This behaviour just occurs using iOS physical device/Emulator, using Android physical device/Emulator work regularly.
 /// Fires when a new FCM token is generated.
  Stream<String> get onTokenRefresh {
    return _delegate.onTokenRefresh;
  }

Android example rendered

iOS example rendered

Code to reproduce the bug:
import "dart:async";
import 'dart:io';

import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_messaging/firebase_messaging.dart';
import "package:flutter/material.dart";

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(WidgetThatShowTheToken());
}

class WidgetThatShowTheToken extends StatefulWidget {
  @override
  _WidgetThatShowTheTokenState createState() => _WidgetThatShowTheTokenState();
}

class _WidgetThatShowTheTokenState extends State<WidgetThatShowTheToken> {
  //
  void setTokenSubscriptionStream() {
    tokenSubscriptionStream = FirebaseMessaging.instance.onTokenRefresh.listen(
          (String _token) {
        print("NEW TOKEN: $_token");
        setState(() => token = _token);
      },
    );
  }

  late StreamSubscription<String> tokenSubscriptionStream;

  String token = "NO TOKEN";

  @override
  void initState() {
    setTokenSubscriptionStream();
    super.initState();
  }

  @override
  void dispose() {
    super.dispose();
    tokenSubscriptionStream.cancel();
  }

  Future<void> refreshToken() async {
    await FirebaseMessaging.instance.deleteToken();
    await FirebaseMessaging.instance.getToken();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Text("Platform: " + Platform.operatingSystem, style: const TextStyle(fontSize: 24)),
              const SizedBox(height: 16),
              Text(token, style: const TextStyle(fontSize: 10)),
              const SizedBox(height: 16),
              MaterialButton(
                color: Colors.blue,
                child: const Text("Refresh Token"),
                onPressed: refreshToken,
              ),
            ],
          ),
        ),
      ),
    );
  }
}

To clarify: the methods getToken & deleteToken work as expected, just the stream onTokenRefresh don't work in iOS emulator/physical device.

Is similar with #5389, but still happen just for  iOS physical device/Emulator.
Version used:
firebase_messaging: ^11.2.6
[✓] Flutter (Channel stable, 2.10.1, on Microsoft Windows [versÃ£o 10.0.19043.1526], locale pt-BR)
    • Flutter version 2.10.1 at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db747aa133 (12 days ago), 2022-02-09 13:57:35 -0600
    • Engine revision ab46186b24
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc1)
    • Android SDK at C:\Users\Yamauchi\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0-rc1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[✗] Visual Studio - develop for Windows
    ✗ Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[✓] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.64.2)
    • VS Code at C:\Users\Yamauchi\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [versÃ£o 10.0.19043.1526]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 98.0.4758.102
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 98.0.1108.50

[✓] HTTP Host Availability
    • All required HTTP hosts are available

I can confirm this issue.  Before I migrated my project to null-safety, and updated the firebase packages it was working but now it doesn't. Version used ^11.2.6 but also tried to downgrade to 11.2.0, 10.0.9 and 10.0.0 but on all versions it still didn't work anymore.
The firebase_core package was upgraded from 1.2.0 to 1.12.0
sdk went from '>=2.7.0 <3.0.0' to '>=2.12.0 <3.0.0'
flutter doctor -v:
Flutter (Channel stable, 2.10.0, on macOS 12.0.1 21A559 darwin-arm, locale en-NL)
    • Flutter version 2.10.0 at /Users/wilkothomassen/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5f105a6ca7 (3 weeks ago), 2022-02-01 14:15:42 -0800
    • Engine revision 776efd2034
    • Dart version 2.16.0
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/wilkothomassen/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.64.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (3 available)
    • sdk gphone arm64 (mobile) • emulator-5554             • android-arm64  • Android 11 (API 30) (emulator)
    • Wilko’s iPhone (mobile)   • 00008020-000B24203C30003A • ios            • iOS 15.2.1 19C63
    • Chrome (web)              • chrome                    • web-javascript • Google Chrome 98.0.4758.102

[✓] HTTP Host Availability
    • All required HTTP hosts are available

Related / similar: https://github.com/FirebaseExtended/flutterfire/issues/5389
/cc @russellwheatley


Fix listChain problem

Codecov Report

Merging #388 (404eb15) into dev (a9cc479) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##                dev     #388      +/-   ##
============================================
- Coverage     13.26%   13.26%   -0.01%
  Complexity      351      351
============================================
  Files           181      181
  Lines          7717     7720       +3
  Branches        611      612       +1
============================================
  Hits           1024     1024
- Misses         6612     6615       +3
  Partials         81       81

Impacted Files
Coverage Δ
Complexity Δ

...ross/network/rpc/handler/ConnectionURIHandler.java
4.71% <0.00%> (-0.08%)
4.00 <0.00> (ø)


Trailing stop loss info

Description
Give more information when using tralingstoploss. After a buy, you will see information about the buy high percent:
2021-05-27 00:00:00 | SUSHI-EUR | 300s | Close: 10.8920 |  ^ EMA12/26: 10.8640 > 10.7613 ^  | Buy High: 11.032 (-1.27%) | SELL | Last Action: BUY | -1.5126% (delta: -0.09)

Type of change
Please make your selection.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] This change requires a new dependency
[ ] Code Maintainability / comments
[ ] Code Refactoring / future-proofing

How Has This Been Tested?
I've tested in simulation mode and live mode
Checklist:

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

This is already fixed by PR #265, but thanks for your update.


Error when Vue SFC and Vitest UI

Describe the bug
When importing Vue SFC and enabling --ui, an error is reported.
TypeError: __vite_ssr_import_1__.defineComponent is not a function

Without --ui, it works.
Reproduction
GitHub Repo: https://github.com/sxzz/vitest-issue

Clone repo
pnpm vitest --ui

// vitest.config.ts
import { defineConfig } from 'vitest/config'
import Vue from '@vitejs/plugin-vue'

export default defineConfig({
  plugins: [Vue()],
  test: {},
})

// demo.test.ts
import { it } from 'vitest'
import DemoApp from '../src/demo-app.vue'

it('demo', () => {
  console.log(DemoApp)
})

<template>

Hello World

</template>

System Info
System:
    OS: macOS 12.3
    CPU: (10) arm64 Apple M1 Max
    Memory: 1.32 GB / 32.00 GB
    Shell: 3.4.1 - /opt/homebrew/bin/fish
  Binaries:
    Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
    Yarn: 1.22.15 - /opt/homebrew/bin/yarn
    npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
  Browsers:
    Chrome: 100.0.4896.75
    Edge: 100.0.1185.36
    Firefox: 98.0.2
    Safari: 15.4
    Safari Technology Preview: 15.4
  npmPackages:
    @vitejs/plugin-vue: ^2.3.1 => 2.3.1
    vitest: ^0.9.3 => 0.9.3

Used Package Manager
pnpm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

This is a known error. Add this to your config:
  optimizeDeps: {
    exclude: ["vue"],
  },

We are waiting for a optimizeDeps: false in Vite.

Thanks, it works!

Duplicate of #553


CC2530/DL-20 no states

What happened?
I flashed a DL-20 CC2530 with custom PVTO-tool config.
Z2M with conbee2 works fine, with other devices. The CC2530 is paired (when I touch it.. something wrong with the battery power?).
Problem is, no state report, state is {}, not even Led.
edit: after another pairing, state is: {
"linkquality": 255
}
no topic in mqtt explorer still.
here is a screenshot of Clusters, there is 6 more endpoints like no.2

When flashed with the default from z-stack it works.
What did you expect to happen?
at least LED status is reported.
Trying to connect Dallas sensors.
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.36.0-1
Adapter firmware version
6.23.0
Adapter
deconz/ conbee2
Setup
add-on ha
Debug log
No response
this is the log when pairing:
info 2024-03-21 10:12:05Device '0x00124b0026171a69' joined
info 2024-03-21 10:12:05MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b0026171a69","ieee_address":"0x00124b0026171a69"},"type":"device_joined"}'
info 2024-03-21 10:12:05MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x00124b0026171a69"},"type":"device_connected"}'
info 2024-03-21 10:12:05Starting interview of '0x00124b0026171a69'
info 2024-03-21 10:12:05MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x00124b0026171a69","ieee_address":"0x00124b0026171a69","status":"started"},"type":"device_interview"}'
info 2024-03-21 10:12:05MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x00124b0026171a69"},"type":"pairing"}'
info 2024-03-21 10:12:07Successfully interviewed '0x00124b0026171a69', device has successfully been paired
info 2024-03-21 10:12:07Device '0x00124b0026171a69' is supported, identified as: Custom devices (DiY) CC2530 router (CC2530.ROUTER)
info 2024-03-21 10:12:07MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"CC2530 router","exposes":[{"access":1,"label":"Led","name":"led","property":"led","type":"binary","value_off":false,"value_on":true},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"CC2530.ROUTER","options":[],"supports_ota":false,"vendor":"Custom devices (DiY)"},"friendly_name":"0x00124b0026171a69","ieee_address":"0x00124b0026171a69","status":"successful","supported":true},"type":"device_interview"}'
info 2024-03-21 10:12:07MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"CC2530 router","friendly_name":"0x00124b0026171a69","model":"CC2530.ROUTER","supported":true,"vendor":"Custom devices (DiY)"},"type":"pairing"}'
info 2024-03-21 10:12:07MQTT publish: topic 'homeassistant/binary_sensor/0x00124b0026171a69/led/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b0026171a69"],"manufacturer":"Custom devices (DiY)","model":"CC2530 router (CC2530.ROUTER)","name":"0x00124b0026171a69","sw_version":"2021-07-05","via_device":"zigbee2mqtt_bridge_0x00212effff09a813"},"json_attributes_topic":"zigbee2mqtt/0x00124b0026171a69","name":"Led","object_id":"0x00124b0026171a69_led","origin":{"name":"Zigbee2MQTT","sw":"1.36.0","url":"https://www.zigbee2mqtt.io"},"payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x00124b0026171a69","unique_id":"0x00124b0026171a69_led_zigbee2mqtt","value_template":"{{ value_json.led }}"}'
info 2024-03-21 10:12:07MQTT publish: topic 'homeassistant/sensor/0x00124b0026171a69/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x00124b0026171a69"],"manufacturer":"Custom devices (DiY)","model":"CC2530 router (CC2530.ROUTER)","name":"0x00124b0026171a69","sw_version":"2021-07-05","via_device":"zigbee2mqtt_bridge_0x00212effff09a813"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x00124b0026171a69","name":"Linkquality","object_id":"0x00124b0026171a69_linkquality","origin":{"name":"Zigbee2MQTT","sw":"1.36.0","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0x00124b0026171a69","unique_id":"0x00124b0026171a69_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
and this the config hex from pvto:
Board type: CC2530
Device type: End device without routing
Model ID: ptvo.switch1
Status LED: P10 (Inversed), Periodic (every 5 seconds)
Set default reporting interval (s): 20
Output pins:
P03: Output 1, DS18B20, Pull-up (Sensor ID (optional, hex): )
P03: Output 2, DS18B20, External pull-up (Sensor ID (optional, hex): )
P02: Output 3, DS18B20, Pull-up (Sensor ID (optional, hex): )
P03: Output 4, DS18B20, Pull-up (Sensor ID (optional, hex): )
P22: Output 5, DS18B20, Pull-up (Sensor ID (optional, hex): )
P21: Output 8, DS18B20, Pull-up (Sensor ID (optional, hex): )

If you would like to control a LED from Z2M, you should remove this pin from the "Status LED" option.
So, define
P10, Output 1, GPIO, Pull-up, Role "General".
Re-flash the device, delete it in Z2M, restart Z2M, then join the device again.

restart Z2M add-on in ha did the job.
Embarrassing, thanks for the help.
Now I see one of the 3 sensors showing up with an ID. Maybe that's a cabeling issue or the faulty sensor.


0 Notifications on discord mobile

I've went through all of the troubleshooting options to figure out what's wrong with this I have had this problem since I logged into quarrel, and have found it its not the I need some desperate help with this is there any way you can like take delete my account from your system or give me some troubleshooting options? My notifications only don't work on accounts that haven't been logged in to quarrel.

Same thing for me. Since my first connection with Quarrel, I no longer have DM notifications, friend requests, or mobile calls. Everything works fine on PC and browser. My client notifications and synchronization settings are correct. If I go into a private conversation on my phone, there is no new message indicator, it is as if the messages were already read on another device.


get location of cursor in global coordinates from SwiftUI

I'm going to add a PR for this soon. Just posting the issue to let you know I'm one in. Going to use this stack overflow post as a reference https://stackoverflow.com/questions/43166781/cursor-position-in-relation-to-self-view

Added into the macOS branch


Intersection type with leading object type should keep ampersand on same line

For example:
export type SendRequest = {
  rid: number;
} & Addr;

Should format as-is, but right now it formats as:
export type SendRequest = {
  rid: number;
}
  & Addr;

Same with here:
type IterableEntries<T> = Iterable<T> & {
  entries(): IterableIterator<[unknown, T]>;
};

Should stay as-is probably. Rather than:
type IterableEntries<T> = Iterable<T>
  & {
    entries(): IterableIterator<[unknown, T]>;
  };

Kind of the same idea as params and args I think.


unable to pull the docker image with 'latest' tag

Describe the bug
when I tried the exact docker pull command from your portal, it fails saying "unable to find latest tag"
How are you accessing AGE (Command line, driver, etc.)?

docker

What data setup do we need to do?
...
...

What is the necessary configuration info needed?

NA

What is the command that caused the error?

ERROR:  something failed to execute

Expected behavior
docker image must be pulled using latest tag
Environment (please complete the following information):

Version: [e.g. 0.4.0]

Additional context
To workaround, I had to use "dev_snapshot_master" tag

Having the same issue, looks like the link to the manifest file is broken.

Which file?

@byte-beaver dev_* are not supported. Only release_* are officially supported. Let me know where it states latest so that I can see about correcting it. We are still working on updating DH to more strictly follow Apache guidelines.

I have put the latest tag back in place. However, per Apache guidelines, it points only to the latest Apache AGE release. For this tag, that is PG16 1.5.0.

Thanks, it's working now

@jrgemignani Not sure I get the question about the reference to latest. It is the default tag and added automatically, when no specific release is provided with the docker command (https://docs.docker.com/reference/cli/docker/image/tag/). Hence, using one of the following instructions resulted in the error:

https://hub.docker.com/r/apache/age
https://age.apache.org/age-manual/master/intro/setup.html
https://age.apache.org/blog/2024-04-25-how-to-deploy-apache-age-docker-image-on-aws/

@torstenboettjer I will see what can be done to update those links to be correct.
@markgomer Is this something you can do?

@byte-beaver  @torstenboettjer I updated DockerHub to keep the latest tag. So, if this resolves the issue, please close the ticket :)


priest / grove keeper still borked

*"Priest" problems
Still no offensive summons in Priest like there should be either, makes the pet bonuses it has useless by itself.
update "priest" to be whatever is in the latest dawn of heroes update

Priest updated to 3.4 in my local and plays well...will be in next pull

Fixed in pull#58


Fetch-crl doesn't work on EL9 with IGTF CAs

I have clean installation of EL9
[root@localhost ~]# rpm -qa ca-policy-egi-core fetch-crl
ca-policy-egi-core-1.128-1.noarch
fetch-crl-3.0.22-1.el9.noarch

and fetch-crl fails to download CRLs for several IGTF core CAs
[root@localhost ~]# /usr/sbin/fetch-crl | grep ^ERROR
ERROR CRL verification failed for ArmeSFo/0 (ArmeSFo)
ERROR CRL verification failed for DigiCertGridRootCA-Root/0 (DigiCertGridRootCA-Root)
ERROR CRL verification failed for IHEP-2013/0 (IHEP-2013)
ERROR CRL verification failed for LIPCA/0 (LIPCA)
ERROR CRL verification failed for PK-Grid-2007/0 (PK-Grid-2007)
ERROR CRL verification failed for RDIG/0 (RDIG)
ERROR CRL verification failed for RomanianGRID/0 (RomanianGRID)
ERROR CRL verification failed for SRCE/0 (SRCE)
ERROR CRL verification failed for TRGrid/0 (TRGrid)

Hi Petr,
that looks compatible with the known issue & workaround we need on EL9:
https://twiki.cern.ch/twiki/bin/view/LCG/EL9vsSHA1CAs

Hi Maarten,
I'm fully aware of workarounds, but I hope we agree that we don't want to keep workarounds forever. So I'm trying to push WLCG to get from IGTF official timeline when they will drop Root CAs that are no longer "actively maintained" and were not able to move away from SAH1.
Just because IGTF keeps few bad Root CAs we have to deal with operational issues everywhere and we already wasted too much time because the lack of effort of just few Root CA operators.

The issue is not with fetch-crl, but in the way that the distribution (EL9, assuring RedHat here) has put specific constraints on their products and how those interact with the CAs whose CRLs are being retrieved. For chain validation fetch-crl uses the system-provided OpenSSL version by default, but you configure it to use another build of OpenSSL that is not encumbered in this way. In the general section of the config file (/etc/fetch-crl.conf or in a file in /etc/fetch-crl.d/) set
openssl=/usr/local/bin/openssl

and provide a build of OpenSSL (v1+) that continues to recognise self-signed roots for what they are (i.e. the signature and hash function used for these is immaterial to their security).
Unfortunately, there is nothing fetch-crl itself can solve here, since it uses the openssl version as available on the system.
RedHat (case 03335679) provided a work-around that they themselves use for the system CAs (many of which also are SHA-1 based. This involves changing the certificates on-disk to a RedHat/OSSL proprietary format "BEGIN TRUSTED CERTIFICATE" that appends specific trust bytes to the certificate binary blob that will override the bespoke crypto-policies limitation that RedHat built into OpenSSL. While in itself a simple operation (see e.g. https://www.nikhef.nl/~davidg/tmp/make-trusted.sh) be aware that this results in a non-standard on-disk certificate format that will not be recognised by any other software apart from RedHat's OpenSSL. It depends on your use cases whether this is an acceptable solution.
@maarten-litmaath already provided a reference to the system-wide work-around:
update-crypto-policies --set DEFAULT:SHA1

but whether that is acceptable depends on policy alignment so that your other use of SHA-1 is controlled, and on any regulatory requirements that apply to you.
Meanwhile, there is unfortunately nothing fetch-crl itself can do to alleviate the RedHat EL9 issues.


Syntax error (unterminated string) when using delayed_job 4.1.3

Hello, we just updated the delayed_job gem to v. 4.1.3 in our Travis build and began encountering failures with the following error trace (using delayed_job_active_record 4.1.2):
/Users/dscheider/.rvm/gems/ruby-2.3.4@ruby_agent/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:251:in `require': /Users/dscheider/.rvm/gems/ruby-2.3.4@ruby_agent/gems/delayed_job_active_record-4.1.2/lib/generators/delayed_job/templates/migration.rb:1: unterminated string meets end of file (SyntaxError)
/Users/dscheider/.rvm/gems/ruby-2.3.4@ruby_agent/gems/delayed_job_active_record-4.1.2/lib/generators/delayed_job/templates/migration.rb:1: syntax error, unexpected end-of-input, expecting ';' or '\n'
	from /Users/dscheider/.rvm/gems/ruby-2.3.4@ruby_agent/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:251:in `block in require'
	from /Users/dscheider/.rvm/gems/ruby-2.3.4@ruby_agent/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:236:in `load_dependency'
	from /Users/dscheider/.rvm/gems/ruby-2.3.4@ruby_agent/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:251:in `require'

When I look at the offending file, I see the following code:
class CreateDelayedJobs < ActiveRecord::Migration<%= migration_version %>
  ...
end

As you can see, there's an attempt to interpolate a migration version using ERB that is apparently not working as planned with the new version of delayed_job. The problem goes away when I use delayed_job_active_record 4.1.1.
I would be able to look into this issue further on Monday, but first wanted to ask whether you are already working on a fix, do not intend to fix this issue, or have insights into it that I may have missed. Thanks!

That file is a migration template. It is no longer able to be required directly and was never intended to be. You need to find out what is trying to require that file and not do that.


[Suggestions] - Show cracked seed , log and GUI

First of all, thank for this great mod. Now for the suggestions.
It would be great, if you can type something like /seed show or similar to show cracked seed, because of my fast scrolling chat on server.
Second suggestion of mine is some kind of log , that would contain name of world/server and all necesary data for that world (location of structures, seed etc.).
My last suggestion is some kind of GUI. Just gui version of commands which are already implemented.
I know coding is hard job, but I believe you can do it.
Thank you,
MB

I'm in no rush to implement such things and already have thought about them.


Blog post: 10 year birthday mobathon

@mlvandijk @aslakhellesoy @jaysonesmith could you have a look at the post (preview here) and let me know any more lessons I can put in that spring to mind?

Sure :)

The environment stuff would be one of the biggest things to handle. Perhaps having either a faster build cycle (which I want to take a stab at) or a transfer to a different project while that's going could help down time? With that said though, using the downtime to chat and build camaraderie is also a great thing. /shrug
Aside from that, you've got two carriage returns before the last section starting with, "I still have a crazy idea that" and Björn's name has a standard o in it instead of ö.
I had an absolutely fantastic time though and would love to keep doing it!

Hee hee can I quote you on that?
Typed with my Thumbs.

On 5 Oct 2018, at 19:08, Jayson Smith<EMAIL_ADDRESS>wrote:
I had an absolutely fantastic time though and would love to keep doing it

--
Inspiring meaningful, effective collaboration in every software delivery
organisation.
The Cucumber logo is the intellectual property of
Cucumber Ltd, a limited company registered in Scotland, number 456793.
Registered address: Cucumber Ltd, The Melting Pot, 5 Rose Street, Edinburgh
EH2 2PR, Scotland, United Kingdom.
CONFIDENTIALITY NOTICE: The information
in this e-mail is confidential and privileged; it is intended for use
solely by the individual or entity named as the recipient hereof.
Disclosure, copying, distribution, or use of the contents of this e-mail by
persons other than the intended recipient is strictly prohibited and may
violate applicable laws. If you have received this e-mail in error, please
delete the original message and notify us by email immediately. Thank you.
Cucumber Ltd.

@mattwynne Yeah, absolutely! Do you want something more? How's:
"The anniversary mobathon was an absolutely fantastic time and I would love to do it more! Driving the code changes while having the guidance of folks already familiar with the code enabled me to do things for the first time(like release various Cucumber Ruby gems) that I wouldn't have been able to on my own. What a wonderful experience in so many ways!"

Not sure if you want to tackle the formatting at the end, but either way LGTM!

Merged in 1fc562f73b775f110330a1835a946d40a1433dfd 94e92f3032a1454e08252d57c44f45a6c98233d2 21b0da1292fdef4fefa256dda823c6350ad2a5b4 2921cd75457cd6cf6f88e5f055cf20561fb95d5e


SW-4835 Create rest api for getting global roles and updating a user's global roles

Add GET and POST API for interacting with global roles.
Permission check for the POST API is within the userStore call

Current dependencies on/for this PR:

#1690
#1689  👈
main

This stack of pull requests is managed by Graphite.

Merge activity

Mar 6, 5:46 PM EST: @nickgraz started a stack merge that includes this pull request via Graphite.


Report the "root:'charset' is an invalid keyword argument for this function" errors When connecting to Oracle

I had an error when configuring Superset connect to oracle.
The error was attributable to issues with sqlalchemy
Environment

superset version: Superset 0.30.0
python version: Python 3.6.9

Details errors
2019-10-15 04:22:48,682:INFO:root:Database.get_sqla_engine(). Masked URL: oracle+cx_oracle://XXXX:XXXXXXXXXX@<IP_ADDRESS>:1521/xxxx?charset=utf8
2019-10-15 04:22:48,683:ERROR:root:'charset' is an invalid keyword argument for this function
Traceback (most recent call last):
File "/onepiece/python3/lib/python3.6/site-packages/superset/views/core.py", line 1706, in testconn
with closing(engine.connect()) as conn:
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2196, in connect
return self._connection_cls(self, **kwargs)
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 103, in init
else engine.raw_connection()
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2296, in raw_connection
self.pool.unique_connection, _connection
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2265, in _wrap_pool_connect
return fn()
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 303, in unique_connection
return _ConnectionFairy._checkout(self)
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 760, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 492, in checkout
rec = pool._do_get()
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/pool/impl.py", line 238, in _do_get
return self._create_connection()
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 308, in _create_connection
return _ConnectionRecord(self)
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 437, in init
self.__connect(first_connect_check=True)
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 639, in __connect
connection = pool._invoke_creator(self)
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/engine/strategies.py", line 114, in connect
return dialect.connect(*cargs, **cparams)
File "/onepiece/python3/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 453, in connect
return self.dbapi.connect(*cargs, **cparams)
TypeError: 'charset' is an invalid keyword argument for this function

Please update to Superset 0.34.1 (most recent version) to check if the error has been resolved.

I believe you need to set the NLS_LANG environment variable to change character encodings on Oracle. If you are able to solve the issue please feel free to submit a PR adding a note to the Oracle installation documentation under docs/installation.rst.


Automated Bar | Show upgrades

Show the upgrades which are purchased/missing in the Autpmated Bar minigame similar to the upgrades of the main game.

Implemented in 1.61.0


how i can define my custom objects

I am using reacT vision Tuio Simulator for experiment purpose
How do I define my own objects for the actual touch screen experience

This is exactly what I want
What I'm doing right now is downloading a desktop app made by tabel makers in order to get the data

Hay, did you figure out how you can use tuio for your purpose or is the issue still open?
@Elabbasy00

I haven't found a solution yet, but you can lock it
Thank you so much


Provide support for Symfony 4.

I've made changes to support Symfony 4 (and therefore Laravel 5.6) by following the Symfony upgrade guide here.

Note: This pull request requires PHP >= 7.1.3 (Symfony dependency).

Sorry, just read the comment in another issue that you're not looking to manage a 2.x branch of this in order to facilitate supporting Symfony 4. After looking into it further, there are some additional changes that need to be made in order to work with the breaking changes Symfony 4 introduces. If you'd be interested in merging the changes, let me know and I can push up the additional commits. Otherwise I'll leave the commits out and close this pull request for now.


No way to search for null values

It should be possible to search for NULL values in the database. Maybe foo=null, and foo="null" is a search for the string null.

And of course still be able to search for the string "null".
Isn't "search for null values" a bit too low-level a concept?

Yea, maybe... maybe we should just do foo='' as a search for empty string or null?

Actually we do have support for this. Maybe it should have a nicer implementation, but at least it's possible. Closing this ticket.