Needs nodes as dependency if jupyterlab support needed

Issue: When attempting to follow the conda installation instructions in the docs for ipywebrtc, specifically:
$ conda install -c conda-forge ipywebrtc
$ jupyter labextension install jupyter-webrtc       # for jupyter lab

installation of the jupyterlab extension fails with
ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.
Can be fixed by installing nodejs via conda install nodejs.  As such, it strikes me that a dependency for ipywebrtc installations via conda-forge should be nodejs.

Hi,
Interesting point of view, but I don't think it should be ipywebrtc that depends on nodejs.
ipywebrtc depends on ipywidgets, if this idea is valid, ipywidgets should depend on nodejs (cc @jasongrout), or some future jupyter lab specific package that includes the jupyter-widgets bundle.

To push it further down the stack, this really has nothing to do with ipywidgets. It is installing extensions into JupyterLab that requires nodejs. And there we made the explicit decision to say that the base jupyterlab package should not require nodejs (for example, there is no way to require it in pip), but if you wanted to install extensions, you'd need to install nodejs separately.
That decision is at the level of the jupyterlab conda package. And perhaps the JLab conda package should depend on nodejs for convenience? But in any case, that discussion is an issue for this repo: https://github.com/conda-forge/jupyterlab-feedstock

Probably can close this now :grin: ?

@JuanCab conda-forge/jupyterlab now install nodejs. Please close.

Probably can close this now 😁 ?

yes :)


Multiple Notification Handler Instantiated

Similar case happened as this issue #136 , just in my case it was notification handler.
I am using ASP.NET core 2.0 web API with default service registration.

What do your handler types look like? Do you have a repro?

Please refer to this gist
At startup.cs ConfigureServices method, i call services.AddMediatRServices()
I have put a breakpoint at line 12, and it always reaches the breakpoint at least twice every time a notification is published. I have also checked the hash code of each object every time it reaches the breakpoint, every time a new instance was created.

Just ran into this myself, added a new Notification handler for a command and it is executed twice on every publish.

New notification handler for a command? That doesn't make sense anyway, commands are requests, not notifications.
@rthm93 There's a few ways to debug this. First, check the service collection to see if the handlers are double registered.
Next, ask the service collection for all INotificationHandler<T> where T is your request type.

It may not make logical sense, but a Notification takes a parameter class with data and returns nothing eg  INotificationHandler
And a IRequestHandler takes a command and returns nothing.
So for this specific case it makes no practical difference.
It happens to be a SendEmail service so not even sure it should be a Command or a Notification :).

I think I've seen a similar issue with Autofac as the IoC framework, because if the co-variance settings.

We have resolved our double execution issues for INotificationHandler running wice, as you mentioned above Notifications having a run all model, we had a registration error in our container where an interface was added a second time.
Thanks for your comments @jbogard they pointed the way to our correct solution at least.
Hope this follow up might help someone else.

Can this issue be closed?

I can't as I didn't create it.

@rthm93 the next step I think might be to just pull down the code and debug locally. Add a reference to the project itself rather than NuGet.

@jbogard I just tried debugging the code. The issue is in MediatR.Extensions.Microsoft.DependencyInjection.
Same assembly was scanned multiple times causing the types to be registered multiple times in the service collection, hence when the service factory create multiple instances of the handling type.
I will close this issue and create a new issue in MediatR.Extensions.Microsoft.DependencyInjection project.


Selection the minimum version requirement for the next major release

If we are going to release a new version with the rapide release cycle of PHP we can safely bet on a minimum version being either PHP7.4 or PHP8.

A quick survey/poll on twitter releaved people tend to favor PHP7.4 over PHP8.0
https://twitter.com/nyamsprod/status/1286675666059091973
currently https://github.com/jeremykendall/php-domain-parser/tree/feature/v6 supports PHP7.4


fix: type issues

I wasn't sure about some type updates.
It seems like multiselect issue surfaced now in unit tests, somehow somewhere number is being sent instead of Uint8Array and it fails to get appended into Uint8ArrayList

This will be resolved by https://github.com/libp2p/js-libp2p/pull/1335 though it needs https://github.com/ChainSafe/js-libp2p-noise/pull/193 releasing first.


remove trailing comma from index.js module exports

this seems like a small thing but we're running our code through Google's closure compiler (deep inside the dojo build process), and it chokes on this extra comma.  removing it (and making a new release) would help us hugely!

Hello. Thanks for your patch!
I think this patch will be superseded when I merge #3 where the npm build will be entirely generated by Babel, so please wait for it. :smile:


Display workflow business state in UI

Is your feature request related to a problem? Please describe.

People want to know the state of their workflows (business state, beyond the Open/Cancelled/Completed workflow status). Current options require either:

knowledge of the workflow's code, and the ability to read Event History and build a mental model of where in the code the execution is
adding a query, running the query, and interpreting the results
building an app that does the queries and provides a custom UI (or using a framework that gives you a UI, like xstate, or writing updates in activities to a system that has an automatic UI, like a CMS)

Describe the solution you'd like

A solution that is simple for non-developers to understand and doesn't take much engineering. Number 3 above can be simple to understand, but requires a good amount of development.
MVP
An MVP of this might be a special query like __ui_state that returns an object that's displayed as a table of key-value pairs, like returning this:
{
  "Order state": "Shipped",
  "Item IDs": [123, 456],
  "Ordered at": "Fri Dec 23 2022 18:15:47 GMT-0500",
  "Shipped at": "Fri Dec 23 2022 18:15:47 GMT-0500"
}

displays this at the top of the History tab (if query is implemented and returns a valid JSON object):

Custom UI
A more involved solution would allow for more UI components than just a table of values. Either prebuilt components that the dev can select from, or components that they code and somehow get added to the page. And some way for the dev to specify how to get the data for each component (query name, poll frequency, return value field).

I would like to see something more generic like a plugin API for the UI where a plugin author can implement their own rendering and data fetching logic.


polygon was out of shape

Hi, When I zoom map,Zhe Polygon was been stretched.
Please,Help me.

@tangjuncheng1986 is this a dataset you can make available to me so I can recreate the issue?

@tangjuncheng1986 do you know how to build Go programs from source? I'm hoping you can try the v0.6.0 branch to see if this rendering issue is now resolved for you. We have addressed several rendering issues in v0.6.0 so your test would be helpful.

Thank you very much .I will try it.

@tangjuncheng1986 the v0.6.0 branch was released a few days back. If you use the latest release, it will be the same.


[Match] Fix change password argument error

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context

Resolves #18509
Description
The encrypt_files method accepts named parameters and was called without. This bug was introduced in https://github.com/fastlane/fastlane/pull/18389
Testing Steps

To test this branch, modify your Gemfile as:
gem "fastlane", :git => "https://github.com/fastlane/fastlane.git", :branch => "fix/change_password-fix-wrong-number-of-arguments-error"

@googlebot I signed it!


command type use shell script exec more command always block

my azkaban version: 3.43.0
I edit a command type job like this:
type=command command=sh test.sh
and the test.sh write :
#!/bin/bash env source ~/.bashrc head my_file head my_file | wc -l count1=$(more my_file | wc -l) echo ${count1}
when azkaban run this job, it always block in linux pipeline command,

Hey @gao634209276 - isn't this the designed behavior of the more command?
From the more man page:
More is a filter for paging through text one screenful at a time.
When Azkaban simply launches a subshell that executes whatever commands are specified. I imagine it's being blocked because there's no user to actually page through my_file.
Can't you accomplish a similar objective with cat instead?
count1=$(cat my_file | wc -l)
Because cat doesn't require user input (which subshells launched by Azkaban aren't able to receive) it prints everything to the screen immediately (or in this case, to the pipe which then counts all the lines).
Does that address your question?

oh yeah, My example is not very good. If the text exceeds one page, more command will be blocked.
I mean that command count1=$(more my_file | wc -l),when I run a subshell use command line or set  crontab, it work good, but in azkaban it does work.  Where are the differences between crontab and azkaban on that case?

on this case, that one problem, There is another problem with this:
shell script run count1=$(more my_file | wc -l) before,
the next command for example is curl url to do somthing.
Due to azkaban run count1=$(more my_file | wc -l) being blocked, I kill the Job.
but I fount the next few commands run when I kill the job.
How did that happen？

Where the test.sh should be placed?
I have a usecase where i  defiened a shell in a folder and azkaban job has to trigger it.
inputs needed..

@reallocf yeah, is not just a simple job, so I use azkaban resolve dependence, but I found this error when run count1=$(more my_file | wc -l), I mean: I want to know the difference at this case...
the case of killing a blocked job and still running remainning commands is difficult reappearance，
The content of the shell script is like this:
hdfs -dfs -getmerge /hdfs/path my_file
count1=$(more my_file | wc -l)
url='server_url'
echo "$url"
res=$(curl $url/key=$count1)
echo $res


[stdlib] Fixing several collection-related tests

What's in this pull request?
Several recently written tests could be run with test data expecting a crash. This change parameterizes these tests to ensure that the first crash does not terminate the entire test sequence. (It also fixes a test bug that was masked by the incorrect, prior behavior.)
Testing: all tests pass on OS X. Merge when ready.
@gribozavr @moiseev

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    All supported platforms     | @swift-ci Please smoke test and merge
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    All supported platforms     | @swift-ci Please test and merge
    OS X platform               | @swift-ci Please test OS X platform
    OS X platform               | @swift-ci Please benchmark
    Linux platform              | @swift-ci Please test Linux platform

Lint Testing
    Language     | Comment
    ------------ | -------------
    Python       | @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

Changes:

Parameterized a number of tests in CheckCollectionType.swift.gyb expected to crash during one or more runthroughs

@swift-ci Please test and merge


question for max value

do we use all records to calculate max value for BILI? I just wonder if there is pre screening record, and it is the max value, are we going to choose this one as Max? do we use on treatment flag to subset?

Very good question.

do we use all records to calculate max value for BILI?

The short answer is: Yes, we do!

if there is pre screening record, and it is the max value, are we going to choose this one as Max?

Again, yes (though this is clearly not ideal)

do we use on treatment flag to subset?

Not, by default. Although it is certainly possible to add it as an interactive filter (just like race or sex on the example page), and then allow the user to interactively filter.
I think there are basically 2 paths forward here:

Update the data spec to clarify that the data should be filtered to remove all pre-baseline measures before loading the data in to the visualization tool.
Add support for some kind of data driven "on treatment" subsetting that removes the pre-treatment (or post-study follow-up) records from the eDish calculations.

I'd lean towards option (1) for the v1.0 release, but definitely think that option (2) is reasonable for a future update. What do you think?

In fact, I've gone ahead and added a note in the data guidelines wiki to clarify the behaviour in the current build. We can update if/when we change the behavior of the tool.

I think ideally when we calculate the MAX value, we only use after treatment by default (can use analysis flag if use ADaM dataset or use epoch flag if use SDTM dataset), but when we draw individual line, we should display all points including pre-screening and post-treatment points. what do you think?

Makes sense to me. Let's discuss details and timeline on our next call.

The more I think about this, the more I think it's worth doing before v1.0. Adding it to a v0.14 release.


Ability to disable for certain URLs

There are other uses for paste events besides blocking paste, this extension should allow for a whitelist of URLs in which it does not highjack paste events.

:+1: for this suggestion, as the extension currently breaks Imgur and Github image pasting as well.

:+1: for the same reason ash @JoshSchreuder.

:+1: @JoshSchreuder is right, and it's annoying. I've currently disabled it until that's fixed.
Perhaps there's a work around? i.e. if no form is in focus, allow the page to catch the paste event, but if a form is in focus, don't let it? That would at least allow imgur. I didn't really look at how it actually works so I don't know if that's possible or not.
Alternatively, a whitelist is fine as well.

Like @kalbasit, I'd prefer a blacklist approach rather than whitelist. (That is, if possible I'd like to click a browser action to disable paste-fuckery.) It's only occasionally that I run into some website that disables password pasting, and I'd rather not have the extension loaded on all websites the rest of the time.

@jswanner any progress here? I just found this plugin.  Which is exactly what I'm looking for. What is the easiest, most minimal thing we can do to get something to work?
I'm actually of the opposite opinion of @cespare.  Your plugin basically does nothing and I have no problem running it on every page.  There will be few pages on which this solution causes a problem and I'd prefer not to have to think about it any other time.

@JoshSchreuder, @mjball, @Ancyker: I've pushed a new version of the extension that disables it on facebook.com, github.com, and imgur.com domains.
I would much rather have user-configurable settings, but this is a band-aid to the problem. I'm still waiting for the new version to be published by the Chrome Web Store.

@jswanner thank you. This is a decent bandaid. I've never built a plugin before.

@jswanner appreciate it! Unfortunately this problem is still a deal-breaker because I use GitHub Enterprise on a separate domain at work :crying_cat_face:

@mjball that's why this is a band-aid. ;)

This feature has been added, I'm just waiting for the new version to be published by the Chrome Web Store.


Quick documentation for tags and metas

Summary
Code elements can have so-called quick documentation (via Ctrl+Q and similar shortcuts). Tags and metas inside the editor could have such documentation showing the tag category they are assigned to.

Not going to implement it for now.


Update IntelliJ template for new projects and existing samples

Hide folders from Project View users shouldn't worry about: Fixes https://github.com/flutter/flutter-intellij/issues/630

Move .iml into .idea as the user shouldn't worry about it: Fixes https://github.com/flutter/flutter-intellij/issues/632

Add workspace.xml to existing examples: Followup to previous PR https://github.com/flutter/flutter/pull/7464

I don't think we want to commit the workspace.xml file (examples/hello_services/.idea/workspace.xml) for projects other than the create template. I think that file contains settings that are more per-user specific - having it in source control would mean that you would pick up other users local settings changes, and there'd likely be a bunch of scm churn in that file. We do want files like .idea/modules, which more define the project. https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems has a bit more info.
Priming workspace.xml for the create template however makes sense.
lgtm for the other changes -

I don't think we want to commit the workspace.xml file

OK, that makes sense. Updated the PR to not add those.

Still can't land this as the Travis job is timing out (unrelated to this change, I believe):
Shell: Observatory listening on http://<IP_ADDRESS>:25446/
19:33 +814 ~2 -1: loading /home/travis/build/flutter/flutter/packages/flutter/test/widgets/unique_widget_test.dart
  TimeoutException after 0:05:00.000000: Test timed out after 5 minutes, 5 seconds.
  dart:isolate  _RawReceivePortImpl._handleMessage

I don't understand why Travis did a push test on a PR.

In any case the problem seems to be that this branch is old. You should rebase so Travis tests it against the latest test code, where I believe that race has been fixed.

In any case the problem seems to be that this branch is old.

Ah, of course, will do that right away, thanks!

Minor side note, it looks like what happened is that you checked these changes into a branch on the Flutter repo. The preferred approach is to check them into branches on your own fork of the repo. That way people don't end up pulling down your branch when they're fetching the main repo.

The preferred approach is to check them into branches on your own fork of the repo.

Got it, will do in the future!


Fix article year in the README

This tiny tiny PR fixes the publishing year for this article: https://dockyard.com/blog/2022/04/07/catching-fraud-with-elixir-and-axon
Thank you for all the work 🙇

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:


Create test cases

Previously tested classes
Link to the previous PR
Created test classes

CatalogueServiceTest
ManagementApiImplTest
SubscriptionServiceTest
StreamingSubscriptionTest
DataBrokerServiceImplTest
RabbitClientTest
databroker/SubscriptionServiceTest
CallbackServiceImplTest
PostgresServiceImplTest

Added test cases in

AsyncServiceTest
JwtAuthServiceTest

Changed classes

CatalogueService
ManagementApiImpl
SubscriptionService
StreamingSubscription
DataBrokerServiceImpl
RabbitClient
databroker/SubscriptionService
CallbackServiceImpl
AsyncServiceImpl, AsyncFileScrollProgressListener

Excluded files in pom.xml for Unit Testing :-

ManagementRestApi
AdminRestApi
AsyncRestApi
PostgresService

To Do :
Remove the Disabled annotation in

[x] https://github.com/datakaveri/iudx-resource-server/pull/252/commits/8b61e014981c802df7ecafc786dc905bf7ca431c :  https://github.com/datakaveri/iudx-resource-server/pull/252/commits/955dce4d5f0c8a9457d55baa4720668b88640806
[ ] https://github.com/datakaveri/iudx-resource-server/pull/252/commits/8403d9dacc79ac746bf7d9c97b1b75cccf43d0b0 : Reference 1, Reference 2

Can one of the admins verify this patch?

ok to test

retest this please

retest this please


[QUERY] Performance Degradation after Kafka Client and Spring Boot Upgrade

Query/Question
When upgrading the Spring Boot 2.1.6 and 2.1.18 (kafka-clients 2.0.1) to Spring Boot 2.2.13 (kafka-clients 2.3.1), there is a performance drop of consuming messages from the original 44.4K messages per minute to 600-1000 per minute.
In the test case, the application reads and writes messages from/to Event Hub via Kafka protocol by using Spring Boot / Spring for Kafka on the same cluster.  The program reads an entity -> simulates processing the message by using a 2ms sleep time and then sends it to -> anther entity.
The test is using recommended Kafka producer/consumer settings from https://docs.microsoft.com/en-us/azure/event-hubs/apache-kafka-configurations. They are auto loaded when the Spring Boot initializes (as seen from the Kafka Logs initial startup):
spring.kafka.bootstrap-servers=${app.eventhub.server}:9093
spring.kafka.consumer.auto-offset-reset=earliest
spring.kafka.consumer.group-id=protocol31
spring.kafka.consumer.value-deserializer=org.apache.kafka.common.serialization.ByteArrayDeserializer
spring.kafka.consumer.key-deserializer=org.apache.kafka.common.serialization.StringDeserializer
spring.kafka.consumer.max-poll-records=1
spring.kafka.consumer.properties.metadata.max.age.ms=180000
spring.kafka.consumer.properties.connections.max.idle.ms=180000
spring.kafka.consumer.properties.session.timeout.ms=30000
spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.ByteArraySerializer
spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
spring.kafka.producer.properties.metadata.max.age.ms=180000
spring.kafka.producer.properties.retries=3
spring.kafka.producer.properties.retry.backoff.ms=60
spring.kafka.producer.properties.connections.max.idle.ms=180000
spring.kafka.producer.properties.max.request.size=1000000
spring.kafka.producer.properties.request.timeout.ms=30000
spring.kafka.producer.properties.metadata.max.idle.ms=180000
spring.kafka.producer.properties.compression.type=none

From the log, a change of the auto-commit behavior has been found: the older version commits checkpoints once in 5 seconds while the newer one commits once per message.
Is there anything in the library which can cause behavior differences in checkpoint/offset commit?

The root cause is that the property enable.auto.commit is diabled. For the consumer property enable.auto.commit, to set it as false will make the commit occurs once per message which will decrease the consuming performance but improve the accuracy of message acknowledgement to avoid losing messages. On the contrary, when enabling this property, the Kafka consumer client will commit messages periodically according to the interval from property auto.commit.interval.


Ho w to implement wavesurfer on recordrtc?

i am doing voice record using recordrtc . here how to use wavesurfer?

Take a look at videojs-record: https://collab-project.github.io/videojs-record/demo/audio-only.html

Take a look at videojs-record: https://collab-project.github.io/videojs-record/demo/audio-only.html
It uses videojs-wavesurfer: https://collab-project.github.io/videojs-wavesurfer/demo/live.html

Safair browser is not supporting

You can use wave-surfer's microphone plugin, and then initialize RecordRTC with the stream from the plugin, like this:
function initRecording() {

        var wavesurfer = WaveSurfer.create({
            container: $divParent,
            plugins: [
                WaveSurfer.microphone.create()
            ]
        });

        wavesurfer.microphone.on('deviceReady', function (stream) {
            var recorder = RecordRTC(stream, {
                type: 'audio',
                timeSlice: 1000,
            });
        });

        wavesurfer.microphone.start();
}


Changed login shell to Elvish, gnome-terminal won't start.

I've taken the plunge and changed my login shell to elvish with chsh. However, upon reboot, I no longer can open a terminal window (ctrl-alt-t in Gnome, Ubuntu 17.04.). Briefly I see this error message: warning: cannot start daemon: cannot find elvish: not found
I've installed elvish by go get github.com/elves/elvish. It installed the elvish binary in /home/me/prj/go/bin/elivsh. I've added that path to /etc/shells and then changed my shell with chsh.
Running elvish works.
The SHA which is checked out is f84e406bb8740ac06b5bfd9839a809e5f6a8d713.
I'm missing some silly PATH stuff no doubt. But I'm scratching my head.

Hmm, this seems like a similar problem to #496, but Elvish should still be able to start itself instead of quitting abnormally. Are there more outputs, potentially a panic message? If GNOME terminal has an option for not closing the terminal window when the command quits, can you try turning that on and see if there are more outputs?

Unfortunately I can not find such an option and the logs don't help either.
I've read the linked issue and this must be the same. When I'm able I'll dig further. I'm now monitoring #496 too.

@haarts Indeed this is related to #496. The workaround for now is to specify the -bin option when you run Elvish, like this (in your case): /home/me/prj/go/bin/elvish -bin /home/me/prj/go/bin/elvish.
My other recommendation would be to avoid changing your login shell. What I do is instead I configure my terminal (I use Terminal.app on macOS, but I would hope gnome-terminal has something similar) to run Elvish upon starting a new shell. That way, if elvish fails for some reason, your terminal will still open but with bash.
Another benefit of leaving your login shell untouched is that it prevents breakage from programs which assume your login shell is a POSIX-compliant one and execute external commands using POSIX syntax. I first encountered this with some Emacs package when I was using fish.
Of course this only works if you mainly use the shell from your terminal program, and not through ssh or some other mechanism.

That's some solid advice @zzamboni. Thanks a lot. My gnome-terminal does indeed have such a function.
I'm closing this issue.


NoSuchMethodError:  ... addOnCompleteCallback

I just follow the elasticsearch hadoop ducument tips  as the following
object test{
  def main(args: Array[String]): Unit = {
    val conf = new SparkConf()
      .set("es.nodes", "<IP_ADDRESS>")
      .set("es.port", "9100")
      .setAppName("es_test")
      .set("es.index.auto.create", "true")

    val sc = new SparkContext(conf)

    val numbers = Map("one" -> 1, "two" -> 2, "three" -> 3)
    val airports = Map("arrival" -> "Otopeni", "SFO" -> "San Fran")

    sc.makeRDD(Seq(numbers, airports)).saveToEs("test/test")
  }
}

But it failed to add data to es and throw the following:
Exception in thread "main" org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 0.0 failed 4 times, most recent failure: Lost task 0.3 in stage 0.0 (TID 5, <IP_ADDRESS>): java.lang.NoSuchMethodError: org.apache.spark.TaskContext.addOnCompleteCallback(Lscala/Function0;)V
	at org.elasticsearch.spark.rdd.EsRDDWriter.write(EsRDDWriter.scala:42)
	at org.elasticsearch.spark.rdd.EsSpark$$anonfun$doSaveToEs$1.apply(EsSpark.scala:84)
	at org.elasticsearch.spark.rdd.EsSpark$$anonfun$doSaveToEs$1.apply(EsSpark.scala:84)
	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:70)
	at org.apache.spark.scheduler.Task.run(Task.scala:86)
	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:274)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.NoSuchMethodError: org.apache.spark.TaskContext.addOnCompleteCallback(Lscala/Function0;)V
	at org.elasticsearch.spark.rdd.EsRDDWriter.write(EsRDDWriter.scala:42)
	at org.elasticsearch.spark.rdd.EsSpark$$anonfun$doSaveToEs$1.apply(EsSpark.scala:84)
	at org.elasticsearch.spark.rdd.EsSpark$$anonfun$doSaveToEs$1.apply(EsSpark.scala:84)
	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:70)
	at org.apache.spark.scheduler.Task.run(Task.scala:86)
	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:274)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

spark version is 2.0.1 and es version is 2.3.2 with  elastic-hadoop-2.3.2
I found the test/test is setup  by spark but no data is added.

The addOnCompleteCallback method was removed from the TaskContext in Spark 2.0. Spark 2.0 is not binary compatible with previous releases. Because of this we only support Spark 2.0 in es-hadoop version 5.0 and later. Please upgrade to fix the issue.

I tried to use elasticsearch-spark-20_2.11-5.1.1.jar but failed.
may be still not support spark2.0.2 with es2.3.2 ?

I have the same problem, my project is a maven project with the dependencies:

org.apache.spark
spark-core_2.11
2.1.0
provided

org.elasticsearch
elasticsearch-spark_2.11
2.4.4

And im using elastic 2.3.3....
So, i'm using spark 2.0 [more]... ¿Do i need import the dependency os es-hadoop?

@RowsPriego
just update elasticsearch-hadoop 5.1 or higher version.
I fixed this.

Thanks!
I've replace
<dependency>
      <groupId>org.elasticsearch</groupId>
        <artifactId>elasticsearch-spark_2.11</artifactId>
        <version>2.4.4</version>
 </dependency>

with
 <dependency>
          <groupId>org.elasticsearch</groupId>
          <artifactId>elasticsearch-hadoop</artifactId>
          <version>5.1.2</version>
     </dependency>


soroban-docs: Update simulateTransaction Docs With New resourceConfig Parameter

This PR adds documentation for the new simulateTransaction parameter added in this PR.

Preview is available here:http://soroban-docs-pr683.previews.kube001.services.stellar-ops.com/

@Shaptic That is correct!! Just updating the openrpc.json file is enough for all the changes to show up where necessary.
Currently, the "source" files that I use to generate the complete specfile live in my own dinky repo, but will soon(-ish) live alongside this repo here for convenience.
@stellarsaur If it's alright with you, I'd love to add some examples and stuff to go along with this before we merge?

@stellarsaur Is instructionLeeway actually a string type in the JSON request? It looks (to my, uneducated eye) like it would be a number since its JSON "tag" (probably not the right word) in the source doesn't convert to a string? https://github.com/stellar/soroban-tools/blob/9ea424dc1046c9b2a76044d428a18a227b29e737/cmd/soroban-rpc/internal/preflight/preflight.go#L79

Oof, nice catch @ElliotFriend - it is in fact a number

And, did this make it into v20.0.2? Or, will it be in a future release?

@ElliotFriend this will be released as part of 20.1.0, I think! And the default value is something like 3 million?
(@stellarsaur to confirm on both)

Preview is available here:http://soroban-docs-pr683.previews.kube001.services.stellar-ops.com/


[BUG] Prisma Decimal gets converted into kysely String

When converting Decimal type of prisma, it converted into string instead of number.
Sample Schema:
generator kysely {
  provider     = "prisma-kysely"
  output       = "../src/kyselydb"
  fileName     = "kysely-types.ts"
  enumFileName = "kysely-enums.ts"
}

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "cockroachdb"
  url      = env("DEMODEV_DATABASE_URL")
}
model TestModel {
    id                   String             @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
   credit_rate      Decimal
}

the generated kysely types:
export type TestModel = {
	id: Generated<string>;
	credit_rate: string;
}

@valtyr No, the mapping on this file is wrong for postgresql and mysql -> https://github.com/valtyr/prisma-kysely/blob/main/src/helpers/generateFieldType.ts

I can confirm the behavior:
prisma:
  expires         BigInt?
results in kysely:
	expires: string | null

The node pg driver will in fact return a string for decimal and bigint types for technical reason (MAX_SAFE_INTEGER):
https://github.com/brianc/node-postgres/issues/811#issuecomment-116644535
You can setup pg driver to typecast numeric value:
import { types } from "pg";

types.setTypeParser(types.builtins.NUMERIC, (value) => Number(value));

And override types in your schema generator config:
generator kysely {
  provider            = "prisma-kysely"
  output              = "../src/kyselydb"
  fileName            = "kysely-types.ts"
  enumFileName        = "kysely-enums.ts"
  decimalTypeOverride = "number"
  bigIntTypeOverride  = "number"
}

I understand the MAX_SAFE_INTEGER problem in JS - but right here I don't think that is the problem.
I assume if you'd have a BigInt or similar in the database and you wouldn't use string in the kysely-types definition.
And this is what this is about, translation of a prisma schema to kysely types.

@delight There's a file called src/dialectTests/postgresql.ts that runs a very simple test. It creates the database with all the types supported by prisma-kysely, queries all the fields, and prints out the typeof for all the fields. I used this to verify the types for each dialect when I wrote the initial versions of prisma-kysely. It confirms that the driver indeed returns a string type when querying a BigInt. Remember that prisma-kysely only operates in type land and has to be opinionated by default to support the types returned by the standard kysely driver for each dialect. If you want the string to be parsed into a BigInt object after a query, or if it turns out that you're using some non-standard driver or have configured it differently then I refer to @cahnory's solution above. If we were to change the type we would break prisma-kysely for everyone else. If you are interested in running the test for yourself, you can run docker compose up -d postgres in the root directory to boot a database and run yarn run build && node dist/dialectTests/postgresql.js to run the tests.

Oh and here are the results for mysql:

Closing this as per my comments above.


Interface a little bit laggy

Hi,
do you have any performance tips for the interface? I made two mirrors (1x Raspi 2 Model B, 1x Raspberry 3, both with raspbian and the configuration on Michael's Website). Since the new Jessie Version the interface is very laggy, especially with the fade fx (rss, calendar, wheather, compliments). I have the newest updates. On Pi 3 it's a little bit better than on Pi 2.
My GPU Memory is 128MB. Do you guys have the same problems? What is your configuration? Any tips? Another browser, ... .?
Thank you, regards,
Maurice

Hi Maurice,
I'm currently working on a new version. This one issuing CSS transitions. No ETA yet.

Hi Michael,
thank you for answering. Nice to know! Are there any things I could do right now? More GPU Memory?
Regards

I use 256mb GPU mem without problems. Did you try to increase yours?

No, I don't,  I'll try it tonight. Thank you ;).

Sorry for the delay. I've tested the interface with 256MB GPU. It's a little bit better but not so smooth like with raspbian wheezy. So I think it isn't a hardware problem. Is it necessary to use jessie now and in near future? I don't know where exactly the problem is but since I've used jessie the whole website performs slower. I also installed the system a few times from scratch. Nothing better.
That's the reason why I asked this question ;).

You should ba able to run it on weezy. We are currently in the development of a new version. This should save your issue as well. Check out the v2 branch if you want more info. (Note: this version isn't ready for general use.)


Blazor doc node should not show up for 2.2

@scottaddie This seems to be caused by ...
- name: Samples
  href: https://github.com/aspnet/samples/tree/master/samples/aspnetcore/blazor

What's the solution? Given that the sample apps are well cross-linked in the Blazor topics, we could remove that "Samples" link to solve this. 🤞 Is that the right fix?

@guardrex  I think it's a good idea to remove the samples link even without this problem.

Scott added it on https://github.com/aspnet/AspNetCore.Docs/pull/14499.
... idk if he has a way around the problem or if he felt it was super important. He may have a ✨ DocTrick:tm: ✨ to fix it.


Fix example to init lazy layers after transferring to device

It is better for performance.

/test

Test passed.

LGTM.


put consistent styling to record 2

This issue is under review at PR #534.

Since the PR has been merged, I'm closing this issue.


VOPlayer/Sound taking time to play in Android devices

I am trying to play audio in title state. But it is taking sometime to play the audio in Android and kindle fire devices. Am not sure what is the reason. And there is no error in the console too. How can I  track this issue? Please suggest some work around.
And I am using custom transition for the application
In my application assets.js has alomst 6 to 7 mb size. ? even I tried by making lesser the size of assets.js. Not worked .
(function () {
    //Import classes
    var BaseState = include('springroll.easeljs.BaseState'),
		TitlePanel = include('test.TitlePanel'),
        Sound = include('springroll.Sound');

    /**
	 * The logic for the title state
	 * @class makebelieve.TitleState
	 * @extends springroll.easeljs.BaseState
	 */
    var TitleState = function (options) {
        BaseState.call(this, new TitlePanel(), options);

        this.onPlay = this.onPlay.bind(this);
    };

    // Extend the base class
    var p = extend(TitleState, BaseState);

    p.enter = function () {
            Sound.instance.preload(["game_title"]);
    };

    /**
	 * When the transition is done playing and we're fully in
	 */
    p.enterDone = function () {   /*Game title audio*/
// Playing Audio here
            this.voPlayer.play("game_title");

        // Click either the background or the button
        this.panel.playButton.addEventListener("click", this.onPlay);
    };

    /**
	 * Handler when the play button is clicked
	 * @method  onPlay
	 * @private
	 */
    p.onPlay = function () {
        this.voPlayer.stop("game_title");
        this.nextState();
    };

    /**
	 * When the state fully exits
	 * @method  exit
	 */
    p.exit = function () {

    };

    //Assign to namespace
    namespace("test").TitleState = TitleState;
}());

This could be caused in part by a number of things. There will always be some latency when starting to play audio that is often worse on lower end Android devices, and it is possible that this is made far worse by the browser's garbage collection after loading all those assets, if that is going on. It's also possible that due to loading other things, the audio isn't actually loading during the TitleState's loading period and is still loading when enterDone() is called.

@andrewstart , Any work around you suggest for this?

Since I don't know the specifics of the issue, I can't offer any specific workaround advice. I would however encourage you to split up your assets.js into multiple files as described in https://github.com/SpringRoll/SpringRoll/issues/80, and to load them up for the states that need them instead of all at the beginning.

@andrewstart  ,Thanks .. I tried this methodology but still persist. I made assets.js to 3.5 mb and remaining js will be loaded based on the game request. May be I have to reduce the size of assets.js  is it?

I don't know that it will help your audio delay issue, bit optimizing your assets to reduce the size of files that you need to load can only help the game.

Hi Praveen, I noticed in your p.enter method, you're calling Sound.instance.preload(["game_title"]);
Technically, if you include your sounds in your preload manifest, then you shouldn't need to preload your sound assets in the enter method, because they should already be preloaded when you enter the state.
Just so I can get more context into your problem, could you please paste your assets json file and your code in your app initialization? Or, simply your main.js file?

@praveen4565 Have you been able to resolve this issue or are you still encountering this problem?

Closed. Response provided.


Set up CI with Azure Pipelines

[skip ci]

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


Optimizing GPT performance in inference

Optimizing GPT performance in inference
Remaining problem:

Attention_mask's shape
Unfinished_flag in the while op when eos_token_id is None, which will cause synchronize.

谢谢，已收到！


Transducer type

I'm trying to writ my own library of transducers (for work and hobby)
while this keeping map and filter in the same file and the test, without annotations, it typechecks and correctly catch type errors if introduced into the map and filter first argument,
if explicilty typed there are a bunch of errors i can't understand
with flow suggest it says that every type is Type | any
maybe i'm missing something
export const map = <A, B, M> (f: (a: A) => B) => (r: (rm: M, ri: B) => M) => (m: M, i: A): M => r(m, f(i));

export const filter = <A, M>(p: (a: A) => bool) => (r: (rm: M, ri: A) => M) => (m: M, i: A) => (p(i) ? r(m, i) : m);

const arrayReducer = (m, i) => m.concat(i);
const xform = map(x => x * 2)(filter((x: number) => x !== 4)(arrayReducer));
const test = [1, 2, 3, 4, 5].reduce(xform, []);
expect(test).to.deep.equal([2, 4, 6, 8, 10]);

src/test/tr.spec.js:9
  9:     const xform = map(x => x * 2)(filter((x: number) => x !== 4)(arrayReducer));
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function call
  8:     const arrayReducer = (m, i) => m.concat(i);
                                        ^^^^^^^^^^^ call of method `concat`. Method cannot be called on
  8:     const arrayReducer = (m, i) => m.concat(i);
                                        ^ M

src/test/tr.spec.js:9
  9:     const xform = map(x => x * 2)(filter((x: number) => x !== 4)(arrayReducer));
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function call
  5: export const map = <A, B, M> (f: (a: A) => B) => (r: (rm: M, ri: B) => M) => (m: M, i: A): M => r(m, f(i));
                                                               ^ M. This type is incompatible with. See: src/tr.js:5
  7: export const filter = <A, M>(p: (a: A) => bool) => (r: (rm: M, ri: A) => M) => (m: M, i: A) => (p(i) ? r(m, i) : m);
                                                                                ^ some incompatible instantiation of `M`. See: src/tr.js:7

src/test/tr.spec.js:9
  9:     const xform = map(x => x * 2)(filter((x: number) => x !== 4)(arrayReducer));
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function call
  5: export const map = <A, B, M> (f: (a: A) => B) => (r: (rm: M, ri: B) => M) => (m: M, i: A): M => r(m, f(i));
                                                                      ^ B. This type is incompatible with. See: src/tr.js:5
  7: export const filter = <A, M>(p: (a: A) => bool) => (r: (rm: M, ri: A) => M) => (m: M, i: A) => (p(i) ? r(m, i) : m);
                                                                                ^ some incompatible instantiation of `A`. See: src/tr.js:7

src/test/tr.spec.js:9
  9:     const xform = map(x => x * 2)(filter((x: number) => x !== 4)(arrayReducer));
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function call
  7: export const filter = <A, M>(p: (a: A) => bool) => (r: (rm: M, ri: A) => M) => (m: M, i: A) => (p(i) ? r(m, i) : m);
                                                                                ^^^^^^^ M. This type is incompatible with. See: src/tr.js:7
  5: export const map = <A, B, M> (f: (a: A) => B) => (r: (rm: M, ri: B) => M) => (m: M, i: A): M => r(m, f(i));
                                                                            ^ some incompatible instantiation of `M`. See: src/tr.js:5

src/test/tr.spec.js:9
  9:     const xform = map(x => x * 2)(filter((x: number) => x !== 4)(arrayReducer));
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function call
  7: export const filter = <A, M>(p: (a: A) => bool) => (r: (rm: M, ri: A) => M) => (m: M, i: A) => (p(i) ? r(m, i) : m);
                                                                                ^ M. This type is incompatible with. See: src/tr.js:7
  5: export const map = <A, B, M> (f: (a: A) => B) => (r: (rm: M, ri: B) => M) => (m: M, i: A): M => r(m, f(i));
                                                                            ^ some incompatible instantiation of `M`. See: src/tr.js:5

src/test/tr.spec.js:10
 10:     const test = [1, 2, 3, 4, 5].reduce(xform, []);
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call of method `reduce`. Function cannot be called on any member of intersection type
 10:     const test = [1, 2, 3, 4, 5].reduce(xform, []);
                      ^^^^^^^^^^^^^^^^^^^^^^ intersection
  Member 1:
  201:     reduce(
           ^ function type. See lib: /tmp/flow/flowlib_347da80e/core.js:201
  Error:
   10:     const test = [1, 2, 3, 4, 5].reduce(xform, []);
                         ^ number. This type is incompatible with
    5: export const map = <A, B, M> (f: (a: A) => B) => (r: (rm: M, ri: B) => M) => (m: M, i: A): M => r(m, f(i));
                                                                                ^ some incompatible instantiation of `M`. See: src/tr.js:5
  Member 2:
  205:     reduce<U>(
           ^ polymorphic type: function type. See lib: /tmp/flow/flowlib_347da80e/core.js:205
  Error:
   10:     const test = [1, 2, 3, 4, 5].reduce(xform, []);
                                                      ^^ empty array literal. This type is incompatible with
    5: export const map = <A, B, M> (f: (a: A) => B) => (r: (rm: M, ri: B) => M) => (m: M, i: A): M => r(m, f(i));
                                                                                ^ some incompatible instantiation of `M`. See: src/tr.js:5

Closing since this issue hasn’t seen a lot of activity. Sorry about that 😣
Please reopen with a reproduction on https://flow.org/try if you are still having issues!

I see some errors in there @calebmer
Signatures should be correct, i don't remember the flow version i first tried this but the reproduction is on 0.52.0.


Any way to get this working with peripherals?

I know this is for motherboards and their RGB headers only but I've been trying to set my MSI CLUTCH GM11's RGB to orange forever and Dragon Center only lets me choose between 7 colors. My lack of experience in C++ and Visual Studio isn't helping either since I tried using SimoDax's tool but to no avail. Any ideas? Thanks in advance c:

Same here, I've been told previously that MSI's Mystic Light software can be used for Razer products since Synapse is now shitting the bed, and somehow I ended up here. That being said though, I would like to see this program working with my GPU if possible, since I do have an MSI RX 580

https://gitlab.com/CalcProgrammer1/OpenRGB
Might do what you want.


Sample with Azure .NET Fluent SDK

Hi,
How would we go about adding the user agent when using the .NET Azure Fluent Management SDK ?
As per https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.resourcemanager.fluent.core.iazureconfigurable-1.withuseragent?view=azure-dotnet there is a setUserAgent method, but, it seems to take two parameters, product and version.
Is that the method to use? If so, could you please provide an example ? If not, could you please direct us to how we'd go about adding the GUID for tracking ?
Thanks.

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

ID: db44bc8f-a6d7-8651-165d-929230435633
Version Independent ID: c7847825-9d79-419e-a177-aca5872f1431
Content: Azure partner and customer usage attribution
Content Source: articles/marketplace/azure-partner-customer-usage-attribution.md
Service: marketplace
GitHub Login: @yijenj
Microsoft Alias: pabutler

Thanks for your comment. We are actively investigating and will get back to you shortly. Thanks for your patience.

Thanks for the quick follow up.
In addition, what would be the recommended approach when we're using the Azure .NET Fluent SDkKand a template ? Specifically, if someone is using the method https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.resourcemanager.fluent.deployment.definition.iwithtemplate?view=azure-dotnet , should they add the GUID tracker within the template, or, should they specify it as a user-agent ?

@qianw211  - any idea who in marketplace can help answer these questions?

Hi, here's the feedback to your question, please let me know if it helps:
"I’m not familiar with the fluent SDK… but not all SDK support setting UA in the way we require.  I would try setting the “product” parameter value to the “pid-[GUID]” and see if that works."

Thanks for the update, @qianw211
We will now close this issue. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.


Update monitor.js

Correct name of lib https://www.npmjs.com/package/node-zabbix-sender

Hi, the library you are referring to is a different library than the one we use - there is no "correct" name for the library, they both exist. What is the reason for the change you are proposing? Are you having problems with the exec-based implementation of npm module zabbix-sender?

Hi, in case when in code (monitor.js) stays 'zabbix-sender' after running pm-zabbix --dicsovery there is error 'zabbix-sender' module not't found. After changing name to 'node-zabbix-senser' it is OK, and discovery works correctly.


Add support for subresource integrity

My company has asked me to implement subresource integrity security in our Rails application. We're using shakapacker/webpack for our JavaScript assets (Sprockets is handling the bundling of our stylesheets and images). After researching how to do this, I came to learn that SRI isn't a first class feature of Shakapacker, however there is some information out there that helped me to roll my own solution.
config/webpack/webpack.config.js
const { generateWebpackConfig, merge } = require('shakapacker')
const { SubresourceIntegrityPlugin } = require('webpack-subresource-integrity')
const WebpackAssetsManifest = require('webpack-assets-manifest')

const webpackConfig = generateWebpackConfig()

const customConfig = {
  output: {
    // the following setting is required for SRI to work:
    crossOriginLoading: "anonymous",
  },
  plugins: [
    new SubresourceIntegrityPlugin(),
    new WebpackAssetsManifest(
      {
        entrypoints: true,
        integrity: true,
        writeToDisk: true,
        entrypointsUseAssets: true,
        publicPath: true,
        output: 'manifest.json'
      }
    )
  ]
}

// https://github.com/shakacode/shakapacker/discussions/85
const filteredPlugins = webpackConfig.plugins.filter((plugin) => !(plugin instanceof WebpackAssetsManifest))
webpackConfig.plugins = filteredPlugins

module.exports = merge(webpackConfig, customConfig)

app/views/layouts/application.html.erb
<head>
   ...
  <%= javascript_pack_tag 'application', defer: false, skip_pipeline: true %>
</head>

app/helpers/asset_helper.rb
# Based on https://github.com/rails/webpacker/issues/323#issuecomment-547616109
# rubocop:disable Style/ClassAndModuleChildren
module AssetHelper
  # This monkey patch is needed to set the integrity attr to html tags for SRI.
  # It was developed using information at the link above, along with lifting
  # code out of the shakapacker gem, version 8.0.0, and modifying it.
  module Shakapacker::Helper
    def javascript_pack_tag(*names, defer: true, **options)
      if @javascript_pack_tag_loaded
        raise 'To prevent duplicated chunks on the page, you should call javascript_pack_tag only once on the page. ' \
              'Please refer to https://github.com/shakacode/shakapacker/blob/main/README.md#view-helpers-javascript_pack_tag-and-stylesheet_pack_tag for the usage guide'
      end

      append_javascript_pack_tag(*names, defer: defer)
      non_deferred = sources_from_manifest_entrypoints(javascript_pack_tag_queue[:non_deferred], type: :javascript)
      deferred = sources_from_manifest_entrypoints(javascript_pack_tag_queue[:deferred], type: :javascript) - non_deferred

      @javascript_pack_tag_loaded = true

      capture do
        render_javascript_tags(deferred, options, true)
        concat "\n" if non_deferred.any? && deferred.any?
        render_javascript_tags(non_deferred, options, false)
      end
    end

    private def render_javascript_tags(sources, options, defer)
      last_index = sources.size - 1
      sources.each.with_index do |source, index|
        tag_source = lookup_source(source)
        tag_options = options.merge(defer: defer)
        if include_subresource_integrity?
          #:nocov:
          integrity = lookup_integrity(source)
          tag_options.merge!(integrity: integrity, crossorigin: 'anonymous') if integrity.present?
          #:nocov:
        end
        concat javascript_include_tag(tag_source, **tag_options)
        concat "\n" unless index == last_index
      end
    end

    private def lookup_source(source)
      (source.respond_to?(:dig) && source.dig('src')) || source # rubocop:disable Style/SingleArgumentDig
    end

    private def lookup_integrity(source)
      (source.respond_to?(:dig) && source.dig('integrity')) || nil # rubocop:disable Style/SingleArgumentDig
    end

    # Only serve integrity metadata for HTTPS requests:
    # http://www.w3.org/TR/SRI/#non-secure-contexts-remain-non-secure
    private def include_subresource_integrity?
      respond_to?(:request) && request && request.ssl?
    end
  end
end
# rubocop:enable Style/ClassAndModuleChildren

(Disclaimer: The view helper code above probably does not handle all scenarios. I wrote it to work with our Rails application and we still need to take it through our QA process. If anyone decides to use it, I highly suggest scrutinizing that code to make sure it is appropriate for your application.)
Desired behavior:
SRI support is a first-class feature in shakapacker, and easily enabled by doing something like this:
config/shakapacker.yml
integrity_enabled: true

view template
  <%= javascript_pack_tag 'application', defer: false, integrity: true %>

Actual behavior:
SRI support must be added through custom coding
Setup environment:

Ruby version: Ruby 3.3
Rails version: Rails 7.1
Shakapacker version: 8.0.0

hey thanks for sharing this - I know vaguely of SRI but it's not something I've actively looked into, but I think if it's something we could make painless to do via Shakapacker (ideally to the point that it could just be on by default) I think that'd be a really awesome security win.
I'll try to get sometime this month to look over your code in more detail and what it might take to get it integrated in - please feel free to post any updates here, and I'll do the same about any learnings I have :)

@G-Rath Sounds good. I noticed that the Rails Sprockets gem has support for SRI, although its documentation states that the support is considered experimental at this point. It's an implementation to look at for ideas.

Hi @G-Rath, did you have time to look into adding a configuration option for SRI? I am in the same position as @denisahearn - my company requires SRI to be implemented for our JS packs in order to remediate pen test feedback. This is reasonably high priority for us, so I'll look at @denisahearn's solution above and see if something similar would apply to our stack in the meantime. Any help with this greatly appreciated! Thanks.

@james-robson no not yet sorry, though it's still on my todo (famous last words 😅)


sql editor fonts size can't change

Description
sql editor fonts size can't change use ctrl + +
DBeaver Version
<IP_ADDRESS>303250535
Operating System
windows 10
Database and driver
mysql
Steps to reproduce
No response
Additional context
No response

Thank you for bug report. Close as duplicate of #19521

您好，邮件已收到，我会尽快给您回复。


Handles cryptography.fernet.InvalidToken exception

Solves issue #27.

Looks good but a test is required.
Also please fix pep8 error for line length.

Done.

Perfect! Thanks!


Bug in VSCode web Marketplace:  wrong repository link at Rainbow CSV plugin page.

Hello!
I didn't know where to submit this bug, so if you can tell me where I can redirect my request this would be useful too. So for some reason at the Rainbow CSV plugin page ( https://marketplace.visualstudio.com/items?itemName=mechatroner.rainbow-csv ) in "Project Details" section there are 3 links to a wrong repository.
The first link to the repo is correct ( https://github.com/mechatroner/vscode_rainbow_csv ) but it has wrong title which says "mechatroner/vscode" whereas it should be "mechatroner/vscode_rainbow_csv". And the rest of the links are just incorrect.
The repository link in the extension package.json config explicitly points to the right location:
    "repository": {
        "type": "git",
        "url": "https://github.com/mechatroner/vscode_rainbow_csv"
    }

Please, help!

@egamma maybe you know

I´ve informed the marketplace team.

Thanks!

Thanks for reporting :D please feel free to close this issue.

Thank you very much, @Hardhik !


not a supported wheel on this platform.

ERROR: mmdeploy-1.0.0rc3-py3-none-win_amd64.whl is not a supported wheel on this platform.
ERROR: mmdeploy_python-1.0.0rc3-cp39-none-win_amd64.whl is not a supported wheel on this platform.
i am taking theese error,could someone help?
how can i fix this?

@emrekeles-arch Please go to the mmdeploy repository and create an issue. Thank you.


Web support

Are you planning on adding web support to it? It would be useful for example while building a PWA that can run on mobile devices.
If you don't mind, I can try adding a plugin based on this JavaScript library https://github.com/jbialobr/JsQRScanner

Feel free to add web support. Use the 3.x branch (https://github.com/mintware-de/flutter_barcode_reader/tree/3.x) for changes

@fercarcedo are you going to work on this?

Yes, I'm working on it. In fact, it's almost ready :)

Oh nice!  Let me know when it's ready for testing, happy to try it out.

@fercarcedo how's it coming along?

I'm currently finishing up the plugin integration, so hopefully today or tomorrow I'll make a PR

PR opened :)


Create VensStylePPTextures.netkan

That spec_version needs to be in quotes:
"spec_version" : "v1.2",

You can keep editing the files in your existing branch just by going to the "Files Changed" tab above and clicking on the pencil, rather than creating new pull requests.

Excellent! Merging with my thanks


Usage without dependency injection

I am interested in using this package. However, the environment that I am trying to use it in is somewhere without dependency injection.
Is it possible to use this package without dependency injection? The docs and samples do not offer any info on how this can be done.

This might also be useful in solving #10

Sorry, thats not really possible since Microsoft.Extensions.DependencyInjection is used throughout all the code


readme hyperlink issue

The readme's hyperlink under "How to use the agent" is forwarding to an incorrect url.

Thanks, fixed. It should not be a hyperlink.
min.js file is a result of a build process and won't appear in the repo.


Type can more have values than the doco captures

e.g. ProjectGroup

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

ID: ae0aa369-2cc7-8452-dc52-e75f19ac6a5e
Version Independent ID: 41e7734f-83ef-afa7-5e15-03b0a97929ab
Content: VSTemplate Element (Visual Studio Templates) - Visual Studio
Content Source: docs/extensibility/vstemplate-element-visual-studio-templates.md
Service: unspecified
GitHub Login: @gregvanl
Microsoft Alias: gregvanl

Ha. Just figured this out and was going to make same comment. Should have scrolled to bottom first.


Add the setup line for amundsen data builder

It is important to install the amundsen data builder before running the test script locally,
otherwise the imports won't work in the test script.

thanks @verdan


Failed to load prebuilt binary for platform "linux" "arm64".

Hey,
when installing npm install -g catai the catai Server fails conversations stating: Failed to load prebuilt binary for platform "linux" "arm64". Error: Error: /usr/local/lib/node_modules/catai/node_modules/node-llama-cpp/llamaBins/linux-arm64/llama-addon.node: cannot open shared object file: No such file or directory.
The file is actually there.
# ls -la  /usr/local/lib/node_modules/catai/node_modules/node-llama-cpp/llamaBins/linux-arm64/llama-addon.node
-rw-r--r-- 1 root root 1184376 Oct  6 10:32 /usr/local/lib/node_modules/catai/node_modules/node-llama-cpp/llamaBins/linux-arm64/llama-addon.node

I can fix it by running node_modules/.bin/node-llama-cpp download. But from what I've read, it's supposed to build the right bin on it's own, isn't it?

Yes, it should have prebuild node addon.
I will check that :)

A new version of node-llama-cpp has been released.
Please update with catai update and try again.
Is this issue solved?

Yup, works now. Thanks a bunch. :)


安装 kubeadm

/close
please update the issue description if you have a bug report for the website.
alternatively ask questions on the support channels:
https://github.com/kubernetes/kubernetes/blob/master/SUPPORT.md
there is also #kubeadm on k8s slack.


Add a ping manager plugin

This plugin allows for customisable ping strings, ping wait durations and optional categories to ignore.
When a ModMail thread is created, this plugin waits for the configured wait_duration, and then sends the ping_string in that thread, unless the thread meets on of:

Is in an ignored category
A mod has sent an internal message
A mod has replied to the thread

Since this plugin doesn't need anything pydis-specific, we could add some information about this in the README.


bug: create-turbo with npm or yarn is not working

Provide environment information
System:
OS: macOS 13.5.1
CPU: (8) arm64 Apple M1
Memory: 1.01 GB / 16.00 GB
Shell: 3.6.1 - /opt/homebrew/bin/fish
Binaries:
Node: 20.5.1 - ~/Library/Caches/fnm_multishells/36496_1692810355106/bin/node
Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells/36496_1692810355106/bin/yarn
npm: 9.8.0 - ~/Library/Caches/fnm_multishells/36496_1692810355106/bin/npm
pnpm: 8.6.12 - /opt/homebrew/bin/pnpm
Describe the bug
When making a new project with npx create-turbo@latest -e https://github.com/t3-oss/create-t3-turbo. Selecting either npm or yarn as a package manager results in some errors down the line.
NPM
npm install fails in the middle of create-turbo command. Fails due to it not being able to find certain types.
YARN
Running yarn build or yarn dev results in next js failing and throwing an error.
The error says it is missing auto prefixer. Installing auto prefixer in apps/nextjs fixes this issue. But shouldnt be the end fix.
PNPM
Works as expected with no errors out the box.
Link to reproduction
https://github.com/t3-oss/create-t3-turbo
To reproduce
NPM
npx create-turbo@latest -e https://github.com/t3-oss/create-t3-turbo

# Select npm
# Will result in error

# Running will result in error as well
npm install

YARN
npx create-turbo@latest -e https://github.com/t3-oss/create-t3-turbo

# Select yarn

# Environment Variables
# Fill out discord credentials with random text
cp .env.example .env

# Both of these result in the same error.
yarn build
# or
yarn dev

Additional information

NPM ERROR

~/dev 3s
❯ npx create-turbo@latest -e https://github.com/t3-oss/create-t3-turbo

>>> TURBOREPO

>>> Welcome to Turborepo! Let's get you set up with a new codebase.

? Where would you like to create your turborepo? temp
? Which package manager do you want to use? npm

Downloading files from repo https://github.com/t3-oss/create-t3-turbo. This might take a moment.

>>> Created a new Turborepo with the following:

apps
 - apps/expo
 - apps/nextjs
packages
 - packages/api
 - packages/auth
 - packages/db
tooling
 - tooling/eslint
 - tooling/prettier
 - tooling/tailwind
 - tooling/typescript

Installing packages. This might take a couple of minutes.

    Installing dependencies...
>>> npm install has failed.

~/dev 30s
❯ cd temp/

temp main
❯ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@tanstack/react-query
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   apps/nextjs
npm ERR<EMAIL_ADDRESS>npm ERR!     node_modules/@acme/nextjs
npm ERR!       workspace apps/nextjs from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@tanstack/react-query-next-experimental
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   apps/nextjs
npm ERR<EMAIL_ADDRESS>npm ERR!     node_modules/@acme/nextjs
npm ERR!       workspace apps/nextjs from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /Users/douglasrocha/.npm/_logs/2023-08-23T18_08_04_466Z-eresolve-report.txt

npm ERR!  Let's get you set up with a new codebase.

? Where would you like to create your turborepo? temp
? Which package manager do you want to use? yarn

Downloading files from repo https://github.com/t3-oss/create-t3-turbo. This might take a moment.

>>> Created a new Turborepo with the following:

apps
 - apps/expo
 - apps/nextjs
packages
 - packages/api
 - packages/auth
 - packages/db
tooling
 - tooling/eslint
 - tooling/prettier
 - tooling/tailwind
 - tooling/typescript

Installing packages. This might take a couple of minutes.

>>> Success! Created a new Turborepo at "temp".
Inside that directory, you can run several commands:

  yarn run build
     Build all apps and packages

  yarn run dev
     Develop all apps and packages

  yarn run lint
     Lint all apps and packages

Turborepo will cache locally by default. For an additional
speed boost, enable Remote Caching with Vercel by
entering the following command:

  npx turbo login

We suggest that you begin by typing:

  cd temp
  npx turbo login

~/dev 36s
❯ cd temp

temp main*
❯ cp .env.example .env

temp main*
❯ yarn build
yarn run v1.22.19
$ turbo build
• Packages in scope: @acme/api, @acme/auth, @acme/db, @acme/eslint-config, @acme/expo, @acme/nextjs, @acme/prettier-config, @acme/tailwind-config, @acme/tsconfig
• Running build in 9 packages
• Remote caching disabled
@acme/nextjs:build: cache miss, executing 15ead44adb102946
@acme/nextjs:build: $ pnpm with-env next build
@acme/nextjs:build:
@acme/nextjs:build: ><EMAIL_ADDRESS>with-env /Users/douglasrocha/Dev/temp/apps/nextjs
@acme/nextjs:build: > dotenv -e ../../.env -- "next" "build"
@acme/nextjs:build:
@acme/nextjs:build: - info Creating an optimized production build...
@acme/nextjs:build: Failed to compile.
@acme/nextjs:build:
@acme/nextjs:build: src/app/layout.tsx
@acme/nextjs:build: An error occured in `next/font`.
@acme/nextjs:build:
@acme/nextjs:build: Error: Cannot find module 'autoprefixer'
@acme/nextjs:build: Require stack:
@acme/nextjs:build: - /Users/douglasrocha/Dev/temp/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js
@acme/nextjs:build: - /Users/douglasrocha/Dev/temp/node_modules/next/dist/build/webpack/config/blocks/css/index.js
@acme/nextjs:build: - /Users/douglasrocha/Dev/temp/node_modules/next/dist/build/webpack/config/index.js
@acme/nextjs:build: - /Users/douglasrocha/Dev/temp/node_modules/next/dist/build/webpack-config.js
@acme/nextjs:build: - /Users/douglasrocha/Dev/temp/node_modules/next/dist/build/webpack-build/impl.js
@acme/nextjs:build: - /Users/douglasrocha/Dev/temp/node_modules/next/dist/build/webpack-build/index.js
@acme/nextjs:build: - /Users/douglasrocha/Dev/temp/node_modules/next/dist/build/index.js
@acme/nextjs:build: - /Users/douglasrocha/Dev/temp/node_modules/next/dist/cli/next-build.js
@acme/nextjs:build: - /Users/douglasrocha/Dev/temp/node_modules/next/dist/lib/commands.js
@acme/nextjs:build: - /Users/douglasrocha/Dev/temp/node_modules/next/dist/bin/next
@acme/nextjs:build:     at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
@acme/nextjs:build:     at /Users/douglasrocha/Dev/temp/node_modules/next/dist/server/require-hook.js:110:36
@acme/nextjs:build:     at Function.resolve (node:internal/modules/cjs/helpers:127:19)
@acme/nextjs:build:     at loadPlugin (/Users/douglasrocha/Dev/temp/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js:54:32)
@acme/nextjs:build:     at /Users/douglasrocha/Dev/temp/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js:162:56
@acme/nextjs:build:     at Array.map (<anonymous>)
@acme/nextjs:build:     at getPostCssPlugins (/Users/douglasrocha/Dev/temp/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js:162:47)
@acme/nextjs:build:     at async /Users/douglasrocha/Dev/temp/node_modules/next/dist/build/webpack/config/blocks/css/index.js:124:36
@acme/nextjs:build:     at async /Users/douglasrocha/Dev/temp/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js:86:34
@acme/nextjs:build:     at async Span.traceAsyncFn (/Users/douglasrocha/Dev/temp/node_modules/next/dist/trace/trace.js:105:20)
@acme/nextjs:build:
@acme/nextjs:build:
@acme/nextjs:build: > Build failed because of webpack errors
@acme/nextjs:build:  ELIFECYCLE  Command failed with exit code 1.
@acme/nextjs:build: error Command failed with exit code 1.
@acme/nextjs:build: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@acme/nextjs:build: ERROR: command finished with error: command (/Users/douglasrocha/Dev/temp/apps/nextjs) yarn run build exited (1)
@acme/nextjs#build: command (/Users/douglasrocha/Dev/temp/apps/nextjs) yarn run build exited (1)

 Tasks:    0 successful, 1 total
Cached:    0 cached, 1 total
  Time:    7.22s
Failed:    @acme/nextjs#build

 ERROR  run failed: command  exited (1)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This repo uses pnpm and it's not expected you can port it to other package managers without any modifications

Can confirm this happens because I didn't notice repo docs telling me to use pnpm
Solution: use pnpm when asked.

I'll add some changes that I made to move from pnpm to yarn and I hope it helps.
.github/workflows/ci.yml
name: CI

on:
  pull_request:
    branches: ["*"]
  push:
    branches: ["main"]
  merge_group:

# You can leverage Vercel Remote Caching with Turbo to speed up your builds
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds
env:
  TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
  TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

jobs:
  build-lint:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repo
        uses: actions/checkout@v4

      - name: Setup yarn
        uses: mskelton/setup-yarn@v1

      - name: Setup Node 18
        uses: actions/setup-node@v3
        with:
          node-version: 18

      - name: Get yarn store directory
        id: yarn-cache
        run: |
          echo "yarn_cache_dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

      - name: Setup yarn cache
        uses: actions/cache@v3
        with:
          path: ${{ steps.yarn-cache.outputs.yarn_cache_dir }}
          key: ${{ runner.os }}-yarn-store-${{ hashFiles('**/yarn.lock') }}
          restore-keys: |
            ${{ runner.os }}-yarn-store-

      - name: Install deps (with cache)
        run: yarn install

      - name: lint and type-check
        run: yarn turbo lint format typecheck

      - name: Check workspaces
        run: yarn manypkg check

Search for script definitions that have pnpm and replace it with yarn.
Search and replace pnpm-lock.yaml with yarn.lock


Adds visible contact id in the contact properties

Allows copying the id to clipboard. Fixes issue #2756
Signed-off-by: Ville Ranki<EMAIL_ADDRESS>

Attached screenshot:

Thanks for the PR.
Sorry, I've already done the fix in #2775, along with other UI improvement.
Do not hesitate to mention me in Riot-Android room if you want to start working on a specific issue :)


Enabling PutRequestV4

Coding style applied.
SLA: 5 mins
Reviewer: Priyesh

Codecov Report

Merging #774 into master will decrease coverage by 0.08%.
The diff coverage is 87.5%.

@@             Coverage Diff              @@
##             master     #774      +/-   ##
============================================
- Coverage     65.66%   65.57%   -0.09%
+ Complexity     3912     3911       -1
============================================
  Files           342      342
  Lines         25946    25944       -2
  Branches       3243     3242       -1
============================================
- Hits          17037    17013      -24
- Misses         8003     8027      +24
+ Partials        906      904       -2

Impacted Files
Coverage Δ
Complexity Δ

...ain/java/com.github.ambry.protocol/PutRequest.java
70.94% <87.5%> (-11.73%)
18 <0> (-3)

...a/com.github.ambry.protocol/RequestOrResponse.java
86.95% <0%> (-4.35%)
6% <0%> (-1%)

...java/com.github.ambry.store/CompactionManager.java
88.05% <0%> (-2.99%)
17% <0%> (ø)

...b.ambry.network/BlockingChannelConnectionPool.java
64.03% <0%> (-2.2%)
8% <0%> (ø)

.../main/java/com.github.ambry.store/HardDeleter.java
80% <0%> (-1.94%)
41% <0%> (-1%)

.../java/com.github.ambry.router/DeleteOperation.java
91.72% <0%> (-1.51%)
43% <0%> (-1%)

.../com.github.ambry.router/GetBlobInfoOperation.java
79.86% <0%> (-1.39%)
30% <0%> (-1%)

...in/java/com.github.ambry.store/BlobStoreStats.java
85.4% <0%> (+0.23%)
93% <0%> (+1%)
:arrow_up:

...java/com.github.ambry.router/GetBlobOperation.java
88.59% <0%> (+0.26%)
31% <0%> (+1%)
:arrow_up:

... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa00196...4409b20. Read the comment docs.


Feature/GitHub testing workflows

fixes an issue with npm set user and puppeteer smoke workflow correction

This is the clean branch for an upstream PR


Error when running graphql-deploy

lerna ERR! npm run start stderr:
warning Type `SanityMuxVideoAsset` declared in `createTypes` looks like a node, but doesn't implement a `Node` interface. It's likely that you should add the `Node` interface to your type def:

`type SanityMuxVideoAsset implements Node { ... }`

If you know that you don't want it to be a node (which would mean no root queries to retrieve it), you can explicitly disable inference for it:

`type SanityMuxVideoAsset @dontInfer { ... }`
error Building schema failed

I ran into the following issue when deploying the schema using yarn run graphql-deploy
It seems to work fine in the local studio - by that I was able to set my API keys and upload a video
I followed the instructions here to install the plugin - https://github.com/sanity-io/sanity-plugin-mux-input

After running yarn clean and reinstalling the plugin, it works fine.


Add .desktop shortcuts to setup.py package install

Create shortcuts in System Tools for the following commands:

Monitor Call Attendant: monitor-callattendant
Restart Call Attendant: restart-callattendant
Stop Call Attendant: stop-callattendnant
Configure Call Attendant: nano ~/.callattendant/app.cfg

setup.py example:
setup(
    name       = 'myapplication',
    version    = '0.1',
    packages   = ['myapplication'],
    data_files = [
        ('share/applications', ['data/org.myapplication.desktop']),
    ],
)

See: https://stackoverflow.com/a/44462146/4797523

Example .desktop file contents: configure-callattendant.desktop, typically located in ~/.local/share/applications
[Desktop Entry]
Comment=Edit the callattendant configuration
Terminal=true
Name=Configure Call Attendant
Exec=nano ~/.callattendant/app.cfg
Type=Application
Icon=emblem-system
Categories=System;


[WIP] Update/revert setting TicketDataFormat for 2.x

Fixes #3776
Fixes #1812
Fixes #969
Addresses #3777
[Internal Review Topic (will be provided after next commit)](#)

Well not really since auth options changed to named options rather than instances living in identity options...  so it'd look something more like:
services.ConfigureApplicationCookie(o => o.DataProtectionProvider =
        DataProtectionProvider.Create(new DirectoryInfo(@"c:\shared-auth-ticket-keys\"));

Well not really since auth options changed to named options

Since that change might be present in other parts of the topic, I'll sweep the whole thing.

This whole scenario is pretty fragile in general, make sure you try the side by side interop since its very easy for it to be broken

Sounds good. I'll run the whole topic. If I'm setting up something locally to test the guidance in this topic and it looks like it would make a good sample, I'll put it up in a repo so we can look at it and decide if it should accompany the topic.

@HaoK I'm working on Core app sharing first.
The trick to making two cookie auth apps (without Identity) share was just to add ...
options.Cookie.SameSite = SameSiteMode.None;

... resulting in ...
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
    .AddCookie(options =>
    {
        options.DataProtectionProvider = DataProtectionProvider.Create(
            new DirectoryInfo(
                @"C:\Users\XXXXX\Documents\GitHub\CookieSharingSample\shared-auth-ticket-keys\"));
        options.Cookie.SameSite = SameSiteMode.None;
    });

They share cookies. :+1:
Attempting to share that cookie with a third app that uses Identity is failing. The app can see the cookie, but it isn't using it. I tried with and without setting TicketDataFormat ...
services.AddIdentity<ApplicationUser, IdentityRole>()
    .AddEntityFrameworkStores<ApplicationDbContext>()
    .AddDefaultTokenProviders();

services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
    .AddCookie(options =>
    {
        var protectionProvider = DataProtectionProvider.Create(
            new DirectoryInfo(
                @"C:\Users\XXXXX\Documents\GitHub\CookieSharingSample\shared-auth-ticket-keys\"));
        options.DataProtectionProvider = protectionProvider;
        /*
        options.TicketDataFormat =
            new TicketDataFormat(
                protectionProvider.CreateProtector(
                    "Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware",
                    "Cookies",
                    "v2"));
        */
        options.Cookie.SameSite = SameSiteMode.None;
    });

I think I'm missing a config setting.

@HaoK kk ... After some rubber ducking today, I have a setup that seems to work across cookie auth without identity and cookie auth with identity. Here are the critical components:
Cookie auth without Identity app
I'll call this the non-Identity app. I made two of these so that I could test the non-Identity-to-non-Identity case.
Startup.cs
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
    .AddCookie(CookieAuthenticationDefaults.AuthenticationScheme, options =>
    {
        options.Cookie.Name = ".AspNetCore.Identity.Application";
        options.Cookie.SameSite = SameSiteMode.None;
        options.DataProtectionProvider = DataProtectionProvider.Create(
            new DirectoryInfo(
                @"C:\Users\XXXXX\Documents\GitHub\CookieSharingSample\shared-auth-ticket-keys\"));
    });

The important settings here are matching the cookie name to the cookie name used by the Identity app. Set SameSite to None. Setup a common DP key location across apps. I'm not clear on the double-setting of CookieAuthenticationDefaults.AuthenticationScheme yet. I need to run another couple of tests on that.
Note that I tried (repeatedly 😅) to get the Identity app to use the default .AspNetCore.Cookie cookie name by not setting it or setting it explicitly across the test apps. No 🎲🎲. Since the Identity app seems so hell bent on using the .AspNetCore.Identity.Application cookie name, I flipped the script on it and made my two non-Identity apps use that name, which seems to have worked.
Login.cshtml.cs
var claims = new List<Claim>
{
    ...
};

var claimsIdentity = new ClaimsIdentity(claims, IdentityConstants.ApplicationScheme);

var authProperties = new AuthenticationProperties() { };

await HttpContext.SignInAsync(CookieAuthenticationDefaults.AuthenticationScheme,
    new ClaimsPrincipal(claimsIdentity), authProperties);

The important point here is setting the auth type to IdentityConstants.ApplicationScheme for the principal's claims identity. If not set, then the Razor view call to IsSignedIn (reference source) won't function properly ... the UI won't display Logoff button properly in the Identity app when the user authenticated from the non-Identity app.
Cookie auth with Identity app
I'm calling this the Identity app.
Startup.cs
services.AddIdentity<ApplicationUser, IdentityRole>()
    .AddEntityFrameworkStores<ApplicationDbContext>()
    .AddDefaultTokenProviders();

services.ConfigureApplicationCookie(options => {
    options.Cookie.SameSite = SameSiteMode.None;

    var protectionProvider = DataProtectionProvider.Create(
        new DirectoryInfo(
            @"C:\Users\XXXXX\Documents\GitHub\CookieSharingSample\shared-auth-ticket-keys\"));

    options.DataProtectionProvider = protectionProvider;

    options.TicketDataFormat =
            new TicketDataFormat(
                protectionProvider.CreateProtector(
                    "Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware",
                    "Cookies",
                    "v2"));
});

Important settings: SameSite to None, the common DP key location, and setting the TicketDataFormat.
AccountController.cs
Don't specify a scheme for the SignOutAsync calls; otherwise, sign out from the Identity app doesn't occur properly. I presume it's using the "Cookies" scheme when it isn't specified in the call.
await HttpContext.SignOutAsync();

This setup seems to work across Core apps.
Next round (Thursday) is to get these three apps talk'in to an old skool .NET Framework 4.6.1 app.

.NET Framework 4.6.1

Install Microsoft.Owin.Security.Interop
Mod UseCookieAuthentication as shown below ...

app.UseCookieAuthentication(new CookieAuthenticationOptions
{
    AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
    CookieName = ".AspNetCore.Identity.Application",
    LoginPath = new PathString("/Account/Login"),
    Provider = new CookieAuthenticationProvider
    {
        // Enables the application to validate the security stamp when the user logs in.
        // This is a security feature which is used when you change a password or add an external login to your account.
        OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>(
            validateInterval: TimeSpan.FromMinutes(30),
            regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager))
    },
    TicketDataFormat = new AspNetTicketDataFormat(
        new DataProtectorShim(
            DataProtectionProvider.Create(new DirectoryInfo(@"C:\Users\XXXXX\Documents\GitHub\CookieSharingSample\shared-auth-ticket-keys\"))
         .CreateProtector("Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware",
            "Cookies", "v2"))),
                CookieManager = new ChunkingCookieManager()
});

// If not setting http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier and
// http://schemas.microsoft.com/accesscontrolservice/2010/07/claims/identityprovider then set
// UniqueClaimTypeIdentifier to a claim that distinguishes unique users.
System.Web.Helpers.AntiForgeryConfig.UniqueClaimTypeIdentifier = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name";

Set the CookieName to match.
Configure the TicketDataFormat with the path to the shared DP key location.
Set UniqueClaimTypeIdentifier if nameidentifier and identityprovider aren't provided by the ClaimsIdentity.

Looks reasonable, the only new thing seems to be the options.Cookie.SameSite = SameSiteMode.None; which wasn't required before

@blowdart @Tratcher do any of these changes look unexpected to you?

@HaoK I'll test that again, but without it, it was a :boom: outcome. May have been because of POSTs (e.g., to Logoff actions)?? (maybe ... guessing here ... I'll take a closer look)

I don't think you need to double check that, its probably something that was changed fairly recently

The cookie name: My Identity Core 2.0 test app absolutely insists on using the name .AspNetCore.Identity.Application. I might be setting it incorrectly. I was trying to use options.Cookie.Name to make it use .AspNetCore.Cookie, but it didn't care to pay attention to my setting that. This is why I flipped and decided to force the other test apps to use .AspNetCore.Identity.Application ... I got sick of fighting it and let that app win the battle in order to win the war.
I also need to check on the double-setting of ... CookieAuthenticationDefaults.AuthenticationScheme ...
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
    .AddCookie(CookieAuthenticationDefaults.AuthenticationScheme, options =>

It might be required in both or either spots. I'd like to work that out.

Yes identity core 2.0 removed the ability to change the scheme names for the identity cookies, but you probably should be able to tweak the cookie name though.  Can you file an issue in Identity with the stuff you tried and didn't work?  I can take a look at that later to see if there's any issues in the code.

You can probably simplify to:
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
    .AddCookie(options =>

Since that should be the default value for AddCookie

Confirmed ...
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
    .AddCookie(options =>

:+1:
... and 😠 I should've guessed that .AspNetCore.Identity.Application was going to make a liar out of me. I could have swore it was insisting on that before. I was deleting the cookie manually. Anyway ... I'm going to flip these other apps over to using the default cookie name now and make sure all is good.

Its not you, this gave both me and @blowdart a lot of grief when we were trying to set these up.  The steps change slightly over time unfortunately :(

@Tratcher It doesn't. 😓 There was a step where I had some whacko config that resulted in things not working for POSTs (IIRC) when it was left at the default Lax. Later after the dust settled on configuration, I went back and checked, and it's fine with the default Lax, so I've removed those lines.

Don't look yet ... I have a little more info to add, and the text is still a bit rough.
I'll ping tomorrow .... er ... later today .... when it's ready for :eyes:.

I have a 1st draft up now.

This includes a sample solution of three projects.
Since this shows three apps and the whole subject is about cookie sharing across more than just two apps, I go with "among" over "between," including in the title.


Implement a custom error handler for unrecognised commands

Lots of unrecognised commands are received due to typos, etc, and having a custom error handler which responds explaining that the command was not recognised would be good

Also include in this for when people pass the wrong type of argument, for example if they send a string when an int is expected (like for student number)


Crash when using dat-gateway

Version: node v8.11.1
Platform: Ubuntu 16.04.4 LTS

https://github.com/datproject/dat/issues/871#issuecomment-393887188
It sounds like this could be related to an interaction with their utp library, but thought I'd better post it here in case it's libuv-related.

Do you have a way to reproduce the issue?

It happens consistently for me after running dat-gateway on Ubuntu 16.04.4 LTS for about 5 or 10 minutes while requesting dats e.g. http://<IP_ADDRESS>:3000/7bfac40ac3ee31c634efe139ceb950c9beb992262574c0477abea78f9d12e5ec/abyssinian.jpg

cc @mafintosh

I just created a fresh Ubuntu 16.04.4 x64 instance on Digital Ocean with node v8.11.4 and after about 5 or 10 mins running dat-gateway I got the same error:
[dat-gateway] Now listening on port 3000
node: ../deps/uv/src/unix/udp.c:67: uv__udp_finish_close: Assertion `!uv__io_active(&handle->io_watcher, 0x001 | 0x004)' failed.
Aborted (core dumped)

I've tested this requesting only dats I've created (in case there's something wrong with them), and dats others have published - same result.

(with ports 3000 and 3282 exposed using ufw allow)

Also, if I just leave it running without requesting any dats, it doesn't crash (have waited ~30 mins).

Same issue with node v10.9.0

@santigimeno How strange - now I can't get it to crash, without having changed anything... I'm using the cheapest $5/pm DO droplet (1 GB Memory, 1 CPU, 25 GB SSD)

@santigimeno I think the upgrade to node v10.9.0 must have done it, but it required a reboot or something to take effect? I updated the original server to v10.9.0 and rebooted it and it has been running all day seemingly without an issue. Hopefully that's it solved...

I'm going to go ahead and close this. If the problem resurfaces, please provide a reproducible test case. Thanks!


HierarchyRequestError

Hi, I tried using the latest version but it breaks on a HierarchyRequestError. I tracked down the bug:
Here you call trigger(document, ...), but trigger will add the element to the DOM if it doesn't have a parentNode (which document doesn't) here. The result is a call like document.body.appendChild(document) which breaks.
After downgrading to 0.1.4 this error disappeared.

getting this too.

Me, too.

Fix as a PR is always welcome :)

Note: I don't currently use this package and so, do not want to take time for it.

Did this ever get fixed? Getting this too.

Closed by 1d292a1a6eeb19918304c28d31b513d05a88c086

woohoo!


CSS and images are not loaded irregularly on certain sites.

adg_logs_7.11.4107.0_1206_1558.zip hidden for security
Adguard for Windows debug log.
The tested web page URL is https://cafe.naver.com/fx8300/972030.
This problem is the same issue on Windows and Android.
The tested site is m.cafe.naver.com, cafe.naver.com, arca.live, twitter.com, etc...

@Kieaer Hi, sorry for the wait. I can't seem to reproduce these issues. Have you tried the latest nightly versions of the Windows and Android applications?

@ngorskikh Tested on Android using adguard 4.0 nightly 35. same problem
This problem only occurs in Firefox.

It's not always like that. Sometimes github.com also fails to load css.
It may not be related to a specific sites.

@Kieaer I still have not been able to reproduce this, and I can only see one suspicious failed request in your log, which probably doesn't explain the issues you're having. Since you seem to be able to reproduce this reliably on Windows, could you run AdGuard with even higher logging verbosity and share the logs again, also noting the exact time it was malfunctioning? Exit AdGuard and run this from the command line:
C:\"Program Files (x86)"\Adguard\Adguard.exe /trace

@Kieaer This is just a question. Is any online banking security application or anti-virus [^1] installed on your computer having this issue?
[^1]: Except Microsoft Defender Antivirus.

@piquark6046 Windows using bitdefender, but same problem on android & windows 11
@ngorskikh Sorry for late answer (no alerm 😟)
This problem is a probability that isn't reproducible at once, so i have to try it until it is reproducible.
I'll comment again if it reproduces with this option enabled.

@ngorskikh How to automatically run /trace command when PC starts?
I'm still having issues, but I haven't turned /trace on.

https://ufile.io/vo1v773y
Debug log
no trace command

I finally succeeded in reproducing and attaching the log.
I did a log export as soon as the problem occurred.
log file is here (available for download until August 13, 2023)
https://ufile.io/xvs64qtt

https://github.com/AdguardTeam/CoreLibs/issues/1703#issuecomment-1634434833
@Kieaer
An AdGuard CoreLib developer downloaded your logs. I think that it is safe to delete it.

find additional problems

It can't fixed? using Adguard v4.2 nightly 29

Please downgrade to its stable channel.
The nightly channel is unstable.

When will it be fixed? using Adguard for Android 4.1

@Kieaer This issue is fixed in CoreLibs 1.12, which is bundled with Adguard for Android 4.2

@sfionov

No fixed. reinstall also not work.


Test ip whitelist deployment with self-hosted linux build agent

Description
As a user, I'd like to deploy an ASE isolated infrastructure that can generate secrets for key vault access and isolate a container registry upon deployment based on an ip whitelist.
Acceptance Criteria
Reference: [Done-Done Checklist] (https://github.com/Microsoft/code-with-engineering-playbook/blob/master/Engineering/BestPractices/DoneDone.md)

[ ] Uncommented whitelist test code
[ ] Successful deployment of the ISO template with uncommented whitelist and subnetlist for both keyvault and container registry

Also, here are a few points that need to be addressed:

A self-hosted linux build agent will need to be configured.

Resources
Technical Design Document
Mockups
Tasks

Install build agent onto VM
Configure project settings to reference new build agent pool
Uncomment whitelist test code
Uncomment whitelist and subnet list for keyvault
Uncomment whitelist and subnet list for container registry
Commit changes
Run deployment

@tasdevani21 and I have begun work. Here's out plan:

[ ] Isolate our work from this repo and it's CI/CD pipeline
[ ] branch onto bugfix/242 and make some edits to isolate any AZ resources we'll create/destroy
[ ] create an ADO project/repo/pipeline to isolate out pipelines & how they use self-hosted agents
[ ] create a VM with self-hosted Linux build agent & add them to our ADO proj/pipeline
[ ] ignore the HW and SR templates, for now, and get a clean baseline running of the ISO template

That gives us a starting point, and a clean-room to work in. Next:

[ ] un-comment whitelist-related tests and here and here
[ ] run the pipeline and see what fails
[ ] share, scope & estimate what seems to be needed to fix any problems
[ ] either pursue the fixes, or create new issues for this.

More to follow

create an ADO project/repo/pipeline to isolate out pipelines & how they use self-hosted agents

Question about this -- Are you planning to migrate the work back into the current AzDO project? If not, can we?

@nmiodice  Yes... we'll move it back. Since this item involves changes to the CI/CD settings (the AGENT_POOL), it isn't ideal to manipulate the 'shared/known good' CI/CD loop that keeps master protected.
Also, I've always preferred working (and that my team members) work in isolation, so that they do not create side-effects on each other. The AZ DevOps CLI instructions gave me enough of a push to effortlessly create our own ADO environment for this work, so that's where we're at.

Yesterday, @tasdevani21 and I hit a few snags that blocked us. We dove into the problems, but in the end, we simply ran the pipeline for this work again, and it started working.
At this point, we have a repeatable baseline that builds without the 'while-listing' features enabled. We're testing that this remains so, when using self-hosted build agents, this morning. With that settled, we'll enabled the 'white-listing' code, and start characterizing any problems/behavior.

While getting a 'clean room' host for the self-hosted linux build agent working, we've hit a few snags, due to needed dependencies. I suspect these are documented elsewhere (insluding in the recent build-agent Docker container work's Dockerfile). So far, I've instlaled unzip, gcc, golang, and jq.

Indeed... many things were needed. I took hints from this Dockerfile to get things rolling.

Now, upgrading the build agent host to have more RAM. Bumping to 8GB vs 1GB.

@tasdevani21 and I have seen this work, now. (Well, we had to use SKIP_TEST to make it work.) I believe, at this point, we need to enable testing and get that working.

@tasdevani21 and I have completed the work, we've updated the tests, and we've merged in the latest updates to origin/master. At this point, we're running a few builds of these changes, and if there aren't any further problems, we'll open the PR soon.
Some things we've learned:

The self-hosted build agents run most predictably when the host doesn't have GoLang or Terrafrom already installed. This allows the pipeline to install the indicated version (via env vars), however it is likely that installing these binaries will let the builds run more quickly (as the needed binaries won't need to be downloaded & installed with each build).
The exsting code regarding whilelisted was good. The tests needed to be edited, however. Among the changes, we've removed the explicity checking of IP addresses within the lists of IP addresses that might get written to whitelist resources. Primarily, we've seen that the exact list of IP addresses chagnes, as the self-hosted agents come & go from various host VMs, which makes sense.
Finally, we've been running our tests on a set of agents in an isolated AZ RG. With these changes, we can enable parallel, self-hosted builds for the over team workingon Cobalt. We'll continue to provide a pool of self-hosted agents, to support the team at-large, however it may be best to ultimately replace the agents we have today with 'official' agents hosted elsewhere. I've chatted a bit with @iphilpot about this. Today's agents are sufficient, and they let us keep moving forward.


Add kafka integration.

Many people use kafka as message broker, so it might be useful to have an option to add kafka easily.

Will release in 3.3.8.