Azure Chat with Custom Data problem

Hi!
I'm trying to use a Chat with custom Data on Azure.  The documentation, says that I must add the dataSource parameter to the options when I create a chat. This is the sample JSON
{
  "dataSources": [
    {
      "type": "AzureCognitiveSearch",
      "parameters": {
        "endpoint": "'$search_endpoint'",
        "indexName": "'$search_index'",
        "semanticConfiguration": "default",
        "queryType": "simple",
        "fieldsMapping": {},
        "inScope": true,
        "roleInformation": "You are an AI assistant that helps people find information.",
        "filter": null,
        "strictness": 3,
        "topNDocuments": 5,
        "key": "'$search_key'"
      }
    }
  ],
  "messages": [
    {
      "role": "system",
      "content": "You are an AI assistant that helps people find information."
    }
  ],
  "deployment": "my-deployment",
  "temperature": 0,
  "top_p": 1,
  "max_tokens": 800,
  "stop": null,
  "stream": true,
  "frequency_penalty": 0,
  "presence_penalty": 0,
  "azureSearchEndpoint": "https://my-chat-url.search.windows.net",
  "azureSearchKey": "***",
  "azureSearchIndexName": "my-index"
}

This is how I add the option
$opts['dataSources'] = [];

$_option = [];
$_option["type"] = "AzureCognitiveSearch";
$_option["parameters"] = [];

$_option["parameters"]['endpoint'] = $ds_endpoint;
$_option["parameters"]['indexName'] = $ds_index;
$_option["parameters"]['semanticConfiguration'] = $semantic_configuration;
$_option["parameters"]['queryType'] = $query_type;
$_option["parameters"]['fieldsMapping'] = $fields_mapping;
$_option["parameters"]['inScope'] = $use_custom_data_only;
$_option["parameters"]['roleInformation'] = $prompt;
$_option["parameters"]['filter'] = $filter;
$_option["parameters"]['strictness'] = $strictness;
$_option["parameters"]['topNDocuments'] = $top_n_documents;
$_option["parameters"]['key'] = $ds_key;

$opts['azureSearchEndpoint'] = $ds_endpoint;
$opts['azureSearchIndexName'] = $ds_index;
$opts['azureSearchKey'] = $ds_key;

$result = $open_ai->chat()->create($opts);

But Ii get an exception:
Unrecognized request arguments supplied: azureSearchEndpoint, azureSearchIndexName, azureSearchKey, dataSources

The problem only happens when I try to use this feature. Any idea?
Regards
J

I found out the problem, and it's in the client URL. I created the client like this
    $open_ai = OpenAI::factory()
    ->withBaseUri($azure_endpoint)
    ->withHttpHeader('api-key', $azure_openai_api_key)
    ->withQueryParam('api-version', $azure_openai_api_version)
    ->make();

But for using with custom data, the url is slightly different. Instead of /deployments/{my_deployment}/chat/completions, in this case I need to use /deployments/{my_deployment}/extensions/chat/completions (note the added /extensions)
    $open_ai = OpenAI::factory()
    ->withBaseUri($azure_endpoint."/extensions")
    ->withHttpHeader('api-key', $azure_openai_api_key)
    ->withQueryParam('api-version', $azure_openai_api_version)
    ->make();

With this change I get a data validation error from the API, but that's on my end.
So, if you get the error Unrecognized request arguments supplied, double check the service url.
I hope this help someone with this problem.
Regards
J


Python scripting

Would be nice to have and seems easy enough to set up. Writing bot logic in a scripting language can reduce compile times a lot during bot development, and some users just prefer Python's syntax over Ruby/Crystal.
https://docs.python.org/3/extending/embedding.html

Definitely long term low pri in my eyes
I don't mind forcing users onto crystal tbh, means we can't define a wonderful dsl


HTTP Request Error "connect: no route to host"

When I run the example code "HTTP Client",

meet the error:

I exec to docker container, and found that:

I can ping <IP_ADDRESS>
I can't ping gobyexample.com

Is the DNS problem? Does anyone have the same problem?

See: https://stackoverflow.com/questions/65572201/net-http-doesnt-work-in-the-go-playground


Add restore functionality so that classifier can be persisted.

Closes #1

FYI 1a848271d30b6833f747d814209e8887df0789ea removes object.extend for better browser support.

@haganbt great work, thanks!!


Add p-chart calculator

Proposal
I want to add a p chart calculator that determines the upper control limit and lower control limit of the process thus determining whether the process is under control or not.

Go ahead
Deadline 21 May,2021


unicode char problem

In the dataset I've drawn, some letters seem corrupted. for example ü,ı,ö,ç,ş .
Is there any solution to this or do I have to continue with this dataset?
example data:
\ud83d\udcccCHP'li Seyit Torun'un, \u0130\u00e7i\u015fleri Bakan\u0131 S\u00fcleyman Soylu'ya y\u00f6nelik "\u0130BB\u2019de 557 ter\u00f6rist var demi\u015ftin ama 8 ayd\u0131r g\u0131k\u0131n \u00e7\u0131\u2026

There's no "corruption" there. That's just UTF-16 encoding.
This isn't an issue with Tweepy.


Repository of Neural Networks

Create a repository of pre-trained neural networks for common tasks such as object detection, object classification, entity extraction etc. Those networks should be easily accessible from a dpasp program by providing a URL identifier or similar. Maybe use something similar as huggingface or huggingface library itself.

Hey! I would Like t Work on this issue


Update cspell.json

include documentation
add eng/common to exclusion list
add language-specific dictionary to 'dictionaries' entry to avoid false positives in language-specific keywords in documentation or other files

Thank you @danieljurek! Does this mean that we can update this dictionary to allow Unicode words that are not in the dictionary (https://github.com/Azure/azure-sdk-for-cpp/pull/2551/files#diff-cc1b46c667702f97b0f4104c7637ccca9da686d2df0cd9e47a39f12ced659897L17)?
So, with this fix, "Jørgen" being added to the list, there would be no error during the release?

@antkmsft  -- the unicode error we encountered on release was not the result of a spell check failing so this update doesn't address that. It was a failure that occurred when we attempted to post to the GitHub API some content for a release.
This PR is some cleanup work being done in each repo ahead of this PR which will give teams the ability to opt into failing CI when spelling errors are detected in PRs -- https://github.com/Azure/azure-sdk-tools/pull/1887


LM75 resolution

Hi what is the resolution for the LM75 read ? I seem to be only getting 1 degree resolution as shown here: https://thingspeak.com/channels/132964/private_show
Other temp comes from MPL3115.

https://thingspeak.com/channels/132964 public view


Add support for new coding platforms

Is your feature request related to a problem? Please describe.
Add support for new coding platforms.
Describe the solution you'd like
Pen name chooser feature should be added for more websites. Add the backend API and update the frontend accordingly.

coding platforms is like hackerrank? right?

@retry19 Yes

I can add this feature Please assign this task to me

hey, I am not familiar with react js
for adding the platforms, I have to change frontend/src/components/main.js file?

Successfully added freecodecamp, codewars and twitter
I am having trouble in adding hackerrank, need some help regarding that

Successfully added freecodecamp, codewars and twitter

Hi @ManavMalhotra Could you please create a PR for the same.

I am having trouble in adding hackerrank, need some help regarding that

Feel free to post any of your query here.

Hey @Aman-Codes
Can you check the PR


storage: optimize dropping chunks by using minShrinkRatio

If minShrinkRatio > 0, I think we can skip to read the beginning part of chunks, because, we are interested with the chunk index which satisfy minShrinkRatio, not first chunk index before beforeTime.

@beorn7
After discussing about storage code in https://github.com/prometheus/prometheus/issues/2384, I notice that we can use another optimization method.
This is the my proposal. Please review this.

Thanks for review!
I fixed!!

Thanks again.


TS declarations not included in build

When importing into a project, VS code reports
Cannot find module '@colyseus/ecs' or its corresponding type declarations.ts(2307)

Looking at the @colyseus/ecs folder in the node_modules there are no declarations in /lib/index.d.ts

Hi @will-hart, 👋  glad you're trying this out early. I've just published the latest version with typings included
Beware things might not be very stable - both at the ECSY integration and the new @colyseus/schema version. I'm currently trying to understand the cause of a "refId" not found: xxx that happens sometimes in the latest @colyseus/schema version.
Feel free to poke me here or on Discord if you have any feedback to give!
Cheers!

Awesome, thanks!
Yes, I saw it was an experiment. I've been playing around with my own ECS to integrate with colyseus, but was struggling to cleanly sync ECS >> server schema --> client schema >> ECS.
I think your approach here looks promising!


Bump Sql AssemblyInfo - AssemblyFileVersion up to <IP_ADDRESS> to match csproj version

Update AssemblyFileVersion to <IP_ADDRESS> to match that in https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Microsoft.Azure.Management.Sql.csproj

@erich-wang can you help me take a look?

Original pr: https://github.com/Azure/azure-sdk-for-net/pull/6857


Add instructions on how to build the PDF using a Docker image

The Docker image, available at:
https://hub.docker.com/r/robertoaloi/docker-thebeambook/
And whose source is at:
https://github.com/robertoaloi/docker-thebeambook/blob/master/Makefile
Is currently bloated with dependencies, since it includes everything that was indicated in the README (dblatex, asciidoc, etc) plus everything else necessary (erlang, git, make, etc).
Later on, we may want to use something more lightweight such as:
https://github.com/rochdev/docker-alpine-asciidoctor
But for now this should do.

This should solve #9


With Flutter didn't get firebase_in_app_messaging popup button click callback

we are trying to implement screen redirection base on dynamic link button click, but we didn't get code for firebase_in_app_messaging popup button click callback.
we are using below plugin :
https://pub.dev/packages/firebase_in_app_messaging

Hi @devappbirds
When opening an issue, please try to provide all of the information indicated in the template.
Closing this issue, since no information has been provided.
Thank you.


Clarify install instructions for various platform/PS version combinations.

Docs Build status updates of commit 381be10:
:clock10: Full build: the average full build time is 33 min(s) 49 sec(s), this is based on the last 78 build(s) for this repository.
:warning: This is a FULL build due to the incremental build being disabled in configuration file (.openpublishing.publish.config.json in 'live' branch). For more detailed info, please click here.

Docs Build status updates of commit 381be10:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-conceptual/azps-2.0.0/install-az-ps.md
:white_check_mark:Succeeded
View (azps-2.0.0)

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.


inertia/react ssr not working

i create a web and now i realize that the ssr not working (control + u , cant see the html code )
i use npm run build
i see the doc and those file are exist
https://inertiajs.com/server-side-rendering
help me please

How did you resolve the problem?


Get the team_assigned_id field in conversation model

Hi team!
I don't find the team_assigned_id linked to each intercom conversation. Do you think it could be possible to add it? That would help me a lot as assignees can be part of several teams I can't just join the assignee to the team_admin table.
Thanks a lot for your help!
Best,
Marie

Hi @marie-aircall thanks for opening this Issue for the request to add the assignee team reference to a conversation. This should be a relatively easy lift to join the team into the intercom__conversation_enhanced model within the intercom transformation dbt package.
I will add this task to our next SPRINT to add the functionality you are describing. In addition, we are always happy to support community contributions if you wanted to open a PR that incorporates this change! 🎉 Otherwise, I will continue communication here when I am able to get a working branch going for you!
Thanks again 😄

Hi @marie-aircall I wanted to give you an update that we are still planning to work on this feature request. However, we are prioritizing the upgrading of the package to dbt 20 compatibility. Once we upgrade the package we will focus on adding this functionality to the following release.

@marie-aircall taking a look at this now -- so by team_assigned_id are you referring to the team_id(s) associated with the conversation.assignee_id? if so, would you want to see an aggregated list of team_ids (and/or team_names) that the user assigned to a conversation belongs to? just wanna clarify since there's also the conversation_part level which has assigned_to_id and author_id as well (details on these IDs in ERD)

thinking through the details of this more, it might be good to talk this out over a meeting if you're down!
https://calendly.com/fivetran-solutions-team/fivetran-solutions-team-office-hours?month=2021-08

Closing this Issue as the solution was merged into the latest release.


Adding Jupyter notebook preview support

Summary
This adds a lot of code, but we are taking most of the json data included in
the python notebook and putting it here. Also I'm including a lot of libraries
like react-markdown, dompurify and katex.
Ticket Link
#28
Screenshots

Too many possible security issues for now. Closing as stale.


Compose plugin incompatible with Idea 222.*

Plugin 'Compose Multiplatform IDE Support' (version '1.1.1') is not compatible with the current version of the IDE, because it requires build 221.* or older but the current build is IC-222.3345.118

You can actually go to its plugin home page and use the dev version.
https://plugins.jetbrains.com/plugin/16541-compose-multiplatform-ide-support/versions/snapshots

It is fixed some time ago (we released <IP_ADDRESS> version). To prevent such situations in the future, we increased until version significantly in https://github.com/JetBrains/compose-jb/pull/2318 and plan to run compatibility checks for the latest IDEA on CI.

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


Update implementation using AWS SDK v3

AWS SDK v3 is the new recommended way of building applications.
It introduces some very nice changes to the interface, such as .promise() as default, separate packages for each service, etc.
https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/migrating-to-v3.html
I'm able to work on it if required. What do you think @ssut?

Looks good but because this project heavily depends on sqs-producer and sqs-consumer, their dependencies must be updated before. I think it will not be easily possible to update their deps, organizing – like monorepo – them into this project can be options for us to consider.

Hey I wrote a library, aws sdk v3 for nest
Mind take a look?
https://github.com/deligenius/aws-sdk-v3-nest

Looks good but because this project heavily depends on sqs-producer and sqs-consumer, their dependencies must be updated before. I think it will not be easily possible to update their deps, organizing – like monorepo – them into this project can be options for us to consider.

Both of these have now been updated! :)


Latest hash repo is now 371

Hi. The latest VirusShare hash repo is now 371. Thanks!

done! thanks!


[BUG] Convert Xls File "Uninitialized string offset:<PHONE_NUMBER>"

As the stacktrace shows, this is an exception in PhpSpreadsheet's Xls reader, please report this bug in the proper issue tracker.
P.S. next time please fill in the required issue template.


[Feature] Theme JS file for quick config!

I Think it takes nothing to make a theme config file, to allow people to quickly add their own to the theme shell.
We can start with the colour palette, but eventually even the layout would be a nice addition, while using inline styles and css grid.
Looking forward to other opinions! Cheers

I think that's an excellent idea. 👍
Let's maybe make this issue only around colors first to keep complexity low and take it from there then?


Mutually exclusive positional parameters, or perhaps subcommands of subcommands

OK, so this is more of a question, but perhaps a feature request.
I have program hsthandler with several subcommands, one of which is delete. Depending on what I choose to delete, different arguments are needed. So, if I want to delete LU I need to specifiy YEAR and MONTH. If I want to delete ORDINST I need to specify FACULTY.
Example 1:
hsthandler load LU 2021 8
Example 2:
hsthandler load ORDINST Humanities
load is a subcommand. LU and ORDINST I refer to as 'variants'.
I attempted to do this as ArgGroups, with no success. (To simplify things I made variant a paramater of the main command hsthandler, so we dont have to worry about that part here.):
public class DeleteParameters {
		@ArgGroup(exclusive=true, multiplicity="1")
		lateinit var argGroupLU: LUDeleteParameters
		@ArgGroup(exclusive=true, multiplicity="1")
		lateinit var argGroupOrdInst: OrdInstDeleteParameters
	}

	public class LUDeleteParameters {
		@Parameters(paramLabel = "YEAR", description = ["Year to delete."])
		var year: Int = 0
		@Parameters(paramLabel = "MONTH", description = ["Month (number) to delete."])
		var month: Int = 0
	}

	public class OrdInstDeleteParameters {
		@Parameters(paramLabel = "FACULTY", description = ["Faculty to delete."])
		lateinit var faculty: Faculty
	}

	@Command(name="delete", description = ["Deletes some things."])
	fun delete(
		@ArgGroup(exclusive=true, multiplicity="1")
		lateinit var dp: DeleteParameters
	){
	  // Actually delete stuff.
	}

This resulted in error: 'var' on function parameter is not allowed[nl] lateinit var dp: DeleteParameters[nl].
I am not sure this can be solved with mutually exlusive positional parameters. Another alternative would be to let LU and ORDINST be subcommands of load. But that is not possible, right?
Any suggestions?

Sub-subcommands ARE allowed! It is right there, in the documentation. Sorry.

No worries 😉


testOptimization: 2 calls are needed to go from uninitialized -> pre-monomorphic -> monomorphic

Hi,
See this comment in:
https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#1-tooling
So perhaps better run the functions twice in testOptimization before the check?
Thanks!

Thanks for the heads up.   I have updated the source code and published a new version.


WIP: Support ESM for knexfile, migrations and seeds

[X] Ensure that commonjs compatibility is retained
[ ] Ensure that ESM migrations/seeds/knexfile are correctly imported
[ ] When type=module is specified in package.json then generated files should be ESM.

@lorefnon Is this still relevant after #3616 is merged?


getting these errors running benchmark using wrk -c 250 -d 10 -t 1 http://<IP_ADDRESS>:8080/ on hello world example

getting these errors running benchmark using wrk -c 250 -d 10 -t 1 http://<IP_ADDRESS>:8080/ on hello world example
i think i'm getting it coz of too many concurrent connections. with -c 167, there's no error. at -c 170 there will be.
i didnt test anything between 167 and 170 but i know there's no such error above 167 or so.
is this error limited to max connection per client or per worker instance?
in either case, how do i increase the limits of both?
./bazel-bin/src/workerd/server/workerd@5f64b9 ./bazel-bin/src/workerd/server/workerd@70d3f0 ./bazel-bin/src/workerd/server/workerd@70d960 ./bazel-bin/src/workerd/server/workerd@70e5d0 ./bazel-bin/src/workerd/server/workerd@70ebf0 ./bazel-bin/src/workerd/server/workerd@167a0e0 ./bazel-bin/src/workerd/server/workerd@167cbf0
workerd/server/server.c++:2107: error: Uncaught exception: kj/async-io-unix.c++:186: disconnected: worker_do_not_log; Request failed due to internal error
stack: ./bazel-bin/src/workerd/server/workerd@1886faf ./bazel-bin/src/workerd/server/workerd@1887ad1 ./bazel-bin/src/workerd/server/workerd@169b4ec ./bazel-bin/src/workerd/server/workerd@169b640 ./bazel-bin/src/workerd/server/workerd@169ace0 ./bazel-bin/src/workerd/server/workerd@5af7c0 ./bazel-bin/src/workerd/server/workerd@4aafc0 ./bazel-bin/src/workerd/server/workerd@5b4da0 ./bazel-bin/src/workerd/server/workerd@5f58f0 ./bazel-bin/src/workerd/server/workerd@5f64b9 ./bazel-bin/src/workerd/server/workerd@70d3f0 ./bazel-bin/src/workerd/server/workerd@70d960 ./bazel-bin/src/workerd/server/workerd@70e5d0 ./bazel-bin/src/workerd/server/workerd@70ebf0 ./bazel-bin/src/workerd/server/workerd@167a0e0 ./bazel-bin/src/workerd/server/workerd@167cbf0
workerd/server/server.c++:2107: error: Uncaught exception: kj/async-io-unix.c++:186: disconnected: worker_do_not_log; Request failed due to internal error
stack: ./bazel-bin/src/workerd/server/workerd@1886faf ./bazel-bin/src/workerd/server/workerd@1887ad1 ./bazel-bin/src/workerd/server/workerd@169b4ec ./bazel-bin/src/workerd/server/workerd@169b640 ./bazel-bin/src/workerd/server/workerd@169ace0 ./bazel-bin/src/workerd/server/workerd@5af7c0 ./bazel-bin/src/workerd/server/workerd@4aafc0 ./bazel-bin/src/workerd/server/workerd@5b4da0 ./bazel-bin/src/workerd/server/workerd@5f58f0 ./bazel-bin/src/workerd/server/workerd@5f64b9 ./bazel-bin/src/workerd/server/workerd@70d3f0 ./bazel-bin/src/workerd/server/workerd@70d960 ./bazel-bin/src/workerd/server/workerd@70e5d0 ./bazel-bin/src/workerd/server/workerd@70ebf0 ./bazel-bin/src/workerd/server/workerd@167a0e0 ./bazel-bin/src/workerd/server/workerd@167cbf0
workerd/server/server.c++:2107: error: Uncaught exception: kj/async-io-unix.c++:186: disconnected: worker_do_not_log; Request failed due to internal error
stack: ./bazel-bin/src/workerd/server/workerd@1886faf ./bazel-bin/src/workerd/server/workerd@1887ad1 ./bazel-bin/src/workerd/server/workerd@169b4ec ./bazel-bin/src/workerd/server/workerd@169b640 ./bazel-bin/src/workerd/server/workerd@169ace0 ./bazel-bin/src/workerd/server/workerd@5af7c0 ./bazel-bin/src/workerd/server/workerd@4aafc0 ./bazel-bin/src/workerd/server/workerd@5b4da0 ./bazel-bin/src/workerd/server/workerd@5f58f0 ./bazel-bin/src/workerd/server/workerd@5f64b9 ./bazel-bin/src/workerd/server/workerd@70d3f0 ./bazel-bin/src/workerd/server/workerd@70d960 ./bazel-bin/src/workerd/server/workerd@70e5d0 ./bazel-bin/src/workerd/server/workerd@70ebf0 ./bazel-bin/src/workerd/server/workerd@167a0e0 ./bazel-bin/src/workerd/server/workerd@167cbf0
workerd/server/server.c++:2107: error: Uncaught exception: kj/async-io-unix.c++:186: disconnected: worker_do_not_log; Request failed due to internal error
stack: ./bazel-bin/src/workerd/server/workerd@1886faf ./bazel-bin/src/workerd/server/workerd@1887ad1 ./bazel-bin/src/workerd/server/workerd@169b4ec ./bazel-bin/src/workerd/server/workerd@169b640 ./bazel-bin/src/workerd/server/workerd@169ace0 ./bazel-bin/src/workerd/server/workerd@5af7c0 ./bazel-bin/src/workerd/server/workerd@4aafc0 ./bazel-bin/src/workerd/server/workerd@5b4da0 ./bazel-bin/src/workerd/server/workerd@5f58f0 ./bazel-bin/src/workerd/server/workerd@5f64b9 ./bazel-bin/src/workerd/server/workerd@70d3f0 ./bazel-bin/src/workerd/server/workerd@70d960 ./bazel-bin/src/workerd/server/workerd@70e5d0 ./bazel-bin/src/workerd/server/workerd@70ebf0 ./bazel-bin/src/workerd/server/workerd@167a0e0 ./bazel-bin/src/workerd/server/workerd@167cbf0
workerd/server/server.c++:2107: error: Uncaught exception: kj/async-io-unix.c++:186: disconnected: worker_do_not_log; Request failed due to internal error
stack: ./bazel-bin/src/workerd/server/workerd@1886faf ./bazel-bin/src/workerd/server/workerd@1887ad1 ./bazel-bin/src/workerd/server/workerd@169b4ec ./bazel-bin/src/workerd/server/workerd@169b640 ./bazel-bin/src/workerd/server/workerd@169ace0 ./bazel-bin/src/workerd/server/workerd@5af7c0 ./bazel-bin/src/workerd/server/workerd@4aafc0 ./bazel-bin/src/workerd/server/workerd@5b4da0 ./bazel-bin/src/workerd/server/workerd@5f58f0 ./bazel-bin/src/workerd/server/workerd@5f64b9 ./bazel-bin/src/workerd/server/workerd@70d3f0 ./bazel-bin/src/workerd/server/workerd@70d960 ./bazel-bin/src/workerd/server/workerd@70e5d0 ./bazel-bin/src/workerd/server/workerd@70ebf0 ./bazel-bin/src/workerd/server/workerd@167a0e0 ./bazel-bin/src/workerd/server/workerd@167cbf0
workerd/server/server.c++:2107: error: Uncaught exception: kj/async-io-unix.c++:186: disconnected: worker_do_not_log; Request failed due to internal error
stack: ./bazel-bin/src/workerd/server/workerd@1886faf ./bazel-bin/src/workerd/server/workerd@1887ad1 ./bazel-bin/src/workerd/server/workerd@169b4ec ./bazel-bin/src/workerd/server/workerd@169b640 ./bazel-bin/src/workerd/server/workerd@169ace0 ./bazel-bin/src/workerd/server/workerd@5af7c0 ./bazel-bin/src/workerd/server/workerd@4aafc0 ./bazel-bin/src/workerd/server/workerd@5b4da0 ./bazel-bin/src/workerd/server/workerd@5f58f0 ./bazel-bin/src/workerd/server/workerd@5f64b9 ./bazel-bin/src/workerd/server/workerd@70d3f0 ./bazel-bin/src/workerd/server/workerd@70d960 ./bazel-bin/src/workerd/server/workerd@70e5d0 ./bazel-bin/src/workerd/server/workerd@70ebf0 ./bazel-bin/src/workerd/server/workerd@167a0e0 ./bazel-bin/src/workerd/server/workerd@167cbf0

Hmm, it's weird that you're not seeing log lines for the actual errors. Usually when an "internal error" is reported, there's a separate log line reporting what the actual error is. Try running with --verbose to see if it produces any more info. That said, we know we have work to do on error reporting in workerd -- this is a major todo item listed in the readme.
As for the actual problem, it's hard to say without seeing the underlying error, but my guess is you are running out of file descriptors. workerd itself doesn't have any particular limits on concurrency, but you may have your ulimit -n configured too low such that the system is preventing workerd from accepting more connections.
That said, note that workerd is currently single-threaded, so by the time you have hundreds of connections open, you are not going to see more throughput from more connections. If you want to utilize multiple cores on a machine, you'll need to run multiple instances of workerd. and load-balance between them.

i realised the request per second is too low compared with other c++ / golang options so i wont be using this for now.
maybe in future. it's 7x slower than c++ equivalent.

Hmm, without knowing exactly what you tested, it's hard to know what to make of your results, but ok.


Add arrow to expand notification preview in notifications bar

Feature Request
Add an option to show the expand arrow to show the complete notification message payload.
Motivation Behind Feature
Notifications from other apps do show the arrow to expand them.
Feature Description
Check screenshot to see notifications from non-Cordova apps that include the expand arrow:

Alternatives or Workarounds
Unknown.

I'm also facing the issue, Some devices not having arrow button in notification, Some devices having the arrow button. Any solution for this issue ? Its happening only in Android.

I've resolved the issue. Please make the following changes to ensure it works. I'm unable to commit the changes, so I've attached them here for you.


refactor QT widgets from pyflow

Refactor slider widgets from pyflow project  and keep Apache 2.0 license
https://github.com/wonderworks-software/PyFlow

Hello @IlgarLunin  and @pedroCabrera
Not sure if you will read this, but just in case, let me explain.
First of all thanks for Pyflow. it is a really cool project and I am learning a lot  just digging in your code :)
I want to use some of your widgets from Pyflow in a new tool for mGear. Is this tool: https://github.com/mgear-dev/animbits/issues/14
I have been looking on the internet on how to mix properly your Apache 2.0 license and MIT.
Basically I have created a separated module for your widgets and state the following at the beginning of the file:
##############################################################################
# NOTE:
# this files is a modification/combination of some files from pyflow project
# https://github.com/wonderworks-software/PyFlow
##############################################################################

# Copyright 2015-2019 Ilgar Lunin, Pedro Cabrera

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

Here is the file if you want to check: https://github.com/mgear-dev/mgear_core/blob/master/scripts/mgear/core/pyflow_widgets.py
is that ok for you?  Should I add any other notice or information?
Thanks!

Hi!! Thank you for you interest to PyFlow :) Yes license code + PyFlow link
is totally enough. Have fun

Awesome!
@IlgarLunin Thanks for the quick reply! :D

Hi @IlgarLunin
Just let you know that the tool using the pyflow widgets is done :)
http://forum.mgear-framework.com/t/mgear-3-5-0-available/1330
Thanks again for this! :)
Cheers,
Miquel


Windows Errata Release 06/10/2019

Windows Errata Release 06/10/2019

Docs Build status updates of commit f7f9df2:
:warning: Validation status: warnings

File
Status
Preview URL
Details

documentation/blog/MS-WININTBLOGLP/171376c7-36c0-46cc-8185-9858deb30232.md
:warning:Warning

Details

documentation/blog/MS-WININTBLOGLP/7fd3a492-31dd-4e3d-a3f4-d2828a479f1b.md
:warning:Warning

Details

documentation/blog/MS-WININTBLOGLP/b46eb6ad-96bd-4d3b-80ef-b4cac490e3b2.md
:warning:Warning

Details

documentation/blog/MS-WININTBLOGLP/MS-WININTBLOGLP_files/image002.png
:white_check_mark:Succeeded

documentation/blog/MS-WININTBLOGLP/MS-WININTBLOGLP_files/image007.png
:white_check_mark:Succeeded

documentation/blog/MS-WININTBLOGLP/MS-WININTBLOGLP_files/image008.png
:white_check_mark:Succeeded

documentation/blog/MS-WININTBLOGLP/toc.yml
:white_check_mark:Succeeded

documentation/blog/MS-WININTBLOGLP/171376c7-36c0-46cc-8185-9858deb30232.md

[Warning] Author openspecs-office cannot be recognized in GitHub.

documentation/blog/MS-WININTBLOGLP/7fd3a492-31dd-4e3d-a3f4-d2828a479f1b.md

[Warning] Author openspecs-office cannot be recognized in GitHub.

documentation/blog/MS-WININTBLOGLP/b46eb6ad-96bd-4d3b-80ef-b4cac490e3b2.md

[Warning] Author openspecs-office cannot be recognized in GitHub.

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.


cf_exporter for general user

Hello.
Can we use exporter at pws or use it with general user permission?

The exporter client id should have the cloud_controller.adminor cloud_controller.admin_read_only scope, so unless you have a client id with those scopes, the exporter should fail (in theory, but I have never tested trying to connect to pws).


Support for 'flip'

It would be great if we could apply flip to a function before we hand it over to a command. For example (suppose that % is a flip-operator):
> seq 3 | map %append "-"
-1
-2
-3

> seq 3 | filter %contains "12"
1
2

It would be great if we could apply flip to a function before we hand it over to a command. For example (suppose that % is a flip-operator):
> seq 3 | map %append "-"
1-
2-
3-

With reference to the first example, if I just do seq | map append "-" - whitout flip - this is what I get:
> seq 3 | map append "-"
1-
2-
3-

I Imagine that the expect output when using flip would be:
> seq 3 | map %append "-"
-1
-2
-3

am I interpreting this in the right way?

am I interpreting this in the right way?

Absolutely, thanks. I have adapted my description above.


feat: implementation of BlockEntity in the Chunk API

I'm trying to implement BlockEntity's into the codebase as by #5.
DO NOT MERGE as it is just a WIP. Wanted to open a pull request so other people could work on it too and that multiple people don't start implementing it by themselves.

This got closed as KevinKonradi doesn't have time for it anymore. If I find time I'll try and do it


Apparent different docker container create from plugin vs Dockerfile

When I create a docker image from the plugin I get an error when trying to run the docker image.  However, when I run the same image using /bin/bash as the entrypoint and then execute the same entrypoint command it runs just fine.  Also if I use a Dockerfile to create the same image, it works just fine doing a docker run.
How to reproduce
POM file configuration:
            <plugin>
              <groupId>com.spotify</groupId>
              <artifactId>docker-maven-plugin</artifactId>
              <version>0.4.13</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>build</goal>
                        </goals>
                        <phase>package</phase>
                    </execution>
                </executions>
              <configuration>
                <imageName>myImage</imageName>
                <baseImage>local.docker.registry:5000/openjdk-7:latest</baseImage>
                <entryPoint>["java", "-Dspring.profiles.active=local -DCCP_CONFIG_FILE=configCCP.xml -jar", "/${project.build.finalName}.jar"]</entryPoint>
                <!-- copy the service's jar file from target into the root directory of the image -->
                <resources>
                   <resource>
                     <targetPath>/</targetPath>
                     <directory>${project.build.directory}</directory>
                     <include>${project.build.finalName}.jar</include>
                   </resource>
                </resources>
              </configuration>
            </plugin>

Output from build:
[INFO] --- docker-maven-plugin:0.4.13:build (default) @ MYService ---
[INFO] Copying /home/user/git/project/MyService/target/MyService-1.1.0-SNAPSHOT.jar -> /home/user/git/project/MyService/target/docker/MyService-1.1.0-SNAPSHOT.jar
[INFO] Building image myImage
Step 1 : FROM local.docker.registry:5000/openjdk-7:latest
 ---> 63ec3c344602
Step 2 : ADD /MyService-1.1.0-SNAPSHOT.jar //
 ---> 4c8ae9776dce
Removing intermediate container 34e0431d7254
Step 3 : ENTRYPOINT java -Dspring.profiles.active=local -DCCP_CONFIG_FILE=configCCP.xml -jar /MyService-1.1.0-SNAPSHOT.jar
 ---> Running in b053fa169cf6
 ---> 9e9a6f47f969
Removing intermediate container b053fa169cf6
Successfully built 9e9a6f47f969
[INFO] Built myImage

Output from run command:
docker run 9e9a6f47f969
Error: Could not find or load main class .MyService-1.1.0-SNAPSHOT.jar

If I use this command to get a bash terminal in the container I can see the MyService jar file, and the entrypoint script works fine: docker run -ti --entrypoint=/bin/bash 9e9a6f47f969
Also, when I use this Dockerfile to make an image, it will execute the entrypoint script without problems:
FROM local.docker.registry:5000/openjdk-7
# get the latest version myService
ADD myService/target/myService-1.1.0-SNAPSHOT.jar /
# run it
ENTRYPOINT java -Dspring.profiles.active=local -DCCP_CONFIG_FILE=configCCP.xml -jar /myService-1.1.0-SNAPSHOT.jar

Step 1 : FROM local.docker.registry:5000/openjdk-7
 ---> 63ec3c344602
Step 2 : ADD myService/target/myService-1.1.0-SNAPSHOT.jar /
 ---> dcecb029f8d8
Removing intermediate container 417e4dd3348b
Step 3 : ENTRYPOINT java -Dspring.profiles.active=local -DCCP_CONFIG_FILE=configCCP.xml -jar /myService-1.1.0-SNAPSHOT.jar
 ---> Running in 0b18295da8ab
 ---> 5f802dbdff29
Removing intermediate container 0b18295da8ab
Successfully built 5f802dbdff29

What do you expect
Both containers run the entrypoint command.
What happened instead
Only the image that I build using the dockerfile will run the entrypoint command without error.
Software:

docker version: Docker version 1.9.1, build a34a1d5
docker-maven-plugin version: 0.4.13
maven version: Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T10:29:23-07:00)

It appears that the plug-in is very finicky about how you specify the entrypoint.  I was doing it this way:
<entryPoint>["java", "-Dspring.profiles.active=local -DCCP_CONFIG_FILE=configCCP.xml -jar", "/${project.build.finalName}.jar"]</entryPoint>
Notice that all the -D args and the -jar params are in the same quote block.
But when I did a docker inspect on both the container the plug-in created and the one I created with a docker build and a dockerfile I noticed the EntryPoint: was different:
plug-in generated image:
"Entrypoint": [             "java",             "-Dspring.profiles.active=local -DCCP_CONFIG_FILE=configCCP.xml -jar",             "/myService-1.1.0-SNAPSHOT.jar"         ],
docker build created image:
"Entrypoint": [             "/bin/sh",             "-c",             "java -Dspring.profiles.active=local -DCCP_CONFIG_FILE=configCCP.xml -jar /myService-1.1.0-SNAPSHOT.jar"         ],
So I tried changing how I specified the entrypoint in the maven pom file, and finally noticed that if I quoted everything separately it'd create the entrypoint differently:
New pom file
<entryPoint>["java", "-Dspring.profiles.active=local",  "-DCCP_CONFIG_FILE=configCCP.xml",  "-jar", "/${project.build.finalName}.jar"]</entryPoint>
Now the plug-in entrypoint looks like this (from inspect again):
"Entrypoint": [             "java",             "-Dspring.profiles.active=local",             "-DCCP_CONFIG_FILE=configCCP.xml",             "-jar",             "/myService-1.1.0-SNAPSHOT.jar"         ],
This works, and starts my springboot jar file when I do a docker run.  However, it's still not the same as the entrypoint that doing a docker build creates.
Anyone know why that may be?  And is it important to have that /bin/sh -c ??

We recommend users switch to https://github.com/spotify/dockerfile-maven. This project is now bug fix only mode.


Address spellchecker errors

Errors: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1024662&view=logs&j=10327055-d4d6-50a6-a312-3d2cd4bd9cb9&t=65f0e4aa-f456-5911-deca-bd807ca3354c&l=98
To run the tool locally, run eng\scripts\Export-API.ps1 -SpellCheckPublicApiSurface <service>
If there are errors, please fix them.
If there are false positives, add them to https://github.com/Azure/azure-sdk-for-net/blob/main/.vscode/cspell.json#L68

Duplicate of https://github.com/Azure/azure-sdk-for-net/issues/23179


Compatibility (not an issue)

Hi, nice project. I maintain vamphost (https://github.com/gesellkammer/vamphost), a vamp host in python, and some vamp plugins as well.
If I understand correctly, plugins compiled with this SDK will not be compatible with hosts using the original SDK, right? Have you tried submitting these changes upstream? My own experience in this regard has been somewhat frustrating, so curious to know if this is a trend.

Thank you for tagging me Lukas.
The Vamp-related projects under c4dm "namespace", and those at code.soundsoftware, effectively became unmaintained when I left c4dm in mid-2020. I continued to do some maintenance of Sonic Visualiser and a few related things where possible, but time and energy were limited and it seemed appropriate to de-prioritise those projects whose organisation I didn't feel I truly had authority to represent any more anyway. Unfortunately there were quite a lot of projects at c4dm that I was really the only maintainer of, so the situation wasn't ideal.
But things may be looking up. I am in fact doing some work at c4dm again now, including on Sonic Visualiser and related code, and I would also like to get some of those projects into better shape for broader and more collaborative support. It would probably make a big difference simply to move the reference Vamp SDK projects to a Vamp plugins organisation on Github, for a start - ideally one of which I am not the only admin!

plugins created with rtvamp should be compatible with all other vamp hosts
plugins created with the original SDK will be compatible with the rtvamp host if the fulfill following requirements:
https://github.com/lukasberbuer/rt-vamp-plugin-sdk?tab=readme-ov-file#plugin-restrictions

This is great. Where do you see the greatest speed-up, on the host or on the plugin?
I use vamp plugins for feature extraction for speech/music analysis and machine learning mostly within this project: https://maelzel.readthedocs.io/en/latest/index.html. When analyzing hours of audio any speed up is helpful.

I see two major points of speedup:

Less heap-allocations and creation of temporary objects with every process call. This happens 50% on the plugin side (conversion to C API) and 50% on the host side (conversion back to C++ API). This plugin/host SDK removes some overhead for each call to the process member function. If the computations inside the process function are cheap, the overhead is relatively high. If tried to capture this with the RMS benchmark. You see, that the difference between the SDKs is higher for smaller block sizes (= less computations). At some point, the performance of the SDKs converges, because the absolute overhead becomes relatively small.

Better multi-threading performance of the plugins due to the internal std::shared_mutex. Shared mutexes are usually used in situations when multiple readers can access the same resource at the same time without causing data races, but only one writer can do so. This causes some measurable compared to the std::mutex used in the official SDK.

Thank you for tagging me Lukas.
The Vamp-related projects under c4dm "namespace", and those at code.soundsoftware, effectively became unmaintained when I left c4dm in mid-2020. I continued to do some maintenance of Sonic Visualiser and a few related things where possible, but time and energy were limited and it seemed appropriate to de-prioritise those projects whose organisation I didn't feel I truly had authority to represent any more anyway. Unfortunately there were quite a lot of projects at c4dm that I was really the only maintainer of, so the situation wasn't ideal.
But things may be looking up. I am in fact doing some work at c4dm again now, including on Sonic Visualiser and related code, and I would also like to get some of those projects into better shape for broader and more collaborative support. It would probably make a big difference simply to move the reference Vamp SDK projects to a Vamp plugins organisation on Github, for a start - ideally one of which I am not the only admin! I've just created a vamp-plugins organisation to this purpose.

This are great news @cannam! You created an amazing ecosystem for analysis of sound-like data with the Vamp plugins and Sonic Visualiser. Please let me know if I can support you in the maintenance and maybe modernization of the vamp-plugin-sdk. I would like to contribute.

The design of the original SDK certainly leaves some big performance holes.
That was intentional at the time, in that I wanted the simplest concept for the plugin writer who maybe wasn't very familiar with C++. Building structures and returning them by value seemed easy to understand in comparison to alternatives that involved references to internal data.
The perceived typical use for the original SDK was for someone who was not necessarily a self-identified C++ programmer to adapt into C++ a method perhaps originally written in something like MATLAB, that involved very significant amounts of processing per block of audio and returned only small numbers of features afterwards. The canonical example would be a beat tracker plugin. So for example the SDK has this extra support for doing frequency-domain conversion on the host side and that is partly for performance reasons and partly just to make it easier on the plugin side, but it doesn't really care about the overhead of allocating a few vectors or a small map per block. (Of course, this rationale is a little bit undermined by the example plugins found in the SDK itself, which include some for which the copying actually is a significant overhead.)
Also on a slightly fuzzier level, I really didn't want to insist that plugin authors do feature-extraction in a RT-safe way, and it seemed potentially helpful to make clear that there was nothing real-time about the SDK at all, right from the beginning.
I'm totally happy to see more than one SDK, so long as they interoperate. It would be great to be able to direct developers to one SDK or the other depending on their particular requirements, and I don't see why the "official" Vamp organisation/site shouldn't do that. I'm also thinking to try writing a plugin using the RT SDK myself to see how I get on.
It would be good for a host to be able to distinguish RT-safe from non-RT-safe plugins - I can't remember whether we talked about that @lukasberbuer? It's the sort of thing that could go in the RDF description that many plugins have, although the RDF stuff is confusing enough to deal with that I think very few plugin authors actually do anything with it themselves. It would be particularly interesting in the case where an update to a plugin switches it from one SDK to the other - I can well imagine reworking a few more data-intensive plugins into RT ones.

Hi Chris (@cannam),
the RT use-case is definitely a very special one and I don't expect that too many people need this.
My main focus wasn't about processing of audio data but noise & vibration data (usually of machines) also in the ultrasonic frequency range. The algorithms are quite similar and the Vamp plugin ecosystem was quite a good fit. We at @vallen-systems process ultrasonic data with sampling rates of up to 10 MHz in real time and want to provide users an interface to embed their own feature extraction. Instead of inventing our own interface, we went with your standard trying to avoid this:

Regarding interoperability: We talked about the issue, that the current rtvamp host does not support all plugins which might generate more outputs per process call. I couldn't find a good way to extend the current API without sacrificing performance or introducing heap allocations for the target use case (OneSamplePerStep and hasFixedBinCount == true). Maybe you have a idea or recommendation?
Btw, thank you for inviting me to the @vamp-plugins org. I was quite busy the last weeks but looking forward to work with you on Vamp plugins ecosystem 😊


Create the backend for MyDailyVerse & Figure out the logic of the API (test using Postman + tweak it as the frontend is being built)

created quran.json {"chapter_number": "#ofVerses"}, confirmed using this script:
import pandas
import requests

qurandict = { import it
}

request = requests.get("https://api.alquran.cloud/v1/surah")
data = request.json()
df = pandas.DataFrame(data["data"])

for i in range(len(df)):
    print(df["numberOfAyahs"][i], qurandict[str(i+1)])
    if df["numberOfAyahs"][i] != qurandict[str(i+1)]:
        print("Error in Surah", i+1)
    else:
        print("Surah", i+1, "is correct")
    print()

reopenend as

reopened to tweak the json folder we have to include the name of the surah, check google fot big json we found to tweak the frontend

handle the language in a proper manner

done by @mohdels jAk


make top most Workspace Folder sticky (in File Explorer)

In a scrolled File Explorer with multiple Workspace Folders, it would be nice to see which root folder the top most files belong to.
The 3rd option shows what it could look like, if #140007 was applied as well.

I recorded a little demonstration to clarify the request:
https://github.com/microsoft/vscode/issues/140971

This is a fair feature request that has come up in some form or another a few times before, including the general case of having every parent folder appear as a breadcrumb when they're out of scroll view (not just the root workspace folder).
cc @joaomoreno do you have an idea of how big of a change to the tree widget it would be to support something like this?

Might not be too hard to get something going, but the edge cases will be brutal. Namely, what happpens with keyboard/mouse selection, drag and drop, etc.

I'd make it so that the sticky element isn't part of the file explorer. I'd just make it hover there for informative purposes. Only the arrow button would interest me, to fold the tree.
If you try to drop something on it, the explorer below starts scrolling anyway. My instinct tells me to wait for the scroll to end before dropping. Drop targets are highlighted, i wait for the highlighting to appear. That means, i'd wait for the real element to appear and drop on that. Drop actions on the sticky element, can be discarded.
I would also ignore drag and click actions, you could scroll up on click, instantly to the point where the sticky element is replaced by the real element, although, i don't see the benefits.


add code for ForcedSourceExtra table

Coverage remained the same at 94.444% when pulling faa76280385b366ca38376d5c9aa921bfc4a5312 on u/jchiang/forced_source_extras_table into 83be6cadd3cff3c1f895fd654759b682638c0db1 on master.

Coverage decreased (-21.8%) to 72.611% when pulling f18dbd60b28bbaf3d03fac4715a69371183507f3 on u/jchiang/forced_source_extras_table into 83be6cadd3cff3c1f895fd654759b682638c0db1 on master.

Coverage decreased (-21.8%) to 72.611% when pulling 794b78f92bb104b79876964c69e18cc0b2049f9a on u/jchiang/forced_source_extras_table into 83be6cadd3cff3c1f895fd654759b682638c0db1 on master.

Coverage decreased (-21.8%) to 72.611% when pulling 7fd23b052684bd4040ecd579cb885d2285daff3e on u/jchiang/forced_source_extras_table into 83be6cadd3cff3c1f895fd654759b682638c0db1 on master.

Coverage increased (+1.1%) to 95.541% when pulling 1ca64b5e53aafbb8f8afa9d6a1296dcc04adb4a2 on u/jchiang/forced_source_extras_table into 83be6cadd3cff3c1f895fd654759b682638c0db1 on master.


Spring todolist 3

Purpose

...

Does this introduce a breaking change?

[ ] Yes
[ ] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Test the code

What to Check
Verify that the following are valid

...

Other Information

@tonyYuhaoYangMcrS probably need a generic error page on front-end for rejections from the API like these

@tonyYuhaoYangMcrS we should probably get rid of the entire /api/date endpoint and related code


Report Templates v2

Before you start

[ ] Have you checked if a similar PR has already been requested?

Related/Fixed issues
Address related/fixed issues

Related: #
Fixed: #

Description
Details of changes are listed here
Motivation and Context
Items resolved/related issues by this PR.
Assets (if appropriate):
A list of assets (screenshots, mockups) relevant to this pull request.

Mergeable?

Mergeable?

I think.. there doesnt seem to be anything else I can do

on this PR or entire this project?

on this PR or entire this project?

oh on this PR definitely

but yeah please merge
@onein528


✨ Adds support for position properties to rad dropdown [#78]

✨ Rad dropdowns can now be positioned left/right/top/bottom
📝 Guides have been updated to demonstrate this feature
Addresses #78
Tests

[x] I added tests for changes I made
[ ] All tests are definitely passing

Dan.


Alternative representation for empty structs

Currently empty structs are represented as type Foo = null. A reasonable alternative would be interface Foo = {}.

Agreed. I do think that we need some good way of letting users configure what they want. I'll start looking into how to support a configuration file for the derive macro. Then, I'm open to these kinds of customizations.

I think they should be represented as type Foo = 'foo' as this is a common idiom at least in my work. It allows you to define tags in a way that's only defined in one place. I.e. then you can do like,
type Foo = 'foo';
type Bar = 'bar';
type Baz = 'baz';

type All = Foo | Bar | Baz;

type X = Extract<All, Foo>;

Closing this for now - the default bindings for unit structs are now compatible with the output of serde_json. If something else is desired, overrides should be used.


Update data for OSMM (like VML)

Presumably the way VML is updated would work for OSMM too? Would it just be the case of updating the sql scripts to match the OSMM tables?

Unfortunatly not, updates to VML are supplied at the tile level meaning that we simply load the new data then replace all features in the current holding that belong to the superseeded tiles with the new.
OSMM is supplied as change only updates (COU) which is a little more complicated as you have some new features, some updated and some departed. The logic is not that involved but I'm yet to implement it. I've spoken to a few people about implementing the logic in Postgres as it's generally our destination but also in SQLite which would allow users to maintain a holding in SQLite then export the current holding to other file based formats if required.

Hi, just FYI - I just got a refresh from MasterMap - and they are now delivering them in 5k gml files (i.e. one gml file per 5k square.) Personally very handy as I can load specific areas to test. And might make COU a bit easier..


App renders inproperly on Android only

iOS

Android

@Messi10AP Thanks for the feedback. Try using the experimental branch, that is the updated branch.

@zobeirhamid I also noticed that you used a custom version of react native in your examples. Is this necessary in order to use the library?

Also, I tried to use the experimental branch, and it crashes with the error "Invariant Violation: Transform with key of translateY must be a number"

@Messi10AP Does the error occur on the example project? It uses a custom version which is not necessary, it was just to try some stuff out.

No, it occured inside a project that I am currently using

however, i just ran the example project and that seems to give an error as well

@Messi10AP Thanks for the feedback. I will take a look in the next days.

@Messi10AP It should work now.


enforce the security switch "disable the use of bind mounts" when set via API

Right now we allow the Portainer administrator to "disable the use of bind mounts by non-admins", which is purely a front-end restriction, and is more of a "hide the capability". This feature stops using from selecting to use bind mounts in the container / service creation views, and stops the use of bind mounts when writing stacks. However, if a skilled user was to craft an API request to Portainer that included bind mounts, it would succeed as there is no backend enforcement.
To ensure security, we should enforce this restriction via the backend so that it cannot be used through the Portainer API.

stack with the following file failed creation because of bind-mounts disabled for non-admin
version: "2"

services:
  web:
    image: nginx:latest
    volumes:
      - /temp:/temp1

I guess this is only for containers

anyway, I'm testing everything to be sure. you can see my tests at https://github.com/portainer/portainer/pull/4110#issuecomment-664335952

@chiptus should also be tested for Swarm services.

Re-opening this issue to be backported into 1.24.2

Closed via #4467


Protobuf support

Is this library compatible with protobuf?
Thanks.

It does not use protobuf, but you can use protobuf above it. This client is quite low-level, so I do support only what the STOMP spec support.

I can see from the source that everything is converted into string.
this.ws.onmessage = (evt) => {
            let data = evt.data;
            if (evt.data instanceof ArrayBuffer) {
                data = typedArrayToUnicodeString(new Uint8Array(evt.data));
            }

If the data is converted into string I cannot deserialize it then using protobuf js.

Going through String is mandatory in order to decode the STOMP frame.

what about going through stream for headers and leave the body intact for further processing by the protobuf library?

Could you show me you would do that? A clean PR could help to see this.

what?

Have a look at the following:
How-to-read-binary-data-in-the-browser-or-under-node.js

This is not XHR protocol with HTTP, it's websocket with STOMP frames.

When reading/writing binary data in the browser or under node.js, it is mandatory to understand that just reading it (as a string) is not enough. When doing this, the data will probably become corrupted when it is converted between character sets and ProtoBuf.js will not be able to decode it or will return random stuff. What's actually required here is to properly handle the data as binary.
It is still read as string. So corruption happens when original body contect is read as string.

I have seen the same problem and suggestion I wrote here in this thread but it seems that it is not maintained anymore
stomp-websocket

This is fixed in this fork

adamish commented on Dec 10, 2014 is fixed here?

Hi,
I get the following error when using protobuf

??

I can confirm that this fixed was not fixed as you stated.

Spring 5.0.7+ recommends this variant of the STOMP library for browser clients, and while it's possible to send binary via this library (and the Spring implementation of STOMP is binary safe), this issue prevents developers from sending binary replies.
So without some massaging on the server, protobuf is not supported.
That said, I'm not sure if this library is still the best fork for developers to use.

This fork matches my need, but you are welcome to contributes via PR ;)


Remove dependencies from bitmex stream lib

Adding the itchysats bitmex-stream as dependency to 10101 resulted into the known dependency conflict of the normalization-unicode between url and bip39. I adapted the bitmex stream lib and refactored the code to not being dependent on the url crate anymore. This allows us to use it together with bip39 in 10101.
We might not want to merged that PR, but rather keep it until BIP39 upgrades their dependencies and we don't need that change anymore.

I found a simpler alternative which we might want to consider: https://github.com/itchysats/itchysats/pull/3256 (just relaxing patch version requirements is enough). Tested locally with your project, can push a fixup to your PR if it gets merged.

Closing in favor of #3256

I found a simpler alternative which we might want to consider: #3256 (just relaxing patch version requirements is enough). Tested locally with your project, can push a fixup to your PR if it gets merged.

Thanks @klochowicz thats indeed the bettter solution.


DOCA Source Stage improvements

Upgrade DOCA source stage API from 2.2 to 2.5 + code restyle
### Waiting on
- [ ] https://github.com/nv-morpheus/MRC/pull/433
- [ ] https://github.com/nv-morpheus/Morpheus/pull/1468

Created 3 issues to keep track of the status: 2 bugs and 1 feature
https://github.com/nv-morpheus/Morpheus/issues/1557
https://github.com/nv-morpheus/Morpheus/issues/1558
https://github.com/nv-morpheus/Morpheus/issues/1559
Addressed all commits, can't run CI. Sent error stack via Slack message

/ok to test

/ok to test

/ok to test

/ok to test

/ok to test

/merge


Attestation data serialization

Because most applications are not likely to store data in binary form, I've added a base64 serialization and deserialization of the AttestedCredentialData. I've also improved the example server to provide an illustration of the (de)serialization.

Thanks for the contribution, but I've decided not to merge this.
I don't think it adds much over just doing base64.b64encode(cred_data) and AttestedCredentialData(base64.b64decode(serialized)). Moreover I think that how to store the data should be left up to the user, so storing in binary form, or base64, or urlsafe base64, or hex, etc. can all be done. Considering that FIDO2 and WebAuthN define several objects in binary data form the user will need to deal with this at some point regardless.

The main point I tried to address is that there is no clue on what and how you should store the object. Examples are no help, since they keep the objects as is, which is not possible in most cases. Having a base64 representation provides at least one way on, how to store the authenticator data.
The absence of any serialization most likely lead to #12 and I also had troubles to find out what and how I should store. I believe that an issue of data serialization will return repeatedly, unless somehow addressed.

Or how about an alternative: add method to_bytes and improve docstring of the AttestedCredentialData. In my opinion, it is not expected for AttestedCredentialData to be derived from bytes and act as such. It is not expected that b64encode(attested_data) would work. Providing an explicit API for conversion form and to bytes would be on help.
Or maybe even, derive the AttestedCredentialData from object, and hide the binary data inside.


Re-render markup when components prop changes

Fix for issue #25: change the shouldComponentUpdate function to allow re-rendering when the components prop changes.

It's weird that Github isn't showing the easy "update" button - I fixed the test runner issue on master.

I rebased with master anyway, that should get Travis running

Hey, can we get this merged? It would really help in my current project.

This PR looks like it could / should be merged? :)
I would just change this comment:
// one of the components changed:

...with:
// one of the components changed, or a new one was added:

(to more accurately describe the possible cases)


Split the INotebook into smaller types

INotebook is a grab bag of different options. It would be nice to split this up into something that was at least:

readonly state (like interpreter, kernel, loggers, etc)
execution api (maybe split this further into kernel control and execution)

I don't think this cleanup is relevant as we are already considering changes / deprecating INotebook in the new UI.


please bump old value in scriptbuildnum and scriptbuilddate

the values in
https://github.com/robertpeteuil/packer-installer/blob/249da21a18aebef4bbabc8482744a706a35059b5/packer-install.sh#L17-L18
are old.

Thanks bringing this to my attention.  I've incorporated and published a new release that includes this.


Lok lok

Source name
Lok-lok
Source link
https://loklok.com/
Language
Multi
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a title with source name.
[X] I have checked that the extension does not already exist on the website extensions list or the app.
[X] I have checked that the extension does not already exist by searching the GitHub repository and verified it does not appear in the code base.
[X] I will fill out all of the requested information in this form.

It will be added if someone volunteers to make it

I have no interest in adding it, so just wait until someone else feels like doing it


fix webhook lint issues.

Signed-off-by: morvencao<EMAIL_ADDRESS>fix lint issues when build manager image:
pkg/webhook/admission_suite_test.go:41:2: `k8sClient` is unused (deadcode)
	k8sClient  client.Client // You'll be using this client in your tests.
	^
pkg/webhook/admission_suite_test.go:42:2: `kubeClient` is unused (deadcode)
	kubeClient *kubernetes.Clientset
	^
pkg/webhook/admission_handler_test.go:69:13: Error return value of `c.Create` is not checked (errcheck)
				c.Create(ctx, testPlacement, &client.CreateOptions{})
				        ^
pkg/webhook/admission_handler_test.go:71:10: Error return value of `c.Get` is not checked (errcheck)
				c.Get(ctx, client.ObjectKeyFromObject(testPlacement), placement)
				     ^
pkg/webhook/admission_handler_test.go:89:13: Error return value of `c.Create` is not checked (errcheck)
				c.Create(ctx, testPlacement, &client.CreateOptions{})
				        ^
pkg/webhook/admission_handler_test.go:91:10: Error return value of `c.Get` is not checked (errcheck)
				c.Get(ctx, client.ObjectKeyFromObject(testPlacement), placement)
				     ^
pkg/webhook/admission_handler_test.go:106:13: Error return value of `c.Create` is not checked (errcheck)
				c.Create(ctx, testPlacementRule, &client.CreateOptions{})
				        ^
pkg/webhook/admission_handler_test.go:108:10: Error return value of `c.Get` is not checked (errcheck)
				c.Get(ctx, client.ObjectKeyFromObject(testPlacementRule), placementrule)
				     ^
Makefile:50: recipe for target 'lint' failed
make[1]: *** [lint] Error 1
make[1]: Leaving directory '/root/workspace/multicluster-global-hub/manager'

Good Catch!
/LGTM

/test test-e2e


Allow logback nats appender transport

Add an optional dependency to the forthcoming plugin that includes
the LOGBack appender to push events to the NATS pub/sub broker.

Coverage increased (+8.7%) to 53.015% when pulling a4e4d11c216136e47bff6e980cb8349590e1bec1 on GerritForge:allow-logback-nats-appender-transport into a7c7172fe6b76a26e0918bedde211bfd7515e700 on jenkinsci:master.

I think this PR needs to be rebased once the other PRs are merged. There seems to be more going on in this that what the titles of the PR implies.

Yes, let me rebase it.

I'd rebase after PR #9 is merged since you are upgrading to jenkins 2.0 in this PR.

Yep, releasing 1.1.3 with all the fixes that are compatible with Jenkins 1.x and Java 7 and then the first to go will be the Jenkins 2.0 + major version change to 2.0-SNAPSHOT

Abandoning this PR, going to squash them with the other related to NATS


Integration with NextJS

Describe the bug
I've tried to set-up Unleash on an existing NextJS repository, following the steps in the quickstart guide:
without creating a custom-server, as denoted here, is there another way to configure a nextjs app to accept unleash flags?
Steps to reproduce the bug
function MyApp({ Component, pageProps }) {
  return (
    <GoogleReCaptchaProvider reCaptchaKey='xxx'>
      <FlagProvider config={unleashConfig}>
        <QueryClientProvider client={reactQueryClient}>
         // ... rest of code
         )}

The unleash configs are as follows:
const UNLEASH_DEV = {
  url: 'https://us.app.unleash-hosted.com/xxx/api/development/proxy',
  key: 'xxx'
}

const UNLEASH_PROD = {
  url: 'https://us.app.unleash-hosted.com/xxx/api/production/proxy',
  key: 'xxx'
}

const unleashConfig = {
  url:
    process.env.NEXT_PUBLIC_NODE_ENV === 'development'
      ? UNLEASH_DEV.url
      : UNLEASH_PROD.url,
  clientKey:
    process.env.NEXT_PUBLIC_NODE_ENV === 'development'
      ? UNLEASH_DEV.key
      : UNLEASH_PROD.key,
  refreshInterval: 15,
  appName: 'xxx',
  environment:
    process.env.NEXT_PUBLIC_NODE_ENV === 'development'
      ? 'development'
      : 'production'
}

export default unleashConfig

Expected behavior
No response
Logs, error output, etc.
without using any hooks yet e.g. `useFlags`, this is the current error message on server start:

Unleash failed to resolve "fetch" ReferenceError: window is not defined
    at resolveFetch (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:99:24)
    at new UnleashClient (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:115:540)
    at u (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/@unleash/proxy-client-react/dist/index.js:1:1241)
    at renderWithHooks (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5658:16)
    at renderIndeterminateComponent (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5731:15)
    at renderElement (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5946:7)
    at renderNodeDestructiveImpl (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6104:11)
    at renderNodeDestructive (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6076:14)
    at renderContextProvider (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5920:3)
    at renderElement (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6017:11)
ReferenceError: window is not defined
    at LocalStorageProvider.get (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/storage-provider-local.js:62:24)
    at UnleashClient.<anonymous> (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:307:63)
    at step (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:59:23)
    at Object.next (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:40:53)
    at /Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:34:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:30:12)
    at UnleashClient.resolveSessionId (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:300:16)
    at UnleashClient.<anonymous> (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:242:55)
    at step (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:59:23)
Unleash: You must either provide your own "fetch" implementation or run in an environment where "fetch" is available.
ReferenceError: window is not defined
    at LocalStorageProvider.<anonymous> (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/storage-provider-local.js:50:21)
    at step (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/storage-provider-local.js:33:23)
    at Object.next (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/storage-provider-local.js:14:53)
    at /Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/storage-provider-local.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/storage-provider-local.js:4:12)
    at LocalStorageProvider.save (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/storage-provider-local.js:44:16)
    at UnleashClient.<anonymous> (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:312:59)
    at step (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:59:23)
    at Object.next (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:40:53)
ReferenceError: window is not defined
    at LocalStorageProvider.get (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/storage-provider-local.js:62:24)
    at UnleashClient.<anonymous> (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:247:59)
    at step (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:59:23)
    at Object.next (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:40:53)
    at fulfilled (/Users/wongshen.nan/Desktop/circles/faber/app/node_modules/unleash-proxy-client/build/index.js:31:58)

### Screenshots

_No response_

### Additional context

_No response_

### Unleash version

@unleash/proxy-client-react": "^3.3.1

### Subscription type

_No response_

### Hosting type

_No response_

### SDK information (language and version)

_No response_

Hi @wongshennan , thanks for creating the issue, I will bring it up with the team and get back to you

Hey, @wongshennan 🙋🏼 Thanks for opening the issue:
I think the base issue at hand here is that Next tries to initialize the client during its server-side rendering. However, window.fetch is not available in that context. Instead, you need to provide the client with an alternate fetch implementation, such as node-fetch. You'll also need to provide a replacement storage provider.  This is best explained in #40 (where the following example is listed):
const UnleashProvider: typeof FlagProvider = ({ config = {}, children }) => {
  // To prevent from throwing during SSR, pass a dummy storage provider
  const storageProvider = isNode
    ? new DummyStorageProvider()
    : window.localStorage;

  // Similarly, pass a dummy fetch provider
  const fetchProvider = isNode ? fetch : undefined;

  return (
    <FlagProvider
      config={{
        storageProvider,
        fetch: fetchProvider,
        url: process.env["UNLEASH_URL"],
        clientKey: process.env["UNLEASH_CLIENT_KEY"],
        refreshInterval: 15,
        appName: process.env["APP_NAME"],
        environment: process.env["APP_ENV"],
        ...config,
      }}
    >
      {children}
    </FlagProvider>
  );
};

If I'm correct, then that should solve your issue here. But you might also want to consider whether creating an unleash client on every request is the right way to go or not. Doing it this way will delay rendering as the client needs to be constructed and fetch toggles.
Instead, you might want to consider alternate approaches. For instance:

Ignore toggles server-side and only run the client in browser environments
There's also a question about using the proxy client with SSR in our GitHub discussions where I proposed using a local version of the Unleash proxy. That might work, so you can have a look at it if you want.

Does that help? ☺

would be great to have a better integration with NextJS 👍

https://github.com/Unleash/unleash-client-nextjs


Hitting enter key on Dropdown item with a link does not redirect me

components: Dropdown
reactstrap version #6.4.0
import method es
react version #16.5.0
bootstrap version #4.1.3

What is happening?
I have a dropdown with some links using react router and I want to be able to tab through them and hit enter to go to the URL. When I hit enter nothing is happening (a-la e.preventDefault())
What should be happening?
Should be redirecting to the URL specified in the router.
I believe it might be related to the handleKeyDown method in the Dropdown.js file.
What I am not sure about is if there is a specific reason that hitting space will trigger the onClick event but hitting enter doesn't.
Code
import React from 'react';
import { Dropdown, DropdownItem, DropdownMenu, DropdownToggle } from 'reactstrap';
import { Link } from 'react-router-dom';
import styles from './styles.scss';

class MyMenu extends React.Component {

  state = {
    isOpen: false,
  };

  toggle = () => {
    this.setState({ isOpen: !this.state.isOpen });
  };

  render () {
    return (
      <Navbar color="dark" dark expand="md" className={styles.navbar}>
        <Link to="/" className="navbar-brand">

          My Logo
        </Link>
        <NavbarToggler/>
        <Collapse isOpen={true} navbar>

            <Dropdown nav inNavbar isOpen={this.state.isOpen} toggle={this.toggle}>
              <DropdownToggle nav caret>My Items</DropdownToggle>
              <DropdownMenu className="shadow-sm rounded">
                <DropdownItem tag={Link} to="/go-here">Go here</DropdownItem>
              </DropdownMenu>
            </Dropdown>

        </Collapse>
      </Navbar>
    );
  }
}

export default MyMenu;

I currently have this working in my application using the following:
import { NavLink as RouteNavLink } from 'react-router-dom';
import { Collapse, DropdownItem, DropdownMenu, DropdownToggle, Nav, Navbar, NavbarBrand, NavbarToggler, NavItem, NavLink, UncontrolledDropdown } from 'reactstrap';

<Navbar color="light" light expand="md">
    <NavbarBrand href="/">FooBar</NavbarBrand>
    <NavbarToggler onClick={this.toggle} />
    <Collapse isOpen={this.state.isOpen} navbar>

            <NavItem>
                <NavLink to="/" tag={RouteNavLink}>Home</NavLink>
            </NavItem>
            <UncontrolledDropdown title={displayName} nav inNavbar>
                <DropdownToggle nav caret>{displayName}</DropdownToggle>
                <DropdownMenu right>
                    <DropdownItem tag="div">
                        <NavLink to="/logout" tag={RouteNavLink}>Logout</NavLink>
                    </DropdownItem>
                    <DropdownItem tag="div">
                        <NavLink to="/resetpassword" tag={RouteNavLink}>Reset Password</NavLink>
                    </DropdownItem>
                </DropdownMenu>
            </UncontrolledDropdown>

    </Collapse>
</Navbar>

Looks like this change introduced this. The change intended for the code to handle selecting items based on the item text and the key pressed so it changed from only checking for specific keys to only excluding certain keys but it does not account for the enter key.

Just created this pull request
https://github.com/reactstrap/reactstrap/pull/1232

Hi,
I'm still seeing an issue with the enter key not resulting in a redirect in version 6.5.0.
Pressing the space bar works as expected, pressing the enter key doesn't.
Looking at the above mentioned f2528da,  the affected line of code is
if (e.which === keyCodes.space && keyCodes.enter && this.props.isOpen && container !== e.target) {
I believe that should be
if ((e.which === keyCodes.space || e.which === keyCodes.enter) && this.props.isOpen && container !== e.target) {
I did update the distributed .js manually with this change and verified that it worked as I would expect.

This is also an issue for accessibility as the ability to select with the Enter key is a commonly expected behaviour

Just made a pull request with corrections outlined in @KevinKlingelsmith's comment


Debugging section appears too early?

Building beautiful UIs with Flutter, step 5, last section on debugging:
The text refers to "the setState() methods in your [...] app", but we have not yet defined any such methods at this point.

cc @LarkAscending

Fixed in early Sept; it makes sense to debug build() methods, not setState(). New text:
Practice using the debugger by setting breakpoints on the build() methods in your Friendlychat app, then run and debug the app. You can inspect the stack frames to see the history of method calls by your app.


label:"Feature Request" - grouping of entries

Hi,
first of all thanks for this nice app, does its job as intended as is good to use.
As I am having quite a number of sites I use it with I have a wish for better organizing and finding the entries:
Is it possible to implement a group or directory structure to save entries in?
Personally I would prefer several lawyers, e.g. work -> office -> tools or private -> finance -> banking
Thanks in Advance

@TobyK-MUC you might want to take a look at https://github.com/andOTP/andOTP
It started as a fork of this project, but it's developed much further.


Bug: Char. Level + 100 is not wrapped into paranthesis

In Formula/index.tsx the following expression is rendered wrong because parenthesis are missing around Char. Level + 100
frac(sum(input.lvl, 100),prod(sum(enemy.level, 100), sum(unit, prod(-1, enemy.defRed)), sum(unit, prod(-1, enemy.defIgn))))
currently shown as:
Char. Level 1 + 100 / (...)

but should be
(Char. Level 1 + 100) / (...)

removing && array.length > 1 seems to fix this at
https://github.com/frzyc/genshin-optimizer/blob/7a067d851d4d232a78cd0c274107791c966cebab/src/Formula/uiData.tsx#L293


Ambiguous occurrence 'length'

Configuring xournal-types-0.5.1...
Building xournal-types-0.5.1...
Preprocessing library xournal-types-0.5.1...
[1 of 8] Compiling Data.Xournal.Predefined ( src/Data/Xournal/Predefined.hs, dist/build/Data/Xournal/Predefined.o )
[2 of 8] Compiling Data.Xournal.Util ( src/Data/Xournal/Util.hs, dist/build/Data/Xournal/Util.o )
[3 of 8] Compiling Data.Xournal.Simple ( src/Data/Xournal/Simple.hs, dist/build/Data/Xournal/Simple.o )
[4 of 8] Compiling Data.Xournal.Generic ( src/Data/Xournal/Generic.hs, dist/build/Data/Xournal/Generic.o )
[5 of 8] Compiling Data.Xournal.BBox ( src/Data/Xournal/BBox.hs, dist/build/Data/Xournal/BBox.o )
[6 of 8] Compiling Data.Xournal.Map ( src/Data/Xournal/Map.hs, dist/build/Data/Xournal/Map.o )
[7 of 8] Compiling Data.Xournal.Select ( src/Data/Xournal/Select.hs, dist/build/Data/Xournal/Select.o )
src/Data/Xournal/Select.hs:55:33:
Ambiguous occurrence ‘length’
It could refer to either ‘Data.Foldable.length’,
imported from ‘Data.Foldable’ at src/Data/Xournal/Select.hs:23:1-20
or ‘Data.Sequence.length’,
imported from ‘Data.Sequence’ at src/Data/Xournal/Select.hs:25:1-20
src/Data/Xournal/Select.hs:55:46:
Ambiguous occurrence ‘length’
It could refer to either ‘Data.Foldable.length’,
imported from ‘Data.Foldable’ at src/Data/Xournal/Select.hs:23:1-20
or ‘Data.Sequence.length’,
imported from ‘Data.Sequence’ at src/Data/Xournal/Select.hs:25:1-20
src/Data/Xournal/Select.hs:59:35:
Ambiguous occurrence ‘length’
It could refer to either ‘Data.Foldable.length’,
imported from ‘Data.Foldable’ at src/Data/Xournal/Select.hs:23:1-20
or ‘Data.Sequence.length’,
imported from ‘Data.Sequence’ at src/Data/Xournal/Select.hs:25:1-20
src/Data/Xournal/Select.hs:91:15:
Ambiguous occurrence ‘length’
It could refer to either ‘Data.Foldable.length’,
imported from ‘Data.Foldable’ at src/Data/Xournal/Select.hs:23:1-20
or ‘Data.Sequence.length’,
imported from ‘Data.Sequence’ at src/Data/Xournal/Select.hs:25:1-20
src/Data/Xournal/Select.hs:92:15:
Ambiguous occurrence ‘length’
It could refer to either ‘Data.Foldable.length’,
imported from ‘Data.Foldable’ at src/Data/Xournal/Select.hs:23:1-20
or ‘Data.Sequence.length’,
imported from ‘Data.Sequence’ at src/Data/Xournal/Select.hs:25:1-20

Thanks for the report. I will fix it. BTW, this repo is now deprecated by being incorporated into wavewave/hoodle mega-repository. Please report any issues there afterwards. Thanks!

Okay. this issue was handled by this commit, but I haven't updated the hackage yet.
https://github.com/wavewave/hoodle/commit/37a132e3c1836bb8fcfb0b2d1cff15d87ff13135
Please try the latest version from xournal-types from hoodle main repo. I will upload the new version soon.


feat: Office 365 / Workspace / Logger levels

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

GitHub release
v1.4.0

Your semantic-release bot :package::rocket:


How to integrate a model into Spark cluster

How can I integrate a model into a Spark cluster in real? I actually have a deep learning (tf, python) based model which I would like to integrate with the Spark cluster to do some experiments. Can anyone give me some suggestions or steps to follow to do that?

@leewyang How can I cache my model in pyspark. I found the model got reloaded for every task. Here's a demonstration of how I predict the whole dataset
def _predict_dataset():
  def _input_fn():
     ...
  estimator = build_estimator(...)
  return estimator.predict(_input_fn)

data.mapPartitions(lambda it: _predict_dataset())

Can you please give me some coding snippets or resources to read or understand that how I can load my trained_models in spark? I'm not sure how to do this part.

@jiqiujia could you please help me like how I can load my trained_model that are already saved in my project directory. Can you share the steps where you integrated your trained model in spark. Thank you

@jahidhasanlinix you could follow the examples in this repo: https://github.com/yahoo/TensorFlowOnSpark/tree/master/examples

@jiqiujia thank you. I'll check it.

@jiqiujia assuming that your model won't change over the course of the job, you can just cache the model in the python worker processes via a global variable.  Just check if it's none/null, and if so, load the model from disk, otherwise use the cached model.

How can I load the model? I have a code base model and trained model saved in .pt. how can I load into the Cluster? Any help

@jahidhasanlinix Not quite sure what you're doing here... *.pt are PyTorch models.  Have you converted a TensorFlow model to PyTorch (or vice versa)?

I actually have a GNN model written in Pytorch. And I was trying to plug or Integrate it on Spark, but not sure how to do that, not enough information. Would you like to share your process of connecting your tf model into spark, if the code is open course or shareable.

@leewyang https://github.com/hongzimao/decima-sim
Here is the source code I was trying to work with to integrate this pipeline into Spark, would you like to give me some instructions how to do that. I guess this repo, can give you some idea that what's I'm trying to say.

@jahidhasanlinix Unfortunately, I think that code looks like it's beyond the scope of what TFoS is trying to do.  Decima presumably integrates with (or replaces) the spark scheduler itself, while TFoS is more about using Spark (and it's default scheduler) to launch training/inferencing jobs on executors.

@leewyang thank you so much for your response. Is there any other way to integrate this, can you help me with this.


Edge Router: Support multiple protocols on the same listener port

I would like to be able to use the same port for multiple protocols.  For example, when I host an edge router today I need up to three ports:
80 - fabric link listener
443 - edge TLS listener
7001 - edge WSS listener
I would dearly love to be able to use only one port for all three types of traffic.  Two ports - 80 for link and 443 for all edge would be good enough, too.

If we decided to go ALPN, I'd like to see us write this up with why how and what we ended up doing as part of this...


Articles should use authors field as author, not created_by

Too often the author of an article is not the person that created the object.
We need to update templates to reflect that. The created_by field should only be needed for ow4 blame

Fixed in 6b550b41f2bd06485c32bb0221bba36978d2a2d9


⚠ Bofrost.nl has degraded performance

In d413c15, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 967 ms

Resolved: Bofrost.nl performance has improved in 585ad48.


[Feature] 是否能支持y轴配置0刻度对齐

What problem does this feature solve?
当我使用双y轴的时候，主y轴有负值，次y轴没有负值，这样导致0刻度不对齐，容易误导看数，

What does the proposed API look like?
y轴支持配置0刻度对齐，次y轴的0刻度和主y轴的0刻度对齐

试一试启用 yAxis.alignTicks 坐标轴刻度对齐看看？

试一试启用 yAxis.alignTicks 坐标轴刻度对齐看看？

这个使用了 刻度是对齐了，但是0刻度没有对齐，因为次y轴的数据没有负数

Is this a solution? with yAxis.min and alignTicks - Demo Code

我这边不是固定写一个图表，是数据平台，通过查询的数据进行绘制，需要获取y轴的间隔数据才能设置y轴的最小值，需要计算，所以希望平台可以提供这个参数配置

It needs to be calculated, so I hope the platform can provide this parameter configuration

Currently it is not automatic, but yAxis.min could indeed be calculated and set - Demo Code
Does this work with your data?

It needs to be calculated, so I hope the platform can provide this parameter configuration

Currently it is not automatic, but yAxis.min could indeed be calculated and set - Demo Code Does this work with your data?

非常感谢，不过希望可以初次绘制的时候就能达到这样的效果，等绘制完再getoption处理 对数据平台的性能有所影响，我们的面板承载的报表很多，所以希望echarts在首次绘制y轴刻度的时候就根据配置开关来计算，实现0刻度对齐

It needs to be calculated, so I hope the platform can provide this parameter configuration

Currently it is not automatic, but yAxis.min could indeed be calculated and set - Demo Code Does this work with your data?

在网上找了很多方案，发现不少人也是有这个需求的，但是他们计算的规则和我的数据不符合

getoption processing will have an impact on the performance of the data platform
I hope that echarts will draw the y-axis scale for the first time

Of course it could be done without getOption - Demo Code
Now all you have to do is fill xdata, d1 and d2 with your data and give it a go.

getoption processing will have an impact on the performance of the data platform
I hope that echarts will draw the y-axis scale for the first time

Of course it could be done without getOption - Demo Code Now all you have to do is fill xdata, yd1 and yd2 with your data and give it a go.

thanks，I try try.

getoption processing will have an impact on the performance of the data platform
I hope that echarts will draw the y-axis scale for the first time

Of course it could be done without getOption - Demo Code Now all you have to do is fill xdata, yd1 and yd2 with your data and give it a go.

还是不行，我其中一个图表的数据是这样的
yd1 = [
1356664864,
1465570182,
1530020458,
1540500149,
1480651815,
1502250584,
1575832697,
102514202,
108905318,
64450276,
10479691,
-59848334,
21598769,
73582113
];
yd2 = [
0.08173994170406937,
0.08027429683621555,
0.04397624678201866,
0.006849379657118284,
-0.038849937170632495,
0.014587338347334548,
0.048981251053386174
];

their calculation rules do not match my data.

I see, turns out my method too does not work for all data combinations.
When data is so different the logical choice is to build two separate charts.

their calculation rules do not match my data.

I see, turns out my method too does not work for all data combinations. When data is so different the logical choice is to build two separate charts.

我这边支持用户拖拽做表，所以数据是不固定 无规则，差异也无规则的，我在绘制的时候处理很难兼容全部数据case，希望echarts在计算y轴的时候支持0刻度对齐，支持配置，

their calculation rules do not match my data.

I see, turns out my method too does not work for all data combinations. When data is so different the logical choice is to build two separate charts.

你好，这个有下文么？可以帮忙支持吗

+1
同需要 多y轴，0刻度对齐。

+1

项目需要，手动敲了个粗糙的对齐功能 示例 就是没显示零刻度线，其他对齐了

@Hoody123 - looks pretty good!
Even with @daisy0123's latest (strange) example data - Demo.
Maybe you found the magic formula 🧙

+1
同需要 多y轴，0刻度对齐。


Animation response

Why aren't my animations firing off?  I think I have it set up right.  Is there another step I'm missing?

Hi @brycelynch,
To autonomously use animation in a conversation, follow these steps:

Create an Animator Controller with animation clips and transitions. (Maybe you've already done this👍)
Define the mapping between the animation names and the corresponding values to trigger the transitions.
See this example.
Inform ChatGPT of the list of available animation names in the system prompt.
See this example.

Thanks for the reply.  This tool is awesome btw.   :)
I believe I have that all set up correctly.   I've been mostly borrowing from what you've done in the demo.  For a sanity check, I used the demo scene and I get the same error that waving_arm is not registered -- I'm only testing this one animation to see how everything is supposed to work.  I tried changing the name of the wave_arm animation thinking that might be the issue?   Do you think it's because I've just renamed the animation to match the corresponding values in your example.  I'm also using your system prompt.  Here are some screen grabs:

I think I figured out what I was doing wrong.  I had turned off main.cs and that was what was causing the unregistered errors.  Thanks again.  :)


MULTIARCH-4304: Add validation for the name of the PodPlacementConfig…

… so there can only be one cluster
Unfortunately, make manifests overrides manually adding validation (example here)  in multiarch.openshift.io_podplacementconfigs.yaml.
The only issue with using  +kubebuilder:validation:XValidation:rule is the error message is not as nicely formatted as shown

The error doesn't look so bad to me and the solution is quick enough to cover the problem for now.
The alternative is to hack the Makefile target so that the CRD yaml is patched after all the other steps execute: we're needing it in https://github.com/openshift/multiarch-tuning-operator/pull/70/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R291 (as per suggestions in some operator-framework threads internally), but I like that even less.
What's the field the API is considering to be <nil>? Any way we can change it?

@AnnaZivkovic, remember that we also have to remove any previous code that was checking the name in the pod placement config controller.
Also, let's check the integration test cases, patch any that were already verifying the previous work, or add at least one integration/unit test that verifies CR with a wrong name cannot be created

@aleskandro are you talking about removing the logic here and the stuff below it?

From line 100 in particular. But yes, we could even delete that if statement that you linked as we can assume the name of the object will always be the correct one

/retest-required

/restest

/retest-required

/retest-required

/retest

/retest

/test vendor

/lgtm
/approve
Thanks @AnnaZivkovic


Generic try-with torguard fixed

Remove generic try-with and handle errors one-by-one.

LGTM!

2nd commiit's message is quite scarce in wording

2nd commiit's message is quite scarce in wording

I updated the message, do you think that this new version is good?

it seems like I have some problems with commit lint 🤔 but I used ``` and it still gives me error 🤔

Mmm looks like it's a commitlint bug, we should look into it.

Mmm looks like it's a commitlint bug, we should look into it.

should I create an issue for this?

should I create an issue for this?

No, we're gonna investigate it first to make sure it's a commitlint bug.

Good idea. indeed in my second commit, which I just made, I had a problem pasting the error, so I pasted it line by line. let's see if that'll fix the problem.


False detection of time skew at AWSClient::AttemptExhaustively

While uploading a file using TransferManager, I saw the following scenario:
The S3 server responded with “503 Service Unavailable” (line 32 at the attached log).
While processing the response by AWSClient::AttemptExhaustively(), serverTime was evaluated as 0 (Epoch), although the “Date” header was valid (lines 34 and 58).
As a result, a time skew was detected and the m_signer->SetClockSkew() was, setting the m_clockSkew to -47 years (line 59).
While retrying, the request was sent with a time stamp of January 1970 (line 77).
The server responded with “403 Forbidden” (line 101).
While processing the 403 response by AWSClient::AttemptExhaustively(), serverTime was evaluated correctly to the “Date” header value (line 141), but now a time skew of +47 years was detected and m_clockSkew was set to +47 years (line 142).
While retrying, the request was sent with a time stamp of December 2064 (line 150), causing another 403 error.
All further requests failed with error 403, with the time stamp toggling between 1970 and 2064.
I have no idea why the processing of the 503 response failed to get the value from the “Date” header.  However, I believe that the m_clockSkew should be set with the difference between serverTime and now(), and not the difference between serverTime and m_signer->GetSigningTimestamp().
SDK version: 1.0.147
Host OS: Amazon Linux AMI 2017.03
Attached log: sdk_2017-06-18-19.txt
Thanks
Danny

Thanks for reporting. This is a bug. Will get it fixed shortly.

Our DateTime parser didn't handle the date format that uses the 2 digit year and we weren't checking if the parsing was successful.
Both issues have been fixed in the latest release v1.0.159.
The trace logs you uploaded were quite helpful. Thank you.

@marcomagdy I’m afraid the issue is not closed yet.
Please note that the signing timestamp was toggling between 1970 to 2064 while processing the 403 responses, although the Date field of those responses was correctly parsed.
I think m_signer->SetClockSkew() should be called with the difference between serverTime and now().
Consider the hypothetical case in which the client clock has a glitch and it skews one hour backward (e.g. from 02:00:00 to 01:00:00) and after some HTTP transactions it skews again to the correct time.  In this scenario we will get the following:
Before first skew
Server time == 02:00:00, now() == 02:00:00, m_ClockSkew == 00:00:00, SigningTimestamp == 02:00:00
The first request after the first skew is sent with the following:
Server time == 02:01:00, now() == 01:01:00, m_ClockSkew == 00:00:00, SigningTimestamp == 01:01:00
After processing the response:
Server time == 02:01:00, now() == 01:01:00, m_ClockSkew == 01:00:00, SigningTimestamp == 01:01:00
From this point the request are sent with correct SigningTimestamp.
However the first request after the second skew is sent with the following:
Server time == 02:02:00, now() == 02:02:00, m_ClockSkew == 01:00:00, SigningTimestamp == 03:02:00
And after processing the response
Server time == 02:02:00, now() == 02:02:00, m_ClockSkew == -01:00:00, SigningTimestamp == 01:02:00
And from this point m_ClockSkew toggles between +01:00:00 to -01:00:00 forever.
Thanks
Danny

Looking into it

I see the problem. We don't reset the skew offset if the system clock is corrected. Will fix it and close this issue when released.
Thank you.

Fixed in v1.1.1

@marcomagdy I’m afraid that this does not cover the following case:
The client clock skews one hour backwards.  This results with m_ClockSkew == 01:00:00.
Now the client clock skews by additional hour backwards (total of two hours). While processing the response, diff  == 01:00:00 and clientDiff  == 02:00:00.  Since clientDiff is out of the range, m_ClockSkew  is set to diff.
I believe m_ClockSkew  should always be set to clientDiff, regardless the value of clientDiff.  clientDiff is the difference between the server time and the client time, which is actually the skew.
Thanks
Danny

I adjusted the test suite to reflect that case. Pushing a patch shortly.

@danny-sade  checking in, are you still experiencing this problem with the latest version?

@marcomagdy I do not experience any time skew, so the code never gets into the relevant part...


Bento v0.0.7 doesn't work well with nextjs v12.3.X

Describe the bug
Bento v0.0.7 doesn't work well with nextjs v12.3.X
To Reproduce

Install @bento-editor/core v0.0.7 and nextjs v12.3.X
Run next dev goes wrong

Expected behavior
It works well with nextjs v12.3.X or later.

We suggest setting swcMinify: false in next.config.js to suppress the behavior(FYI).