Update es after updating node version

Signed-off-by: shirady<EMAIL_ADDRESS>Explain the changes

Update es after updating node version to node 18 in eslint configuration and tsconfig file, see here.
Match numbers in the comments to the actual set value.

Related PRs:
#7123
#7152
Issues:
Gap - ability to use most updated standards.
Testing Instructions:
none

[ ] Doc added/updated
[ ] Tests added

Regarding TSlint we might want to migrate it to ESLint:
npm WARN deprecated<EMAIL_ADDRESS>TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.

Regarding TSlint we might want to migrate it to ESLint: npm WARN deprecated<EMAIL_ADDRESS>TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information.

@liranmauda anything we should do in this PR?

You see the push one after another because I'm checking something that nor related to this PR.


MacOS build problems fix

First of all, nice project!
I had some minor problems building the project in mac os.
To fix this I have created this pull request.

As I don't have ready access to mac to test, I trust that it works. Thanks!


Adding docker run aviability

Hi there!
Hoshinova is greate service, so I think it should have aviability to be runned over Docker Engine.
In this pull request I added Dockerfile and updated Readme with instruction
After closing this pull request, there will be need in creation Account on Docker hub and build + push this image to it.
You can automatise it with Github action, let me know, if you will need help with this)))

Hey, thanks for the PR! This project is still undergoing a lot of changes, including some breaking changes on how the config is loaded, so I'll hold off merging this one until I get #1 sorted out.

Thanks for reply! Ok, I'll wait for it, feel free to communicate about another moments) 😄

Hi, I've rewritten hoshinova in Rust, and have subsequently made a Dockerfile for it  on v2.0.0.


FR - Set "Unknown"  all entities when no update for more than X hours

Home Assistant Android version:
1.7.0 (121)
Android version:
9
Phone model:
OnePlus5 (ONEPLUS A500)
Home Assistant version:
0.105.3
Last working Home Assistant release (if known):
N/A
Description of problem:
Not really a problem, before the App implementation I was using Tasker in combination with some automation.
The goal was to have the wifi/battery/device status all set to Unknown when those devices didn't receive an update for more then 6 hours.
This was allowing me to keep track of the device situation (even to understand if they were not connected (or even not on I would say) and to do automations based on that aswell.
I know that this might be more HA side of things rather then the App itself, but I also thought that here it would have more visibility and relevance rather then posting it on the forum where it would have been lost in minutes.
Also, not sure if it's doeable, when the phone is going off it might be forced to send a last position state and battery state?
Thanks
Traceback (if applicable):

Additional information:

So every entity in HA has a last_changed and last_updated attribute that you can use to determine how long its been since an update.  I think that would achieve what you are looking to do here?

So every entity in HA has a last_changed and last_updated attribute that you can use to determine how long its been since an update. I think that would achieve what you are looking to do here?

I have actually tried this before, but unfortunately device_tracker.see is not supposed by mobile_app device trackers, so it is not possible to manually change the state.

Yup you won't be able to use device_tracker.see as its only for legacy device trackers.  These steps are more for you to create a template sensor or use in an automation in order to determine if it hasn't been updated in x hours.

That's actually my point, intead of having to create different additional entities to do this it might be better to have a default behaviour for specific "Mobile App related" entities.
Otherwise yes, I can create the input_text and input_boolean (battery level and wifi/battery status), it's the same thing I've been doing with tasker using webhooks, but I do believe there should be a better way for this to happen.
Because I can do it, no problem, not all are "tecky" and like to tinker with stuff, so a "fail-over" should still be in place to don't have a phone reporting "100%" of battery when has been off for a day :)

yea maybe instead of unknown a better state would be unavailable we may be able to set that when a device is powered off I think.  The rest a timeout could work.  I wonder how iOS handles this 🤔

Not really sure about which one is better, because Unknown would be valid for example if the phone had no connection for X hours (let's say 6 and let's say it had simply no internet), it's more unknown rather then the value being unavailable.. Anyway, I guess it's fine both way :)

Unknown or unavailable are great options and I would love for them to be implemented, but in this case integration.person should also support this feature and ignore the device_tracker entity if it is in this state, because then router can specify, if the device is home or not.

That's a good point, not sure if it's already like that but a device_tracker in unknown or unavailable status should be "skipped" by the person assigned devices (if there are others available).
Until now, to have the "unknown" status on a mobile after X hours without update I had the battery sensor configured as a template:
    value_template: >-
      {% if state_attr('device_tracker.andrea_oneplus5', 'battery_level') %}
        {{ state_attr('device_tracker.andrea_oneplus5', 'battery_level') }}
      {% elif not is_state('input_text.andrea_oneplus5_battery', 'unknown') %}
        {{ states('input_text.andrea_oneplus5_battery') | int }}
      {% else %}
        unknown
      {% endif %}

And an automation that was switching off all the input_booleans related to the device (wifi and charging status) running every minute
condition:
  condition: and
  conditions:
    - condition: template
      value_template: '{% if states.input_text.andrea_oneplus5_battery is defined %} {{(as_timestamp(now()) - as_timestamp(states.input_text.andrea_oneplus5_battery.last_changed)) > 43200 }} {% endif %}'
action:
  - service: input_text.set_value
    data_template:
      entity_id: input_text.andrea_oneplus5_battery
      value: "unknown"
  - service: input_boolean.turn_off
    data_template:
      entity_id: input_boolean.andrea_oneplus5_charging
  - service: input_boolean.turn_off
    data_template:
      entity_id: input_boolean.andrea_oneplus5_wifi

I can get back to this configuration, but the battery sensor provided by the App lose all it's functionality and it would be just an additional entity that I need to "tweak" to make better.
Maybe a good plus would be the ability to chose:

Normal mode - Have all entities separated (as they are now, for less tecky users)
Advanced mode - Have all the informations inside the single device_tracker and let each "House Admin" create the entities using templates the way they want them.

In my personal case, the second option would be perfect, because I will have only the device tracker and all battery/charging/wifi information would be attribtues inside the entity allowing me to mantain the above setup without having to "re-invent it".
Also, not sure how the battery icon is defined in the sensor (I saw it goes with the % and charging state) when it goes low/unknown, here is how I use it, it might be useful maybe to someone (or maybe can be done the same in the App generated sensor) ^^
    icon_template: >
      {% if state_attr('device_tracker.andrea_oneplus5', 'battery_level') %}
        {% set battery_level = state_attr('device_tracker.andrea_oneplus5', 'battery_level') | int %}
      {% elif not is_state('input_text.andrea_oneplus5_battery', 'unknown') %}
        {% set battery_level = states('input_text.andrea_oneplus5_battery') | int %}
      {% else %}
        mdi:battery-unknown
      {% endif %}
      {% if battery_level is defined %}
        {% if battery_level == 100 %}
          {% if is_state('binary_sensor.andrea_oneplus5_charging', 'on') %}
            mdi:battery-charging-100
          {% elif is_state('input_boolean.andrea_oneplus5_charging', 'on') %}
            mdi:battery-charging-100
          {% else %}
            mdi:battery
          {% endif %}
        {% elif battery_level >= 10 %}
          {% set battery_round = (battery_level / 10) |int * 10 %}
          {% if is_state('binary_sensor.andrea_oneplus5_charging', 'on') %}
            mdi:battery-charging-{{ battery_round }}
          {% elif is_state('input_boolean.andrea_oneplus5_charging', 'on') %}
            mdi:battery-charging-{{ battery_round }}
          {% else %}
            mdi:battery-{{ battery_round }}
          {% endif %}
        {% elif battery_level >= 5 %}
          {% if is_state('binary_sensor.andrea_oneplus5_charging', 'on') %}
            mdi:battery-charging-outline
          {% elif is_state('input_boolean.andrea_oneplus5_charging', 'on') %}
            mdi:battery-charging-outline
          {% else %}
            mdi:battery-outline
          {% endif %}
        {% elif battery_level >= 0 %}
          {% if is_state('binary_sensor.andrea_oneplus5_charging', 'on') %}
            mdi:battery-charging-outline
          {% elif is_state('input_boolean.andrea_oneplus5_charging', 'on') %}
            mdi:battery-charging-outline
          {% else %}
            mdi:battery-alert
          {% endif %}
        {% else %}
          mdi:battery-unknown
        {% endif %}
      {% endif %}

Is this going to be implemented?

So looking into this more closely.  I don't think this is something the app itself should handle.  If the device has shut down or is out of network then we can't send anything back home so HA core should be responsible for this behavior due to that alone.  The app does have a last_update sensor that could be used to make the templates easier since it updates all the time (except for when the update is only SensorWorker, like if your device is idle for a while).  Since HA core does not accept feature requests on github we also can't move this issue so I suggest creating a feature request on the forums as something like this in HA core will benefit all mobile_app devices.
Now what the app can do is report when it can't reach home but thats on device itself via something like a notification, which is what #1265 is set to achieve.

I see and I agree.
Too bad the core FR is not on GitHub, the forum one is very dispersive and even if I create it there, it will be lost and forgotten.
But I see your point, I will play with templates myself to try to achieve that.


Fix #5571 - Removed values-yue-hant file

Description (required)
Fixes #5571
What changes did you make and why?
Removed values-yue-hant, the error happened because Android expects a specific format for resource directory names, and values-yue-hant does not conform to these expectations, also there is exist values-yue with the same translate
Tests performed (required)
I used gradle :app:testBetaDebugUnitTest Tested on Google pixel 6A with API level 31

Thanks for the contribution.
Have you confirmed that yue is the actual language map for the yue-hant language code? If so, could you share the supporting resources for the same? We need to be sure we're not accidentally removing support for a language 🙂

Also, there's the translatewiki part that needs to be take care of (in case yue-hant should indeed be mapped to yue). Would you be able to cover that too?

Yes, we can rename it, but values-yue-that will be mapped to values-yue, so removing the file will also work because they have the same translation.

Yes, we can rename it, but values-yue-that will be mapped to values-yue,

You seem to presume we've already mapped values-yue-Hant to values-yue. Could you let me know where we've done it? Also, if we can keep it separate I'm not sure why we would want to even map it 🤔

so removing the file will also work because they have the same translation.

It may have the same translation now but that doesn't always need to be the case. I suppose you might need to explore their difference clearly to understand why mapping it may not be ideal.

You are right, maybe we can try changing the name of the file to values-b+yue+Hant, instead of removing it. I assumed that it was a static string sorry for I'm sorry for that.


new blazor format

how to use the new blazor format, using the .net core 3.0

The code has been updated to  .NET Core 3.2 Preview-1. Please try again and let me know if you have any further issues.


passing in transposed dataframe causes kernel to crash

The kernel crashes after the last line. The reason is likely related to me passing in a dataframe where the columns are probes and the rows are individuals. You can likely check this by seeing if any of the column names begin with 'cg'.

I looked at a newer version already fixes this (checks orientation of dataframe in each function) and flips if necessary, and checks for duplicate samples (in df index). New version should be public by next week. @jmschrei

Haven't heard this is still a problem for last 9 months, so closing.


Camera disabling on Component Unmount

I have a case when i need to switch off WebCamera after user leave chat page. Switched on green light is annoying and scares my users.
So i've tried:
// ... somewhere in my Session component
  const useMicrophoneAndCameraTracks = useMemo(
    _ => createMicrophoneAndCameraTracks()
  , [])

  const {
    ready,
    tracks,
    error } = useMicrophoneAndCameraTracks()

// Disable camera on component unmount
useEffect(_ =>
   _ => {
       await client.leave()
       client.removeAllListeners()
       // here i try to disable them
       tracks[0].close()
       tracks[1].close()
   }
)

But the tracks are also null... because:
Somewhere in index.tsx
      return () => {
        tracks = null
      }

... So what is better to create PR or just to make a local fix. And if creating a PR would it be ok i disable tracks manually in Effect?

The return statement contains useEffect cleanup which is triggered when component is unmounted. You should be able to close the tracks in your application lifecycle. In the sample app we do this:
const leaveChannel = async () => {
    await client.leave();
    client.removeAllListeners();
    // we close the tracks to perform cleanup
    tracks[0].close();
    tracks[1].close();
    // the camera light should go off
    setStart(false);
    setInCall(false);
   // you can now unmount the component if required
  };

The API is designed to set the tracks to null so that if the component is unmounted and mounted again, it'll create the tracks again. We let the user handle closing the tracks depending on their app's lifecycle.

The return statement contains useEffect cleanup which is triggered when component is unmounted. You should be able to close the tracks in your application lifecycle. In the sample app we do this:
const leaveChannel = async () => {
    await client.leave();
    client.removeAllListeners();
    // we close the tracks to perform cleanup
    tracks[0].close();
    tracks[1].close();
    // the camera light should go off
    setStart(false);
    setInCall(false);
   // you can now unmount the component if required
  };

The API is designed to set the tracks to null so that if the component is unmounted and mounted again, it'll create the tracks again. We let the user handle closing the tracks depending on their app's lifecycle.

But you actually call it on button click while component is mounted, when the component will unmount the tracks are null, because in useEffect hook you set tracks = null, as i showed a message below. And after you leave the page where useMicrophoneAndCameraTracks is mounted the camera is still works. I can't make users have to push "end button" every time they want to navigate other page.


Feature/quality start project

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@0cc284f). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             main        #1   +/-   ##
========================================
  Coverage        ?   100.00%
========================================
  Files           ?         4
  Lines           ?         7
  Branches        ?         0
========================================
  Hits            ?         7
  Misses          ?         0
  Partials        ?         0

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 0cc284f...372a166. Read the comment docs.


cmd/test2json: misparses subtest names with : in them

What version of Go are you using (go version)?
go version go1.10 darwin/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN="/Users/asf/go/bin"
GOCACHE="/Users/asf/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/asf/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.10/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.10/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/08/j4g_jn953lngpvgmyg8dygk00000gn/T/go-build539276007=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
This test file makes go test -json ./ produce very weird output on Action: "run":
package main

import "testing"

func TestSubtestNames(t *testing.T) {
	t.Run("words are ok", func(t *testing.T) {
		t.Log("they get _")
	})

	t.Run("[::1] is not ok", func(t *testing.T) {
		t.Log("...yeah")
	})

	t.Run("<IP_ADDRESS> to <IP_ADDRESS>:0", func(t *testing.T) {
		t.Log("seems the : is the problem.")
	})
}

What did you expect to see?
JSON containing consistent references to the subtest names.
What did you see instead?
This produces mostly-correct looking output, but only mostly.

Here's the entire json dump in case you're interested
{"Time":"2018-02-19T10:14:40.900984116+01:00","Action":"run","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames"}
{"Time":"2018-02-19T10:14:40.901516634+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames","Output":"=== RUN   TestSubtestNames\n"}
{"Time":"2018-02-19T10:14:40.901547154+01:00","Action":"run","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames/words_are_ok"}
{"Time":"2018-02-19T10:14:40.901567463+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames/words_are_ok","Output":"=== RUN   TestSubtestNames/words_are_ok\n"}
{"Time":"2018-02-19T10:14:40.901580108+01:00","Action":"run   testsubtestnames/[","Package":"github.com/antifuchs/simple_tests/test2json","Test":":1]_is_not_ok"}
{"Time":"2018-02-19T10:14:40.901598665+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":":1]_is_not_ok","Output":"=== RUN   TestSubtestNames/[::1]_is_not_ok\n"}
{"Time":"2018-02-19T10:14:40.902368883+01:00","Action":"run   testsubtestnames/<IP_ADDRESS>_to_<IP_ADDRESS>","Package":"github.com/antifuchs/simple_tests/test2json","Test":"0"}
{"Time":"2018-02-19T10:14:40.90239884+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":"0","Output":"=== RUN   TestSubtestNames/<IP_ADDRESS>_to_<IP_ADDRESS>:0\n"}
{"Time":"2018-02-19T10:14:40.902421482+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames","Output":"--- PASS: TestSubtestNames (0.00s)\n"}
{"Time":"2018-02-19T10:14:40.902433995+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames/words_are_ok","Output":"    --- PASS: TestSubtestNames/words_are_ok (0.00s)\n"}
{"Time":"2018-02-19T10:14:40.902444064+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames/words_are_ok","Output":"    \tmain_test.go:7: they get _\n"}
{"Time":"2018-02-19T10:14:40.939809762+01:00","Action":"pass","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames/words_are_ok","Elapsed":0}
{"Time":"2018-02-19T10:14:40.939849539+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames/[::1]_is_not_ok","Output":"    --- PASS: TestSubtestNames/[::1]_is_not_ok (0.00s)\n"}
{"Time":"2018-02-19T10:14:40.939859759+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames/[::1]_is_not_ok","Output":"    \tmain_test.go:11: ...yeah\n"}
{"Time":"2018-02-19T10:14:40.939872701+01:00","Action":"pass","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames/[::1]_is_not_ok","Elapsed":0}
{"Time":"2018-02-19T10:14:40.939879283+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames/<IP_ADDRESS>_to_<IP_ADDRESS>:0","Output":"    --- PASS: TestSubtestNames/<IP_ADDRESS>_to_<IP_ADDRESS>:0 (0.00s)\n"}
{"Time":"2018-02-19T10:14:40.96860519+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames/<IP_ADDRESS>_to_<IP_ADDRESS>:0","Output":"    \tmain_test.go:15: seems the : is the problem.\n"}
{"Time":"2018-02-19T10:14:40.968645737+01:00","Action":"pass","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames/<IP_ADDRESS>_to_<IP_ADDRESS>:0","Elapsed":0}
{"Time":"2018-02-19T10:14:40.968662449+01:00","Action":"pass","Package":"github.com/antifuchs/simple_tests/test2json","Test":"TestSubtestNames","Elapsed":0}
{"Time":"2018-02-19T10:14:40.968672499+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Output":"PASS\n"}
{"Time":"2018-02-19T10:14:40.968821377+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Output":"ok  \tgithub.com/antifuchs/simple_tests/test2json\t0.077s\n"}
{"Time":"2018-02-19T10:14:40.972550837+01:00","Action":"pass","Package":"github.com/antifuchs/simple_tests/test2json","Elapsed":0.081}

And here are the bits that are concerning:
{"Time":"2018-02-19T10:14:40.901580108+01:00","Action":"run   testsubtestnames/[","Package":"github.com/antifuchs/simple_tests/test2json","Test":":1]_is_not_ok"}
{"Time":"2018-02-19T10:14:40.902368883+01:00","Action":"run   testsubtestnames/<IP_ADDRESS>_to_<IP_ADDRESS>","Package":"github.com/antifuchs/simple_tests/test2json","Test":"0"}
{"Time":"2018-02-19T10:14:40.90239884+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":"0","Output":"=== RUN   TestSubtestNames/<IP_ADDRESS>_to_<IP_ADDRESS>:0\n"}
{"Time":"2018-02-19T10:14:40.901598665+01:00","Action":"output","Package":"github.com/antifuchs/simple_tests/test2json","Test":":1]_is_not_ok","Output":"=== RUN   TestSubtestNames/[::1]_is_not_ok\n"}

Note the weird "Action" name, and the bad "Test" entry
It looks like the action name gets extracted greedily, and everything in the test name up to the first : gets dragged in. Other stuff like "pass" makes it through ok, but this seems like a bug.

@bradfitz any chance to backport it to Go 1.10.x?

@zolotov, it's not clear it meets the bar for our backport policy, but it's also small and trivial, with no great user workaround, so ... maybe? @andybons, @ianlancetaylor?

I'm on the fence. It doesn't appear to be a regression (correct me if I'm wrong) but also doesn't have a user workaround and is fairly small as Brad said.  Will leave to @ianlancetaylor to make final decision.

Backporting is OK with me.

@gopherbot please backport

Closing this in favor of #25027 as the issue is fixed in master.


add E.R.A.K

Added E.R.A.K program
A program for maintaining your own encyclopedia of relative and absolute knowledge

I hope it’s okay that E.R.A.K is hosted on codeberg.org, ?
Sorry for my English


UI - blocks in HLIL graph overflow

Binary Ninja Version: 2.1.2263 Personal, 4d2bf25a
Platform: Fedora 32 (Workstation Edition)
As in title, HLIL massively overflows:

Sample:
Load at address 0x60484, architecture: aarch64, platform linux-aarch64.
fun.zip

This looks to be resolved though it's possible I"m not loading the file correctly so feel free to re-open if that's not the case and provide more explicit information. Here's my open-with options I'm using:


[SPARK-21897][PYTHON][R] Add unionByName API to DataFrame in Python and R

What changes were proposed in this pull request?
This PR proposes to add a wrapper for unionByName API to R and Python as well.
Python
df1 = spark.createDataFrame([[1, 2, 3]], ["col0", "col1", "col2"])
df2 = spark.createDataFrame([[4, 5, 6]], ["col1", "col2", "col0"])
df1.unionByName(df2).show()

+----+----+----+
|col0|col1|col3|
+----+----+----+
|   1|   2|   3|
|   6|   4|   5|
+----+----+----+

R
df1 <- select(createDataFrame(mtcars), "carb", "am", "gear")
df2 <- select(createDataFrame(mtcars), "am", "gear", "carb")
head(union(limit(df1, 2), limit(df2, 2)))

  carb am gear
1    4  1    4
2    4  1    4
3    4  1    4
4    4  1    4

How was this patch tested?
Doctests for Python and unit test added in test_sparkSQL.R for R.

Test build #81335 has started for PR 19105 at commit 058feeb.

cc @felixcheung, could you take a look please?

Test build #81335 has finished for PR 19105 at commit 058feeb.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/81335/
Test PASSed.

Python side change LGTM

do you mean for your example in the PR description something different?
it says
head(union(limit(df1, 2), limit(df2, 2)))

Oh, yea. I made a mistake during copying and pasting the example in the description.

Test build #81341 has started for PR 19105 at commit 7ce6713.

Test build #81341 has finished for PR 19105 at commit 7ce6713.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/81341/
Test PASSed.

Thank you @viirya and @felixcheung.

Merged to master.

I am hitting a network issue. Will update JIRA tomorrow.


update nav & footer: add Developers, Resources (resources.cockroachlabs.com)

Hi team! (cc @jseldess )
A few minor updates to the header nav and footer:
Header Nav:
Learn

Docs
University
Developers (https://www.cockroachlabs.com/developers/) [this is new]

Resources (https://resources.cockroachlabs.com) [this is new]

Guides (https://resources.cockroachlabs.com/guides) [this is new]
Webinars (https://www.cockroachlabs.com/community/tech-talks/)
Videos (https://resources.cockroachlabs.com/videos) [this is new]
Partners
Forum

Footer:
Learn

Docs
University
Developers (https://www.cockroachlabs.com/developers/) [this is new]

Resources

Guides (https://resources.cockroachlabs.com/guides) [this is new]
Webinars (https://www.cockroachlabs.com/community/tech-talks/)
Videos (https://resources.cockroachlabs.com/videos) [this is new]
Partners
Architecture Overview
FAQ
Security

Hello, may I work on this?

@jess-edwards, @lnhsingh, I think the Header Nav has to be worked on by Marketing. I can work on the Footer.

@jess-edwards, we currently do not have "Partners" listed on the Footer. Would you like that to be added? If so, could you provide the link please? Thanks!

@jess-edwards, @lnhsingh, changes to the Header Nav need to be made from the Marketing repo. I can work on the Footer.

Sorry, this is my bad. It's actually in the docs repo after all.


Movie Player not supported in Windows container

I was running a UE5 package using the ghcr.io/epicgames/unreal-engine:runtime-windows image when I encountered this error during the Mounting plugin phase
LogPluginManager: Mounting plugin WindowsMoviePlayer
PixWinPlugin: PIX capture plugin failed to initialize! Check that the process is launched from PIX.
LogLuminAPIImpl: Warning: MLSDK not found.  This likely means the MLSDK environment variable is not set.
LogWmfMedia: Failed to initialize Windows Media Foundation, Error -2147467263

...

=== Critical error: ===
Assertion failed: (((HRESULT)(Hr)) >= 0) [File:<redacted>/unreal/UnrealEngine/Engine/Plugins/Runtime/WindowsMoviePlayer/Source/WindowsMoviePlayer/Private/WindowsMoviePlayer.cpp

I eventually solved it (just the WMF part) by installing Server-Media-Foundation in the Container
docker run --name tmp-fix -it -v c:\Windows\WinSxS:c:\winsxs ghcr.io/epicgames/unreal-engine:runtime-windows powershell
Install-WindowsFeature -Name Server-Media-Foundation -Source c:\winsxs
exit
docker commit tmp-fix ghcr.io/epicgames/unreal-engine:runtime-windows

I looked through this repo but I'm not too sure where to start to fix this issue. Hoping for some guidance please!

I've also encountered this same error while trying to run automation unit tests using UE4Editor.exe with Unreal version 4.26.1

Hi,
Hi,
seems like the fix doesn't work anymore. I get the following error:
Install-WindowsFeature : The request to add or remove features on the
specified server failed.
Installation of one or more roles, role services, or features failed.
The source files could not be found.

@yavuzsonmez you need the powershell at the end

@yavuzsonmez try this
Create a "server" container which installs Server-Media-Foundation
docker run -it --name server mcr.microsoft.com/windows/server:ltsc2022 powershell -Command Install-WindowsFeature -Name Server-Media-Foundation

Download them to your local machine
docker cp server:C:\Windows\WinSxS C:\Users\Administrator\Downloads\WinSxS

Then mount that folder instead for the fix
docker run --name tmp-fix -it -v C:\Users\Administrator\Downloads\WinSxS:c:\winsxs ghcr.io/epicgames/unreal-engine:runtime-windows powershell
Install-WindowsFeature -Name Server-Media-Foundation -Source c:\winsxs
exit
docker commit tmp-fix ghcr.io/epicgames/unreal-engine:runtime-windows


Camera permission request behavior changes for QR + PIN Auth, Fixes AB#3032520

There is a new CELA requirement to change the behavior of the camera permission request for QR + PIN Auth.
The current behavior is that once we get the camera permission for the app we never ask again.
The change is to ask every time we need to use the camera.
In addition to this change we move some functionality to the new class CameraPermissionRequest and did some update on the name of the functions.
AB#3032520

Didn't the Android OS have a way for the user to configure when they provide permission by saying This time only, Always, and Never?
The work you are doing here, does that take away from user being able to choose Always?

Didn't the Android OS have a way for the user to configure when they provide permission by saying This time only, Always, and Never?
The work you are doing here, does that take away from user being able to choose Always?

1 Yes, the OS provide some functionality like this at app level. so, the first time the app needs to access the camera resource it will ask for permissions, then the user can decide if it grant, while using the app , just this time or deny the request.
2 Yes, this change here removes this behavior. why? because this type of QR + PIN flows are for SDM (now). So, the first user can grant the camera permission Always , so when another user come it will not be asked. And CELA requested to all users been prompted.
Note:
iOS has the same behavior.
In the future we might add a flag controlled by the admin to remove this behavior and respect the first user choice, but nothing has been decided yet.


Improve Transformers

[ ] Add transformers to convert objects to a Discord payload.
[ ] Don't use magic numbers for transformers (eg. bitfield in DiscordenoRole)
[ ] Add deconstructors (utility) for the bitfields in custom objects
[ ] Improve transformers file structure

Unless this comes with explanations of how to achieve the same user experience and such without using things like bitfields and such then this issue is just another broad issue. These are great idea but they need more details and explanations


Feature/njord

I have done a lot of house-keeping on this branch, as well as implement a (partially) new control stack that is a bit easier to manage than the previous one. I thus suggest that we review this branch, and move suggestions/improvements to separate issues. Then we merge without necessarily implementing said changes.
This allows us to create feature-specific branches for each issue, and parallelize our work a bit more.
For example: The LQR controller should get an RQT-reconfigure feature, to allow on-the-fly tuning. This can be turned into an issue, and become its own branch.
Doing this also allows us to very selectively move through the other existing branches and only pull the code that is required for njord into main.
@KristianSem @ronjakr @theoam02 Thoughts?

A short summary of what has been done:

DP and LOS has been superseded by LQR control and guidance. Q and R matrices for LQR have not been tuned.
LQR uses a simplified mass-damper system.
A guidance scheme that supports DP and waypoint following has been added
A python interface for the controller and guidance scheme has been made
A simple control simulator has been written in order to test controllers without having to run gazebo (note, takes in an input force, allocation is not considered)
Allocator takes in a single wrench in order to avoid timing differences in force and torque
Code to interface with the BMS has been put under sensors/, but needs to be built from source (Ask @KristianSem) For Njord, it is important that we rosbag all the battery telemetry
PCA stuff as a fallback and for temporary replacing the Teensy


Vasil HF

Bunch of other changes to sync with openapi spec.
Preprod and Preview environments

Hi, I have tried to integrate your new version supporting the new environnement Preprod/Preview but I have discovered that cardano-wallet is using your api with the following constraint : blockfrost-api>=0.4 && <0.5, what is the status regarding that ? is there a branch on cardano-wallet where the upgdrae is done ? Thx

Hi! I'm not really involved in cardano-wallet + blockfrost-haskell integration, only aware of it. I see the linked PR - did you encounter any issues? If not I would proceed with the release today.

@nhenin You should actually be able to utilize allow-newer in your cabal.project to ignore that constraint on the cardano-wallet side. It should still compile (using commit ref: 18a931648550246695c790578d4a55ee2f10463e, synced with node 1.35.3 and plutus-apps 721aa31863667d1a08d5d966420d7b093a348847). I had successfully managed to compile this branch of blockfrost-haskell with those versions.
allow-newer:
  cardano-wallet:blockfrost-api,
  cardano-wallet:blockfrost-client,
  cardano-wallet:blockfrost-client-core

Also just going to pop in here to say thanks again @sorki for the quick Double -> Rational fix :)

I've force pushed the branch to have version bump commit on top (I'm sorry if I caused a breakage) and will release as 0.6 after CI finishes.
Note that some calls might fail on mainnet until it hardforks - most notably protocol parameters as mainnet API won't  return cost models just yet.


Using interactivity layer

Regarding to issue https://github.com/mapbox/mbutil/issues/7
Can someone please explain how do i use the grid.json files i got after exporting on Wax?
I'm trying to create a Wax modest map with static tiles I made using mbutil. Seeing that the code exports also the json info i'm wandring how can I use it to add an interaction layer that i created using tilemill.

    <link href='theme/controls.css' rel='stylesheet' type='text/css' />

mb-util exports a metadata.json file - use the formatter key from that in your tilejson definition.

Thanks it works :)


A soma in plotly 3D view

Codecov Report

Merging #707 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #707   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          44     44
  Lines        2312   2321    +9
=====================================
+ Hits         2312   2321    +9


ci: split nightly pipeline based on rhel version

This pull request includes:
Just some experiments before implementing nightly pipeline for RHEL-9

[ ] adequate testing for the new functionality or fixed issue
[ ] adequate documentation informing people about the change such as

[ ] create a file in news/unreleased directory if this change should be mentioned in the release news
[ ] submit a PR for the guides repository if this PR changed any behavior described there: https://www.osbuild.org/guides/

When I started working on this I expected to always have one set of RHEL-9 nightly runner and RHEL-8 nightly runners... Currently we have both 8.6 and 8.5 nightly and this won't work as expected anymore. Should I just reimplement it to be able to work even with two different RHEL-8/9.$MINOR nightly versions or can we just drop 8.5 nightly testing already? I guess there will always be some overlap, so maybe make it able to work with more nightly versions would be better?... @atodorov @ondrejbudai what do you think?

I think that the checks should be more robust instead of removing test runners. That should always improve the suite, right. However I also want to keep the code short and easy to maintain. So whether or not new changes will be appropriate we can say after we see them.  Do you have any idea in mind ?

I've rebased the PR since nightly testing on RHEL-8.5 was removed. Otherwise the idea stays the same, split the pipelines based on value of $RHEL_VERSION which is the same as $VERSION_ID so maybe I can rename it to reduce a avoid a potential confusion. I also ran the scheduled pipelines with rpms build in this PR again:
https://gitlab.com/osbuild/ci/osbuild-composer/-/pipelines/400267700
https://gitlab.com/osbuild/ci/osbuild-composer/-/pipelines/400278269

It should be good like this. Splits the RHEL-8 and RHEL-9 testing and adding a new nightly pipeline is as easy as adding another line of rules, a runner and a pipeline schedule.

I've encountered some problems with ostree.sh test failing on RHEL-8.4-ga and after further investigation I've discovered that we were basically skipping the test on centos-8 and fedora-33. Reason being that after sourcing the tools/define-compose-url.sh it has exit 0 if not running on RHEL...
Some examples of the skipped runs:
https://gitlab.com/osbuild/ci/osbuild-composer/-/jobs/1742811417
https://gitlab.com/osbuild/ci/osbuild-composer/-/jobs/1742811409
I think that by changing the exit to return it should be fixed, testing it now.

This needs to be rebased once https://github.com/osbuild/osbuild-composer/pull/1949 gets merged because rhel-9-beta runners are no longer working and then it should be ready.

I had an unbound variable in ostree.sh so I had to fix that and so I also fixed the the comments and found out I forgot to remove one more Beta from a URL. I hope it's going to be right this time.


Fix error due to coal renaming

One of the remaining inside coal had an impact on this package:
Vec3f-->Vec3s
This PR fix it.

Oh, ok, non, that's just because I still have COAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL. Don't you ? is it fine for pinocchio ? 😅

Oh, ok, no, that's just because I still have COAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL. Don't you ? is it fine for pinocchio ? 😅

The coal package do not I believe: https://github.com/conda-forge/coal-feedstock/blob/main/recipe/build_cppcoal.sh
And I believe it works for pinocchio @jorisv could you confirm ?

Hello @ymontmarin,
If you use the conda-forge coal package you don't have the compatibility layer (no hpp-fcl includes, no COAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL and no hpp-fclConfig.cmake).
If you use the conda-forge hpp-fcl package you have coal + the compatibility layer.

Ok, thanks. Then I think we can merge this, because the fix is good, but beware on distributing hpp-pinocchio on conda: this won't work with coal for now :)


All tags disappearing when there are multiple Multiselect

Version

Vue version: 3

Description
I have multiple multiselect that is stored as array if I remove 1 multi select the tags on the other selects gets removed also. Not quite familiar with the jsfiddle thing but I will send a demo link. Please consider this request.
<script>
const productVariantOpt = ref([{ value: 'small', label: 'Small' }])
const dynamicField = reactive<[{ attribute: string; value: string[] }]>([
  {
    attribute: '',
    value: [''],
  },
])
const removeAttribute = (e: number) => {
  dynamicField.splice(e, 1)
}
const addAttribute = () => {
    dynamicField.push({ attribute: '', value: [''] })
}
</script>

<template v-for="(field, index) in dynamicField" :key="index">
  <Multiselect
    v-model="dynamicField[index].value"
    mode="tags"
    :close-on-select="false"
    :searchable="true"
    :create-tag="true"
    :options="productVariantOpt"
  />
  <button @click="addAttribute">Add</button>
  <button @click="removeAttribute(index)">button</button>
</template>

Demo
https://drive.google.com/file/d/1Tbl2O9ZtginJ8-WFg8uO1BRNXo-gkKs8/view?usp=sharing

Couldn't debug. Feel free to reopen with a reproducible jsfiddle example. To do that:

take this bolierplate: https://jsfiddle.net/g56vfpe4/
recreate your issue and make sure it produces the bug (by hitting Run after modifying the code)
if you are ready hit Save and send the new url here.


Fatal Crash - Debugging Stops

I have spent the last few days porting our existing ASP .NET Core (.NET) REST service to ASP .NET Core (Core). I.e. I shared all of our .cs files in to the new xproj format and compiled all of our DLLs for the new platform. Most of the lower level DLLs (model assemblies) were compiled as portable .NET Standard 1.4 DLLs. I then NuGet packaged these DLLs up, and referenced it in my .NET Core solution.
My ASP .NET Core (Core) solution consists of 4 .NET Core class libraries and 1 ASP .NET Core project. Everything compiles fine. All of the code in the main ASP project is shared by two projects: the .NET Framework REST Service, and the .NET Core REST Service.
I was really excited when I ran the service for the first time. I was even more excited when I saw the yellow arrow appear in my controller's method. That means that the server successfully started up, and my web browser successfully sent a request to my REST service which is compiled on .NET Core.
However, when I hit F10 on the first main line of code which is a simple property setter, the whole server crashes, and I lose debugging. No explanation is given.
This is the line:
    DataAccessLayer.ConnectionString = @"[CONNECTION STRING]";

    public static string ConnectionString
    {
        get
        {
            return DataWorker.DatabaseAdapter.ConnectionString;
        }
        set
        {
            DataWorker.DatabaseAdapter.ConnectionString = value;
        }
    }

The only piece of information I have is from the output window:
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Users\ChristianFindlay.nuget\packages\XivicModelAssembliesStandard\1.0.0\lib\netstandard1.4\Adapt.Model.DataSchema.Portable.dll'. Symbols loaded.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Users\ChristianFindlay.nuget\packages\System.Diagnostics.Contracts\4.0.1-rc2-24027\lib\netstandard1.0\System.Diagnostics.Contracts.dll'. Cannot find or open the PDB file.
The program '[14720] dotnet.exe' has exited with code -2146233022 (0x80131542).
The program '[7028] iisexpress.exe' has exited with code 0 (0x0).
What does this mean? Why does it need the pdb file?

This issue is being closed because it has not been updated in 3 months.
We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.


File Locksmith is not available in the right-click or shift-right-click context menu From new version.

Microsoft PowerToys version
0.83.0
Installation method
PowerToys auto-update, WinGet
Running as admin
Yes
Area(s) with issue?
File Locksmith
Steps to reproduce

✔ Expected Behavior
Exist this menu context.
❌ Actual Behavior
Not has this menu context.
Other Software
No response

在windows11上。

On windows11.

same here too

Try this:
https://github.com/microsoft/PowerToys/issues/7398#issuecomment-881871200
If you can't reproduce this, try reinstalling

Full uninstall with 3rd party program, deleting all appdata files and reinstalling PowerToys fixed it, thank you

Full uninstall with 3rd party program, deleting all appdata files and reinstalling PowerToys fixed it, thank you

Hi! Which program did you use?
I tried to disinstall it and I used REVO Uninstaller. Nothing happened, even trying with "Everything" software and deleting all searching for "Powertoys". I've also deleted all the reg key files on Windows registry with "Powertoys" name but nothing worked for me. Actually I don't know what to do anymore!


[SP-4733] Backport of BACKLOG-25980 - Adding custom step analyzer for…

… SingleThreader (8.1 Suite)

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/trans/steps/singlethreader/SingleThreaderMeta.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes (click to expand)
org.pentaho.di.trans.step.StepMeta

Branch Change: -0.7% :small_red_triangle_down:
Complexity Change: -0.6% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Branch Change: -1.8% :small_red_triangle_down:
Complexity Change: -1.1% :small_red_triangle_down:
Instruction Change: -0.4% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -2.1% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.7% :small_red_triangle_down:

org.pentaho.di.trans.steps.ldapoutput.LDAPOutputMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.memgroupby.MemoryGroupByMeta

Branch Change: -1.1% :small_red_triangle_down:
Complexity Change: -1.3% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:
Line Change: -0.4% :small_red_triangle_down:

org.pentaho.di.trans.steps.pgbulkloader.PGBulkLoaderMeta

Branch Change: -1.8% :small_red_triangle_down:
Complexity Change: -0.9% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.rowgenerator.RowGeneratorMeta

Branch Change: -2.6% :small_red_triangle_down:
Complexity Change: -1.5% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.sort.SortRowsMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.webservices.WebServiceMeta

Branch Change: -1.7% :small_red_triangle_down:
Complexity Change: -1.2% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.gpload.GPLoadMeta

Branch Change: -0.9% :small_red_triangle_down:
Complexity Change: -0.8% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:


Write doesn't honor line breaks

The documentation states:

Write prints text from the current position. When the right margin is reached (or the \n character is met) a line break occurs and text continues from the left margin.

Apparently, either I am making some errors, or the function Write() doesn't automatically create line breaks
This is the code
func main() {
	pdf := gofpdf.New("P", "pt", "A4", "")
	pdf.SetMargins(100, 100, 100)
	pdf.SetFont("Courier", "", 12)
	pdf.SetAutoPageBreak(true, 0)
	pdf.AddPage()
	for i := 0; i < 100; i++ {
		pdf.Write(0, strconv.Itoa(i))
	}
	err := pdf.OutputFileAndClose("hello.pdf")
	if err != nil {
		fmt.Println(err)
	}
}

And this is the result

The write() method (which is called by Write()) will break on the most recently encountered space character. This behavior (word wrapping) is not correctly described in the documentation. I think the right behavior on reaching the right margin would be to break on the most recent whitespace on the current line, and if there is none, to break on the most recent character. That would preserve the expected word wrapping behavior and also handle the edge case that you demonstrate.
I'll tag this as a bug. Thanks for reporting.

Thanks for the reply
However I edited my for loop, adding a Write() to insert the space character, and the result remains the same. Maybe I'm doing something wrong (maybe the first argument zero is wrong?).
for i := 0; i < 100; i++ {
	pdf.Write(0, strconv.Itoa(i))
	pdf.Write(0, " ")
}

Sorry but I can't find any example about how to use the Write function with something like automatic line breaks. Maybe it just can't be done, maybe I'm doing something wrong

On closer inspection, your original code is working as documented. But you specified a line height of zero, so the subsequent lines just overwrote themselves.
Try this:
package main

import (
        "fmt"
        "strconv"
        "github.com/jung-kurt/gofpdf"
)

func main() {
        const lineHt = 14
        pdf := gofpdf.New("P", "pt", "A4", "")
        pdf.SetMargins(100, 100, 100)
        pdf.SetFont("Courier", "", pdf.UnitToPointConvert(lineHt))
        pdf.SetAutoPageBreak(true, 0)
        pdf.AddPage()
        for i := 0; i < 100; i++ {
                pdf.Write(lineHt, strconv.Itoa(i))
        }
        err := pdf.OutputFileAndClose("hello.pdf")
        if err != nil {
                fmt.Println(err)
        }
}

Yes it works, thank you so much!


Initial structure React

I'm adding the initial React structure. As requested in issue #50
I created this initial pull request so others can collaborate with it without reworking.

Thanks! Not sure of best practices, if it's OK to have a create react app "inside" of another. Would be nice if it was built as part of the mirror client itself and just served at /client. Just some thoughts :)


Add include_file_descriptor_set to prost-build

This pull request adds support for writing an encoded version of the appropriate FileDescriptorSet to a file named file_descriptor_set.bin in the output directory. This can be used with the include_bytes macro by consuming applications or libraries.
The rationale for this pull request is to support the gRPC Server Reflection Protocol, which operates in terms of FileDescriptorProto, in Tonic. FileDescriptorProto instances are contained inside a
FileDescriptorSet.
This supersedes #311 following discussion on that issue.

I've force pushed here to rebase this on top of the current master branch.

The new CI failures seem unrelated to this change, however.

It seems like my change in 24d7877 would fix the build errors which presumably will hit any PR to this repo right now, but GHA is still using the version of the workflow from the main repo rather than the fork.

It looks like this is passing. Is this PR ready to be merged? It's on the must-have list for the next release, which I know folks are keen to start using (including myself).

Thanks for the work here, this has been very useful as a branch -- is there anything I can do to help get this merged/released?

@jen20: I’ve opened #382 to fix the build error. That PR passes by
itself on CI, and yours passes locally for me (on both 1.39.0 and
stable) when I rebase it on top of #382. Perhaps it’s worth merging my
branch into yours to verify that it suffices to fix the CI issues?

I've rebased this on top of the latest master as suggested. Unfortunately the build seems to have hit the GitHub Deprecation of set-path and friends   while installing Ninja, and I don't have time to look at that yet.

This is rebased on top of #397, so the build should now succeed.

Rebased again on top of 278e8ab.

@jen20 I've merged a slightly modified version of this as part of #409.  Thanks for your patience, and doubly thanks for the tonic reflection work.


Using middlewares with typesafe context

I want to have a auth-middleware for a specific route, from the docs they are recommending to use middleware property inside  createRoute function. When I do that the type is not being inferred to the handler if I use the approach from the hono-open-api-starter repo
Docs recommend
// chapter.routes.ts
export const createChapter = createRoute({
  method: 'post',
  path: '/course/{course_id}/chapter',
  tags: ['Chapter'],
  middleware: [
    createMiddleware<{
      Variables: { foo: string };
    }>((c, next) => {
      c.set('foo', 'abc');
      return next();
    }),
  ] as const,
  request: {
    params: createChapterRequestSchema.params,
    body: createChapterRequestSchema.body,
  },
  responses: {
    [HttpStatusCodes.UNPROCESSABLE_ENTITY]: jsonContent(
      createErrorSchema(createChapterRequestSchema.params).or(createErrorSchema(createChapterRequestSchema.body)),
      'Validation error',
    ),
    [HttpStatusCodes.CREATED]: jsonContent(
      z.object({
        success: z.boolean(),
        message: z.string(),
        chapter_id: z.number(),
      }),
      'Chapter created successfully',
    ),
  },
});

export type CreateChapterRoute = typeof createChapter;

I am not getting the typesafe inside the handler and also an error like this

I have implemented the same from the docs.
Is there a way to have typesafe middlewares inside the hono-open-api-starter for auth-routes

You can create another helper type for this:
In lib/types.ts - update AppRouteHandler to allow passing in an updated Env type - add the AppMiddlewareVariables type
import type { OpenAPIHono, RouteConfig, RouteHandler } from "@hono/zod-openapi";
import type { Env } from "hono";
import type { PinoLogger } from "hono-pino";

export interface AppBindings {
  Variables: {
    logger: PinoLogger;
  };
};

export type AppOpenAPI = OpenAPIHono<AppBindings>;

// Update this
export type AppRouteHandler<R extends RouteConfig, A extends Env = AppBindings> = RouteHandler<R, A>;

// Add this
export type AppMiddlewareVariables<T extends object> = AppBindings & {
  Variables: T;
};

You can then use it like this in tasks.handlers.ts
export const list: AppRouteHandler<ListRoute, AppMiddlewareVariables<{
  foo: string;
}>> = async (c) => {
  const tasks = await db.query.tasks.findMany();
  return c.json(tasks);
};

But how to use middleware with zod-openapi. It's quite different than using app.use() in normal hono

The code I provided will fix the type error from your original comment.

@w3cj Thanks the code is very helpful and also works perfect.
In case anyone want to know more on how to use middlewares with hono-zod-openapi

https://github.com/honojs/middleware/issues/637#issuecomment-2461822515
https://github.com/oberbeck/honojs-middleware/blob/3ffb66707201f657f9aa37e726ea2ecc2f034acf/packages/zod-openapi/test/index.test-d.ts#L268-L304


wizard documentation update needed for select by name functionality

See new functionality introduced by https://github.com/ExactTarget/fuelux/pull/1141

This is done.


ParagraphCell support in easytable 1.0?

Dear Sir,
Could you add back ParagraphCell support in in easytable 1.0 for PDFBox 3.X?
Thanks,
Bill

Unfortunately that's not possible since it was wrapping another library that is not able to deal with PDFBox 3.x. Since that library is not maintained anymore I had to remove it.
Best,
Stefan


Case-sensitive module naming issue

Hi sir,
I have create a modul name "Product" and run perfectly when i opening test.dev/Product in my browser. But return error "NotFoundHttpException in RouteCollection.php line 179:"  when i open test.dev/product (in lowercase). There anyway to ignored this case-sensitive? Thank you

Would you please post the output of php artisan route:list and also the content of your app/Modules/Product/routes/web.php routes file?

closed due to inactivity


Why is Azure App Configuration not listed?

[Enter feedback here]

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

ID: 726adac9-1848-01a6-9586-842c81f820f7
Version Independent ID: 249db438-8c95-8e69-f69e-8e48fcd0b359
Content: Azure Services that support managed identities - Azure AD
Content Source: articles/active-directory/managed-identities-azure-resources/services-support-managed-identities.md
Service: active-directory
Sub-service: msi
GitHub Login: @MarkusVi
Microsoft Alias: markvi

#reassign:barclayn

@kwaazaar  Thank you for your feedback. We are going through the process of updating that article. We hope to have an updated version within the next couple of months.

#please-close


Merge vs15.5 -> master

@AndyGerlicher @cdmihai @jeffkl

@dotnet-bot test Windows_NT Build for CoreCLR please

This passed for me locally and CI is down for a few days. Merging anyway.


Tutorial 4: Synaptic neuron not matching expected results

Discussed in https://github.com/jeshraghian/snntorch/discussions/319

Originally posted by prntechnologies April 25, 2024
I've been going through all of the tutorials and I'm having an issue with Tutorial #4.  It seems that I'm not getting the same results using the Synaptic neural model as what is described in the tutorial?
Anyone else having issues following along, or is it just me?

I also confirmed that there was a problem. The output of Synaptic Conductance-based Neuron Model With Input Spikes is strange. If you modify the hyperparameters alpha and beta defined in Markdown 1.2, you can get the spike values.

Hi,
I am also having the same issue with Tutorial 4. When I manually implement the synaptic LIF model as described in the tutorial it works as expected. But when I am trying to reproduce the same simulation with snn.Synaptic, the membrane voltage for some reason goes to infinity. I also noticed that the input spikes are not converted into synaptic current. Are there any updated regarding this issue?
Thank you!
Here are the two versions of my code and the simulation results:
def LIF_second_order(voltage, i_synaptic, X, w, alpha, beta, threshold=1):
  spike = (voltage > threshold)
  i_synaptic = alpha * i_synaptic + X * w
  voltage = beta * voltage + i_synaptic - spike*threshold
  return spike, i_synaptic, voltage

# Simulation parameters
num_steps = 200
alpha = 0.9
beta = 0.8
w = 0.2

# Create input and monitor lists
X = torch.zeros(num_steps)
X[::10] = 1
v_monitor = []
spike_monitor = []
isyn_monitor = []

# Run simulation
voltage = torch.zeros(1) # Initialize voltage
isynaptic = torch.zeros(1) # Initialize synaptic current
for step in range(num_steps):
    spike, isynaptic, voltage = LIF_second_order(voltage, isynaptic, X[step], w, alpha, beta)
    spike_monitor.append(spike)
    v_monitor.append(voltage)
    isyn_monitor.append(isynaptic)

# Plot results
fig, axes = plt.subplots(3, 1, sharex=True)
ax0, ax1, ax2 = axes

ax0.plot(torch.nonzero(X), torch.ones_like(torch.nonzero(X)), 'k|')
ax0.set_yticks([])
ax0.set_ylabel('Input Spikes')

ax1.plot(isyn_monitor)
ax1.set_ylabel('Synaptic Current')

ax2.plot(v_monitor)
ax2.set_ylabel('Membrane Voltage')
ax2.set_xlabel('Time')
plt.plot()

# Simulation parameters
num_steps = 200
alpha = 0.9
beta = 0.8
w = 0.2

# Create input and monitor lists
X = torch.zeros(num_steps)
X[::10] = w
v_monitor = []
spike_monitor = []
isyn_monitor = []

# Create synaptic LIF neuron
synaptic_lif = snn.Synaptic(alpha=alpha, beta=beta)

# Run simulation
isynaptic, voltage = synaptic_lif.init_synaptic()
for step in range(num_steps):
    spike, isynaptic, voltage = synaptic_lif(X[step], isynaptic, voltage)
    spike_monitor.append(spike)
    v_monitor.append(voltage)
    isyn_monitor.append(isynaptic)

# Plot results
fig, axes = plt.subplots(3, 1, sharex=True)
ax0, ax1, ax2 = axes

ax0.plot(torch.nonzero(X), torch.ones_like(torch.nonzero(X)), 'k|')
ax0.set_yticks([])
ax0.set_ylabel('Input Spikes')

ax1.plot(isyn_monitor)
ax1.set_ylabel('Synaptic Current')

ax2.plot(v_monitor)
ax2.set_ylabel('Membrane Voltage')
ax2.set_xlabel('Time')
plt.plot()

I have the same issue while making tutorial 4. The problem is in this call:
spk_out, syn, mem = lif1(spk_in[step],syn,mem).
It has a bug in the first sentence of the forward function of the Synaptic neuron, it overrides the syn value with the mem one:
if not syn == None:
            self.syn = mem

Nevertheless, I think the correct way to use Synaptic is to instantiate the neuron:
lif1 = snn.Synaptic(alpha=alpha, beta=beta)
Then initialize the neuron:
syn, mem = lif1.init_synaptic()
In fact, nowadays, we have to use syn, mem = lif1.reset_mem()
and while calling the neuron we need to use:
spk_out, syn, mem = lif1(spk_in[step]),
instead of spk_out, syn, mem = lif1(spk_in[step],syn,mem), as it uses syn and mem attributes (self.syn and self.mem)

I have the same issue while making tutorial 4. The problem is in this call: spk_out, syn, mem = lif1(spk_in[step],syn,mem).
It has a bug in the first sentence of the forward function of the Synaptic neuron, it overrides the syn value with the mem one:
if not syn == None:
            self.syn = mem

Nevertheless, I think the correct way to use Synaptic is to instantiate the neuron: lif1 = snn.Synaptic(alpha=alpha, beta=beta) Then initialize the neuron: syn, mem = lif1.init_synaptic()  In fact, nowadays, we have to use syn, mem = lif1.reset_mem() and while calling the neuron we need to use: spk_out, syn, mem = lif1(spk_in[step]), instead of spk_out, syn, mem = lif1(spk_in[step],syn,mem), as it uses syn and mem attributes (self.syn and self.mem)

I think just change to " if not syn == None:     self.syn = syn" this will be fine !! By the way, thanks for sharing!


[feature request] Catalog scanner

Hi, and thanks to the team for this great job, so far it has been my favorite companion app for ACNH!
I was wondering if you plan to integrate https://github.com/EhsanKia/CatalogScanner (like ACNH.guide does it for example).
It would be useful to add our collection list to the app (with also a button to add all of them directly, instead of checking each).

I actually tried to do a version of this. Very cool idea and it will be considered.

Yeah! This is definitely something we've been thinking about and that @ericlewis started to build. Would love to have that built in!


Pre-fill bug report fields with Scope, Docker version etc.

Clicking the bug report button in Scope should cause the bug report to be pre-filled with standard browser, Docker, Scope version information and any other useful data that's retrievable when the button is clicked.
<Suggested title format>
<Please describe the problem here>
...
Scope version + info
Docker version + info
Browser version + info

I also thought about this but there's a more important question: are people actually using the button?

Nope, we've only had something like two reports from it.
On Sunday, 21 February 2016, Alfonso Acosta<EMAIL_ADDRESS>wrote:

I also thought about this but there's a more important question: are
people actually using the button?
—
Reply to this email directly or view it on GitHub
https://github.com/weaveworks/scope/issues/992#issuecomment-186778597.

It's early days yet.

I've been creating many issues today, which was pretty time-consuming. I would have killed for a button which created an issue and attached:

A screenshot
A gzipped report

Conclusion: I think we should prioritize this, if only for internal use.


use eq and ne operators for integer comparison

Fixes an error message.
Description
This pull requests resolves the following error message appearing in Linux platforms:
./bdsx.sh: 37: [: 1: unexpected operator
By using the correct operator for comparing integers in man test.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the code style of this project.
[x] I have tested my changes and confirmed that they are working

Thank you for your contribution.


🐛 BUG: DOMException Imported HMAC key length (0)

Which Cloudflare product(s) does this pertain to?
Pages, Workers Runtime, Miniflare
What version(s) of the tool(s) are you using?
3.17.0 [Wrangler]
What version of Node are you using?
21.2.0
What operating system are you using?
Mac
Describe the Bug
When running a Remix app that used to work well, now I'm getting the following error:
✘ [ERROR] DOMException {

    stack: 'Error: Imported HMAC key length (0) must be a non-zero value up to 7 bits less than, and no greater than, the bit length of the raw key data (0).\n' +
      '    at createKey2 (file:///Users/directory/.wrangler/tmp/dev-9DCAmD/zqcotfammqp.js:4029:34)\n' +
      '    at unsign (file:///Users/directory/.wrangler/tmp/dev-9DCAmD/zqcotfammqp.js:4025:120)\n' +
      '    at decodeCookieValue (file:///Users/directory/.wrangler/tmp/dev-9DCAmD/zqcotfammqp.js:153:33)\n' +
      '    at Object.parse (file:///Users/directory/.wrangler/tmp/dev-9DCAmD/zqcotfammqp.js:240:70)\n' +
      '    at Object.getSession (file:///Users/directory/.wrangler/tmp/dev-9DCAmD/zqcotfammqp.js:3852:61)\n' +
      '    at DashSession.init (file:///Users/directory/.wrangler/tmp/dev-9DCAmD/zqcotfammqp.js:38297:33)\n' +
      '    at getLoadContext (file:///Users/directory/.wrangler/tmp/dev-9DCAmD/zqcotfammqp.js:38326:56)\n' +
      '    at file:///Users/directory/.wrangler/tmp/dev-9DCAmD/zqcotfammqp.js:29085:45\n' +
      '    at handleFetch (file:///Users/directory/.wrangler/tmp/dev-9DCAmD/zqcotfammqp.js:29105:42)\n' +
      '    at async file:///Users/directory/.wrangler/tmp/dev-9DCAmD/zqcotfammqp.js:29109:14',
    code: 0,
    name: 'DataError',
    message: 'Imported HMAC key length (0) must be a non-zero value up to 7 bits less than, and no greater than, the bit length of the raw key data (0).'
  }

[mf:inf] GET / 500 Internal Server Error (5ms)

The same error occurs on Node LTS, and even on wrangler v3.8.0. That's the version I've used previously that worked so I tried to revert but the issue is still there it just has a different error message in the console:
DOMException {
  stack: undefined,
  code: undefined,
  name: undefined,
  message: undefined
[mf:inf] GET / 500 Internal Server Error (8ms)

Not sure what caused the issue, was it the upgrade to the latest version or something else? If it is of any help I'm using Remix v2.0.1 but I'm not sure that is related.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response

UPDATE: Immediately after reporting, I saw that I was accessing http://localhost:8789 when getting the errors, but upon trying http://<IP_ADDRESS>:8789 everything seems to be working.
I still think this is a bug because one would think that localhost should work, right?

I've tried with both localhost and <IP_ADDRESS> and get the same error.

Thanks very much for reporting this! Would you be able to provide a minimal reproduction so that we can investigate?

I just saw this error in production using wrangler 3.53.1
{
    "error": "Imported HMAC key length (0) must be a non-zero value up to 7 bits less than, and no greater than, the bit length of the raw key data (0)."
}

We haven't heard from you in while so I'm going to close this issue for now. @rista404 If you're still running into problems feel free to comment with more details & a reproduction, and we can investigate further.

for future travelers my error was related to env vars not being around and trying to use an empty secret to hash, so check your env vars


hdkeychain: add CloneWithVersion to set custom HD version bytes

GH
#179
https://github.com/btcsuite/btcd/pull/1617

This adds a new method to the ExtendedKey type that allows cloning the extended key with custom HD version bytes. It does not mutate the original extended key on which the method is called.
Added some tests to demonstrate the utility of this method, i.e., conversion between standard and SLIP-0132 extended keys.

What's the status of getting this merged? It's needed to take advantage of the functionality added in https://github.com/btcsuite/btcd/pull/1617.

@mflaxman Thanks for the reminder. Kinda forgot to follow up on this with the other reviewers. Should be quick, since the changes are quite straightforward.

FYI: I open-sourced my hackey code (that doesn't use these pending PRs) if you want to see what a use-case looks like.
https://github.com/mflaxman/human-rng-golang


how to remove console logs from production builds ?

i am trying to use https://github.com/yahoo/strip-loader to remove console logs from prod. build...
i added the below config in webpack.config.js but it is not working..
        {
          test: /\.js$/,
          include: [
            path.resolve(__dirname, 'scripts'),
            path.resolve(__dirname, 'src')
          ],
          loaders: [
            WebpackStrip.loader('console.log'),
            'babel-loader?cacheDirectory',
            'eslint-loader' + (config.dev ? '?emitWarning' : '')
          ]
        },

This is not related to phenomic at all. Please use issue for bug or question directly related to phenomic. You have StackOverflow for generic questions.


HBASE-24615 MutableRangeHistogram#updateSnapshotRangeMetrics doesn't …

…calculate the distribution for last bucket.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 33s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+1 :green_heart:
hbaseanti
0m  0s
Patch does not have any anti-patterns.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ branch-2.3 Compile Tests _

+1 :green_heart:
mvninstall
3m 37s
branch-2.3 passed

+1 :green_heart:
checkstyle
0m 15s
branch-2.3 passed

+1 :green_heart:
spotbugs
0m 32s
branch-2.3 passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
3m  7s
the patch passed

+1 :green_heart:
checkstyle
0m 12s
the patch passed

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
hadoopcheck
16m 43s
Patch does not cause any errors with Hadoop 2.10.0 or 3.1.2 3.2.1.

+1 :green_heart:
spotbugs
0m 40s
the patch passed

_ Other Tests _

+1 :green_heart:
asflicense
0m 15s
The patch does not generate ASF License warnings.

32m 48s

Subsystem
Report/Notes

Docker
Client=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2024/1/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/2024

Optional Tests
dupname asflicense spotbugs hadoopcheck hbaseanti checkstyle

uname
Linux 4e9e65afadce 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.3 / 9af91d4e1f

Max. process+thread count
94 (vs. ulimit of 12500)

modules
C: hbase-hadoop2-compat U: hbase-hadoop2-compat

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2024/1/console

versions
git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 48s
Docker mode activated.

-0 :warning:
yetus
0m  7s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ branch-2.3 Compile Tests _

+1 :green_heart:
mvninstall
5m  6s
branch-2.3 passed

+1 :green_heart:
compile
0m 23s
branch-2.3 passed

+1 :green_heart:
shadedjars
7m  3s
branch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 19s
branch-2.3 passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
4m 22s
the patch passed

+1 :green_heart:
compile
0m 22s
the patch passed

+1 :green_heart:
javac
0m 22s
the patch passed

+1 :green_heart:
shadedjars
6m 57s
patch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 18s
the patch passed

_ Other Tests _

+1 :green_heart:
unit
0m 31s
hbase-hadoop2-compat in the patch passed.

27m 22s

Subsystem
Report/Notes

Docker
Client=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2024/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/2024

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux bce949b16934 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.3 / 9af91d4e1f

Default Java
1.8.0_232

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2024/1/testReport/

Max. process+thread count
332 (vs. ulimit of 12500)

modules
C: hbase-hadoop2-compat U: hbase-hadoop2-compat

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2024/1/console

versions
git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 35s
Docker mode activated.

-0 :warning:
yetus
0m  7s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ branch-2.3 Compile Tests _

+1 :green_heart:
mvninstall
4m 14s
branch-2.3 passed

+1 :green_heart:
compile
0m 20s
branch-2.3 passed

+1 :green_heart:
shadedjars
5m 48s
branch has no errors when building our shaded downstream artifacts.

-0 :warning:
javadoc
0m 21s
hbase-hadoop2-compat in branch-2.3 failed.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
3m 55s
the patch passed

+1 :green_heart:
compile
0m 20s
the patch passed

+1 :green_heart:
javac
0m 20s
the patch passed

+1 :green_heart:
shadedjars
5m 46s
patch has no errors when building our shaded downstream artifacts.

-0 :warning:
javadoc
0m 18s
hbase-hadoop2-compat in the patch failed.

_ Other Tests _

-1 :x:
unit
0m 28s
hbase-hadoop2-compat in the patch failed.

23m  6s

Subsystem
Report/Notes

Docker
Client=19.03.12 Server=19.03.12 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2024/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/2024

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux 3f575e3b6264 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2.3 / 9af91d4e1f

Default Java
2020-01-14

javadoc
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2024/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-hadoop2-compat.txt

javadoc
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2024/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-hadoop2-compat.txt

unit
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2024/1/artifact/yetus-jdk11-hadoop3-check/output/patch-unit-hbase-hadoop2-compat.txt

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2024/1/testReport/

Max. process+thread count
212 (vs. ulimit of 12500)

modules
C: hbase-hadoop2-compat U: hbase-hadoop2-compat

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-2024/1/console

versions
git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.


Parameter exception in configloader.py when no config files supplied

Getting a parameter exception in configloader.py _unicode_path on line 174.
return path.decode(sys.getfilesystemencoding(), 'replace')
On our Linux server sys.getfilesystemencoding() is returning None when a string is expected.
Our current fix is to supply empty config and credentials files and then this code path doesn't get executed. This isn't an ideal fix for us as we'd like to minimize setup that our clients have to do.
Python 2.7
Botocore 1.10.48
OS Linux

I logged the values.
Default encoding: utf-8
File system encoding: None
From looking through the start up logs, default encoding is being set with sys.setdefaultencoding('utf-8')

This is also an error-only case. _unicode_path is only called when constructing an exception string. It should still be fixed though.


Fix rtt option default

The generateDepthBuffer option should default to true when using an options object to be consistent with the full parameters constructor.
The options constructor was introduced recently in #13275, so I assume this was just a small oversight.

Thanks for the fixes @thscott!


onAccessTokenExpired() not called if access token is expired

https://blizzapi.lukem.net/docs/usage/custom-access-token.html#parameters says that if we enable   validateAccessTokenOnEachQuery,
the blizzapi should be calling
 onAccessTokenExpired: () => { /* do something */ },
but from my tests, even if i see expired token in api response
{ error: 'access_token_invalid' }
the onAccessTokenExpired event is not called.
      this.api_clients[region.code] = new BlizzAPI({
        region: region.code as RegionName,
        accessToken: access_token,
        validateAccessTokenOnEachQuery: true,
        refreshExpiredAccessToken: false,
        onAccessTokenExpired: () => {
          console.dir("onAccessTokenExpired");
        },
      });

any ideas?

Hi @bonesoul!
Thanks for reporting. I'll check it and get back to you.

Okay, I'm triaging this. I suspect the library might use a wrong condition for declaring access token as invalid / expired (either nobody noticed before or Battle.net API no longer communicates it the way it used to do?). More updates coming soon.

Okay, I got this.
When custom access token is provided and validateAccessTokenOnEachQuery is passed, the library doesn't do anything except returning the error object. I'm gonna fix this in the next release so that refreshExpiredAccessToken property can be enabled and actually used in that case (as long as there's client id and client secret available to obtain new access token) + onAccessTokenExpired() will be called if available.
To be honest, I hate how the past version of me designed this custom access token flow back in late 2010s. But I also don't want to break the existing behavior quite a few other projects rely on so that fix must do for now. Personally I no longer run any project that consumes Battle.net data so I might be lagging to catch and fix any potential regressions.

Released in v2.6.0.


feat(demo): add 'publish_images' flag

Signed-off-by: nshankar13<EMAIL_ADDRESS>
Description: Add a "PUBLISH_IMAGES" flag for the osm demo, and skip the step to publish images for the OpenShift nightly job.

Affected area:

Functional Area

New Functionality
[ ]

Documentation
[ ]

Install
[ ]

CLI Tool
[ ]

Certificate Management
[ ]

Control Plane
[ ]

Ingress
[ ]

Egress
[ ]

Networking
[ ]

Observability
[ ]

SMI Policy
[ ]

Sidecar Injection
[ ]

Security
[ ]

Upgrade
[ ]

Tests
[X]

CI System
[X]

Demo
[X]

Performance
[ ]

Other
[ ]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project? No

Did you notify the maintainers and provide attribution?

Is this a breaking change? No

Codecov Report

Merging #3856 (0c4c7f0) into main (53e8bc3) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #3856      +/-   ##
==========================================
+ Coverage   67.83%   67.85%   +0.01%
==========================================
  Files         199      199
  Lines       11088    11088
==========================================
+ Hits         7522     7524       +2
+ Misses       3517     3515       -2
  Partials       49       49

Flag
Coverage Δ

unittests
67.85% <ø> (+0.01%)
:arrow_up:

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

Impacted Files
Coverage Δ

pkg/providers/kube/client.go
65.83% <0.00%> (+0.62%)
:arrow_up:

...icate/providers/certmanager/certificate_manager.go
86.61% <0.00%> (+0.70%)
:arrow_up:

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 53e8bc3...0c4c7f0. Read the comment docs.


e2e:serial:cntscope: filter node based on single resource shortage

A test to make sure that nodes get filtered out by the plugin, for any resource that nodes have a shortage with at the NUMA level.
The test setup all the nodes in such way that from the NodeResourceFit plugin perspective they do have all the requested resources by the pod.
But the TopologyMatch plugin which zoom-in and examine the node at the NUMA level, should find only one suitable node which is able to address the pod request.
All the other nodes have all the available resources except one which has a shortage on a specific NUMA and we expect the plugin to track that
Signed-off-by: Talor Itzhak<EMAIL_ADDRESS>

/cherry-pick release-4.11


Vizia Panes

Problem
Today's (vizia) implementation provides a single pane (grid with components).
Solution
We want to provide a "workspace" where you can put information in panes left and right of the grid. E.g., instruction memory and register file information to the left, and data and stack memory to the right.

Simple POC of panels. https://github.com/perlindgren/syncrim/pull/30

What features do we want for the left/right panel?

[ ] foldable views.
[ ] reordable views (maybe drag and drop).
[ ] scalable panels (draggable)
[ ] serializable state (so you can restore the panel settings for a model)

Foldable views now implemented.

Foldable views have been merged. Notice the abuse of Log ERROR (this is just to elevate the log level for panel messages temporary, we should demote them to TRACE or DEBUG level later).


Update docs: Power BI Dataflow Refresh API

No comment section found in this docs.
https://docs.microsoft.com/en-us/rest/api/power-bi/dataflows/refreshdataflow
Problem:
This doc needs to be updated with the ability to perform unlimited dataflow refreshes, as in blog by product owner Matthew Roche https://ssbipolar.com/2019/05/24/unlimited-dataflow-refresh-on-power-bi-premium/

@eligr Can you please take a look at this issue?


How to check for List equality

I have two Lists of Int with the same items in the same order, yet List1 ==K List2 returns false. How do I do it?

I just tried ==KList but it's the same result. I'm doing this Obs[Index] ==KList BI , where Obs is a list of lists and BI is a list.

==KList is found in the file k-equal.k but is not implemented. I tried to do the following but I can't use the -Int operator in this module because I can't import INT-HOOKS because that will create a circularity:
  // equality over KList
  syntax Bool ::= KList "==KList" KList    [function, hook(KEqual:_==KList_)]
  rule LK1:KList ==KList LK2:KList =>
    LK1[0] ==K LK2[0] andBool
    range(LK1, 1, size(LK1) -Int 1) ==K range(LK2, 1, size(LK2) -Int 1)
  when size(LK1) >Int 0 andBool size(LK2) >Int 0
  rule .List ==K .List => true

Now what?!

OK that's my mistake. The latest master does implement ==KList. I depended on the latest release.

I would recommend using ==K, which works as well in the latest master.

This is what I get when use ==K or even ==KList
[Error] Critical: Warning: "builtins.maude", line 9 (mod ORC-BUILTINS): bad
token _==K_.
Warning: "builtins.maude", line 9 (mod ORC-BUILTINS): no parse for statement
eq '_==K_ (GeneratedAnonVar132:K,, GeneratedAnonVar133:K) = _`(_`) (# _==K_
(GeneratedAnonVar132:K, GeneratedAnonVar133:K), .KList) .
Warning: "builtins.maude", line 10 (mod ORC-BUILTINS): bad token _==K_.
Warning: "builtins.maude", line 10 (mod ORC-BUILTINS): no parse for statement
eq '_==K_ (GeneratedAnonVar132:K,, GeneratedAnonVar133:K) = _`(_`) (# _==K_
(GeneratedAnonVar132:K, GeneratedAnonVar133:K), .KList) .

Can you please show me the exact code that you have which is generating the incorrect inequality result?

I'm sorry I just tried reproducing it but I couldn't. I think that was in 3.6. Now i'm back to 3.5. I'm not getting this error but instead I always get false on list equality.
Here is the code
check(Index:Int) =>
        #if Obs[Index] ==K BI
          #then true
        #else #if Index ==Int size(Obs)
          #then false
        #else
          check(Index +Int 1)
        #fi #fi

I'd prefer to see the entire rule if I can, as well as the configuration that the rule is being applied on. The issue I have here is that I don't know what Obs and BI are supposed to be referring to, so I have a hard time knowing why it may not have worked.

The code is very messy. I changed it several times today and I went back to 3.5. Plus this was just a workaround; I was trying to implement the in operator myself because it wasn't working. But now that #1280 already solved that problem, I don't need to do this anymore. Thank you very much.


[Snyk] Upgrade no.nav.common:token-client from 2.2022.06.30_06.15-e67de67df422 to 2.2022.08.09_10.24-e286f72ca9e8

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade no.nav.common:token-client from 2.2022.06.30_06.15-e67de67df422 to 2.2022.08.09_10.24-e286f72ca9e8.
: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 17 versions ahead of your current version.
The recommended version was released 22 days ago, on 2022-08-09.

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
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

allerede oppgradert til nyere versjon


expressionBinding

any detail information or document about expressionBinding feature ? i can not find this feature in offical document website
and how can i import this module as you say in this readme?
thanks!

@fromIRIS hello, expression binding  feature is not included in weex_sdk for now, but we plan to open source it later this year。
thanks for your attention:)

@Rowandjj so currently we can not use this kind of components like wxc-tab-page in our app which includes weex sdk(0.13.0) even 0.16.0 ?

@fromIRIS i'am sorry but yes.

@Rowandjj
I would suggest removing these components from open-source version of weex-ui until we finish our work on open-source expression binding feature.

i agree with @wintercn , pls think about it.@tw93 @Imlisten :)

@wintercn @Rowandjj @fromIRIS
Considering that Tmall  and Aliyun  ISV will use this component ，I will do this in the next version of this downgrade, so that it will not affect the use of other，It will also be explained in the document

@tw93  wxc-slider-bar also use expressionBinding.Maybe need star *wxc-slider-bar in the document?

@marekchen Thanks, I have updated it

你好，可以在业务层修改UI吗？

expression Binding 什么时候会支持呀？

@am1102  预计12月中下旬开源~

native的slider求滑动啊，求开源啊。。。

expression Binding 开源了吗？

Binding is open source https://alibaba.github.io/bindingx/


Update document and package.json

Fixed image path and updated document.
It is my first pull request to AragonProject:) so please let me know if something looks wrong!

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Ahh... my bad...
Thank you for taking time and help me!
It's a little late, but I fixed it!


Add a readme, license and link up from FsStorm docs

You want a link in docs, or do you want a new folder called samples?


Support language injection in a PHP NOWDOC/HEREDOC

Hey, thanks for this great plugin.
PHP has a special syntax for multiline strings that allows tagging the string. This tag is often to denote the contents of the string and add syntax highlighting: https://www.jetbrains.com/help/phpstorm/using-language-injections.html#inject-language-nowdoc-heredoc
I propose adding the tag GRAPHQL to the list of supported NOWDOC/HEREDOC tags.

Any update about this?

Great idea! Also, Ruby please:


Type Overrides in Column Names and Bind Arguments

BASED ON #399
closes #339
TODO:

[x] test bind argument overrides
[x] test column name overrides for MySQL, SQLite
[x] document column type overrides
[x] document bind arg type overrides
[x] implement, doc and test foo as "foo?" override (forgot this one)

Testing this out in my project and it seems to be working pretty well! The only trouble I ran into was a nullable bind param. I'm not sure if that falls into the WIP nullable override.
If I do my_val as Option<MyType>, it seems to wrap the input in another Option and the error says it expected Option<Option<MyType>>

Can you give the error message you're getting in the second case?

@abonander for my_column AS "my_column: Vec<MyType>", I get the message: error: encountered unexpected or invalid data: user-defined array types are unsupported

Hmm, that's coming from the protocol layer in core: https://github.com/launchbadge/sqlx/blob/8a83c98ee848a9bb9460d1824cf0150f64f557fd/sqlx-core/src/postgres/connection/describe.rs#L137
Unfortunately there's no comment here explaining why they're currently unsupported cough@mehcodecough

I think we just never really discussed how to represent arrays of user-defined types in the output of Describe. I think there's some refactoring necessary for PgTypeInfo probably, maybe elem_type() -> Option<PgTypeInfo> and array_type() -> Option<PgTypeInfo> getters.

Custom types in arrays is orthogonal to this pull request. The complicated part is how to do this with PgTypeInfo.
We currently have PgTypeInfo::with_name("my_custom_type"). That lazily resolves to the OID for the scalar type. Arrays are special in postgres in that they don't have a defined name (I mean they do have a name but its not something we or the user will know, it normally is a single-underscore prefix of the scalar name but that isn't guaranteed).
We need like PgTypeInfo::array_with_name("my_custom_type") or PgTypeInfo::array(PgTypeInfo::with_name("my_custom_type")) that would resolve the array type OID of the given scalar type name.
Once we figure out how we're doing that, actually making this work is a 5 line addition to the Type derive.

While poking at this today, I noticed that Postgres provides another column in the types table called typelem which is the OID of the inner element of the array. Not sure if that could help.

@phated

If I do my_val as Option, it seems to wrap the input in another Option and the error says it expected Option<Option>

Let me know if this is still an issue after the commit I just pushed.

@phated sorry try it now

@abonander Sorry for the delay here. I was just able to test my_val as Option<MyType> and it works great!  Did y'all want me to open an issue about user-defined array types?

Hi there, is there a way to use the query_as! macro to select all columns on a table and only override the type of 1 of them without having to list all of the columns?
Ie. I want to avoid having to do  SELECT id as "id?", first_name, last_name, email from users WHERE id = $1 and instead do something like  SELECT * WITH id as "id?" from users WHERE id = $1


Redisearch object mapping - FtSearchResult to X

Hey, very nice job here - I see this supports both sentinel, json and search modules which is perfect for my use. I was searching through tests and examples of how the api can be used most efficiently and found out one thing I'm not sure of - about how to map FtSearchResult to a rust struct. Suppose I have a JSON list of fruits and I want to filter them by color, size etc. So I create an index on desired fields and suppose that I know exactly, I'll be able to narrow down result to an Optional<Fruit>. How's the best way/is it possible with some helpers to transform FtSearchResult.results into an exact rust struct? I suppose I could map values which is a Vec<String, String> for my needs? Is this vector some kind of a map of key->value? Any better way to map this, maybe by putting some directive on Fruit struct?
Update:
A quick check in redis docs: (https://redis.io/docs/interact/search-and-query/indexing/) and I think that this response corresponds to Redis response and in my case, second string from the vec will be stringified Fruit json granted that I specified I'm looking for the whole thing - $. I suppose, I should unmarshal string into Fruit by hand?
PS: Can you also support redis-sentinel protocol in connection string? It seems that it panics when it's provided.
Thanks in advance.

Hi @wojciechbator,
Thank you for the good words ^^
Could you provide a full example of your queries and the Fruit struct ?
About sentinel, it is supported in the connection string with a specific syntax:
https://docs.rs/rustis/latest/rustis/client/index.html#sentinel
Cheers,
Michaël

Hi again,
To give you a beginning of an answer on the FtSearchResult struct, yes, this struct is very generic and provides no facilities to help users deserialize results into rust user structs.
That said, based on your example, we could check together how to improve that matter.
Cheers,
Michaël

Hi, I was just trying the thing out. IMO it's ok - FtSearchResult maps the response in generic way and one can extract results as needed.
On a side note - consider also supporting protocols with hyphen, like redis-sentinel or redis-cluster. It's common to use them as such and when enum does not exist, the lib will panic.