Make selector element available to plugin

Hi,
I am writing a plugin and found myself in need of the selector element that is being used by jstree for the init process.
I then did some minor changes to the code to accomplish that.
On $.jstree.create made the element available to the plugin function:

	$.jstree.create = function (el, options) {
		var tmp = new $.jstree.core(++instance_counter),
			opt = options;
		options = $.extend(true, {}, $.jstree.defaults, options);
		if(opt && opt.plugins) {
			options.plugins = opt.plugins;
		}
		$.each(options.plugins, function (i, k) {
			if(i !== 'core') {
                                //made el available to plugin function
				tmp = tmp.plugin(k, options[k], el);
			}
		});
		$(el).data('jstree', tmp);
		tmp.init(el, options);
		return tmp;
	};

On $.jstree.core.prototype.plugin, made the element available to the plugin constructor
                //added the element as parameter
		plugin : function (deco, opts, el) {
			var Child = $.jstree.plugins[deco];
			if(Child) {
				this._data[deco] = {};
				Child.prototype = this;
                                //sent the element to the plugin constructor
				return new Child(opts, this, el);
			}
			return this;
		},

This is the approach I am using.
Is there a better way, or a way that does not need tampering with the core?

You already have the element available as this.element.
Best regards,
Ivan

Thanks for the answer @vakata, but the element is not there yet, at least not at the time the plugin function is called.
Should I tap into one of the functions before I can access that?


Provide more information when "The element that matches the specified selector is not visible"

What is your Test Scenario?
My test was trying to click on an <a> tag that contains a <div>, but I was getting the error message The element that matches the specified selector is not visible. It turns out this was because (I think) the <a> had an auto height. Setting its display to block solved the problem, but only after an hour of googling and trying many different things. This problem seems to come up often, as evidenced in #1994 and #1988.
What are you suggesting?
Improve the error message when the element is not visible, by explaining why it's not visible, Examples:

... because its display is 'none'
... because its visibility is 'hidden'
... because it has no height
... because it has no width

In my case, if the error message had said "because it has no height", I probably would have found the problem in a couple of minutes.

Hello @GrahamLea ,
Thank you for sharing your idea with us. We already have a corresponding issue: https://github.com/DevExpress/testcafe/issues/3876. You can follow it to be informed about our progress.


Tf allocator attributes

Added TF_AllocatorAttributes for use in TF_AllocateTemp function in C API
@yisitu

I added some API owners as reviewers since this is a change to public API.


Introduce LogStoreTableFactory and KafkaLogStoreFactory

Base interface for configuring a default log table connector. The log table is used by managed table factory.
Log tables are for processing only unbounded data. Support streaming reading and streaming writing.

Hey just some first-level feedback on the PR that I stumbled upon.
High level question: Why do you need to hook into the existing sink to write to secondary output? Why isn't it enough to just create a secondary sink?

Hi @AHeise , thanks for the review. It is actually only a hook that is needed, and if another sink/writer is created, that just brings a lot of duplicate code.

Hey just some first-level feedback on the PR that I stumbled upon.
High level question: Why do you need to hook into the existing sink to write to secondary output? Why isn't it enough to just create a secondary sink?

Hi @AHeise , thanks for the review. It is actually only a hook that is needed, and if another sink/writer is created, that just brings a lot of duplicate code.

Sorry if that question was unclear. I meant to ask why not use a second sink with the already existing sink classes (= no duplicate code). You just use a different SerializationSchema.

Hey just some first-level feedback on the PR that I stumbled upon.
High level question: Why do you need to hook into the existing sink to write to secondary output? Why isn't it enough to just create a secondary sink?

Hi @AHeise , thanks for the review. It is actually only a hook that is needed, and if another sink/writer is created, that just brings a lot of duplicate code.

I double checked the code and understand it a little bit better. I think we just need to get rid of the KafkaLogSink and expose everything in KafkaSink.

Do you mean we need to provide WriteCallback interface to Sink?
The RecordMetadata can be an interface, there may be one implementation named OffsetRecordMetadata.

Did you mean we need to provide WriteCallback interface to Sink?
Yes, if that is needed for making log tables work, we need to expose it in the Sink interface (InitContext comes to mind so we don't screw up existing Sinks).

I still haven't understood why we need to have the writer callback though. Wouldn't it be enough to relay the offsets on checkpoint?

The RecordMetadata can be an interface, there may be one implementation named OffsetRecordMetadata. (Maybe something like KafkaPartitionSplitState)

Where is this used then? Does it contain connector-specific information? Is the framework then reading it? Or is this again only relevant for HybridSource?

Did you mean we need to provide WriteCallback interface to Sink?
Yes, if that is needed for making log tables work, we need to expose it in the Sink interface (InitContext comes to mind so we don't screw up existing Sinks).

I still haven't understood why we need to have the writer callback though. Wouldn't it be enough to relay the offsets on checkpoint?

The RecordMetadata can be an interface, there may be one implementation named OffsetRecordMetadata. (Maybe something like KafkaPartitionSplitState)

Where is this used then? Does it contain connector-specific information? Is the framework then reading it? Or is this again only relevant for HybridSource?

I replied to you in the above thread.


Chrome 15, can't send long messages?

Hello, I'm on Chrome 15.. I believe it says it is using Draft 10 when I turn on Debug mode.  I am able to send short messages great, but anything more than 90? or 100? characters or so results in a message on the client "Could not decode a text frame as UTF-8."
It seems like it could actually be the same issue as this other person was having on another implementation.  http://superwebsocket.codeplex.com/discussions/273222
Thanks for any ideas you have.

My tests on chrome 15 with long messages went fine( as expected )...
You get the error during receiving on the chrome side, don't you?
Do you use the native chrome websocket implementation or do you use a specific js implementation?
It should not be to important but on which sting does the error occur?
Have you tried to reproduce the problem using:
http://websocket.org/echo.html as client for your websocket server
or ws://echo.websocket.org as a server for your websocket client.
Without being able to reproduce the problem there is less i can do...

Its a JSON string, like 10,000 + bytes I think.  But I guess it isn't the size necessarily if you tested that.. it might be some character that needs to be escaped.  Or its just because I am calling from JavaScript (Rhino).. or I did something weird.. somehow I called the WebSocket send and managed to get Chrome to say it couldn't decode it.
I guess if you think its not something like this https://github.com/sockjs/sockjs-node/issues/27 then there may have been something I did and maybe I was just confused.  I am using socket.io now and not having the issue, but again its possible I was misinterpreting something.

There indeed is a problem with big messages. I'm going to fix this during this week.

it should work now.

Great.. thanks for addressing that.  Wow that was a long paste.

Hi @Davidiusdadi, please help me! I have a same issue on Android version when server send a too long message to the client and client not receive that message.
thanks.


Develop

https://github.com/hiroki0525/react-dom-lazyload-component/pull/28

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


print User logger traces in log file

User logger print trace only in std::cout
We need to add trace in a specific log file.

Implementation proposition :

[ ] Create a new UserFile logger with inheritance that will print User trace in a file :

class UserFile : public User {

     UserFile(std::string& filename) {
         //TODO : open file with specified name
         //TODO : call User constructor with file stream
     }
}

[ ] Use Master logger with two loggers : User and UserFile


DatePicker range calendar only lets you edit start date

Detailed description
When the inputs for the DatePicker range are empty, selecting the start and end date via the calendar works as expected. The calendar remains open after clicking the start date so you can choose an end date as well. However, once there are dates set, if you click the calendar icon again to make a change, the calendar will close as soon as you choose a new start date, so you can't update the end date unless you click on the input itself. Having a calendar icon to the right of the end date input that only updates the start date input is confusing. It would be ideal if it allowed you to edit both start and end dates before closing the calendar.

What browser are you working in?
Chrom 72.0.3626.119
Firefox Developer Edition 67.0b4 (64-bit)

What version of the Carbon Design System are you using?
carbon-components: 9.89.0
carbon-components-react: 6.111.4
carbon-icons: 7.0.7

Steps to reproduce the issue

Click calendar icon
Select start and end dates
Click calendar icon again
Select start date
Notice that the calendar closes before you can update the end date

Please create a reduced test case in CodeSandbox
https://codesandbox.io/s/6wo08vr8rn

Hi :wave: thank you for reporting! My quick look at this (e.g. https://flatpickr.js.org/plugins/#rangeplugin-beta) reveals that Flatpickr doesn't seem to have such API.
@IBM/carbon-designers Is allowing to select both start/end dates on dropdown upon calendar icon click make sense to you...? Thanks!

@carbon-design-system/design 👋

If the issue is as described, this would be a bug we should fix. However I am unable to reproduce the issue. Perhaps it was fixed in the last few weeks when we are tidying things up? @bkrissIBM Would you mind verifying the issue still exist? Here's our current ranged date picker:
https://the-carbon-components.netlify.com/component/date-picker--range.html


[STREAMCOMP-2885] broadcast GCC completition

Overview
This PR will make TMaster to broadcast globally consistent checkpoint completion to every Heron task instances via stream managers.
Details described in the design doc
Progress

[x] TMaster broadcasts checkpoint saved to all Heron instances
[x] add I2PhaseCommitComponent interface
[x] Heron instance triggers postSave on receiving "checkpoint saved" message
[x] Heron instance triggers preRestore on receiving "restore topology" message
[x] block execute on postSave after preSave is invoked https://github.com/apache/incubator-heron/pull/3330/commits/e432c0e575acb0ef7d26d6af40f8f24473f21149
[ ] unit test for stateful bolt

[x] preSave
[x] postSave
[ ] preRestore
[x] block execute on postSave for I2PhaseCommitComponent bolts

[ ] unit test for stateful spout

[x] preSave
[x] postSave
[ ] preRestore
[ ] block execute on postSave for I2PhaseCommitComponent spouts

Will review it once we have a TDD discussion meeting.

Chatted with @nwangtw offline. We agreed that I2PhaseCommitComponent is a terrible name. Currently in the process of coming up with a better name 😛

Also adding @xiaoyao1991

Overall looks pretty good to me. 👍

looks good so far 👍

How do you guys feel about merging this PR?

@nwangtw I just left a comment on the design doc, have we considered default methods instead of a whole new interface?

@nwangtw I just left a comment on the design doc, have we considered default methods instead of a whole new interface?

Thanks!
That is a good point. This implementation is more conventional and default methods might be cleaner.

@nwangtw any updates?

Let's merge and then iterate~


Images are streched on display

Summary:
Images doesnt seems properly on MediaDetailsActivity and contributions list.
Screen-shots:
See vertically,

and horizontally,

@neslihanturan This would have got introduced after my recent changes in #2906. I am currently using fitXY stretch mode for images ie.
android:scaleType="fitXY"

Should we use some other scale type?
https://developer.android.com/reference/android/widget/ImageView.ScaleType

I think previous version was much better. It wasn't transform the image, it was just showing what fits into screen.

Does this look good?
https://user-images.githubusercontent.com/3069373/56682478-3a1e7b00-66e9-11e9-8fcd-8ed1af41f631.png

Exactly this @maskaravivek

Then merging #2924 should fix the issue. :)


Plugin version 0.10.0 fails on Android

Hi @wilburt, I tried using the plugin's new release in my Flutter Project and it keeps failing due to some reason I don't seem to understand
This is what I get on Gradle task assembleDebug
** FAILURE: Build failed with an exception.

What went wrong:
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

Could not download appcompat-v7.aar (com.android.support:appcompat-v7:28.0.0)
Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/support/appcompat-v7/28.0.0/appcompat-v7-28.0.0.aar'.
Could not GET 'https://dl.google.com/dl/android/maven2/com/android/support/appcompat-v7/28.0.0/appcompat-v7-28.0.0.aar'.
Connect to dl.google.com:443 [dl.google.com/<IP_ADDRESS>] failed: Connection timed out: connect

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 26s
Gradle task 'assembleDebug'... Done                         27.2s
Gradle task assembleDebug failed with exit code 1 **

The connection is timing out. Please confirm that you have a good internet connection.

Connection is good. I just finished using it to clone the plugin project now in fact. Let me try to run the example project

Connection is good. I just finished using it to clone the plugin project now in fact. Let me try to run the example project

The case is the same when I try to run the example project

Please, can you  click this link https://dl.google.com/dl/android/maven2/com/android/support/appcompat-v7/28.0.0/appcompat-v7-28.0.0.aar and let me know what happens?

I'm having similar issue on Android. The internet is very okay and was able to download the file in the link above effortlessly.

For some reasons I don't know, it now runs. I think it's a problem with dependency downloads on my end. If it persists again, I can reopen the issue


String literal argument for "syntax match" command is parsed as comment

how it looks:

codesnippet + tree:
syn match MatchGroup "this should be a string literal" skipwhite

command [0, 0] - [1, 0]                 | syn
  command_name [0, 0] - [0, 3]          | match MatchGroup1
  arguments [0, 4] - [0, 20]
    command_argument [0, 4] - [0, 9]
    command_argument [0, 10] - [0, 20]
  comment [0, 21] - [0, 64]             | "this should be a string literal" skipwhite

found this bug while looking at the tags.vim syntax file

Should have been fixed in latest master.


docs: add kotlin android free courses

This PR should add the following free courses to the README:

Developing Android Apps with Kotlin
Advanced Android with Kotlin

Thanks for the updates @rosariopfernandes!


[consulCatalog] is not read when running storeconfig command

Do you want to request a feature or report a bug?
Report a bug
What did you do?
I've the following traefik.toml file
debug = true
InsecureSkipVerify = true
defaultEntryPoints = ["http"]
[entryPoints]
	[entryPoints.http]
		address = ":80"

[accessLog]

[web]
	address = ":8080"

[consulCatalog]
	endpoint = "ENDPOINT:18500"
	domain = "DOMAIN.com"
	prefix = "traefik"
	exposedByDefault = true
	frontEndRule = "Host:{{.ServiceName}}.{{Domain}}"
	watch = true

I want to have it injected in my traefik consul server with the following command
docker run --volume .:/home registry.company.com/tools/traefik:v1.4.0-rc2-alpine storeconfig --logLevel=DEBUG --web --consul --consul.endpoint=<IP_ADDRESS>:18500 --configFile=/home/traefik.toml

which results in
2017/09/18 15:24:15 Storing configuration: {"GraceTimeOut":10000000000,"Debug":false,"CheckNewVersion":true,"AccessLogsFile":"","AccessLog":null,"TraefikLogsFile":"","LogLevel":"DEBUG","EntryPoints":{},"Cluster":null,"Constraints":[],"ACME":null,"DefaultEntryPoints":[],"ProvidersThrottleDuration":2000000000,"MaxIdleConnsPerHost":200,"IdleTimeout":0,"InsecureSkipVerify":false,"RootCAs":null,"Retry":null,"HealthCheck":{"Interval":30000000000},"RespondingTimeouts":{"ReadTimeout":0,"WriteTimeout":0,"IdleTimeout":180000000000},"ForwardingTimeouts":{"DialTimeout":30000000000,"ResponseHeaderTimeout":0},"Docker":null,"File":null,"Web":{"Address":":8080","CertFile":"","KeyFile":"","ReadOnly":false,"Statistics":null,"Metrics":null,"Path":"","Auth":null,"Debug":false,"CurrentConfigurations":null,"Stats":null,"StatsRecorder":null},"Marathon":null,"Consul":{"Watch":true,"Filename":"","Constraints":[],"Trace":false,"DebugLogGeneratedTemplate":false,"Endpoint":"<IP_ADDRESS>:18500","Prefix":"traefik","TLS":null,"Username":"","Password":""},"ConsulCatalog":null,"Etcd":null,"Zookeeper":null,"Boltdb":null,"Kubernetes":null,"Mesos":null,"Eureka":null,"ECS":null,"Rancher":null,"DynamoDB":null}

Please notice the "ConsulCatalog":null part.
What did you expect to see?
I would have expected to have my parameters sent to Consul storage
What did you see instead?
Nothing is sent to consul and the storage value at traefik/consulcatalog remains empty.
Also note that, if I put all parameters on the command line like this (long text), parameters are correctly injected in Consul
docker run --volume .:/home registry.adeo.com/sirius-tools/traefik:v1.4.0-rc2-alpine storeconfig  --logLevel=DEBUG --web --consul --consulCatalog --consul.endpoint=ENDPOINT:18500 --consulCatalog.watch=true --consulCatalog.endPoint=ENDPOINT:18500 --consulCatalog.domain=DOMAIN.com --consulCatalog.exposedByDefault=true --configFile=/home/traefik.toml

Output of traefik version: (What version of Traefik are you using?)

{
 "GraceTimeOut":<PHONE_NUMBER>0,
 "Debug": false,
 "CheckNewVersion": true,
 "AccessLogsFile": "",
 "AccessLog": null,
 "TraefikLogsFile": "",
 "LogLevel": "DEBUG",
 "EntryPoints": {},
 "Cluster": null,
 "Constraints": [],
 "ACME": null,
 "DefaultEntryPoints": [],
 "ProvidersThrottleDuration":<PHONE_NUMBER>,
 "MaxIdleConnsPerHost": 200,
 "IdleTimeout": 0,
 "InsecureSkipVerify": false,
 "RootCAs": null,
 "Retry": null,
 "HealthCheck": {
  "Interval":<PHONE_NUMBER>0
 },
 "RespondingTimeouts": {
  "ReadTimeout": 0,
  "WriteTimeout": 0,
  "IdleTimeout":<PHONE_NUMBER>00
 },
 "ForwardingTimeouts": {
  "DialTimeout":<PHONE_NUMBER>0,
  "ResponseHeaderTimeout": 0
 },
 "Docker": null,
 "File": null,
 "Web": {
  "Address": ":8080",
  "CertFile": "",
  "KeyFile": "",
  "ReadOnly": false,
  "Statistics": null,
  "Metrics": null,
  "Path": "",
  "Auth": null,
  "Debug": false,
  "CurrentConfigurations": null,
  "Stats": null,
  "StatsRecorder": null
 },
 "Marathon": null,
 "Consul": {
  "Watch": true,
  "Filename": "",
  "Constraints": [],
  "Trace": false,
  "DebugLogGeneratedTemplate": false,
  "Endpoint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "Prefix": "traefik",
  "TLS": null,
  "Username": "",
  "Password": ""
 },
 "ConsulCatalog": {
  "Watch": true,
  "Filename": "",
  "Constraints": [],
  "Trace": false,
  "DebugLogGeneratedTemplate": false,
  "Endpoint": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "Domain": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "ExposedByDefault": true,
  "Prefix": "traefik",
  "FrontEndRule": "Host:{{.ServiceName}}.{{.Domain}}"
 },
 "Etcd": null,
 "Zookeeper": null,
 "Boltdb": null,
 "Kubernetes": null,
 "Mesos": null,
 "Eureka": null,
 "ECS": null,
 "Rancher": null,
 "DynamoDB": null,
 "ConfigFile": ""
}

If applicable, please paste the log output in debug mode (--debug switch)
There is no complementary output available for the storeconfig command in that context.

I think that ConsulCatalog is empty because file  /home/traefik.toml does not exist.

Since I'm using the storeconfig command, I do not expect any traefik.toml to exist. Moreover, the content of the consul part is copied.

So I have found the storeconfig provides ZERO error output.
I suspect your issue is that consul is on port 8500 not 18500.
I had a similar issue I could not troubleshoot because it wouldn't tell me it didn't like the hostname.

Hi @Riduidel, I do some tests on my side with version traefik:v1.4.2-alpine and it is working as expected.
Could you try with the last version v1.4.2 please ?

I'll close the issue due to inactivity but feel free to re-open if needed.


Render Drawn Gizmos in Game View

Hey, i really dig this tool! I was wondering if these Shapes/Gizmos can be displayed in the Game View? Is there any config I need to setup or is it something than is currently not implemented?
Thanks nevertheless!

Which Unity version and which package version are you using?

The shape can be displayed in the game view if you enable gizmos in the game view. (with branch 3.0 and Unity6)

I'm using Unity v2022.3.7 and using package version 2.3.0.
I was trying to render a Shape.Text and on the Game View to match fairly what i see in the Scene View.


About Nonlinear Warping

Hi Alex,
I have a question about nonlinear warping you mentioned in Discovering Precise Temporal Patterns in Large-Scale Neural Recordings through Robust and Interpretable Time Warping, 2020.

Fig.1C shows that for all trials the template time and clock time have little difference at the begining and ending. However when applying this technique to High-performance brain-to-text communication via handwriting, 2021, the warp function looks different. This paper use your time warp technique to warp all the single letter motor imaginary neuron activity data to an average template.

Take 'L' for example. the warping function shows that the clock time and aligned time have little difference at the beginning and big difference in the end. I am confused by this phenomenon since after alignment, raw data would nonlinearly map to the template and the start time should change as the same level as end time. Could you please help me with this confusion? Thanks!
Best regards,
Dongming

Fig.1C shows that for all trials the template time and clock time have little difference at the begining and ending.

I'm not exactly sure that the figure shows that. There is a big spread in the top two plots (shift-only and linear time warping) around t=0 and t=1. The DTW barycenter averaging (bottom plot) is a different method which constrains there to be no spread in the warping functions and t=0 and t=1.

when applying this technique to High-performance brain-to-text communication via handwriting, 2021, the warp function looks different

They used an older version of the time warping code -- available here: https://github.com/ganguli-lab/twpca -- the essential ideas behind the model are the same, but the nonlinear warping functions are fit via gradient descent. That version of the code also let you add constraints (e.g. all warping functions must go through the origin -- which it seems may be an added constraint in this plot).

Hi Alex,
Thank you very much for your detailed instructions.

That version of the code also let you add constraints (e.g. all warping functions must go through the origin -- which it seems may be an added constraint in this plot).

Since I could reproduce the plot, I checked the constraints and found the origin index set to None. From my perspection, I thought this mean no constraints of pinned start added. However, when I changed the origin index from None to 0, the plot remains the same. I wonder if a start point must set and if origin index is none, it would be default set to 0. Thanks!
Best regards,
Dongming


bazel rules

Would this group be open for me adding a bazel build file, some rules and macros?
Currently, I am pulling in k8s-alpha via a bazel http_archive and creating a jsonnet_library out of them. But it would be lovely to just be able to grab this repository and build them directly.

Since there is no build system yet - just do a PR and we can go from that?

I was planning to automate it through Github actions for now. I'm not familiar with Bazel.

The github actions are now in place.
The most common way to pull in jsonnet libraries is currently through jsonnet-bundler, this also does leverages the http-archive afaik. Maybe a jsonnet_bundler bazel rule could be a thing? Or maybe the jsonnet_library could build-in the http_archive rule?
My main question is: why put the burden of integrating into someone else's CI system on the source files?

It is a common pattern to have this wrapper in lib/k.libsonnet, for example this works well with ksonnet-util on which quite a bit of libraries depend upon.

Judging on above discussion, I believe the original question was answered with a suggested solution by @0xIDANT. I think we can close it based on that.


Running Migrations by Default

I notice with the default installation Rocketeer will run 'composer install' on my Laravel app but it is not running migrations. Is there something I need to do to enable that or do I have to write a custom task?

Hi
Sorry if i missed out but i did not find the document still for this issue. Can you please point me to that?
Thanks


Order of x !== null and typeof x === "object" produce different guards

TypeScript Version:  4.1.0-dev.20200920
Search Terms: type guard unknown null typeof object
Code
declare const something: unknown;

let obj: object;

if (typeof something === "object" && something !== null) {
    // Works fine ✓
    obj = something;
}

if (something !== null && typeof something === "object") {
    // 💥 Type 'object | null' is not assignable to type 'object'.
    obj = something;
}

Expected behavior:
The order in which the type not null guard and a typeof guard is applied, should not matter since none of them have side-effects and the and operator is commutative.
Actual behavior:
When applying a "strict not null" (!== null) type guard before a typeof object guard (typeof .. === "object") the not null guard is forgotten.
Playground Link: Link to playground.
Related Issues: This is the closest I got https://github.com/microsoft/TypeScript/issues/32798, but it seems to be caused specifically by a non-strict equal operator.

Duplicate of #28131. Found with null typeof object


googleai: return err not log.Fatal when stream get error

the log.Fatal will print the error and exit the program. https://pkg.go.dev/log#Fatal

Fatal is equivalent to Print followed by a call to os.Exit(1).

But the user may have written a series of error handling functions, and I think we should throw the error to the user to deal with, rather than forcing the user's program to stop.
One error that can be reproduced manually is when the request rate limit of the gemini is exceeded.
example: (https://github.com/Abirdcfly/langchaingo-google-stream-exit-early)
// Set the API_KEY env var to your API key taken from ai.google.dev
package main

import (
	"context"
	"fmt"
	"log"
	"os"

	"github.com/tmc/langchaingo/llms"
	"github.com/tmc/langchaingo/llms/googleai"
)

func main() {
	ctx := context.Background()
	apiKey := os.Getenv("API_KEY")
	llm, err := googleai.New(ctx, googleai.WithAPIKey(apiKey))
	if err != nil {
		log.Fatalf("Failed to create client: %v", err)
	}

	prompts := make([]string, 60)
	for i := 1; i <= 60; i++ {
		prompts[i-1] = fmt.Sprintf("Who was the %d person to walk on the moon?", i)
	}
	for _, prompt := range prompts {
		fmt.Printf("\nHuman:\t%s\nstream:\t", prompt)
		answer, err := llms.GenerateFromSinglePrompt(ctx, llm, prompt, llms.WithStreamingFunc(func(ctx context.Context, chunk []byte) error {
			fmt.Print(string(chunk) + ".")
			return nil
		}))
		if err != nil {
			log.Fatalf("Failed to generate: %v, the prompt is:%s", err, prompt)
		}
		fmt.Printf("\nAI:\t%s\n", answer)
	}
}

when before current pull request: (https://github.com/Abirdcfly/langchaingo-google-stream-exit-early/actions/runs/8228267597/job/22497418099#step:4:516)
Human:	Who was the 23 person to walk on the moon?
2024/03/11 05:50:50 googleapi: Error 500:
exit status 1
stream:

when after current pull request:(https://github.com/Abirdcfly/langchaingo-google-stream-exit-early/actions/runs/8228342012/job/22497623326#step:4:428)
Human:	Who was the 1 person to walk on the moon?
2024/03/11 06:01:40 Failed to generate: error in stream mode: googleapi: Error 500:, the prompt is:Who was the 1 person to walk on the moon?
exit status 1
stream:

cc @eliben @tmc


🐛 [firebase_messaging] Android "title" and "body" get priority over "titleLocKey" and "bodyLocKey"

Bug report
When the user receives a notification, I would like it to be translated using the keys in the strings.xml. If the user has not updated the app, it should then use the title and body parameters to display a default text (probably in English).
I don't know if this is the expected behaviour, it's not super clear in the docs.
Steps to reproduce
Steps to reproduce the behavior:
    {
      "notification": {
        "title": "Default title", // If you remove these 2 lines, then the xLocKey will be used
        "body": "Default body"
      },
      "android": {
        "notification": {
           "titleLocKey": "hello_world",
           "bodyLocKey": "hello_world"
        }
      }
    }

Expected behavior
I would expect the app / OS to first look if the translations are in the strings.xml file and if not, use the title and the body as a backup.
Sample project
I can create a Sample project if necessary.
Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
firebase_core: ^1.20.0
firebase_messaging: ^12.0.1

@GP4cK
This is something probably need to be addressed at native side rather than at client, because flutterfire plugins are wrappers around native firebase sdks and send, receive data through Dart. So I suggest you to file this issue here https://github.com/firebase/firebase-android-sdk/issues for further resolution.
Closing from here. If you disagree, write in comments and I'll reopen it.


add indexer

added simple indexer for comfortable access in following format: array[x,y]

Hello @kinselok, thanks for your contribution 😄 this is a good idea.
Could you just swap the get/set order? Feels more natural that way.
After that I will merge it!

Hello @Eldoir, thanks for this repo) I didn't even notice the unusual order of get/set. My bad)


Failed example in chapter 2

Dear @avigad,
My friend @pondering sent me an email reporting an issue in the code example in chapter 2 (2.7 Implicit Arguments).
#+BEGIN_SRC lean
namespace hide
constant list : Type → Type

namespace list
  constant cons : ΠA : Type, A → list A → list A
  constant nil : ΠA : Type, list A
  constant append : ΠA : Type, list A → list A → list A
end list

-- BEGIN
open list

constant  A : Type
constant  a : A
constants l1 l2 : list A

check cons A a (nil A)
check append A (cons A a (nil A)) l1
check append A (append A (cons A a (nil A)) l1) l2
-- END
end hide
#+END_SRC

The last three checks generate errors. Could you take a look at and fix it?
@leodemoura, I remember that you mentioned a way to automatically check all the code in .org files. Could you elaborate it more? I'll integrate it in .travis.yml file so that we will get email notifications for any errors in the tutorial.

The script is called test.sh. The syntax is:
./test.sh <path-to-lean>  <org-file>

Here is an example:
 ./test.sh ../lean/bin/lean 02_Dependent_Type_Theory.org

Unfortunately, the script does not catch the problem you reported. The problem is that in the web version we automatically import standard. So, the behavior is different.
When we import standard, there are two namespaces hide.list and list, and open list is ambiguous. I modified test.sh to also import standard. I will also fix other similar problems.

By 7c63933 and 9cb47c1

@leodemoura, thanks!
@avigad, in 3e92bd8ebc842678847ee453ce18015a1bc2f67d, I added test target in the Makefile. You can run make test to test all the lean code in all org files. In case you need to specify lean binary, you can do it by running LEAN_BIN=path/to/lean/binary make test
We also run this in travis and send an email to<EMAIL_ADDRESS>if there is any error.

FYI, travis-ci is using the lean binary in the ppa which is slightliy outdated now. As a result, travis-ci generates generates the following error for make test command:
ERROR executing 10_Structures_Records.org.8.lean, for in_code_block block starting at 159, produced output:
10_Structures_Records.org.8.lean:2:0: warning: imported file uses 'sorry'
10_Structures_Records.org.8.lean:5:7: error: invalid binder, '(', '{', '[', '{{', '⦃' or identifier expected
10_Structures_Records.org.8.lean:6:7: error: invalid binder, '(', '{', '[', '{{', '⦃' or identifier expected
10_Structures_Records.org.8.lean:7:6: error: invalid expression
10_Structures_Records.org.8.lean:10:11: error: invalid binder, '(', '{', '[', '{{', '⦃' or identifier expected

I checked that the problem was already fixed by recent commits in lean repo. I'm sure that this problem is temporary and will be solved once we finish up automating PPA workflow.
FYI, the web page (leanprover.github.io/tutorial) is still updated even if there is an error in make test.

Thanks, Leo, for fixing the problem.
On Sun, Jan 18, 2015 at 1:36 PM, Soonho Kong<EMAIL_ADDRESS>wrote:

FYI, travis-ci is using the lean binary in the ppa
https://launchpad.net/~leanprover/+archive/ubuntu/lean which is
slightliy outdated now. As a result, travis-ci generates generates the
following error for make test command:
ERROR executing 10_Structures_Records.org.8.lean, for in_code_block block starting at 159, produced output:
10_Structures_Records.org.8.lean:2:0: warning: imported file uses 'sorry'
10_Structures_Records.org.8.lean:5:7: error: invalid binder, '(', '{', '[', '{{', '⦃' or identifier expected
10_Structures_Records.org.8.lean:6:7: error: invalid binder, '(', '{', '[', '{{', '⦃' or identifier expected
10_Structures_Records.org.8.lean:7:6: error: invalid expression
10_Structures_Records.org.8.lean:10:11: error: invalid binder, '(', '{', '[', '{{', '⦃' or identifier expected
I checked that the problem was already fixed by recent commits in lean
repo. I'm sure that this problem is temporary and will be solved once we
finish up automating PPA workflow.
FYI, the web page (leanprover.github.io/tutorial) is still updated even
if there is an error in make test.
—
Reply to this email directly or view it on GitHub
https://github.com/leanprover/tutorial/issues/25#issuecomment-70419586.

@soonhokong I can't update the ppa from home. I don't have the key on my home computer.
I will update the ppa first thing in the morning.
If you have your key with you, you can fix the problem by running the update.sh script.

@leodemoura, I ran update.sh. Now, we don't have the problem any more:
https://travis-ci.org/leanprover/tutorial/jobs/47467828

Thanks!

Thanks.


Question about squiggle algorithms

I've noticed an interesting issue while observing the current.
Previously, the dwell time in the Tombo resquiggle method for nanopore sequencing was an uncertain value. However, in the new BAM file ‘mv’ tag and in your figure, it appears to take the format of n multiplied by a unit length.
1.  I want to know why it changed and which will be better.
2. Is the algorithm for Squiggle still the same as Tombo introduced?
3. It seems in some cases in your example. still need to run f5c resquiggle. I wanna know when I need to run it. Will guppy or dorado return the squiggled data directly?

Thank you very much for your response.

Hi @JeremyQuo,
There are different ways you can approach the read to signal alignment.

I am not familiar with tombo. I once tried installing tombo and gave up. I think it is not even supporting latest fast5 files. You can get a crude alignment using the move table that is in the basecalled bam file.
F5c resquiggle should be different from tombo. Squigualiser does not support tombo output yet. Supporting tombo output on squigualiser is on the todo list. Not a priority though. Once it is supported, you can visualise different alignments. But I suggest you to use move table and f5c resquiggle alignment plots to compare for the moment. You can also simulate and plot the read you are interested in using squigualator and add it to the comparison.
F5c resquiggle is a more fine alignment than the move table in most cases. As you have noted, move table's alignment boundaries are always a multiple of the stride. This is not the case with f5c resquiggle.


Include right side tab in url hash for group settings edit UI.

First commit is to not pass unnecessary parameter to a function.

Third commit is to include right side tab in url hash.
Fourth commit is to fix the url opened by clicking on stream name in message view header.

Fixes:  #28678

Screenshots and screen captures:

Self-review checklist

[ ] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[ ] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[ ] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

@timabbott Let me know if you need me to test.

Added commits to validate the URLs. Also added commits to not show the creation form when user is not allowed to create streams/groups if user tries to visit "#new" link directly.

Last couple of pushes were just for a rebase.
I noticed that user can open a role-based system group by manually typing the ID in the url. Do we want to allow this as we do not show those groups in the left sidebar currently? If we want to allow that then we should probably fix the UI to mention that the groups are readable and disable the settings which we do not currently. @alya FYI.

There is a bug in main while opening stream settings by clicking on stream name in the navbar header in a message view where we show the content of all three tabs while marking the "General" tab as active. The bug is most probably due to the recent refactoring changes in the code and would be fixed by this PR.

Hmm, I would think that we should just disable accessing role-based system groups by manually typing the ID in the url, given that we don't show them elsewhere.

I don't think that's necessarily the right strategy -- possibly we may want the system groups to be displayable (and just immutable) for reference purposes. Probably I'd just leave it as-is and come back to that question later when we have a clearer idea of whether there are features (like showing what settings us that group) where it might be useful.

This looks great, merged, thanks @sahil839! And sorry for the somewhat slow review.

I don't think that's necessarily the right strategy -- possibly we may want the system groups to be displayable (and just immutable) for reference purposes. Probably I'd just leave it as-is and come back to that question later when we have a clearer idea of whether there are features (like showing what settings us that group) where it might be useful.

Ok. But we do not disable the settings like "Who can mention this group" for system groups, we can atleast disable those for now since we do not allow changing them.


Update .gitignore file

One of the main changes is to allow git to store files called input. There will be a Java package called org.mobilitydata.gtfsvalidator.input, so we need to store its directory input.

Awesome thks for all those path. I do not know if they have them there https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore
LGTM!

My pleasure!

It's either me who is really wrong or there is a GitHub bug, but I cannot add a commit to this pull request.
Here is my branch gitignore where you see a new commit called "Ignore the whole .idea directory..."
But this commit is not present in the current pull request.

My last commit is now present in the pull request. I guess that GitHub was waiting for tests to pass.

LGTM, thanks @aababilov!

Thanks for the review!


Windows.Media.SpeechSynthesis.SpeechSynthesizer.SpeechSynthesizer ctor throws

Please, describe cases when the ctor can throw for example FileNotFound exception here
https://github.com/MicrosoftDocs/winrt-api/blob/docs/windows.media.speechsynthesis/speechsynthesizer_speechsynthesizer_1221375020.md
or here https://docs.microsoft.com/en-us/uwp/api/windows.media.speechsynthesis.speechsynthesizer#remarks

@Karl-Bridge-Microsoft -- Can you help with connecting the correct person on the speech synthesis team to loop in here to see if they can help with addressing this issue?

Thanks for your suggestion! We don't typically document exceptions for UWP constructors. That said, I've passed this issue on to our API documentation v-team for further assessment. They will need to come up with a global recommendation.


docs: clarify premium price id in constants.ts

When not setting STRIPE_PREMIUM_PLAN_PRICE_ID to one's own id Stripe will not be able to find the product. This will fail with a 500 error.
Fixes #7

Good spot and fix! Thank you very much. LGMT.


allow downgrade should work

Hi, when I want to ensure a specific older version of a package to be installed I get    Use --allow-downgrade or --force to attempt to upgrade to older versions
Ideally because I am asserting a specific version of a package it should downgrade.

This works now.
Just set the allow downgrade option in install_options

IIRC we can have set a feature switch so that this is not required to be passed everytime. However this is not an issue with the provider, please followup at https://github.com/chocolatey/choco/issues/new
HTH

thanks @ferventcoder


CloudTrial to ElasticSearch

Hi Team,
We having nearly 20 AWS accounts and we centralised CloudTrail logs to a single management account. We have a custom build ElasticSearch (5.6) in the EC2 in the same account.
Now we are trying to push all CloudTrail data from S3 bucket to ES (with put object as event trigger for lambda) using a lambda function. When using this we are facing some challenges while pushing the data to ES.
While going through lambda logs it is identified that some event response data (in json) is not maintaining proper structures. We are using python codes in lambda functions
Could you please help us to find a way to put all the CloudTrail events to ElasticSearch with out any failure.

I realise this is a year-old question. But if the goal is getting CloudTrail into ElasticSearch, this Lambda function is probably not the way you want to do it. The documentation on CloudTrail talks about how you get CloudTrail going to CloudWatch Logs. Then, CloudWatch Logs can stream directly to ElasticSearch.


Site Archive Inconsistencies

I'm backing up games on Itch and I've noticed multiple inconsistencies with the archived pages generated by itch-dl.

Cyrillic (All unicode?) is garbled.
'Updated' and 'Published' dates are missing under 'More information'
Some images like the cover and screenshots seem to be archived but not linked to the local mirror, and other images are missing like all store banners and user avatars.
Developer log posts are not saved, and if I understand correctly the devlogs can also include past versions of software that itch-dl does not download. That would be super slick if itch-dl could back up all the past versions as well with an argument like --devlog.
Useful information in community posts is also not archived.

I tried with and without using --mirror-web but there was not much of a difference. Screenshots are saved when specified but I did not note any additional benefit.

Looks like sites primarily in non-Latin scripts got their encoding guessed incorrectly and the output ended up garbled - I've released 0.3.3 with a quick fix, check it it resolves your issues. I've tested it on Cyrillic and CJK pages which now look correct.
Looks like published/updated/etc dates don't show up for some games (not all...?) if the webpage request is unauthenticated (requires proper session cookies, not just the API key). Need to investigate.
Itch stores older versions separately on another API endpoint, they're not connected with devlogs directly. Either way, the downloader currently fetches just the latest version, but yup, it would be nice to be able to grab those as well. I've added #9 to track this in a separate issue.

But in general, yeah, the webpage mirroring feature is very barebones - the intended use case was to scrape just the front page and screenshots attached there, as that often includes instructions not included with games themselves. Getting image links correct, all the devlogs/comments, etc would require a lot more postprocessing.
I'll try to find some time to fix up dates and at least partial site parsing in the coming weeks, but I've got a lot on my plate right now until end of February, so can't say when :/

Thanks for your careful consideration.
Conceptually, I'm think I'm so keen on accurate mirroring because I can imagine a future where itch doesn't exist anymore, and this tool was used to back up a bunch of games and post them on archive.org. It would be a shame if anything was lost.

Hey, I think a very good way to save webpages could be Monolith https://github.com/Y2Z/monolith
It saves the complete site in one html file.


Implement .editorconfig file

For unifying code style between IDE's and editors.

Thanks! Keep 'em coming 😄


"depthFrom" setting ignored for section numbering (since v2.1.0?)

Section 3.2 of the README.md says "Tips:Section of header is begin with depthFrom", and the image shows header numbers being generated starting at the second level. That is, with depthFrom:2 and given the input:
# Title
## Section
### Subsection

I would expect output:
# Title
## 1. Section
### 1.1 Subsection

It appears things worked this way in version 2.0.0, but as far as I can tell stopped working in 2.1.0. Given the same input as above, the output in all newer versions is:
# 1. Title
## 1.1 Section
### 1.1.1 Subsection

I will comeback to this on this holiday

This is an annoying regression. Look forward to a fix.
Is it possible to install a previous version?

Adding numbers seems to be broken in the current release. I've tried "insert/update sections" in addition to generating the TOC. I'm not getting any section numbers. From is 1 and To is 6.

I have solved this issue.
because usually only one header at level 1.  so I changed the code to force the order action start from level 2 or deeper level.
I forked 3.0.3 and push this repos. but it seems not takes effect.
I'm a beginner of Git, please contact me at alex#livepdm.com if needed.

@livepdm Thank you for your work 😄 . You edited a number of files. I need to test them carefully before merge to master branch. Currently, I busy with my studies. I will come back to this when I have spare time.


Waypoint Screen is in Fullscreen to wide on the left and right side of the screen

Hi,
I hope you can a fix for this Problem make. The Screen of who all Waypoints was safe and create was in Fullscreen to wide on the left and right side of the Screen and we can the Searchbar etc. no see.

What is your

screen resolution?
screen size?
GUI scaling setting set to? (In Minecraft settings)

1: screen resolution - 1920 X 1080
2: screen size - I have a "HP 24o" = 24 Zoll (inch) (60,96 cm)
3: GUI Scaling Setting - AUTO

Set your GUI scale to "Normal" (or "Large")

okay I will test it


Provide a Capability for lighting entities/TEs

Implemented a LightProviderCapability which stores the basic data of a Light (minus position, as that is already stored on anything you'd be attaching the capability to), and added the requisite code to add any such capability-attached-objects to the list of lights.
This allows for modders to easily add lighting functionality to existing (meaning vanilla or outside modded) entities or tile/entities through the AttachCapabilityEvent

Please use GatherLightsEvent as to not bog down everyone else with needless hasCapability executions.

Yeah, given the performance concerns, I'm going to close this PR.


change color issue

changing colors does not have effect - you have to change the text
if you change colors the qr code disappears

did you manage to reproduce this  ?


Assignment-operator from temporaries overwrites ID

Consider the following, in which the final assertion is assumed to hold:
grb::Vector< T > a( n ), b( n );
size_t a_id = grb::getID( a );
assert( grb::getID( b ) != a_id );
// ...
a = b;
assert( grb::getID( a ) == a_id );

Two items:

this is currently guaranteed in all backends for copy-assignment, but is never tested;
this seems currently not guaranteed for move-assignment.

This issue is to introduce such a test, and confirm whether the latter issue indeed exists

Hi @anyzelman, I think that you assigned this due to a potential relation to #279. However, I haven't made any investigations about the items mentioned in this issue, i.e. there is no such branch.


config should be done with environment variables, not a file

Environment variables will remove configuration from code, a good step. let's remove references to 'app.get('blah')' in the server. I know this is the way feathers wants to do it, but it's frustrating for deployments.

fixed in dev branch


adding AWS Gateway Controller implementation

What type of PR is this?

/kind documentation
What this PR does / why we need it:
Adds the AWS Gateway Controller implementation to the implementations page.
Which issue(s) this PR fixes:

Fixes # NA
Does this PR introduce a user-facing change?:

Added AWS Gateway API Controller to the list of Gateway API implementations

Hi :wave: is there some overlap with this and https://github.com/kubernetes-sigs/gateway-api/pull/1916?

Hi, yes, we can close this PR.


Added support for new DeviceId; Updated README

Added support for device named 'Garage Door Opener WGDO'
README.md: Added zip command - You can't just zip up the parent directory.
README.md: Handler function prefix is the file name - "main.", not "lambda_function."

Thank you for fixing the README!

I used your updated files and had it working easily! Thanks.

@jbnunn - can you merge this? People are referring to my README from multiple issues. Thanks :)

Sorry @wblakecaldwell  ... had notifications going to a folder i wasn't checking, I'm on top of this now :)

Thanks! :)


[help]Is there any tutorial for how to use ESim manager API?

I'm trying to us ESim API, and I follow this help:
ESimManager Class

and add the custom capability required in this help:
Custom capabilities

`
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:r="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
xmlns:uap4="http://schemas.microsoft.com/appx/manifest/uap/windows10/4"
IgnorableNamespaces="uap mp r">
.....

<r:Capability Name="cellularDeviceIdentity" />

<r:Capability Name="cellularDeviceControl" />

<r:Capability Name="cellularMessaging" />

<uap4:CustomCapability Name="Microsoft.eSIMManagement_8wekyb3d8bbwe"/>

`
but when I run this uwp, I got this error:
DEP0700: Registration of the app failed. [0x80073CF6] Error 0x80070002: The system was unable to register the windows.capability extension when preparing to process the request: The system cannot find the file specified.
Does this capability must be authoriazed ?
Anyone can help me? Thank you so much.

This is not a question about a sample in this repo. You can open a support case with our Developer Support team for assistance.

Visit http://aka.ms/storesupport and sign-in with your Microsoft account
Under the “App Development” section choose "Windows 10 universal app development", then choose the appropriate problem type and category to get engaged through a formal support channel.

Ok, thank you for your help.

Ok, thank you for your help.

Hi, I know it's a long time ago but could you maybe let me know if you got it running and if so how? Thanks :)


When one user hangs up the call - the second one continues to run the call time.

Hello, I have a problem when making calls between two users when one hangs up the second one continues to run the call time. How can you make the receiver go down as well as with usual phone calls?
on the js side this code does not give the expected behavior
function hangup() {     RNCallKeep.endAllCalls();     setCallInProgress(false);   }
/make-call
exports.handler = function(context, event, callback) {
  const from = 'client:'+event.from;
  const twiml = new Twilio.twiml.VoiceResponse();

  var to = event.to;
    if (!to) {
      twiml.say('Congratulations! You have made your first call! Good bye.');
    } else {
      const dial = twiml.dial({callerId : from, action: '/hangup', method: 'POST'});
      dial.client(to);
    }
    callback(null, twiml);
};

an attempt to redirect a function from the server to a TwiML does not bring any result either
/hangup
exports.handler = function(context, event, callback) {
    const twiml = new Twilio.twiml.VoiceResponse();
    twiml.hangup();
    callback(null, twiml);
}

Hi,
What versions of CallKeep, Firebase Messaging and VoIP Push Notification are you using ?

Hi, im use the latest:
"react-native-callkeep": "^4.2.0",
"react-native-voip-push-notification": "^3.3.0",
"@react-native-firebase/messaging": "^12.0.0"

on the versions recommended by you in the example, the situation is the same, but just in case I will double-check and write the result here tomorrow

  "@react-native-firebase/app": "^11.5.0",
  "@react-native-firebase/messaging": "^11.5.0",
  "react-native-callkeep": "^4.0.1",
  "react-native-voip-push-notification": "^3.1.0"

still on the other side do not hang up at the end of the call

Hi, sorry the documentation is confusing (I shall update it soon).
Try with the exact versions:
"@react-native-firebase/app": "11.5.0",
"@react-native-firebase/messaging": "11.5.0",
"react-native-callkeep": "4.0.1",
"react-native-voip-push-notification": "3.1.0"
I did not test this library with latest versions.
If it still doesn't work, try to reproduce the bug with the example app.

So I did some research and determined that listener subscriptions do not work for me, since I separated the logic in the application as early as possible, I receive a token, initialize RNTwilioPhone and subscribe to listeners (logs do not work here) to receive calls when the application is minimized / killed.
I make calls from another page intended for calls, because I cannot launch the application from this page (i need other initial page).
Trying to fix this, I moved the listener subscriptions inside the call page and this is what I got:

 ios call to android => android hangup via CallKeep (success)
 ios call to android => android hangup via App (success)
 ios call to android => ios hangup via App (fail)
 android call to ios => ios hangup via CallKeep (success)
 android call to ios => ios hangup via APP (success)
 android call to ios => android hangup via CallKeep (fail)

In any case, I can only cancel the call from the device to which they are calling, from the device from which I am calling, I cannot cancel the call even if it has not yet reached the addressee and I canceled it, the addressee will still receive it and can answer with sound.
I need help with canceling a call and moving the subscription logic up in the application to successfully receive a call when the application is not active.
Do you have any ideas?

So I did some research and determined that listener subscriptions do not work for me, since I separated the logic in the application as early as possible, I receive a token, initialize RNTwilioPhone and subscribe to listeners (logs do not work here) to receive calls when the application is minimized / killed.
I make calls from another page intended for calls, because I cannot launch the application from this page (i need other initial page).
Trying to fix this, I moved the listener subscriptions inside the call page and this is what I got:
 ios call to android => android hangup via CallKeep (success)
 ios call to android => android hangup via App (success)
 ios call to android => ios hangup via App (fail)
 android call to ios => ios hangup via CallKeep (success)
 android call to ios => ios hangup via APP (success)
 android call to ios => android hangup via CallKeep (fail)

In any case, I can only cancel the call from the device to which they are calling, from the device from which I am calling, I cannot cancel the call even if it has not yet reached the addressee and I canceled it, the addressee will still receive it and can answer with sound.
I need help with canceling a call and moving the subscription logic up in the application to successfully receive a call when the application is not active.
Do you have any ideas?

Hi, Twilio phone example has the same problems, I also tried native Voice Quickstart for Objective-C from Twilio docs and they work as expected.
Unfortunately I do not know well obj-c enough to find the difference and the problem.

Hi,
I will try to reproduce on the example app when I find some time.

Sorry I could not reproduce.

@MrHertal  I am also facing same issue If during the call, the app is killed from the background, the call does not get ended from customer's end.


And all of this in PowerShell please...

From heading 3 onward. Also, Heading 6 should link to a method using PowerShell.

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

ID: 63df9645-af2c-3cfc-8f65-413912d88efe
Version Independent ID: d2edf564-2c83-f1da-dbf0-dbc41c4948bf
Content: Generate and export certificates for Point-to-Site: PowerShell: Azure
Content Source: articles/vpn-gateway/vpn-gateway-certificates-point-to-site.md
Service: vpn-gateway
GitHub Login: @cherylmc
Microsoft Alias: cherylmc

@SuHwak Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@SuHwak - thank you for your suggestion! I will add it to the queue for the product team to evaluate.

#please-close

Unclear if there were powershell steps provided instead of GUI steps to export root and client cert after generating them?

There were not. We have it in our queue to evaluate.

This is what I have now to generate and apply the certificate(s):
$SelfSignedRootCertificate = @{
    Type = 'Custom'
    KeySpec = 'Signature'
    Subject = "CN=P2SRootCert"
    KeyExportPolicy = 'Exportable'
    HashArgorithm = 'sha256'
    KeyLength = 2048
    CertStoreLocation = "Cert:\CurrentUser\My"
    KeyUsageProperty = 'Sign'
    KeyUsage = 'CertSign'
}

$SelfSignedClientCertificate = @{
    Type = 'Custom'
    KeySpec = 'Signature'
    DNSName = 'P2SClientCert'
    Subject = "CN=P2SClientCert"
    KeyExportPolicy = 'Exportable'
    HashArgorithm = 'sha256'
    KeyLength = 2048
    CertStoreLocation = "Cert:\CurrentUser\My"
    TextExtention = @("<IP_ADDRESS>={text}<IP_ADDRESS>.<IP_ADDRESS>.2")
}

$VpnClientIpsecPolicy = @{
    IpsecEncryption = 'AES256'
    IpsecIntegrity = 'SHA256'
    SALifeTimeSeconds = 86471
    SADataSizeKilobytes = 429496
    IkeEncryption = 'AES256'
    IkeIntegrity = 'SHA384'
    DhGroup = 'DHGroup2'
    PfsGroup = 'PFS2'
}
$objectSelfSignedRootCertificate = New-SelfSignedCertificate `
                                    -Type $SelfSignedRootCertificate.Type `
                                    -KeySpec $SelfSignedRootCertificate.KeySpec `
                                    -Subject $SelfSignedRootCertificate.Subject `
                                    -KeyExportPolicy $SelfSignedRootCertificate.KeyExportPolicy `
                                    -HashAlgorithm $SelfSignedRootCertificate.HashArgorithm `
                                    -KeyLength $SelfSignedRootCertificate.KeyLength `
                                    -CertStoreLocation $SelfSignedRootCertificate.CertStoreLocation `
                                    -KeyUsageProperty $SelfSignedRootCertificate.KeyUsageProperty `
                                    -KeyUsage $SelfSignedRootCertificate.KeyUsage

$objectSelfSignedClientCertificate = New-SelfSignedCertificate `
                                    -Type $SelfSignedClientCertificate.Type `
                                    -DnsName $SelfSignedClientCertificate.DNSName `
                                    -KeySpec $SelfSignedClientCertificate.KeySpec `
                                    -Subject $SelfSignedClientCertificate.Subject `
                                    -KeyExportPolicy $SelfSignedClientCertificate.KeyExportPolicy `
                                    -HashAlgorithm $SelfSignedClientCertificate.HashArgorithm `
                                    -KeyLength $SelfSignedClientCertificate.KeyLength `
                                    -CertStoreLocation $SelfSignedClientCertificate.CertStoreLocation `
                                    -Signer $objectSelfSignedRootCertificate `
                                    -TextExtension $SelfSignedClientCertificate.TextExtention

$objectSelfSignedRootCertificateRaw = [convert]::tobase64string($objectSelfSignedRootCertificate.RawData)

$objectVpnclientipsecpolicy = New-AzureRmVpnClientIpsecPolicy `
                            -IpsecEncryption $VpnClientIpsecPolicy.IpsecEncryption `
                            -IpsecIntegrity $VpnClientIpsecPolicy.IpsecIntegrity `
                            -SALifeTime $VpnClientIpsecPolicy.SALifeTimeSeconds `
                            -SADataSize $VpnClientIpsecPolicy.SADataSizeKilobytes `
                            -IkeEncryption $VpnClientIpsecPolicy.IkeEncryption `
                            -IkeIntegrity $VpnClientIpsecPolicy.IkeIntegrity `
                            -DhGroup $VpnClientIpsecPolicy.DhGroup `
                            -PfsGroup $VpnClientIpsecPolicy.PfsGroup

$objectVirtualNetworkGateway = New-AzureRmVirtualNetworkGateway `
                                -Name $Gateway.Name `
                                -ResourceGroupName $Gateway.ResourceGroup `
                                -Location $Gateway.Location `
                                -GatewayType $Gateway.GatewayType `
                                -VpnType $Gateway.VpnType  `
                                -GatewaySku $Gateway.GatewaySku `
                                -VpnClientProtocol $Gateway.VpnClientProtocol `
                                -VpnClientAddressPool $Gateway.VpnClientAddressPool `
                                -IpConfigurations $objectGatewayIpConfig `
                                -VpnClientIpsecPolicy $objectVpnclientipsecpolicy

$objectMivexLabRootCert = Add-AzureRmVpnClientRootCertificate `
                            -ResourceGroupName $ResourceGroup.Name `
                            -VirtualNetworkGatewayName $Gateway.Name `
                            -VpnClientRootCertificateName "MivexLabAzClientRootCert" `
                            -PublicCertData $objectSelfSignedRootCertificateRaw

$ScriptBlock = {
    $RootCert = gci certificate::CurrentUser\My | ?{$_.Subject -eq 'CN=P2SRootCert'}
    $RootCert.PSParentPath
    $RootCert.Thumbprint

    Write-Host "Certificate::CurrentUser\my\$($RootCert.Thumbprint)"

    Move-Item "Certificate::CurrentUser\my\$($RootCert.Thumbprint)" -Destination Certificate::CurrentUser\Root
}

Start-Process PowerShell.exe $ScriptBlock -Verb RunAs

$VpnClientConfiguration = Get-AzureRmVpnClientConfiguration -Name $Gateway.Name -ResourceGroupName $ResourceGroup.Name

Start-BitsTransfer -Source $VpnClientConfiguration.VpnProfileSASUrl -Destination "$($env:USERPROFILE)\downloads\AzureVPNClient.zip"

Expand-Archive -Path "$($env:USERPROFILE)\downloads\AzureVPNClient.zip" -DestinationPath "$($env:USERPROFILE)\downloads\AzureVPNClient\" -Force

. "$($env:USERPROFILE)\downloads\AzureVPNClient\WindowsAmd64\VpnClientSetupAmd64.exe"

Maybe this will give you guy's/gal's a starting point? Unfortunately the VpnClientSetupAmd64.exe is a GUI only tool. so it needs a couple clicks, but after that the VPN connection is present and working. I've not pasted all of my script, so it might be missing a couple variables... maybe? Please let me know if you need more.

@SuHwak - awesome! I've sent this over to the PMs. Thanks!


Create a single CMake config package for all SPIRV-Cross targets

This PR proposes to have a single CMake Config package to centralize all CMake targets instead of multiple ones.
The idea would be to consume SPIRV-Cross in an another project like this.
find_package(spirv-cross CONFIG REQUIRED)

# ...

target_link_libraries(mytarget
    PRIVATE
        SPIRV-Cross::spirv-cross-core
        SPIRV-Cross::spirv-cross-msl
        SPIRV-Cross::spirv-cross-glsl
        # ...
)

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


Feat: Dart runtime

@Meldiron @PineappleIOnic I removed the function_types package and created it as a part of server for now, as @Meldiron  pointed that we are not going to release extra packages for first release, if we will not be releasing function_types package, we cannot use it in examples. As devs will have no way of getting that package. @Matej Bačo pointed for other strictly typed language as well we are not releasing the types package.


Aviary error in Live Demo

When I go to http://hackathonstarter.herokuapp.com/api/aviary and click "Edit Photo" I receive the following popup:

"There was a problem loading your image provided by URI to the 'url' config key. It is not reachable by the public (and our service at http://featherservices.avairy.com/)"
There's also a javascript error "Uncaught SyntaxError: Unexpected token :"
I understand this is a demo, and so I'm uncertain if this is expected behavior. If it is, some warning on the page to explain this might be useful.

Hi @mritterhoff, that's definitely not an expected behavior. What's normal though is for APIs to change or even shutdown completely, e.g. Mandrill shuts down free tier mail service. With so many different APIs used in the hackathon starter, I usually get notified that something is broken when someone reports it.

Ah, there is your answer:

Where can I find the Aviary SDK?
January 18, 2016 16:08
Adobe Creative SDK   Common Questions
The Aviary SDK is now the Image Editing component in the Adobe Creative SDK. Visit creativesdk.adobe.com to access the latest Image Editing SDK and brand new SDK components by Adobe, offering features like store to Creative Cloud and publish to Behance.
If you’re updating an existing Aviary SDK integration to the Creative SDK, please visit our Migration Guide here.


hi, It's not really a problem, but rather a doubt

I don't know how to see my wifi connection ID, could you help me?

Thank you very much, I don't know English very well, and that complicated me a little, but thank you very much

I really don't understand why it shows this, I went to system information, saw my Nintendo WFC ID, put it in, and it shows that it doesn't exist.


Project Setup Issues Following Documentation

Sorry if this problem has already been addressed or if this was due to an error on my end
While following the tutorial to start a project,  I kept encountering this error during compilation:
-- Configuring done (2.5s)
-- Generating done (0.1s)
-- Build files have been written to: C:/Users/Samue/Documents/MACFE/racecar/firmware/build/MyBlink/cli
Copying compile_commands.json to build for clangd.
cp build/MyBlink/cli/compile_commands.json build/compile_commands.json
process_begin: CreateProcess(NULL, cp build/MyBlink/cli/compile_commands.json build/compile_commands.json, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:28: config] Error 2

Full compilation log

PS C:\Users\Samue\Documents\MACFE\racecar\firmware> make PROJECT=MyBlink PLATFORM=cli
cmake -B build/MyBlink/cli -S. -G"Unix Makefiles" -D PROJECT=MyBlink -D PLATFORM=cli -D PROJECT_NAME=MyBlink --log-level STATUS
Build type: Debug
-- Validating input arguments
--   Verifying MyBlink is a project
--   The directory "C:/Users/Samue/Documents/MACFE/racecar/firmware/projects/MyBlink" exists.
--   Verifying MyBlink is a project - Valid
--   Verifying cli is a platform under MyBlink
--   The directory "C:/Users/Samue/Documents/MACFE/racecar/firmware/projects/MyBlink/platforms/cli" exists.
--   Verifying cli is a platform under MyBlink - Valid
-- Validating input arguments - Success
-- Validating the MCAL Platform
--   Searching for mcal configuration file
--   The file "C:/Users/Samue/Documents/MACFE/racecar/firmware/projects/MyBlink/platforms/cli/mcal_conf.cmake" exists.
--   Searching for mcal configuration file - Found
--   Verifying the cli MCAL exists
--   The directory "C:/Users/Samue/Documents/MACFE/racecar/firmware/mcal/cli" exists.
--   Verifying the cli MCAL exists - Valid MCAL
--   Finding MCAL postbuild file
--   The file "C:/Users/Samue/Documents/MACFE/racecar/firmware/mcal/cli/PostBuild.cmake" exists.
--   Finding MCAL postbuild file - Found
--   Finding MCAL toolchain file
--   The file "C:/Users/Samue/Documents/MACFE/racecar/firmware/mcal/cli/Toolchain.cmake" exists.
--   Finding MCAL toolchain file - Found
-- Validating the MCAL Platform - Success
-- Building "MyBlink" for "cli" with mcal "cli".
CMake Warning (dev) at CMakeLists.txt:108 (enable_language):
project() should be called prior to this enable_language() call.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Samue/Downloads/winlibs-x86_64-posix-seh-gcc-12.1.0-llvm-14.0.6-mingw-w64ucrt-10.0.0-r3/mingw64/bin/gcc.exe
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/Platform/Windows-GNU.cmake:191 (enable_language):
project() should be called prior to this enable_language() call.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.30/Modules/Platform/Windows-GNU-C.cmake:2 (__windows_compiler_gnu)
C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeCInformation.cmake:48 (include)
CMakeLists.txt:108 (enable_language)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/Samue/Downloads/winlibs-x86_64-posix-seh-gcc-12.1.0-llvm-14.0.6-mingw-w64ucrt-10.0.0-r3/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/Platform/Windows-GNU.cmake:191 (enable_language):
project() should be called prior to this enable_language() call.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.30/Modules/Platform/Windows-GNU-CXX.cmake:2 (__windows_compiler_gnu)
C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeCXXInformation.cmake:48 (include)
CMakeLists.txt:108 (enable_language)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Users/Samue/Downloads/winlibs-x86_64-posix-seh-gcc-12.1.0-llvm-14.0.6-mingw-w64ucrt-10.0.0-r3/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/Platform/Windows-GNU.cmake:191 (enable_language):
project() should be called prior to this enable_language() call.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.30/Modules/Platform/Windows-GNU-ASM.cmake:2 (__windows_compiler_gnu)
C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeASMInformation.cmake:38 (include)
CMakeLists.txt:108 (enable_language)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done (2.5s)
-- Generating done (0.1s)
-- Build files have been written to: C:/Users/Samue/Documents/MACFE/racecar/firmware/build/MyBlink/cli
Copying compile_commands.json to build for clangd.
cp build/MyBlink/cli/compile_commands.json build/compile_commands.json
process_begin: CreateProcess(NULL, cp build/MyBlink/cli/compile_commands.json build/compile_commands.json, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:28: config] Error 2

I assume this is due to the Makefile commands being written for linux, whilst I am working on Windows 11. Though on the documentation, there is no mention of OS requirements.
Work around:
In the Makefile, I temporarily changed the config section (25 - 36) to replace the following bash commands:
config:
	cmake -B $(BUILD_DIR) -S. $(GENERATOR) -D PROJECT=$(PROJECT) -D PLATFORM=$(PLATFORM) -D PROJECT_NAME=$(PROJECT_NAME) --log-level $(LOG_LEVEL)

	@echo Copying compile_commands.json to $(BUILD) for clangd.
-	cp $(BUILD_DIR)/compile_commands.json $(COMPILE_COMMANDS_DEST)
+	copy build\MyBlink\cli\compile_commands.json build\compile_commands.json

	@echo Ensure the .clangd file exists.
-       touch .clangd

Which ended up producing the result as intended.

The Makefile uses Linux commands which are not available in the Windows command line. However, they are included in Git Bash which is installed with git on Windows (you should have it available if you called choco upgrade git ...).
I will add a note to the tutorial indicating that you have to us Git Bash. Thanks for catching the issue


Add macOS foreign configuration

This adds macOS as a foreign configuration. I split it out as a separate package because:

Provides for a cleaner separation from the config package as it is a significant chunk of code.
Allows better a finer level of potential customization to clients.

This pull request also make the compilation command itself a global customizable variable (*python-compile-command*).  Doing so made the customization easier to write and allows clients to make other fine tuned adjustments that might be necessary for their respective platforms.

@digikar99 Sorry, I thought I had put that back--but to answer your question: I am working on this part now.  When I run fiveam unit tests I've written for my own library from Roswell, this fails because numpy is not in Python's sys.path.  To make matter worse, traceback is not imported by the time the numpy library is imported so you get a failure without error reporting.

I see, in that case, feel free to raise an issue!
The rest of the things here look good. Thank you for the PR!

@digikar99 Thank you.  This has been resolved in the last pull request.  Let me know if you disagree with any of these changes as the evaluation is fairly different.  While I was not able to run your unit tests, I have my own that have passed.


Feature request: Option to accept inherited docstrings

Is this a BUG REPORT or FEATURE REQUEST?:

[ ] bug
[x] feature

Description of Bug or Feature
Many tools (e.g. inspect.getdoc, Sphinx) allow methods in subclasses to inherit the docstring of the parent method:
class Foo:
    def do_it(self):
        """
        Do the thing!
        """
        pass

class SpecialFoo(Foo):
    def do_it(self):
        print('So special!')

In these cases, I usually only add a separate docstring to SpecialFoo.do_it if its behavior differs significantly from what one would expected after reading the docstring of Foo.do_it. In most cases, the docstring of Foo.do_it is just fine.
Hence I'd like an option to not count these cases as missing.

Hmm interesting thought. I'm going to have to investigate this a bit; it's weird that help(ChildClass.overwritten_method) shows the docstring of the parent class, but ast.get_docstring does not.
I'll get back to you - thanks for the idea!

Hmm interesting thought. I'm going to have to investigate this a bit; it's weird that help(ChildClass.overwritten_method) shows the docstring of the parent class, but ast.get_docstring does not.

The way help() works is using pydoc which does its own search of the doc string. See: https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Lib/pydoc.py#L185. There getdoc is called with the class as an argument. That further calls _getdoc which first tries _getowndoc which finds the docstring on the class itself and then _finddoc which looks through the superclasses in MRO (here) of the class and returns something. This could be also done in interrogate.

Hmm interesting thought. I'm going to have to investigate this a bit; it's weird that help(ChildClass.overwritten_method) shows the docstring of the parent class, but ast.get_docstring does not.

The way help() works is using pydoc which does its own search of the doc string. See: https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Lib/pydoc.py#L185. There getdoc is called with the class as an argument. That further calls _getdoc which first tries _getowndoc which finds the docstring on the class itself and then _finddoc which looks through the superclasses in MRO (here) of the class and returns something. This could be also done in interrogate.


feat: adding an Expand mode for our widget compact

Summary
For showing routes, an option should be added to widget to show routes in front of swap box. We are calling it Expand mode and it only needs to be added to Home.
Fixes # (issue)

[x] Route display should be a separate component so that we can use it both in the routes page and in expand mode.
[x] Display the errors in the routes component
[x] Implement expand mode in config and playground
[x] Errors shouldn't appear on the home page when extended mode is enabled.
[x] Add an animation for opening the box

How did you test this change?

[ ] When errors happen, they ought to show up appropriately in both expand and non-expand modes.

Checklist:

[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] Implemented a user interface (UI) change, referencing our Figma design to ensure pixel-perfect precision.

Upon entering the input amount, a delay (debounce) occurs before the routes open.
Ensure that the debounce only influences the routes request and not the UI.

I suggest removing the refresh button from the home page when the widget is in expanded mode:

A bug occurs when altering the selected quote and navigating to another page :

A slight layout shift occurs when changing the selected quote because the dimensions of the quote component should remain consistent whether selected or not :

I suggest switching the widget to compact mode when the screen size is small and reverting it to expanded mode when the screen size becomes large, while also ensuring to adhere to the widget configuration.

I see some styles like this in Figma:

NIT: Is'nt better to make the alert text center?

I suggest switching the widget to compact mode when the screen size is small and reverting it to expanded mode when the screen size becomes large, while also ensuring to adhere to the widget configuration.

The useMobileDetect hook is not implemented in propely. It only works for window resizing and refreshing the page does not fix it. Additionally, it does not work on mobile devices. I don't think 375px is a good size for detecting mobile devices.

Nice job. Please check modal button style in this scenario.
http://localhost:3005/?fromBlockchain=ETH&fromToken=ETH&toBlockchain=UMEE&toToken=UMEE&fromAmount=11111111


val: allow DebugTypeComposite to forward reference

When an HLSL object has a member, the generated debug info cannot be generated without any cycle:

the composite has a method as a member.
the method has the previously declared composite as scope.

This is not an issue as the spec clearly mentions members could be a forward reference (which goes against the blanker no-forward references statement).
This commit fixes the blanket check by verifying we are not in this specific case.
Fixes #5229, Microsoft/DirectXShaderCompiler#5218

This should first be fixed at the spec level.
Context here: https://github.com/KhronosGroup/SPIRV-Registry/issues/203


Update legacy warning

The current warning is a bit hard to read, and people ... aren't reading it.

Can we add cobwebs?

@jacobpgn nice one! not to hate on your design skills or anything:) but feel we should loop in @jamesshedden on this, we might have a nice gc red hanging about

🔴

@jamesshedden could I get your 👀 here please?

@jacobpgn Hey sorry for late reply, could we try #EE6850 for the red? Other than that, nice work 👍

We sure can ✨


Add or update queries to get nft serials in account balance

Problem
There is no SDK call which returns the serial numbers for NFTs owned by an account.
Solution
Update one of the existing queries or add a new one which returns all non Fungible tokens owned by an account and the serial #'s.
Alternatives
There is a mirror node call but mirror node results can be up to fifteen minutes old.

@rocketmay there is no HAPI to return all nfts with serial numbers owned by an account so SDK won’t be able to implement such a feature.
mirrornode’s up-to 15 min balance info is for crypto and fungible tokens. The nfts owned by an account returned from /api/v1/accounts/:accountId/nfts just adds 2-3 secs delay on top of consensus.

The nfts owned by an account returned from /api/v1/accounts/:accountId/nfts just adds 2-3 secs delay on top of consensus.
This is very interesting and good to know! This is sufficient for my requirements. Perhaps it would be worth clarifying somewhere in the documentation.


HTML report does not display any info

Describe the bug
I am running tests using Flank(v 21.09) in Firebase, some test runs would generate an empty html report but Junit report does have a failed tests.
To Reproduce

java -jar flank.jar firebase test android run --config flank.yml

Expected behavior
Html report is generated properly for all failed tests
Details (please complete the following information):

Have you tested on the latest Flank snapshot?

No

Post the output of  flank --version.

21.09
Additional context

HTML report is properly generating for some test runs.

flank.yml
    gcloud:
      record-video: true
      timeout: 15m
      async: false
      client-details:
      network-profile: null
      results-history-name: null
      # Android gcloud
      app: /tmp/myapp.apk
      test: /tmp/myapp_test.apk
      additional-apks:
      auto-google-login: true
      use-orchestrator: true
      directories-to-pull:
      grant-permissions: all
      type: null
      other-files:
      scenario-numbers:
      scenario-labels:
      obb-files:
      obb-names:
      performance-metrics: false
      num-uniform-shards: null
      test-runner-class: null
      test-targets:
        - annotation com.enflick.android.customAnnotations.TestRail
        - notAnnotation com.enflick.android.customAnnotations.IgnoreFirebaseTestLab
      robo-directives:
      robo-script: null
      device:
        - model: blueline
          version: 28
          locale: en
          orientation: portrait
      num-flaky-test-attempts: 0
      test-targets-for-shard:
      fail-fast: false
      parameterized-tests: default

    flank:
      max-test-shards: 30
      shard-time: -1
      num-test-runs: 1
      smart-flank-gcs-path:
      smart-flank-disable-upload: false
      default-test-time: 120.0
      use-average-test-time-for-new-tests: false
      files-to-download:
      test-targets-always-run:
      disable-sharding: false
      project: api-project-xxxxxxxxxxxxxxxxxx
      local-result-dir: results
      full-junit-result: false
      # Android Flank Yml
      keep-file-path: false
      additional-app-test-apks:
      run-timeout: -1
      legacy-junit-result: false
      ignore-failed-tests: false
      output-style: multi
      disable-results-upload: false
      default-class-test-time: 240.0
      disable-usage-statistics: false
      output-report: none
      skip-config-validation: false
      custom-sharding-json:

Thanks for reporting the bug!

I can send you junit xml and html report if needed

I can send you junit xml and html report if needed

That'd be helpful. You can send it to<EMAIL_ADDRESS>

@bootstraponline I discovered that html report would break if some of the strings in result data would have \" in them. For example some of our test results contained text API call failed, this is the response code:500 body: {\"error\":\"Service is currently unavailable, could not perform requested action\"}

somehow String from XML report androidx.test.espresso.PerformException: Error performing 'single click - At Coordinates: 76, 221 and precision: 16, 16' on view 'view.getContentDescription() is "Navigate up"'. becomes "androidx.test.espresso.PerformException: Error performing \u0027single click - At Coordinates: 76, 221 and precision: 16, 16\u0027 on view \u0027view.getContentDescription() is \"Navigate up\"\u0027." in inline.html . When inspecting this html in inspector, Console sjows Unexpected token N in JSON at position 1126 that is \"

After some investigation i found out that Html report gets broken when JSON that is being inserted into INJECT-DATA-HERE has some single backslash double quotes \" . This can be fixed by replacing \" with \\\"

Json example
[   {     "label": "deviceName com.myApp.tests.SomeTest#exampleTest",     "items": [       {         "label": "Error in 'single quotes \"Double quotes\"'",         "url": "https://console.firebase.google.com/project/"       }     ]   } ]

Working JSON
[
  {
    "label": "deviceName com.myApp.tests.SomeTest#exampleTest",
    "items": [
      {
        "label": "Error in 'single quotes \\\"Double quotes\\\"'",
        "url": "https://console.firebase.google.com/project/"
      }
    ]
  }
]

The problem seems to be happening with escaping double quotes in test results(\" or \\"). Example :
val someString = "Some error in Espresso test with stacktrace in 'single quotes \"Double quotes\"'"
// or
val someOtherString = "Some error in Espresso test with stacktrace in 'single quotes \\"Double quotes\\"'"
// or
val someOtherOtherString = "Some error in Espresso test with stacktrace in 'single quotes \\\"Double quotes\\\"'"

So the workaround would be to replace \" with " and remove remaining \
val originalString = "Some error in Espresso test with stacktrace in 'single quotes \\\"Double quotes\\\"'"
val newString = originalString.replace("\"", """)?.replace("\\", "")

Temp workaround that worked for me :
https://github.com/Flank/flank/blob/3f509c26e3b4bac8be9f0fb214d08be4f479b314/test_runner/src/main/kotlin/ftl/reports/HtmlErrorReport.kt#L69
private fun List<JUnitTest.Case>.createItems(): List<HtmlErrorReport.Item> = map { testCase ->
    HtmlErrorReport.Item(
        label = testCase.stackTrace().split("\n").firstOrNull()?.replace("\"", """)?.replace("\\", "") ?: "",
        url = testCase.webLink ?: ""
    )
}

Hi @textnow-andriizubenko, are you still experiencing this issue?


Uncaught TypeError: panner.setVelocity is not a function

CHROME:
Uncaught TypeError: panner.setVelocity is not a function
at bird.set [as velocity] (bird.js:69)
at chirp ((index):128)
at (index):44
at Value.updateBind (xgui.js:222)
at Knob.mouseUp (xgui.js:1446)
at onMouseUp (xgui.js:165)
at HTMLDocument. (xgui.js:65)

Good catch. Looks like setVelocity was removed from the spec.
https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setVelocity
Will need to think about how we should deal with this. Any ideas?

The right way to do a Dopper effect in Web Audio would essentially be like
physical modelling - put in a delay node, and animate the delayTime based
on the motion of the object (that is, make the delayTime equate to the
distance of the source from the "ears", and use AudioParams to smoothly
interpolate between values). That would not only provide a physically
accurate Doppler effect, it would work on all nodes.

https://github.com/WebAudio/web-audio-api/issues/372#issuecomment-250024610

I fixed it for now by removing doppler support.


[ALLUXIO-1742] Add tests for readonly mounting

https://alluxio.atlassian.net/browse/ALLUXIO-1742

Merged build finished. Test PASSed.

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

LGTM

+1 LGTM


Playback loading very slow

Is there away to load the playbacks faster?
Currently it takes between 45 and 60 seconds before playback starts.
Frigate v5.4.0
SSD storage
Recordings are in 1080p.
Result is the same between local connecting or via Nabu Casa.

where are you viewing them?

not entirely sure what you are asking but will do my best to answer it anyway.

outside my local network without VPN, via Nabu Casa and fast wifi or 5G connection, using Chrome browser on my laptop or Android app "Home Assistant"
within my own network , via Nabu Casa and fast wifi, using Chrome browser on my laptop or Android app "Home Assistant",
within my own network, via local address and fast wifi, using Chrome browser on my laptop

hope this answers your question

Yes, playback speed is very fast and responsive when using local URL on my LAN


@EnableFeignClients - NullPointerException encoder in FeignClientFactoryBean

I am using release train Angel.SR3. I am having the same issue as raised in gh-212. When FeignClientFactoryBean tries to build the Feign clients, encoder as well as all other autowired fields are null.
Basically I have:

Main class annotated with @SpringCloudApplication and @EnableFeignClients
An interface UserClient annotated with @FeignClient
A class 'CompositeServiceannotated @Service and autowiringUserClient` (initializing this bean is where the failure occurs).

Looking at the DEBUG logs, the beans from FeignAutoConfiguration are not created until after the initialization of the above bean fails. I have tried putting @EnableFeignClients on the main class, a separate @Configuration class and a static inner class of another @Configuration class, all with the same result.
I have successfully used @EnableFeignClients in other sample projects I have made, so I am sure that the custom configuration I am providing is likely causing some timing issue. I am providing a number of custom auto-configuration classes that I am providing myself from an external library + 1 Bootstrap configuration.
I cannot produce a sample to reproduce because I am on a closed network and I am really having a hard time tracking down where the configuration problem may be in order to provide a reproducible sample. If someone could provide some ideas on what I should look for when debugging that would be really helpful. I can provide as much information as needed from logs and stack traces.
Thanks in advance.

Hello,
are you using a milestone of spring-boot 1.3.0? If so you will have to go down to 1.2.5.RELEASE, because spring-cloud does not support spring-boot 1.3 at the moment. See https://github.com/spring-cloud/spring-cloud-netflix/issues/326 for morge informations.
Hope it helped

No, I am using Spring Cloud Release Train Angel.SR3 which is using Spring Boot 1.2.4.

FeignClientFactoryBean throws a NullPointerException because its autowired dependencies have not been set at the time the factory method is invoked.
After some investigations it appears the GenericBeanDefinition created by FeignClientsRegistrar doesn't say anything about its autowire mode leaving it to the default  AbstractBeanDefinition.AUTOWIRE_NO which doesn't make it eligible for autowiring.
A possible solution is to slightly change FeignClientsRegistrar.createBeanDefinition() and add the following to the created bean definition:
definition.setAutowireMode(AbstractBeanDefinition.AUTOWIRE_BY_TYPE);

Note: should it by "BY_TYPE" or "BY_NAME" ?

I am facing the same issue, the problem is that this is very hard to tackle down. I had compared the stack trace of working simple application and the one which is facing the problem.
Basically what I have found out is that for some reason the FeignClientFactoryBean depdencies are not getting resolved and FeignClientsConfiguration beans does not get registered in spring context. I tried different approaches to resolve this, by explicitly importing the FeignClientsConfiguration with highest possible precedence, but this didn't help. I had also noticed that whenever I remove 'org.springframework.security.oauth:spring-security-oauth2:2.0.7.RELEASE'
out of the project dependencies everything gets back to normal. I don't think that there is any issue with oauth itself, it's more likely that it causes to import some transitive dependency that pollutes the classpath.
If I will find anything I will let you know.

Thanks for the replies. I have the problem when spring-security-oauth is not on the classpath, I am having trouble trying to figure out what dependency may be causing the issue.

I have an exact log for comparision of working and failing setup. It turns out that fallback from Spring Security 4.0.1.RELASE to 3.2.8.RELEASE solved this problem in my case.
Please see: https://gist.github.com/jmnarloch/66f41c6904f97f84cef4
In the log title working you can see entries BeanPostProcessorChecker: feignDecoder ...
The same does not happen when you have Spring Security 4.0.1 on the classpath. I wonder why.


Test package publishing

I'm worried that the .h5 model files are too big for this to be published to npmjs - but we can work around this in the kit image if we have to.
Note that the .h5 model files currently live in 1_Training/Data/Model_Weights/Default and are NOT included in the NPM packaging step - but they are required for the server to run - we need to figure out what to do with them.

@bleggett - I like the idea you proposed in chat to include a "modle data" directory that we can pre-populate w/ out including it in the NPM package.

FTR here's the full proposal:

Package and ship the NPM package without any default model files at all
Expose a global setting in the Node-RED config file that points to a “modeldata” directory
In our kit, set that modeldata directory to a custom location and stick our default/starter model files there.


build-fhs-chrootenv: add missing /usr/include

This patch brings the include/ directories of all specified packages to
appear under /usr/include in the FHS chroot. As per spec[1].
[1] http://www.pathname.com/fhs/pub/fhs-2.3.html#USRINCLUDEDIRECTORYFORSTANDARDINCLU

Nice, thanks! I don't think this can bring any harm, so let's just merge.


all cluster-agent pods are scheduled on same node

On a freshly baked downstream cluster with 3 nodes, I see that all cluster-agent pods are scheduled on the same node. I created multiple clusters to verify this behaviour.
➜  aws git:(master) ✗ k get pods -n cattle-system -o wide
NAME                                                              READY   STATUS      RESTARTS   AGE     IP              NODE                                   NOMINATED NODE   READINESS GATES
apply-system-agent-upgrader-on-test-vatsalp-ds-pool1-b9af-9n7xk   0/1     Completed   0          3m3s    <IP_ADDRESS>   test-vatsalp-ds-pool1-b9af3f3d-46wft   <none>           <none>
apply-system-agent-upgrader-on-test-vatsalp-ds-pool1-b9af-x6pgw   0/1     Completed   0          3m3s    <IP_ADDRESS>   test-vatsalp-ds-pool1-b9af3f3d-z6r87   <none>           <none>
apply-system-agent-upgrader-on-test-vatsalp-ds-pool1-b9af-xq52t   0/1     Completed   0          3m3s    <IP_ADDRESS>    test-vatsalp-ds-pool1-b9af3f3d-tv8cq   <none>           <none>
cattle-cluster-agent-66c9bd8544-dmnpn                             1/1     Running     0          3m37s   <IP_ADDRESS>    test-vatsalp-ds-pool1-b9af3f3d-tv8cq   <none>           <none>
cattle-cluster-agent-66c9bd8544-q8td2                             1/1     Running     0          3m39s   <IP_ADDRESS>    test-vatsalp-ds-pool1-b9af3f3d-tv8cq   <none>           <none>
helm-operation-sjlvb                                              0/2     Completed   0          4m4s    <IP_ADDRESS>    test-vatsalp-ds-pool1-b9af3f3d-tv8cq   <none>           <none>
rancher-webhook-85b57d6bf8-bflvz                                  1/1     Running     0          3m49s   <IP_ADDRESS>    test-vatsalp-ds-pool1-b9af3f3d-tv8cq   <none>           <none>
system-upgrade-controller-68d57657cb-mjnqn                        1/1     Running     0          4m29s   <IP_ADDRESS>    test-vatsalp-ds-pool1-b9af3f3d-tv8cq   <none>           <none>
➜  aws git:(master) ✗ k get node
NAME                                   STATUS   ROLES                              AGE     VERSION
test-vatsalp-ds-pool1-b9af3f3d-46wft   Ready    control-plane,etcd,master,worker   4m17s   v1.26.15+rke2r1
test-vatsalp-ds-pool1-b9af3f3d-tv8cq   Ready    control-plane,etcd,master,worker   8m23s   v1.26.15+rke2r1
test-vatsalp-ds-pool1-b9af3f3d-z6r87   Ready    control-plane,etcd,master,worker   3m41s   v1.26.15+rke2r1

The issue seems to be with the following line which prefers pods to not be in the same node, but schedules likely schedules the pods too quick as soon as the first node is up, this can also be (repeatedly) confirmed by the node which came up first
changing this to required should fix it
https://github.com/rancher/rancher/blob/4964f37401b56de093a6c0294b3b602445ff0eb6/pkg/settings/affinity.go#L83

also, this is likely causing the issue where all agent pods are on the same node and draining it for maintenance causes a small downtime in connection from rancher to downstream cluster