Understanding Embeddings in Machine Learning

Article checklist
Attention
Our Peer Reviewer and Content Moderator teams do NOT provide any revisions services. All revisions and edits should be completed on your own forked repo (as to not take up room in the queue) in order for our team to review them all in a timely manner.
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.

As a rule of thumb - please be sure to only submit articles (pull requests) that are fully polished and ready to be published. Be sure to go through our resources documents for extra and 3rd party (vetted) resources to help improve overall technical writing.

Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels, under 300KB in size, and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

`This closes #5502

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

Plagiarism check done ✅

@ogoti-lilian Please work on the revisions before we can proceed.

@wilkistermumbi The requested changes have been made. Kindly proceed with the review. Thank you

@wilkistermumbi if any other edits are needed we will be closing the PR 👍

@wilkistermumbi any updates on this?

@ogoti-lilian Please pay attention to all the commits made in this article. It will help you better your next. Otherwise, this is a nice read.
cc: @hectorkambow

Your sentences are really long. Cut them down into multiple ones. Going to close this PR to clear the queue. Take your time and work on it. @ogoti-lilian
Cc @wilkistermumbi

Your sentences are really long. Cut them down into multiple ones. Going to close this PR to clear the queue. Take your time and work on it. @ogoti-lilian Cc @wilkistermumbi

@ahmadmardeni1 Noted with thanks, can the PR be reopened upon the completion of the changes?
cc @wilkistermumbi

Your sentences are really long. Cut them down into multiple ones. Going to close this PR to clear the queue. Take your time and work on it. @ogoti-lilian Cc @wilkistermumbi

@ahmadmardeni1 Noted with thanks, can the PR be reopened upon the completion of the changes? cc @wilkistermumbi

@ogoti-lilian Yes. But make sure to take your time on it to avoid future PR closures.

Hi @wilkistermumbi, Am done with the changes that were requested. Could you kindly re-open the PR to allow me to update the changes.
Thank you. cc @ahmadmardeni1

@ogoti-lilian You can now update the changes.

@ogoti-lilian You can now update the changes.

Hello @wilkistermumbi, I have updated the required changes. You can review them. Thank you

@ogoti-lilian You can now update the changes.

Hello @wilkistermumbi, I have updated the required changes. You can review them. Thank you

@ahmadmardeni1 Over to you for final review.


Test scrubbing

As per https://github.com/rollbar/rollbar-php/pull/112 scrubbing does not work correctly. There is one test for scrubbing and it obviously does not cover a reasonable amount of surface area. We need better tests around how things are scrubbed.

https://github.com/rollbar/rollbar-php/blob/master/tests/DataBuilderTest.php#L152-L163 is the one place that scrubbing is currently tested.

I would check out the comments on https://github.com/rollbar/rollbar-php/pull/112 as to the reasoning for those proposed changes to scrubbing are and what the expected behavior is. In general, if a have a key in scrub_fields, we want to replace the value with ******** but we want to do that within recursive structures as well.

This is covered by PR https://github.com/rollbar/rollbar-php/pull/126


Upgrade to Chrome 41

WIP

@aroben I believe something is wrong with the libchromiumcontent-win CI machine, it now reports an error for both chrome41 and master branch when running gyp_chromium:
No such file or directory: '...\\out\\Debug\\gyp-win-tool'

However yesterday the exact same commit can build without problem, do you know if there is any change about Python or gyp environment on the CI machine recently?

Hm, have you tried deleting the workspace? Maybe there's some build artifact getting in the way.


Add support for horizontal reading progressions for PDF

Added

The PDF navigator now honors the publication reading progression with support for right-to-left and horizontal scrolling.

The default (auto) reading progression for PDF is top-to-bottom, which is vertical scrolling.

With the upcoming presentation settings, we'll be able to change the reading progression from the user settings.

I don't understand why the default reading progression should be TTB... In my mind, scrolling mode and reading progression are two (mostly) different things.

EPUBs can be read continuously too. With your interpretation, I feel like the readingOrder property of Epub-originated publications should not necessarily be the same as the spine's page-progression-direction. We might have TTB or BTT, at will. I'm afraid all of this might make little sense.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_91537e43-bccf-4ea1-8580-d7d4356120c1/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_91537e43-bccf-4ea1-8580-d7d4356120c1.git

Docs Build status updates of commit 977a1bc:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-GitBranchDeletedOrForcePushed] Cannot sync git repo to specified commit because branch Release_Archive_master_2021-07-07-01-24-13 has been deleted or has been force pushed

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


suppress scss deprecation warnings for now

If you have installed the new dependency versions you might have noticed a slight increase in warning messages in your console!
This PR updates the dependencies loading our styles, which will remove this warning.
Whoever reviews this PR - please check the tools' styles before fully approving it. There shouldn't be any issue, but let's stay on the safe side.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Reviewer - this PR has made changes to one or more package.json files.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Reviewer - this PR has made changes to one or more package.json files.

Snapshot stored with reference name:
refs/pull/15597/merge
Test environment:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15597/merge/index.html
To test a playground add it to the URL, for example:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15597/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/15597/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/15597/merge
https://gui.babylonjs.com/?snapshot=refs/pull/15597/merge
https://nme.babylonjs.com/?snapshot=refs/pull/15597/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/15597/merge#BCU1XR#0

Visualization tests for WebGPU (Experimental)
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15597/merge/testResults/webgpuplaywright/index.html


fix: make register buttons corners rounded

Fixes #1020
Changes:
-Modified "register" buttons in fragment_attendee and fragment_tickets to have rounded corners by creating a drawable file containing shape with corner radius to be used as background for button
-Changed screenshot in README.md to reflect this change
Screenshots for the change:

@nikit19 what changes should I make? The tickets button on the previous fragment looks the same,so I made these to look consistent

The button doesn't look good in my opinion

@nikit19 what changes should I make? The tickets button on the previous fragment looks the same,so I made these to look consistent

@addiegupta try adjusting the width. I think it is a little different. If not then it is fine

@addiegupta try adjusting the width. I think it is a little different. If not then it is fine

The layout_width is set to "match_parent" for all and  layout_margin is 16dp for all

I have made the required changes. Please review @nikit19

Do i need to make any changes @nikit19  @iamareebjamal ?

resolve conflicts

@liveHarshit done

@liveHarshit as app theme has been changed to material components in #1255 , can this be merged now or should I make any changes?

Okay, now you can use material button instead.

https://material.io/design/components/buttons.html#hierarchy-placement
https://material.io/develop/android/components/material-button/

@liveHarshit used MaterialButton and updated GIF

Buttons should have been blue. Please correct app theme to utilize secondary color for buttons

Buttons should have been blue. Please correct app theme to utilize secondary color for buttons

According to the Material Components Guidelines "The baseline color for contained, text and outlined buttons is your primary color." Should I individually set the colors of the buttons to blue?

You should set it in the primary style

You should set it in the primary style

In the latest commit , I have created a new style, setting backgroundTint as the secondary color and then used this style as the materialButtonStyle in the primary AppTheme style. Setting colorButtonNormal directly in the primary AppTheme did not apply the color to the new MaterialButtons

You should set it in the primary style

In the latest commit , I have created a new style, setting backgroundTint as the secondary color and then used this style as the materialButtonStyle in the primary AppTheme style. Setting colorButtonNormal directly in the primary AppTheme did not apply the color to the new MaterialButtons

@iamareebjamal changes made and latest upstream merged

Move Textcolor, textstyle, cornerradius, textsize, elevation to button style.

Create a new style for this

Create a new style for this

A new style in addition to the one that I have created for backgroundTint?

Yes

@iamareebjamal done


Y24-096 publish volume tracking message

Closes #1322
Following are the changes proposed in this pull request

Create a config based aliquot creation message for volume tracking using the existing framework, which aligns with the Avro schema definition (re-used code from SS implementation of similar work by Stuart)
Update  corresponding model classes (aliquot, library, pool, well) with methods to generate required field vales for the message
Validate the message using Avro schema defined in Redpanda registry (re-used code from SS implementation of similar work by Stuart)
Create a class responsible for establishing connection and publishing messages to EMQ
Create a class responsible for Avro validation
Define a public Interface to allow publishing message from resource
Update bunny.yml and bunny.example.yml with RabbitMQ and Redpanda configuration settings

Instructions for Reviewers
[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

Mostly stuff around how we implement the publisher methods and classes.

@stevieing Removed those as part of the new refactoring.

One final recommendation, but otherwise looks much better. Thanks for taking the time to make some non-trivial changes!

Thank you for the feedback. Happy that it is looking better now.


Fix GL_ARB_bindless_texture not being loaded on non-Mesa drivers

That would have conflicted with https://github.com/DaemonEngine/Daemon/pull/1335
But since that was not the only mistake, I also implemented the bindless enablement fix in #1335 and fixed the other similar mistake.

So this is to be considered obsolete then?

yes, it is now meant to be obsoleted by #1335

Okay, closing this then.


Blender 3.0.0 Error, MagicaVoxel-<IP_ADDRESS>-win64

Python: Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scene_vox.py", line 126, in execute
import_vox(path, **keywords)
File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scene_vox.py", line 180, in import_vox
assert (struct.unpack('<4ci', vox.read(8)) == (b'V', b'O', b'X', b' ', 150))
AssertionError
location: :-1

for me the same :-(
If you can tell me how to debug the Blender Pyton files I would be glad to help correcting the errors. I have some python background but I have no knowledge on which tools are better to be used as debugger, in case of Blender scripts.
thanks.

the error occurs because there is a newer version of the files, and the importer is not up-to-date.
I did create a PullReq, which solves (partially) the problem.
You could be able to read the first model in the project correctly.


Bug Report: trying to get json files doesnt work (this also affects texture atlases)

Please check for duplicates or similar issues, as well performing simple troubleshooting steps (such as deleting the YoshiCrafter29 folder from AppData) before submitting an issue.
If you're using an older version of the engine, check if the bug haven't been already fixed
PS : the "everything goes black while changing state in developer mode bug" is not a bug, it's been designed this way to refresh all bitmaps between states to allow easier modding.
Which target are you using?
windows
What version of the engine are you using (Bottom left of the screen in main menu) ?
2.20b (latest)
Have you identified any steps to reproduce the bug? If so, please describe them below in as much detail as possible. Use images if possible.
using File.getContent (sys.io.File) or Assets.getText (openfl.utils.Assets) to get json files results in an error [lime.utils.Assets] ERROR: There is no TEXT asset with an ID of "(path to json)"
Please describe your issue. Provide extensive detail and images if possible.

using File.getContent (sys.io.File) or Assets.getText (openfl.utils.Assets) to get json files results in an error [lime.utils.Assets] ERROR: There is no TEXT asset with an ID of "(path to json)"

too lazy to edit it so just to mention, this happens if you use Paths.file too

Assets.getText(Paths.json("path/to/json/without/extension/in/data"));?

File.getContent('path to json')?


[question] is pin-project on SelectAll necessary?

https://github.com/rust-lang/futures-rs/blob/8253b784fd45c832ad208d5b8e259f639fc42684/futures-util/src/stream/select_all.rs#L16-L34
FuturesUnordered itself is Unpin, did I miss something?

Similarly, I think SelectAll doesn't need St: Unpin to implement Stream

Yeah, I don't think pin projection is needed here. https://github.com/rust-lang/futures-rs/pull/2431 removed the need for it but forgot to remove it.

For the same reason, I think SelectAll doesn't need St: Unpin to implement Stream

IIRC, it is required by StreamFuture.

it is required by StreamFuture.

Indeed! sorry I missed that :sweat_smile:


dotnet-ef stops working after tinkering with later versions

I have a project that is using EF Core 2.1. I created a code branch that attempted to upgrade to EF Core 2.2, found that required also upgrading to NET Core 2.2, and that went down a rabbit hole. Put that branch on ice and switched back to my old code.
Now I'm trying to run EF migrations from the command line, and it ain't happy:

dotnet ef migrations add "My Migration"

The application to execute does not exist: 'C:\Users\Shaul.dotnet\tools.store\dotnet-ef\2.1.11-servicing-32099\dotnet-ef\2.1.11-servicing-32099\tools\netcoreapp2.1\any\dotnet-ef.dll'.

I uninstalled and reinstalled ef-migrations with the command

dotnet tool install --global --version 2.1.11 dotnet-ef

But for some reason the command is looking for the application in a 2.1.11-servicing-32099 directory, instead of just plain 2.1.11.
How to fix this?
Further technical details
EF Core version: 2.1
Database Provider: Npgsql
Operating system: Windows 10
IDE: JetBrains Rider

@shaulbehr Note that (prior to 3.0) the ef command is not really a global tool, but instead is included int the SDK. So the tool version that is being used should come from the SDK that you are using. Also, the tool is backward compatible down to 2.0, so even if you still have the 2.2 SDK installed and are using it to build a 2.1 application, the EF tool should still work.
I don't know why you are seeing what you are seeing? Are you able to reproduce in a small project that you can post? Also, what SDKs to you have installed?

@ajcvickers This isn't something I can repro in different branches. The point being that I attempted an upgrade to 2.2 in one branch, then switched back to a 2.1 branch, and found that EF was looking for the binaries in a non-existent directory.
I worked around the problem simply by copying the binaries from my 2.1.1 directory to a new 2.1.1-servicing-32099 directory. Bit of a hack, but at least it solves my problem for now.


Maestro Android driver did not start up in time

When executing test against Android Emulator, getting following error:
java.util.concurrent.TimeoutException: Maestro Android driver did not start up in time
	at maestro.drivers.AndroidDriver.awaitLaunch(AndroidDriver.kt:128)
	at maestro.drivers.AndroidDriver.open(AndroidDriver.kt:92)
	at maestro.Maestro$Companion.android(Maestro.kt:498)
	at maestro.Maestro$Companion.android$default(Maestro.kt:496)
	at maestro.cli.util.MaestroFactory.createMaestro(MaestroFactory.kt:43)
	at maestro.cli.command.TestCommand.call(TestCommand.kt:84)
	at maestro.cli.command.TestCommand.call(TestCommand.kt:40)
	at picocli.CommandLine.executeUserObject(CommandLine.java:1933)
	at picocli.CommandLine.access$1200(CommandLine.java:145)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159)
	at maestro.cli.DisableAnsiMixin$Companion.executionStrategy(DisableAnsiMixin.kt:22)
	at picocli.CommandLine.execute(CommandLine.java:2058)
	at maestro.cli.AppKt.main(App.kt:119)

I'm using following:

macOS Monterey 12.6
Apple M1 Pro chip
Maestro 1.18.3
openjdk 11.0.17 2022-10-18 LTS
OpenJDK Runtime Environment Zulu11.60+19-CA (build 11.0.17+8-LTS)
OpenJDK 64-Bit Server VM Zulu11.60+19-CA (build 11.0.17+8-LTS, mixed mode)

I am sadly also seeing this, any updates?

I was facing same issue and I noticed something in the Installed Applications in device, Maestro didn't removed the default apps dev.mobile.maestro and dev.mobile.maestro.test while clean up .
Try remove these apps manually and reexecute your tests, it will work!
Cheers!

So I believe my issue is I am trying to run maestro on a payments terminal that uses a special flavour of Android called PayDroid.
I just tried on a normal Samsung Galaxy phone I have and it worked fine.

Okay, I see, by any chance do you have Appium apps installed on your device io.appium.uiautomator2.server, io.appium.uiautomator2.server.test.
I tried maestro studio and it failed but later when I uninstalled those apps and rerun - now it worked. I think Maestro's internal applications are clashing with the Appium internal apps.
Let's see if it works for you!

Will double check tomorrow morning but I don't think so as we use native Android Espresso framework.

Hi there folks! Could you try upgrading to the latest version of maestro and let us know if this issue still persists? Thanks!

I'll go ahead and close this out for now. Please file a new bug report here if you are still experiencing issues!

There is a PR https://github.com/mobile-dev-inc/maestro-docs/pull/10 that adds configurable startup timeout that might also resolve this issue once released.


requested URL not found

Type of issue
None
Description
Our CI is using tfaga, but I cannot find the log for one failed case.

Go to https://github.com/virt-s1/rhel-edge/pull/7931 , and click 'Details' of 'Testing Farm - edge-rhel-8.10-x86'
Now we are at page https://artifacts.osci.redhat.com/testing-farm/57c01e4c-06cf-4d9b-a178-3339d8e2edf8/
Click on failed case and click testout.log
I got 'The requested URL /testing-farm/57c01e4c-06cf-4d9b-a178-3339d8e2edf8/work-edge-x86-installervecdlt5d/tmt/plans/edge-test/edge-x86-installer/execute/data/guest/default-0/tmt/tests/edge-test-1/output.txt was not found on this server.'

Reproducer
No response

Hi, this issue seems to be related to the Testing Farm itself, not to the tfaga.


http server adapter port to the new adapter api

Port the http_server adapter to the new adapter API.
In addition to changes to the adapter itself, this also exposed some issues and limitations in the base class:

Add wrappers for compileError and runtimeError to the adapter read/write base classes. This is not strictly required for the port, but rather than change the adapter to explicitly call errors.compileError, I figured we would need these for per-adapter error codes as described in #59.
Add a teardown hook for read so the adapter can clean up properly.
Add simple eof tracking to read. This avoids sending multiple eof's downstream and also as a workaround for the limitation that we can't currently cancel pending scheduler callbacks.

@mnibecker @davidvgalbraith @rlgomes

What does read -every mean for the http_server? I thought it was a true live source.

@davidvgalbraith good question... in order to match the contract expected by the base class (where it periodically calls read to get new points), with the fact that the adapter basically spends all its time waiting for points to arrive over the wire, in this implementation  each call to read adds a timeout handler and holds the promise open to see if new points arrive.
This timeout is set by default to 50ms but can be overridden by the -every option. I'm open to making this a different option, but it seemed the most logical.

Seems complicated. Why don't we just return no points if we don't have any points, and then the next time the adapter calls us we'll give some points if we've gotten any?

@davidvgalbraith Yeah... I guess in that case it'd be up to the base class to impose the delay. I can see doing it that way.

@davidvgalbraith How does the read path look now with ee711a8?

+1


update redis library to v9

update all dependency to latest

BUMP :)

you can use :https://github.com/chenyahui/gin-cache-redis


Application properties not being added to batch EventHub message

@sahPraveen commented on Thu Feb 21 2019
I am referring to this article "https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-python-get-started-send" related to sending messages to EventHub using Python.
A Message has following components: offset, body, systemProperties, properties.
offset is auto-generated but we can provide the remaining.
For my project - apart from message body I also need to send "Properties" which is not part of Body, How to do that? I checked the class EventData(object): and looks like application_properties can be used to do this but i'm not sure how to implement this.
Is application_properties right analogy to obtain "Properties" in message?
Could you please add more details to the article with example displaying how to use the python EventData class for sending detailed information apart from message body like Properties and SystemProperties. As of now Properties is being sent as empty list.
Sample message format that i need to send to EventHub using Python:
Sender.send(EventData('{"offset":"2415248","body":"TESTone:100, Temperature:553.0","systemProperties":[{"key":{"string":"x-opt-sequence-number"},"value":{"string":"23512"}},{"key":{"string":"x-opt-offset"},"value":{"string":"2415248"}},{"key":{"string":"x-opt-enqueued-time"},"value":{"string":"Fri Feb 22 02:14:23 UTC 2019"}}],"properties":[]}'))
And I want to send this dict values in properties: {"key":{"string":"Type"},"value":{"string":"iPhone"}}

@annatisch commented on Fri Feb 22 2019
Thanks @sahPraveen - you are correct that you can use the application_properties member for this.
You would declare the properties as you have written them above:
event = EventData(body="TESTone:100, Temperature:553.0")
event.application_properties =  {"key":{"string":"Type"},"value":{"string":"iPhone"}}

# Depending on the formatting you need, this dictionary could also look like this:
event.application_properties = {"Type": "iPhone"}
sender.send(event)

@annatisch commented on Fri Feb 22 2019
I just re-read your post, and to answer some of your other questions:

Yes, I will look at updating the samples to demonstrate the various properties.
For system properties, these are exposed on the EventData object directly rather than collectively:

print("Offset: ", event_data.offset)
print("Sequence Number: ", event_data.sequence_number)

However these are currently exposed as read-only properties, as we expect them to be set by the service. @JamesBirdsall - should sequence_number be a user-definable property on an outgoing message? Or is this only set by the service?
Currently we only allow partition_key to be set, but not offset, enueued_time or sequence_number.

@sahPraveen commented on Sun Feb 24 2019
Thanks @annatisch , this worked - using "application_properties" i am able to send data related to "properties" of message.
Here is my sample code that worked, in case anyone wants to use it:
from azure.eventhub import EventHubClient, Receiver, Offset, Sender, EventData
from uamqp import Message
ADDRESS = "amqps://<>.windows.net/<>"
USER = "RootManageSharedAccessKey"
KEY = "<>"
client = EventHubClient(ADDRESS, debug=True, username=USER, password=KEY)
Sender = client.add_sender(partition="0")
client.run()
event = EventData(body="TESTTWO:100, Temperature:-127.0")
event.application_properties = {"Type": "iPhone"}
Sender.send(event)

@sahPraveen commented on Sun Feb 24 2019
@annatisch Just to add regarding if you want to print the offset or sequence_number or similar values to console, below can be used as directly printing will print the property object address itself like <property object at 0x000001C70A3DCC78>
print(list(event.body)) #this gives actual value

@annatisch commented on Mon Feb 25 2019
Thanks @sahPraveen - great to hear it's working okay and thanks for posting your sample code for others!

@sahPraveen commented on Sun Mar 03 2019
@annatisch I found that this method of sending message is very slow as it sends message one by one.
And wanted to check the "batch" mode of sending message.
I'm able to send the messages much faster now but unable to specify the "body" and "properties" of message. Could you please help how to send them, Below are the changes i made in above code:
def batch_datagen():
for i in range(100):
print("Sent Event - {}".format(i))
yield b"TESTTWO:100, Temperature:-127.0"
client.run()
data = EventData(batch=batch_datagen())
sender.send(data)

@sahPraveen commented on Mon Mar 04 2019
I found your codebase @annatisch  : https://github.com/Azure/azure-event-hubs-python/blob/master/examples/batch_send.py
Just need to know how we can send "body" and "properties" in this batch approach?

@annatisch commented on Tue Mar 05 2019
Hi @sahPraveen,
When you use the batch= argument, the Event is actually encoding multiple events into a single message body. This means that all the events in the batch will have the same properties applied to them. If this is your intention, then you should be able to set the properties of the batched events in the same way as a normal message:
event = EventData(batch=data_gen())
event.application_properties = {"Type": "iPhone"}

However if you want to set application properties separately on each message, a good middle ground would be to use the transfer() operation rather than send(). This will queue events locally then you can send them all at once, so through-put will be much higher than calling send() individually on each event.
client = EventHubClient(ADDRESS, debug=True, username=USER, password=KEY)
sender = client.add_sender(partition="0")
client.run()

for i in range(5000):
    event = EventData(body="TESTTWO:100, Temperature:-127.0")
    event.application_properties = {"Type": "iPhone"}
    sender.transfer(event)
sender.wait()

@sahPraveen commented on Thu Mar 07 2019
Hello @annatisch Thank you for letting me know about the transfer() method, with this the throughput has increased significantly.
But I tried the "batch=" method as well and I can notice that the properties are not getting applied to any message as it was earlier working for the normal/send() messages.
I am checking the messages in Service Bus Explorer -> Event Hub Listener, For the send() and transfer() messages i can see the 'Event Custom Properties' but for the "batch=" it's empty, Please let me know if I can provide more information for further investigation.
Screenshot of not working "batch=":

Screenshot of working "send() and transfer()":

Kindly suggest further.

@annatisch commented on Mon Mar 11 2019
Hi @sahPraveen - that's very interesting and sounds like a bug...
I will update this issue to reflect that!
Thanks so much for providing these details - I will try to dig deeper.
In the meantime, the transfer() method will hopefully provide the functionality you need.

Seems like a problem with uamqp.message.BatchMessage problem:
def _create_batch_message(self):
        """Create a ~uamqp.message.Message for a value supplied by the data
        generator. Applies all properties and annotations to the message.

        :rtype: ~uamqp.message.Message
        """
        return Message(body=[],
                       properties=self.properties,
                       annotations=self.annotations,
                       msg_format=self.batch_format,
                       header=self.header,
                       encoding=self._encoding)

as you can see the application properties are not being passed down from a batch message to a message being created from a batch input. Not sure how we go about this?

@sahPraveen
This turns out to be a bug in the uamqp library and we've fixed it in uamqp 1.2: https://github.com/Azure/azure-uamqp-python/pull/62.
Please try updating to the latest uamqp library.


Time picker disable wrong range

I have an example:

interval is 15 min
excluded time range is from: 4:00 to 15:40

and the time 15:45 is disabled, which shouldn't be. Is this common problem ?

Please show us your config and provide a working codepen.

Any progress with this bug ?

As you can see I did not check that further.
Your demo has all options enabled + interval 15 minutes.
Is this the reproducible testcase?

i got this problem all the time. I found a workaround in the form of rounding to a given interval, but this is not the best solution.

At least the from - to demo does not work with the current 3.6.4 version: https://amsul.ca/pickadate.js/time/#disable-times-use-ranges
I think it is a rounding problem that is still not fixed.
https://codepen.io/DanielRuf/pen/MWKgmBj
But v3 is not developed anymore, v5 is the current and latest version.

Thanks for information. v5 is in alpha, I can't use it on production.


Adds primitives needed for BLS12-381 hash_to_curve for G1 & G2

This PR adds map_to_curve, isogeny and cofactor clearing circuits for G1/G2 points. This enables the conversion of hashes to G2 points
Pull Request type
Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Testing
[ ] Other (please describe):

Please apply suggestions and remove duplicate code.


Allow custom JvmInstallationMetadataMatcher.test

Expected Behavior
Allow defining a downloaded toolchain as valid, override org.gradle.jvm.toolchain.internal.JvmInstallationMetadataMatcher.test method in some way.
Current Behavior (optional)
The class org.gradle.jvm.toolchain.internal.JvmInstallationMetadataMatcher is used, it is not possible to extend it and use a custom one
Context
This would allow more flexibility when designing a JavaToolchainResolver.
I made one to download toolchain from a parameterized url with variables like:
https://download.oracle.com/graalvm/${ver}/latest/graalvm-jdk-${ver}_${os}-${arch}_bin.tar.gz
but I use JavaToolchainRequest vendor to pass url, and finally it can't pass the final check even though I download it
Thank you very much for your work. Regards

This issue will be closed as a duplicate of

#18896

Please add your use case and 👍 to that issue.
If you think our analysis is wrong, please provide us with more detailed information explaining why.

There are no plans to allow disabling validation of JVM installations.


Use Next router events correctly (Fix #32)

We should bind to Next router events as documented here, rather than overriding callbacks.
Fixes #32

All of current issues were fixed by my PR here but for unknown reason, the author library closed it. I'm not sure why, but i hope before closing an issue, one should make a test first ?

@revskill10 Your PR would not resolve these issues, not even issue #21, which it was supposed to address.

This fix returns the library to a working state. I have tested it.

Thanks! This is published as 1.4.0.


Update quik to <IP_ADDRESS>2

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

GoPro's certificate seems to be expired.
This is the reason why this ci fails.
(ref: https://community.gopro.com/t5/GoPro-Apps-for-Desktop/Installation-Developer-certificate-expired/td-p/146532)
I close this PR and will re-submit later after this issue will be fixed.
Thanks.


liberty-feature as packaging type

We should be able to create a Liberty user feature in a Maven module and be able to specify IBM-API: headers, and other SUBSYSTEM.MF headers. Basically, Maven support for this part of the product doc. This may all be possible using the Apache Aries ESA Maven Plugin ... if so then we might just create a small addition to the ci.maven readme to say as much.

Do we still want this? No activity in 2.5 years. @hughesj

Closing due to lack of interest.


MSGraphClient - Redirecting to wrong location

Category

[ ] Question
[ ] Typo
[X] Bug
[ ] Additional article idea

Expected or Desired Behavior
When  prompted to authenticate to the Graph API from tenant.sharepoint.com/sites/xxxxx, after successful authentication users should be redirected back to tenant.sharepoint.com/sites/xxxxx.
Observed Behavior
When prompted to authenticate to the Graph API from tenant.sharepoint.com/sites/xxxxx, after successful authentication users are redirected to tenant.sharepoint.com/ (i.e. not the original site collection).
Steps to Reproduce

Login to an SPO site that is under the /sites managed path (e.g. tenant.sharepoint.com/sites/xxxxx) with:

An SPFX v1.7 solution deployed with a web part making a call to the Graph API using an MSGraphClient instance provided by MSGraphClientFactory

The home page of the site should load successfully - i.e. authentication to the Graph API will have occurred transparently and successfully
Wait a while - for the MS Graph session to have expired, though the SPO session to still be active
Refresh the page - you'll be prompted for authentication to the Graph API... click OK at the popup and then authenticate
Upon successful redirection you'll now be at a different site - https://tenant.sharepoint.com/ instead of https://tenant.sharepoint.com/sites/xxxxx

@mikedev8888 said:

Wait a while - for the MS Graph session to have expired, though the SPO session to still be active

What is "a while"? Access tokens (what's used to auth to the Graph) are only valid for a specific amount of time and you'll need to request a new one if you are sitting on the page for a long time.
The access token is retrieved from SPO by SPFx's MSGraphClientFactory.getClient() method.
This doesn't impact SPO as it isn't using access tokens when you're in the web experience; all auth is cookie based.
If you try to access the MSFT Graph with an invalid (ie: expired) access token, it will prompt you to re-authenticate. A more reliable pattern in your code would be to repeat the process of retrieving the MSGraphClient if the access token has expired to avoid the auth redirect. The auth redirect isn't going to work anyway if you landed at the right site because it will simply re-auth you, but won't re-set the auth token in the MSGraphClient that you received from the SPFx API call mentioned above.
At this point seems like it's all by design... unless you have additional details you can provide.


Incompatible with Train Construction Site

Mod source
PyAE Beta
Which mod are you having an issue with?

[ ] pyalienlife
[ ] pyalternativeenergy
[ ] pycoalprocessing
[ ] pyfusionenergy
[ ] pyhightech
[ ] pyindustry
[ ] pypetroleumhandling
[X] pypostprocessing
[ ] pyrawores

Operating system

=Windows 10

What kind of issue is this?

[ ] Compatibility
[ ] Locale (names, descriptions, unknown keys)
[ ] Graphical
[ ] Crash
[ ] Progression
[ ] Balance
[X] Pypostprocessing failure
[ ] Other

What is the problem?
34.316 Script @pypostprocessing/data-final-fixes.lua:142: AUTOTECH START
40.580 Error ModManager.cpp:1558: Failed to load mod "pypostprocessing":
ERROR: Missing crafting category: trainassembling (ingredients: 1, fluids in: 0, fluids out:1), for fluid-wagon / fluid-wagon-fluid[fluid-wagon]
stack traceback:
[C]: in function 'error'
pypostprocessing/prototypes/functions/data_parser.lua:239: in function 'parse_recipe'
pypostprocessing/prototypes/functions/data_parser.lua:342: in function 'parse_tech'
pypostprocessing/prototypes/functions/data_parser.lua:134: in function 'run'
pypostprocessing/prototypes/functions/auto_tech.lua:34: in function 'run'
pypostprocessing/data-final-fixes.lua:144: in main chunk
40.582 Loading mod core 0.0.0 (data.lua)
40.738 Checksum for core:<PHONE_NUMBER>
40.773 Error ModManager.cpp:1558: Error in assignID: recipe-category with name 'crafting' does not exist.
Steps to reproduce
Install : https://mods.factorio.com/mod/trainConstructionSite
Additional context
No response
Log file
No response

I'm afraid this can't be made compatible, since Py has train wagons of non-standard length, which won't work with the Train Construction Site mod...

I literally wrote a mod to solve this problem 🤣
https://github.com/TwentyEighty/factorio-trainfactory

Closing this.


FEAT: Add support for previous button on lightbox

Add new EbayDialogPreviousButton component to be rendered on lightbox dialogs
Defaults icon to chevronLeft16 (different then marko that doesn't do any defaulting)
Upgrade skin to 16.6.0

LGTM 👍🏻


about questions search

Can search be added to the mobile phone?
Computer search is extremely slow, and sometimes it can’t be found.
Thanks!

Hey @onemonet, we're using notion's built-in search to power our search.
This is a lot easier than having our own search index, but it's not always performant.
Ideas to improve features like search are more than welcome :)

I have the problem too.
Please improve search

Search has been fixed in the latest release.
Hopefully it won't be as brittle anymore.


Question about

hi:
thanks for your excellent work, am new to face related work. Have a naive question,here
https://github.com/sicxu/Deep3DFaceRecon_pytorch/blob/6f28de21539f186b9e8ea18d331c6d90cd696006/util/preprocess.py#L127
what is BBRegressorParam_r.mat for?
another one is https://github.com/sicxu/Deep3DFaceRecon_pytorch/blob/6f28de21539f186b9e8ea18d331c6d90cd696006/util/preprocess.py#L42
what is this function for? can you give some paper related to it? @sicxu
thanks a lot

Hi, this function is designed to output a bounding box from 5 facial points. Then we can use this bounding box to crop input image for 68 facial landmark detection. There is no related paper about this function. You can regard this as a hack to process the input image.
I can give you a brief explanation of this function. Suppose we have the ground truth 68 landmarks, then we can compute a bounding box based on these points. However, when we want to test a input, we cannot get the 68 points at the beginning. So we just use the 5points and the bounding box from 68 points as training pairs, then we simply do something like linear regression to get this mapping. Since our training process for the landmark detector involves lots of data augmentation, so this rough bounding box is sufficient enough for inference.


Tuning of queries related to export invitations to Excel.

AB#107057

Add number of PBI in front of title of PR
Add number of PBI in Description field in format AB#xxxxx

Add number of PBI in front of title of PR Add number of PBI in Description field in format AB#xxxxx

@janid1967 Done.


String "Error Message" and "Stack Trace" is going out of sync

Porting change from 15.0-trm branch to master (commit 3b43a54a6949e3ebdd9342f5d9eabc3718a23ed1
)

Hi @Faizan2304, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Faizan Ahmad). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


Set up staging environment

More details to come soon...

@tharanathkartoza please comment on issues that have been assigned to you and manage their status in the project board

The staging site was fully and successfully deployed to DALRRD infrastructure on 24 August and has been available internally and via VPN ever since.
As soon as the OCIO has provided a public IP and ingress routing has been configured, Kartoza will configure https://staging.emc.kartoza.com/ to point to it.
DALRRD is also welcome to configure a domain such as https://staging.sasdi.net, but that is beyond Kartoza's control.

the staging site is available at: https://testing.emc.kartoza.com/

no that is the testing site, not the staging site. The staging site is running on DALRRD infrastructure but is not public yet. What's the latest @tharanathkartoza ?

so let's close this when the staging site is public and ready to host UAT

staging site has been setup except pycsw domain and ssl certificate.

currently we have UAT happening over the staging site, the last point @tharanathkartoza made about this issue is found across other tickets.


Unable to link downstream project consuming Kotlin/Native-built runtime

> Task :molecule-runtime:linkDebugTestIosSimulatorArm64 FAILED
e: Compilation failed: Failed to compute the detailed error message. See the root cause exception.

Shortly: The required symbol androidx.compose.runtime/remember|-4100818973694024771[0] is missing in the module or module dependencies. This could happen if the required dependency is missing in the project. Or if there is a dependency that has a different version (without the required symbol) in the project than the version (with the required symbol) that the module was initially compiled with.

I have kotlin.native.cacheKind=none set in the project's gradle.properties but it still does not compile.
Repro on this branch https://github.com/cashapp/molecule/tree/jw/link-thing/2022-09-21 running ./gradlew -p molecule :m-r:check.

I will research

kotlin.native.cacheKind=none doesn't do anything for me, but seems to help kotlin.native.cacheKind.iosArm64=none (I am on M1).

I reproduced this problem with iosSimulatorArm64Test task. I will continue try to fix it.
But also, for now, you may use only jvm tests: ./gradlew -p molecule :m-r:jvmTest

I can reproduce this, also happens when building to an iOS app target not just testing only. I can't use compose runtime in shared module because of this.

I can reproduce this, also happens when building to an iOS app target not just testing only. I can't use compose runtime in shared module because of this.

Thanks! I will research your sample

You are correct we are not specifying the JS option correctly. Molecule's multiplatform entrance is a little more rash than Redwood where we did things a bit more carefully. That being said, we cannot use your Compose plugin because it assumes things about the JS target (the presence of a web extension) that doesn't work in the general case.
In Redwood we have a proper subproject plugin which applies the Compose compiler plugin and configures the JS build correctly: https://github.com/cashapp/redwood/blob/3956a7883950951f38e5d0c442d63b32cdfc955f/build-support/src/main/kotlin/app/cash/redwood/buildsupport/ComposePlugin.kt. I will do the same in Molecule here shortly.

I was also able to fix this specific issue by upgrading to Kotlin 1.7.20, but ended up running into another wall:
e: Compilation failed: Unbound symbols not allowed

Unbound public symbol IrSimpleFunctionPublicSymbolImpl: me.saket.teleport.ui/Presenter.present|-8951064700938915987[0]

 * Source files:
 * Compiler version info: Konan: 1.7.20 / Kotlin: 1.7.20
 * Output kind: FRAMEWORK

e: java.lang.AssertionError: Unbound symbols not allowed

@JakeWharton Do you still have your jw/link-thing/2022-09-21 branch around? I'd like to compare my setup with yours.

@saket Did you add kotlin.native.cacheKind=none? I got the same error and this resolved it.

Yea I already had kotlin.native.cacheKind=none in my gradle.properties so I believe I'm running into something else. Do you have a public project that I can take a look at?

I have a current work-in-progress pr to include molecule into my playground app: https://github.com/hfhbd/ComposeTodo/pull/665/files
I had to add the molecule runtime manually though, because I also use the compose plugin: https://github.com/cashapp/molecule/issues/134

@saket Can you please try version 1.3.0-alpha01-dev849
with kotlin.native.cacheKind=non

Sure, where are your alpha builds hosted on? I couldn't find any information in your readme or releases page.

@hfhbd going through this, thank you!

@saket
You need set repository here:
https://github.com/JetBrains/compose-jb/blob/master/experimental/examples/falling-balls-mpp/settings.gradle.kts#L6
and here:
https://github.com/JetBrains/compose-jb/blob/master/experimental/examples/falling-balls-mpp/build.gradle.kts#L20

Thanks! I'm seeing the same error with 1.3.0-alpha01-dev849.

@saket I had the same error in my case when using molecule. Its was caused due that composable functions couldn't be public in native (at least this is what I've read). I fixed it changing them to internal (an in my case only expose the flow created by the molecule launch)

@saket
Yeah, for now Composable functions for native can be only internal or private. We will fix it in the future.

@saket Yeah, for now Composable functions for native can be only internal or private. We will fix it in the future.

Did this change or is this still valid?

@Nailik

for now Composable functions for native can be only internal or private. We will fix it in the future.

This part is fixed when using kotlin 1.8.20 and compose 1.4.0

kotlin.native.cacheKind=none - this parameter is still needed. The investigation has started by k/native team

@Nailik

for now Composable functions for native can be only internal or private. We will fix it in the future.

This part is fixed when using kotlin 1.8.20 and compose 1.4.0
kotlin.native.cacheKind=none - this parameter is still needed. The investigation has started by k/native team

Unfortunately i still get error: Module "Rhasspy_Mobile:ui" has a reference to symbol androidx.compose.runtime/CompositionLocalProvider|1991010962478225151[0]. Neither the module itself nor its dependencies contain such declaration.  with this project https://github.com/Nailik/rhasspy_mobile/tree/1454949c0d42b60ce48dc57ffb446e4061531522

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


[fix](doris compose) fix up command

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Add a reference page for available project templates

This should help with discoverability for our project templates.

Thanks!


Add support for stakater/ingressmonitorcontroller

Checklist

[x] Affected Issues have been mentioned in the Closing issues section
[ ] Documentation has been written/updated
[x] PR title is ready for changelog and subsystem label(s) applied

Explain the details for making this change. What existing problem does the pull request solve?
Changelog Entry
This PR adds support for the stakater/ingressmonitorcontroller (utilizing UptimeRobot) to k8s ingresses. It automatically adds the necessary annotations to each route. These include the frequency of monitoring, path to monitor (default is on / currently), and which UptimeRobot AlertContact to notify (ultimately different contacts for HA/SA, and each cluster).
This PR also enables the monitoring_path to exist as specific to a route, rather than arbitrary settings per environment.
Closing issues
Closes #1720
Closes #1873

some awesome work @twardnw
found a couple of things to fix, but overall I think this is very good.


Products API

Products API
Entities
I created four entities:

Product
Category
Color
Image

I created some fixtures for developement in AppBundle/DataFixtures/ORM
API
I installed JMSSerialiazerBundle and FOSRestBundle and created to apis: /products/{id} and /products . The Apis are available with /api prefix.
Richardson Maturity Model Level 3
I installed BazingaHateoasBundle and added self link on product resource.
Documentation
I installed NelmioApiDocBundle and added documentation for the two apis. The documentation his available in /api/doc .

pull request: #2


Refactor sim_context and add user_sim_context for user owned resources

FYI @sidharthamani .  I"ll merge if the tests pass

And it failed....


hermes and osmosis updates

requried update of stable rust

@romac I do not replace hermes at place as do not updat toml builder.

not sure what is going on, like we are not up to PRs.


Added pdo_sqlsrv and sqlsrv

This PR add two extentions (pdo_sqlsrv and sqlsrv).

[x] Updated makefiles
[x] Add both extensions in make file (extensions var)
[x] Updated readme

Thanks for the PR, could you add back the empty newlines at end of files?

Thanks for the PR, could you add back the empty newlines at end of files?

Yes I could, but this point is about CRLF and LF. Probably the last commit (#68) was did in a windows based.
If you try edit in any editor (vim, nano, kate) in unix based, will be the same problem.

You're right, my fault that I didn't notice when merging that PR >.<
I'll merge this as soon as Travis decides to work again~


[Matterjs] debugging bodies doesn't work with createStaticLayer

I have a game object in a Matterjs scene with debug set to true so I can see the shape of the body.
I noticed that if I call
    this.map = this.make.tilemap({ key: 'code_map' });
    var tiles = this.map.addTilesetImage('test_image');
    var layer = this.map.createStaticLayer(0, tiles, 0, 0);

the debug stops working and the shape of the body is no longer visible (the game object itself is still visible).

The Graphics object is there, it's just not at the top of the display list.
A workaround would be this.children.bringToTop(this.matter.world.debugGraphic); after creating all of your other game objects.


checkbox broken behaviour

In my project my checkbox has some unpredictable behaviour: when unchecking it does not change its value to false again.
Also, on the autoform demo page similar weird behaviour can be found: http://autoform.meteor.com/fieldvalues (2nd example)

oops, there already is an issue addressing this problem.


🚀 Feature: Confluence to MkDocs Scaffolder workflow

🔖 Feature description
This feature would take a confluence doc and convert it to a markdown file. This file would then be added to a GitHub repo that is set up for Techdocs. It would add the new markdown file along with updating the mkdocs.yml file to include the new md file in the nav.
🎤 Context
In my use case, we have a lot of documentation in Confluence at my company and we are trying to increase Techdocs adoption. Creating a simple converter via scaffolder would help migrate docs to Techdocs easily, quickly and drive adoption. We are currently building this internally and wanted to contribute it back if open source was interested.
✌ Possible Implementation
Our feature is not fully built out yet but we are grabbing docs from Confluence(specifically the html version of confluence), using a html to markdown converter to create the markdown file and pushing it to a GitHub repo. We are doing with via scaffolder, asking the users to input a confluence repo, a GitHub repo and asking if the GitHub repo is onboarded onto TechDocs.
👀 Have you spent some time to check if this feature request has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
Yes I am willing to submit a PR!

This could be a useful action as the scaffolder already knows how to create repositories and pull requests. One thing I would say though, I would only put things in the scaffolder that are intended to be used multiple times rather than just single one-shot scripts that migrate a lot of things. Is this the former or the latter? Maybe something you can give a list of confluence pages to and it can create some markdown docs for you?

HI. We are building this action and workflow to be used multiple times. Adoption of Techdocs within EG is still an ongoing process, with docs both in Confluence and Backstage. So even a team that has some docs in Backstage, they are still creating docs in Confluence that may need to be migrated at a later date. And also our design is to update one repo at a time with the action/workflow. So each team would need to use the workflow as many times as they have repos worth of docs on confluence.
The idea/design behind the action itself is to give the action a confluence link(or multiple links) and a GitHub link, get the confluence page(s), convert to markdown and add them to the repo in ctx.workspace while follow up actions in the workflow publish and merge the new md files to the given GitHub link.

@tradcliffe-expediagroup ah ok, seems resonable, go ahead! :)

Great. I will get started soon on this. Thanks.

@tradcliffe-expediagroup using Scaffolder to convert Confluence pages to Techdocs is an excellent idea.

Here is the PR for this issue: https://github.com/backstage/backstage/pull/16820
Please let me know what you think and if I am missing anything. Thanks

PR above has been merged. I will move this to done/closed


Dancing Headers

Corrected hasStickyHeader method to check for the top view since it is not always at position 0 in the Recyclerview's children list.
Moved method into HeaderPositionCalculator
Added a update button to the sample code since calling notifyItemUpdated seems to be the cause of the "Dance"

Realised now i made the pull request to the incorrect branch...

Thanks! I'm noticing some weirdness with the sample - the colors kind of glitch out when you click the update button. Looking into it now.

Oh, I guess it's just the item animator.

Merging, thanks!!!


[ko] Wrong custom heading ID

This is a Bug Report from this review comment.

Problem:
Wrong custom heading ID in https://kubernetes.io/ko/docs/concepts/services-networking/dns-pod-service/

Proposed Solution:
-### 파드의 setHostnameAsFQDN 필드 {# pod-sethostnameasfqdn-field}
+### 파드의 setHostnameAsFQDN 필드 {#pod-sethostnameasfqdn-field}

Page to Update:

https://kubernetes.io/ko/docs/concepts/services-networking/dns-pod-service/#파드의-sethostnameasfqdn-필드-pod-sethostnameasfqdn-field
https://kubernetes.io/ko/docs/reference/command-line-tools-reference/feature-gates/#feature-gates

/language ko

/assign

/triage accepted


Submission for Reviewal

Hello,
I would like to submit the following two documents for review,
I was doing a bit of studying on Island Architecture and well, given what I had I thought I could put something down. Its not perfect, became longer than I was intending. The headings could do with a bit of work,
I would be interested to hear your thoughts and whatever edits that need to be made,
Many Thanks
Peter

I hope that is it okay now, I was thinking when we are in final editorial stage for the dos to maybe adding some emojis to the titles, maybe, idk if that would appear juvenile, plus I dont know what the artwork that is getting made looks like, so, yeah, I will no doubt bring this back up later down the road,

@aFuzzyBear There are some Conflicts for this PR, to make it easier,  I would suggest you move the island-architecture file to a deep-dive folder as @itskitto suggested.
For the installation file I'm not sure since I can't really see what are the conflicting points.

@aFuzzyBear thanks for the PR! Trying to get to 100% docs so I merged this for you and then did a round of edits on the installation/quickstart.

Amazing @FredKSchott, thank you man, Im actually stoked my first real PR req that's been accepted.
This calls for a 🍺
Did you say, the docs is nearing 100%?...wow


reverse input list for finding device by name

I assume this may be a long-shot for actually getting merged, but worth a try to me and maybe it can help someone else.
The device that I primarily use evdevremapkeys for is an old Nostromo N52 Speedpad. It seems to present itself to the system as two seperate input devices. I only intend to remap the keyboard type functionality, and leave the mouse functionality alone so it behaves in the default manner.
Without this change if I specify name only it seems to find the "incorrect" one of the two inputs and therefore does not remap the keys.
reversing this list allows me to specify only the device name in my config.yml:
- input_name: 'Honey Bee  Nostromo SpeedPad2 '
  output_name: remap-kbd
  remappings:

And it will get properly registered no matter which port it's plugged in to.
Without the change I need to specify input_phys in order to target the correct one of the two inputs. This works but the correct value changes depending on which USB port / hub port my device is plugged in to, which then requires changing the config any time I move it to a different port.

You should match on the input_phys instead. That will be unique.


AQCU-1089: V-Diagram- Times show in shift table not displaying UTC offset

Should be merged at the same time as: https://github.com/USGS-CIDA/AQCU/pull/695

Coverage increased (+0.0008%) to 98.918% when pulling b2ba32fb70ab2eebe0ccbb75b3389a66ef9da3fc on zmoore-usgs:bug/vdi-utc into 66e2aab5a3ca3021e90d4b8d5e706c8831d2cb23 on USGS-R:master.

Coverage increased (+0.0008%) to 98.918% when pulling f73e9384eef0c8562867077feaa2a21b025143d7 on zmoore-usgs:bug/vdi-utc into 66e2aab5a3ca3021e90d4b8d5e706c8831d2cb23 on USGS-R:master.


spit expand resource test into individual tests for each resource

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

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


Updated product reviews resource to allow updates

BC API changed and now allows creation/update/deletion of this resource.

@iyerushalmi Thanks for the PR, this is pretty much good to go. Can you also remove the method in the class? def self.all(product_id). This will come for free once it is a sub resource. I didnt even notice this PR and opened #114, much happier to get this one merged if you are comfortable with making that small change and rebasing this PR once #111 is merged.

This also fixes #106


pull request for e2e test at 11/05/2016 13:56:00

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

Details

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


fix: Issue when a null is in a DataTable

When collecting the values of a Datatable which contains null values, the ObjectSteps#resolve method throws a NullPointerException
Known bug from jdk https://bugs.openjdk.java.net/browse/JDK-8148463

@mimfgg ok for you ?

Codecov Report

Merging #31 (2eefefd) into main (ba9d28a) will increase coverage by 0.15%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main      #31      +/-   ##
============================================
+ Coverage     70.76%   70.92%   +0.15%
- Complexity      695      701       +6
============================================
  Files            35       35
  Lines          2723     2724       +1
  Branches        291      291
============================================
+ Hits           1927     1932       +5
  Misses          642      642
+ Partials        154      150       -4

Impacted Files
Coverage Δ

...java/com/decathlon/tzatziki/steps/ObjectSteps.java
74.33% <100.00%> (+1.08%)
:arrow_up:

...n/java/com/decathlon/tzatziki/steps/HttpSteps.java
85.76% <0.00%> (+0.37%)
: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 ba9d28a...2eefefd. Read the comment docs.


[WIP] User refactor

Up for discussion.
This is a work in progress.  There is incomplete code and more to be done.  I am looking for general direction feedback, not a code-review.

@rhutchison I've taken a good look at the code. It's a pretty clean implementation.
What were you thinking about on how to handle the callback handling? What type of flow were you considering, and what limitations do you see with the current working implementation? For me, the callbacks seem fine, and they shouldn't affect what you're doing here. Although, I'm not sure I like how the callback routes are spread out in the env/config settings.
Were you planning on storing the 'local' provider in the providers field of the user model, as well? That seems like the right place for it.
Overall, this is really good work. The use of the EmailSchema is nice and clean.

So we now have competing PRs: #689 (this one) vs #559, and not only that but also we have the Admin Mode PR by @rhutchison to merge in which I wonder if when we merge either of user refactoring PRs will they just mess up the Admin Mode PR.

@lirantal Luckily the admin module really only touches roles, username, firstName, and lastName.  I don't think this refactor touches any of those.  I will try and test it out but am just about ready to leave on a 4 day vacation.  Looking forward to see 0.4.0 when I return!


Where in the google do I create a Browser API Key and Server API Key?

Q
A

Bug report?
[ ]

Feature request?
[ ]

Support request?
[ x]

Where in the google do I create a Browser API Key and Server API Key?

hello Rex,
Please follow this guide to generate the keys.
https://www.iwdagency.com/help/dealer-store-locator/creation-of-server-api-keybrowser-api-key

Thanks so much for that prompt and useful advice!


Handle multiple QuillEditors

Is there an existing issue for this?

[X] I have searched the existing issues

The question
I have two separated QuillEditors in my Flutter app. But whatever I type in the first one automatically appears in the second one. I know it's a matter of controllers but I really couldn't find a way to control them separately. I am using the latest version of the package.

You can wrap QuillProvider for each QuillEditor, that is what I did for my app. If you want all editors to use a same toolbar, then wrap that toolbar with another QuillProvider, and use ChangeNotifier + focusNode to switch the controller
By the way, quill has a lot of issues regarding performance and unnecessary editor rebuild. After spend many days with Quill, I decided to switch to this one https://github.com/fleather-editor/fleather/tree/master/packages/fleather/lib/src

You can wrap QuillProvider for each QuillEditor, that is what I did for my app. If you want all editors to use a same toolbar, then wrap that toolbar with another QuillProvider, and use ChangeNotifier + focusNode to switch the controller
By the way, quill has a lot of issues (they are changing a lot of code, that is understandable) regarding performance and unnecessary editor rebuild, and I also don't like the idea of QuillProvider, its hard to use for many usecases. After spent many days with Quill, I decided to switch to this one https://github.com/fleather-editor/fleather/tree/master/packages/fleather/lib/src

Thank you very much @binhtran93. Yes, I agree the idea of QuillProvider on every QuillEditor isn't a good way to handle multiple QuillEditors. It should be like TextFormFields where every one has its own controller but same toolbar.

You can wrap QuillProvider for each QuillEditor, that is what I did for my app. If you want all editors to use a same toolbar, then wrap that toolbar with another QuillProvider, and use ChangeNotifier + focusNode to switch the controller
By the way, quill has a lot of issues (they are changing a lot of code, that is understandable) regarding performance and unnecessary editor rebuild, and I also don't like the idea of QuillProvider, its hard to use for many usecases. After spent many days with Quill, I decided to switch to this one https://github.com/fleather-editor/fleather/tree/master/packages/fleather/lib/src

Thank you for the report, we will consider this
regarding the performance and unnecessary editor rebuild it was an old issue from the older versions and we are working on it

Thank you for the feedbacks, we are already working on a new major version

The issue has been fixed in the dev branch but it will take a few months before release
We are working on improving the raw quill editor

You can wrap QuillProvider for each QuillEditor, that is what I did for my app. If you want all editors to use a same toolbar, then wrap that toolbar with another QuillProvider, and use ChangeNotifier + focusNode to switch the controller
By the way, quill has a lot of issues (they are changing a lot of code, that is understandable) regarding performance and unnecessary editor rebuild, and I also don't like the idea of QuillProvider, its hard to use for many usecases. After spent many days with Quill, I decided to switch to this one https://github.com/fleather-editor/fleather/tree/master/packages/fleather/lib/src

Thank you very much @binhtran93. Yes, I agree the idea of QuillProvider on every QuillEditor isn't a good way to handle multiple QuillEditors. It should be like TextFormFields where every one has its own controller but same toolbar.

Thank you, guys, for the feedback, we already dropped the support and use for QuillProvider
Regarding the performance issues we are working on it, we did a lot of breaking changes but that's only in versions 7.0.0 to 8.0.0
Now we will only work in the dev branch for a while and provide hotfixes for the master
The code changes should not affect the developer much unless it was fixes or breaking changes

dev

Thank you very much. I will give it a look later today and you will have my feedback soon.

I have two separated QuillEditors in my Flutter app. But whatever I type in the first one automatically appears in the second one. I know it's a matter of controllers but I really couldn't find a way to control them separately. I am using the latest version of the package.

Can you give the latest dev version a try? Tell me if it fixed the issue and handle it more efficiently

I was really busy lately, so I am sorry for being late.. But I just updated to the latest version .. I can see that you dropped the support for QuillProvider. However, the problem of handling multiple Quill Editors seperately is still there.. One single controller for QuillToolbar and one QuillEditor. If you want to have multiple QuillEditors on the same screen with one QuillToolbar that controls all of them seperately, you can't.
As for your last reply here, I can see the dev verison now has been updated 60 days ago.

At present, each QuillEditor must have its own QuillController and associated QuillToolbar.
You can use code to show the toolbar for the active editor and hide the toolbars for non-active editors.


Redirection not working on mobile

On mobile, the 'Log in with Yoti' button redirects to the Yoti app fine, but once the user has authorized Yoti they get stuck there. Yoti doesn't seem to get the browser to redirect to the callback url.
On desktop, redirection from the app to Yoti and back works as expected.

can you include some screen shots and the url as displayed in the yoti dashboard please

Thanks @Alttaf! I've sent you screenshots of the Yoti dashboard by e-mail. The callback url is https://centrepoint-alumni.herokuapp.com/info
@lucymonie Could you send us a screenshot of the app when it gets stuck? I can't actually get to that stage because I can't get my passport to be Yoti-approved.

Sure thing. Here the sequence:

I took some screenshots on my phone and they are huge! I will post them here:

After I click on 'ALLOW' I see the following screen:

And nothing else happens after this.

Thanks Lucy we are still trying to reproduce, can post the device information here i.e. which phone, which browser etc

Hi all, we are trying to reproduce the error, but when I go to the callbackurl: https://centrepoint-alumni.herokuapp.com/info, I get an error
{
"statusCode": 500,
"error": "Internal Server Error",
"message": "An internal server error occurred"
}
Is this expected?

@Alttaf It was iPhone 5S, using Chrome.
@rusuOana The reason for the server error is that the info route expects a token to parse, and won't work without a token. Apologies but we're not handling errors properly at the moment. You could try adding a fake token manually to the url?

 Solve mobile redirection

@Alttaf and @rusuOana I was wondering if you've made any progress with this? We would like to get it working in the next couple of weeks so that we have a working prototype to test. Thanks!

Sorry, it was a crazy period. We tried it on a few phones, but could not reproduce (iphones 6s). it's always really hard to get a production account, (i will have to delete the one I have to be able to try it on a new phone). I will try to get someone with an iPhone 5 to try and help me reproduce the problem. Is that right or should I try with other phones as well?

@rusuOana No worries, and thanks for looking into it! It is quite important for us that the app works across most smartphones, because many of our users won't have the newest smartphones.
Would it be okay if @lucymonie and I come over to your offices one day? We could reproduce the problem on our phones, show you our Heroku settings (in case it's a deployment issue), and work through the problem together. We could probably do most days, whenever is best for you?

That is a good idea, but I would really like to be able to reproduce it, so I know which team should look into this, as it is a joined effort, so I wouldn't like to make you guys come over just to see how we can reproduce it, I will need to investigate it (ask people to investigate it) and see which team should fix this.

@rusuOana Something that we forgot to mention is that the redirect sometimes appeared to work on mobile internet (3G/4G) but not on wifi, in case that helps with pinpointing the issue.

Also, another phone that we tested the redirect on and it wasn't working is Motorola (Moto E 2nd generation, Android 5.0.2).

We tested this on an iPhone 6 and it wasn't working on it either. The mobile / wifi connection doesn't actually seem to make a difference.

Sorry for the delay..I've been away and we are in the middle of the release this days. By the end of the week I should be able to have time to work on this, might be a bit hard to get production apps on different phones, but I will do what I can and let you know as soon as I can!

hi @msachi I wanted to look now at the problem to try to get to the bottom of this. When I access  https://centrepoint-alumni.herokuapp.com/info, I get "nothing here, yet". can you tell me what I do wrong please?:)

On my iPhone 6, I went to

http://childline-report-image.herokuapp.com,
clicked on login with yoti,
got redirected to the yoti app
clicked allow
got redirected to the web app to the screen attached.

https://drive.google.com/a/yoti.com/file/d/0B98vzsLb_OhadEpFMGVySzl6M0E/view?usp=sharing

@msachi see previous comment + we also tried on a Nexus 5, and the same flow works, except the part that the callback url shows a 404 (because the way the url is build by us, which might be a bug, but a different one). From what we tried tonight, the redirect works. Is it possible to try again with the latest Yoti apps and let us know if the issue reported still happens?

@rusuOana The app that you are looking at is not our app!
Ours is available at https://centrepoint.herokuapp.com/
The callback url is set to either https://localhost:9443/login (for development purposes) or https://centrepoint.herokuapp.com/login (for production).
Please can you try it again with our app.

Ok, massive confusion then I guess...we had an issue raised, that points to this github thread, but that had reported as a main url the one I tried yesterday...
I tried with https://centrepoint.herokuapp.com/, and after I click Allow on mobile app, I am not redirected. I will get back to you after we tried more times and figured out what is going on.

Hi, I'm not sure - perhaps the other team have pointed you to our issue because they have the same problem.
Yes, this is exactly the problem that we are experiencing.

Your callback is set to https://localhost:9443/login, in Safari (on iOS) this is not considered as a valid host and therefore fails when the mobile app tries to invoke it. It is most likely the case for other browser.
I would suggest to set it to something different ( it could be the actual IP of the machine you are trying to reach) I believe that should help.
But from the phone perspective localhost is the phone itself, so I am not quite sure how you would validate the implementation if the callback URL is not set to real host that the mobile device can reach? Or am I missing something ?

Hi @cquemin, thanks for the message. Just to clarify, we have (at times) had our Yoti dashboard set to redirect to https://localhost:9443/login so we can view local changes during development. However, we changed the redirect to https://centrepoint.herokuapp.com/login since yesterday so that you could test it. Perhaps have another try and see how you go.
Just to make absolutely sure we are looking at the same thing, the url for our app is:
https://centrepoint.herokuapp.com

This appears to have been fixed now 🎉 🎉


⚠ Bofrost.es has degraded performance

In 079da37, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1613 ms

Resolved: Bofrost.es performance has improved in ea96737 after 6 minutes.


MikroORM not updating nested entity

Describe the bug
I have a nested entity and I want that it is updated when I update my entity using wrap(e).assign(newRecipe, { mergeObjects: true }) (See code)
I also tried it with updateNestedEntities: true, but unfortunately it didn't work either.
To Reproduce
https://github.com/Alwinator/mikro-orm-bug
(Setup Guide: README)
Expected behavior
Actual:
{
  id: 1,
  ingredients: [ { id: 1, quantity: 2, ingredient: { id: 1, name: 'Tomato' } } ],
  name: 'Pizza'
}
Expected:
{
  id: 1,
  name: 'Pizza',
  ingredients: [ { id: 1, quantity: 2, ingredient: { id: 2, name: 'Cheese' } } ]
}

Versions

Dependency
Version

node
16.13.1

typescript
4.3.5

mikro-orm
5.1.2-dev.38

others
package.json

mergeObjects is for JSON properties, not for entities. updateNestedEntities: true is the default in v5.
Your main problem is that you call assign not on entity but on POJO, and then you even try to persist it. You need to work with entities. Try it this way:
  // we use EntityData, as that is what you are actually passing inside - it is not a Recipe entity instance as you had it typed
  public async updateRecipe(data: EntityData<Recipe>): Promise<void> {
    // all we need to do is to load the entity based on PK and call `assign` on it
    const e = await this.recipeRepository.findOne(data.id)
    wrap(e).assign(data) // no need to save the result of assign, it will be the exact same entity reference as you used
    await this.recipeRepository.flush() // and no need to persist anything, the entity is already managed
  }

Btw next time I would appreciate minimal reproductions, not a nestjs app :] (Unless it's a nestjs specific problem, but that should be probably filed into the nest adapter repository instead.) Ideally it should be a script, everything in a single file.
Also note that the way you work with the EM is very inefficient, you should aim to call flush only once, that way all the queries will get automatically batched, e.g. this is what you should do instead when creating the entities:
// create entity instances and mark them for persistence
for (const data of ingredients) {
  const e = this.em.create(Ingredient, data)
  this.em.persist(e) // or you could use `em.create(Ingredient, data, { persist: true })` instead
}

// call flush once, will use a single multi insert query
await this.em.flush()

Also better not to lie about the types (as you often did in that repro, via casting first to unknown, as well as by using ts-ignore), dont interchange DTOs with entities, Ingredient !== EntityData, one has things like entity instance, Collections, Reference wrappers, the ohter has only POJOs and plain arrays.

@B4nan Thank you very much for the tips to improve my code! I am always very thankful for them. Additionally, sorry for pushing a Nest application. I never used MikroORM without Nest, so I didn't think of it. I have fixed everything you mentioned and the bug is unfortunately still there.

@B4nan The bug is still there! I have reproduced it without NestJS: https://github.com/Alwinator/mikro-orm-bug-without-nest

Yeah I got it reproduced locally already, its a bit more complicated, trying to find a way to make it work as you want.

@B4nan Thank you very much! :)

@B4nan Thank you! I just tested your bug fix and it works perfectly!


Add isSupported for useShare function

@antfu what do you think about adding isSupported to useShare? This will break the current implementation.
export async function useShare(shareOpts: ShareOptions) {
  const _navigator = (window.navigator as NavigatorWithShare)
  const isSupported = _navigator && _navigator.share

  const share = () => {
    if (isSupported) {
      let granted = true

      if (shareOpts.files && _navigator.canShare)
        granted = _navigator.canShare({ files: shareOpts.files })

      if (granted)
        return _navigator.share(shareOpts)
    }
  }

  return {
    isSupported,
    share,
  }
}

Demo
<script>
import { useShare } from '@vueuse/core'

setup() {
   const { isSupported, share } = useShare({ title: 'Hello', text: 'Hello my friend!', url: location.href })
   return {
     isSupported
     share,
   }
},
</script>

<div>
    <button @click="share" :disabled="!isSupported">Share</button>
</div>

Sure! You can make a PR on dev branch which we are aiming to introduce breaking changes altogether.


java.lang.StackOverflowError occurred while querying the graph database

when using custom mapper, stack overflow is easy to occur.
Do you have any idea where it recurses too deeply? Thank you very much.
for example:
  //NgbatisDemoApplicationTests
  @Test
  void selectPersons() {
    while (true){
      try {
        List<Person> persons = repository.selectPersons();
        System.out.println(JSON.toJSONString(persons));
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }

It is easy to occur when the jvm configuration is - Xss1m, but it is not found when the configuration is - Xss2m.
Is it because of recursion or because of the method generated by cache?

When we parsing nGQL, AST will be created by template engine meantime,
may cause something wrong if Xss can't provider the deep stack.
But apart from configuring xss, I haven't found a more suitable solution.

Is this in result handle process ?
Seems it is new bug different from before #63 #31

Is this in result handle process ? Seems it is new bug different from before #63 #31

You should be right. This problem does not occur when I use the "repository.selectByIds(list)" method.


[Parse] 'where' to ',' fix-it should remove a preceding space.

Explanation: We have a fix-it for when the user writes if let … where … (the Swift 2 way) instead of if let …, … (the Swift 3 way). Previously that fix-it just replaced the where (or &&, another possible mistake) with a comma, which would look out of place with a leading space. This change also removes any preceding whitespace before the where. (This is a tiny change but why not take it?)

Scope: Only affects invalid code and this one particular fix-it.

Issue: rdar://problem/27709302

Reviewed by: @jtbandes

Risk: Very low.

Testing: Updated existing compiler regression tests.

@swift-ci Please test


automatic evaluation metrics

i want to Evaluation the question that i create with an automatic evaluation metrics.
can you reccomend me which one to use?
is it possoble at  this project?
thanks

Evaluating natural language generation is a hard problem.  IMO it's even harder for question generation than something like machine translation, because there's nearly an unlimited number of reasonable questions that could be asked about a document.

Like @tavianator evaluation for Natural Language Generation (NLG) is hard but we do have a repo with tools for helping to evaluate: https://github.com/Maluuba/nlg-eval
That repo has a few metrics built into it.

@juharris  i will try it! thanks!


Why dose fp8 quantization use multiplication by scale ?

Why dose fp8 quantization use multiplication by scale ?
transformer engine quant
https://github.com/NVIDIA/TransformerEngine/blob/2c410836b77667300d4e7d5fa4b87304638fcc1a/transformer_engine/common/util/vectorized_pointwise.h#L215
dequant
https://github.com/NVIDIA/TransformerEngine/blob/2c410836b77667300d4e7d5fa4b87304638fcc1a/transformer_engine/common/util/cast.cu#L27
pytorch quant

https://pytorch.org/docs/stable/quantization.html
@ptrendx @ksivaman

FP8 has a limited dynamic range, so the scaling factors are important for avoiding numerical overflows and mitigating numerical underflows. This is especially important for training since gradients tend to have a larger dynamic ranges and the numerical accuracy of gradients can have a significant impact on convergence. You can imagine this as a generalization of FP16 training, which uses a single scaling factor for all gradients. FP8 is more delicate, so it requires per-tensor scaling factors for both the forward and backward passes.
More explanation in the docs: https://docs.nvidia.com/deeplearning/transformer-engine/user-guide/examples/fp8_primer.html

Most quantization methods divide by scale, such as in Pytorch, while in TE, the multiply by scale. Why?

Dequant op multiplies by scale_inv (inverse of the scale) which is the same as dividing by scale.

I think the question is mostly about naming - ultimately which of the values we call "scale" and "scale inverse" does not really matter as long as we are consistent. I see how it could be confusing for someone coming from a different convention though.

Dequant op multiplies by scale_inv (inverse of the scale) which is the same as dividing by scale.

Uh, what confused me is that traditional quantization algorithms use division for the quantization process and multiplication by scale for the de-quantization process. However, in TE, it's exactly the opposite, multiplication is used for the quantization process and multiplication by scale_inv (division by scale) is used for the de-quantization process.


python311Packages.tplink-omada-client: 1.3.4 -> 1.3.5

Changelog: https://github.com/MarkGodwin/tplink-omada-api/releases/tag/release%2Fv1.3.5
Description of changes

Things done

Built on platform(s)

[ ] 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
[ ] 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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 258604 run on x86_64-linux 1

5 packages built:

home-assistant-component-tests.tplink_omada
python310Packages.tplink-omada-client
python310Packages.tplink-omada-client.dist
python311Packages.tplink-omada-client
python311Packages.tplink-omada-client.dist


What's the default queue name for AzureQueue?

What's the default queue name for Azure Queue for Chat-Copilot? Alternatively, how can I set the azure queue name for the Chat-Copilot App?
I'm attempting to enable the memory pipeline for Chat-Copilot App and I'm in the process of setting up the environment accroding to two documents: webapi README and memory pipeline README
However, I'm unable to locate any configuration or code related to the queue name. I'm curious about how Azure Queue works in Chat-Copilot. I haven't come across any code related to sending queue messages in Chat-Copilot. Therefore, I'm unsure about how to add a queue in the storage account. Alternatively, does Chat-Copilot automatically create it in the code?
This might be a simple question, but it has been troubling me for a long time. I hope you can help me clarify it.

If you set KernelMemory__DataIngestion__OrchestrationType to Distributed  and set your KernelMemory__DataIngestion__DistributedOrchestration__QueueType to AzureQueue,  the following queues are either created or need to be created (in the case where you're using Managed Identity with a data only role):

extract
extract-poison
gen-embeddings
gen-embeddings-poison
partition
partition-poison
private-delete-document
private-delete-document-poison
private-delete-index
private-delete-index-poison
save-embeddings
save-embeddings-poison
summarize
summarize-poison

If you set KernelMemory__DataIngestion__OrchestrationType to Distributed and set your KernelMemory__DataIngestion__DistributedOrchestration__QueueType to AzureQueue, the following queues are either created or need to be created (in the case where you're using Managed Identity with a data only role):

extract
extract-poison
gen-embeddings
gen-embeddings-poison
partition
partition-poison
private-delete-document
private-delete-document-poison
private-delete-index
private-delete-index-poison
save-embeddings
save-embeddings-poison
summarize
summarize-poison

@jourdant Thank you for your reply. May I ask where I can find these queue names  (Documentation or code)? Because I also need to create an Azure AI Search index, but I'm unsure about which fields I need to create for the index.

Honestly I have no idea! I suspect the SK SDK must be creating these automatically. The only reason I know these exist is that they've popped up in my environment.
I've been working on a more production-ready template based on this template. Part of that is locking down the permissions which means I also have to create a lot of these resources at deployment time like you. For the Azure AI Search Indexes, here are the json definitions you need to create the two indexes:
{
  "name": "chatmemory",
  "defaultScoringProfile": null,
  "fields": [
    {
      "name": "id",
      "type": "Edm.String",
      "searchable": true,
      "filterable": true,
      "retrievable": true,
      "sortable": false,
      "facetable": false,
      "key": true,
      "indexAnalyzer": null,
      "searchAnalyzer": null,
      "analyzer": null,
      "normalizer": null,
      "dimensions": null,
      "vectorSearchProfile": null,
      "synonymMaps": []
    },
    {
      "name": "tags",
      "type": "Collection(Edm.String)",
      "searchable": false,
      "filterable": true,
      "retrievable": true,
      "sortable": false,
      "facetable": false,
      "key": false,
      "indexAnalyzer": null,
      "searchAnalyzer": null,
      "analyzer": null,
      "normalizer": null,
      "dimensions": null,
      "vectorSearchProfile": null,
      "synonymMaps": []
    },
    {
      "name": "payload",
      "type": "Edm.String",
      "searchable": true,
      "filterable": false,
      "retrievable": true,
      "sortable": false,
      "facetable": false,
      "key": false,
      "indexAnalyzer": null,
      "searchAnalyzer": null,
      "analyzer": null,
      "normalizer": null,
      "dimensions": null,
      "vectorSearchProfile": null,
      "synonymMaps": []
    },
    {
      "name": "embedding",
      "type": "Collection(Edm.Single)",
      "searchable": true,
      "filterable": false,
      "retrievable": true,
      "sortable": false,
      "facetable": false,
      "key": false,
      "indexAnalyzer": null,
      "searchAnalyzer": null,
      "analyzer": null,
      "normalizer": null,
      "dimensions": 1536,
      "vectorSearchProfile": "KMDefaultProfile",
      "synonymMaps": []
    }
  ],
  "scoringProfiles": [],
  "corsOptions": null,
  "suggesters": [],
  "analyzers": [],
  "normalizers": [],
  "tokenizers": [],
  "tokenFilters": [],
  "charFilters": [],
  "encryptionKey": null,
  "similarity": {
<EMAIL_ADDRESS>"#Microsoft.Azure.Search.BM25Similarity",
    "k1": null,
    "b": null
  },
  "semantic": null,
  "vectorSearch": {
    "algorithms": [
      {
        "name": "KMDefaultAlgorithm",
        "kind": "hnsw",
        "hnswParameters": {
          "metric": "cosine",
          "m": 4,
          "efConstruction": 400,
          "efSearch": 500
        },
        "exhaustiveKnnParameters": null
      }
    ],
    "profiles": [
      {
        "name": "KMDefaultProfile",
        "algorithm": "KMDefaultAlgorithm",
        "vectorizer": null
      }
    ],
    "vectorizers": []
  }
}

and
{
  "name": "global-documents",
  "defaultScoringProfile": null,
  "fields": [
    {
      "name": "Id",
      "type": "Edm.String",
      "searchable": false,
      "filterable": false,
      "retrievable": true,
      "sortable": false,
      "facetable": false,
      "key": true,
      "indexAnalyzer": null,
      "searchAnalyzer": null,
      "analyzer": null,
      "normalizer": null,
      "dimensions": null,
      "vectorSearchProfile": null,
      "synonymMaps": []
    },
    {
      "name": "Embedding",
      "type": "Collection(Edm.Single)",
      "searchable": true,
      "filterable": false,
      "retrievable": true,
      "sortable": false,
      "facetable": false,
      "key": false,
      "indexAnalyzer": null,
      "searchAnalyzer": null,
      "analyzer": null,
      "normalizer": null,
      "dimensions": 1536,
      "vectorSearchProfile": "searchProfile",
      "synonymMaps": []
    },
    {
      "name": "Text",
      "type": "Edm.String",
      "searchable": true,
      "filterable": true,
      "retrievable": true,
      "sortable": true,
      "facetable": true,
      "key": false,
      "indexAnalyzer": null,
      "searchAnalyzer": null,
      "analyzer": null,
      "normalizer": null,
      "dimensions": null,
      "vectorSearchProfile": null,
      "synonymMaps": []
    },
    {
      "name": "Description",
      "type": "Edm.String",
      "searchable": false,
      "filterable": true,
      "retrievable": true,
      "sortable": false,
      "facetable": true,
      "key": false,
      "indexAnalyzer": null,
      "searchAnalyzer": null,
      "analyzer": null,
      "normalizer": null,
      "dimensions": null,
      "vectorSearchProfile": null,
      "synonymMaps": []
    },
    {
      "name": "AdditionalMetadata",
      "type": "Edm.String",
      "searchable": false,
      "filterable": true,
      "retrievable": true,
      "sortable": false,
      "facetable": true,
      "key": false,
      "indexAnalyzer": null,
      "searchAnalyzer": null,
      "analyzer": null,
      "normalizer": null,
      "dimensions": null,
      "vectorSearchProfile": null,
      "synonymMaps": []
    },
    {
      "name": "ExternalSourceName",
      "type": "Edm.String",
      "searchable": false,
      "filterable": true,
      "retrievable": true,
      "sortable": false,
      "facetable": true,
      "key": false,
      "indexAnalyzer": null,
      "searchAnalyzer": null,
      "analyzer": null,
      "normalizer": null,
      "dimensions": null,
      "vectorSearchProfile": null,
      "synonymMaps": []
    },
    {
      "name": "IsReference",
      "type": "Edm.Boolean",
      "searchable": false,
      "filterable": true,
      "retrievable": true,
      "sortable": false,
      "facetable": true,
      "key": false,
      "indexAnalyzer": null,
      "searchAnalyzer": null,
      "analyzer": null,
      "normalizer": null,
      "dimensions": null,
      "vectorSearchProfile": null,
      "synonymMaps": []
    }
  ],
  "scoringProfiles": [],
  "corsOptions": null,
  "suggesters": [],
  "analyzers": [],
  "normalizers": [],
  "tokenizers": [],
  "tokenFilters": [],
  "charFilters": [],
  "encryptionKey": null,
  "similarity": {
<EMAIL_ADDRESS>"#Microsoft.Azure.Search.BM25Similarity",
    "k1": null,
    "b": null
  },
  "semantic": null,
  "vectorSearch": {
    "algorithms": [
      {
        "name": "searchAlgorithm",
        "kind": "hnsw",
        "hnswParameters": {
          "metric": "cosine",
          "m": 4,
          "efConstruction": 400,
          "efSearch": 500
        },
        "exhaustiveKnnParameters": null
      }
    ],
    "profiles": [
      {
        "name": "searchProfile",
        "algorithm": "searchAlgorithm",
        "vectorizer": null
      }
    ],
    "vectorizers": []
  }
}

To import those definitions manually, go to the Indexes settings on your AI Search Service, click the Add Index > Add Index (JSON) button and paste one at a time over the top of the default text.
I have had success creating these indexes manually and then setting the *DbType settings to AzureAISearch resulting in the UI showing AzureAISearch in the UI and also seeing chunked docs in the search index:

Hope that works for you too.

@jourdant Thank you very much. I will try it.

Hello, since this was asked in this thread. I wanted to share that I believe that the queue names and the -poison suffix from come from the  Kernel Memory repo
Specifically, this reference file. Constants.cs from Kernel Memory