Plugin is not listed in available plugins

I'm using Kafka 2.4.0
Copied http-connector-for-apache-kafka-0.6.0.jar in the folder mentioned in plugin.path= in connect-distributed.properties
After restart in the logs i see the plugins being scanned :
[2022-09-21 13:42:06,711] INFO Loading plugin from: /opt/plugins/http-connector-for-apache-kafka (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader:241) [2022-09-21 13:42:06,716] DEBUG Loading plugin urls: [file:/opt/plugins/http-connector-for-apache-kafka/http-connector-for-apache-kafka-0.6.0-SNAPSHOT.jar, file:/opt/plugins/http-connector-for-apache-kafka/jackson-annotations-2.13.2.jar, file:/opt/plugins/http-connector-for-apache-kafka/jackson-core-2.13.2.jar, file:/opt/plugins/http-connector-for-apache-kafka/jackson-databind-2.13.2.jar, file:/opt/plugins/http-connector-for-apache-kafka/slf4j-api-1.7.36.jar] (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader:248) [2022-09-21 13:42:07,008] DEBUG Skipping class org.apache.kafka.connect.sink.SinkConnector as it is not concrete implementation (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader:352) [2022-09-21 13:42:07,025] INFO Registered loader: PluginClassLoader{pluginLocation=file:/opt/plugins/http-connector-for-apache-kafka/} (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader:264)
When i call REST endpoint i can't see the HttpSinkConnector
curl --location --request GET 'localhost:8083/connector-plugins/'
Similar when i try to create connector using API:
`
curl --location --request PUT 'localhost:8083/connector-plugins/HttpSinkConnector/config/validate'
--header 'Content-Type: application/json'
--data-raw '{
"connector.class": "io.aiven.kafka.connect.http.HttpSinkConnector",
"name": "test-http-sink",
"topics.regex": "test.*",

"http.authorization.type": "none",
"http.url": "http://loclhost:8121",

"batching.enabled": true,
"batch.max.size": 2,
"tasks.max": "1",

"key.converter": "org.apache.kafka.connect.storage.StringConverter",
"value.converter": "org.apache.kafka.connect.json.JsonConverter"

}'
`
I'm  getting:
{     "error_code": 500,     "message": "Failed to find any class that implements Connector and which name matches io.aiven.kafka.connect.http.HttpSinkConnector, available connectors are: PluginDesc{klass=class org.apache.kafka.connect.file.FileStreamSinkConnector, name='org.apache.kafka.connect.file.FileStreamSinkConnector', version='2.4.0', encodedVersion=2.4.0, type=sink, typeName='sink', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.file.FileStreamSourceConnector, name='org.apache.kafka.connect.file.FileStreamSourceConnector', version='2.4.0', encodedVersion=2.4.0, type=source, typeName='source', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.mirror.MirrorCheckpointConnector, name='org.apache.kafka.connect.mirror.MirrorCheckpointConnector', version='1', encodedVersion=1, type=source, typeName='source', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.mirror.MirrorHeartbeatConnector, name='org.apache.kafka.connect.mirror.MirrorHeartbeatConnector', version='1', encodedVersion=1, type=source, typeName='source', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.mirror.MirrorSourceConnector, name='org.apache.kafka.connect.mirror.MirrorSourceConnector', version='1', encodedVersion=1, type=source, typeName='source', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.tools.MockConnector, name='org.apache.kafka.connect.tools.MockConnector', version='2.4.0', encodedVersion=2.4.0, type=connector, typeName='connector', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.tools.MockSinkConnector, name='org.apache.kafka.connect.tools.MockSinkConnector', version='2.4.0', encodedVersion=2.4.0, type=sink, typeName='sink', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.tools.MockSourceConnector, name='org.apache.kafka.connect.tools.MockSourceConnector', version='2.4.0', encodedVersion=2.4.0, type=source, typeName='source', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.tools.SchemaSourceConnector, name='org.apache.kafka.connect.tools.SchemaSourceConnector', version='2.4.0', encodedVersion=2.4.0, type=source, typeName='source', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.tools.VerifiableSinkConnector, name='org.apache.kafka.connect.tools.VerifiableSinkConnector', version='2.4.0', encodedVersion=2.4.0, type=source, typeName='source', location='classpath'}, PluginDesc{klass=class org.apache.kafka.connect.tools.VerifiableSourceConnector, name='org.apache.kafka.connect.tools.VerifiableSourceConnector', version='2.4.0', encodedVersion=2.4.0, type=source, typeName='source', location='classpath'}" }
Similar issue has been described here: https://stackoverflow.com/questions/68440097/open-source-alternative-for-kafka-confluent-http-sink-connector.
Just as headsup i have tested with version 0.5.0 and 0.7.0-Snapshot similar behaviour.

Hi @ecararus
Thank you for reporting this.
That's rather strange, I tried running it with the Connect worker using 2.4, it worked just fine. I assume you're using the distributed mode. Could you please try the standalone more? Also, could you please share the output of tree <plugin.path value>?

Hello @ivanyu
Sorry, forgot to mention that indeed im using in distributed mode.
in the config i have:
plugin.path=/opt/plugins,/usr/local/java
The tree:
`
/opt/plugins
└── http-connector-for-apache-kafka
   ├── http-connector-for-apache-kafka-0.6.0.jar
   ├── jackson-annotations-2.13.2.jar
   ├── jackson-core-2.13.2.jar
   ├── jackson-databind-2.13.2.jar
   └── slf4j-api-1.7.36.jar
`
When i started in standalone im getting :
`[2022-09-21 15:47:54,921] INFO Scanning for plugin classes. This might take a moment ... (org.apache.kafka.connect.cli.ConnectStandalone:78)
[2022-09-21 15:47:54,956] INFO Loading plugin from: /opt/plugins/http-connector-for-apache-kafka (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader:241)
[2022-09-21 15:47:54,959] DEBUG Loading plugin urls: [file:/opt/plugins/http-connector-for-apache-kafka/http-connector-for-apache-kafka-0.6.0.jar, file:/opt/plugins/http-connector-for-apache-kafka/jackson-annotations-2.13.2.jar, file:/opt/plugins/http-connector-for-apache-kafka/jackson-core-2.13.2.jar, file:/opt/plugins/http-connector-for-apache-kafka/jackson-databind-2.13.2.jar, file:/opt/plugins/http-connector-for-apache-kafka/slf4j-api-1.7.36.jar] (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader:248)
[2022-09-21 15:47:55,216] DEBUG Skipping class org.apache.kafka.connect.sink.SinkConnector as it is not concrete implementation (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader:352)
[2022-09-21 15:47:55,225] INFO Registered loader: PluginClassLoader{pluginLocation=file:/opt/plugins/http-connector-for-apache-kafka/} (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader:264)
`

I have just downloaded version kafka_2.11-2.4.0.tgz  from.
and started with couple of other plugins (io.debezium.connector.postgresql.PostgresConnector, com.nordstrom.kafka.connect.sqs.SqsSinkConnector) and all started in the same way.
When i listed available plugins is everything is there except "io.aiven.kafka.connect.http.HttpSinkConnector"
Did similar test using  bitnami container and in that case "io.aiven.kafka.connect.http.HttpSinkConnector" has bee loaded successful in both distributed and standalone mode here's the dockerfile
`
FROM bitnami/kafka:2 AS fsb_connect_base
USER 1234
#ADD PLUGINS
ADD ./*.jar  /opt/bitnami/kafka/libs/
EXPOSE 8083
`
Do you think it might be related to scala version or kafka version ?

The issue is cause by the java version.
The connector is not working under version 1.8 min version is 11.
Based on above consider the ticket closed.


feat(e2e): use existing Kubernetes cluster

What this PR does / why we need it: This PR adds support to make e2e to re-use an existing cluster if it's present.

JIRA ID: DT-0

Notes for your reviewer: CONTEXT. How to test this

Tested this locally, it works!

:tada: This PR is included in version 1.10.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Adding a continuous deployment action

In order to test the workflow, I had to force the merge. I did want to finish this tonight.


Created Queries page for mentor dashboard

Related Issue

Closes: #[issue number]
Description of Changes
Created queries page for mentor dashboard.
The first section has a heading of "Queries" and a subheading of "Pending ". This section contains a list of the pending queries. Each pending query is displayed in a div element with a heading of the query and a button that the mentor can click to answer the query.
The second section has a heading of "Answered ". This section contains a list of the answered queries. Each answered query is displayed in a div element with a heading of the query.
The third section is a form where the mentor can enter a new query. The form has an input field where the mentor can enter the query and a button that the mentor can click to submit the query.
Checklist:

[ ] My code adheres to the established style guidelines of this project.
[ ] I have conducted a self-review of my code.
[ ] I have included comments in areas that may be difficult to understand.
[ ] I have made corresponding updates to the project documentation.
[ ] My changes have not introduced any new warnings.

Screenshots

Original
Updated

Please provide any necessary screenshots to illustrate the changes made.

I have created the Queries page as mentioned in issue #533
Please review it
Also I could not figure out how to see mentor dashboard and make changes locally; it will be needed for building UI of this page; Help me out there!

Please ping me on discord.. I will better explain on meet. and please look out this PR: https://github.com/anmode/grabtern-frontend/pull/564
Go to preview mode and visit: /dashboard/mentor

@Priy002 What's the update?

@Priy002 What's the update?

even after git pull
not able to see the updates

still getting this

what should I do?

Check your fork... it's not synced

https://github.com/anmode/grabtern-frontend/assets/73902900/b34eee9c-8f86-428b-90e2-afb28868acc1

last some fixes:

Please see our UI got to prod version: www.grabtern.com ( our theme color)
Reduce padding above queries heading

Cool, I liked the changes, Sorry for late review actuallly was very with production... see new site is live thanks to all of you!

no issues
site looks amazing!

last some fixes:

Please see our UI got to prod version: www.grabtern.com ( our theme color)
Reduce padding above queries heading
prettier fix run npx prettier --write .

checkout the PR

Hi, I checked... actually it is not funtional.. wait I got a idea:
Can we make it like Ticket?
I mean mentor can create ticket... and their query will come to use:
this page can be modify:
A simple for to create ticker:

Id ( will be randomly generated)
Description of that
You have to put a status flag ( if true that query will be in pending state if false then completed)

So api will carry this data to backend.. you just have to make it funtional and after fill form data should be created..

Hi, I checked... actually it is not funtional.. wait I got a idea: Can we make it like Ticket? query -> create ticket I mean mentor can create ticket... and their query will come to use:
this page can be modify: A simple form to create ticker:

Id ( will be randomly generated)
Description of that
You have to put a status flag ( if true that query will be in pending state if false then completed)

Please create a basic ticket form component so can be used at other place and import into ticket page

So api will carry this data to backend.. you just have to make it funtional and after fill form data should be created..

sounds good!
I'll try to work on this and will let you know!

@Priy002 any updates?

@Priy002 any updates?

implemented the functionality, need some clarification, i'll ping you on discord

@Priy002  any updates?

https://github.com/anmode/grabtern-frontend/assets/73902900/e6bb3ea4-ecf6-4df3-b187-7c9373487c63

Liked your changes! Just resolve the conflicts and your pR is good to merge!

@Priy002 ok I fixed it... just need a little mobile responsiveness.

Let's do on next PR... Other parts needs improvment too!

Let's do on next PR... Other parts needs improvment too!

Sure!
besides mobile responsiveness which other parts needs improvements??


added missed $notAfter variable

The script block referenced the $notAfter variable so I added it.

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

File
Status
Preview URL
Details

:x:Error

Details

[Error] Error when get composition container: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information., loader exceptions: Could not load file or assembly 'Microsoft.Extensions.Primitives, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040), Could not load file or assembly 'Microsoft.Extensions.Primitives, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040), Could not load file or assembly 'Microsoft.Extensions.Primitives, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040), Could not load file or assembly 'Microsoft.Extensions.Primitives, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
[Error] System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeAssembly.get_DefinedTypes()
at System.Composition.Hosting.ContainerConfiguration.<>c.<WithAssemblies>b__16_0(Assembly a)
at System.Linq.Enumerable.<SelectManyIterator>d__172.MoveNext() at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor(IEnumerable1 types, AttributedModelProvider attributeContext)
at System.Composition.Hosting.ContainerConfiguration.CreateContainer()
at Microsoft.DocAsCode.Common.CompositionContainer.GetContainer(IEnumerable1 assemblies) at Microsoft.DocAsCode.Build.Engine.DocumentBuilder..ctor(IEnumerable1 assemblies, ImmutableArray`1 postProcessorNames, String templateHash, String intermediateFolder, String commitFromSHA, String commitToSHA, Boolean cleanupCacheHistory)
at Microsoft.DocAsCode.SubCommands.DocumentBuilderWrapper.BuildDocument(BuildJsonConfig config, TemplateManager templateManager, String baseDirectory, String outputDirectory, String pluginDirectory, String templateDirectory)
at Microsoft.DocAsCode.SubCommands.DocumentBuilderWrapper.BuildDocument()

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.

I made a typo...it should be AddYears not AddYear

This has been fixed in a preceeding pull request.  Thanks!


ClusterRepo detail page: Add git commit hash for git repos

Summary
ClusterRepo detail page: Add git commit hash for git repos
Fixes #8983
Areas or cases that should be tested
App repository detail page for git repos and http repos should still work.
Areas which could experience regressions
App repository detail page
Screenshot/Video

This is just an additional commit section in an existing row, no real UX required

LGTM

Marking as QA/None - reviewer to do QA, since this is trivial change


bug: Custom Commands papercuts

Version
v0.17.1701443218
Describe the bug
Using the Custom Command builder, I ran into a few papercuts:
New Custom Cody Command: Prompt
The builder tells me I can create up to five prompts for my custom command, but I don't know how to add more than one. If the QuickPick limitations are such that we can't add optional "substeps" (prompt 1, prompt 2, etc), then we should just update the instruction to say you can only use the builder to add one prompt, but you can add more in the JSON file.

New Custom Cody Command: Context Options

I can't scroll to the right, and if I'm just experimenting with Custom Commands, "Codebase" feels like the one I'm most likely to try out. I can't scroll to the right here, to see more about what it means.
I think we should remove the checkbox next to "For accurate responses . . . " in include one below that says "All"

Back button?
It doesn't look like the QuickPick allows for a back button, but I would love one if it's possible. My sense is that the QuickPicks are better suited to builders that are a little simpler than what we're trying to accomplish here, and we should rethink the UX we're including. I owe @toolmantim some product docs on that.
Expected behavior
Expected / desired behavior detailed above.
Additional context
No response

@taylorsperry @toolmantim is there any updated design for custom command that requires eng work?

@abeatrix in general, or based on the above? I don't think there's anything. The only actionable thing I can see is adding back button support to the builder (which is possible @taylorsperry) but I don't think it's a priority.


Add integration test for 'validate'; extend --ignore-unknown

This change adds an integration test for kubecfg validate,
and (based on its findings), extends --ignore-unknown to
successfully ignore some additional "not found" error variants.
Specifically, this change extends --ignore-unknown to also ignore:

apiGroup doesn't exist in ServerGroups discovery info
found apiGroup schema, but it did not contain the expected Kind

The previous version only handled (ie: successfully ignored) the case
where the schema itself didn't exist - much more was intended.

/cc @mmikulicic again, because I know how much he loves --ignore-unknown PRs :P


[Internals] move to SurvivalBase.jl

This should work as-is and can be merged already.
@rimhajal also do not forget to change dependency on ratetables to 0.2 minimum if you correct the name of the available_covariate function here. Then you also have to publish a (minor) version of NetSurvival.jl

Do we have to do that if NetSurvival doesnt't use available_covariate ?

It does not use it ? Then no, this is not needed. I thought we used it somewhere but I might be wrong.

@rimhajal so I will merge this then


rpc: Add ADR for RPC client event subscription mechanism

In partial fulfillment of #313 (implementation will close it).
I've gone through several mental iterations of what the various touchpoints for the event pub/sub interface could look like and I think I've pared it down to the simplest form I can come up with.
More scrutiny would be greatly appreciated! 😁
Rendered

[x] Referenced an issue explaining the need for the change
[ ] Updated all relevant documentation in docs
[ ] Updated all code comments where relevant
[ ] Wrote tests
[ ] Updated CHANGES.md

I too very much like the interface 👍
I think it could be useful to sketch out the Subscription type to see how easily we can mock out the Client interface to construct a Subscription which emits a static list of events.


docs: document usage as library (#871)

Follow-up of https://github.com/openfga/openfga/issues/871

@miparnisari  can we add docuumentation in how to

specify the pg store
override the default config
preload the in mem store with data?


Release 1.7 changes for examples till Oct 16

Release 1.7 changes for examples till Oct 16

Can one of the admins verify this patch?


Calling docs on v5.0.0-rc.4 fails

As reported in JordanMartinez/learn-halogen#5, running spago docs on the v5.0.0-rc.4 will fail with this error:
Generating documentation for the project. This might take a while..
Error found:
in module Halogen.Query.EventSource
at .spago/halogen/v5.0.0-rc.4/src/Halogen/Query/EventSource.purs:32:8 - 32:66 (line 32, column 8 - line 32, column 66)

  Type class instances for type synonyms are disallowed.

in type class instance

  Data.Newtype.Newtype (EventSource m a)
                       (m
                          { finalizer :: Finalizer m
                          , producer :: Producer a m Unit
                          }
                       )

See https://github.com/purescript/documentation/blob/master/errors/TypeSynonymInstance.md for more information,
or to contribute content related to this error.

spago: Docs generation failed.

I'm assuming its because there's no Monad constraint in the instance derivation?
I tried reproducing the bug without using Spago (in case I was referring to an outdated dependency in my local package set). I followed these steps:
cd purescript-halogen
rm -rf output/ bower_components/
git checkout origin/master
bower install
pulp docs

And that failed with this error:
purs docs: error in --docgen option:
  Can't mix module names and module name/file path pairs in the same invocation.
* ERROR: Subcommand terminated with exit code 1

Why would there need to be a Monad constraint for the Newtype instance? It looks like a bug in purs docs to me.
The second one looks like a bug in pulp.

Why would there need to be a Monad constraint for the Newtype instance?

I thought it might be a bug in purs, but in case it wasn't, that would be my next guess for fixing it.

@JordanMartinez to reproduce this without using spago, try running purs docs --format html 'src/**/*.purs' 'bower_components/purescript-*/src/**/*.purs instead of pulp docs.

@hdgarrood Just tried that command and it worked without any issue.

Since that above command worked and since I did find a way to fix the original problem in my comment here, I'm going to close this issue.


Fix products sorting

Occuring on products but not products/sections.

Fixed. #5 still to be fixed.


Set Data Type in mySQL

Is it possible to use it?:
https://dev.mysql.com/doc/refman/5.7/en/set.html

There is no special handling for that in objection. If the mysql client you installed supports it then so should objection.

https://github.com/mysqljs/mysql#type-casting


A tutorial to show the metrics API usage

Is your feature request related to a problem? Please describe.
would be great to have a standalone demo/tutorial on the metrics APIs
part of https://github.com/Project-MONAI/MONAI/issues/497, followup of https://github.com/Project-MONAI/MONAI/pull/2314

Hi @wyli ,
Thanks for putting this ticket.
I am thinking about the content of tutorial example today, plan to mainly introduce 2 parts:

How to use metrics in a regular validation program during training.
How to compute metrics based on saved predictions and labels, with multi-processing.

Do you have any other suggestions?
Thanks.

sure, it should also have a section to generate a final metric summary report

Sounds good!
Thanks.


Selecting Name to Meet

When I am on the meeting feature of the web app, often times I click on the name of the person that I want to work with and the name just disappears.

Text messaging/Twilio feature on meetHere

Please include information on expected behavior, steps to reproduce, and proposed solutions.


AIM: Flag symbol links to an undefined ID

When a new post comes through the websocket and AIM decorates the message with the appropriate symbol, it links to an undefined URL (e.g. https://metasmoke.erwaysoftware.com/post/undefined/flag_logs)
Note that this does not happen when autoflag info is fetched from the API.
Related issue: Only one autoflagging user is displayed on hover when info was retrieved from the websocket, but after reload, all flaggers are listed.

Related issue is now fixed.


LogCleaner: Performance benchmark and parallelization

Overview
Users have reported that enabling log cleaner causes performance degradation (e.g., #702, #753), but no one has really measured its performance penalty (i.e. absolute execution time) until now.
Here's a simple benchmark I've made recently. In addition, I implemented a parallelized version of LogCleaner::Run() using pthread.
Environment

Platform:

Arch Linux
CPU: Intel i7-10700 CPU @ 2.90GH (16-core)
Memory: 16 GB

Evaluation

There are two graphs above, please refer to the one on the LHS. The x-axis denotes the amount of threads used, and when x = 1 pthread is not involved, i.e. the current implementation of log cleaner is used. Here's the explanation:

When there are 100 files in log directories, the execution time of LogCleaner::Run() is 0.157 ms in avg.
When there are 1,000 files in log directories, the execution time of LogCleaner::Run() is 1.249 ms in avg.
When there are 10,000 files in log directories, the execution time of LogCleaner::Run() is 13.742 ms in avg.
When there are 100,000 files in log directories, the execution time of LogCleaner::Run() is 127.586 ms in avg.

Note:

The execution time of LogCleaner::Run() is measured using glog's CycleClock.
In the experiment, no unlink() is actually performed.
All filenames in log directories are valid (IsLogFromCurrentProject() will return true for all of them).

Optimization using pthread
Serial Implementation
For every file in log directories, LogCleaner::Run() does the following tasks in serial:

check if the filename matches the format used by glog
and if yes, check if the last modified timestamp is >= overdue_days_

Parallel Implementation
To parallelize this method, we can first save all filenames into a vector of strings, and then create multiple threads to do the checking in parallel. Suppose we have 16 files and 3 threads, then the workload will be distributed evenly to each thread like this:

Thread ID
Responsible for i-th file

0 (main)
0, 3, 6, 9, 12, 15

1
1, 4, 7, 10, 13

2
2, 5, 8, 11, 14

On the graph above, the one on the RHS shows how much speedup the parallel implementation can achieve when compared to the current serial implementation:

When there are < 100 files in log directories, multithreading can incur unnecessary overhead.
When there are >= 1,000 files in log directories, multithreading can save some time.

A Fully Working Example

The parallel implementation is here: aesophor/glog@7d8c591376e8afed56acfffea13e367bdd5d3f57 (parallel_logcleaner branch)

the original LogCleaner::Run() is called LogCleaner::RunSerial()
the parallel LogCleaner::Run() is called LogCleaner::RunParallel()
CycleClock_Now() is called before and after these functions to measure execution time.

https://github.com/aesophor/NYCU-ParallelProgramming-2021Fall/blob/master/final_project/main.cc

generate_files.sh - generates n logs in a subdirectory called "testdir". example: ./generate_files.sh 1000
main.cc, Makefile - a program which runs the LogCleaner using n threads. example: ./glog_logcleaner_benchmark 8

Final Remarks
This is a final project of the parallel programming course I've taken, and if the speedup brought by pthread is acceptable, then I'll submit a corresponding PR.
Thanks for reading all of these!

Wow! Thanks for creating this benchmark. This looks great!
Without having looked at your implementation, however, I want to note that an actual parallel cleanup is probably impractical because the most likely bottleneck will be the speed of the storage device (e.g., HDD vs. SSD) and parallel random accesses will only slow down the task. At the same time, the cleanup can be performed in a single thread in a serial manner independently from the logging thread, e.g., by triggering a task in regular intervals or while the process idling. It is clear, that the cleanup will not finish if the process is stopped. However, a cleanup guarantee can be made only while the process is running anyway.

I see. Thank you @sergiud! 😸


Docs: add note for view encapsulation

Hello!
It took me about 2 hours to figure out why ng2-fullpage isn't working with my project, Then finally  i changed my view encapsulation from native to none and now it is working perfectly.
Please add a note in docs about angular 2 view encapsulation  that it has to be set to none before setting ng2-fullpage. :)

@aamir1995 , you are right. Angular 2 has this issue with styles.
It is already done in demo app.component.ts
I'll mention this problem in readme.md. Thank you!

I've updated readme file. Thank you!


Clarify docs around slots and rules

Following up on this bug and the discussion it started, there are numerous clarifications that should be added to our docs. The main reason these live in a separate issue is that we wanted to ship a simple bugfix asap.
Clarifications re unset featurised slots
There are many important facts, some of them scattered around the docs, others not mentioned at all. These should be compiled and collected in one place:

a slot is originally unset (unless it has initial_value defined)
this means its value is the Pythonic None
where such a slot influences_conversation, Rasa Core is aware that it's unset (the featurisation differs from when the slot is set to some legit value)
in Python (custom actions), we unset a slot by setting it to None; in stories/rules, we write slot_name: null
categorical slots can't have the Pythonic None as a possible value. None (in domain.yml written as null) is reserved for when the slot is unset. However, "null" (quoted as a string) can be listed in the domain as a slot's possible value, and so can be "None".

Clarification re featurisation of categorical slots
We should make it absolutely clear in the docs that featurisation of categorical slots is done by casting both the possible slot values and the value to be featurised as str, and then lower-casing them. I.e. slot values are case-insensitive and, in case of values that aren't strings, users should think about what the string-casted values will be.
Clarification re slot-agnostic vs slot-conditioned rules/stories
What does it mean if a conversation-influencing slot isn't mentioned in some given rule? If, for some given context, a rule prescribes certain next steps irrespective of slots, and another rule (or a story) for the same context specifies different behaviour while conditioning on slots, then these two rules/stories are in conflict. It may feel a bit surprising but it makes sense. A good example of this is reported here and elaborated on here. We should definitely mention this in the docs, especially for when people are writing rules.
Definition of done:

[ ] For each clarification, figure out the right place(s) in the docs where it should live
[ ] Think or ask around (CSE) to figure out if there are further important relevant bits that should be added to the 3 topics in question
[ ] Create appropriate examples that would speak for themselves
[ ] Update the docs with the content
[ ] Get a review from both Research and CSE

Tbc these are pretty substantial bits which complete the fixing of this customer-affecting bug and (hopefully) help people use featurised slots and rules with much more confidence.


on upgrade - group feature got corrupted

Hi,
Pulled the last master version of helpy yesterday to use the group features, and all is working fine beside the group issues :)
here is the error when trying to either create a group or edit one:
ActionView::Template::Error (undefined method `email_address' for #<ActsAsTaggableOn::Tag:0x007f9b01fbfb28>):
    12:     Any tickets in this group will appear to come from the following address:
    13:

    14:
    15:     <%= f.input 'email_address', label: t('email_address', default: "Email Address") %>
    16:     <%= f.input 'email_name', label: t('from_name', default: "From Name") %>
    17:
    18:
  app/views/admin/groups/_form.html.erb:15:in `_app_views_admin_groups__form_html_erb__1574961255610861448_70151866890400'
  app/views/admin/groups/edit.html.erb:12:in `block (2 levels) in _app_views_admin_groups_edit_html_erb___1181540715406815768_70151854670760'
  app/views/admin/groups/edit.html.erb:11:in `block in _app_views_admin_groups_edit_html_erb___1181540715406815768_70151854670760'
  app/views/admin/groups/edit.html.erb:3:in `_app_views_admin_groups_edit_html_erb___1181540715406815768_70151854670760'
  app/controllers/application_controller.rb:184:in `set_time_zone'

I, [2017-08-02T13:11:59.595102 #28609]  INFO -- : Processing by ErrorsController#internal_server_error as HTML
I, [2017-08-02T13:11:59.595190 #28609]  INFO -- :   Parameters: {"id"=>"2"}
I, [2017-08-02T13:11:59.598774 #28609]  INFO -- :   Rendered errors/internal_server_error.html.erb within layouts/errors (0.8ms)
I, [2017-08-02T13:11:59.602925 #28609]  INFO -- :   Rendered layouts/_google_analytics.html.erb (0.2ms)
I, [2017-08-02T13:11:59.603076 #28609]  INFO -- :   Rendered app/themes/light/views/layouts/_head.html.erb (3.6ms)
I, [2017-08-02T13:11:59.604375 #28609]  INFO -- : Completed 500 Internal Server Error in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms)

The server seems to work as it should running on ruby 2.4.0. and permissions are ok,
this seems like an app error
Any idea?

didn't ran the migrate
silly me


🐛: Missing Cryptoprofit Calculator in Footer

Title
Missing Cryptoprofit Calculator in Footer
Bug
The footer displays a link to the cryptoprofit calculator; however, the calculator is currently missing from the site. This creates a disconnect for users expecting to access the tool. A solution is needed to either add the cryptoprofit calculator or remove the link from the footer to avoid confusion.
Changes
I will add a crypto profit calculator
Screenshots 📷

Full Name
Priyanshi Bhargava
Participant Role
GSSoC-ext : Contributor

Title
Missing Cryptoprofit Calculator in Footer
Bug
The footer displays a link to the cryptoprofit calculator; however, the calculator is currently missing from the site. This creates a disconnect for users expecting to access the tool. A solution is needed to either add the cryptoprofit calculator or remove the link from the footer to avoid confusion.
Changes
I will add a crypto profit calculator
Screenshots 📷

Full Name
Priyanshi Bhargava
Participant Role
GSSoC-ext : Contributor

This issue is already assigned 🙃


Add Elixir example in backend auth documentation.

is it possible to include an Elixir example in the documentation for "Authenticate with a backend server" section "Using a Google API Client Library"  in the following link https://developers.google.com/identity/sign-in/web/backend-auth
or an example in Github would be nice, I haven't been able to find how to verify id token from mobile client using this elixir library, I think its helpful to include common use cases.

looks like a common issue
https://elixirforum.com/t/using-joken-to-validate-google-jwts/19728

this project seems to work easily, but it would be great to use official google library https://github.com/amezcua/jwt-google-tokens


no-trailing-spaces warns outside of

I cannot resolve this issue in vue-eslint-parser side.
It needs to fix the implementation of no-trailing-spaces rule.


PolymorphismSchema.Constructors.cs uses ReadOnlyCollection (MsgPack.Unity3D.Full.csproj)

My  environment:
Messagepack-cli 0.6.3
Use in source code(MsgPack.Unity3D.Full.csproj)
Unity 5.2.1p3(Mac)
Initialization of static readonly members in Unity are special.
It actually becomes null in the constructor by Unity environment.
(ReadOnlyCollection does not allow null)
Other 'ReadOnlyCollection' is not used in Unity.
(by #define UNITY)
Is this code(PolymorphismSchema.Constructors.cs) for the Unity design?
If different, I want you to make corrections.
Thanks,

Would you give me the stack trace of the exception? It is required source, so I'll add workaround (as long as your report, this looks Unity's bug)

It is a Unity console output of a minimum test environment.
Messagepack-cli 0.6.3(MsgPack.Unity3D.Full.csproj)
Unity 5.2.1p2(Mac)
If necessary, I can send you a unitypackage(This minimum test environment).
Thanks,
===========================================================
ArgumentNullException: Argument cannot be null.
Parameter name: list
System.Collections.ObjectModel.ReadOnlyCollection1[MsgPack.Serialization.PolymorphismSchema]..ctor (IList1 list) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.ObjectModel/ReadOnlyCollection.cs:53)
MsgPack.Serialization.PolymorphismSchema..ctor () (at Assets/MsgPack/Serialization/PolymorphismSchema.Constructors.cs:45)
MsgPack.Serialization.PolymorphismSchema..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for MsgPack.Serialization.PolymorphismSchema
MsgPack.Serialization.DefaultSerializers.GenericSerializer.Create[TestClass] (MsgPack.Serialization.SerializationContext context, MsgPack.Serialization.PolymorphismSchema schema) (at Assets/MsgPack/Serialization/DefaultSerializers/GenericSerializer.cs:50)
MsgPack.Serialization.SerializationContext.GetSerializer[TestClass] (System.Object providerParameter) (at Assets/MsgPack/Serialization/SerializationContext.cs:677)
MsgPack.Serialization.MessagePackSerializer.Get[TestClass] (MsgPack.Serialization.SerializationContext context, System.Object providerParameter) (at Assets/MsgPack/Serialization/MessagePackSerializer.cs:209)
MsgPack.Serialization.MessagePackSerializer.Get[TestClass] (MsgPack.Serialization.SerializationContext context) (at Assets/MsgPack/Serialization/MessagePackSerializer.cs:164)
MsgPack.Serialization.MessagePackSerializer.Get[TestClass] () (at Assets/MsgPack/Serialization/MessagePackSerializer.cs:123)
TestSerialize`1[TestClass].Pack (.TestClass obj) (at Assets/TestSerialize.cs:11)
TestMain.Awake () (at Assets/TestMain.cs:15)

In Unity programming, the constructor is not recommended if you have inherited the MonoBehaviour.
Similarly to. initialization of static readonly also different from that of the C # looks like a specification.
Thanks,

Would you send me your unitypackage? I cannot repro the problem in Unity 5.2.1p3 with iOS build (did you use another build such as Standalone MAC?)

It will send the unitypackage(use Contact GitHub).
Additional description:
There is no NuGet the Mac environment.
Therefore, we have copied(UnityProject) the contents of the "MsgPack.Unity3D.Full.csproj".
This is because, we want to use in the source code(not a dll).
And, this problem occurs when Unity build(source code).
(When using the "unity3d\MsgPack.dll"(0.6.3) problem does not occur)
===============================================================================
Another matter:
"unity3d-full\MsgPack.dll"(0.6.3) can not be loaded.
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in :0
at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in :0
at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in :0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in :0
at Mono.CSharp.Driver.LoadReferences () [0x00000] in :0
at Mono.CSharp.Driver.Compile () [0x00000] in :0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in :0
The class System.IO.HandleInheritability could not be loaded, used in System.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089
The class System.IO.HandleInheritability could not be loaded, used in System.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089
The class System.IO.Pipes.PipeAccessRights could not be loaded, used in System.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089
The class System.IO.Pipes.PipeAccessRights could not be loaded, used in System.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089
The class System.IO.Pipes.PipeDirection could not be loaded, used in System.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089
The class System.IO.Pipes.PipeDirection could not be loaded, used in System.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089
The class System.IO.Pipes.PipeOptions could not be loaded, used in System.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089
The class System.IO.Pipes.PipeOptions could not be loaded, used in System.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089
The class System.IO.Pipes.PipeTransmissionMode could not be loaded, used in System.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089
The class System.IO.Pipes.PipeTransmissionMode could not be loaded, used in System.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089

"unitypackage" did not the format can be attached in the "Contact GitHub".
Would you like to do?

Thank you for information. I could not repro both of DLL and source code. I guess the problem was caused by static initialization order as you suggested, and I found there are other issues related to the Unity's compiler. Please try next (0.6.5) version and its polished mpu.exe -l tool to generate available source tree for Unity.
For second problem, would you look your build settings that whether you use ".net 2.0" or ".net 2.0 subset". If you use latter, you cannot use MsgPack.Unity3D.Full/MsgPack.dll, you must use MsgPack.Unity3D/MsgPack.dll instead. The non-full Unity3D DLL does not require System.dll and System.Core dll, so it should work fine.

Thank you.
I understand. We will wait for 0.6.5.

Is this issue solved?

Yes, we confirm the operation.
Thank you.

Thank you replying!


Plugin crashes when route includes zod schema with querystring

21:47:30 UTC error: Cannot convert undefined or null to object  xTypeError 500: Cannot convert undefined or null to object     at Function.keys (<anonymous>)     at printRoutes (file://./node_modules/.pnpm/fastify-print-routes@3.2.0/node_modules/fastify-print-routes/dist/index.js:82:47)     at Object.<anonymous> (file://./node_modules/.pnpm/fastify-print-routes@3.2.0/node_modules/fastify-print-routes/dist/index.js:132:9)     at ./node_modules/.pnpm/fastify@4.27.0/node_modules/fastify/lib/hooks.js:158:14     at _encapsulateThreeParam (./node_modules/.pnpm/avvio@8.3.0/node_modules/avvio/boot.js:589:7)     at Boot.timeoutCall (./node_modules/.pnpm/avvio@8.3.0/node_modules/avvio/boot.js:485:5)     at Boot.callWithCbOrNextTick (./node_modules/.pnpm/avvio@8.3.0/node_modules/avvio/boot.js:467:19)     at Task.release (./node_modules/.pnpm/fastq@1.17.1/node_modules/fastq/queue.js:171:16)     at worked (./node_modules/.pnpm/fastq@1.17.1/node_modules/fastq/queue.js:223:10)     at Boot.timeoutCb (./node_modules/.pnpm/avvio@8.3.0/node_modules/avvio/boot.js:494:7)
It works with body, but not querystring.

Can you please provide me a reproducible repro so I can fix this?

@ShogunPanda Sorry for the delay here, I didn't have the time to revise this until today.
I created a minimal reproducible example here:
https://github.com/ollebergkvist/fastify-print-routes-example
Many thanks in advance 🙏

This has been fixed in 4.0.0, which now supports zod.


[md-button-toggle] checked and class not always in sync

Bug:
What is the expected behavior?
When component md-button-toggle attribute "checked" = true, the class "mat-button-toggle-checked" should be present; regardless of if checked is due to user click or Angular data binding
What is the current behavior?
If a component md-button-toggle was set to "checked" = true via Angular data-binding, the class is present.
Then, on user click, it is deactivated; but if immediately re-checked with data binding, the class does not show active.
What are the steps to reproduce?
http://plnkr.co/edit/az8kOfiARPJXkvkZrefZ?p=preview

Click on any non-disabled month
Click on any other non-disabled month (at least 2 months away)
At this time, Angular code checks all months in range.
If click on any non-checked month, and then another month, everything is fine
If click on a currently checked month, Angular re-checked the component to true. At this time, if inspect with console, we can see ng-reflect-checked="true", but class 'mat-button-toggle-checked' not present.

if you click on any other month, the range will be checked except the original month clicked.

What is the use-case or motivation for changing an existing behavior?
see steps to reproduce above
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
@angular/cli: 1.1.0-beta.1
@angular/material: 2.0.0-beta.3
typescript": ~2.3.2
Is there anything else we should know?
can't think of anything. Will answer questions on thread

The problem is [checked]="month.active" and month.active is never changed during the actions. In your example, the checked value inside button-toggle is changed to false, but month.active is always true so change detection is not triggered and the set checked = true in button-toggle is not triggered after click action.
One solution may be change the month.active after button-toggle clicked, and trigger change detection manually.
http://plnkr.co/edit/GX8B6P3MEwPEqGfkcUNw?p=preview


Files link won't work

Hi,
In the forth step of your code prerequisites, this files download link is not working. Can you please try to fix it?
wget -r -np -R "index.html*" https://files.sri.inf.ethz.ch/lamp/

Hi,
The link works for me. It might have been a temporary glitch on the side of ETH. Can you check again and confirm the issue persists?
Thank you,
Dimitar

Hi Dimitar,
Thanks it's working now.
I read through your paper and it's excellent job. I had the similar idea but congrats on your paper.
Best,
Shane

Hi Dimitar,
I deleted the old environment and need to download the files again. I found out that the link is not working again at the moment.
Is the server only up in working time of your office?
Best,
Shane

Hi, the server we use is hosted by the computer science department of ETH. It mostly works, but they have had a few issues in the past, and I believe the first time, you were just unlucky. This time, it seems to be because they moved our files around two weeks ago, and they seem to have broken the file permissions in the process. I am working on fixing it. I am sorry for the inconvenience

Hi Dimitar,
No worries. Thanks for your effort. I will try to fetch it again later then.
Best,
Shane

Should be fixed now

Hi Dimitar,
Thanks. It's working on my side now.
I opened another issue about your threat model assumption. Can you please take a look as well?
Best,
Shane


How should redirects be created when a package contains different assembly versions for a single assembly?

depfile:
nuget Sample

Sample.nuspec contains  <dependency id="Spark" version="[1.8,2.0)" />.
Spark 1.8.0 contains lib\NET45\Spark.dll which has
[assembly: AssemblyVersion("<IP_ADDRESS>")]
[assembly: AssemblyFileVersion("<IP_ADDRESS>")]
[assembly: AssemblyInformationalVersion("<IP_ADDRESS>")]

As far as I know the version the CLR binds to is AssemblyVersion, <IP_ADDRESS> in this case.
Paket generates this version redirect, though:
<dependentAssembly>
  <assemblyIdentity name="Spark" publicKeyToken="7f8549eed921a12c" culture="neutral" />
  <bindingRedirect oldVersion="<IP_ADDRESS>-<IP_ADDRESS>" newVersion="<IP_ADDRESS>" />
</dependentAssembly>

/cc @isaacabraham

Hmmm. We use AssemblyVersion to get the version used in the binding redirects file though. Are there other versions of the assembly in the nuget package, which have a different version perhaps? Maybe the binding redirects code is using one of those (incorrectly).

WTF, you were right.
lib\NET35\Spark.dll: <IP_ADDRESS>
lib\NET40\Spark.dll: <IP_ADDRESS>
lib\NET45\Spark.dll: <IP_ADDRESS>
My project is 4.5. Seems like the redirects will break when you change the .NET version of your project. At least when package authors decide to use different version numbers for different platforms.

It's alread reported. https://github.com/SparkViewEngine/spark/issues/54

Question is, how would we handle such situations. Should we rather throw or warn and make it explicit that redirects will break than just picking any version?

Yeah, the part of code that determines which version of the assembly to use to pull out the AssemblyVersion isn't aware of which version will ultimately be deployed by Paket. If that was added in, it then might just work.

For sure. But only until you change e.g. from 4.5.1 to 4.0 without an additional paket install. :-)

Could we do redirects that are framework-dependent I wonder?

I'm not aware of app.config settings depending on the framework version.
Alex
Alexander Groß
Tiny phone, tiny mail
On Fri, Mar 20, 2015 at 11:10 PM, Isaac Abraham<EMAIL_ADDRESS>wrote:

Could we do redirects that are framework-dependent I wonder?
Reply to this email directly or view it on GitHub:
https://github.com/fsprojects/Paket/issues/711#issuecomment-84167164

Not sure there's much we can do then unless we make a custom msbuild task?

So redirects would be added at compilation time? Not sure it's worth the effort to work around this obvious bug in Spark. I'm not aware of other packages that deliberately use different version numbers for libs targeting different framework versions.
Alex
Alexander Groß
Tiny phone, tiny mail
On Sat, Mar 21, 2015 at 12:13 AM, Isaac Abraham<EMAIL_ADDRESS>wrote:

Not sure there's much we can do then unless we make a custom msbuild task?
Reply to this email directly or view it on GitHub:
https://github.com/fsprojects/Paket/issues/711#issuecomment-84184166

I'm agree re: cost / benefit. Just pointing out what options are out there :-) Ok with closing this?

Yes a warning would be good.
On Mar 20, 2015 11:01 PM, "Alexander Groß"<EMAIL_ADDRESS>wrote:

Question is, how would we handle such situations. Should we rather throw
or warn and make it explicit that redirects will break than just picking
any version?
—
Reply to this email directly or view it on GitHub
https://github.com/fsprojects/Paket/issues/711#issuecomment-84165858.

Reopened because of suggested warning.


Update ch01-04-update-operation.md

fix typo, and change "column" to "fruit". Thank you!

Hey @nicarran, thank you so much for catching that! I'm sorry that we have to close this PR as we revamped the tutorial. Please check our new tutorial at https://www.sea-ql.org/sea-orm-tutorial/ :D

Again, thank you!!


Add JSON serializeability with PROJJSON?

CRS objects are not JSON serializable:
import pyproj
import json

crs = pyproj.CRS.from_user_input("EPSG:3857")

json.dumps(crs) #throws exception

I would have expected this to Just Work ™ by using PROJJSON as the JSON i/o capability. This should work as lossless i/o in all be the rarest/weirdest situations, right @rouault?

This should work as lossless i/o in all be the rarest/weirdest situations, right @rouault?

yes

@hobu Can json.dumps(crs) work without passing an encoder in the cls parameter?

Summary of options I have thought of:
Option 1: Use CRS.to_json https://github.com/pyproj4/pyproj/issues/1361#issuecomment-1830640237
Option 2: Use encoder https://github.com/pyproj4/pyproj/issues/1361#issuecomment-1820732094
import json
from pyproj import CRS

class PROJEncoder(json.JSONEncoder):
    def default(self, obj):
        try:
            return crs.to_json_dict()
        except AttributeError:
            pass
        return super().default(obj)

crs = CRS.from_user_input("EPSG:3857")
json.dumps(crs, cls=PROJEncoder)

Option 3: Ask Python json library to support a class method like __json__ so encoders are not needed anymore  (possibly with a PEP) and then update pyproj to support it....

The __json__ solution would need to be split into an encode and decode method, right?

The __json__ solution would need to be split into an encode and decode method, right?

Possiblity. Only thinking about one-way to encode to JSON at the moment as I don't think some things round-trip easily.

I suppose Option #3 has been asked many times and there's some good reason for not implementing something like it over the years.
Hopefully this ticket generates enough google juice for the next person and points them to use CRS.to_json(). I'm happy to close this if there's no action to be taken on the pyproj side.


[FLINK-26909][Client/Job Submission] Support AdaptiveBatch when parallelism is -1 from Cli

What is the purpose of the change
When we start the job by command with args "-p $parallelism", the error is thrown with "The parallelism must be a positive number: -1". Since we can use AdaptiveBatch with config parallelism.default: -1, we should support it from Cli.
Brief change log

Remove the limit when the Cli parallelism is -1 in class ProgramOptions.
Apply to the configuration when Cli parallelism is set.

Verifying this change
This change added tests and can be verified as follows:

Add unittest for this feature in CliFrontendRunTest

Does this pull request potentially affect one of the following parts:

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

Documentation

Does this pull request introduce a new feature? (no)

@flinkbot run azure

@flinkbot run azure


Feat/chipper v3

This new version of Chipper should largely improve the output for tables. In the attached file, the output looked as having many cells spread across multiple columns, and largely because of the $ character, which was inconsistently annotated in the Odetta set. As well colspan did not work properly for the header. This new version of Chipper does not predict thead and tbody tokens for tables.
To test it, you need to run the code below. It will print the predicted elements. The code should print only one page and one element. The element has a field name text_as_html. The HTML within that field can be pasted in a new file renamed as html to be open with a browser.
Example with Chipperv2

Example with Chipperv3

from unstructured_inference.inference.layout import DocumentLayout
from unstructured_inference.models.base import get_model

model = get_model("chipper")
doc = DocumentLayout.from_image_file("[point to the location of the file]/apple.png", detection_model=model)

for i in range(len(doc.pages)):
          print(f"********** Page {i}")
          print(*[element.__dict__ for element in doc.pages[i].elements], sep="\n")

Please add test instructions, esp. how to test with the unstructured library. Ideally, the test instructions would include a doc where the output has improved.

Is it possible to test this model?


Exact Python version requirement?

I noticed that several readme files (e.g. readme.md, readme_template.md) now say that Python version 3.7 is required to generate one's own hosts file whereas the first line in readme.md says that version 3.5+ is required.
I just used the default Python 3.6.6 on Ubuntu 18.04 to generate my hosts file with all extensions, and it seemed to work just fine. I think it would be useful to determine exactly which Python version is required so that people do not feel pressured to try to install a new version although their existing one would have worked anyway.
Does perhaps only certain functionality actually require version 3.7? In this case it would be helpful to document this so that people can decide for themselves if this functionality is worth the effort to install a new Python version on their system.

Merged in pr #821.  Closing.

@xstnztk all readme files, including the root readme, are generated based on readme_template.md.


Added addItem() for Gui class

Add the icon directly to the first empty slot instead of having to use addItem(slot, )

Thank you for this. You will be able to use from main repository when next release published.


--cwd switch is not working as expected

Following the README section regarding moving the package out of the top level directory of the repo, I tried moving the Dangerfile.swift, Package.swift, and Package.resolved file to a directory named Danger one level below my repo's top directory. When trying to run the command using --cwd Danger or --cwd ./Danger, I get the error
error: Could not find Package.swift in this directory or any of its parent directories.

I have tried inserting the --cwd switch in every possible permutation I could think of (after the PR referenced by the pr command argument, between pr and the URL to the PR, before pr) and I get that error every time. Is there something else I should do to allow me to move those files into a subdirectory to gain the benefits the README calls out? If not, perhaps the feature isn't working as expected?

Thank you for your very prompt response here @f-meloni. I understand now what you intend, and I was able to make it work. I needed to prepend cd Danger; inside my GitHub Action workflow script, which certainly isn't a big deal but maybe there is a future improvement to make it work the way I thought it should?
Either way, I will PR a change to help capture the current functionality in the README.


resource references only support string fields

What happened?
Some terraform providers, such as the Linode provider use resource IDs that are not strings and are instead of type int. This causes an issue when trying to create references between resources because the FromPtrValue and ToPtrValue only support strings for references.
How can we reproduce it?
I have reproduced this issue in this repository where you can see the issue here. it is possible to overwrite the terraform schema for parts of the codebase to be a string instead of an int, but it does cause some problems when reconciling external resources so if it were possible for these functions to just support int/float references as well as strings.
I am happy to try and contribute a fix to have ToPtrValue and ForPtrValue support more types if that is what is needed but please let me know if I might be missing something or if there is a more appropriate place to fix this issue.
What environment did it happen in?
crossplane version: v0.19.0-rc.0
upjet version: v0.7.0

Cross referencing https://github.com/crossplane/crossplane/issues/1770 - something to consider with that impending design.


Copy button at the top right of each component code

Add a Copy button at the top right of the TextField to copy the whole code

I find this rather inconvenient, as you don't want to copy the entire code (which is what a button would indicate), but only the component area as the imports are unnecessary here.

Then I would suggest that the Copy button only copies the component and ignores the imports. Would be very helpful in any case

Personally, I would manage the import and the component separately. This means one field with a copy button for the imports and another field for the component with a copy button.
As in this example:


Change rendering of units

Expected Behavior
Rendering of units needs to change to use the affiliation colour as the outline and have a transparent fill.
Actual Behavior
Currently affiliation colour is used as a fill and black is used as the stroke.

This issue has been revised to simply allow the configuration of the symbol colors by the developer. setIconColor method has been added to achieve this.


Space between each part of Recipes to make it more readable

Feature issue
The instructions list of the recipes are too scrunched and hard to read. There are also no spaces between each part of the recipes (e.g description, ingredients) making it difficult to separate what is what.
Potential Solution for BETA
Add spaces between each part of the recipes AND between each instruction steps.

Done in last feature implemented


simple Interest codes in js, py and ts

Description
Write a program to calculate simple Interest in (javascript, typescript and python)

Issue #5293 already exists


[DOCFIX] Client Dependency Docs

Document where ufs delegation is helpful.

alluxio-bot, check this please.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/10802/
Test PASSed.

@calvinjia Thanks! I left a minor comment.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/10805/
Test PASSed.

LGTM

LGTM


Attempting to add the everyone role to a user causes 404

Title.
Reproducible using
        [Command("role-test")]
        public async Task RoleAddTest()
        {
            if (Context.User is SocketGuildUser user)
                await user.AddRolesAsync(new []{ Context.Guild.Roles.FirstOrDefault(x => x.IsEveryone), Context.Guild.Roles.FirstOrDefault(x=>!x.IsEveryone)});
        }

Stack trace
      Command     Discord.Commands.CommandException: Error occurred executing "role-test" for Still#2876 in DevServer/nsfw-general. ---> Discord.Net.HttpException: The server responded with error 404: NotFound
         at Discord.Net.Queue.RequestBucket.<SendAsync>d__18.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Discord.Net.Queue.RequestQueue.<SendAsync>d__14.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Discord.API.DiscordRestApiClient.<SendInternalAsync>d__62.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Discord.API.DiscordRestApiClient.<SendAsync>d__51.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Discord.API.DiscordRestApiClient.<AddRoleAsync>d__73.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Discord.Rest.UserHelper.<AddRolesAsync>d__4.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
         at GeneralBot.Commands.Owners.BotModule.<RoleAddTest>d__11.MoveNext() in C:\Users\34146\Source\Repos\GeneralBot\GeneralBot\Commands\Owners\BotModule.cs:line 42
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Discord.Commands.ModuleClassBuilder.<>c__DisplayClass6_1.<<BuildCommand>g__ExecuteCallback1>d.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Discord.Commands.CommandInfo.<ExecuteAsyncInternal>d__41.MoveNext()
         --- End of inner exception stack trace ---

This will also cause issues when adding roles whose collection contains the Everyone role (i.e. IGuildUser#AddRolesAsync()), the method will throw and exit immediately.
imo AddRoleAsync method should ignore the everyone role of the guild.

I could see people accidentally add EveryoneRole when filtering through the roles collection with LINQ - I know I did several times. I think adding a check on AddRoleAsync would be great.


MD-AUTOCOMPLETE ISSUE

Bug:
I am  facing problem with angular-martial-autocomplete control,
angular v-1.0.1
this control create virtual-container
when i am using only one  MD-autocomplete on page then design not effected but if i am put multiple MD-autocomplete then design will effected
so please any one know what is problem.
how can i resolve this issue.
PFA:

This is the expected behavior. The autocomplete opens upwards, because there's not enough space for it to fit below.


Fix crash in My Videos -> Course -> Rotate

Think this got lost in a refactor.

@mikekatz please review

yikes. I forgot how touchy this stuff is.


Repeater image

Closing this one, it has already been implemented in https://github.com/aristath/kirki/pull/564

Coverage remained the same at 65.282% when pulling d577acd43219c602497d588cb41400a4d45fe18b on repeater-image into 1cc9a76e0d9d1bb16cd95d697859258a3a8302c3 on develop.


2.4.4

[FIXED] - #230 - removed extra executor allocation
[FIXED] - #231 - found a problem with message ordering when filtering pings on reconnect, caused issues with reconnect in general
[FIXED] - #226 - added more doc about ping intervals and max ping
[FIXED] - #224 - resolved a latency problem with windows due to the cost of the message queues spinwait/lock
[CHANGED] - started support for renaming gnatsd to nats-server, full release isn't done so using gnatsd for tests still

Coverage increased (+0.04%) to 95.179% when pulling 5b5c329bef9be3a30e5a3687134a203a28f78a92 on 2.4.4 into 5f291048fd30192ba39b3fe2925ecd60aaad6b48 on master.

Coverage increased (+0.04%) to 95.179% when pulling 5b5c329bef9be3a30e5a3687134a203a28f78a92 on 2.4.4 into 5f291048fd30192ba39b3fe2925ecd60aaad6b48 on master.

Coverage increased (+0.04%) to 95.179% when pulling 5b5c329bef9be3a30e5a3687134a203a28f78a92 on 2.4.4 into 5f291048fd30192ba39b3fe2925ecd60aaad6b48 on master.

Coverage increased (+0.04%) to 95.179% when pulling 5b5c329bef9be3a30e5a3687134a203a28f78a92 on 2.4.4 into 5f291048fd30192ba39b3fe2925ecd60aaad6b48 on master.

Coverage increased (+0.04%) to 95.179% when pulling 5b5c329bef9be3a30e5a3687134a203a28f78a92 on 2.4.4 into 5f291048fd30192ba39b3fe2925ecd60aaad6b48 on master.


Add pmux2shiftx command

Consider the following test design (tests/various/pmux2shiftx.v in this branch):
module pmux2shiftx_test (
	input [2:0] S1,
	input [5:0] S2,
	input [9:0] A, B, C, D, D, E, F,
	input [9:0] G, H, I, J, K, L, M, N,
	output reg [9:0] X
);
	always @* begin
		case (S1)
			3'd0: X = A;
			3'd1: X = B;
			3'd2: X = C;
			3'd3: X = D;
			3'd4: X = E;
			3'd5: X = F;
			3'd6: X = G;
			3'd7: X = H;
		endcase
		case (S2)
			6'd46: X = I;
			6'd47: X = J;
			6'd48: X = K;
			6'd52: X = L;
			6'd53: X = M;
			6'd54: X = N;
		endcase
	end
endmodule

The command ./yosys -p 'prep; pmux2shiftx; opt; stat' tests/various/pmux2shiftx.v synthesizes this into a circuit with the following stats:
=== pmux2shiftx_test ===

   Number of wires:                 22
   Number of wire bits:            192
   Number of public wires:          17
   Number of public wire bits:     159
   Number of memories:               0
   Number of memory bits:            0
   Number of processes:              0
   Number of cells:                  6
     $mux                            1
     $shift                          1
     $shiftx                         2
     $sub                            1
     $xor                            1

The first case statement is straight converted into a single $shiftx cell.
The 2nd case statement is converted into a slightly more complex circuit consisting of a $shiftx cell for the data, a $shift cell for decoding valid entries. There's also a $sub cell for subtracting the offset and a $xor cell that flips control bits in an effort to create a denser packing of elements.
Finally, the $mux cell selects the output of one of the two $shiftx. The valid-entry decoder for the 2nd case statement drives the select input of that $mux cell.

During testing I found that often $pmux select inputs are driven by onehot encoded signals, but not by the one hot signal but by an $eq cell comparing the whole vector.
So I've now added a onehot pass that detects $eq cells of that kind, checks if the driver can only drive onehot patterns, and if so, replaces the $eq with the correct wire from the vector.
I've also added special handling for this case to pmux2shiftx.

During testing I found that often $pmux select inputs are driven by onehot encoded signals, but not by the one hot signal but by an $eq cell comparing the whole vector.

Sorry, you lost me here. The muxes I've been seeing are $pmux selects each bit of which is driven by a $eq output of comparing a vector with a constant... are we talking the same thing?

Sorry, you lost me here.

For example, this is from yosys -p 'prep -top picorv32; pmux2shiftx' picorv32.v:
Inspecting $pmux cell picorv32/$procmux$1485.
  data width: 32 (next power-of-2 = 32, log2 = 5)
  checking ctrl signal \cpu_state
    table of choices:
      0: 8'00000001: $procmux$1477_Y
      1: 8'00000100: \reg_op1
      2: 8'00001000: $add$../picorv32/picorv32.v:1785$605_Y
      3: 8'00100000: $procmux$1505_Y
    optimizing one-hot encoding.
      0: new crtl signal is \cpu_state [0].
      1: new crtl signal is \cpu_state [2].
      2: new crtl signal is \cpu_state [3].
      3: new crtl signal is \cpu_state [5].

There are 4 $eq cells here, each comparing cpu_state with a one-hot constant. However, we can see that cpu_state can only have a one hot value, therefore it is okay to replace cpu_state == 8'b00000001 with cpu_state[0] and so forth.
Running yosys -p 'prep -top picorv32; onehot' picorv32.v:
3. Executing ONEHOT pass.
Replacing one-hot $eq(\cpu_state, 8'01000000) cell picorv32/$eq$../picorv32/picorv32.v:1292$469 with signal \cpu_state [6].
Replacing one-hot $eq(\mem_wordsize, 2'01) cell picorv32/$eq$../picorv32/picorv32.v:1902$654 with signal \mem_wordsize [0].
Replacing one-hot $eq(\cpu_state, 8'00001000) cell picorv32/$procmux$1007_CMP0 with signal \cpu_state [3].
Replacing one-hot $eq(\cpu_state, 8'00000010) cell picorv32/$procmux$1020_CMP0 with signal \cpu_state [1].
Replacing one-hot $eq(\cpu_state, 8'00000001) cell picorv32/$procmux$1086_CMP0 with signal \cpu_state [0].
Replacing one-hot $eq(\cpu_state, 8'00000100) cell picorv32/$procmux$1256_CMP0 with signal \cpu_state [2].
Replacing one-hot $eq(\cpu_state, 8'00010000) cell picorv32/$procmux$1258_CMP0 with signal \cpu_state [4].
Replacing one-hot $eq(\cpu_state, 8'00100000) cell picorv32/$procmux$1259_CMP0 with signal \cpu_state [5].
Replacing one-hot $eq(\cpu_state, 8'10000000) cell picorv32/$procmux$1261_CMP0 with signal \cpu_state [7].
Replacing one-hot $eq(\mem_wordsize, 2'10) cell picorv32/$procmux$3566_CMP0 with signal \mem_wordsize [1].

Re mem_wordsize: This signal is not really a onehot signal, but it can only be 00, 01, or 10, so it's safe to replace mem_wordsize == 2'b01 with mem_wordsize[0] and mem_wordsize == 2'b10 with mem_wordsize[1].

Ah, I gots ya -- the input vector is one hot, thus you can blow away the $eq. Carry on!

The following design describes some unpacked indexing (3:1 multipliexer) that gets implemented using a $pmux and 3 select lines when ./yosys -p "proc;" pmux2.v.
module top(input [2:0] i, input [1:0] s, output o);
wire j [2:0];
assign j[2] = i[2], j[1] = i[1], j[0] = i[0];
assign o = j[s];
endmodule

However, upon running ./yosys -p "proc; opt_expr -full" pmux.v we can see that it optimises the $pmux to reduce the number of select lines to 2, by overwriting the default input A (which was previously 1'bx to one of the case entries.
In this particular scenario, we can see that pmux2shiftx only recognises this being a 2 choice pmux, despite it being an optimised 3 choice pmux.
Even after doing:
./yosys -p "proc; opt_expr -full; pmux2shiftx -min_choices 2 -v; opt -full" pmux.v
we see that we don't get an optimal circuit (with just one $shiftx).
However, removing when removing the first opt_expr -full:
./yosys -p "proc; pmux2shiftx -min_choices 2 -v; opt -full" pmux.v
we do get just one $shiftx behind.
Can you think of a scenario where it would not be desirable to change the analysis so it takes advantage of the $pmux's A input?

However, upon running ./yosys -p "proc; opt_expr -full" pmux.v we can see that

The intended use-case of opt_expr -full is that you'd run it at the end of word-level synthesis before you go into techmap. If you run opt_expr -full first, then pmux2shiftx, then you are running those commands in the wrong order.


[Feature Request] Streaming/Casting

Why/User Benefit/User Problem
If a streaming or casting feature was implemented for the anime sections, it would allow users to view and watch the shows with their friends and family, especially for those without android. This would make the app more accessible and more known as the apple community could benefit too.
What/Requirements
Not entirely sure on the requirements, nor the best method to have it happen. I know with Chromecast, the app has to be registered with google, but if there was a way to bypass that or have another method to stream it, that would be awesome. Regarding how it would view, obviously that would be based on the one developing it, but I feel like the easiest might be how youtube streams, meaning once you pull up the video, you have an option to connect to said TV and can control it all from the phone without a need for remote control features.

Recently I found you can open anime into different apps like your gallery or Google photos. I open it into VLC player and from there you can cast to your TV which is pretty neat workaround for what you're looking for.

I can't cast from VLC. The cast button doesn't show up. Maybe because it only works on Chromecast devices.
An alternative that worked for me is Web Video Caster which can also be integrated into an Android app like Cloudstream. The downside is that it requires a proprietary app to be installed.
It does work with major receivers such as DLNA, Chromecast, Apple TV etc.
Saikou(another anime streaming app) already has it integrated and can be enabled from the settings.
Ideally, I think it has to be FOSS like dlna-cast but this can work for now.

This is something that would be incredibly beneficial to have within Aniyomi. VLC on mobile is a little shameful in just how bad it is.
I much prefer the Aniyomi player, minus this one missing feature 😢

Is there a plan to add this feature, I know that CloudStream have casting within their own media player, so there's a precedent for open sources app doing it, but guessing it's harder than it looks
PD: just asking because I love this app too much, and this one feature is game changing in my opinion

I would also love for this to be a feature

This would be such a great feature indeed!

2/3 of the extensions I'm using arent able to use vlc as external player to cast the video, and the issues in the extension repo doesn't seem to move pretty much

Any updates on this?
I saw that a fork already has it https://github.com/Dark25/Animetail2

That would be interesting to port back into this if someone has already made the feat

I create an issue/question on the fork to port it back to Aniyomi itself

Maybe instead of implementing casting functionality - we could implement DLNA/UPnPinstead?
I guess this will offer a way wider area of use than casting and eases the consumption.
I already use Bubble UPnPas a middleman by creating playlists - but this is quite cumbersome as I cannot share it play progress back

Maybe instead of implementing casting functionality - we could implement DLNA/UPnP instead? I guess this will offer a way wider area of use than casting and eases the consumption.
I already use Bubble UPnPas a middleman by creating playlists - but this is quite cumbersome as I cannot share it play progress back
There are already implementations out there: https://github.com/tobexyz/yaacc-code and https://github.com/jupnp/jupnp (follow up of cling which is used by the former) Maybe we can ask permission to re-use it?
I am even willing to take this up, if people are interested - just know it may take some time due to busy work schedule

I'll be interested in helping you if you do plan on doing this. Let me know what you end up deciding.

Open issue, 18 upvotes, 0 fix


white QR code

barcode scanner can not read white barcods

@memet569 this is not enough information to debug, please fill out the whole template when filing an issue.


Unprefix writing-mode for certain browsers

The following browsers support the writing-mode unprefixed:

Status in Chromium
Enabled by default (launch bug) in:
Chrome for desktop release 48
Chrome for Android release 48
Android WebView release 48
Opera release 35
Opera for Android release 35

See: https://www.chromestatus.com/feature/5707470202732544

Confirmed, thanks!


not craftable

I am on 1.16.5 and the tunnels are not craftable but also I cant get the recipe to show in jei

Tunnels don't work in 1.16.5, that's why. The mod author is about to release them for 1.18

ah ok, but what about the recipe problem can you help me with this?

they don't have a recipe because you're not supposed to get them in survival mode because they don't work, duh

maybe I could of been a little more clear, I cant get any recipe for compact crafting

which recipe for which item you're expecting?

compact crafting is just not working, it has no recipes in jei but I also tried a recipe I know is a recipe and it didn't craft it.

I also tried a recipe I know is a recipe and it didn't craft it.
Can you please be more specific about that? Not just "I tried a recipe" but which one you tried. It's hard to help without knowing exactly what are you trying to do

Closing this for lack of clarification and it going stale. Please reach out on Discord or reopen if you need more assistance, thanks!


[bot runtime migration] UX should show bot runtime type

create a bot against legacy bot template
open in bot runtime migration branch
start to convert old bot will hit following

Runtime type should not be empty

Should be the same as creating a bot from scratch, right? Default set to "Azure Web Bot" and dropdown menu has Azure Web App and Azure Functions?

(@benbrown ?)

Also need to add a required field *

@pavolum  during migration, we should ALSO show the JS/Dotnet option as a dropdown here.

Shiproom - will be included with the other migration work/PR

Doing a PR into the migrate branch now, will add js/charp dropdown

This was merged into the main migrate branch from #7460.


[joy-ui][docs] Add FileUpload demo

This PR adds a new demo which showcases how to turn Button component to input component with type as file.
preview: https://deploy-preview-38420--material-ui.netlify.app/joy-ui/react-button/#file-upload

[x] I have followed (at least) the PR section of the contributing guide.

What do you think?

I agree, it makes more sense to place Link and file upload demos under customization


Instances for Coe Nat Interval or Coe Rat Interval?

I have a bunch of equations in terms of Real. I "copy paste" the equation code, change the type to Interval and want to prove mem_approx for each definition. Doing this, I find myself having to put .ofRat, .ofNat, etc. in front of a lot of variables (my inputs are either Rat or Nat for both the Real and Interval equations).
Is there any reason why you didn't define instances for Coe Nat Interval or Coe Rat Interval (and also e.g. Coe UInt64 Interval)?
I would also define them myself but was wondering if there was a particular reason you chose not to define these?
For example, I'm doing this, which works:
import Interval
open Interval

structure MRes where
  n : ℕ
  m : ℕ

structure Params where
  ε : ℚ := 1e-19
  a : ℚ := 6

variable (mr : MRes) (par : Params)

noncomputable def Real.f : ℝ := exp par.ε / par.a * (mr.n + mr.m)
def Interval.f : Interval := exp (.ofRat par.ε) / (.ofRat par.a) * (.ofNat mr.n + .ofNat mr.m)

@[approx] lemma mem_approx_f : Real.f mr par ∈ approx (Interval.f mr par) := by
  simp only [Real.f, Interval.f]; approx

I'm considering doing this, which also works in this small example, but might cause issues down the line?
import Interval
open Interval

instance instCoeRatInterval : Coe ℚ Interval where
  coe q := Interval.ofRat q
instance instCoeNatInterval : Coe ℕ Interval where
  coe q := Interval.ofNat q

structure MRes where
  n : ℕ
  m : ℕ

structure Params where
  ε : ℚ := 1e-19
  a : ℚ := 6

variable (mr : MRes) (par : Params)

noncomputable def Real.f : ℝ := exp par.ε / par.a * (mr.n + mr.m)
def Interval.f : Interval    := exp par.ε / par.a * (mr.n + mr.m)

@[approx] lemma mem_approx_f : Real.f mr par ∈ approx (Interval.f mr par) := by
  simp only [Real.f, Interval.f]; approx

The main potential issue here is that if you a / b with a b : Nat then you probably want coe (a / b) rather than coe a / coe b, and this would be harder to notice. But it's not a very serious problem, so I think on net I'm in favor of adding them.
Want to send a PR to Interval/Conversion.lean?

I'm afraid I actually don't really understand how/when these coercions are really applied...
Writing (5 / 4 : Interval), I would  expect/want to get out 0.2 and not zero. I.e., I would generally define all conversions such that, for any s : Syntax,
``(def xI : Interval := $s)`
and
``(def xR : Real := $s)`
are in an approx relationship.
I guess there isn't a Prop definition for this "relationship" yet? It would be something like
def approxFun {A R : Type} [Approx A R] (fA : A → A) (fR : R → R) : Prop :=
  ∀ (r : R) (a : A), r ∈ approx a → fR r ∈ approx (fA a)

But I'm not sure if one can do something to generalize this to arbitrary number of inputs.

I'm also not quite sure how these coercions are supposed to be set up... Perhaps Coe is not the right thing here. For example,
import Mathlib

#synth NatCast ℝ  -- exists
#synth Coe ℕ ℝ   -- failed to synthesize
#synth OfNat ℝ    -- failed to synthesize

#synth RatCast ℝ  - exists
#synth Coe ℚ ℝ  -- failed to synthesize
-- #synth OfRat ℝ  -- unknown identifier 'OfRat'

With coercions defined as in my PR, that's not what happens. It just seemed to me that getting zero there is what you would want?
Right now what happens is
#eval (2/5 : Interval)
--  [0.40000000000000002220446049250313080847263336181640625, 0.40000000000000002220446049250313080847263336181640625]

Which is also not great because the "true" value is outside the interval...

The outside the interval thing is just broken printing: the underlying actual values will be fine.

What's the easiest way to get "correct" printing manually for some concrete Interval? I.e., get explicit strings (might be scientific notation, fraction of integers, floating point, etc.) that represent actual lower and upper bounds?

Figure out what exponent you want, do some rational arithmetic to get the OfScientific instance, probably round it a bit to not have way too many digits (but in the right way), then print.

You can get the exponent via appropriate use of Nat.log2.

I can do the printing if you’d like (would be today or tomorrow).


kubectl-node-shell: enable for all unix platforms

kubectl-node-shell is just a shell script, so there's no reason to restrict it for just linux

I'm a little new to nix, so haven't tested this change directly, but I can verify that the shell script works on mac when copied manually

Result of nixpkgs-review pr 344450 run on aarch64-darwin 1

1 package built:

kubectl-node-shell


Renamed likelihood_percentage -> likelihood_score

Renamed the "likelihood_percentage" variable (and the "likelihood_percentage" column in the "twitter_twitterlinkpossibility" table in the database) to "likelihood_score" for consistency.

👍


Who assigns and How is the supplierID assigned?

As a follow up to #1 :
SupplierID assignment: The supplierID can be assigned by a central authority or registry responsible for maintaining a unique identifier for each supplier in the industry. Alternatively, it can be generated using a specific algorithm or process that ensures uniqueness and avoids conflicts. However, this is something that we will need to discuss in the industry, once we take the next steps and work with other industry peers soon.
Creating this issue to track this.

As a CSAF issuing party, you could use the value /document/publisher/namespace.


Fix Elasticsearch scenario failing to consistently install + start elasticsearch

Description
This PR addresses two intermittent failures the Elasticsearch scenario was exhibiting:

OpenJDK would sometimes fail to install
Elasticsearch would sometimes fail to start leading to chef-server errors due to connection failures

Check List

[ ] New functionality includes tests
[ ] All buildkite tests pass
[ ] Full omnibus build and tests in buildkite pass
[x] All commits have been signed-off for the Developer Certificate of Origin. See https://github.com/chef/chef/blob/master/CONTRIBUTING.md#developer-certification-of-origin-dco
[ ] PR title is a worthy inclusion in the CHANGELOG

Note that the elasticsearch scenario currently still fails during the chef-server configuration with the following error:
  Recipe: private-chef::nginx
    * component_runit_service[nginx] action restart
    Recipe: <Dynamically Defined Resource>
      * service[nginx] action nothing (skipped due to action :nothing)
      * runit_service[nginx] action restart

        ================================================================================
        Error executing action `restart` on resource 'runit_service[nginx]'
        ================================================================================

        Mixlib::ShellOut::ShellCommandFailed
        ------------------------------------
        Expected process to exit with [0], but received '1'
        ---- Begin output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/nginx ----
        STDOUT: fail: /opt/opscode/service/nginx: unable to change to service directory: file does not exist
        STDERR:
        ---- End output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/nginx ----
        Ran /opt/opscode/embedded/bin/sv restart /opt/opscode/service/nginx returned 1

        Cookbook Trace:
        ---------------
        /var/opt/opscode/local-mode-cache/cookbooks/runit/libraries/helpers.rb:136:in `tap'
        /var/opt/opscode/local-mode-cache/cookbooks/runit/libraries/helpers.rb:136:in `safe_sv_shellout!'
        /var/opt/opscode/local-mode-cache/cookbooks/runit/libraries/helpers.rb:164:in `restart_service'
        /var/opt/opscode/local-mode-cache/cookbooks/runit/libraries/provider_runit_service.rb:327:in `block in <class:RunitService>'

        Resource Declaration:
        ---------------------
        # In /var/opt/opscode/local-mode-cache/cookbooks/enterprise/resources/component_runit_service.rb

         83:     runit_service new_resource.component do
         84:       action action_name
         85:     end
         86:   end

        Compiled Resource:
        ------------------
        # Declared in /var/opt/opscode/local-mode-cache/cookbooks/enterprise/resources/component_runit_service.rb:83:in `block (2 levels) in class_from_file'

        runit_service("nginx") do
          action [:restart]
          default_guard_interpreter :default
          declared_type :runit_service
          cookbook_name "private-chef"
          service_name "nginx"
          options {}
          run_template_name "nginx"
          log_dir "/var/log/nginx"
          log_template_name "nginx"
          check_script_template_name "nginx"
          finish_script_template_name "nginx"
          control_template_names {}
          status_command "/opt/opscode/embedded/bin/sv status /opt/opscode/service"
        end

        System Info:
        ------------
        chef_version=15.5.17
        platform=redhat
        platform_version=6.10
        ruby=ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
        program_name=/opt/opscode/embedded/bin/chef-client
        executable=/opt/opscode/embedded/bin/chef-client

      ================================================================================
      Error executing action `restart` on resource 'component_runit_service[nginx]'
      ================================================================================

      Mixlib::ShellOut::ShellCommandFailed
      ------------------------------------
      runit_service[nginx] (/var/opt/opscode/local-mode-cache/cookbooks/enterprise/resources/component_runit_service.rb line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
      ---- Begin output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/nginx ----
      STDOUT: fail: /opt/opscode/service/nginx: unable to change to service directory: file does not exist
      STDERR:
      ---- End output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/nginx ----
      Ran /opt/opscode/embedded/bin/sv restart /opt/opscode/service/nginx returned 1

      Cookbook Trace:
      ---------------
      /var/opt/opscode/local-mode-cache/cookbooks/runit/libraries/helpers.rb:136:in `tap'
      /var/opt/opscode/local-mode-cache/cookbooks/runit/libraries/helpers.rb:136:in `safe_sv_shellout!'
      /var/opt/opscode/local-mode-cache/cookbooks/runit/libraries/helpers.rb:164:in `restart_service'
      /var/opt/opscode/local-mode-cache/cookbooks/runit/libraries/provider_runit_service.rb:327:in `block in <class:RunitService>'

      Resource Declaration:
      ---------------------
      # In /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/nginx.rb

      246: component_runit_service 'nginx'
      247:

      Compiled Resource:
      ------------------
      # Declared in /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/nginx.rb:246:in `from_file'

      component_runit_service("nginx") do
        action [:enable]
        default_guard_interpreter :default
        declared_type :component_runit_service
        cookbook_name "private-chef"
        recipe_name "nginx"
        component "nginx"
      end

      System Info:
      ------------
      chef_version=15.5.17
      platform=redhat
      platform_version=6.10
      ruby=ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
      program_name=/opt/opscode/embedded/bin/chef-client
      executable=/opt/opscode/embedded/bin/chef-client

  Recipe: private-chef::opscode-expander
    * component_runit_service[opscode-expander] action restart
    Recipe: <Dynamically Defined Resource>
      * service[opscode-expander] action nothing (skipped due to action :nothing)
      * runit_service[opscode-expander] action restart
 (up to date)
       (up to date)
  Recipe: private-chef::bookshelf
    * component_runit_service[bookshelf] action restart
    Recipe: <Dynamically Defined Resource>
      * service[bookshelf] action nothing (skipped due to action :nothing)
      * runit_service[bookshelf] action restart
 (up to date)
       (up to date)

  Running handlers:
  Running handlers complete
  Chef Infra Client failed. 209 resources updated in 01 minutes 29 seconds
FATAL: Stacktrace dumped to /var/opt/opscode/local-mode-cache/chef-stacktrace.out


Change instructions for forcing 1.7* JVM on OS X

Modifying the Info.plist file will invalidate the application signature, which makes updating a pain. The proper method for forcing IntelliJ to run under a higher JDK is to copy the idea.properties to your user preferences instead (see here for more info).

I should note that this fixes #35. I didn't even notice that issue before I made this PR.


Adding a custom domain ends up with an infinite 301 redirection loop

Hi,
I've succesfully added a custom domain to my Blazor static web app in Azure, so instead of https://gentle-flower-0fa0bcd03.azurestaticapps.net we can use the friendly: https://regenerate.saboraemocion.com, but while the original site works fine, the second creates an infite 301 loop redirection.
This is the content of my routes.json file:
{   "routes": [     {       "route": "/*",       "serve": "/index.html",       "statusCode": 200     }   ] }
and I haven't added any routing specific code. This is a Blazor app created from the original starter kit in Github.
Any ideas why this behaviour is happening?
Many thanks in advance.
Sergi

Hi @sgisbert,
Both sites seem to work for me, were you able to figure out what was causing the 301 loop?

Hi @miwebst, literally working on it. The domain is going through Cloudflare, which is enforcing HTTPS on their side, when I disabled it (not going through CF DNS), it started working, but still cannot figure out what the issue was.
I have another test app, this time running a Hosted WebAssembly Blazor app on a Web App Service, and got the same issue, but this time, instead of disabling Cloudflare, I could disable the line
app.UseHttpsRedirection();
at the Startup.cs file, and the "HTTPS only" option in the custom domain section. But this file is not part of the WebAssembly Blazor app, so I guess it is the own Static App service the one who is enforcing the redirection?
My other test app is https://test.interbuilders.es (https://blazorsignalrapp-dev-as.azurewebsites.net)

Ah that makes sense! Static Web Apps enforces HTTPS by default, so if Cloudflare is reaching out to us via HTTP then we will redirect them to the same HTTPS endpoint. I suppose this could cause an infinite loop Cloudflare continually reaches out over http and we keep redirecting them to https?

That is probably it... Any workaround to keep using Cloudflare? I guess this would be quite a common use case, as we get all the CF benefits as well (CDN, free https, cache, etc..) on top of the Static Web App service.

Most people that configure CF in front of Static web Apps use full SSL so that CF reaches out via https. Is is possible to setup full ssl in your scenario? https://support.cloudflare.com/hc/en-us/articles/200170416-End-to-end-HTTPS-with-Cloudflare-Part-3-SSL-options

Cloudflare is currently having issues to login to the dashboard, so difficult to tell atm... I will keep an eye on it

Hi @miwebst,
I think that did the trick! I changed the SSL settings in CF, and it looks like it is working now, with CF enabled.
Thanks for your help. Much appreciated!
Kind Regards,
Sergi


Fixed broken link

The broken link "Complete basic operations using SharePoint REST endpoints" is fixed.
Category

[x] Content fix

Related issues:

fixes https://github.com/SharePoint/sp-dev-docs/issues/4936

What's in this Pull Request?
The broken link "Complete basic operations using SharePoint REST endpoints" is fixed.
Guidance
The broken link "Complete basic operations using SharePoint REST endpoints" is fixed.

thx @nanddeepn, appreciated.


GEODE-6152: Removed use of futures (optimized get) for proxy region.

Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[Y] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

[N] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[Y] Is your initial contribution a single, squashed commit?

[Y] Does gradlew build run cleanly?

[Y] Have you written or updated unit tests to verify your changes?

[NA] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:
Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to<EMAIL_ADDRESS>

Can we hold committing this until the benchmark optimization fix goes in so we can benchmark the result of this change?

I looked at the change set but couldn't follow the logic changes without spending more time.  It's looks like we're still using a Future, possibly created by a different thread right?  Could explain further?
Is this code used in CacheLoader situations as well?

Can we hold committing this until the benchmark optimization fix goes in so we can benchmark the result of this change?

@pivotal-jbarrett yes we can. let me know once the benchmark fix is checked in.

I looked at the change set but couldn't follow the logic changes without spending more time. It's looks like we're still using a Future, possibly created by a different thread right? Could explain further?
Is this code used in CacheLoader situations as well?

Separating the logical blocks is making the changes hard to read. The change avoids use of future for only proxy regions. For caching-proxy, it still uses the Futures. We had a discussion on this and agreed with this solution.
CacheLoader invocation after the findObject returns the result; its outside of this context.

Can we hold committing this until the benchmark optimization fix goes in so we can benchmark the result of this change?


Always get PHONE_NUMBER_FLOOD during code request

Hi
Every time I try to request for login code, I get PHONE_NUMBER_FLOOD exception... I tried 5 valid numbers in many different ways(98921239XXXX, +98921239XXXX, 98 921239XXXX and ...) and many invalid ones. Always get PHONE_NUMBER_FLOOD exception although this exception is out of context for some of my errors(Like invalid numbers).
Client object is fine and checked appId and appHash for like 100 times.
I'll be very grateful if you help me.:)

@MohammadMDSA Hi
Wait for the timeout and try again.

Switched to Telegram production configuration and the problem was solved.


2.4.0: default to qt5, implement USE=qt6?

https://github.com/web-eid/web-eid-app#internal-design at least at 2.4.0 time states "compatible with both Qt5 and Qt6".
 Maybe too early to default to Qt6? I know it's an extra lift, and I'm not sure how heavy. Your thoughts?

I don't think it is too early. The sooner we get rid of Qt5 the better. Adding support for both Qt5 and Qt6 is difficult and time consuming (especially testing it) and not worth the effort. Qt6 is stable enough and can be installed in parallel so the only win would probably be in slightly less disk usage and faster install times when one only has Qt5 installed.
I don't plan to implement this. Closing.