RestClientBuilder fails with "Provider for RuntimeDelegate cannot be found"

I am using RestClientBuilder to build a client to post JSON to an endpoint. The code has stopped working at some point.
I am doing this but the build call fails:
URI uri = URI.create(event.getTargetUrl());
WebhookGenericService service = RestClientBuilder.newBuilder().baseUri(uri).build(WebhookGenericService.class);
service.post(jsonMap);

This is the stack trace:
java.lang.RuntimeException: java.lang.ClassNotFoundException: Provider for jakarta.ws.rs.ext.RuntimeDelegate cannot be found
	at jakarta.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:113)
	at jakarta.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:84)
	at jakarta.ws.rs.core.MediaType.valueOf(MediaType.java:172)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ProxyBuilderImpl.defaultConsumes(ProxyBuilderImpl.java:102)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ProxyBuilderImpl.defaultConsumes(ProxyBuilderImpl.java:28)
	at org.jboss.resteasy.microprofile.client.RestClientBuilderImpl.build(RestClientBuilderImpl.java:370)
	at org.jboss.resteasy.microprofile.client.RestClientBuilderImpl.build(RestClientBuilderImpl.java:388)
	at dk.fmcgsolutions.webhooks.WebhookClient.send(WebhookClient.java:115)
	at dk.fmcgsolutions.product.AsyncWebhookEvent.run(AsyncWebhookEvent.java:40)

I hope you have an idea to a fix. If not, then I will have to dig some more into what version of your project used when it worked.

Hmm, is this running in a separate thread of one kind or another? That could be the trouble if so: I haven't properly gotten the Rest Client working in contexts other than a normal JAX-RS request.
If it used to work in this case, what version was that and which version are you using now? It's possible that the provider mechanism changed somewhere along the line.

It's running as an asynchronous call but used to work. I will take a closer look and see if I can find the version used when it was working.
My investigation so far: It fails with the 2.6 release and also fails with 2.5 from late April.

I'll have to look into it when I get a chance. I'm actually a little surprised that it used to work: I've had to jump through some hoops to get these contexts recognized as associated with an NSF at all, and threads kind of throw that for a loop. It's possible that something broke in here, but it's also possible that the fact that it worked in the past was sort of a fluke.
In the mean time, maybe it'd make sense to do the Rest Client building before spawning the task, and then passing it in to the task to use later. That could likely pick up and retain all the context it needs, regardless of version.
This may also be a good impetus for me to look into https://github.com/OpenNTF/org.openntf.xsp.jakartaee/issues/77 , which is intended to make contexts like this work in multiple threads.

If I run my Rest Client logic directly (so not via XOTS), it still fails.
I will later try your example in the "XPages JEE Example" database.

After completely deleting the disabled older version of the plugins and restarting the server, it now works on my local test server! So somehow several versions of the plugins must have caused a conflict.
The MicroProfile - Rest Client GET example in the "XPages JEE Example" database also works on my local test server.
However it still fails on the production server even though I have tried several times removing/re-adding the plugin and restarting the server and HTTP. I will continue my investigation.

How are you using XOTS here, by the way? Is it just as a means to fire off async tasks, or is it acting as a configurable scheduler? I ask because the Concurrency API I’m looking at covers ExecutorServices and explicitly-scheduled tasks, but not quite something like “run at 9 AM every weekday”.

I'm using XOTS to fire off async tasks.

My hope is that the Concurrency stuff I’m adding will help make this sort of thing officially supported and not just a fluke when it will or won’t work. I haven’t gotten to making sure the JAX-RS context is brought over, but it’s next on the list.

With a build from July 18 the RestClientBuilder now works again (from my async XOTS request triggered by XPages)


Logitech G410 - FN key not working properly

Everything was fine before I updated to <IP_ADDRESS>.
I have this desktop setup:
Green for WASD, Blue for the arrows, and red for every other key, plus an interactive layer above everything with the arrow flow effect.
The FN key is unaffected, it stays red. I discovered that only this particular key takes the setting from the logitech gaming software.
This also happens when I play other games, I tested this with Dota, LoL, Battleborn and Overwatch.
The FN stays a fixed red.
I chose the G410 setup from the configuration. I also proceeded in reinstalling Aurora, then reapplying the logitech patch. Didn't work.

Fixed. The issue will automatically close when it's released in a new update.

thank you very much!

This issue is still reproduced on my Logitech G410 keyboard. Could it be related to updated firmware?

@yavorovich Try the latest development release. The fix isn't in the stable release yet.


omnibus: stop building pkg-config

What does this PR do?
This PR removes pkg-config from our dependencies as it's already available in the build image

Motivation
Removing unneeded package

Additional Notes

This also removes pkg-config from the shipped software sources, which might need a legal approval
Associated omnibus-software PR: https://github.com/DataDog/omnibus-software/pull/485
Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

Since it changes the omnibus build I think we should run a full pipeline for this one !
It would be safe to download the post build artifact and install it / check that the Agent runs as well !

That seems like a good idea :)
Full pipeline: https://gitlab.ddbuild.io/DataDog/datadog-agent/pipelines/22270764
Regarding downloading & running the binary, isn't that handled by the kitchen tests?

True, I was a bit overzealous on this one, kitchen tests should be enough indeed !


Runtime server tests

This PR adds coverage for runtime status view of the management console

@kstekovi after resolving that one thread, can this be merged?


bug: switching versions accounted for in UI but wrong binary started

https://github.com/ethereum/grid/blob/master/ethereum_clients/Plugin.js#L197

Should be fixed with https://github.com/ethereum/grid/pull/490

confirmed


How many epochs to train to get an successful result?

I trained tusimple_efficientnet-b0 (pretrained) for 40 epoches and loss are around 15. (I also got poor qualitative result from test.py)

Depends on the dataset. For the paper, I trained on ELAS and LLAMAS for additional 385 and 75 epochs, respectively.

How about TuSimple? I trained TuSimple for 115epoches with efficientdet-b0, batch10
Accuracy is around 0.45 and qualitative result doesn't seems like it would be.
Default epoches is 2695 and I wonder how many epoches to train to get reasonable results.
Because, training 115 epoch has no advance since loss down to 15.

Default epoches is 2695 and I wonder how many epoches to train to get reasonable results.

I can't remember what was the lowest number I did experiments with. You'll have to try a few different values if you do want to reduce it.

Because, training 115 epoch has no advance since loss down to 15

With the Cosine Annealing learning rate scheduler (the default), it's important to adjust its parameters every time you modify the number of epochs. Therefore, make sure you did adjust it accordingly.


cmd,dev-cmd: indicate multiple named args in usage banner

Be consistent and indicate in usage banner when a command accepts multiple named args.
It was already done for a bunch of commands, this PR extends the idea to other commands.
Also fix some commands not accepting multiple named args even though they should and indeed were before.
I think some bugs was introduced in https://github.com/Homebrew/brew/pull/10288, cc @Rylan12

[ ] Have you followed the guidelines in our Contributing document?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same change?
[ ] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?
[ ] Have you successfully run brew man locally and committed any changes?

Review period will end on 2021-01-18 at 12:09:22 UTC.

Review period will end on 2021-01-18 at 12:09:22 UTC.

Review period skipped due to critical label.

Review period skipped due to critical label.

Marking as critical as we have failing workflow runs now:
https://github.com/Homebrew/homebrew-core/runs/1708280747?check_suite_focus=true

Marking as critical as we have failing workflow runs now:
https://github.com/Homebrew/homebrew-core/runs/1708280747?check_suite_focus=true

Instead of having repeated items in the usage banner, use the following convention:

<formula> for one required formula
<formula> [...] for at least one formula
[<formula> ...] for one or more optional formulae

Instead of having repeated items in the usage banner, use the following convention:

<formula> for one required formula
<formula> [...] for at least one formula
[<formula> ...] for one or more optional formulae

<formula> for one required formula
<formula> [...] for at least one formula
[<formula> ...] for one or more optional formulae

This is nice.

<formula> for one required formula
<formula> [...] for at least one formula
[<formula> ...] for one or more optional formulae

This is nice.

I also thought about generating those automatically, but for now I went this route.
Regarding this style suggestion made by Eric, I adopted the current style from pr-" commands. Since there is an approval I'm merging this PR as is for now.

I also thought about generating those automatically, but for now I went this route.
Regarding this style suggestion made by Eric, I adopted the current style from pr-" commands. Since there is an approval I'm merging this PR as is for now.

Instead of having repeated items in the usage banner, use the following convention:

<formula> for one required formula
<formula> [...] for at least one formula
[<formula> ...] for one or more optional formulae

I like this. Thanks, @EricFromCanada! This will also help to solve the long line issue I mentioned above. I'll likely use this style for the generated completions.

Instead of having repeated items in the usage banner, use the following convention:

<formula> for one required formula
<formula> [...] for at least one formula
[<formula> ...] for one or more optional formulae

I like this. Thanks, @EricFromCanada! This will also help to solve the long line issue I mentioned above. I'll likely use this style for the generated completions.

I really appreciate you going through and checking this but: this definitely feels like the type of thing that should be programmatically generated. I don't think that should block this PR being merged (as it's an improvement) but this top line feels like something we can infer from everything else we know about a command (so should do so).

@MikeMcQuaid definitely agree. This has come up a few more times recently. Should I prioritize this over finishing completions?

I really appreciate you going through and checking this but: this definitely feels like the type of thing that should be programmatically generated. I don't think that should block this PR being merged (as it's an improvement) but this top line feels like something we can infer from everything else we know about a command (so should do so).

@MikeMcQuaid definitely agree. This has come up a few more times recently. Should I prioritize this over finishing completions?

@MikeMcQuaid definitely agree. This has come up a few more times recently. Should I prioritize this over finishing completions?

@Rylan12 Up to you! I think maybe but I don't feel strongly either way?

@MikeMcQuaid definitely agree. This has come up a few more times recently. Should I prioritize this over finishing completions?

@Rylan12 Up to you! I think maybe but I don't feel strongly either way?

Okay, I will. No reason not to, I think.

Okay, I will. No reason not to, I think.


Add zoom

Add prototype support for zoom. For my particular use case, I also wanted to be able to zoom the background image, so I've made changes to reflect that. I ideally wanted to add pan control as well when the alt key is pressed. I wasn't totally sure how to approach this without triggering drawing.

It looks like it broke the building wheel when trying to install it with pip.
Can you provide an example of how it works? Or how to install it

I'm not seeing that on my end.


Following on #342

Now I made something more different: http://jsbin.com/gifadexihi/2/edit?html,js,console,output
This demonstrates another question I have, What if I have multiple lists and I drag from one to another. Now you don't know to which "day" you have dragged the "other" item.
For example NgDraggable have circumvented this by making it possible to add another variable to the html that should be used for the onAdd function. But I love how my settings are defined in the controller.... Hmm... What do you think?

Add this information into model, for example.

But it is not something that is defined before, this is user input? Or am I misunderstanding?

So what? You can always organize the data model as you need.

Could you give an example?
I have three lists with ng-repeat. One is filtered ánd nested. I drag from one list to another and now I want to have a variable from the parent list. I would say this is not possible?

I have three lists with ng-repeat. One is filtered ánd nested. I drag from one list to another and now I want to have a variable from the parent list. I would say this is not possible?

Just to add to each element of a reference to the parent.


New package: MAGEMin_C v1.1.1

Registering package: MAGEMin_C
Repository: https://github.com/ComputationalThermodynamics/MAGEMin
Created by: @boriskaus
Version: v1.1.1
Commit: 72198b66c94a7026497824b460096d7e034cecca
Git reference: HEAD
Description: The parallel Mineral Assemblage Gibbs Energy Minimization package

ok, I see that you prefer this to be from a separate repo called MAGEMin_C.jl.
I will create that now and make a separate PR to registry (this one can be removed)


[VS Code] Object reference not set to an instance of an object.

@rajatdeshpande Thanks for reporting this issue.  However, we could use a bit more details to help you out.

What OS and OS version are you running?
When did you encounter this error?
It would be useful to see your logs. Can you run the Live Share: Export Logs command and either drag-and-drop the zip into a comment or email them to<EMAIL_ADDRESS>

I have the same problem on visual studio, i am running windows 10 i did encounter this error when trying to join a session... logs: https://pastebin.com/VTT2MDMm

[VSIX E] System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.LanguageServices.Remote.Guest.RoslynLSPClientServiceFactory.CreateServiceAsync(SessionContext sessionContext, CancellationToken cancellationToken)
   at Microsoft.Cascade.Client.Extensibility.CollaborationServiceProvider.<CreateServicesAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Cascade.VsSessionConfigurator.<ConfigureSessionForJoiningAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runt...

cc @srivatsn @daytonellwanger

@rajatdeshpande @ewoudje  Do you by any chance have the Language Server Client Preview extension installed? We've found that we run into this error if that extension is installed.

Yes i have that installed... is there already an issue open for it?

I've filed https://github.com/MicrosoftDocs/live-share/issues/410 to track the extension conflict issue. This issue was originally filed for VS Code and so that is a different issue from #410

@rajatdeshpande We've had several updates to fix a number of issues in this space.  Can you confirm whether or not you are still seeing this error in VS Code?

Closing due to inactivity.


add droplet

 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.lichengyuan seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

解决 conflict, DIOPI 需要更新吗?


API JSON-RPC eth_sendTransaction not included

JSON-RPC method does not include eth_sendTransaction.

@Blue-Arc eth_sendTransaction requires that the node has access to the private key, which is a potential security risk. In Besu we made the conscious decision to not implement this endpoint to avoid that.
The endpoint is offered by other software like EthSigner which can be used along side Besu and avoids the exposure of the private key to a node that is connected to the internet.
I will close this issue, because as mentioned this enpoint is not implemented on purpose.


Copy update

Updating Test and Live description, and some copy in the send by mail settings

closing in favour of https://github.com/ministryofjustice/fb-editor/pull/566


"The value '126' of 'authKey' is not expected. Expected value is '256.'"

Hi,
I started using the library with .Net 4.6 and VS2015. I write a test code according to quick start, but actually I have stopped in first steps.
Here is my code:
        public static int ApiId = ;
        public static string ApiHash = "";
        public static string ServerAddress = "";
        public static int ServerPort = ;

        static void Main(string[] args)
        {
            var client = ClientFactory.BuildClient(ApiId, ApiHash, ServerAddress, ServerPort);
            client.ConnectService.ConnectAsync().Wait();    <--- The line with exception!

Here is the exception:
{"The value '126' of 'authKey' is not expected. Expected value is '256.'"}
and this is the stack trace:
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at ViraConsoleGram.Program.Main(String[] args) in C:\Users\hendi\Documents\Visual Studio 2015\Projects\Viragram\ViraConsoleGram\Program.cs:line 26
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
I'll appreciate if anyone can help me with the issue!
Regards,

Hello, @hendinejad!
Please email me yours ApiId, ApiHash, ServerAddress, ServerPort

i got this too


fix(ex8,ex9): update usage of chart.js

Fixes #1

@akudev - finally it works (the type issue I faced yesterday solved after adding the moduleResolution and a restart of VSCode! I added this as a hint to the README.), now VSCode, lint and ts-typecheck are good:

> exercises/ex8/com.myorg.myapp [main]  % npm run lint

><EMAIL_ADDRESS>lint
> eslint src

> exercises/ex8/com.myorg.myapp [main]  % npm run ts-typecheck

><EMAIL_ADDRESS>ts-typecheck
> tsc --noEmit

Change should be good to go now...


(BKR-569) added caching disable option

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/1920/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/1924/
Test FAILed.

retest this please

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/1928/
Test FAILed.

Failure is not related to patch.


Click target for arrows too small

The area that is clickable for the tree arrow is small and hard to click.
The area around the triangle itself need to be clickable.
Replacing margins with paddings usually does the trick, but in this case padding enlarges the arrow.
A solution is to either wrap the arrow with a clickable div or to redo it in svg, it is simple either ways.

+1 for hard to click

I think the whole line is clickable? In any case I have you covered in #52.

Oh, the line itself is clickable indeed. So is the very triangle.
But not the area around the triangle ;)

Gotcha. I'll try to swap out some of those margins for padding to help make the targets bigger.

PRs to styles are welcome!

Superseded by https://github.com/gaearon/redux-devtools-log-monitor/issues/2.
Style gurus, please help fix it.


Pull data from docker stats

Its seems to offer memory and cpu on a per-container basis.
Perhaps pulling memory and cpu from proc on a per-process basis would be better?

We don't have a way to associate metadata to processes or containers at this stage, as they're both emergent entities from the underlying topologies. See my comments on #115. If we did what I proposed there, we could solve this issue, too. Shall I merge them and create a new issue?

Merged to #120

Re-opening as a supplementary ticket after for #123.

This is merged and done.


unset problematic inherited envs

Create a bundle wrapper script that unsets BUNDLE_PATH and GEM_HOME which could prevent gems from being installed in the default gem env genhome location when running bundle install.
Note that this code is colocated with the other environment variables set in the environment arg, but this means the wrapper is written to the rb_bundle's repository. Alternatively the wrapper could be introduced in the toolchain directory  (i.e. rules_ruby_dist/bin/bundle_wrapper) if that's preferred.
Fixes: https://github.com/p0deje/rules_ruby/issues/5

Looks like it's failing for windows, the OS i did not test in.

Closing in favor of setting BUNDLE_PATH implementation https://github.com/p0deje/rules_ruby/commit/0c2c290bdc4468186de3a786976c1e2b3dc8c2bc


Support Nativescript-vue?

Describe the feature
Does this support Nativescript-Vue? It made me very happy to find this. When I installed it and launched app, I got the error
TypeError: No known component for element div.
Is there a way around that?
Describe the solution you'd like
A clear and concise description of what you want to happen.
Additional context (If there is no relevant content, please delete the block)
Add any other context or screenshots about the feature request here.

There is no such plan at the moment. 😿


Use #if defined(ENVOY_ENABLE_FULL_PROTOS instead of #ifdef ENVOY_ENABLE_FULL_PROTOS to be more readable

Change #ifdef ENVOY_ENABLE_FULL_PROTOS to #if defined(ENVOY_ENABLE_FULL_PROTOS),
and #ifndef ENVOY_ENABLE_FULL_PROTOS to #if !defined(ENVOY_ENABLE_FULL_PROTOS)
in order to improve readability.
Risk Level: N/A - No behavior change
Testing: N/A
Docs Changes: N/A
Release Notes: N/A

/assign @abeyad

pushing past flaky mac ci


fix po/de.po

adding a newline char to fix compilation issues

This pull request didn't trigger Jenkins as its author isn't in the whitelist.
An organization member must perform one of the following:

To have this branch tested by Jenkins, use the "ok to test" command.
To have a one time test done, use the "test this please" command.

Those commands are simple Github comments of the format: "jenkins: COMMAND"

So the problem is actually the other way around, the german translation shouldn't have a trailing line break. I've updated that string in weblate last night as it was reported over there and it will be fixed in master with the next weblate import.


x/tools/imports: TestLocalPrefix is racy

Checking out c1def519f03ddf76f16b3e444ee1095d73afa01b and running:
$ go test -race golang.org/x/tools/imports
==================
WARNING: DATA RACE
Write at 0x00c4205dc2f0 by goroutine 35:
  golang.org/x/tools/imports.findImportGoPath()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix.go:849 +0x420
  golang.org/x/tools/imports.fixImports.func2()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix.go:317 +0xc3

Previous write at 0x00c4205dc2f0 by goroutine 39:
  golang.org/x/tools/imports.findImportGoPath()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix.go:849 +0x420
  golang.org/x/tools/imports.fixImports.func2()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix.go:317 +0xc3

Goroutine 35 (running) created at:
  golang.org/x/tools/imports.fixImports()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix.go:304 +0xb13
  golang.org/x/tools/imports.Process()
      /home/rawr/.go/src/golang.org/x/tools/imports/imports.go:66 +0xab5
  golang.org/x/tools/imports.TestLocalPrefix.func1()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix_test.go:1570 +0x21f
  golang.org/x/tools/imports.testConfig.test.func1()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix_test.go:1449 +0x199
  golang.org/x/tools/imports.withEmptyGoPath()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix_test.go:1236 +0x29f
  golang.org/x/tools/imports.testConfig.test()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix_test.go:1437 +0x2df
  golang.org/x/tools/imports.TestLocalPrefix()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix_test.go:1567 +0x45d
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:777 +0x16d

Goroutine 39 (running) created at:
  golang.org/x/tools/imports.fixImports()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix.go:304 +0xb13
  golang.org/x/tools/imports.Process()
      /home/rawr/.go/src/golang.org/x/tools/imports/imports.go:66 +0xab5
  golang.org/x/tools/imports.TestLocalPrefix.func1()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix_test.go:1570 +0x21f
  golang.org/x/tools/imports.testConfig.test.func1()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix_test.go:1449 +0x199
  golang.org/x/tools/imports.withEmptyGoPath()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix_test.go:1236 +0x29f
  golang.org/x/tools/imports.testConfig.test()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix_test.go:1437 +0x2df
  golang.org/x/tools/imports.TestLocalPrefix()
      /home/rawr/.go/src/golang.org/x/tools/imports/fix_test.go:1567 +0x45d
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:777 +0x16d
==================
--- FAIL: TestLocalPrefix (0.13s)
	testing.go:730: race detected during execution of test
FAIL
FAIL	golang.org/x/tools/imports	6.488s

git bisect identifies the root cause as https://go-review.googlesource.com/c/tools/+/100460
\cc @nmiyake @bradfitz

Thanks for flagging.
Given the nature of the change, I highly doubt that the change in fix.go introduced a race (although it may have surfaced it). I'm still investigating locally, but if I leave the change in fix.go but just revert the new test cases that were added, the tests with race detector enabled passes (and conversely, leaving the new test but removing the logic change still shows a race).

The race is occurring here:
	// Find candidate packages, looking only at their directory names first.
	var candidates []*pkg
	for _, pkg := range dirScan {
		if pkgIsCandidate(filename, pkgName, pkg) {
			pkg.distance = distance(pkgDir, pkg.dir)
			candidates = append(candidates, pkg)
		}
	}

I believe the issue is that pkg is within the dirScan map, so modifying pkg.distance can race.
This may be naïve, but protecting that assignment using dirScanMu seems to resolve the issue:
// Find candidate packages, looking only at their directory names first.
var candidates []*pkg
for _, pkg := range dirScan {
  if pkgIsCandidate(filename, pkgName, pkg) {
    pkgDistance := distance(pkgDir, pkg.dir)
    dirScanMu.Lock()
    pkg.distance = pkgDistance
    dirScanMu.Unlock()
    candidates = append(candidates, pkg)
  }
}

@bradfitz any thoughts on this?

I think the problem is deeper than that: findImportGoPath is computing the distance relative to the current filename and then sorting by that distance. If we happen to run two of those concurrently for files in different paths, we may use the wrong distance.
It's not at all obvious to me whether we run two of those concurrency, but the fact that it's not locally obvious suggests that we shouldn't rely on it either way.


Uploading trained model to Aws Model Registry

Hi @rinongal , I have finetuned the styleganNada model and saved it by torch.save(net, "model.pt") but it didn't save the ModelClass with it due to which it is not deploying on Model Registry as standalone .pt file to serve the users. Can you help me how I pack the entire model with Class ?

@rinongal  Actually I wanted to convert the trained model to torchscript but the input it takes isn't static and I am facing difficulty to convert it into torchscript because otherwise I always need to import the Model Class to load the saved model. Also wanted to boost its inference speed using ONNX but failed to do because of tracing problem.

I'm honestly not familiar with ONNX or torchscript either, and I don't currently have the time to experiment with either and try to see where your issue comes up. I'll keep this issue open in case someone else reads it and can help.


fix: use shrinkwrap to fix lodash on publish

We have the lodash fixes to a higher version, but the package-lock.json isn't published on npm. So that doesn't give us anything.
On the other hand shrinkwrap.json is published and therefore can be used to fix version of a dependency!

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add Terraform validation to build steps

Installs the databricks provider
hashicorp/terraform-github-actions are deprecated, move to new Terraform GitHub action
Run both format -check and validate

Next up: running the terratests

In a future version, we probably don't want to build the databricks provider each time. The reason behind this is that there is currently only 1 release and master has some fixes we need.
Hopefully, we will get a stable version in the registry one day and then we can remove all the extra steps at the beginning of the workflow.


MOR 1947: morgen tasks obsidian plugin hide ids in reading mode

I will not squash these commits as the first is clearly unrelated and is purely related to formatting the codebase.
The second one is the one I would like a review of.
This fixes the problem where IDs were not hidden/replaced in:

reading mode
queries
Kanban boards (inline/card footer mode)

Screenshots previewing "replace with emoji" mode:
This first one is the outlier because it doesn't make much sense to replace the Kanban plugin ID card footer chip with an emoji, so it's just hidden in this mode.

LGTM. I wonder if it would be a valid addition to wrap the entire postProcess method in a try/catch just in case there is a hidden issue with this logic. I don't know what happens if a postprocessor throws in Obsidian, but we don't want to cause any issue.

That's a good point indeed, I will test what happens.

Yeah if an error happens here, it will cause the document to not render any content in the reading view that had the error.
I will wrap it so that it gives up after an error.


v0.22 on ROS Noetic and Raspberry Pi OS 32 bit

Using https://packages.coex.tech repository.

The latest release is in testing now.
https://github.com/CopterExpress/clover/releases/tag/v0.22-alpha.5.


Request to Add Social Media Links in Footer

Describe your question or ask for support.❓
I would like to add social media links (e.g., Facebook, Twitter, LinkedIn) in the footer of the project. This addition will enhance user engagement and provide easy access to social media profiles. Please let me know if this change is acceptable and, if it is, then please provide me with the links to the social media profiles you want to add in the footer.
GSSOC'24

i can add social media..icon please assign to me

hi, I have been following your project and would love to contribute, can you assign me this issue


When moving resource that belongs to unsaved scene, the scene will save without any warning and clear undo history

Godot version
28174d5
System information
W10
Issue description
Title.
The editor could check for the resource's dependencies and warn if it belongs to a scene that is currently unsaved.
Steps to reproduce

Open a scene with any resource
Modify the scene but don't save
Move the resource to another directory or rename it
The editor will update references in all scenes
Your unsaved scene is now saved
You can't undo your modifications

Minimal reproduction project
No response

??


Document Configuration and Exit Codes

Can be reproduced by running the ExampleApp. The regions are propagated correctly but the singleton service is sometimes missing on the 4th node.


Ignore false-positive github link errors

Due to a bug in the sphinx linkchecker, github anchors are false positives and have to be explicitly ignored.
Fixes #131

@mergifyio backport iron humble


Array reduce callback (reducer) and default parameters

TypeScript Version:  3.0.3, 3.3.3333, 3.3.4000, 3.4.1

Search Terms: redux reducer default parameter state undefined generic
Code
Originally posted in https://github.com/Microsoft/TypeScript/issues/27277, but that was incorrectly closed as fixed.
When strictNullChecks is enabled and strictFunctionTypes is disabled:
type Action = { type: string };
type State = { counter: number };
type Reducer = (state: State | undefined, action: Action) => State;

declare const actions: Array<Action>;
declare const reducer: Reducer;
declare const seed: State;

// Expected `State` but got `State | undefined`
const result = actions.reduce(reducer, seed);

The issue template contains a section "Playground Link" - you should make use of it.
https://www.typescriptlang.org/play/#src=type Action %3D { type%3A string }%3B
type State %3D { counter%3A number }%3B
type Reducer %3D (state%3A State | undefined%2C action%3A Action) %3D> State%3B

declare const actions%3A Array<Action>%3B
declare const reducer%3A Reducer%3B
declare const seed%3A State%3B

%2F%2F Expected `State` but got `State | undefined`
const result %3D actions.reduce(reducer%2C seed)%3B
 (manually enable the options)
Or with the better TypeScript playground:
https://typescript-play.js.org/#code/C4TwDgpgBAggxsAlgewHZQLxQN5VJALigGdgAnRVAcygF8BuAKH2gGVgBDYaLXOZAK6puZIqgEBbAEYQydJiygAlCABMBcWZigAKUlwhF2BqAB8oQ1RABmlNQBooHBClRF4SNAEpMAPijG3EyMVnAANhxk0PyopE4uaMTuZGQcIAA8Hq6+TKERUVAxcVHqmqLKahqyuRDhkdGJwCQQakacQYyMAPRdUACiAB6QCGpQAAaBEGNQUgJNVMhNE+3Q5pY2dqpjjEVNUcQCYU1Yzp6xAHQlVTpXZY7ELapeTEA
In both playgrounds the type is as expected State, not State | undefined.

@MartinJohns You forgot to disable strictFunctionTypes. https://typescript-play.js.org/?strictFunctionTypes=false#code/C4TwDgpgBAggxsAlgewHZQLxQN5VJALigGdgAnRVAcygF8BuAKH2gGVgBDYaLXOZAK6puZIqgEBbAEYQydJiygAlCABMBcWZigAKUlwhF2BqAB8oQ1RABmlNQBooHBClRF4SNAEpMAPijG3EyMVnAANhxk0PyopE4uaMTuZGQcIAA8Hq6+TKERUVAxcVHqmqLKahqyuRDhkdGJwCQQakacQYyMAPRdUACiAB6QCGpQAAaBEGNQUgJNVMhNE+3Q5pY2dqpjjEVNUcQCYU1Yzp6xAHQlVTpXZY7ELapeTEA

I indeed completely over-read that part. Yes, that is the issue, and it was not mentioned in the previous issue. My mistake.


Index value out of bound while training using embedding + stateful LSTM

Hi,
I am using my pretrained embedding layer on top of a stateful LSTM. My word2vec embedding is trained on a larger corpus(word2vec corpus) than the lstm training corpus(model corpus). i'm mapping word vectors to embedding weights using the  word2vec model. Truncated model corpus to be divided into uniform sequences
For preparing the labels of train data  i'm using the LSTM model vocab(not word2vec vocab) with one-hot encoding and no 0 masking.
While training the model, I'm getting the following error-
IndexError: One of the index value is out of bound. Error code: 65535.\n
Apply node that caused the error: GpuAdvancedSubtensor1(embedding_1_W, Elemwise{Cast{int64}}.0)
Toposort index: 142
Inputs types: [CudaNdarrayType(float32, matrix), TensorType(int64, vector)]
Inputs shapes: [(12288, 280), (1024,)]
Inputs strides: [(280, 1), (8,)]
Inputs values: ['not shown', 'not shown']
Outputs clients: [[GpuReshape{2}(GpuAdvancedSubtensor1.0, TensorConstant{[ -1 280]})]]

Model-
batch= 32
seq_length= 32
w2v_dim= 280
Corpus size: 12288 and vocab size: 7625 #truncated model corpus for equal sequence length
X_train.shape= (384, 32) #words mapped to indices using word2vec dict
y_train.shape= (384, 32, 7625)# words mapped to one hot using model corpus dict
embedding.shape= (12288, 280)# embedding layer weights using word2vec model and word2vec corpus.
memory_units=512

model= Sequential()
model.add(Embedding(corpus_size, w2v_dim,batch_input_shape=(batch,seq_length), mask_zero=False, weights=[embedding], input_length=seq_length))
model.add(LSTM(memory_units, return_sequences=True, stateful= True, init= "orthogonal"))
model.add(Dropout(0.5))
model.add(LSTM(memory_units, return_sequences=True, stateful= True, init= "orthogonal"))
model.add(Dropout(0.5))
model.add(TimeDistributed(Dense(vocab_size, activation='softmax', init= "orthogonal")))

Am I missing something? Thanks.

Found the error. Embedding weights size should be equivalent to the largest index in the w2v_vocab+model_corpus_vocab.


taky_dps should be able to run without a config file

@dbussert raises an excellent point:
[...] I'm a bit confused that taky runs with no config (which is cool, makes it easy to default everything) [...] I think that's useful, I guess it was just a bit jarring that one worked with no config, but not the other.

The application should not bring confusing surprises to the user.
One difficulty on this is deciding where to place the uploaded files. I think for now, I will place them in /tmp/taky-$(hostname) for simplicity's sake.

Finally got around to this... it won't quite work out as easily as the COT server, but it's on the way.
The issue is that I want the configuration file to default to /var/taky/dp-user, and there's no guarantee that directory exists. So the new behavior is that if a config file is not present, the DPS will run happily by itself so long as that directory exists. If it does not, the server will error out and refuse to run.


Return error if library functions aren't found, instead of panicking

EntryCustom::new_custom doesn't return any error, it assumes the given library contains the functions it needs. If they aren't present, then the function panics. That's less than ideal if smoother error handling is needed, I would prefer it if the function returned Result if the library isn't a valid Vulkan library in some way. This would also propagate to Entry::new. Could this be implemented?

That's rather trivial to add - I guess you're just 4 minutes late to get the 0.32 release. Feel free to submit a PR :)

Ah, well I can't complain about a new version when I asked for it before! :D
I was initially thinking only about StaticFn, but it looks like a lot of functions use the same pattern: try to get the function address, and if not found then use a stub that panics when called. I doubt it's a good idea to make all of these return an error, I can imagine legitimate cases where not all of the functions are present. But I feel StaticFn is different, since it exists outside the Vulkan library entirely and is trying to find a first point of entry. So would it be ok to make StaticFn::load return Result, but leave every other load function as it is? I realise that might make auto code generation a bit awkward.

 StaticFn is not optional however, and pretty much immediately panics when loading entries after retrieving it. Should be good to return a Result from there while leaving the rest as it is.
Not sure if all the Entry functions are "core" functions and should all be available if a certain Vulkan version is declared. Perhaps it is nice to see up-front that certain functions failed to load (while not preventing the rest from loading) but that is definitely not required, feature availability can be checked in other ways.


CSS Cheatsheet

Hey @Suryansh1720001 I want to add css cheatsheet to your repository. Can I do this? If yes, please kindly assign me the task.

Hello @faria-karim-porna
Go for it. And please go through the readme and contributing file first before sending the pull request.
Thank you

Hey! can I contribute to this issue?

@Suryansh1720001 please label this issue with hacktoberfest-accepted.

I want to contribute in this repository by adding a CSS cheatsheet. Please assign this task to me under Hacktoberfest label.
Thank You!


error retrieving golang.org package

hi,
i've got this error when i try to retrieve golang.org package :
$ gb vendor fetch golang.org/x/crypto/ssh
FATAL command "fetch" failed: unknown repository type
FATAL command "vendor" failed: exit status 1

Don't quote me on this, but I believe gb vendor fetch only handles github.com right now, but more options will come soon: https://github.com/constabulary/gb/pull/126#issuecomment-105321403.

Yup, vanity imports are not supported, yet. But they are coming soon.
On Wed, 27 May 2015 08:35 Vitor De Mario<EMAIL_ADDRESS>wrote:

Don't quote me on this, but I believe gb vendor fetch only handles
github.com right now, but more options will come soon: #126 (comment)
https://github.com/constabulary/gb/pull/126#issuecomment-105321403.
—
Reply to this email directly or view it on GitHub
https://github.com/constabulary/gb/issues/144#issuecomment-105688961.

Ok thanks

Its on the short list to do.
On Wed, 27 May 2015 08:55 Nicolas Lamirault<EMAIL_ADDRESS>wrote:

Ok thanks
—
Reply to this email directly or view it on GitHub
https://github.com/constabulary/gb/issues/144#issuecomment-105691565.

Dup of #178

Great !
$ gb vendor fetch golang.org/x/crypto/ssh
Cloning into '/tmp/gb-vendor-272632174'...
remote: Total 1922 (delta 1210), reused 1922 (delta 1210)
Receiving objects: 100% (1922/1922), 1.41 MiB | 0 bytes/s, done.
Resolving deltas: 100% (1210/1210), done.
Checking connectivity... done.

Cool. Use gb vendor list to check it.
On Wed, 3 Jun 2015 21:34 Nicolas Lamirault<EMAIL_ADDRESS>wrote:

Great !
$ gb vendor fetch golang.org/x/crypto/ssh
Cloning into '/tmp/gb-vendor-272632174'...
remote: Total 1922 (delta 1210), reused 1922 (delta 1210)
Receiving objects: 100% (1922/1922), 1.41 MiB | 0 bytes/s, done.
Resolving deltas: 100% (1210/1210), done.
Checking connectivity... done.
—
Reply to this email directly or view it on GitHub
https://github.com/constabulary/gb/issues/144#issuecomment-108320205.

:+1:


Error opening folder for files

Description
What steps will reproduce the problem?

open spyder
click on folder icon to search for files to open
error

What is the expected output? What do you see instead?
New box with some location should be opened but instead error box popped up
Please provide any additional information below
File "C:\Users\Admin\Anaconda2\envs\tensorflow\lib\site-packages\spyder\plugins\editor.py", line 1840, in load
self.edit_filetypes = get_edit_filetypes()
File "C:\Users\Admin\Anaconda2\envs\tensorflow\lib\site-packages\spyder\config\utils.py", line 119, in get_edit_filetypes
pygments_exts = _get_pygments_extensions()
File "C:\Users\Admin\Anaconda2\envs\tensorflow\lib\site-packages\spyder\config\utils.py", line 86, in get_pygments_extensions
for lx in lexers.get_all_lexers():
File "C:\Users\Admin\Anaconda2\envs\tensorflow\lib\site-packages\pygments\lexers_init.py", line 53, in get_all_lexers
for lexer in find_plugin_lexers():
File "C:\Users\Admin\Anaconda2\envs\tensorflow\lib\site-packages\pygments\plugin.py", line 53, in find_plugin_lexers
yield entrypoint.load()
File "C:\Users\Admin\Anaconda2\envs\tensorflow\lib\site-packages\pkg_resources.py", line 2087, in load
if require: self.require(env, installer)
File "C:\Users\Admin\Anaconda2\envs\tensorflow\lib\site-packages\pkg_resources.py", line 2100, in require
working_set.resolve(self.dist.requires(self.extras),env,installer)))
File "C:\Users\Admin\Anaconda2\envs\tensorflow\lib\site-packages\pkg_resources.py", line 632, in

Thanks for reporting, and glad you got it fixed! For reference, the issue (as judging by the resolution to every similar issue) likely was an old version of setuptools, which updating coincidentally fixed. Very likely, the end of the full traceback would have indicated this.


Implemented and tested - we have R and Lua access again

Resolves #80 - ready for deployment.

First one to review please merge/delete and let the rest of us know?  Thanks!


Update to winit 0.29

Closes https://github.com/emilk/egui/issues/3542
Closes https://github.com/emilk/egui/issues/2977
Closes https://github.com/emilk/egui/issues/3303

Current status: On mac, running cargo run --release -p egui_demo_app brings up the window and it can be resized, but not interacted with.

cargo run -p egui_demo_app on my Mac results in a completely unresponsive application for me. I cannot click anything. The only interaction that is registered is window resize.

On Mac: In examples/multiple_viewports the Show deferred child viewport does nothing on this branch (while it works on the master branch).

Tested on X11 and found:

in IME, Every keystroke results in two characters.
Also in IME: Using Ctrl+key or Win+key still renders the character (it doesn't on master). For example Ctrl+C will type a C.

Apart from that everything looks okay (I think). cargo run -p custom_window_frame looks/works the same on this PR vs. master.

On Mac: In examples/multiple_viewports the Show deferred child viewport does nothing on this branch (while it works on the master branch).

Good find - it is now fixed!

@gerwin3 thanks for testing IME! Can you please try to dig a little deeper and see if you can figure out the cause of the two issues? RUST_LOG=winit=info,trace may help, though it can become quite verbose

Just checked and having all those issues in text input as well. let me see if I can debug the doubling issue.

Okay at least the key doubling is easy to fix:
--- a/crates/egui-winit/src/lib.rs
+++ b/crates/egui-winit/src/lib.rs
@@ -707,7 +707,9 @@ impl State {
             // On Mac we get here when the user presses Cmd-C (copy), ctrl-W, etc.
             // We need to ignore these characters that are side-effects of commands.
             let is_mac_cmd = cfg!(target_os = "macos") && self.egui_input.modifiers.mac_cmd;
-            if !is_mac_cmd {
+            // Also make sure the key is pressed (not released). On Linux, text might
+            // contain some data even when the key is released.
+            if pressed && !is_mac_cmd {
                 self.egui_input
                     .events

Not sure if there will be any regression on Windows or mac? Or if this has any bad interaction. Is there a situation where the key event is other than "Pressed" but text is produced?

Do you guys also test this in wasm? I am asking for a friend aka bevy :)

Is there a situation where the key event is other than "Pressed" but text is produced?

Maybe IME? 🤷

I prepared patch that updates resvg to v0.36 (issue: #3652):
update_resvg_0_36.patch
I think it matches in this PR as:

both resvg and winit (through sctk-adwaita) depend on tiny-skia, so updating them separately results in dependency duplication and cargo-deny fail.
there were already some small changes related to svg (commits b4e6246 & 7c89b67) and deny.toml (0dbd597) in this PR

In example images ferris is scaled differently, but I guess that now it scales in expected way (takes all available space; before this patch it takes up to space that, was available at first render- it does not upscale).

Digression 1
This patch is minimal adaptation to new resvg api and small related simplification, however it should be considered to update loaders (currently if svg image initially was small and was scaled up it will be blurred, see #3501). As svg image can now scale over render size, problem will be more often seen now.
(currently SvgLoader theoretically should rerender for different sizes (but will result in memory leak in that case), but refreshing is stopped earlier in DefaultTextureLoader).
I have some ideas on updating loaders (it will fix issue with svg and enable reloading image if file has been changed):

add two more variants to ImagePoll/BytesPoll (Changing(old_data) & Changed(new_data))

change order of loader tasks (currently is: 1. check if loader has image cached, 2. if not call lower level loader -> change to -> 1. call lower level loader 2. if lower level is not changed load cached)

SvgLoader:

store resvg::Tree & SizeHint in svg_loader::Entry

remove SizeHint from SvgLoader hashmap key

one of the following:

rerender svg if image size has been changed,
render dynamically (first approach will equal second one if there are multiple images from the same file but in different scale),
rerender svg if new image size is larger than rendered one (I guess this will be most performant, but there may be some minor down-scalling artifacts)

As these will require changes that are completely unrelated to winit, I guess it will better fit into separate PR, after this PR is merged.

Digression 2: check.sh installs cranky, but does not install typos nor cargo-deny that are also needed

@PingPongun thanks for the patch, but let's wait with the resvg update for a separate PR - this one is big enough as is 😓

I was testing to see if this branch fixes #3673, which it does, but on my machine it makes the main viewport on the demo app stop repainting whenever it is in the foreground and the extra viewport is open. The person who opened the issue did not observe the same behavior on their machine, which has a similar but different setup.
https://github.com/emilk/egui/assets/43298013/6fa47e11-931c-429e-b87b-61fe488049ff
Here is my setup:
OS: Fedora Linux 38 (Workstation Edition) x86_64
Host: Laptop (12th Gen Intel Core) A6
Kernel: 6.6.2-101.fc38.x86_64
Resolution: 2256x1504
DE: GNOME 44.6
WM: Mutter
WM Theme: Adwaita
Theme: Adwaita-dark [GTK2/3]
Icons: Adwaita [GTK2/3]
CPU: 12th Gen Intel i7-1260P (16) @ 4.700GHz
GPU: Intel Alder Lake-P GT2 [Iris Xe Graphics]

Another problem I found: the modifier keys are ignored. Both the left and the right ones. They don't appear as down in the inspection window in the demo app, and they don't have any other effect either (aside from making text upper case, in the case of the shift key).

According to @Wumpf this seems to work pretty well on Windows now.

IME seems to work on my Mac.
Are there any more blockers to merging this?

Just tried it out on Linux Mint 21.2, everything seems to be working perfectly aside from window dragging, which causes the window to fly into the top left corner of the screen (see video) I've tested to make sure every letter on my keyboard works + modifiers, as well as the various demos in the demo app. Nothing obvious that's different aside form the previously mentioned bug.
https://github.com/emilk/egui/assets/51887867/0a46b244-088c-4181-82cb-8c5ec2d593cf

Thanks @Vickerinox - I think that is an acceptable level of regression. If anyone wants that feature to work they can make a PR :)


Translation for de-DE

Added Translation for German

Thank you for your contribution, we are currently in the process of another big update to the UI, would you mind holding off for a bit until we get that done. Thank you in advance.

@Fabian9799 I think we are done with all the new UI things we wanted to translate, so you are welcome to translate the new things as shown: https://github.com/Kedyn/fusliez-notes/tree/master/src/assets/locales

Created newer version: https://github.com/Kedyn/fusliez-notes/pull/67


Update README.md for backend port caution

In case people request the wrong port and get 404s.
Signed-off-by: ffyuanda<EMAIL_ADDRESS>

Replaced by: https://github.com/casbin/casdoor/pull/293


[4pt]  -Display Comments pop up with selected item's details - Student B

Create a comments popup only with the top section (displaying details of the selected item)

When the popup loads, the webapp retrieves data from the selected API and shows details about the selected item.
Add event to button prepared by your teammate that will open your popup. You need to communicate with your team member to make sure that you do not block each other (most likely the easiest solution is to merge the list of items feature to the dev branch before you try to add that event).

@SaveryIV Pull Request has been created for the feature/s;

[ ] Display Comments pop up with selected item's details
[ ] Display comments for a given item on the Comments pop-up
[ ] Create feature: add new comment


feat($browser): Added events to provide the data after it is filtered…

… and after it is sorted.
Added new events to the ngTableEventsChannel that fire when the ngTableDefaultGetData filters and
sorts the data. This is usefull when you want to try to export only the filtered data or when you
want to make some real time statistics over the data that is beeing filtered.

The travis build is failing on some e2e tests. Nothing to do with this PR though!
Once I fix these (next few days hopefully), this PR will automatically get published to npm...

Great, thanks :+1:

Hi @dburner,
Just a heads up that the signature of the two new events are going to change in the next (?) release of ng-table.
See this commit for details: https://github.com/esvit/ng-table/commit/a9a72b4ea2f2ce99c32ae9a08cabb4eb539c7121
I don't think that should be a problem for you, but if it is let me know.
C

@christianacca thanks for the heads up, no it won't be a problem :)

This is usefull when you want to try to export only the filtered data
Where is stored this data? in which attribute?

Hi guys,
one question, is this actually fixed? When  I call $scope.tableParams.data im still getting only the visible page and not the whole set of filtered data.

@elMatidelUru , yes, but $scope.tableParams.data was not intented to get the whole data, to access the whole data after it is filtered you need to place the following code:
ngTableEventsChannel.onAfterDataFiltered((p, results) => {
    // results is all the filtered data
}
, this.tableParams);

Thanks! @dburner

Thanks! @dburner

Thanks! @dburner


doc: store proposal

This a proposal for etcd 0.6 store. Open for discussion.

The storage pkg is merged. We ended up with bolt.


gitlab-ci-local: 4.50.1 -> 4.51.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for gitlab-ci-local is: Run gitlab pipelines locally as shell executor or docker executor
meta.homepage for gitlab-ci-local is: https://github.com/firecow/gitlab-ci-local
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 4.51.0 with grep in /nix/store/gifhxw31vmjkjmbnqm3a1vja547vkv1x-gitlab-ci-local-4.51.0
found 4.51.0 in filename of file in /nix/store/gifhxw31vmjkjmbnqm3a1vja547vkv1x-gitlab-ci-local-4.51.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

gitlab-ci-local

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/gifhxw31vmjkjmbnqm3a1vja547vkv1x-gitlab-ci-local-4.51.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A gitlab-ci-local https://github.com/r-ryantm/nixpkgs/archive/a82d3ce1bb75eef8bc12fcd047f01b5412d71245.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/a82d3ce1bb75eef8bc12fcd047f01b5412d71245#gitlab-ci-local

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/gifhxw31vmjkjmbnqm3a1vja547vkv1x-gitlab-ci-local-4.51.0
ls -la /nix/store/gifhxw31vmjkjmbnqm3a1vja547vkv1x-gitlab-ci-local-4.51.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

gitlab-ci-local

Maintainer pings
cc @pineapplehunter for testing.

@NixOS/nixpkgs-merge-bot merge


Tx.transactionalWithIsolation broken on rollback

Summary
When using transactionalWithIsolation the library doesn't handle the disposal/close of the IDbConnection properly with respect to the interaction with the transaction.
Justification: it should not matter what isolation level I set on the transaction from a runtime-perspective, only from a database-transaction perspective. Corollary; there is always a transaction level active, even if it's implicit, so making it explicit should not matter.
Working test
    testCase "can execute serialisable tx" <| fun _ ->
      let cm = Sql.withNewConnection (fun () -> Conn.sqlite_open' InMemory)
      let select_one m = Sql.execScalar m "select 1" []
      let select_one =
        select_one
        |> Tx.transactional2
        |> Tx.transactionalWithIsolation IsolationLevel.Serializable
      let res = select_one cm
      Assert.Equal("Can execute tx", Tx.TxResult.Commit(Some 1L), res)

Failing test case
    testCase "can execute serialisable tx 2" <| fun _ ->
      let tx = Tx.TransactionBuilder()
      let cm = Sql.withNewConnection (fun () -> Conn.sqlite_open' InMemory)
      let select_one = tx {
        let! a = Tx.execScalar "select 1" []
        let a : int64 = a |> Option.get
        if 1 = 1 then // comment out this, next line, to make test pass
          do! Tx.rollback 3L
        let! b = Tx.execScalar "select 1" []
        let b : int64 = b |> Option.get
        return a + b
      }
      let select_one = select_one |> Tx.transactionalWithIsolation IsolationLevel.Serializable
      let res = select_one cm
      Assert.Equal("Can execute tx", Tx.TxResult.Rollback 3L, res)

Stack trace:
smoke/can execute serialisable tx 2: Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: No connection associated with this transaction
  at Mono.Data.Sqlite.SqliteTransaction.IsValid (Boolean throwError) [0x00011] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLiteTransaction.cs:148
  at Mono.Data.Sqlite.SqliteTransaction.Rollback () [0x00000] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLiteTransaction.cs:127
  at Tx+transactionalWithIsolation@13[Tx+TxResult`2[System.Int64,System.Int64]].Invoke (IDbConnection conn) [0x00000] in <filename unknown>:0
  at FsSqlPrelude.withResource[IDbConnection,TxResult`2] (Microsoft.FSharp.Core.FSharpFunc`2 create, Microsoft.FSharp.Core.FSharpFunc`2 dispose, Microsoft.FSharp.Core.FSharpFunc`2 action) [0x00000] in <filename unknown>:0
  at Tx.transactionalWithIsolation[TxResult`2] (IsolationLevel isolation, Microsoft.FSharp.Core.FSharpFunc`2 f, ConnectionManager cmgr) [0x00000] in <filename unknown>:0
  at<EMAIL_ADDRESS>(ConnectionManager cmgr) [0x00000] in /Users/henrik.feldt/dev/logibit/logibit.web/src/logibit.sqlite.tests/Smoke.fs:67
  at<EMAIL_ADDRESS>(Microsoft.FSharp.Core.Unit _arg5) [0x0003e] in /Users/henrik.feldt/dev/logibit/logibit.web/src/logibit.sqlite.tests/Smoke.fs:68
  at<EMAIL_ADDRESS>(System.Tuple`2 tupledArg) [0x00000] in <filename unknown>:0

Hmm, I think I know what the problem is... the exception thrown in https://github.com/mausch/FsSql/blob/master/FsSql/Transactions.fs#L24 gets interpreted as a Failed instead of a Rollback. Can you check if that's the case, by changing the final Assert in your failing test case?

The exception isn't caught.

What I mean is that the final Assert isn't reached, because the exception isn't caught. Sorry if I was being too frugal with my words.

No worries, I understood what you meant. I just added this failing test to the project.

Bloody stateful mutable weakly-typed ADO.NET objects... it's incredibly hard to reason about things like that. I'm considering first creating a proper typed model of transactions and connections that avoid things like http://stackoverflow.com/questions/19559715/when-does-sqlconnection-does-not-support-parallel-transactions-happen or http://stackoverflow.com/questions/6358806/this-sqltransaction-has-completed-it-is-no-longer-usable-configuration-er or this.

Better you being the poor sod to reason about weak interaction of spooky mutable objects at a distance, do a great library and save the next man from sure and imminent death by mutation. ;)

Absolutely, that is one of the goals of FsSql.
I revised the whole Tx module and made a few breaking changes. First I made I made transactionalWithIsolation total, returning TxResult instead of throwing exceptions (what was I thinking). This change made transactional2 unnecessary so I removed it (it also had the worst name ever).
That fixed the issue you describe here.
While I was at it, I also parameterized the Tx builder on the isolation level and removed the nonsense functions that applied "policies" on transactional functions.
There are still things I don't like but this should be much better than what I had before.
If you're ok with these changes I can release v2.0.

Yes, that sounds great. :shipit:

I would love if you could publish a nuget with this, or I'll have to fork this library too :(

Ooops, forgot about this, sorry.
Pushed: http://www.nuget.org/packages/FsSql/2.0.0

This is still broken. Did you incorporate my test?
    testCase "can execute serialisable tx 2" <| fun _ ->
      //Tests.skiptest "https://github.com/mausch/FsSql/issues/22"
      let tx = Tx.TransactionBuilder()
      let cm = Sql.withNewConnection (fun () -> SqliteConn.openConnType InMemory)
      let select_one = tx {
        let! a = Tx.execScalar "select 1" []
        let a : int64 = a |> Option.get
        if 1 = 1 then // comment out this, next line, to make test pass
          do! Tx.rollback 3L
        let! b = Tx.execScalar "select 1" []
        let b : int64 = b |> Option.get
        return a + b
      }
      let select_one = select_one |> Tx.transactionalWithIsolation IsolationLevel.Serializable
      let res = select_one cm
      Assert.Equal("Can execute tx", Tx.TxResult.Rollback 3L, res)

Yes, that test is in https://github.com/mausch/FsSql/blob/6bf3f5089429379d0dd86ca998004b2dea5b4806/FsSql.Tests/Tests.fs#L672

It's not working for me. This is the output I get:
smoke/can execute serialisable tx 2: Failed:
Can execute tx
Expected: Rollback 3L
Actual: Commit (Rollback 3L)

 (00:00:00.0507759)
smoke/can execute serialisable tx 2: Failed:
Can execute tx
Expected: Rollback 3L
Actual: Commit (Rollback 3L)

I'm running on Mono 3.12.1 on OS X. Did you test on that platform?

IIRC I only tested on Windows. I'll write a dockerfile to make it easier to test on Mono...

Well, running docker on Travis is a hassle so I'm giving up on Travis for now, but I did test it locally with docker / mono 3.12 and all the tests pass. https://github.com/mausch/FsSql/commit/661003ea54d09a7c2ec803e35444f8fca980111a

Strange; it might have something to do with how or what version of sqlite we link to. What version are you using? I'm at 3.7.13 2012-07-17 17:46:21<PHONE_NUMBER>4e3acbced5a3e16793327f0a2f17bb, you?

Seems I have an ancient version of Sqlite from 5 years ago: https://github.com/mausch/FsSql/tree/master/lib . I'll look into updating it tonight...

Actually the Mono build uses Mono.Data.Sqlite. https://github.com/mausch/FsSql/blob/master/FsSql.Tests/FsSql.Tests.fsproj#L75
And I just tried updating the .NET build to http://www.nuget.org/packages/System.Data.SQLite.Core/1.0.96 and I only had to change the expected exception in https://github.com/mausch/FsSql/blob/master/FsSql.Tests/Tests.fs#L248 to a NullReferenceException, not a major change. All tests passed.


Support nil type for disabling objects

Maybe there is already a way to do this, but we often set up templates with the ability to "disable" kube objects like so:
{
run_load_balancer: false,
if run_load_balancer then {
...
} else null,
...
}
Currently tanka errors out on nil https://github.com/grafana/tanka/blob/9f62754982952285f7a7dc62750360b6a1213bc0/pkg/kubernetes/reconcile.go#L112

happy to submit a PR for this, but wanted to check if it was intentional, or if there was another way to accomplish this


Package meta-data not being delivered

With the use of the Catalogue's api/v2, package meta-data stopped reaching the API's client

Closed (apparently) before PR #571


MG Cyberster details

I thought you might like to know what I get back from my Cyberster… see attached screen shots.
Also do you think it may be possible to add the controls of the car that are exposed in the iSMART App ( Eg HVAC) to the integration?

NB the Cyberster only has 2 doors and only front windows

Hi, @Johndowne
Thanks for the note. Are you able to share your HA full logs on the integration? Something like this: https://github.com/ad-ha/mg-saic-ha/issues/6#issue-2534849605
That will help a lot to see if I can build some conditions on which sensors to include for the Cyberster.
The AC controls are already available as a service/action. See Readme: https://github.com/ad-ha/mg-saic-ha# On an upcoming version I will try to include the temperature and fan control.
Cheers

Hi - another Cyberster owner here.  The integration works really well - thank you @ad-ha for developing this.  It's most appreciated.
The actions to control the AC work well, other than needing to reload the device for it to then update the sensors it is running.
One thing that would be really nice to have is a sensor that knows if the lights have been left on or not.
Thank you, Darren

Hi @dvptommy
Thanks for the comments, really appreciate.
I agree on the need to reload to get the sensors updated. I will try to include a method to update after any service being called. Let me work on that for a future version.
The lights sensor, at least in my case, do not populate on the API response, although it might be the case on the Cyberster. If you have the full logs with the response from the API I will look into it and see if it can be done. (see here: https://github.com/ad-ha/mg-saic-ha/issues/6#issue-2534849605)
Cheers

Is this what you need? I see it is identified as PHEV rather than BEV.
2024-10-28 14:14:34.270 DEBUG (MainThread) [custom_components.mg_saic] Vehicle Type: PHEV
2024-10-28 14:14:34.270 DEBUG (MainThread) [custom_components.mg_saic] Vehicle Info: [VinInfo(bindTime=1729080931000, brandName='MG', colorName='SILVER', isActivate=False, isCurrentVehicle=True, isSubaccount=False, modelName='Cyberster', modelYear='2024', name=None, series='EC32', vin='LSJWN5etc', subAccountList=[], vehicleModelConfiguration=[VehicleModelConfiguration(itemCode='J17', itemName='Tire', itemValue='1'), VehicleModelConfiguration(itemCode='Q00', itemName='Airbag', itemValue='1'), VehicleModelConfiguration(itemCode='Q01', itemName='FAirbag', itemValue='1'), VehicleModelConfiguration(itemCode='Q09', itemName='AirbagS', itemValue='1'), VehicleModelConfiguration(itemCode='S35', itemName='Sunroof', itemValue='0'), VehicleModelConfiguration(itemCode='S61', itemName='Remote control', itemValue='1'), VehicleModelConfiguration(itemCode='T11', itemName='AC', itemValue='1'), VehicleModelConfiguration(itemCode='EPS', itemName='EPS', itemValue='1'), VehicleModelConfiguration(itemCode='SA64', itemName='SA64', itemValue='0111110000000000001000000100101000000010100000000000000000000110'), VehicleModelConfiguration(itemCode='BONNUT', itemName='BONNUT', itemValue='1'), VehicleModelConfiguration(itemCode='DOOR', itemName='DOOR', itemValue='1100'), VehicleModelConfiguration(itemCode='BOOT', itemName='BOOT', itemValue='1'), VehicleModelConfiguration(itemCode='ENGINE', itemName='ENGINE', itemValue='1'), VehicleModelConfiguration(itemCode='EV', itemName='EV', itemValue='0'), VehicleModelConfiguration(itemCode='HeatedSeat', itemName='HeatedSeat', itemValue='1'), VehicleModelConfiguration(itemCode='KEYPOS', itemName='KEYPOS', itemValue='1'), VehicleModelConfiguration(itemCode='ENERGY', itemName='ENERGY', itemValue='1'), VehicleModelConfiguration(itemCode='BATTERY', itemName='BATTERY', itemValue='1'), VehicleModelConfiguration(itemCode='INTEMP', itemName='INTEMP', itemValue='1'), VehicleModelConfiguration(itemCode='EXTEMP', itemName='EXTEMP', itemValue='1'), VehicleModelConfiguration(itemCode='WINDOW', itemName='WINDOW', itemValue='0000'), VehicleModelConfiguration(itemCode='LRD', itemName='LRD', itemValue='1'), VehicleModelConfiguration(itemCode='BTKEY', itemName='BTKEY', itemValue='0'), VehicleModelConfiguration(itemCode='BType', itemName='Battery', itemValue='1'), VehicleModelConfiguration(itemCode='SBH', itemName='SBH', itemValue='1'), VehicleModelConfiguration(itemCode='BHI', itemName='BHI', itemValue='1'), VehicleModelConfiguration(itemCode='ROV', itemName='ROV', itemValue='25858')])]
2024-10-28 14:14:34.270 DEBUG (MainThread) [custom_components.mg_saic] Vehicle Status: VehicleStatusResp(basicVehicleStatus=BasicVehicleStatus(batteryVoltage=127, bonnetStatus=0, bootStatus=0, canBusActive=1, clstrDspdFuelLvlSgmt=7, currentJourneyId=118, currentJourneyDistance=110, dippedBeamStatus=0, driverDoor=0, driverWindow=0, engineStatus=0, extendedData1=80, extendedData2=0, exteriorTemperature=17, frontLeftSeatHeatLevel=0, frontLeftTyrePressure=67, frontRightSeatHeatLevel=0, frontRightTyrePressure=67, fuelLevelPrc=0, fuelRange=3810, fuelRangeElec=3810, handBrake=1, interiorTemperature=20, lastKeySeen=0, lockStatus=1, mainBeamStatus=0, mileage=3060, passengerDoor=0, passengerWindow=0, powerMode=0, rearLeftDoor=0, rearLeftTyrePressure=67, rearLeftWindow=0, rearRightDoor=0, rearRightTyrePressure=67, rearRightWindow=0, remoteClimateStatus=0, rmtHtdRrWndSt=0, sideLightStatus=0, steeringHeatLevel=0, steeringWheelHeatFailureReason=0, sunroofStatus=0, timeOfLastCANBUSActivity=None, vehElecRngDsp=0, vehicleAlarmStatus=2, wheelTyreMonitorStatus=0), extendedVehicleStatus=ExtendedVehicleStatus(alertDataSum=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), gpsPosition=GpsPosition(gpsStatus=2, timeStamp=1730124867, wayPoint=GpsPosition.WayPoint(hdop=9, heading=95, position=GpsPosition.WayPoint.Position(altitude=126, latitude=51etc, longitude=-15etc), satellites=7, speed=0)), statusTime=1730124869)
2024-10-28 14:14:34.271 DEBUG (MainThread) [custom_components.mg_saic] Vehicle Charging Data: ChrgMgmtDataResp(chrgMgmtData=ChrgMgmtData(bmsAdpPubChrgSttnDspCmd=0, bmsAltngChrgCrntDspCmd=4, bmsChrgCtrlDspCmd=2, bmsChrgOtptCrntReq=1023, bmsChrgOtptCrntReqV=1, bmsChrgSpRsn=0, bmsChrgSts=2, bmsDsChrgSpRsn=0, bmsEstdElecRng=403, bmsOnBdChrgTrgtSOCDspCmd=5, bmsPackCrnt=20000, bmsPackCrntV=0, bmsPackSOCDsp=799, bmsPackVol=1729, bmsPTCHeatReqDspCmd=2, bmsPTCHeatResp=0, bmsPTCHeatSpRsn=None, bmsReserCtrlDspCmd=2, bmsReserSpHourDspCmd=6, bmsReserSpMintueDspCmd=0, bmsReserStHourDspCmd=22, bmsReserStMintueDspCmd=0, ccuEleccLckCtrlDspCmd=1, ccuOffBdChrgrPlugOn=0, ccuOnbdChrgrPlugOn=2, chrgngAddedElecRng=0, chrgngAddedElecRngV=0, chrgngDoorOpenCnd=0, chrgngDoorPosSts=1, chrgngRmnngTime=1023, chrgngRmnngTimeV=1, chrgngSpdngTime=0, chrgngSpdngTimeV=0, clstrElecRngToEPT=381, disChrgngRmnngTime=1023, disChrgngRmnngTimeV=1, imcuChrgngEstdElecRng=382, imcuChrgngEstdElecRngV=0, imcuDschrgngEstdElecRng=230, imcuDschrgngEstdElecRngV=0, imcuVehElecRng=381, imcuVehElecRngV=0, onBdChrgrAltrCrntInptCrnt=0, onBdChrgrAltrCrntInptVol=0), rvsChargeStatus=RvsChargeStatus(chargingDuration=0, chargingElectricityPhase=None, chargingGunState=1, chargingPileID=None, chargingPileSupplier=None, chargingType=1, endTime=1730086482, extendedData1=None, extendedData2=None, extendedData3=None, extendedData4=None, fotaLowestVoltage=None, fuelRangeElec=3810, lastChargeEndingPower=579, mileage=3060, mileageOfDay=12240, mileageSinceLastCharge=0, powerUsageOfDay=162, powerUsageSinceLastCharge=0, realtimePower=579, startTime=1730086265, staticEnergyConsumption=None, totalBatteryCapacity=725, workingCurrent=20000, workingVoltage=1729))
2024-10-28 14:14:34.271 DEBUG (MainThread) [custom_components.mg_saic] Finished fetching MG SAIC data update coordinator data in 27.220 seconds (success: True)
2024-10-28 14:14:34.305 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved (None)

Hi @Johndowne

Developer Tools / Action to turn on/off the AC

So, this is the code that you would have to use to start AC:

Also, each service, when in YAML mode, has an example of data to be filled, just click on FILL EXAMPLE DATA and replace the vin with your vehicle VIN.
Getting actions actionable directly from the UI and the integration is something that I've been looking into implementing, but I did not have time yet to see it through.
Hope this helps.

Thanks - yes I had managed to work that out but then how do you save it and make use of the Action in, say, an automation?
I guess this is more a general HA rather than MG SAIC question so apologies for asking here.

I believe I got this sorted last night and have all services implemented with buttons, switches and also the climate (for AC) entities.
Let me try it and as soon as I get it finished I will release a new version.
The only thing is that the API is quite unreliable on some vehicle info data. As an example, my Marvel R has sunroof, but the API reports it as not having one, so I am reluctant to make conditions on the doors/windows sensors being dependent on the API info. Sorry.

Great - I look forward to seeing the results!
Thanks again for your efforts and successes on this
john

I think I got it all sorted.
Check for the update in a while.

@Johndowne
The update is released. You will now find these under the integration:

@dvptommy

One thing that would be really nice to have is a sensor that knows if the lights have been left on or not.

This info does not come on the API response. There's a sideLightStatus, but I'm not sure that this is it.
I've also addressed this:

other than needing to reload the device for it to then update the sensors it is running

After each service/action call, the integration will now force an update after 15 seconds.
Thank you both for the comments and support.

Wow - brilliant!
That all works very well. Must be worth another “coffee”.
if only you were responsible for enabling multiple concurrent logged on users / Apps.

Must be worth another “coffee”.

Thanks, @Johndowne . That means a lot.
I wish I could manage the multiple logins, but that's on MG side. They said that they are working on it... Let's see when do they pop it out.
Cheers

I believe I can now close this issue. Thank you both


Update Stock Synthesis acronym to SS3

Based on team agreement to change the standard acronym from SS to SS3, this revision needs to be incorporated through out the document.  Additionally, providing some text of acronym naming through time may be useful to new users.

I think a time line of major things in SS would be a great. Something similar to this history of R by Revolution Analytics or the updated version. Where naming changes could be included as major points.

kernels of such a timeline exist in my various presentations regarding the
history of SS3.  The naming aspect is a bit tangled as it certainly was not
planned out in advance!
On Thu, Dec 2, 2021 at 10:13 AM Kelli Johnson @.***>
wrote:

I think a time line of major things in SS would be a great. Something
similar to this history of R by Revolution Analytics
https://blog.revolutionanalytics.com/2017/10/updated-history-of-r.html
or the updated version
https://blog.revolutionanalytics.com/2020/07/the-history-of-r-updated-for-2020.html.
Where naming changes could be included as major points.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nmfs-stock-synthesis/ss-documentation/issues/77#issuecomment-984875459,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABPV4IEUIY2OHGBL2RVRM7DUO6ZK3ANCNFSM5JHYULOA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Update Nav: Add "CONTACT US" and Resources::Events

We are updating the main nav to include:

a CONTACT US button (see mocks here https://www.figma.com/file/waGiUrAg49yiPRezGRoxbT/CRL_HP) that should click to https://www.cockroachlabs.com/contact)

Adds "events" (https://www.cockroachlabs.com/community/events/) under the Resources tab -- underneath "Forum".

We will wait to push the new homepage live until you've had a chance to make the changes to the nav. Can you let me know if you need anything from me on the changes, and when you can make them?
[edited to add]
Can you also revert the "GET COCKROACHDB" button to click to https://www.cockroachlabs.com/get-cockroachdb/ ?
Thank you!

I'll handle this in just a bit, @jess-edwards.


Add support for ol.source.VectorTile.getFeatures()

As touched in https://github.com/openlayers/ol3/issues/3948 comments, I'd like to iterate for all features in the given tile (to read their IDs). It was possible in TileVector, but as this class was removed, there is no way to do this in the current API any more.

As suggested in jsfiddle in https://github.com/openlayers/ol3/issues/4501 this can be done using Vector layer/source which is loaded using customized loading strategy based on vector tiles. In Vector source all features are accessible directly, their IDs have to be altered to be unique though.


Null >= 0 weird behavior

When comparing null values to 0 with the >= operator , I get the following result:
{">=" : [null,0]}  //result is true
However, these operators yield the results:
{">" : [null,0]}   //result is false
{"==" : [null,0]}   // result is false
{"===" : [null,0]}   // result is false
I would expect the result of {">=" : [null,0]} to be false as well, is there any reason that it is not the case?

(null >= 0) === true in both JavaScript and PHP (the two reference languages I was worried about when I started writing JsonLogic).
In fact, both the implementations I maintain just use the language behavior without any checks around it.
There are other places we've decided to forge a brand "JsonLogic way" -- especially Truthy and Falsy. http://jsonlogic.com/truthy.html Arguably we could do the same thing for null behavior, but I think you're the first person to ask about it.
Interestingly, PHP and JavaScript disagree on whether null == 0 (PHP says true, JS says false) which means in some cases JsonLogic isn't as portable as I'd like.

I don't think that this behavior is logically consistent. null represents an absence of a value and not 0 or true/false, so when comparing I would expect that nothing is == null except for null == null.
Making a decision on this is much better then depending on quirks of the language to determine the result.

Yep, this just bit me aswell:
{ "<=": [ null, 1 ] } // return true

Well, there has been some heat in other places around building type-safe language implementations, where { "<=": [ null, 1 ] } would throw a runtime error instead of bumbling along. I think it would be popular, but I don't think it should crowd out type-agnostic implementations entirely.
I'm struggling to come up with a "successful" example JL could look up to. We could make null "infectious" so every comparison with null returns null... I think this is SQL's answer to the problem, and it has the virtue of being self-consistent. https://dev.mysql.com/doc/refman/8.0/en/working-with-null.html
That way we don't have to write a giant comparison matrix (is null greater than or equal to an object with no properties?)


Unlighthouse never finishes when all urls are failing

Describe the bug
When providing a list of urls and all of them are failing, for example because the Server blocks the robot, the unlighthouse start function will never finish or throw an error.
const {hooks} = unlighthouse;

hooks.hook('worker-finished', () => {
    console.log('All sites tested');
});

await unlighthouse.start();

Eg the output will be (you see no 'All sites tested')
HTML extract of https://www.bayer.com/de/ response failed.                                                                                Unlighthouse 09:42:13
Skipping /de/. Invalid status code: 403.                                                                                Unlighthouse 09:42:13
Ignoring route /de/.                                                                                Unlighthouse 09:42:13
HTML extract of https://www.bayer.com/de/de/deutschland-startseite response failed.                                                                                Unlighthouse 09:42:14
Skipping /de/de/deutschland-startseite. Invalid status code: 403.                                                                                Unlighthouse 09:42:14
Ignoring route /de/de/deutschland-startseite.                                                                                Unlighthouse 09:42:14
HTML extract of https://www.bayer.com/de/gesundheit response failed.                                                                                Unlighthouse 09:42:14
Skipping /de/gesundheit. Invalid status code: 403.                                                                                Unlighthouse 09:42:14
Ignoring route /de/gesundheit.                                                                                Unlighthouse 09:42:14
HTML extract of https://www.bayer.com/de/kontakt response failed.                                                                                Unlighthouse 09:42:15
Skipping /de/kontakt. Invalid status code: 403.                                                                                Unlighthouse 09:42:15
Ignoring route /de/kontakt.                                                                                Unlighthouse 09:42:15
HTML extract of https://www.bayer.com/de/locations response failed.                                                                                Unlighthouse 09:42:15
Skipping /de/locations. Invalid status code: 403.                                                                                Unlighthouse 09:42:15
Ignoring route /de/locations.

and then it never stops.

i Using puppeteer dependency for chrome.                                                                                Unlighthouse 10:15:38
D Post config resolution { routerPrefix: '/',                                                                                Unlighthouse 10:15:38
apiPrefix: '/api',
cache: false,
client:
{ groupRoutesKey: 'route.definition.name',
columns:
{ overview: [Array],
performance: [Array],
accessibility: [Array],
'best-practices': [Array],
seo: [Array] } },
scanner:
{ customSampling: {},
ignoreI18nPages: true,
maxRoutes: 500,
skipJavascript: false,
samples: 1,
throttle: false,
crawler: false,
dynamicSampling: 8,
sitemap: false,
robotsTxt: false,
device: 'desktop',
exclude: [ '/cdn-cgi/*' ] },
server: { port: 5678, showURL: false, open: false },
discovery: false,
root: 'C:\Users\benny\work\lighthouse',
outputPath: '.unlighthouse',
debug: true,
puppeteerOptions:
{ headless: true,
ignoreHTTPSErrors: true,
args: [ '--no-sandbox' ],
defaultViewport:
{ mobile: false, width: 1350, height: 940, deviceScaleFactor: 1, disabled: false } },
puppeteerClusterOptions:
{ monitor: true,
workerCreationDelay: 500,
retryLimit: 3,
timeout: 300000,
maxConcurrency: 16,
skipDuplicateUrls: false,
retryDelay: 2000,
concurrency: 3 },
lighthouseOptions:
{ onlyCategories: [ 'performance', 'accessibility', 'best-practices', 'seo' ],
throttlingMethod: 'provided',
throttling:
{ rttMs: 0,
throughputKbps: 0,
cpuSlowdownMultiplier: 1,
requestLatencyMs: 0,
downloadThroughputKbps: 0,
uploadThroughputKbps: 0 },
formFactor: 'desktop',
screenEmulation:
{ mobile: false, width: 1350, height: 940, deviceScaleFactor: 1, disabled: false },
emulatedUserAgent:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36' },
site: 'https://www.bayer.com/de/de/deutschland-startseite',
urls:
[ 'https://www.bayer.com/de/de/deutschland-startseite',
'https://www.bayer.com/de/locations',
'https://www.bayer.com/de/',
'https://www.bayer.com/de/gesundheit',
'https://www.bayer.com/de/kontakt' ],
output: { json: true, html: true },
chrome:
{ useSystem: false,
useDownloadFallback: true,
downloadFallbackVersion: 1095492,
downloadFallbackCacheDir: 'C:\Users\benny\.unlighthouse' } }

Facing the same issue. Just hangs indefinitely


Multiple react-polling components

Hi,
When I try to call the react-polling component multiple times from within my react app then polling works for only the first time. If I pass in different props based on change in some state, then the polling doesn't work.
Is it expected behaviour?

can you create a sample codesandbox so that I can check what is wrong with the component?


cannot attach a managed disk by sdk, always report A disk at LUN X already exists.

I have used go sdk, try to attach a managed data disk in a VM with managed OS disk, while it always reports error from server, no matter what LUN number I have specified, error is as following, actually my target VM has no data disk.
failed with compute.VirtualMachinesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidParameter" Message="A disk at LUN 0 already exists."
failed with compute.VirtualMachinesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidParameter" Message="A disk at LUN 1 already exists."
failed with compute.VirtualMachinesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidParameter" Message="A disk at LUN 3 already exists."
failed with compute.VirtualMachinesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidParameter" Message="A disk at LUN 6 already exists."
My code is as following, I just could not a sample code for attach managed disk case:
disks := *vm.StorageProfile.DataDisks
if isManagedDisk {
disks = append(disks,
compute.DataDisk{
Name:         &diskName,
Lun:          &lun,
Caching:      cachingMode,
CreateOption: "attach",
ManagedDisk: &compute.ManagedDiskParameters{
ID: &diskURI,
},
})
}
newVM := compute.VirtualMachine{
	Location: vm.Location,
	VirtualMachineProperties: &compute.VirtualMachineProperties{
		StorageProfile: &compute.StorageProfile{
			DataDisks: &disks,
		},
	},
}
vmName := mapNodeNameToVMName(nodeName)
glog.V(2).Infof("create(%s): vm(%s)", c.resourceGroup, vmName)
c.cloud.operationPollRateLimiter.Accept()
resp, err := c.cloud.VirtualMachinesClient.CreateOrUpdate(c.resourceGroup, vmName, newVM, nil)

BTW, I have used REST api calls by the same way, it works well, so I guess if there is something wrong with the go sdk.

It's actually my code logic issue


Update to go 1.20

Requested from security team for golang version bump

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Security fix
The following images were discovered with go binaries.
gke.gcr.io/slo-monitor:0.15.3-gke.0@sha256:a6566735491187c15c4e5d53e638a3e7cad98629df4e2650c48ee77cf74d0d39:
slo-monitor: go1.19.6
migrate the binaries to the following patched versions: [go1.19.9 go1.20.4]
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

/cc @ruiwen-zhao

/ok-to-test
/lgtm

/approve


Fix ES5 default value

ES5 option is now set per default.

Merged to master at commit 5c96bf8fb89b747aceb8d10626153ad2fc4e5f36. Thanks!


Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled

Motivation:
This fixes a bug that would result in an io.netty.channel.unix.Errors$NativeIoException: connectx(..) failed: Address family not supported by protocol family error.
This happens when the connecting socket is configured to use IPv6 but the address being connected to is IPv4.
This can occur because, for instance, Netty and InetAddress.getLoopbackAddress() have different preferences for IPv6 vs. IPv4.
Modification:
Pass the correct ipv6 or ipv4 flags to connectx, depending on whether the socket was created for AF_INET or AF_INET6, rather than relying on the IP version of the destination address.
Result:
No more issue with TCP FastOpen on MacOS when using addresses of the "wrong" IP version.

Needs to add some more tests to this


COPY doesn't work: cross-device link

 => ERROR [2/2] COPY 1.txt /1.txt                                                                                2.2s
------
 > [2/2] COPY 1.txt /1.txt:
------
Dockerfile:2
--------------------
   1 |     FROM ghcr.io/macoscontainers/macos-jail/ventura:latest
   2 | >>> COPY 1.txt /1.txt
   3 |
--------------------
ERROR: failed to solve: failed to copy files: cross-device link

Will be fixed with https://github.com/tonistiigi/fsutil/pull/170


Help here is my error log

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/00-banner.sh

Add-on: Bluetti to MQTT
MQTT bridge between Bluetti and Home Assistant
Add-on version: 1.4.1
You are running the latest version of this add-on.
System: Home Assistant OS 12.1  (amd64 / qemux86-64)
Home Assistant Core: 2024.3.1
Home Assistant Supervisor: 2024.03.0
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-log-level.sh
cont-init: info: /etc/cont-init.d/01-log-level.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[18:59:35] INFO: Reading configuration settings...
[18:59:36] INFO: Debug mode is enabled.
[18:59:36] INFO: Starting bluetti-mqtt...
2024-03-14 18:59:37 DEBUG    Using selector: EpollSelector
Scanning....
2024-03-14 18:59:37 DEBUG    initial properties: {'/org/bluez': {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.AgentManager1': {}, 'org.bluez.ProfileManager1': {}}}
Traceback (most recent call last):
File "/usr/local/bin/bluetti-mqtt", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/server_cli.py", line 156, in main
cli.execute()
File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/server_cli.py", line 68, in execute
asyncio.run(scan_devices())
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/bluetooth/init.py", line 17, in scan_devices
devices = await BleakScanner.discover()
File "/usr/local/lib/python3.10/site-packages/bleak/init.py", line 242, in discover
async with cls(**kwargs) as scanner:
File "/usr/local/lib/python3.10/site-packages/bleak/init.py", line 152, in aenter
await self._backend.start()
File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/scanner.py", line 179, in start
adapter_path = manager.get_default_adapter()
File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/manager.py", line 299, in get_default_adapter
raise BleakError("No Bluetooth adapters found.")
bleak.exc.BleakError: No Bluetooth adapters found.
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

please help I am new to ha and mqtt