Datepicker inside a modal

Hi, I have a datepicker inside a modal. Whenever I clicked on the date, the modal got closed too. Is there a way to avoid this? My code looks like this
import React from 'react';
import moment from 'moment';
import { change } from 'redux-form';
import DatePicker from 'react-datepicker';

class ReservationDetailsCheckinContainer extends React.Component {
  constructor(props) {
    super(props);
  }

  handleInputChange(e) {
    console.log(e);
  }

  render() {
    return (

          Check-in Date

          <DatePicker selected={this.state.startDate} onChange={this.handleInputChange}/>

    );
  }
}

export default ReservationDetailsCheckinContainer;

Have you tried e.stopPropagation()?

Did you make anything special to make it work inside a modal? It doesn't work for me

Anyone find a solution to this?

The problem here is that the onChange callback only provides the newly selected date, but not the event associated with it. If we would get the event as lets say second parameter the following code should work:
handleInputChange(date, e) {       e.persist();       e.stopPropagation();     }
It would work because AFAIK most modals are adding a click listener to window and then check if the click target (in our case the datepicker calendar) is the modal itself or a children of it.
BUT
React datepicker is using the tether library to connect the date input field with the calendar component and tether is placing the calendar outside the modal before the closing body tag for positioning reasons

So technically the calendar is not inside your modal and thats why it closes. As I wrote already, exposing the React event in the onChange callback would probably solve this, since then you can stop the event from reaching the window onclick listener

Yeah, you're right. Thanks for your answer
Reyhan Sofian
Web Developer
On Jul 14, 2016 4:07 PM, "Sascha Mayr"<EMAIL_ADDRESS>wrote:

The problem here is that the onChange callback only provides the newly
selected date, but not the event associated with it. If we would get the
event as lets say second parameter the following code should work:
handleInputChange(date, e) {
e.persist();
e.stopPropagation();
}
It would work because AFAIK most modals are adding a click listener to
window and then check if the click target (in our case the datepicker
calendar) is the modal itself or a children of it.
BUT
React datepicker is using the tether library to connect the date input
field with the calendar component and tether is placing the calendar
outside the modal before the closing body tag for positioning reasons
[image: bildschirmfoto 2016-07-14 um 10 44 16]
https://cloud.githubusercontent.com/assets/5527658/16834136/c478e616-49b2-11e6-8491-6d8c01ef57f8.png
So technically the calendar is not inside your modal and thats why it
closes. As I wrote already, exposing the React event in the onChange
callback would probably solve this, since then you can stop the event from
reaching the window onclick listener
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Hacker0x01/react-datepicker/issues/488#issuecomment-232609299,
or mute the thread
https://github.com/notifications/unsubscribe/AFGxgY-S712uRFIMqmbctg95_aEfbXeTks5qVfxEgaJpZM4Ikvuc
.

Is there a way to get the event?

+1

+1

+1

Actually, passing the event into onChange wouldn't solve the issue completely. A user can click on the calendar without selecting a date (e.g. navigating between months). And in the scenario above it will as well close the modal.
An alternative suggestion is to introduce a new property: stopPropagationOnClick: PropTypes.bool. If this property is true, the component will run e.stopPropagation() on all mouse clicks inside the calendar.
@martijnrusschen would you consider a PR with the proposed change?

@martijnrusschen In my case i have an date picker input inside a table row  and the tr is clickable (it handles the onClick event). So i also need to prevent that clicking the input, bubbles up to the row.

I am facing the similar issue where i have date picker which opens up on a input file type. So it opens the file browser window if we select the date from the area exactly on top of input field.
Any solution to prevent the event propagation ?

bump
I am having the same issue. Any solution would be very welcome!

I am also having this issue on the time picker portion of this.

Any solution? @@

@tggreene
Thanks, It worked properly.
The working code :

 { e.stopPropagation() }}>
           <DatePicker
               {...props}
           />

If you face any error please share.


Replace Base64 implementation with version from Kotlin 1.8.20

See https://kotlinlang.org/docs/whatsnew-eap.html#experimental-support-for-base64-encoding-in-standard-library
This can only be done once 1.8.20 is released and out of beta.

kotlin 1.8.20 is out of beta! :)

it is... I have a branch open with updated code in - there are some subtle differences in Kotlin's implementation so I'm making sure I'm happy first

As the feature is marked experimental I won't be pushing the change into the lib immediately; although I will push upgradling to kotlin 1.8.20

Still experimental in Kotlin 1.9.10


[18.09 backport] use a custom grpc dialer when managers are joining

backport of https://github.com/docker/swarmkit/pull/2802 for 18.09. cherry-pick was clean; no conflicts

rebased on top of https://github.com/docker/swarmkit/pull/2829 to fix CI

ping @dperny @anshulpundir PTAL

marking this "WIP" because there's some comments on the original PR, and we should have it merged in master first

Looks like this test is flaky;
time="2019-03-05T21:57:37Z" level=error msg="update failed" error="task ejv1l2jn5wt81d57qx85lmu89 was already shut down when reached by updater" task.id=vntuyz2k8fe10hhal4s1ygurz
--- FAIL: TestUpdaterRollback (3.50s)
    --- FAIL: TestUpdaterRollback/continue/spec_version_set (1.16s)
	Error Trace:	update_test.go:279
			update_test.go:25
	Error:		Not equal: "image2" (expected)
    			        != "image1" (actual)


Make Test step ignore test adapters

Our project is largely written in C# but we also have a C++ client.
We upgraded the NUnit Test Adapter from 3.4.1 to 3.6.0 and now the test step for native tests fail as the behaviour on an unhandled assembly has changed from a warning to an error; I've raised this with the NUnit team.
However, for this test step we don't need the NUnit test adapter, but the step always searches the packages folder and so find the NUnit adapter.
So can we have an option that disables searching the packages folder or can you suggest some other work around - I'm going to regress the version of the test adapter for now, but that's only a short-term solution.

there is no good way to do this today. you can delete the packages folder and then try test step. does that work? I want to understand more why using adapter path from packages path wont work. Do you have details of that?

We have two sets of tests, the C# ones using NUnit which needs the NUnit 3 Test Adapter and the C++ which don't need any adapter.
The C# test step run fine, but when the C++ test step runs it picks up the NUnit 3 Test Adapter which fails to handle it and throws an error.
The documentation for the step says "Directory path to custom test adapters. Nuget restored adapters are automatically searched for."
Are you saying if I specify a path here, it won't look in packages - I presumed this was in addition to packages?

Hi @phatcher
For VsTest task if you specify some path in custom adapters, then it should not look in packages folder anymore and this can be your workaround for now. Please make sure that the path you give is a valid path, otherwise it will throw saying the path does not exist.
Thanks

@phatcher Were you able to try the workaround? Please update us.

Closing this issue. You can mail us at devops_tools[at]microsoft[dot]com for any further issues


Enhances the structure and also added some new sections

📋 Description
I have done some enhancements in the structure of the file and also added some new sections.
🔨 Changes Made
Fixes:[#215 ]
I have done these changes :-

Enhanced the project structure
Added need help with the basics section
Added project structure section
Added additional method of contributing through GitHub desktop section
Added good coding practices section
Added the help and support section
Added the pull request section
Added issue report process section

✅ Checklist
Before submitting the PR, please make sure you have completed the following:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation (if applicable).
[x] My changes generate no new warnings.
[x] I have tested it locally and it works fine.
[ ] Any dependent changes have been merged and published in downstream modules.

🏷 Types of Changes
What type of changes does your code introduce? (Check all that apply)

[ ] Bug fix (non-breaking change which fixes an issue) 🐛
[ ] New feature (non-breaking change which adds functionality) ✨
[ ] UI enhancement (non-breaking change which enhances UI) 🎨
[x] Documentation update 📚

🤝 Related Issues

Fixes #215

📸 Screenshots (if applicable)

Reminder:
Please ensure your pull request is made to the test branch, not main.
Thank you for contributing to VigneshDevHub! We look forward to reviewing your PR and getting it merged!

I have done all the enhancements. Please kindly check it once.

Hey @milansamuel609 , under the 'Help and Support' section, please add my profile link for the admin—right now it's just the name. Also, for the contact email, start the link with 'mailto:' so it works correctly. Lastly, in the issue report process, ask contributors to use the template when submitting issues. Thanks!

@Vignesh025  I have updated the changes that you have asked for. Please kindly check once.

Hey @milansamuel609 , My profile link is https://github.com/Vignesh025
you've added the organization link.
kindly replace this.

I have updated the changes. Instead of admin I wrote admin github profile and also added your mail id and github profile. Please kindly check it once.

Please have<EMAIL_ADDRESS>as the mail.

Please have<EMAIL_ADDRESS>as the mail.

Sure I will do it right now.

Thankyou for Contributing!

Actually this PR is not counted as contribution in gssoc extended. Please kindly assign this PR to me and please label it as gssoc ext and also add the level.

Please select the assigned member as me also. Otherwise they will not able to verify the assigne.

Assignee does not matter. The assignee is the reviewer.

Assignee does not matter. The assignee is the reviewer.

No actually the gssoc community told me like this because my points we not update thats why. They told me these points :(
These are the important things :-
PR should be merged.
It should be assigned.
It should be labeled gssoc, and respective level such as level1, level2, level3.


Describe pre-installed experience

@francisguillier , PTAL when you can.  This PR attempts to address a Slack exchange.
Review HTML: https://nvidia.github.io/cloud-native-docs/review/pr-103/gpu-operator/latest/getting-started.html#pre-installed-nvidia-gpu-drivers

I think we should split the section "Pre-Installed NVIDIA GPU Drivers" in 2:
sub-section 1: disabling entirely the driver container:
"
In this scenario, the NVIDIA GPU driver is already installed on the worker nodes that have GPUs:
helm install --wait --generate-name
-n gpu-operator --create-namespace
nvidia/gpu-operator
--set driver.enabled=false
The preceding command prevents the Operator from installing the GPU driver on any nodes in the cluster
"
sub-section 2: driver container enabled but some or all nodes have pre-installed driver:
"If any nodes in the cluster have the GPU driver pre-installed, the GPU driver pod detects the kernel and exits. The Operator proceeds to start other pods, such as the container toolkit pod.
If all the nodes in the cluster have the GPU driver pre-installed, the Operator detects that all GPU driver pods exited and stops the GPU driver daemon set, regardless of the driver.enabled value.
"
Note:
I cannot confirm the validity of the last statement. Checking internally

@mikemckiernan
I checked with Chris and the statement
"If all the nodes in the cluster have the GPU driver pre-installed, the Operator detects that all GPU driver pods exited and stops the GPU driver daemon set, regardless of the driver.enabled value."
may be confusing.
We don't stop or delete any GPU driver daemon set per se.
the GPU driver daemon set will always exist, even if the above condition (all nodes in the cluster have GPU driver pre-installed).
We need to rework the statement appropriately.
Chris wrote this and it may help:
If we detect drivers are pre-installed, we disable the driver pod on the node by labelling the node with nvidia.com/gpu.deploy.driver=preinstalled

@mikemckiernan
I chatted with Chris and he gave this very good information I think we should put in the doc:
"The init container in the driver pod detects if drivers are preinstalled. If preinstalled, it labels the node so that the driver pod is terminated and does not get re-scheduled on to the node."


Added abhijithumbe to CoP members

Added abhijithumbe to CoP members to resolve #262

/approve

/assign @sabre1041

/lgtm


Input moment?

Hi
Thanks for this package. I have a technical question. In the paper you referenced, the control inputs are total thrust force and moments. The calculation of the input moments requires the knowledge of the inertia matrix. How do you handle that in your implementation?
Thanks.

@mzahana, the output of the position control loop is a thrust and a desired orientation.  Px4 has an awesome attitude controller, so this repository only uses the position control portion of the referenced paper, and we leave it up to Px4 for orientation control

Makes sense. Thanks for the prompt reply :)


Reset HRF initially

After first booting the Pi, I found your client wasn't functioning unless I'd run https://github.com/whaleygeek/pyenergenie/ once - it turns out this does a reset of the HRF chip that seems necessary to get it into the right state, at least for me.
Great project btw - thanks very much for the work!

Thanks for that.  I hadn't seen the problem, but I expect there are variations in hardware.  The reset doesn't break my board - at least on one reboot.
Incidentally, by a remarkable coincidence, I had just pushed a change that increased the delay after sending an OOK message.  This should make it possible to send two commands immediately after each other to different switches.  I had been adding a delay in my scripts all Summer but this should make it unnecessary.


Changes and buffs to mobs also affect non-hostile mobs like animals

As the title says, the modifications made by this mod also changes animals and other non-hostile animal. This is an unwanted effect.

it is intended from my side but you can put the mobs you don't want to be affected into the excluding list like:
"minecraft.cow"

I encountered a related issue here with bees. When they "go to sleep" for the night, it seems like they don't actually disappear in to the hive. Their entity seems to be transported somewhere far away, and back again upon reappearance the next day, doubling their HP each time. I ended up with an absolute god of a bee with millions of health and damage. I've seen similar things happen to 10k hp cows, but nothing as extreme as bees since they always disappear and reappear each day. I'm concerned that there's some memory issue that might eventually occur when their HP value gets too large. Encountered this on rpgdifficulty-1.2.0 with fabric-api-0.58.0+1.19.jar and MC version (1.19)

I encountered a related issue here with bees. When they "go to sleep" for the night, it seems like they don't actually disappear in to the hive. Their entity seems to be transported somewhere far away, and back again upon reappearance the next day, doubling their HP each time. I ended up with an absolute god of a bee with millions of health and damage. I've seen similar things happen to 10k hp cows, but nothing as extreme as bees since they always disappear and reappear each day. I'm concerned that there's some memory issue that might eventually occur when their HP value gets too large. Encountered this on rpgdifficulty-1.2.0 with fabric-api-0.58.0+1.19.jar and MC version (1.19)

I'm encountering a similar issue. In my world there was a bee with 10,000,000 health.

Fixed the bees issue with a later update.
For excluding entities, please use the excluding list.


metrics & feedback for plugins

Summary
Understanding the quality and relevance of plugins is critical for plugin users. We want to identify metrics that give plugin users insights into quality and plugin developers feedback on the usage of their plugins.
Intended outcome
Plugin users will be able to view metrics that give insight into plugin quality. Plugin developers will be able to get feedback from users that helps them improve and demonstrate their impact to funders.
How will it work?
This will depend on UXR work we are performing in 2021 Q4, but we imagine that we will support some combination of

aggregating metrics from external sources, such as Github and PyPI
automating new metrics, such as automated testing
providing new mechanisms for feedback from plugin users, such as reviews or ratings

@codemonkey800 perfect!!!


Releases section is empty

Do I need to compile this?

Please be patient and wait for the official release.


GTK fullscreen/maximize bug when MaxWidth/MaxHeight is set

Introduced in https://github.com/AvaloniaUI/Avalonia/pull/1495, OSX probably has same problem

I don't see any way how to prevent window to maximize.
Should max constraints be ignored when switching to fullscreen/maximize?

Closing this as GTK3 backend has been removed for years now.


fix(tabs): add randomId attributes

What I did

Added getRandomId to tab and panels for aria accessibility upgrade

Testing Instructions

View the Deploy Preview

Would we rather do this in pfe?

Would we rather do this in pfe?

Now that you bring it up, yes makes sense to do it in Base Classes of PfE.

consider https://github.com/patternfly/patternfly-elements/pull/2487 as an alternative (we're anyways planning a release in https://github.com/patternfly/patternfly-elements/pull/2481)

Closed in lieu of the above alternative


Adjusted language + some style tweaks

Coverage decreased (-1.34%) to 98.59% when pulling 2de3100e26a36c395ee26ecfef0b9a1788a8ea8a on roryaronson:master into 8805de02cde4bd3e2eabf5982f0b80b4977a8640 on openfarmcc:master.

The tests look for those specific strings, so that's probably why they failed.

Ah, I'll fix the tests and try running the test suite locally

Coverage remained the same at 99.94% when pulling bf877040570f9e16f0bd99d628d2f4f8ee7b6077 on roryaronson:master into 8805de02cde4bd3e2eabf5982f0b80b4977a8640 on openfarmcc:master.

Oh no, Hound is having a fit! I don't think I should fix any of this

Coverage remained the same at 99.94% when pulling b7b9e26d031f40a68befef492f67bd6fac32062e on roryaronson:master into 8805de02cde4bd3e2eabf5982f0b80b4977a8640 on openfarmcc:master.

Coverage remained the same at 99.94% when pulling b7b9e26d031f40a68befef492f67bd6fac32062e on roryaronson:master into 8805de02cde4bd3e2eabf5982f0b80b4977a8640 on openfarmcc:master.

@roryaronson I'm going to see what I can do about tweaking the CSS hounding. It's a bit of a pain (I don't think we switched it on, it just decided for itself).

Please do! :dog2: ----> :poodle:

Coverage remained the same at 99.94% when pulling fbb0313d8c490623fb87fab6a935e58fdece33ca on roryaronson:master into 8805de02cde4bd3e2eabf5982f0b80b4977a8640 on openfarmcc:master.


Duplicate Identities

Checklist

[X] I have used the search function to see if someone else has already submitted the same feature request.
[X] I will describe the problem with as much detail as possible.
[X] This issue only contains a request for one single feature, not multiple (related) features.

App version
6.202
Problem you are trying to solve
While using aliases for emails, if we want to answer using that email, we need to have an identity for it.
If using a lot of aliases (one per services for example), that is a lot of identities to create which most may be similar (signature / name).
Suggested solution
When managing an identity, we currently have the option to

Edit
Move up
Move down
Move to top / make default
Remove

Adding an option to 'Duplicate' or 'Use as template' or 'Clone', allowing to create a new identity with the fields pre-filled.
Screenshots / Drawings / Technical details
No response

Also see:

#935
#5781

#935 (unfortunately locked) would give you dynamic identities to reply with. You wouldn't have to create them unless you wanted to use an identity to send an email that isn't a response.


Added Opbeat in APM category

Thanks for your PR, I just added some details to the description

Thanks!
On Wed, Mar 15, 2017 at 11:11 PM, Guillaume<EMAIL_ADDRESS>wrote:

Thanks for your PR, I just added some details to the description
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/255kb/stack-on-a-budget/pull/135#issuecomment-286895952,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAzYVbdPKnaZDkgRR_pBQ21q-huxDJCcks5rmGIggaJpZM4LnjrZ
.


Update sdks.md

Added Ethora engine to the list.

all new sources should be addes as issuses first then approved.


End to end test for simple trading tutorial client

Added an end to end test, which:

spins up a WebSocket server
spins up the client defined in simple trading tutorial (in seperate process)
once the client connects to the server, the server simulates communication on user and market streams and asserts the messages sent by the client

Will change URL to prod in next PR.


python.testing.pytestArgs ignores multiple instances of the same arg

Type: Bug

Behaviour
Expected vs. Actual
This is a new issue that began appearing as of v2024.2
Expected:
pytestArgs which allow multiple of the same arg (e.g. --ignore=path/to/ignored/dir) pass all instances of the arg in the list to pytest
Actual:
Only the last instance of multiple args in the list are passed to pytest
Steps to reproduce:

Modify the python.testing.pytestArgs setting with multiple --ignore=path options
collect tests
Only the last ignored path in python.testing.pytestArgs will be ignored

Diagnostic data

Python version (& distribution if applicable, e.g. Anaconda): 3.12.1
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Unknown
Value of the python.languageServer setting: Default

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

Actual command: sent:
2024-02-29 12:03:43.223 [info] > ./shared/lib_ext/python/python.exe -m pytest -p vscode_pytest --collect-only . --ignore=./__temp__/ --basetemp=./__temp__
2024-02-29 12:03:43.224 [info] cwd: .
2024-02-29 12:03:43.868 [info] Discover tests for workspace name: pmu - uri: c:\Users\dscott2\source\pmu
2024-02-29 12:03:43.868 [info] Running discovery for pytest using the new test adapter.

Expected command sent:
2024-02-29 12:03:43.223 [info] > ./shared/lib_ext/python/python.exe -m pytest -p vscode_pytest --collect-only . --ignore=./web_ui/ --ignore=./__deploy__/ --ignore=./__temp__/ --basetemp=./__temp__

User Settings

languageServer: "Pylance"

testing
• cwd: "${workspaceFolder}"
• pytestArgs: [
".",
"--ignore=${workspaceFolder}/web_ui/",
"--ignore=${workspaceFolder}/__deploy__/",
"--ignore=${workspaceFolder}/__temp__/",
"--basetemp=${workspaceFolder}/__temp__/",
]
• pytestEnabled: true

Extension version: 2024.2.0
VS Code version: Code 1.86.1 (31c37ee8f63491495ac49e43b8544550fbae4533, 2024-02-07T09:08:20.941Z)
OS version: Windows_NT x64 10.0.19045
Modes:

I think this was introduced by #22885 here:
https://github.com/microsoft/vscode-python/commit/75ed73e8b139f5f785e8292fac047ae23185ca63#diff-19ce457a2aaf03c9ce746ac804e645758ead9dccd86e7fdd4a3367116be9b769L69-R114

It's worse than "ignored" — this causes an error for me. I have these settings:
    "python.testing.pytestArgs": [
        "-p",
        "stbt_rig",
        "-p",
        "no:python",
        ...
    ]

and since 2024.2.0 this causes my pytest collection to fail with "ERROR: file or directory not found: no:python".
This is the command line VS Code is using:
./.venv/bin/python -m pytest -p vscode_pytest --collect-only -p stbt_rig no:python ...

Note that it's missing the second "-p".

I'm seeing this issue when ignoring multiple directories. Only the last ignore is used:
settings.json:
    "python.testing.pytestArgs": [
        "--ignore=src/application1/test",
        "--ignore=src/application2/test",
        "--ignore=src/application3/test",
        "./src"
    ],

Python Output
2024-02-29 09:37:39.408 [info] > /bin/python3 -m pytest -p vscode_pytest --collect-only --ignore=src/application3/test ./src

thank you for the bug report- yes I think you are right with the commit id that introduces this. I will work on a fix- thanks

Hello! The fix for this has been merged and is out on the most recent release of vscode insiders. Is someone able to verify that the bug is fixed for them? If so, we can then put a point release out for stable with the fix. Thanks
@anthonykim1 for visibility

@eleanorjboyd does that include the code-insiders snap for linux?
❯ code-insiders --version
1.88.0-insider
d73fa8b14a6c873958d00a7d7ad13fcb540a052c
x64

I also installed the pre-release version of the Python extension: v2024.3.10651007 (pre-release)
With these versions I still get the same symptoms reported in my comment above.

From code inspection it seems to me that #23024 fixes this case:
--key=value --key=value2

...but it doesn't handle these cases (bug introduced in #22885 / #22076):
--key value --key value2
-k value -k value2

@eleanorjboyd
I can confirm that it fixes the issue with --ignore=path/ that I wa


Add support for VEDV (https://github.com/yunielrc/vedv)

Thank you！
Please refer to this reply in PR#21


UI Banners Not Present On Login Page

What kind of request is this (question/bug/enhancement/feature request):
Bug - related to rancher/rancher#25694
Steps to reproduce (least amount of steps as possible):
Enable the ui-banners setting with the following blob
{
  "banner": {
    "textColor": "#000000",
    "background": "#d71a1a",
    "text": "Classified"
  },
  "showHeader": "true",
  "showFooter": "false"
}

Logout
Result:
The ui-banners should still be present on the login page.
Other details that may be helpful:
Currently I've disabled fetching the setting in the detect method so it does not display by default. Additionally the root cause of the bug is the fact that the element for the component is null so its not being targeted correctly when we display it and none of the styles apply.
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):
Installation option (single install/HA):

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported):
Machine type (cloud/VM/metal) and specifications (CPU/memory):
Kubernetes version (use kubectl version):

(paste the output here)

Docker version (use docker version):

(paste the output here)

Why was this ticket closed? @jiaqiluo It's still relevant.

Still valid 🙃


Added auaccordion to facets for improved mobile layout. Added pre and…

… post text to facets to allow for help/description text.

Added the following features:

Addition of AU Accordion
Addition of supporting npm packages: style-loader, css-loader to allow for css from AU Accordion
Added AU Accordion to facet to provide better layout for mobile
Added pretext and posttext to facets to allow for help/description text


Add state of the VM

It would be create if the vsphere_vm query can also report on the state of the VM (if it is running, suspended or stopped)

created pull request for this.


WIP add new config for QAV250 racing quad

Needs more testing on PWM_MIN and max/min thrust parameters

Please do not include the Eclipse project in the PR.

Sorry, I'm not sure how my Eclipse project got into my fork of master. Will have to research how to keep my own version of the Eclipse project without adding it to git.

Are we sure we want the Eclipse project in? It keeps causing issues and developers are advised to use Qt creator: http://dev.px4.io/starting-building.html#compiling-in-a-graphical-ide

I prefer Eclipse at present. Qt seems deficient at finding symbol definitions, and worse, it's not stable on my desktop machine.

At the very least can we keep a basic eclipse .project so that firmware can be cloned within eclipse or imported directly without creating a new dummy project?

closed in favor of #3135


Resolves Issue 262 - CVE-2023-45133 - upgrade to latest babel traverse

This PR resolves this issue:
https://github.com/trivago/prettier-plugin-sort-imports/issues/262
The issue mentioned is that there a security warning issued for @babel/traverse package seen here:
https://security.snyk.io/vuln/SNYK-JS-BABELTRAVERSE-5962462
To create this PR I:

forked repo
cloned locally
updated package.json to be latest version of @babel/traverse
ran yarn
committed changes

Please let me know if there's anything I else can/need to do - like run tests etc. - thanks!
Updating to add that yarn type-check and yarn test pass as expected locally:

Thank you for you contribution 🚀
We'll release this as soon as possible.

Thanks so much for the quick release!

Out of interest, why does this have to pin a specific version of @babel/traverse rather than using ^ or ~ to be more flexible?


MudSelectExtended update parent component from child and persist selected Values

Hi community,
I have a chipset in my parent component and a MudSelectExtended in child component. Both are updated properly, but when navigating away to a different page and navigating back to the page MudSelectExtended doesn't show the values as selected, it seems like it threats them as different objects. I was experimenting with SelectedValues prop, binding and ended up using the ref keyword with updating the values on eventcallback to parent.
I have read about overriding GetHashCode and Equals for custom reference types here: https://github.com/MudBlazor/MudBlazor/discussions/3532. However this wasn't helpful and moreover i can't modify the DTO object in real life as its generated from swagger.
I have attached a simplified repo here: https://github.com/MartinSoka/MudBlazor_Repro/
I'm a blazor beginner so apologies in advance if i do something horribly wrong and many thanks for help!
parent
<MudChipSet MultiSelection="true" AllClosable="true" OnClose="UpdateItems">
    @foreach (var selecteItem in Model.SeletedItems)
    {
        <MudChip<EMAIL_ADDRESS>    }
</MudChipSet>

<MySearchBox AllItems="@AllItems" <EMAIL_ADDRESS>SelectedItemsChanged="@((IEnumerable<Item> selectedValues) => Model.SeletedItems = selectedValues)" />

@code {
    public List<Item> AllItems { get; set; } = new List<Item> { new Item { Title = "someTitle" }, new Item { Title = "otherTitle" } };

    public void UpdateItems(MudChip chip)
    {
        Model.SeletedItems = Model.SeletedItems.Where(l => l.Title != chip.Text).ToList();
        StateHasChanged();
    }

    public static class Model
    {
        public static IEnumerable<Item> SeletedItems { get; set; } = new HashSet<Item>();
    }

}

child-MySearchBox
<MudSelectExtended
    @ref="mudSelect"
    Text=""
    Placeholder="This text shoudln't change"
    ToStringFunc="@(i=> ItemDisplay(i, AllItems ))"
    MultiSelection="true"
    ItemCollection="@AllItems"
    SelectedValuesChanged="@((IEnumerable<Item> value) => HandleSelectionChanged())"
<EMAIL_ADDRESS>
    @foreach (var item in AllItems)
    {
        <MudSelectItemExtended<EMAIL_ADDRESS>    }
</MudSelectExtended>

@code {

    [Parameter] public List<Item> AllItems{ get; set; }

    [Parameter] public IEnumerable<Item> SelectedItems { get; set; }

    [Parameter] public EventCallback<IEnumerable<Item>> SelectedItemsChanged { get; set; }

    private MudSelectExtended<Item> mudSelect;

    private string ItemDisplay(Item item, IEnumerable<Item> items)
    {
        var i = items.FirstOrDefault(i => i.Title == item.Title);

        return i == null ? "!Not Found!" : $"{i.Title}";
    }

    private async Task HandleSelectionChanged()
    {
        await SelectedItemsChanged.InvokeAsync(mudSelect.SelectedValues);
    }
}

I was able to get it working when i use @bind-SelectedValues and no child component. However once i want to extract this into a separate component and use the @ref keyword together with the EventCallback, the items are always appended to the Model property and are not displayed as selected in the MudSelectExtended


Adding version to UnmarshalPacketData interface

Description
closes: #6976
This PR updates the UnmarshalPacketData to return the underlying application version.
Note: in a few tests, we needed to make them stateful since we are fetching the version via the ics20Wrapper

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against the correct branch (see CONTRIBUTING.md).
[ ] Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
[ ] Code follows the module structure standards and Go style guide.
[ ] Wrote unit and integration tests.
[ ] Updated relevant documentation (docs/).
[ ] Added relevant godoc comments.
[ ] Provide a conventional commit message to follow the repository standards.
[ ] Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
[ ] Re-reviewed Files changed in the GitHub PR explorer.
[ ] Review SonarCloud Report in the comment section below once CI passes.

I seem to have broken some transfer E2Es (also failing locally) looking into it now

test fixed by https://github.com/cosmos/ibc-go/pull/6993

We forgot to update docs on this as well


Tag cell with nbsphinx-thumbnail

Summary
After update the conf.py, like the other repos, to list the default thumbnail image. since with nbsphinx 0.9 it no longer recognizes the older way of doing that with the png file, some tiles "lost" their images, as below. Only the 5 with explicit images in the conf.py show up

This is how it looked before without the conf/py default thumbnail change where the tile that should have the sphere image does not.

Details and comments
It seems that the last image in the notebook was automatically selected how things were before. I added an explicit nbsphinx-thumbnail tag to the respective cell (as we have done in other repos which is why I did not see that there). I also selected a better image, I think, for the qaoa runtime. This is how it looks now.

We can probably StableBackport this so the docs out there can be updated so the images return to those that did have it before.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 92.086%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
4340

Relevant Lines:
4713

💛  - Coveralls


Allow NetSendBuffer_t to grow

Until now NetSendBuffer_t was allocated at a fixed size that could not
be changed. When using buffered net_send and invoking multiple
net_send's in INITIAL blocks in NMODL it may happen that we run out of
buffer. Currently this case is not handled and causes a buffer overflow.
As a first step NetSendBuffer_t has been given a constructor and
destructor as well as a grow function that doubles all internal buffer
sizes and copies data to the new buffers.

please retest


Amp-Accordion content when opening is not pushing page up

If an accordion item at the bottom of the page, opening it does not display it's content unless the user scrolls, but there's nothing that gives the user a hint that more content appeared. Is there any way around this?

You can show different icons depending on the accordion state.
On Fri, 9 Sep 2016 at 08:08, Scot<EMAIL_ADDRESS>wrote:

If an accordion item at the bottom of the page, opening it does not
display it's content unless the user scrolls, but there's nothing that
gives the user a hint that more content appeared. Is there any way around
this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ampproject/amp-by-example/issues/347, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAXOOMgF-fnktgYFCqNBUk5u98O6IH77ks5qoQXegaJpZM4J4wtv
.

Nice! I didn't notice that before (kind of new at the AMP game), thanks.


Mesos metrics

Emit metrics for mesos task launch/delete timing
Make all mesos timeouts configurable
Update mesos actor (supplants #4086)
Description

Related issue and scope

[ ] I opened an issue to propose and discuss this change (#????)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[x] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[ ] Tests
[ ] Deployment
[ ] CLI
[ ] General tooling
[ ] Documentation

Types of changes

[ ] Bug fix (generally a non-breaking change which closes an issue).
[x] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[x] I signed an Apache CLA.
[x] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[ ] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[ ] I updated the documentation where necessary.

Codecov Report

Merging #4102 into master will decrease coverage by 5.06%.
The diff coverage is 54.83%.

@@            Coverage Diff             @@
##           master    #4102      +/-   ##
==========================================
- Coverage    86.1%   81.04%   -5.07%
==========================================
  Files         148      148
  Lines        7113     7122       +9
  Branches      445      426      -19
==========================================
- Hits         6125     5772     -353
- Misses        988     1350     +362

Impacted Files
Coverage Δ

...on/scala/src/main/scala/whisk/common/Logging.scala
89.79% <100%> (+0.21%)
:arrow_up:

...scala/whisk/core/mesos/MesosContainerFactory.scala
58.49% <20%> (-3.33%)
:arrow_down:

...la/src/main/scala/whisk/core/mesos/MesosTask.scala
72.22% <58.33%> (-13.89%)
:arrow_down:

...core/database/cosmosdb/RxObservableImplicits.scala
0% <0%> (-100%)
:arrow_down:

...core/database/cosmosdb/CosmosDBArtifactStore.scala
0% <0%> (-95.54%)
:arrow_down:

...sk/core/database/cosmosdb/CosmosDBViewMapper.scala
0% <0%> (-92.6%)
:arrow_down:

...whisk/core/database/cosmosdb/CosmosDBSupport.scala
0% <0%> (-83.34%)
:arrow_down:

...abase/cosmosdb/CosmosDBArtifactStoreProvider.scala
0% <0%> (-62.5%)
:arrow_down:

...la/whisk/core/database/cosmosdb/CosmosDBUtil.scala
92% <0%> (-4%)
:arrow_down:

...ain/scala/whisk/core/entitlement/Entitlement.scala
88.42% <0%> (-2.48%)
:arrow_down:

... and 3 more

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 b860a2e...b456965. Read the comment docs.


Moon image tiles

These are the image tiles mentioned in https://github.com/uber/deck.gl/issues/4230#issuecomment-590524220.

 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.

We always add a README referencing the src of the data files in each directory, also mentioning the license under which they are included.

http://lroc.sese.asu.edu/about/terms Terms here, commit incoming.

Corresponding PR: https://github.com/uber/deck.gl/pull/4328

Yes, this looks good. Since I seem to have lost merge privileges on this repo, can you merge for now @Pessimistress ?
@ilan-gold Thanks for working through the issues. As soon as this is merged you should be able to access this data with rawgithubusercontent type link, similar to other examples.


Indoor Map not loading on Safari

Ensure this is the right place

Ensure this is the right place to report your issue.

If your issue is with the Azure Maps platform itself and not specific to a code sample gallery, please connenct with the Azure support team at https://azure.com/support or report the issue on the forums: https://stackoverflow.com/questions/tagged/azure-maps
If your issue is with the official Azure Maps documentation you can use the feedback button on the documentation page to directly report the issue to the documentation team.

Reporting these types of issues using this methods will likely result in your issue being resolved quicker than if reported here.

Please provide us with the following information:

This issue is for a: (mark with an x)
- [ x ] bug report
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Open the indoor map sample code on Safari. (https://azuremapscodesamples.azurewebsites.net/?search=indoor&sample=Creator indoor maps)

Any log messages given by the failure

Expected/desired behavior

Indoor map will be loaded

OS, Browser and Version?

Windows 7, 8 or 10. Android, iOS.
Edge, Chrome, Firefox, Safari
-Working on Chrome and Edge. Not working on Safari.

Mention any other details that might be useful

Thanks! We'll be in touch soon.

+1 on this issue. We had to downgrade to https://www.npmjs.com/package/azure-maps-indoor/v/0.1.3

Hello! @Iskoibuan and @jeslas! This issue has been resolved with an updated to the web SDK. Apologies for the inconvenience. Thank you!


Fixed #28636 -- Allowed customizing of translation fallback

Introduction of a new setting LANGUAGE_FALLBACK, which allows controlling the fallback language of Django's translation module. It falls back to LANGUAGE_CODE if not set, ensuring backward compatibility.
Thanks Claude Paroz for the analysis and Dhia Abbasi for the good ideas.

The feature from this PR seems to be desired by some, like described here and here.
Another simple use case for foreign web projects is just to be able to deliver an English fallback translation for users from different countries, without touching your project's LANGUAGE_CODE.

@seansisson What is the reason for your confusion? I would be glad to make things more clear, so any feedback is very welcome!

The ticket for this was a duplicate so I've retitled this to point at the parent: https://code.djangoproject.com/ticket/28636

@denisiko Denis, what is the status of this? I am looking exactly for same functionality.

Hi @adi-
I closed the request long time ago due to inactivity. You can ask to reopen the request or open another one.
Otherwise you could still write your own middleware like described here: https://code.djangoproject.com/ticket/28636

Yeah, I am studying your pull request, but having some errors – probably something with cache. When I refresh same view few times, I get 404 sometimes.
Btw, have you got working code?

This one is a workaround which works for me. With English as fallback language. But the fallback only works for languages detected from HTTP header (not session, cookies or URL).
from django.conf import settings
from django.middleware.locale import LocaleMiddleware
from django.utils import translation

class CustomFallbackLocaleMiddleware(LocaleMiddleware):
    def process_request(self, request):
        super(CustomFallbackLocaleMiddleware, self).process_request(request)
        lang = request.LANGUAGE_CODE
        lan_headers = translation.trans_real.parse_accept_lang_header(request.META.get('HTTP_ACCEPT_LANGUAGE', ''))
        preference = lan_headers[0][0] if lan_headers and len(lan_headers) > 0 else lang
        fallback_lang = 'en'

        django_translation = translation.trans_real.translation(lang)
        if preference[0:2] != lang[0:2]:
            translation.activate(fallback_lang)
        elif not settings.LANGUAGE_CODE.startswith(lang) and not lang.startswith(fallback_lang):
            django_translation._fallback = translation.trans_real.DjangoTranslation(fallback_lang,
                                                                                domain=django_translation.domain)

I don't know exactly why, but after translation.activate(fallback_lang) django returns 404...
Btw, what Django version you test it for?

2.2

I am pasting my workaround for language fallback other than LANGUAGE_CODE that supports all Django's inner functionality:
from django.conf import settings
from django.middleware.locale import LocaleMiddleware
from django.utils import translation

def get_language_from_request_monkey_patched(request, check_path=False):
    if check_path:
        lang_code = translation._trans.get_language_from_path(request.path_info)
        if lang_code is not None:
            return lang_code

    supported_lang_codes = translation._trans.get_languages()

    if hasattr(request, 'session'):
        lang_code = request.session.get(translation._trans.LANGUAGE_SESSION_KEY)
        if lang_code in supported_lang_codes and lang_code is not None and translation._trans.check_for_language(lang_code):
            return lang_code

    lang_code = request.COOKIES.get(settings.LANGUAGE_COOKIE_NAME)

    try:
        return translation._trans.get_supported_language_variant(lang_code)
    except LookupError:
        pass

    accept = request.META.get('HTTP_ACCEPT_LANGUAGE', '')
    for accept_lang, unused in translation._trans.parse_accept_lang_header(accept):
        if accept_lang == '*':
            break

        if not translation._trans.language_code_re.search(accept_lang):
            continue

        try:
            return translation._trans.get_supported_language_variant(accept_lang)
        except LookupError:
            continue

    try:
        # NOTE:
        # Below line is a place to set fallback language
        # return translation._trans.get_supported_language_variant(YOUR_FALLBACK_LANGUAGE)
        # For English:
        return translation._trans.get_supported_language_variant('en')
    except LookupError:
        return settings.LANGUAGE_CODE

class CustomFallbackLocaleMiddleware(LocaleMiddleware):
    def process_request(self, request):
        # NOTE: monkey patching get_language_from_request
        translation._trans.get_language_from_request = get_language_from_request_monkey_patched

        super(CustomFallbackLocaleMiddleware, self).process_request(request)

Thank you very much @adi- !
As Django 3.2, it seems that you need to import the language session key directly from "translation2:
from django.utils.translation import LANGUAGE_SESSION_KEY

My fully working middleware for language fallback other than default:
# locale_middleware.py

from django.conf import settings
from django.middleware.locale import LocaleMiddleware
from django.utils import translation

def get_language_from_request_monkey_patched(request, check_path=False):
    if check_path:
        lang_code = translation._trans.get_language_from_path(request.path_info)
        if lang_code is not None:
            return lang_code

    lang_code = request.COOKIES.get(settings.LANGUAGE_COOKIE_NAME)
    if lang_code is not None and lang_code in translation._trans.get_languages() and translation._trans.check_for_language(lang_code):
        return lang_code

    try:
        return translation._trans.get_supported_language_variant(lang_code)
    except LookupError:
        pass

    accept = request.META.get('HTTP_ACCEPT_LANGUAGE', '')
    for accept_lang, unused in translation._trans.parse_accept_lang_header(accept):
        if accept_lang == '*':
            break

        if not translation._trans.language_code_re.search(accept_lang):
            continue

        try:
            return translation._trans.get_supported_language_variant(accept_lang)
        except LookupError:
            continue

    try:
        return translation._trans.get_supported_language_variant(settings.LANGUAGE_FALLBACK)
    except LookupError:
        return settings.LANGUAGE_CODE

class CustomFallbackLocaleMiddleware(LocaleMiddleware):
    def process_request(self, request):
        # NOTE: monkey patching get_language_from_request
        translation._trans.get_language_from_request = get_language_from_request_monkey_patched

        super(CustomFallbackLocaleMiddleware, self).process_request(request)

# settings.py

LANGUAGE_FALLBACK = 'en' # your preferred language fallback, other than LANGUAGE_CODE


feat: make update_command take &mut self

This makes update_command consistent with update_interrupt and write_bar.
See https://github.com/rust-osdev/pci_types/pull/21#discussion_r1632276291.

Thanks!


MN Bootstrap only creates a full node, addtional steps are required to register as a masternode

The compose project doesn't include steps to complete DIP003 registration of the masternode, as per setup instructions here: https://docs.dash.org/en/stable/masternodes/setup.html#register-your-masternode
Clarify that the project creates a full node and/or include additional helper scripts for MN registration.

This should be covered by the introduction of #30


[Network] Ignite Network Features

Fixes #4422.
Application Security Groups
Add asg application security group commands.
nic create: Added --application-security-groups support.
nic ip-config create/update: Added --application-security-groups support.
vm create: Added --asgs support.
nsg rule create/update: Added --source-asgs and --destination-asgs support.
Closes #4415
VNET
vnet create/update: Added --ddos-protection and --vm-protection support.
Closes #4416
VNET Gateway
Added command: vnet-gateway vpn-client show-url
Closes #4390
DNS Private Zones
dns zone create/update: Added --zone-type, --registration-vnets and --resolution-vnets support.
These changes in the CLI, but since they do not plan to release at Ignite, they are suppressed.
Note: I could not add tests for many of these because they are not deployed to public Azure.

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[X] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

Command Guidelines

[X] Each command and parameter has a meaningful description.
[*] Each new command has a test.

(see Authoring Command Modules)

Opening the PR for review. I still have some work to do on VM create.

Features have been tested manually. I will author scenario tests when this is pushed to the private repo.

@Yugangw-msft rebased and pushed changes and re-recordings. Please take a look at the VMSS create changes to back me up :)


[BUG] Fresh installation of Rancher using developer codebase gives me NotReady Helm Operation Pods

Deploy Rancher from release/v2.8 as developer debug mode and go to localhost -> Pods.

Upon further investigation, this appears to be a problem when using a cluster created by rancher desktop using the moby (docker cli) runtime. I tested it with containerd and the issue did not happen and I also tested it in a cluster created using k3s without rancher desktop, with both containerd and moby and there was no issue as wel.
I created a issue in the rancher desktop github https://github.com/rancher-sandbox/rancher-desktop/issues/5534

Closing this issue since it seems like it is an issue on Rancher Desktop. Will reopen if there is anything from Mapps side of things.


cloud: add retry on web identity credentials

Signed-off-by: 3pointer<EMAIL_ADDRESS>
What is changed and how it works?

Issue Number: Close https://github.com/tikv/tikv/issues/13122
What's Changed:

In EKS environment. we shouldn't let the credential fail back. if we detected the credential provider from k8s env. and if we gets error. just retry it.
Add retry time to 14(about 5 mins) for all s3 interface and credentials interface. according to experience the jitter of network could be 1 min

Related changes

PR to update pingcap/docs/pingcap/docs-cn:
Need to cherry-pick to the release branch

Check List
Tests

Unit test
Manual test

create eks cluster.
import data.
make sure SA with correct role.

do backup check the backup succeed

bind SA with invalid role

do backup and check the error message

it doesn't fall back to default credentials provider.
Side effects

Performance regression

Consumes more CPU
Consumes more MEM

Breaking backward compatibility

Release note
Fix the issue that cause permission denied when gets error from web identity provider and fail back to default provider.

@3pointer please fix DCO check.

/merge

/run-tests

/run-tests


Make new Editor visible

When a new editor is docked it should be pretty visible for the user

https://github.com/miguel-martinr/Pycture/pull/23


Token expired response earlier than claimed token validity

Prerequisite

[X] Yes, I've read the readme completely.

Cache

[X] Yes, I've cleaned accessory cache and the issue still exists.

Version
1.7.0.-beta52
Device Infomation JSON File
No response
Device Control Mode
None
Logs
^[[37m[2/7/2024, 8:08:35 AM] ^[[39m^[[36m[TuyaPlatform]^[[39m [Předsíň LED Strip] Characteristic.ColorTemperature set to: 356
^[[37m[2/7/2024, 8:08:35 AM] ^[[39m^[[36m[TuyaPlatform]^[[39m [TuyaOpenAPI] Request:
method = post
endpoint = https://openapi.tuyaeu.com
path = /v1.0/devices/bfcb30c94d023b1370nx3p/commands
query = null
headers = {
  "t": "1707289715246",
  "client_id": "***",
  "nonce": "d28b1c0f-97e8-4ea1-a428-16f129dc4d34",
  "Signature-Headers": "client_id",
  "sign": "A30D2A948095754FBC4913FE18243BA2F6FA3EB6AEFDEDFFE8EAB7539B2DBF6C",
  "sign_method": "HMAC-SHA256",
  "access_token": "***",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.52"
}
body = {
  "commands": [
    {
      "code": "work_mode",
      "value": "white"
    },
    {
      "code": "temp_value",
      "value": 157
    }
  ]
}
^[[37m[2/7/2024, 8:08:35 AM] ^[[39m^[[36m[TuyaPlatform]^[[39m [TuyaOpenAPI] Response:
path = /v1.0/devices/bfcb30c94d023b1370nx3p/commands
data = {
  "code": 1010,
  "msg": "token is expired",
  "success": false,
  "t":<PHONE_NUMBER>348,
  "tid": "b59f2085c58711eeb4228e673063ebcd"
}
^[[37m[2/7/2024, 8:08:35 AM] ^[[39m^[[36m[TuyaPlatform]^[[39m ^[[31m[TuyaOpenAPI] Token expired. Tuya Cloud don't support running multiple HomeBridge/HomeAssistant instance with same tuya account.^[[39m

Other Infomations
Hi, from yesterday, the plugin only works for 2 hours, then it starts getting "token expired" responses from tuya. It does not refresh the token in time, it seems.

When HB is restarted, the plugin gets new token just fine... expire time is 7200, then it expires again

It seems that tuya returns expired token earlier than claimed 7200s ... see below - what can be done about it? Thanks!
8:49 token received
10:07 first token expired response logged
10:48 scheduled token refresh failed - token expired response

8:49 token received
^[[37m[2/7/2024, 8:49:53 AM] ^[[39m^[[36m[TuyaPlatform]^[[39m ^[[90mExecuted didFinishLaunching callback^[[39m
^[[37m[2/7/2024, 8:49:53 AM] ^[[39m^[[36m[TuyaPlatform]^[[39m Log in to Tuya Cloud.
^[[37m[2/7/2024, 8:49:53 AM] ^[[39m^[[36m[TuyaPlatform]^[[39m [TuyaOpenAPI] Login to: https://openapi.tuyaeu.com
^[[37m[2/7/2024, 8:49:53 AM] ^[[39m^[[36m[TuyaPlatform]^[[39m [TuyaOpenAPI] Request:
method = post
endpoint = https://openapi.tuyaeu.com
path = /v1.0/iot-01/associated-users/actions/authorized-login
query = null
headers = {
"t": "1707292193945",
"client_id": "***",
"nonce": "c247a08b-afac-4f06-b4d3-bd52ab91be84",
"Signature-Headers": "client_id",
"sign": "088119C256C15244350F3D5F59DF4A655073554B75A6DDF0EB7CFFD5D33B8A03",
"sign_method": "HMAC-SHA256",
"access_token": "",
"lang": "en",
"dev_lang": "javascript",
"dev_channel": "homebridge",
"devVersion": "1.7.0-beta.52"
}
body = {
"country_code": 420,
"username"<EMAIL_ADDRESS>"password": "5b4ac9d355c33adda90d4bb9b4299d8a",
"schema": "tuyaSmart"
}
^[[37m[2/7/2024, 8:49:54 AM] ^[[39mHomebridge v1.7.0 (HAP v0.11.1) (TuyaPlatform) is running on port 59004.
^[[37m[2/7/2024, 8:49:54 AM] ^[[39m^[[36m[homebridge-lg-thinq]^[[39m ^[[90m[request] get https://route.lgthinq.com:46030/v1/service/application/gateway-uri^[[39m
^[[37m[2/7/2024, 8:49:54 AM] ^[[39m^[[36m[TuyaPlatform]^[[39m [TuyaOpenAPI] Response:
path = /v1.0/iot-01/associated-users/actions/authorized-login
data = {
"result": {
"access_token": "aa300271ae8a22ba7eacee5c7fae015b",
"expire_time": 7200,
"platform_url": "https://openapi.tuyaeu.com",
"refresh_token": "d518f6e1ab605c465da5d6654c0731cc",
"uid": "eu1684426507105GX2vl"
},
"success": true,
"t":<PHONE_NUMBER>252,
"tid": "7b228750c58d11eea4757ade033758b0"
}
^[[37m[2/7/2024, 8:49:54 AM] ^[[39m^[[36m[TuyaPlatform]^[[39m Start MQTT connection.
^[[37m[2/7/2024, 8:49:54 AM] ^[[39m^[[36m[TuyaPlatform]^[[39m Fetching home list.

10:07 -- token expired ???
[2/7/2024, 10:07:57 AM] [TuyaPlatform] [TuyaOpenAPI] Request:
method = post
endpoint = https://openapi.tuyaeu.com
path = /v1.0/devices/bfcb30c94d023b1370nx3p/commands
query = null
headers = {
"t": "1707296877266",
"client_id": "***",
"nonce": "bfc4aad7-64d9-4f42-9f43-626567606b70",
"Signature-Headers": "client_id",
"sign": "BD9C628F721D70A4C24C6DD202095DD814E148B7EE402CDF267E95EF91ED125B",
"sign_method": "HMAC-SHA256",
"access_token": "aa300271ae8a22ba7eacee5c7fae015b",
"lang": "en",
"dev_lang": "javascript",
"dev_channel": "homebridge",
"devVersion": "1.7.0-beta.52"
}
body = {
"commands": [
{
"code": "work_mode",
"value": "white"
},
{
"code": "temp_value",
"value": 215
}
]
}
[2/7/2024, 10:07:57 AM] [TuyaPlatform] [TuyaOpenAPI] Response:
path = /v1.0/devices/bf6bccd10c189df0a7bcqi/commands
data = {
"code": 1010,
"msg": "token is expired",
"success": false,
"t":<PHONE_NUMBER>368,
"tid": "6283d688c59811eea4757ade033758b0"
}

10:48 refresh failed -- expired
[2/7/2024, 10:48:54 AM] [TuyaPlatform] [TuyaOpenAPI] Refreshing access_token
[2/7/2024, 10:48:54 AM] [TuyaPlatform] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaeu.com
path = /v1.0/token/d518f6e1ab605c465da5d6654c0731cc
query = undefined
headers = {
"t": "1707299334492",
"client_id": "***",
"nonce": "9cc549c8-b137-49fb-99c9-7af55b6d1b52",
"Signature-Headers": "client_id",
"sign": "3390042D11B74DC0604AAE5B044262C80F54B88816E3A5DAAE5C78B91B64B3FB",
"sign_method": "HMAC-SHA256",
"access_token": "aa300271ae8a22ba7eacee5c7fae015b",
"lang": "en",
"dev_lang": "javascript",
"dev_channel": "homebridge",
"devVersion": "1.7.0-beta.52"
}
body = null
[2/7/2024, 10:48:54 AM] [TuyaPlatform] [TuyaOpenAPI] Response:
path = /v1.0/token/d518f6e1ab605c465da5d6654c0731cc
data = {
"code": 1010,
"msg": "token is expired",
"success": false,
"t":<PHONE_NUMBER>606,
"tid": "1b237872c59e11eea80ac21fcdf0c8ac"
}

The issue fixed itself after tuya account password was changed. Please close.


Set width and height values in px?

Currently i am trying to export the chart from our app to ppt using PptxGenJS. I am getting px values for all the elements, so how can i set the values (width and height) in px(units) to draw any shapes in PptxGenJS?
If we can't set px in PptxGenJS, do you have any idea that how to convert px to inch/percentage which can be use in PptxGenJS?
Can you please give some suggestion on this. Thanks in advance.

Hi @alagarrk ,
Thanks for the question.
A good rule of thumb is 100 px = 1 inch as modern LCD displays are mostly 96px/inch.
You can also pass x,y,w,h and colW percentage values, so it may be easier to just honor the layout you have now.  For example, create a table that is 100% wide and has 3 columns, 25%/25%/50%, that way no pixel conversion is necessary.
Or you could be super fancy and measure the innerWidth of an HTML element relative to its window.size and then use that same percent as arguments to the library...

@gitbrent Thank you for the solution. Now its works fine :+1:
Currently we can able to export the basic primitives chart [http:// basicprimitives.com/index.php] to PPT using PptxGenJS (Shapes). But the problem is we have generated chart as shapes(rect & lines), all are separate elements. If user wants to change/move the parent/child node, they need to move the relative shapes(lines & arrows).
Now i am trying to add smartArt(Organisation Chart) in powerpoint to generate the chart.
Is it possible to add the smartArt Graphics and show hierarchical information or reporting relationships in an organization.?
Ex:

Hi @alagarrk ,
I'm very glad to hear you were successful!
SmartArt isn't something i was planning on supporting, but Charts are coming soon... :-)

Ok @gitbrent Thank you very much for your support.
Do you have any idea, how to add hierarchical chart in powerpoint using PptxGenJS. If you give some suggestion/idea it will very helpful for me to implement this.
Thanks in advance.


Fix codacy warnings

Coverage remained the same at 92.815% when pulling 9eea2c6c4c68ce4b0a69ebf2cb07cecca93454ad on cleanup into 83200cd95a800469157fba7b68b978181a66c1b5 on development.


Update alevin-fry test files

This updates the test alevin-fry results directories to use files from salmon version 1.5.2 and alevin-fry version 0.4.1, which include more extensive metadata, and change the name of meta_info.json to quant.json
Applying these changes may well break some tests in scpcaTools, as the results files have also changed. Those changes will come in a related PR, at which point I will make this one not a draft.

I was wrong, all of the scpcaTools tests still seem to pass, so the processing differences must wash out!


az ad app permission add ERROR : Property requiredResourceAccess.resourceAccess is invalid.

I have some trouble adding roles via the permission subcommand:
az ad app permission add --id $MyAppId --api $MyApplicationIWantToAccessId --api-permissions "<RoleId>=Role"

if I add my role manually via the manifest on azure, it works,
if I do the same thing with this command, I get the following error:
az : ERROR: Property requiredResourceAccess.resourceAccess is invalid.
Au caractère Ligne:1 : 1
+ az ad app permission add --id xxxx --api xxxx --api-permissions "xxxx ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (ERROR: Property...ess is invalid.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

I only found examples using "Scope" instead of "Role" as permission type

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

ID: 6a5b5348-f67e-ef14-0529-4c80fddd4bc6
Version Independent ID: bfd7e6b1-1fba-3d25-8ee3-5105bcf4157d
Content: az ad app permission
Content Source: src/command_modules/azure-cli-role/azure/cli/command_modules/role/_help.py
Service: active-directory
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

@zipper97412 Can you please use --debug share with me the trace?

please reactivate with more traces

i had the same problem, got it to work using <RoleId>=Scope instead of <RoleId>=Role, then when I call permission list, it says type is "Role"

Having the same problem with New-Object -TypeName "Microsoft.Open.AzureAD.Model.ResourceAccess" -ArgumentList "---------------id------------","Role"

i have the same issue with
az ad app create --display-name GraphAPI_SP33 --native-app true --required-resource-accesses "[{'resourceAppId': '00000003-0000-0000-c000-0000000xxxxx', 'resourceAccess': [{'id': '65319a09-a2be-469d-8782-xxxx,'type': 'Role'}]}]" --available-to-other-tenants false

We currently don't have enough bandwidth maintaining az ad module which still uses AD Graph, please see https://github.com/Azure/azure-cli/issues/12946 for calling MS Graph with az rest.

Thanks @jiasli  - it works with the following command line:
 az rest --method POST --uri "https://graph.microsoft.com/beta/applications" --body "{'displayName': 'testApp1234', 'requiredResourceAccess':[{'resourceAppId': '00000003-0000-0000-c000-000000000000', 'resourceAccess': [{'id': '65319a09-a2be-469d-8782-f6b07debf789','type': 'Role'}]}]}"

I am glad it works for you.
Though I didn't quite understand the problem yet, here are some information that may be helpful.
From the result of az ad sp show --id 00000003-0000-0000-c000-000000000000, we can see
    {
      "allowedMemberTypes": [
        "Application"
      ],
      "description": "Allows the app to read or write your organization's user flows, without a signed-in user.",
      "displayName": "Read and write all identity user flows",
      "id": "65319a09-a2be-469d-8782-f6b07debf789",
      "isEnabled": true,
      "value": "IdentityUserFlow.ReadWrite.All"
    },

is under appRoles which should be application permission, so type should be Role, instead of Scope.
az ad app permission add shows some help about their relationship:
> az ad app permission add --help

Command
    az ad app permission add : Add an API permission.
        Invoking "az ad app permission grant" is needed to activate it.

        To get available permissions of the resource app, run `az ad sp show --id <resource-appId>`.
        For example, to get available permissions for Graph API:
          - Azure Active Directory Graph: `az ad sp show --id 00000002-0000-0000-c000-000000000000`
          - Microsoft Graph: `az ad sp show --id 00000003-0000-0000-c000-000000000000`
        Application permissions under the `appRoles` property correspond to `Role` in --api-
        permissions. Delegated permissions under the `oauth2Permissions` property correspond to
        `Scope` in --api-permissions.

The problem is simply that it does not recognize the "Type" -> "Role" under the permissions when the resource requirements are passed and throws the error (which is in the debug log). "Role" is not recognized or accepted when adding permissions to the Active Directory applications.

@fabienso anyway, let's stick to az rest for now. We will revisit this when we migrate to MS Graph in the future.


Consider combining loops that iterate Map (ie revert back to breadth first search)

This change uses the same  entries() iterator to iterate over testing key/value pairs.
See https://github.com/epoberezkin/fast-deep-equal/commit/3e8c0565f19a20d4ecf8941ee6b8d0b8c3a88e88#diff-443d5464f90756fa4d7b70e3b5232f7b86ddeeca5d98581a0450a6ce08033e0dL30-R31
In 3e8c0565f19 it was helpful to use entries() rather than keys(). But 3e8c0565f19 also changed a breadth first search to a depth first search.  This depth first search requires an extra entries() iterator.  Is there value doing a depth first search? (ie testing all keys first then proceeding to values)
While this change does reduce code, the performance benefit really depends on the data...  When I use the existing benchmarks, I am seeing slightly better performance with this change (which is a breadth first search) of the Map.  But I can also envision different data that performs better with a depth first search...
I am curious to whether people think a Depth First or Breadth First search of a Map is better for their data.
@xobotyi is there a reason you chose to change it from breadth first to depth first?

Coverage remained the same at 100.0% when pulling b0ce91d50cf470fe1d33d0d33f27f23f5ea8eebd on darcyparker:ReduceIterationInMapCase into a8e7172b6c411ec320d6045fd4afbd2abc1b4bde on epoberezkin:master.

@darcyparker it maintains the assummption that compare keys first and fail on last key mismatch is faster than compare keys+values and fail on last key. Nothing than that.
In case of equality you have only small extra-iteration penalty, since you anyway have to compare all the keys and values.
In case of values mismath the penalty varies, because althogh keys may be equal, the first value can differ and fast-fail here would be to fail on value comparison.
In case of keys mismatch we skip values mismatch phase, and it gives most benefit, since values comparison, in most cases, is
more time-consuming operation.
So yeah, this aproach can be called data-specific.

@xobotyi - Thanks for explanation.
I am going to close this ticket now.  If others question why its two iterators, my hope is they will come across this thread/conversation.
If there are data specific situations where a breadth search approach is better, then maybe an enhancement to add an option/provider of how to search could be added.


Fix bug when adding additional sizes to empty size mapping.

What does this change?

Fixes a bug where additional sizes could be added to a breakpoint which has no existing size definition. When adding additional sizes, instead of appending the additional sizes to the existing ad sizes from the next smallest breakpoint with ad sizes, it would overwrite these sizes.

Why?

Inline slots on liveblog pages at phablet & tablet viewport sizes were only using the additional sizes and not the sizes defined for mobile viewport with the additional sizes.

Screenshots

Before
After

Rather than adding the complexity of findAppliedSizesForBreakpoint could we instead just have a typeguard to ensure that additionalSizes are only added for breakpoints that exist in the adsizes?

Rather than adding the complexity of findAppliedSizesForBreakpoint could we instead just have a typeguard to ensure that additionalSizes are only added for breakpoints that exist in the adsizes? and restore that breakpoint that's missing and causing the bug.

We could use a typeguard. I don't see a way we could introduce a bug without a typeguard catching it.
The reason I thought the function would be a good idea is so that if we want to add more additional sizes in the future, it will just work without having to consider the original definitions. If we had a type guard instead, we would have to duplicate a breakpoints size mappings whenever we wanted to add additional sizes. We'd also have to remember how the slot size mappings work (I've added a bunch of comments to help with this). That's why I thought a function would be better here.

Rather than adding the complexity of findAppliedSizesForBreakpoint could we instead just have a typeguard to ensure that additionalSizes are only added for breakpoints that exist in the adsizes? and restore that breakpoint that's missing and causing the bug.

We could use a typeguard. I don't see a way we could introduce a bug without a typeguard catching it.
The reason I thought the function would be a good idea is so that if we want to add more additional sizes in the future, it will just work without having to consider the original definitions. If we had a type guard instead, we would have to duplicate a breakpoints size mappings whenever we wanted to add additional sizes. We'd also have to remember how the slot size mappings work (I've added a bunch of comments to help with this). That's why I thought a function would be better here.

I guess I was envisioning where we'd have a much stricter type of slotSizeMapping using as const satisfies or something. Allowing at compile time to know that you're trying to concat to a breakpoint (or slot) that does or doesn't exists.
But I've just had a quick experiment I think it'll probably require a pretty big refactor of the sizeMappings at best and might be impossible at worst!😅

Great documentation improvements!


Use j2V8 instead of WebView

Similar to #97 investigate whether j2v8 could be used.

[x] putFile(encrypted)
[x] getFile (encrypted)
[x] putFile(unencrypted)
[x] getFile(unencrypted)
[x] encryptContent(string)
[x] decryptContent(string)
[x] encryptContent(binary)
[x] decryptContent(binary)

Things left to do

[ ]  use secure randoms
[ ]  Tidy up console output
[ ]  add unit tests

fixed by #103


Implement VICREg

🌟 New SSL approach addition
Approach description

Recent self-supervised methods for image representation learning are based on
maximizing the agreement between embedding vectors from different views of
the same image. A trivial solution is obtained when the encoder outputs constant
vectors. This collapse problem is often avoided through implicit biases in the
learning architecture, that often lack a clear justification or interpretation. In this
paper, we introduce VICReg (Variance-Invariance-Covariance Regularization), a
method that explicitly avoids the collapse problem with a simple regularization term
on the variance of the embeddings along each dimension individually. VICReg
combines the variance term with a decorrelation mechanism based on redundancy
reduction and covariance regularization, and achieves results on par with the state
of the art on several downstream tasks. In addition, we show that incorporating
our new variance term into other methods helps stabilize the training and leads to
performance improvements.

https://arxiv.org/pdf/2105.04906.pdf
Architecture

Open source status

[ ] the model implementation is available: (give details)
[ ] the model weights are available: (give details)
who are the authors: Adrien Bardes (@Adrien987k), Jean Ponce, Yann LeCun

Hi @QuentinDuval, I saw that the official code was recently released. I'd love to see the method added to VISSL as well. Would you be open to a PR? Let me know, thanks!

@clane9 I would love to see vicreg supported in vissl

@QuentinDuval is there an update on this? I'm keen to try out VICREG.

Hi @crypdick, @QuentinDuval. I did have a draft implementation of VICReg in my fork. I'd have to rebase and finish it up, but then I'd be happy to open a PR. lmk!


Can Gauntlet compare CSV output?

@powerc9000 Is it currently possible to compare CSV output using Gauntlet? If not, this would be a beneficial feature to have....  Ideally, we would want to see which field is different not just the line.

Right now it will compare anything file that doesnt end in .xml or .json as text. So in a very limited way yes, but we can improve that.

@powerc9000 please take a look at service=CreateDirectCredit/Commerce-JPM/Navision-CAL&country=CA.t1-test? Diff-tool reports no difference, but gauntlet claims it doesn't pass.

@dimitry12 that specific test is fixed in b6db0dea1ab4e5369110be083d665bf535158ad4

@dimitry12 The problem was differences in line endings.

@powerc9000 In this particular case, the type of EOL character is important because the final processing system requires CRLF.  Files will be rejected or incorrectly processed when the wrong EOL character is used.

@bluetechy that's hardcore :)
@powerc9000 should that fix be partially reverted for gauntlet to check for exact line-endings match?

@dimitry12 We can thank Microsoft and JPM for that.

@dimitry12 Can you correct the EOL characters in your output file to use CRLF for this particular test?  Also, let's add a note to this test using the new JSON format that @powerc9000 added to indicate that EOL characters are important.

@bluetechy I used the files you emailed me verbatim. Please, updated with what you have if you have different output.


Housekeeping

A bit of housekeeping.

Updating dev dependencies
Cleanup npm audit
Add missing newlines to fit code style

🧹

🧹


go_1_20: 1.20.8 -> 1.20.9

Description of changes
Changelog: https://go.dev/doc/devel/release#go1.20

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Rebuilds seem low, could this go to the main branch directly?

Rebuilds seem low, could this go to the main branch directly?

I can retarget this to master. I was not aware of how many rebuilds would happen at the time I made the PR so thought better to target staging.
Should I go ahead and retarget this ? @fabianhjr

Sure, though note that you may need to rebase your branch to the merge-base before changing the target branch in github to avoid a mass ping. (More info at https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#rebasing-between-branches-ie-from-master-to-staging )

Sure, though note that you may need to rebase your branch to the merge-base before changing the target branch in github to avoid a mass ping. (More info at https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#rebasing-between-branches-ie-from-master-to-staging )

Even though you gave such a nice pointer, I still managed to mess it up :(
Sincere apologies @fabianhjr

Happens from time to time. :sweat_smile:
Will diverge from the procedure merge when ofborg succeeds since notifications are low enuough and change is small enough.

Oh no, I messed up to I apologize as well, lost track of where the default go version change was so far.
https://github.com/NixOS/nixpkgs/pull/254878
Could you create a new pull request targeting staging-next?
Reference
go, buildGoModule, buildGoPackage: default to 1.21

    [python-updates](https://github.com/NixOS/nixpkgs/compare/python-updates) ([#254878](https://github.com/NixOS/nixpkgs/pull/254878)) [staging](https://github.com/NixOS/nixpkgs/compare/staging) ([hllizi/nixpkgs#1](https://github.com/hllizi/nixpkgs/pull/1), [#254878](https://github.com/NixOS/nixpkgs/pull/254878)) [staging-next](https://github.com/NixOS/nixpkgs/compare/staging-next) ([#257792](https://github.com/NixOS/nixpkgs/pull/257792), [#254878](https://github.com/NixOS/nixpkgs/pull/254878))


Remove sandboxing host function interface

In #12501 we removed the dependence of pallet-contracts on the sandboxing interface. This was its only user and it was never used in production (the interface was never available on validators). pallet-contracts now uses in-runtime wasmi exclusively. In the future when we want to speed up execution we will do that with another interface  and probably a more suitable bytecode for singlepass compilation.
This PR also removes the sandboxing functionality and wasmer dependency of sc-executor.  It is a prerequisite for a larger refactoring of that crate that should make it much simpler. Sandboxing and execution of runtime should not be conflated in this way.
This removes a host function that was never available on validators and is not used by any project I know of. I add the newhostfunction label just in case, though.

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2125356

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2127409

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2127408

bot merge


HOTT-994: Fixed css class for 'related content' on RoO tab

Jira link
HOTT-994
What?
I have added/removed/altered:

[x] Fixed the CSS layout class on the 'Related content' section of the Rules of Origin tab

Why?
I am doing this because:

Its not showing correctly on mobile

Before

After

Thanks for adding the screenshot! 🥇


Add MarkDown formatting to examples/tensorboard_embeddings_mnist.py

Summary
Add MarkDown formatting to examples/tensorboard_embeddings_mnist.py.
Result

Related Issues
#12219
PR Overview

[ ] This PR requires new unit tests [y/n] (make sure tests are included)
[ ] This PR requires to update the documentation [y/n] (make sure the docs are up-to-date)
[x] This PR is backwards compatible [y/n]
[ ] This PR changes the current API [y/n] (all API changes need to be approved by fchollet)

Thanks for the PR.
We are postponing the addition of new examples on keras.io pending a future refactor of the docs website (which will have a dedicated examples section).


chore: use layer 2 docker images and inherit sdk-platform-java-config as the parent

Need to first wait for sdk-platform-java-config to be released.

LGTM. Will approve once passing CI checks.

Running into Unable to read gs://cloud_devrel_public_logs/resultstore/.../build.log. Either the file does not exist or there is a permission issue. for all three Kokoro checks.

Turned out to be a UI issue.

gax: 2.39.0 which is brought in by shared-dependencies 3.21.0 is being included as expected:
15:52:17:029 [WARNING] Properties file at 'jar:file:///root/.m2/repository/com/google/auth/google-auth-library-oauth2-http/1.21.0/google-auth-library-oauth2-http-1.21.0.jar!/META-INF/native-image/native-image.properties' does not match the recommended 'META-INF/native-image/com.google.auth/google-auth-library-oauth2-http/native-image.properties' layout.
15:52:17:039 [INFO] Executing: /opt/graalvm-ce-java11-22.3.3/bin/native-image -cp /tmpfs/src/github/google-cloud-java/java-compute/google-cloud-compute/target/classes:/tmpfs/src/github/google-cloud-java/java-compute/google-cloud-compute/target/test-classes:/root/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/root/.m2/repository/com/google/api/grpc/proto-google-iam-v1/1.25.0/proto-google-iam-v1-1.25.0.jar:/root/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/root/.m2/repository/com/google/api/api-common/2.22.0/api-common-2.22.0.jar:/root/.m2/repository/com/google/http-client/google-http-client/1.43.3/google-http-client-1.43.3.jar:/root/.m2/repository/com/google/api/gax/2.39.0/gax-2.39.0.jar:/root/.m2/repository/com/google/http-client/google-http-client-gson/1.43.3/google-http-client-gson-1.43.3.jar:/root/.m2/repository/org/junit/platform/junit-platform-commons/1.9.3/junit-platform-commons-1.9.3.jar:/root/.m2/repository/com/google/protobuf/protobuf-java-util/3.25.1/protobuf-java-util-3.25.1.jar:/root/.m2/repository/com/google/guava/guava/32.1.3-jre/guava-32.1.3-jre.jar:/root/.m2/repository/com/google/api/gax/2.39.0/gax-2.39.0-


fix ruby 2.4.0 and json 1.8.3 compatibility issues and add github username

Fix ruby 2.4.0 and json 1.8.3 compatibility issues for MacOS Sierra users by updating Gemfile
Add setting in _config.yml for displaying your github username on home page rather than your full name
Update index.html to display github username rather than full name

Thank you!


Cannot Get Azure Function Triggered.

Hello All,
Requirement - I just want to trigger Azure Function (proactive)(Developed in visual Studio from Bot Template)similar to Proactive Template in Bot Service.
I have developed the solution directly from visual studio(without going to bot service and selecting a Proactive template).When I am testing it in emulator message gets queued but I am not able to get the trigger control back as similar to one in Proactive template.
Here is the screen shot of my azure trigger function where i have entered sender ID as bot ID.

Kindly , Let me know If i have entered wrong SenderID in the picture above.
Here is my code.
// messageRecieved method in my DialogClass
public async Task MessageRecievedAsync(IDialogContext context, IAwaitable<IMessageActivity> result)
       {
           var message = await result;
           var queueMessage = new Message()
           {
               ResumptionCookie = new ResumptionCookie(message),
               Text = message.Text
           };

         *****---- AddMessageToQueueAsync----***** is a user defined method implementation given below.

           await AddMessageToQueueAsync(JsonConvert.SerializeObject(queueMessage));
           await context.PostAsync("Successfully queued");
           context.Wait(MessageRecievedAsync);
       }

      public static async Task AddMessageToQueueAsync(string message) {

           var storageAccount = CloudStorageAccount.Parse(Utils.GetAppSettings("AzureConfig"));

           var queueClient = storageAccount.CreateCloudQueueClient();

           var queue = queueClient.GetQueueReference("myqueue-items");

           await queue.CreateIfNotExistsAsync();
           var queueMessage = new CloudQueueMessage(message);
           await queue.AddMessageAsync(queueMessage);

       }

In my MessagesController.cs

// if message Type is trigger.
`
else if (message.Type == ActivityTypes.Event)
           {
               IEventActivity trigger =  message;
var backMessage = JsonConvert.DeserializeObject<Message(((JObject)trigger.Value).GetValue("Message").ToString());

               var messageActivity = (Activity)backMessage.ResumptionCookie.GetMessage();

               ConnectorClient client = new ConnectorClient(new Uri(messageActivity.ServiceUrl));
               var triggerReply = messageActivity.CreateReply();
               triggerReply.Text = $"This is coming back from trigger{messageActivity.Text}";
               client.Conversations.ReplyToActivityAsync(triggerReply);

           }

Thanks.

Hey,
Since you have developed solution your self, you have to make sure that you configure application settings or environment variables containing DirectLine key, and an endpoint (was fixed in later version but since I am not sure about your version I will recommend creating one). Here is how it would look like:

You can find this variables under your function app setting. Let me know if it still doesn't work.

@maxpert - Thanks for quick response.
I am still little confused.Please clarify me with following answers:
1.Which endpoint do i need to enter? Is it the Bot Framework endpoint which is given when we publish the bot to the store? if yes, then which secret do we need to provide?
My Bot presently consists of App ID, App Secret,Bot Id in its WebConfig. so, from where can i get this Directline app secret and endpoint.
2.I have developed my solution using bot builder template in Visual Studio 2015.
Its bit confusing and with no proper documentation so its hard to understand.
Thanks for your help, awaiting quick response.

@msftgits @matvelloso Please help !

You don't need to trigger the directline endpoint. Create a separate api with its own controller, just so you can call it from anywhere you want. In there, you start your proactive message. In fact that's exactly what I'm doing here: https://github.com/MicrosoftDX/botFramework-proactiveMessages/blob/master/csharp/simpleSendMessage/Controllers/CustomWebAPIController.cs

And you might not even need the resumption cookie, take a look at the readme of that repo

Hi I am using Node.js for development . I have created a bot service with proactive template . In the bot service my code is succesfully working when I send a message its added to the queue and we get trigger message after few seconds. But when i try to create the bot without using bot service in azure I am unable to figure out what will will be the messaging end point in the emulator or in bot framework . please help me .

@SomaSharathSurya you can configure your endpoint via your Node server module, eg. Restify (or Express).  Check out the routing docs for Restify here.


Make package composer 2 compatible

Didnt, try to push yet.
But the composer require didn't fail anymore.
Tested with:
curl https://getcomposer.org/composer-2.phar --output composer-2.phar

Hi @BramG, thanks for this PR!
Can you also update the GH Actions build to support Composer 2 in the build matrix?
https://github.com/Elendev/nexus-composer-push/blob/master/.github/workflows/testing-and-cs.yaml#L27
Thanks!

@Elendev I need some help, looking at the documentation https://github.com/marketplace/actions/setup-php-action using v2 should work but it isn't. I tried to execute the composer require with composer 2 locally and it works perfectly...

It's green!

@BramG I've released 0.3.0, thanks!


Issue with "Lua by sumneko" Extension

Hey,
I've been trying out your Extension, and I'm impressed it works pretty flawlessly so far.
Sadly, I faced an Issue with the Plugin you recommended, that being “Lua by sumneko for Lua syntax highlighting & linting”.
It constantly tries to search the directory of the Root Directory, I'm guessing that the Connections are handled by opening a web socket / virtual File System and reading and updating from there, but it seems to not correctly be revealing it to the system. And thus reverting to last known location being Root.

OS: Arch Linux x86_64
Kernel: Linux 6.12.6-arch1-1

$ craftos --version
CraftOS-PC v2.8.3
Built with: cli webp mixer print_html
Copyright (c) 2019-2024 JackMacWindows. Licensed under the MIT License.

Duplicate of #13


[1.12.2] ForgeEssentials MultiWorld OTG new world bug

OTG Plugin or Mod

[x] OTG Mod for Forge
[ ] OTG Plugin for Spigot

OTG Version

[x] 1.12.2_V9.3
[ ] 1.12.2_v8_r1
[ ] 1.12.2_v7_DEV_r26
[ ] 1.12.2-v6
[ ] 1.12.2-v5
[ ] 1.11.2-v8
[ ] 1.11.2-v9
[ ] 1.10.2-v21
[ ] Other - specify here

Forge or Spigot Versions
Forge <IP_ADDRESS>54
What other plugins are you running?
modlist.txt
Description
Describe the bug
Soft Crash when trying to create a new dimension.
To Reproduce
Steps to reproduce the behavior:
With Open Terrain Generator and Traveler's Dream (compact) both installed and enabled, try to create any kind of dimension (such as FLAT or OTG).
World Creation will fail part way through. (though it will try to back it up.)
Expected behavior
It shouldn't fail?
Related Issue: ForgeEssentials/ForgeEssentials#2588

Hey @jcc10 , if you want to create OTG dimensions for Forge, you can always use the in-game O menu to add/delete dimensions. You may have to remap the O button if it's already in use, for MP you need to be opped. I see the issue you've linked has also been responded to, if you still have problems, please try to remove any mods you can to narrow down the possible causes, and feel free to reopen this issue.

I was unaware of that feature. Thank you.


Update to match lexical v0.12.0

This repo hasn't been updated to match lexical/react since lexical reached v0.11.0. In the future, I intend to update the repo more regularly, so new features added in lexical "patch" releases will be accessible quicker.
It may be a week until I am able to update and close this issue.

Closed via #13, many thanks to @ScottKitchell!