rancher server is not reachable , all requests waits for a long time and then fail.

Server - Build from Aug 21
rancher server is not reachable , all requests waits for a long time and then fail.
Exceptions seen in the logs:
{"@timestamp":"2015-08-21T16:49:27.512+00:00","@message":"Attempting to run process [agent.reconnect:369794] on resource [2]","@fields":{"logger_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","thread_name":"ProcessExecutorService-4","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","caller_method_name":"execute","caller_file_name":"DefaultProcessInstanceImpl.java","caller_line_number":106,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:27.522+00:00","@message":"Exiting [PROCESS_ALREADY_IN_PROGRESS] process [agent.reconnect:369794] on resource [2]","@fields":{"logger_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","thread_name":"ProcessExecutorService-4","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","caller_method_name":"execute","caller_file_name":"DefaultProcessInstanceImpl.java","caller_line_number":117,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:27.537+00:00","@message":"Attempting to run process [agent.reconnect:369795] on resource [1]","@fields":{"logger_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","thread_name":"ProcessExecutorService-2","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","caller_method_name":"execute","caller_file_name":"DefaultProcessInstanceImpl.java","caller_line_number":106,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:27.535+00:00","@message":"Attempting to run process [agent.reconnect:369796] on resource [3]","@fields":{"logger_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","thread_name":"ProcessExecutorService-12","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","caller_method_name":"execute","caller_file_name":"DefaultProcessInstanceImpl.java","caller_line_number":106,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:27.542+00:00","@message":"Exiting [PROCESS_ALREADY_IN_PROGRESS] process [agent.reconnect:369796] on resource [3]","@fields":{"logger_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","thread_name":"ProcessExecutorService-12","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","caller_method_name":"execute","caller_file_name":"DefaultProcessInstanceImpl.java","caller_line_number":117,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:27.543+00:00","@message":"Exiting [PROCESS_ALREADY_IN_PROGRESS] process [agent.reconnect:369795] on resource [1]","@fields":{"logger_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","thread_name":"ProcessExecutorService-2","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","caller_method_name":"execute","caller_file_name":"DefaultProcessInstanceImpl.java","caller_line_number":117,"HOSTNAME":"d058f4b6fed4"}}
time="2015-08-21T16:49:27Z" level=info msg="Setting log level" logLevel=info
time="2015-08-21T16:49:27Z" level=info msg="Starting go-machine-service..." gitcommit=102d311
{"@timestamp":"2015-08-21T16:49:28.707+00:00","@message":"Timeout waiting for response to [ping] id [68466ccf-4f94-4c30-b7fc-8fee6ab3beb2]","@fields":{"logger_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl","thread_name":"CoreExecutorService-309","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl$2","caller_method_name":"doRun","caller_file_name":"AgentServiceImpl.java","caller_line_number":97,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:28.708+00:00","@message":"Timeout waiting for response to [ping] id [d1fecfb4-25ee-4849-ae0e-7930095c00da]","@fields":{"logger_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl","thread_name":"CoreExecutorService-306","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl$2","caller_method_name":"doRun","caller_file_name":"AgentServiceImpl.java","caller_line_number":97,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:28.708+00:00","@message":"Timeout waiting for response to [ping] id [992d0c8d-e485-4c45-95dc-de9fef93e05f]","@fields":{"logger_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl","thread_name":"CoreExecutorService-319","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl$2","caller_method_name":"doRun","caller_file_name":"AgentServiceImpl.java","caller_line_number":97,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:38.709+00:00","@message":"Timeout waiting for response to [ping] id [992d0c8d-e485-4c45-95dc-de9fef93e05f]","@fields":{"logger_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl","thread_name":"CoreExecutorService-306","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl$2","caller_method_name":"doRun","caller_file_name":"AgentServiceImpl.java","caller_line_number":97,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:38.713+00:00","@message":"Timeout waiting for response to [ping] id [68466ccf-4f94-4c30-b7fc-8fee6ab3beb2]","@fields":{"logger_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl","thread_name":"CoreExecutorService-203","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl$2","caller_method_name":"doRun","caller_file_name":"AgentServiceImpl.java","caller_line_number":97,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:38.714+00:00","@message":"Timeout waiting for response to [ping] id [d1fecfb4-25ee-4849-ae0e-7930095c00da]","@fields":{"logger_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl","thread_name":"CoreExecutorService-203","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl$2","caller_method_name":"doRun","caller_file_name":"AgentServiceImpl.java","caller_line_number":97,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:42.554+00:00","@message":"Attempting to run process [agent.reconnect:369794] on resource [2]","@fields":{"logger_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","thread_name":"ProcessExecutorService-23","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","caller_method_name":"execute","caller_file_name":"DefaultProcessInstanceImpl.java","caller_line_number":106,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:42.558+00:00","@message":"Attempting to run process [agent.reconnect:369795] on resource [1]","@fields":{"logger_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","thread_name":"ProcessExecutorService-20","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","caller_method_name":"execute","caller_file_name":"DefaultProcessInstanceImpl.java","caller_line_number":106,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:42.562+00:00","@message":"Exiting [PROCESS_ALREADY_IN_PROGRESS] process [agent.reconnect:369794] on resource [2]","@fields":{"logger_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","thread_name":"ProcessExecutorService-23","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","caller_method_name":"execute","caller_file_name":"DefaultProcessInstanceImpl.java","caller_line_number":117,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:42.563+00:00","@message":"Attempting to run process [agent.reconnect:369796] on resource [3]","@fields":{"logger_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","thread_name":"ProcessExecutorService-5","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","caller_method_name":"execute","caller_file_name":"DefaultProcessInstanceImpl.java","caller_line_number":106,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:42.565+00:00","@message":"Exiting [PROCESS_ALREADY_IN_PROGRESS] process [agent.reconnect:369796] on resource [3]","@fields":{"logger_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","thread_name":"ProcessExecutorService-5","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","caller_method_name":"execute","caller_file_name":"DefaultProcessInstanceImpl.java","caller_line_number":117,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:42.563+00:00","@message":"Exiting [PROCESS_ALREADY_IN_PROGRESS] process [agent.reconnect:369795] on resource [1]","@fields":{"logger_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","thread_name":"ProcessExecutorService-20","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl","caller_method_name":"execute","caller_file_name":"DefaultProcessInstanceImpl.java","caller_line_number":117,"HOSTNAME":"d058f4b6fed4"}}
time="2015-08-21T16:49:44Z" level=error msg="Unable to create EventRouter" Err="Get http://latest.rancher.io/v1: dial tcp <IP_ADDRESS>:80: no route to host"
time="2015-08-21T16:49:44Z" level=info msg="Exiting go-machine-service..."
time="2015-08-21T16:49:45Z" level=info msg="Setting log level" logLevel=info
time="2015-08-21T16:49:45Z" level=info msg="Starting go-machine-service..." gitcommit=102d311
{"@timestamp":"2015-08-21T16:49:48.711+00:00","@message":"Timeout waiting for response to [ping] id [68466ccf-4f94-4c30-b7fc-8fee6ab3beb2]","@fields":{"logger_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl","thread_name":"CoreExecutorService-259","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl$2","caller_method_name":"doRun","caller_file_name":"AgentServiceImpl.java","caller_line_number":97,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:48.713+00:00","@message":"Timeout waiting for response to [ping] id [992d0c8d-e485-4c45-95dc-de9fef93e05f]","@fields":{"logger_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl","thread_name":"CoreExecutorService-320","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl$2","caller_method_name":"doRun","caller_file_name":"AgentServiceImpl.java","caller_line_number":97,"HOSTNAME":"d058f4b6fed4"}}
{"@timestamp":"2015-08-21T16:49:48.714+00:00","@message":"Timeout waiting for response to [ping] id [d1fecfb4-25ee-4849-ae0e-7930095c00da]","@fields":{"logger_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl","thread_name":"CoreExecutorService-320","level":"INFO","level_value":20000,"caller_class_name":"io.cattle.platform.agent.server.service.impl.AgentServiceImpl$2","caller_method_name":"doRun","caller_file_name":"AgentServiceImpl.java","caller_line_number":97,"HOSTNAME":"d058f4b6fed4"}}

Closing this issue. This was a setup issue with iptables blocking port 80 n the server.


readonly modifier is ignored in unions

interface X {
    readonly value: 'x';
}
interface Y {
    value: 'y';
}
type Z = X | Y;
var z: Z = <Z>{ value: 'y' };
z.value = 'x'; // expected an error saying that value: 'x' is readonly and cannot be set, actual OK

UPDATE:
even this example doesn't work (with both possible options being readonly)
interface X {
    readonly value: 'x';
}
interface Y {
    readonly value: 'y';
}
type Z = X | Y;
var z: Z = <Z>{ value: 'y' };
z.value = 'x'; // expected an error saying that value: 'x' is readonly and cannot be set, actual OK

#9167 fixes this for unions and intersections.


The system command does not display Chinese correctly

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
Enter system commands, for example:
ipconfig /all

Expected behavior
Display Chinese correctly, pwsh should follow the system language!

Actual behavior
pwsh does not display Chinese, does not follow the system language!
Version: 7.3.3

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      7.3.3
PSEdition                      Core
GitCommitId                    7.3.3
OS                             Microsoft Windows 10.0.22624
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals

i test again on win11 22h2 vm + ps v7.3.3 ,normal. the build version is 22621.
10.0.22624 looks like : win11 insider preview ,maybe that's why.

Yes, I'm using Win11 Insider Preview, so can the problem be fixed?
@kasini3000

Please look at the second picture, the system comes with no problem!

@kasini3000 @daxian-dbw
Yes, I'm using Win11 Insider Preview, so can the problem be fixed?

Since it works normally in Powershell v5, I think this might solve the problem:
powershell.exe -c "ipconfig /all" on ps v 7.3.3
If it still doesn't work, you can only use the old release version of Windows 11 , which has fewer issues.

@yuwenlong Can you share the values of $OutputEncoding, and [console]::OutputEncoding from both the pwsh.exe and powershell.exe sessions?
Also, can you run Start-Process ipconfig -ArgumentList '/all' -NoNewWindow -Wait from pwsh.exe and share the results?

@kasini3000 @daxian-dbw Please see the screenshot above.

@kasini3000 @daxian-dbw

Looks like your environment is wrong
try :
[console]::OutputEncoding = [System.Text.Encoding]::GetEncoding(936)
ipconfig /all

That's fine, but why doesn't the software follow the system language? Do you want the user to set it manually?
@daxian-dbw @kasini3000

PSReadLine restores the initial Console.OutputEncoding when an input is accepted, so what you observed is not caused by PSReadLine.
I'm not sure why .NET doesn't pick up the system language. Also, not sure if this is a problem in general or only in your particular system environment. I don' have a repro machine for this. @kasini3000 Do you have a machine with the Chinese system language? If so, can you please try and see if you can reproduce the issue?

Thanks @kasini3000 for the help! I have marked this issue with Resolution - External.

@yuwenlong 我解决了这个问题，就是将他持久化，而不是仅仅修改当前终端，你需要打开$PROFILE 文件，它是powershell的配置文件，并将之前的那一句代码给写入[console]::OutputEncoding = [System.Text.Encoding]::GetEncoding(936)  然后保存退出即可。

@yuwenlong I solved this problem, that is, to persist it, instead of just modifying the current terminal, you need to open the $PROFILE file, which is the configuration file of PowerShell, execute notepad $PROFILE and insert the following line of code  [console]::OutputEncoding = [System.Text.Encoding]::GetEncoding(936) and then save and exit.

Interestingly, I didn't join the Win11 Insider Preview., but the issue still arises.

@Collins-Leo 谢谢，所以还是需要 @daxian-dbw 看看吧


Update template to use a store

Problem:
Templates need their versionsLinks updated based off the rancher server
for both list and watch calls
Solution:
Add a Transformer to add the links and move the logic out of a
formatter
https://github.com/rancher/rancher/issues/22835

Commits should probably be squashed

LGTM


Check upload policy every N messages / seconds

During low traffic hours, our Secor instances process around 4000 messages per second, which means that we're checking if there are any logs eligible for upload all of the time. If we had a low secor.max.file.age.seconds value that would've been fine, but right now it's 3600 seconds (i.e. one hour), and secor.max.file.size.bytes is 1 Gigabyte, so this is currently a huge performance hit.
While reusing secor.messages.per.second (which is used for rate limiting) is not the best solution, it's a tradeoff between creating yet another configuration option or reusing an old one (which might have unintended side-effects for other users). The default specified in secor.common.properties is 10 000, and the one hardcoded is 10 000, so for anyone using that configuration file there's no difference (though I don't think most users are).
Feedback and thoughts about this is greatly appreciated.

I agree that there are tradeoffs but your approach seems acceptable.


Constant attribute does not update

Consider simple setup:
let regl = require('regl')()

let draw = regl({
	attributes: {
		pos: [0,0, .1,.1],
		active: regl.prop('active')
	},
	depth: {enable: false},
	count: 2,
	primitive: 'points',

	frag: `void main() {gl_FragColor = vec4(0,0,0,1);}`,

	vert: `
	precision highp float;

	attribute vec2 pos;
	attribute float active;

	void main() {
	  if (active == 0.) return;

	  gl_PointSize = 10.;
	  gl_Position = vec4(pos, .5, 1);
	}
	`
})

draw({active: [0,1]})

draw({active: {constant: [1]}})

regl.clear({color: true})

// uncomment this to fix issue
// regl._refresh()
draw({active: [1,0]})

The last draw call does not recognize new active array and keeps constant attribute [1].
The need to insert regl._refresh() reduces performance in plotly regl-* components (around 6 times for regl-splom).
Related: https://github.com/plotly/plotly.js/issues/2586, possibly #427.

This seems very similar to #483. In that issue, attributes are left in a possibly-active state so that if you destroy the buffers previous commands have referenced, webgl complains, even though the attributes and now-destroyed buffers are unused for the current command. It seems like the checks near lib/core.js:2250 might need to be beefed up a bit in order to catch more subtle changes.

Nope. Only superficially similar. #483 was fixed long ago, while this remains an issue.

@dy After (finnallly) digging into this a fair amount, I believe the issue is that the decision about whether an attribute is constant or not seems to be made here in the parseAttributes section:
https://github.com/regl-project/regl/blob/6204ca37e3323181f1386ff61226e661e0e7c972/lib/core.js#L1623
while that state is then used in the emitAttributes section:
https://github.com/regl-project/regl/blob/6204ca37e3323181f1386ff61226e661e0e7c972/lib/core.js#L2296-L2307
The result is that I think the (in my opinion very highly desirable) decision of whether an attribute is constant or not simply can't be made at runtime.
The problem then is that it doesn't prevent you from trying and (I haven't totally debugged this part but) it seems like the state gets corrupted.
So strictly speaking what you've tried to do is invalid usage and it just happens that refreshing the state resets things to what in this particular case is the desired state—but it would be very easy to come up with a situation in which it resets things to what's not the desired state.
Personally I would find deferring the decision until runtime to be highly desirable. This would allow very useful abstraction like writing commands that are agnostic to whether a color, for example, is an attribute or a uniform. I'd like to modify the structure to defer the decision, but I'm interested in whether @mikolalysenko thinks the penalty (performance, complexity, or otherwise) might be prohibitive.

Oh. I might be slightly wrong about that. There clearly is some runtime allowance if the state is neither pointer nor const. Okay, investigating how to get to that branch. Maybe a dynamic property……

Okay, yup, I spoke too soon. The problem appears to be this conditional:
https://github.com/regl-project/regl/blob/6204ca37e3323181f1386ff61226e661e0e7c972/lib/core.js#L2239
That appears to be preventing it from reenabling vertex attrib array when the state is switched away from constant. Simply removing the conditional fixes it, but there's probably a way to target it a bit more precisely.

Oh. It just needs an else with disableVertexAttribArray otherwise it will never get disabled, which is the whole problem. That will get called quite a bit so that it would make sense to track the state and avoid it.

Oof, the more I look at this, the more I start to understand what it's trying to do, but what it's trying to do actually seems to actually make sense, just not  work. Okay, we can get this.

Okay, had to agonize over this a bit, but finally got to the bottom of it. I've merged it in #545 and have published v1.3.12 to npm. It's too bad travis isn't working anymore (there's a successor to headless-gl now, isn't there??), but I feel pretty good about it and made sure to get all the tests passing (including odd extension interaction), so I went ahead and published. 🎉

As for the tests, we can try to set up tape-run, it runs them in electron.
The example in fast-on-load.


Add Call-To-Action Entry for Resource Linking

Adds a separate context pad provider that adds a call-to-action entry to link a resource (BPMN, DMN or Form). The entry indicates whether a resource is linked or not. Clicking the entry fires an event with the relevant context for handling the linking of the resource.

Closes #23
Related to https://github.com/camunda/product-hub/issues/1917

@smbea Unfortunately, since you opened the pull request, I cannot request a review from you. 😞

@philippfromme will look at this today

It seems the hover state doesn't cover the full entry:
https://github.com/camunda/improved-canvas/assets/25825387/dd94d1ec-798f-4de9-a0ec-e785def48986

I think the rest looks good. I also can't give an official review since I opened the PR 😅

It seems the hover state doesn't cover the full entry:

This is analogous to the non-call-to-action entries.

I also mentioned it here: https://github.com/camunda/product-hub/issues/1917#issuecomment-1908965052. 😇

I had a chat with @marcellobarile and it turns out we forgot about form linking for start events which is supported by the Web Modeler. I will add it. 👷🏻♂

I've added support for none start events (enabled by default, can be disabled through configuration). Should be good to go now.


Password input component

What / Why

Adds the password input component from the GOVUK Design System - see their docs here
There is a bug which I wasn't sure what to do about. Our component docs say that text in components should be translatable - so I tried to allow the Show/Hide button text to be overwritten. However, the button text gets changed by the GOVUK Frontend JavaScript on click. Therefore even if we change the text in the HTML, it gets overwritten as soon as you click the button. Therefore I've added the ability to change the button text in the template file, but I haven't made it known in the yml docs that it's a feature.
Hope everything's up to standard - first time adding a component!
Trello card: https://trello.com/c/Gj5yIsxH/298-implement-password-input-component

Visual Changes

The addition of the component has added visual changes to review.

Thanks for reviewing @andysellick 👍 I've made every change requested, so this should be ready for another review.


fuel level/battery level/SOC not shown for Toyota BZ4X

I have installed ha_toyota using HACS.
HomeAssistant Version 2024.9.3
All sensors of my BZ4X are fine, except -fuel level-.
I assume that -fuel level- in general is the wrong value and instead sholud be someting like -battery level/SOC- or anything else.
Sorry, I am no programmer, so my description is not very expertly.

Can you show a screenshot of what is available in the app for you?

Not sure what you are asking for, do you mean available sensors in my HA Dashboard?
Here they are, sorry for german language:
[IMG_4298]
Mit freundlichen Grüßen
Andreaso you me Siebenmorgen
Am 02.10.2024 um 07:59 schrieb Arnav Jain @.***>:

Can you show a screenshot of what is available in the app for you?
—
Reply to this email directly, view it on GitHubhttps://github.com/DurgNomis-drol/ha_toyota/issues/299#issuecomment-2387687572, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BLXFWVJWX4JBU64Z4VTSUJTZZODU5AVCNFSM6AAAAABPDTOEYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBXGY4DONJXGI.
You are receiving this because you authored the thread.Message ID: @.***>

I was referring to screenshot from the MyToyota app.
From what I can see in the screenshot you provided, there are values for Battery SOC, Range, and Range with AC in the app.
Of all of these, only Range with AC is being imported to home assistant.
I would assume these values are missing in the underlying https://github.com/DurgNomis-drol/mytoyota module. Would you be open for helping out with exploring how to get these missing values?

Of course, how can I help?

Hi!
Sort of same problem here, battery level nog showing:
Available in app, but not on home-assistant.

Read some more (also in other bug-reports).
Did the work around:
/hass-config/custom_components/toyota/sensor.py
       (
            vehicle._vehicle_info.extended_capabilities.econnect_vehicle_status_capable,
            BATTERY_LEVEL_ENTITY_DESCRIPTION,
            ToyotaSensor,
            PERCENTAGE,
            None,
        ),

Changed PERCENTAGE to None.
And it worked.

Great job,
that fixed the issue for me too!

Great job,
that fixed the issue for me too!


Setting view port start

Hi, love the plugin! Very flexible and easy to install, and looks great. I was wondering if there is a way of starting the chart on the right of the data, rather than the left, like a stocks chart that can be scrolled.
For example, on a chart of 1 to 100 days, would it be possible to start at Day 90 rather than day 1 if the viewport is 10?

Re-read the docs and saw it could be set with initialOrigin: {x: xMaxValue - viewportWidth}


Merge upstream

Description
Merge upstream develop
To-Dos

[x] Successful build yarn build

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

v1.2.0
GitHub release

Your semantic-release bot :package::rocket:


Drag Select Errors

(fresh install of 3.3 latest build and today's Heavypoly tools)
When trying to drag select some vertexes, it seems it starts some kind of mode but it ends up doing nothing. Then locks you out of single click selecting in the 3D Viewport until you press ESC.

Confirmed here, thanks

Same problem on 3.2 stable.

Fixed by 8915c58 ,let me know if it works!

Thanks! Back in action. I also ended up going through the preferences and changing it from Box Select to Lasso Select just because that one's just a bit more useful for me.
Under prefs > Keymap, I replaced Mesh: view3d.select_through_border (Left Mouse) with view3d.select_lasso (Left Mouse)


Named and Positional Parameter Support for VSCode Workbench Query Files

Is your feature request related to a problem? Please describe.
In order to use the VSCode extension as a primary development tool, I need the ability to pass in values for parameters. Nearly all application queries will require at least one input parameter, and it is not helpful to have to hardcode values directly inline of a query. Then in order to commit the query back into source control - have to replace all those hardcoded values back to parameter syntax.
Describe the solution you'd like
Review the functionality provided by the Query Workbench in Couchbase Server UI.
MVP Feature Set: Named and Positional Parameter Support for VSCode Workbench Query Files.
Ideal solution would be to be able to supply a JSON object containing all desired parameter values. Maybe some way to connect a workbench to a local .json file as configuration or some other solution.
Additional context
Couchbase Server Query Workbench Options:

Hi,
We were uncertain about how often users use this feature. Thanks for the feedback, we will implement it in the next releases.

@lokesh-couchbase
Moving my followup to the correct issue.

@amfrye777 We will release the KV range queries and the named parameters for Jebrains early next week. The same features for VSCode are coming a couple of days later.

What was the chosen implementation for named parameters? some form of configuration file attached to the workbench? did any of the other settings from the screenshot get included as well?

So we will have 2 places for named parameters.
1st will be a root level file which you can share among your team just like a .env file.
2nd will be a UI based VSCode specific named parameter which you may set. These cannot be shared. However this will be prioritised in case of same parameter.
Other fields will require a bit more thought before implementing but as of now we don't support it. If you have any particular field which you believe will get extensively used, drop the comment here and we can prioritise it.
For now, we also will not add Positional Params.

Still under design phase but this is what we propose. So we will have 2 places for named parameters. 1st will be a root level file which you can share among your team just like a .env file. 2nd will be a UI based VSCode specific named parameter which you may set. These cannot be shared. However this will be prioritised in case of same parameter.
Other fields will require a bit more thought before implementing but as of now we don't support it. If you have any particular field which you believe will get extensively used, drop the comment here and we can prioritise it.
For now, we also will not add Positional Params.

@lokesh-couchbase
Screenshots or instructions regarding how to work with the named parameters in both approaches mentioned above would be helpful. I'm not sure how to add.


Proposal: store extra meta data

Currently field, has_many, has_one and so on macros accept undefined amount/structure of options so fallowing line will work fine field :temp_lo, :integer, foo: :bar. There are few options keys that in different contexts are used :default, : through, :virtual and so on. But any other option will be discarded/ignored.
Proposal is to store those extra values as well.
defmodule Sample.Weather do
  use Ecto.Schema

  # Provide allowed meta data
  @store_extra_meta_values [:foo, :default]

  schema "weather" do
    field :city     # Defaults to type :string
    field :temp_lo, :integer, foo: "foo indeed"
    field :temp_hi, :integer, bar: "will be discarded"
    field :prcp,    :float, default: 0.0
  end
end

=> Sample.Weather.__schema__(:meta)
[city: [], temp_lo: [foo: "foo indeed"], temp_hi: [], prcp: [default: 0.0]]

Depending on how defensive library wants to be regards this, but it might be just

@store_extra_meta_values true # to just store everything
@store_extra_meta_values [:foo, :default] # to store just specified options
@store_extra_meta_values [:foo, :default, validate: &is_list/1] # to even compile time check that provided options have correct value

It has 100% backwards compatibility, and at the same time opens up extensibility options. If it is possible to do without changes in ecto lib it self, please let me know, but i tried and failed. I also believe (maybe wrongly) that extra maintenance cost for this feature will be tiny.
Explicit use case
defmodule Sample.ChangeUserPassword do
  use Ecto.Schema

  # Provide allowed meta data
  @store_extra_meta_values [:validate, :from_session, :ui_type, :type, :normalize]

  def validate_user_current_password(value, params) do
    user = Repo.get_user_by_id(params.user_id)
    PasswordValidator.is_correct_password?(user.hashed_password, value)
  end

  embedded_schema do
    field :user_id, :binary_id, validate: [:required], from_session: true
    field :old_password, :string, validate: [:required, &validate_user_current_password/1], normalize: &Password.hash_password/1
    field :new_password, :string, validate: [:required, format: ~r/^\w+:\s/], ui_type: :password_strength_input, normalize: &Password.hash_password/1
  end
end

=> Sample.ChangeUserPassword.__schema__(:meta)
[
  user_id: [validate: [:required], from_session: true, type: :binary_id],
  old_password: [validate: [:required, &validate_user_current_password/2], type: :string, normalize: &Password.hash_password/1],
  new_password: [validate: [:required, format: ~r/^\w+:\s/], ui_type: :password_strength_input, type: :string, normalize: &Password.hash_password/1]
]

With specific tooling i can run all validations using ecto as validator, i can dynamically build ui form, based on this meta data and so on. This would open possibilities for different kind of libraries to extend and build on top of ecto schemas, and let them describe schema in more detail for different contexts as well.

Not addressing the proposal itself, it wouldn't be possible to pass references to local anonymous functions like that - e.g. &validate_user_current_password/1 - the schema is evaluated at compile-time before the module is actually compiled and at this point the function does not exist yet (since it wasn't compiled). The utility of this might be therefore limited

The downside of this approach is that it leads to a path where all of the definitions are happening at the scheme level, instead of inside functions. For example, it is by explicit design choice that Ecto pushes validations to be functions, instead of schema macros. All of your use cases could be built on top functions instead of directly on top of the schema, so I recommend exploring this route instead. Thanks!


cmd/go: optimize CGO caching and dead code removal

I'm writing this with the assumption that each CGO-generated wrapper for each C function is stored in its own C file.
Editing and compiling a CGO package can take a minute or 2, even for one little change.
It should be possible to cache the generated .o files and only recompile them if the code for that function changes.
When linking the CGO wrappers, Go should avoid linking unused wrappers to reduce size.

One C file is generated for each Go file that uses import "C".  It is not the case that we use a separate C file for each C function wrapper.  Though I suppose we could if it seems useful.
CC @bcmills @jayconrod

Related #9887
Currently, I think we cache the generated .c files but not the .o files produced by the C compiler.
We should have a separate action for each .c file compilation, and we should cache the outputs of those actions.

Note that proper caching of C object files require detecting whether any included .h files change.  This does arise when people update to a newer version of some C dependency.

Good point. We should be incorporating hashes of included .h files into the cache keys for compiled .a files at least. I don't believe we currently are.

Maybe we could only run the C compiler when the package is actually being compiled in order to get the values of C constants and make sure C functions are called properly.
Then, at link time, the Go linker linkes the entire program instead of using the C linker. We could probably use syscall to call C functions at runtime from CGO Go code wrappers.
This would have several benefits. Faster linking speed since no C linker is being invoked, the Go linker probably wouldn't need to spend time building a C linker compatible object file, dead code elimination could probably be done even for statically linked C code (at least on a per object file basis), and cross compiling might be supported if you have static libraries for other platforms. The Go package "github.com/veandco/go-sdl2/sdl" provides static libraries for all the platforms SDL2 runs on.
The linker would need support for reading a few different formats of object files though.

We run the C linker, rather than using only the Go linker, because the Go linker doesn't support C++ global constructors or C++ exception handling or a few other cases that the C linker handles.  We could support those things in the Go linker, but it's not trivial.

By putting CGO code in sub-packages so if you make a change to the main package, it won't recompile those packages that use CGO unless you changed them

The Go linker does support reading C object files in various formats (ELF, Mach-O, PE, etc.) on some platforms. But as @ianlancetaylor pointed out, the support of C linking is limited, and it doesn't support fancy C/C++ features. If you're sure your C code doesn't use any of those, and you're targeting a platform that supports internal linking, you can try passing -ldflags=-linkmode=internal, then the Go linker will link the C code and produce an executable without using the C linker. (Note: that linking may fail, use with caution.)
That does not get deadcode elimination on C code automatically, as C object semantics is section based, not function based. Perhaps you could try using C compiler options -ffunction-sections and -fdata-sections. (Go linker's support for it is not well-tested, use with caution.)


fix:improve fpgametrics output readability and

update fpga metrics index numbered from 1-42 (instead of 0-41)
improve fpgametrics  output readability
group power and thermal sensor strings and values

Thanks @anandaravuri! Is there any benefit to moving from 0-based to 1-based indexing? Is it for consistency with other indexed output?

current fpgametrics output display Sensor details numbering 0 to 39 ( starting from 0)
 metric_num              qualifier_name                    metric_name              value

0                     | thermal_mgmt:Board Temperature #2   | Board Temperature #2       | 44.50 Celsius
1                     | thermal_mgmt:FPGA FABRIC Max Temperature   | FPGA FABRIC Max Temperature  | 42.50 Celsius
2                     | thermal_mgmt:FPGA Core A (SDM) Temperature [Remote]   | FPGA Core A (SDM) Temperature [Remote]  | 66.50 Celsius
Fix:fpgametrics  output display Sensor details index 1 to 40

 metric_num              qualifier_name                    metric_name              value

1                     | thermal_mgmt:Board Temperature #2   | Board Temperature #2       | 44.50 Celsius
2                     | thermal_mgmt:FPGA FABRIC Max Temperature   | FPGA FABRIC Max Temperature  | 42.50 Celsius
3                    | thermal_mgmt:FPGA Core A (SDM) Temperature [Remote]   | FPGA Core A (SDM) Temperature [Remote]  | 66.50 Celsius

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.001%) to 64.846%

Totals

Change from base Build<PHONE_NUMBER>:
-0.001%

Covered Lines:
15790

Relevant Lines:
24350

💛  - Coveralls


Add cellery k8s resource overview doc

Add cellery k8s resource overview doc

Codecov Report

Merging #844 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #844   +/-   ##
=======================================
  Coverage   53.45%   53.45%
=======================================
  Files          56       56
  Lines        2215     2215
  Branches      218      218
=======================================
  Hits         1184     1184
  Misses        980      980
  Partials       51       51

Continue to review full report at Codecov.

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


The type initializer for 'Vulkan.VulkanNative' searchs for 'liblibdl' instead of 'libdl'

Veldrid.GraphicsDevice.CreateVulkan(options, swapChainDescription); throws a DllNotFoundException, saying it cannot find libdl while it is searching for liblibdl, and thus doesn't find anything.
System.TypeInitializationException: The type initializer for 'Vulkan.VulkanNative' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'libdl' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibdl: cannot open shared object file: No such file or directory
   at Vulkan.Libdl.dlerror()
   at Vulkan.NativeLibrary.UnixNativeLibrary.LoadLibrary(String libraryName)
   at Vulkan.NativeLibrary..ctor(String libraryName)
   at Vulkan.NativeLibrary.UnixNativeLibrary..ctor(String libraryName)
   at Vulkan.NativeLibrary.Load(String libraryName)
   at Vulkan.VulkanNative.LoadNativeLibrary()
   at Vulkan.VulkanNative..cctor()
   --- End of inner exception stack trace ---
   at Vulkan.VulkanNative.vkEnumerateInstanceLayerProperties(UInt32& pPropertyCount, VkLayerProperties* pProperties)
   at Veldrid.Vk.VulkanUtil.EnumerateInstanceLayers()
   at Veldrid.Vk.VkGraphicsDevice.CreateInstance(Boolean debug, VulkanDeviceOptions options)
   at Veldrid.Vk.VkGraphicsDevice..ctor(GraphicsDeviceOptions options, Nullable`1 scDesc, VulkanDeviceOptions vkOptions)
   at Veldrid.Vk.VkGraphicsDevice..ctor(GraphicsDeviceOptions options, Nullable`1 scDesc)
   at Veldrid.GraphicsDevice.CreateVulkan(GraphicsDeviceOptions options, SwapchainDescription swapchainDescription)
   at Sekai.Veldrid.VeldridGraphicsDevice.initializeVulkan(GraphicsDeviceOptions options, SwapchainDescription swapChainDescription)

This error is misleading. Basically, it first tries libdl.so, then liblibdl.so. The problem is that you need to symlink libdl.so.2 or whatever the file is to libdl.so for it to work.

Maybe it should also look for libdl.so.2 the same way it searches for liblibdl.so?

Maybe it should also look for libdl.so.2 the same way it searches for liblibdl.so?

Usually package managers create a symlink automatically

Maybe it should also look for libdl.so.2 the same way it searches for liblibdl.so?

Usually package managers create a symlink automatically

I am on a pretty popular distro:
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

and it didn't.
It's not a big deal, but if we have a precedence of checking liblibdl.so it seems like the same logic could be applied to checking for libdl.so.2. Seems like quite a few people keep stepping on this rake.

This should be fixed on the master branch now with the updated version of NativeLibraryLoader.


LP-CC2652RB

After testing out Z2M on my HUSBZB-1 and really liking it, I recently bought a LP-CC2652RB thinking I was purchasing a supported LAUNCHXL-CC26X2R1 (which clearly it is not). I even flashed CC2652R_coordinator_20210120 because at that point I STILL didn't know that I had gotten something different. Once I realized the mistake I made, I flashed the LP-CC2652RB with the CC2652RB firmware and to my surprise...it worked. Was able to fire up the container and pair devices right away. I'm going to keep testing it over the next few days and will report back any new findings.
@Koenkk Don't know if this is something that you were aware of, but wanted to report back these initial findings - perhaps it will lead to the LP-CC2652RB becoming officially supported one day.

I indeed expect that the CC2652RB firmware will work fine on it

Closed this out as everything is working really well. Thanks again!


Upgrade to Spring Boot 1.5.1

Coverage increased (+0.03%) to 89.092% when pulling 682e8abf6fbd5f92ce174c47538760b3646174e1 on tgianos:master into 0e48408a5a2feb7d2629d526396c9e39028be29f on Netflix:master.


Hologram disappeares after /reload

hey folks,
Holograms disappear after typing /rl confirm, so you need to run /h reload to bring them back
Is there a way to fix this?
I am using the latest version of paperMC and Holograms

I also disappear, 1.8.8 version, rebooted the server and there are no block animations until I do / holo reload

Somehow connected to this plugin MultiVerseCore. If you turn it off, there will be no such problem. But I could not find the error, there is a very similar server, the whole configuration is the same in these plugins. Perhaps something in the kernel settings allows the MultiVerseCore plugin to do this.

Somehow connected to this plugin MultiVerseCore. If you turn it off, there will be no such problem. But I could not find the error, there is a very similar server, the whole configuration is the same in these plugins. Perhaps something in the kernel settings allows the MultiVerseCore plugin to do this.

Have you checked the MVC Code on GitHub too, or just this plugin?

checked disconnecting plugins separately

ye me too having same issue but i cant turn off multiverse core :(

someone help!!

Try switching to HolographicDisplays. Its the same plugin, but the devs are active. It seems the dev is not taking care about his plugin anymore...


Date setting error

Hi, I'm having trouble with setting the date, whatever I enter, it sets back to a day before.

Hello @tuanpham96 ,
Thanks a lot for reporting 👍
But, I have tried but could not reproduce this issue.
Can you please tell me about your OS and timezone and system time?

It’s ubuntu 18.04, CST

Same here, with Ubuntu 18.04. Besides, the "+1" button doesn't do anything while "-1" button minus two days instead of one.

Hello @tuanpham96 and @chuyuanchen,
Thanks for reporting.
I have started an ubuntu 18.04 from docker to test the issue. And got the following result.

Setting date manually - https://share.getcloudapp.com/5zuXN7ny
Setting date using buttons - https://share.getcloudapp.com/ApuA98qA

But still, I'll try to dig down more to solve the issue you've found.
Can you please tell me a few more points?

What is your timezone? Is your system set to local time or UTC?
Did you build the app from source or downloaded from release?
If Downloaded from release,

Can you please try building from source if possible?
I have uploaded newer version of binaries at Jun 16 8PM in the current latest release . Can you please download it and try again?

Again, thanks for helping me in making it bug free 👍


Output should not include security information

If you use the "-t" argument to pass a token, then the output will display that information.
:token->"40chars"

However, since this is confidential information, it probably shouldn't be displayed.  The correct behavior is what happens if you set environment variable CHANGELOG_GITHUB_TOKEN.
I've confirmed the behavior with 1.8.1.

@ahousing thanks! Fixed!


How to wait for all Tasks to finish?

Sorry for writing this as an issue.
I could  not figure out how it is ment to wait for all Tasks to finish.
If i use stop - the Threads get deleted and the threadpool ends.
Isn't there something like p.WaitForEverythingDone()?
Currently I use this in the main thread:
while (p.n_idle() < THREAD_COUNT  )
{
}
But thats not really a good idea to burn 1 cpu core just for waiting?

Yeah, don't do that :-)
This is what I do:
In the main thread, create an atomic int set to 0 (call it thread_count, say). This atomic int is passed as a to the thread (each thread) and the thread updates thread_count (adds 1) when it's finished processing, i.e. at the end of the function.
The main thread just waits for the atomic int to match what I expected it to be (10 for 10 threads, say)
while (thread_count < 20) {
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}

Thank you.
But found a better way as bussy waiting/polling or with sleep I want to share:
Make a list of Thread handels:
std::vector<std::future> threadhandles;
Start you tasks:
threadhandles.push_back(p.push(....));
Wait all tasks to finish:
for (int i = 0; i < threadhandles.size(); i++)
threadhandles[i].wait();


[Bug]: Using GcsIO in Python with a DoFn fails

What happened?
In Dataflow (and other runners probably too), when trying to use GcsIO from a DoFn, I get this stacktrace. There is a small reproduction pipeline below:
Error message from worker: Traceback (most recent call last):
  File "apache_beam/runners/common.py", line 1561, in apache_beam.runners.common.DoFnRunner._invoke_lifecycle_method
  File "apache_beam/runners/common.py", line 606, in apache_beam.runners.common.DoFnInvoker.invoke_setup
  File "/Users/ihr/projects/gcs_cli_options_reproduction/main.py", line 23, in setup
  File "/usr/local/lib/python3.11/site-packages/apache_beam/io/gcp/gcsio.py", line 148, in __init__
    self.enable_read_bucket_metric = pipeline_options.get_all_options(
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/apache_beam/options/pipeline_options.py", line 336, in get_all_options
    known_args, unknown_args = parser.parse_known_args(self._flags)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/argparse.py", line 1907, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/argparse.py", line 2156, in _parse_known_args
    self.error(_('the following arguments are required: %s') %
  File "/usr/local/lib/python3.11/site-packages/apache_beam/options/pipeline_options.py", line 136, in error
    super().error(message)
  File "/usr/local/lib/python3.11/argparse.py", line 2640, in error
    self.exit(2, _('%(prog)s: error: %(message)s\n') % args)
  File "/usr/local/lib/python3.11/argparse.py", line 2627, in exit
    _sys.exit(status)
SystemExit: 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/apache_beam/runners/worker/sdk_worker.py", line 311, in _execute
    response = task()
               ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/apache_beam/runners/worker/sdk_worker.py", line 386, in <lambda>
    lambda: self.create_worker().do_instruction(request), request)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/apache_beam/runners/worker/sdk_worker.py", line 656, in do_instruction
    return getattr(self, request_type)(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/apache_beam/runners/worker/sdk_worker.py", line 687, in process_bundle
    bundle_processor = self.bundle_processor_cache.get(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/apache_beam/runners/worker/sdk_worker.py", line 510, in get
    processor = bundle_processor.BundleProcessor(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/apache_beam/runners/worker/bundle_processor.py", line 976, in __init__
    op.setup(self.data_sampler)
  File "apache_beam/runners/worker/operations.py", line 876, in apache_beam.runners.worker.operations.DoOperation.setup
  File "apache_beam/runners/worker/operations.py", line 926, in apache_beam.runners.worker.operations.DoOperation.setup
  File "apache_beam/runners/common.py", line 1567, in apache_beam.runners.common.DoFnRunner.setup
  File "apache_beam/runners/common.py", line 1563, in apache_beam.runners.common.DoFnRunner._invoke_lifecycle_method
  File "apache_beam/runners/common.py", line 1608, in apache_beam.runners.common.DoFnRunner._reraise_augmented
  File "apache_beam/runners/common.py", line 1561, in apache_beam.runners.common.DoFnRunner._invoke_lifecycle_method
  File "apache_beam/runners/common.py", line 606, in apache_beam.runners.common.DoFnInvoker.invoke_setup
  File "/Users/ihr/projects/gcs_cli_options_reproduction/main.py", line 23, in setup
  File "/usr/local/lib/python3.11/site-packages/apache_beam/io/gcp/gcsio.py", line 148, in __init__
    self.enable_read_bucket_metric = pipeline_options.get_all_options(
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/apache_beam/options/pipeline_options.py", line 336, in get_all_options
    known_args, unknown_args = parser.parse_known_args(self._flags)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/argparse.py", line 1907, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/argparse.py", line 2156, in _parse_known_args
    self.error(_('the following arguments are required: %s') %
  File "/usr/local/lib/python3.11/site-packages/apache_beam/options/pipeline_options.py", line 136, in error
    super().error(message)
  File "/usr/local/lib/python3.11/argparse.py", line 2640, in error
    self.exit(2, _('%(prog)s: error: %(message)s\n') % args)
  File "/usr/local/lib/python3.11/argparse.py", line 2627, in exit
    _sys.exit(status)
RuntimeError: SystemExit: 2 [while running 'Write to GCS-ptransform-51']

import logging

import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions, SetupOptions

class Pipeline_Args(PipelineOptions):
  @classmethod
  def _add_argparse_args(cls, parser):
    parser.add_argument(
      '--bucket_location',
      dest='bucket_location',
      required=True,
      help="Just mimicking the customer code")

class UploadFileToGCS(beam.DoFn):
  def __init__(self, gcs_location):
    self.gcs_location = gcs_location.rstrip("/")

  def process(self, element):
    data, fn = element
    gcs_output_file_location = f"{self.gcs_location}/{fn}"
    try:
      with beam.io.gcsio.GcsIO().open(gcs_output_file_location, mode="w") as file:
        file.write(data)
      yield gcs_output_file_location
    except Exception as e:
      logging.error(f"Error uploading {gcs_output_file_location}: {e}")

def run():
  beam_options = PipelineOptions()
  beam_options.view_as(SetupOptions).save_main_session = True
  opts_job_args = beam_options.view_as(Pipeline_Args)

  bucket_location = opts_job_args.bucket_location

  pipeline = beam.Pipeline(options=beam_options)

  some_data = pipeline | "Synth data" >> beam.Create(["1", "2", "3"])
  with_fn = some_data | "Add fn" >> beam.Map(lambda x: (x, "tmp/my_file.txt"))
  write_gcs = with_fn | "Write to GCS" >> beam.ParDo(UploadFileToGCS(bucket_location))

  pipeline.run().wait_until_finish()

if __name__ == '__main__':
  run()

Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components

[X] Component: Python SDK
[ ] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[ ] Component: IO connector
[ ] Component: Beam YAML
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Infrastructure
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

.take_issue


Input existence checking

Description
Stop checking input existence if the input is part of the output from upstream stage that hasn't been produced yet.
Please let me know if I misunderstood something here.

Were you getting errors?
The way I wrote it, the arg upstream_stages are the stages that you DO want to check (see description in docstring: https://github.com/ihmeuw-msca/OneMod/blob/aa648a90ee21f85a449cba1f982f306b53f7aaa9/src/onemod/io/base.py#L155)
When the function gets called in Pipeline.evaluate(), it only passes the stages that aren't being run (https://github.com/ihmeuw-msca/OneMod/blob/aa648a90ee21f85a449cba1f982f306b53f7aaa9/src/onemod/pipeline.py#L346).
I also added check_exists() to Stage.evaluate() (https://github.com/ihmeuw-msca/OneMod/blob/aa648a90ee21f85a449cba1f982f306b53f7aaa9/src/onemod/stage/base.py#L262) and ModelStage.evaluate() (https://github.com/ihmeuw-msca/OneMod/blob/aa648a90ee21f85a449cba1f982f306b53f7aaa9/src/onemod/stage/base.py#L561). This is redundant if you've called Pipeline.evaluate(), so we can check the logic of when we check stage input.
The main reasons to have the check_exists() in the first place is to 1) have more informative error messages, and 2) to fail before running or scheduling anything.


Moloch UI - Session render - displaying unexpected tags associated with TLS

To reproduce, query:  protocols==tls
Open pretty much any session, and examine the tags section for 'http:*' values. I do not understand how any of these values could have been generated.

fix in 1.0


NIOTests.EchoServerClientTest testWriteOnAccept flaky

have seen this only once, in CI on macOS
15:02:07 - Test Case '-[NIOTests.EchoServerClientTest testWriteOnAccept]' started.
15:02:07 - Fatal error: leaking promise created at (file: "Sources/NIO/ChannelInvoker.swift", line: 171): file Sources/NIO/ChannelInvoker.swift, line 171
15:02:07 - Compile Swift Module 'NIOWebSocketTests' (8 sources)

better diagnostics for this in #512

better diagnostics didn't help
Test Case '-[NIOTests.EchoServerClientTest testWriteOnAccept]' started.
Fatal error: leaking promise created at (file: "/private/tmp/.nio-release-tools_OEwkx1/swift-nio/Sources/NIO/ChannelInvoker.swift", line: 171): file /private/tmp/.nio-release-tools_OEwkx1/swift-nio/Sources/NIO/ChannelInvoker.swift, line 171
Exited with signal code 4

Never seen this again.


About pydomino and other FA tools

hello, I want to know the current status of pydomino and other tools, such as qiuqiao/SOFA(https://github.com/qiuqiao/SOFA) or MFA. So, compared with these tools with a long history or tools based on deep learning, what advantages does pydomino have? How does the alignment accuracy compare with the above tools?

pydomino is a phoneme-to-speech forced alignment tool for Japanese. In pydomino, we trained a network using binary phoneme features based on distinctive features. Experiments comparing pydomino to other tools have not been conducted because it is specifically designed for Japanese phonemes. Please see this article for more details.


First draft of a Functions-2-Job example

Sample to demonstrate how one would use a Code Engine function to submit a job run

Thanks for your feedback @data-henrik . I slightly adjusted the script. It now also creates a proper serviceID, policy and APIkey scoped to the currently selected project and attaches the credential to the function

awesome thanks!


[Feature] Update readme.md

Contributors section is missing in readme.md file.
I want to add it.
Kindly assign this issue to me under IWOC 2024.

We dont need a contributors section in the readme, Github already shows the contributors in repos.


Data.OutputsLink is null for all logic app actions

Library name and version
Azure.ResourceManager.Logic 1.0.0
Query/Question
The LogicWorkflowRunActionResource.Data.OutputsLink is null in all cases.
I know it contains data, as when I run the WorkflowRunActions web api (here: https://learn.microsoft.com/en-us/rest/api/logic/workflow-run-actions/list?tabs=HTTP#code-try-0) I can see the URL to the output of the logic app actions.
Is there a way to ensure this data is returned or is it a current limitation of the API?
        ResourceGroupCollection resourceGroups = subscription.GetResourceGroups();
          ResourceGroupResource rg = await resourceGroups.GetAsync(rgName);
          LogicWorkflowResource lapp = rg.GetLogicWorkflow(laName);

          LogicWorkflowRunResource laRun = lapp.GetLogicWorkflowRun("08585349988874128877458063880CU16");

          LogicWorkflowRunActionResource ac = laRun.GetLogicWorkflowRunAction("receivemessage");

              Console.WriteLine(
                  string.Format($"output link: {0}", ac.Data.OutputsLink.Uri.ToString())
                  );

//Always throws error here as ac.Data.OutputsLink is always null.

Environment
Windows 10 ver 21H2 running Visual Studio 2022, ver 17.1.4

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Thank you @FintanGuihen for reporting this issue, @HarveyLink please help to test if this is lib issue or service behavior

)
On October 25, 2022 9:14:40 AM GMT+08:00, Arthur Ma @.***> wrote:

Thank you @FintanGuihen for reporting this issue, @HarveyLink please help to test if this is lib issue or service behavior
--
Reply to this email directly or view it on GitHub:
https://github.com/Azure/azure-sdk-for-net/issues/31965#issuecomment-1289848278
You are receiving this because you are subscribed to this thread.
Message ID: @.***>

Hi @FintanGuihen ,
do you add any output step in RunAction such as Send an Email step, I created a logic app and added a send an email (V2) step in azure portal's Logic apps designer to test that API, it looks like everything is expected both SDK and API.
This is part of API response:
{
    "value": [
      {
        "properties": {
          "inputsLink": {
            "uri": "https://prod-30.centralus.logic.azure.com:443/workflows/dd30edd2ebc74810966761f0bc7e8cc3/runs/08585328473648415915863509924CU29/actions/Compose/contents/ActionInputs?api-version=2016-06-01&se=2022-11-18T12%3A00%3A00.0000000Z&sp=%2Fruns%2F08585328473648415915863509924CU29%2Factions%2FCompose%2Fcontents%2FActionInputs%2Fread&sv=1.0&sig=sw_L9sfBwRRYKa5eXM0EizbBcIKnR2jS1Ll-fapvwzg",
            "contentVersion": "Ovef7SudOKEQAgi/UoL8TQ==",
            "contentSize": 14,
            "contentHash": {
              "algorithm": "md5",
              "value": "Ovef7SudOKEQAgi/UoL8TQ=="
            }
          },
          "outputsLink": {
            "uri": "https://prod-30.centralus.logic.azure.com:443/workflows/dd30edd2ebc74810966761f0bc7e8cc3/runs/08585328473648415915863509924CU29/actions/Compose/contents/ActionOutputs?api-version=2016-06-01&se=2022-11-18T12%3A00%3A00.0000000Z&sp=%2Fruns%2F08585328473648415915863509924CU29%2Factions%2FCompose%2Fcontents%2FActionOutputs%2Fread&sv=1.0&sig=P_aaJdyWK78W4bwadMzeTTJ7uE1n4KTGfk8i82eL4vo",
            "contentVersion": "Ovef7SudOKEQAgi/UoL8TQ==",
            "contentSize": 14,
            "contentHash": {
              "algorithm": "md5",
              "value": "Ovef7SudOKEQAgi/UoL8TQ=="
            }
          },
          "startTime": "2022-11-18T08:18:40.8274589Z",
          "endTime": "2022-11-18T08:18:40.8274589Z",
          "correlation": {
            "actionTrackingId": "f9c29ccf-7ae1-409c-a94a-60eba840dbbf",
            "clientTrackingId": "08585328473648415915863509924CU29"
          },
          "status": "Succeeded",
          "code": "OK"
        },
        "id": "/subscriptions/******/resourceGroups/******/providers/Microsoft.Logic/workflows/******/runs/08585328473648415915863509924CU29/actions/Compose",
        "name": "Compose",
        "type": "Microsoft.Logic/workflows/runs/actions"
      },
      {
        "properties": {
          "inputsLink": {
            "uri": "https://prod-30.centralus.logic.azure.com:443/workflows/dd30edd2ebc74810966761f0bc7e8cc3/runs/08585328473648415915863509924CU29/actions/Send_an_email_(V2)/contents/ActionInputs?api-version=2016-06-01&se=2022-11-18T12%3A00%3A00.0000000Z&sp=%2Fruns%2F08585328473648415915863509924CU29%2Factions%2FSend_an_email_%28V2%29%2Fcontents%2FActionInputs%2Fread&sv=1.0&sig=H_5lZ1kavl2OrlEon5oe3PRv1s6EjejgNJ7DLE20B6U",
            "contentVersion": "RIxyGDhW24yGPAD2hiE4TQ==",
            "contentSize": 323,
            "contentHash": {
              "algorithm": "md5",
              "value": "RIxyGDhW24yGPAD2hiE4TQ=="
            }
          },
          "outputsLink": {
            "uri": "https://prod-30.centralus.logic.azure.com:443/workflows/dd30edd2ebc74810966761f0bc7e8cc3/runs/08585328473648415915863509924CU29/actions/Send_an_email_(V2)/contents/ActionOutputs?api-version=2016-06-01&se=2022-11-18T12%3A00%3A00.0000000Z&sp=%2Fruns%2F08585328473648415915863509924CU29%2Factions%2FSend_an_email_%28V2%29%2Fcontents%2FActionOutputs%2Fread&sv=1.0&sig=y_KnDeNlXsIvXjbLg4KikNOjm0LP2GOCoKpPuvtO5VU",
            "contentVersion": "o4baTWEaW0z+H+E4K2LfoA==",
            "contentSize": 784,
            "contentHash": {
              "algorithm": "md5",
              "value": "o4baTWEaW0z+H+E4K2LfoA=="
            }
          },
          ......
        },
        ......
      }
    ]
  }

FYI: https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-perform-data-operations

Hi @dvbb
the action in question is an Azure API Management api call.
The output of this is fed to a parse json action.
We dont output to email anywhere in the logicapp.
I ended up getting the data from the REST api:
https://learn.microsoft.com/en-us/rest/api/logic/workflow-run-action-repetitions/list?tabs=HTTP
The OutputsLink is populated when it should be, so i assumed the sdk would work similarily.

Hi, @FintanGuihen
I haven't encountered this issue.

Let me confirm, in the following line it will call /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}?api-version=2019-05-01, and API returns "outputsLink": {...}, but does have not any outputsLink data in SDK?
LogicWorkflowRunActionResource ac = laRun.GetLogicWorkflowRunAction("receivemessage");

If so, could you share more information about that? I cannot reproduce this issue on my machine.


fix: updated the logic for maxFiles count in upload docs step

Description
In this PR, I've made following changes.

Disable Upload Feature on Limit: When the maxFiles limit is reached, disable the upload feature to prevent users from uploading more files.
Dynamic maxFiles Count: Make the maxFiles count dynamic based on the number of already uploaded documents.
Display error message: You can only upload up to 3 files.

Why
maxFiles hardcoded value, causing following issues:

Exceeding maxFiles limit: Users can upload multiple files even if maxFiles is set to 3.
No error on exceeding limit: Attempting to upload a 4th file when maxFiles is 3 fails without displaying an error.
Page refresh bypass: Refreshing the page resets the maxFiles limit, allowing users to upload more than 3 files.
Delete all uploaded files: Users can delete all uploaded files, even if the total number exceeds the maxFiles limit.

Issue
https://github.com/eclipse-tractusx/portal-frontend-registration/issues/233
Checklist

[x] I have performed a self-review of my own code
[x] I have successfully tested my changes locally

please update changelog

Hi @lavanya-bmw , I updated the changelog file.
Let me know if it's in correct format.


Removal of semicolon in notebooks

One of the default rules in ruff is to remove a trailing semicolon. That is fine for python scripts, for for jupyter notebook this can change the output of the code cells. A screenshot to illustrate:

The removal of the semicolon results in the output of the plt.plot command being displayed. Typically this is not the intention, so a semicolor is used to hide the command output and only the the plotted graph.
Can the ruff default settings be modified to remove semicolons for python files, but not for notebooks?

I think this might be similar to #6586 where it's only the last expression in a cell where this rule should be disabled. We could probably have a general interface internally to include rules which need not be checked for last expressions in all cells within a Jupyter Notebook.
Until that is supported, you could disable this rule on Jupyter Notebooks like so:
[tool.ruff]
per-file-ignores = { "*.ipynb" = ["E703"] }

https://beta.ruff.rs/docs/rules/useless-semicolon/

There are several rules that don't apply to notebooks, or apply in a modified form. B018 - A useless expression at the end of a cell is actually not useless, that's how you show the (notebook customized if applicable) display of an object. T20 also usually doesn't apply, notebooks are not library files, but I think it's fine to have to disable that.
Ideally B018 and E703 would learn that when in a cell, they don't apply to the last item in the cell.

Agreed.

We already had to solve this cell-boundaries problem for isort, so should be doable in these cases too.

[tool.ruff]
per-file-ignores = { "*.ipynb" = ["E703"] }

Sadly this seems not to be respected by ruff format 😢

(Merging this with a general tracking issue: https://github.com/astral-sh/ruff/issues/8669)

[tool.ruff]
per-file-ignores = { "*.ipynb" = ["E703"] }

Sadly this seems not to be respected by ruff format 😢 Even so, it is not part of the conflicting rules

@s-weigand Hi, we recently updated the formatter to not remove any trailing semicolon in notebook context: https://github.com/astral-sh/ruff/pull/8590. It'll be available in the next release.


Checking prerelease shows unlisted packages

I have a project that references Google.Protobuf. When checking prerelease in the updates tab, it shows an unlisted package as the newest version, https://www.nuget.org/packages/Google.Protobuf/4.0.0-rc2
Also, thanks for creating this! It's the best nuget package manager for VS Code I've used.

Hello, I fixed this issue and pushed a new version. Should be available soon: 0.2.0
I am glad you like it, thank you for the nice words. If you haven't already please consider reviewing it on the marketplace so that more people will find it.


Fixes activity bar debug icon left white border not shown when debug startView is active

This PR fixes #86506

Thanks for this PR. However I only saw it after I fixed the issue.
I appologise for this and due to that I will not merge it in.
Sorry again.


Meme sharing App for Android Projects

Requirements for the projects:-

Minimal UI
Should be able to fetch API data from any meme API
Should be able to share it from the app through external intent
Should dynamically reload when fetching the next meme in the app

Requirements for Readme:-

Concepts Learned
The concept of Asynchronous Behaviour in Java
Official Usage of Documentation
Suggestion for improvement in the app.

Reference Link:- https://www.youtube.com/playlist?list=PLUcsbZa0qzu3Mri2tL1FzZy-5SX75UJfb

Hi, I am interested in doing this project. Can I start with this project?

Hi, I am interested in doing this project. Can I start with this project?

Yes you can start it

is it ok if I send you a pull request on 1st October as the Hacktober fest is starting?

Hi,can i work on this project.I am interested in doing this project.

@dubesar Sir, can you please help me a little? I am getting some compilation errors. I had mailed you with the files on 27 Sept.

@kunal299 can you join the discord server and paste in the problems there.

Can you share the link for joining the server?


Create a module:make-policy [name] [module] command

Duplicate of #53.

Feel free to send a PR.

@Kyslik your on it ?

@shuxx Feel free to add this I may later on tackle other ones :), during the week.

Ok if you need some help i'm can help you, no much time for making that :(


Scrollbar/minimap: click and drag doesn't work (Linux: X11/Xwayland)

Platform: linux, oni running in xwayland on Sway with libinput
Action: click on minimap or scrollbar handle, move cursor up or down with long file
Expected result: viewport scrolls
Actual result: dragging with mouse held down produces no result, sometimes handle sticks to mouse on cursor release and moving cursor without clicking drags viewport around wildly and unpredictably

This should be fixed now in latest master - feel free to open a new issue if you're still seeing issues around this 👍


segfault with hdf4 file

I am trying to read data from the NASA MERRA reanalysis. An example file is: ftp://goldsmr3.sci.gsfc.nasa.gov/data/s4pa/MERRA/MAI3CPASM.5.2.0/2014/01/MERRA300.prod.assim.inst3_3d_asm_Cp.20140101.hdf
The file format is hdf4 (NOT hdf5). (full file specification)
This file can be read by netCDF4.Dataset
from netCDF4 import Dataset
fname = 'MERRA300.prod.assim.inst3_3d_asm_Cp.20140101.hdf'
nc = Dataset(fname)
nc.variables['SLP'][0]

No errors
However, with xray
import xray
ds = xray.open_dataset(fname)

I get a segfault.
Is this behavior unique to my system? Or is this a reproducible bug?
Note: I am not using anaconda's netCDF package, because it does not have hdf4 file support. I had my sysadmin build us a custom netcdf and netCDF4 python.

xray is using netCDF4-python here internally, so I'm surprised the behavior differs. I have not tested reading hdf4 files myself yet, but if netCDF4-python can handle them then we should be able to, as well.
One possible difference is that xray reads lots of metadata when it opens a file, whereas netCDF4-python just opens the file. It's possible that the segfault is triggered by one of these actions, e.g., reading the variable attributes.
My guess is that this is a upstream bug or build issue with the netCDF packages. However, tracking it down may be easier said than done.

A stack trace shows that these were the last few functions called
/lib64/libnetcdf.so.7(NC4_inq_var_all+0x1e8)[0x7f370c4baea8]
/lib64/libnetcdf.so.7(nc_inq_var_chunking+0xb6)[0x7f370c465ae6]
/usr/local/anaconda/lib/python2.7/site-packages/netCDF4/_netCDF4.so(+0x1d930)[0x7f3730126930]
...

So I guess that narrows it down a bit.

You could try loading the dataset with decode_cf=False in open_dataset. That might delay the segfault until later.

decode_cd=False doesn't help. Still segfaults on open_dataset

I think I found the issue with netcdf.
from netCDF4 import Dataset
nc = Dataset('MERRA300.prod.assim.inst3_3d_asm_Cp.20140101.hdf')
v = nc.variables['SLP']
v.chunking()

gives the segfault. I'll take this issue to netcdf-python.


libxml2 on Visual Studio 2017, Win 10, CMake 3.10.0-rc4

Trying to prove that C++ is cross platform I came across Hunter which looks really impressive!
I'm trying to compile a simple program that uses Curl, Boost and libxml2.
For libxml2 I have the following minimalist CMakeLists.txt:
cmake_minimum_required(VERSION 3.0)
include("HunterGate.cmake")
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.19.144.tar.gz"
SHA1 "e3efd470f8b60468db8730eac8c04792f77fe1b1"
)
project(foo)
hunter_add_package( libxml2 )
add_executable(foo foo.cpp)
on the cmd I run various permutations of:
cmake -H. -B_builds -G"Visual Studio 15 2017 Win64" -DHUNTER_STATUS_DEBUG=ON -DHUNTER_CONFIGURATION_TYPES=Release
But I end up with:
[hunter ** FATAL ERROR **] Autotools scheme not supported with Visual Studio
How do I overcome this? The readme on this site gives me the impression that the library should be buildable with Visual Studio: https://github.com/winlibs/libxml2/tree/master/win32

Autotools scheme not supported with Visual Studio.  How do I overcome this?

Hunter is implemented in CMake, and it typically works best with CMake packages.  However, many libraries rely on the autotools build system.  For these cases, hunter maintains an autotools scheme (via a CMake "binding") to support such libraries out of the box.  That will limit those packages to platforms that support autotools.  To add portability, such packages are often forked to hunter-packages where a portable CMakeLists.txt file can be added (and ideally submitted upstream).
You can often track down a CMakeLists.txt on github with a quick search.  Here is an example I found  for libxml2: https://github.com/martell/libxml2.cmake/blob/master/CmakeLists.txt.  This is probably very close to what is needed, but a package configuration file needs to be added and installed so that hunter_add_package(libxml2) find_package(libxml2 CONFIG REQUIRED) will work smoothly.  I use this project as boilerplate for creating the necessary installation steps:
https://github.com/forexample/package-example
See : https://github.com/forexample/package-example/blob/master/Foo/CMakeLists.txt

BTW, here is the hunter package specification: https://github.com/ruslo/hunter/blob/master/cmake/projects/libxml2/hunter.cmake
The package is using the upstream tagged release, so the url_sha1_autotools scheme is used:
https://github.com/ruslo/hunter/blob/0dc4bb5f608e6a72861a7d5812c3b7e9230ff97c/cmake/projects/libxml2/hunter.cmake#L32
hunter_pick_scheme(DEFAULT url_sha1_autotools)

If you create an issue with the subject add libxml2 to hunter-packages, a fork will be created, and you can patch it with a CMakeLists.txt file and submit a PR for the CMake version.

Thank you for your helpful comments. I have created the issue as you suggest. I will now also raise an issue for libiconv as we will need that too for libxml2.

From gittter: https://gitter.im/ruslo/hunter?at=59f99c335a1758ed0f759c70
FYI, @ruslo (hunter author) mentioned he'll be away through the 9th.

The problem is it is not trivial to convert autotools projects to CMake.
Also, I would say these packages are 'cross-platform' but just not 'cross-compiler'. Sometimes you need to use MinGW on that platform rather than Visual Studio. Or, if your compiler of choice is not supported for certain packages sometimes the best idea is to have that package pre-built.

Working on Visual Studio 2017, Win 10, CMake 3.10.0-rc4 via #1262

Closing inactive discussion.


Point Target GRG Spelling Correction

Corrected spelling errors ("height" and "sketched") in the Point Target GRG tool Grid_Size parameter Dialog Reference.
Did this for both the ArcGIS Pro 1.0 and ArcGIS 10.3 Clearing Operations Tools toolboxes.

@joebayles  ah good catch!! Those have probably been like that for a year or more!

@jscott11 Thanks!


Digital Twin Graph Service

Description
Add a new service to Ibeji that presents the digital twin as a graph and acts as a single point of contact for interacting with the digital twin, so ideally no need for the consumers to interact directly with the providers.
Acceptance criteria

[ ] Provides the ability to find the graph's starting point.
[ ] Provides get and set functionality for the properties.
[ ] Provides invoke functionality for the commands.

The code was merged in on May 13, 2024.

Completed


arpack returns singular values in ascending order

My issue is about documentation: arpack based svds routine returns singular values in ascending order which is not indicated in the documentation, but is an important issue as many conventional techniques return eigenvalues and singular values in descending order and one assumes this behavior by default. arpack documentation clearly states that ascending order is implemented:
https://www.caam.rice.edu/software/ARPACK/UG/node136.html#SECTION001210000000000000000
My proposal is adding some remark to the documentation highlighting the ascending order.
Reproducing code example:

size=(8, 7)
_, s, _= svds(np.random.normal(size= size), k= 5)
print(s)

output
[1.18808116 2.08272636 2.29151233 2.89423407 5.0980869 ]

Scipy/Numpy/Python version information:

1.1.0 1.15.4 sys.version_info(major=3, minor=7, micro=1, releaselevel='final', serial=0)

If anyone confirms that updating the documentation is reasonable, I'm happy to take and do this.

If the ordering is strictly reversed then we should return the inverse orders of the lists instead of documenting this. It would be in accordance with the dense versions.
It shouldn't be too much of a work to switch the index ordering but I am not sure if this is a compatibility breaking change. @rgommers @perimosocordiae thoughts?

@mdhaber Yes, the same is true about eigs and eigsh, basically every eigen/singular value call made to arpack.
@ilayn Yeah, I agree, reversing the results would be better, but I'm afraid it is a decent change. On the other hand, the reason why I looked into this is that a bug in sklearn was found: sklearn relied on scipy svds returning singular values in descending order, which was false. It can happen that there are further bugous codes built on the svds and eigs calls assuming the descending order but not yet recognized.
Anyways, if someone confirms that reversing the output or documenting the current status is the proper solution, I'm happy to implement it.

I'd much rather have the docs note that the order of eigenvalues is not guaranteed. This gives us more flexibility to choose different underlying implementations in the future, but also reflects the current state of things:
In [14]: svds(x, k=5)[1]
Out[14]: array([1.26379016, 1.72120995, 2.25597658, 2.81876515, 5.46984484])

In [15]: svds(x * 1j, k=5)[1]
Out[15]: array([5.46984484, 2.81876515, 2.25597658, 1.72120995, 1.26379016])

@perimosocordiae Absolutely makes sense. Shall I start put the note (and maybe some examples like yours) in the docs?

I added the comment in https://github.com/scipy/scipy/pull/10830 to resolve this issue


"vagrant up provisioner" failing on Ubuntu 20.04.2 with libvirtd backend

I have a machine running Ubuntu 20.024.2 where when following the documentation when I get to the vagrant up provisioner step I get a failure (detailed below.) I was able to bisect it to have started failing at commit 9edecbfc860aa94df8c726093fa8ac34f0d43b48.
Expected Behaviour
vagrant up provisioner should succeed
Current Behaviour

vagrant up provisioner fails

FIXME: Will update this with the full output from a failure later if no one is able to reproduce.

Possible Solution
Unclear, but git bisect blames 9edecbfc860aa94df8c726093fa8ac34f0d43b48
Steps to Reproduce (for bugs)

Take existing Ubuntu 20.04.2 machine with Vagrant and Libvirt installed
clone this repo
cd deploy/vagrant
vagrant up provisioner

Context
I am unable to use Vagrant and Libvirt to bring up the provisioner.
Your Environment

Operating System and version (e.g. Linux, Windows, MacOS):
Ubuntu 20.04.2

How are you running Tinkerbell? Using Vagrant & VirtualBox, Vagrant & Libvirt, on Packet using Terraform, or give details:
Vagrant and Libvirt

Thank you for taking the time to do a bisect! I am totally looking to something different with my fix apparently #57

This is how I managed to reproduce the issue on Equinix Metal Ubuntu 20.04:
$ apt update
$ apt install qemu libvirt-daemon-system libvirt-clients libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev ruby-libvirt ebtables dnsmasq-base qemu-utils build-essentials git qemu-kvm
$ curl -O https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_x86_64.deb
$ apt install -y ./vagrant_2.2.9_x86_64.deb
$ vagrant plugin install vagrant-libvirt
$ vagrant up --provider=libvirt provisioner

Just to centralize information:
https://github.com/tinkerbell/sandbox/pull/57#issuecomment-789835906

I will take a look at this and thank you @nshalman for providing this information

I have the same problem, is there any solution now?

OS version:
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Vagrant up log:
...
    provisioner: + make_certs_writable
    provisioner: + local certdir=/etc/docker/certs.d/<IP_ADDRESS>
    provisioner: + sudo mkdir -p /etc/docker/certs.d/<IP_ADDRESS>
    provisioner: + sudo chown -R root /etc/docker/certs.d/<IP_ADDRESS>
    provisioner: + ./setup.sh
    provisioner: INFO: starting tinkerbell stack setup
    provisioner: INFO: verifying prerequisites for ubuntu (18.04)
    provisioner:        Found prerequisite: docker
    provisioner:        Found prerequisite: docker-compose
    provisioner:        Found prerequisite: ip
    provisioner:        Found prerequisite: jq
    provisioner:        Found prerequisite: netplan
    provisioner: INFO: tinkerbell network interface is already configured
    provisioner: INFO: found existing osie files, skipping osie setup
    provisioner: Sending build context to Docker daemon  8.704kB
    provisioner: Step 1/5 : FROM alpine:3.11
    provisioner:  ---> 44dc5a8658dc
    provisioner: Step 2/5 : ENTRYPOINT [ "/entrypoint.sh" ]
    provisioner:  ---> Using cache
    provisioner:  ---> e585b202977c
    provisioner: Step 3/5 : RUN apk add --no-cache --update --upgrade ca-certificates postgresql-client
    provisioner:  ---> Using cache
    provisioner:  ---> ad3e1f23d62b
    provisioner: Step 4/5 : RUN apk add --no-cache --update --upgrade --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing cfssl
    provisioner:  ---> Using cache
    provisioner:  ---> 526eb5787443
    provisioner: Step 5/5 : COPY . .
    provisioner:  ---> Using cache
    provisioner:  ---> e2064efd9051
    provisioner: Successfully built e2064efd9051
    provisioner: Successfully tagged tinkerbell-certs:latest
    provisioner: creating directory
    provisioner: + cd /certs
    provisioner: + '[' '!' -f ca-key.pem ]
    provisioner: + '[' '!' -f server.pem ]
    provisioner: + cat server.pem ca.pem
    provisioner: + cmp -s bundle.pem.tmp bundle.pem
    provisioner: + rm bundle.pem.tmp
    provisioner: Error: No such object:

I see exactly the same in Debian 10.7

I came across this too, and have tracked it down. Will open up a PR tomorrow.


Add option to switch schema tool

Is this PR still worth carrying forward? It looks like we are still relying on @mikhailshilkov's repo:
https://github.com/pulumi/ci-mgmt/blob/bb2bd5cb4dbf7ce3a8fbc2285ab3695280e7e61b/provider-ci/providers/auth0/repo/.github/workflows/main.yml#L154-L158
CC @thomas11 @guineveresaenger @lblackstone @danielrbradley

@iwahbe we should definitely get off Mikhail's repo and onto our own. We've already switched to this version for azure-native and it's fine so maybe could just roll this out in one go now. Looks like a bunch of conflicts too so might be worth just opening a new PR.

I opened https://github.com/pulumi/ci-mgmt/issues/404 to track.

Closing in favor of https://github.com/pulumi/ci-mgmt/pull/405.


Add batchsize parameters to all operations to be able to reduce memor…

…y usage if needed

Contributes to #2


Refactor control.lua

The control code could use a look over, and perhaps some performance enhancements.

Agreed. It is though a complex  task to make changes to the control flow without introducing breaking changes. That could though be a good reason to look it over - it shouldn't be too difficult to make changes.

It has been a while since i last took a good look at it. So don't know exactly what i would change.
Staying away from breaking changes obviously has to be a priority, which mostly means staying away from walking

Yeah, walking, order of execution, and tick consumption. 😅


Update aws-java-sdk-dynamodb to 1.12.445

Updates com.amazonaws:aws-java-sdk-dynamodb from 1.11.1034 to 1.12.445.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.amazonaws", artifactId = "aws-java-sdk-dynamodb" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.amazonaws", artifactId = "aws-java-sdk-dynamodb" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #428.


[SDPA-2011] Update vue-social-sharing with fix for facebook sharing.

JIRA issue: https://digital-engagement.atlassian.net/browse/SDPA-
Changed

Update vue-social-sharing to v2.4.1 with fix for https://github.com/nicolasbeauvais/vue-social-sharing/issues/123
Change import to import src directly as 2.4.1 wasn't built properly (see issue above)

Screenshots

Ugh, the un minified src isn't going to work in jest because it doesn't go through webpack/babel. I guess i'll just wait for the maintainer to update.


AZ-204_lab_06.md

Images/Diagrams strings should be localized

Hello contributor,
Thank you for your contribution! We are processing your suggestions and we will update you shortly.
Kind regards,
Microsoft Worldwide Learning Team

https://github.com/MicrosoftLearning/AZ-204-DevelopingSolutionsforMicrosoftAzure.fr-fr/issues/79


Bittrex support

Couldn't find any requests for Bittrex exchange support so here it is. Any plans to support it?

I don't have any plans on supporting it. I'm happy to accept an implementation if someone cares to code one up.

What about kraken? Same status?

@gaia Yes, that's my stance to all new exchanges.


[Fix] Android/ColorProps: ColorProps with value null should be defaultColor instead of transparent

Summary
This pr:

Fixes: #30183
Fixes: #30056
Fixes: #29950
Fixes: #29717
Fixes: #29495
Fixes: #29412
Fixes: #29378

Because most of @ReactProps(name = ViewProps.COLOR) accept @ Nullable Integer.
For example:
https://github.com/facebook/react-native/blob/abb6433f506851430dffb66f0dd34c1e70a223fe/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java#L472-L479
After update to react-native 0.63.2 to make PlatformColor work, there is a new ColorPropSetter.
https://github.com/facebook/react-native/blob/abb6433f506851430dffb66f0dd34c1e70a223fe/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagersPropertyCache.java#L194-L215
But ColorPropSetter won't return an nullable value with getValueOrDefault, it will always return it's defaultValue which is 0.
And 0 is equal to TRANSPARENT, will cause  disappear.
Changelog
[Android] [Fixed] - ColorProps with value null should be defaultColor instead of transparent
Test Plan
Please initiated a new project and replaced the app with the following code:
import * as React from 'react';
import {Text, View, TouchableOpacity, PlatformColor} from 'react-native';

export default function App() {
  const [active, setActive] = React.useState(false);

  return (
    <View>
      <Text style={active ? {color: 'green'} : null}>Example</Text>
      <Text
        style={
          active ? {color: PlatformColor('@android:color/holo_purple')} : null
        }>
        Example2
      </Text>
      <TouchableOpacity onPress={() => setActive(!active)}>
        <Text>Toggle Active</Text>
      </TouchableOpacity>
    </View>
  );
}

Thanks you so much for your code review!

Nice work! @hank121314 I built RNTester to test this out:

Working as expected, tagging PR submitted on the issue.

cc @JoshuaGross

Nice work! @hank121314 I built RNTester to test this out:

Working as expected, tagging PR submitted on the issue.

Thank you so much for help and testing! 😄

I think when the color is undefined it should also fallback to the defaultColor.
Take this case:
<Text style={[someTextStyleWithoutColor, isActive && activeTextStyle]}> Hello there! </Text>
it will make the text transparent once is not active.

I think when the color is undefined it should also fallback to the defaultColor.
Take this case:
<Text style={[someTextStyleWithoutColor, isActive && activeTextStyle]}> Hello there! </Text>
it will make the text transparent once is not active.

Yes, this pr is also included undefined in javascript.

i have a same problem on image component anyone can help me out to resolve this issue

i have a same problem on image component anyone can help me out to resolve this issue

Hi @Babar-Memon , you can try to patch this pr with Building from source.
Or set color props to any colors except null.

Hi @fabriziobertoglio1987 .
Thanks for your investigation and review!
Hope this pr can be merged soon. 😄

@fabriziobertoglio1987 @hank121314 Hi. Could you merge it please?

This did not fix ActivityIndicator from being transparent for me. #30057 worked for me.

Actually, in general, this fix is not working for me on 0.64.2.

Hi @taylorkline, did you try to patch this pr with Building from source?
If it still does not work, could you give me some reproducible code?
Thanks!

@hank121314 No, I did not - my apologies, likely user error on my part then.


Fixes for examples using bounding boxes when testing with asdf-astropy

Fixes example issues found when working on astropy/asdf-astropy#69

This will cause temporary CI failures. This is being coordinated with astropy/asdf-astropy#69, which will need to be released in order for the CI to function again.


[Bug]: Secondary OCR Language not showing up

The Problem
Hi dear StirlingPDF Team, lovely service, I use it for everything.
I'm just having a Problem with a secondary OCR Language not showing up. i have added the deu.trainingdata, and tesseract is working:
 docker exec -it _redacted_ tesseract --list-langs [DS] Profile read from file (tesseract_opencl_profile_devices.dat). [DS] Device[1] 0:(null) score is 0.240261 [DS] Selected Device[1]: "(null)" (Native) List of available languages in "/data/tessdata/" (2): deu eng
I tried it out inside the container, and it did work correctly into .txt, including Umlauts.
But inside of stirlingPDF only english shows up.
I believe I followed every step in How to use OCR
my compose/stack config is below, everthing seems to be in order, and I did not find an env Variable I would have to change
I'm sure its a simple fix I'm overlooking.
I'm running in portainer as a stack,
App-Version: 0.27.0

Version of Stirling-PDF
0.27.0
Last Working Version of Stirling-PDF
0.27.0
Page Where the Problem Occurred
https://pdf.trauminselreisen.de
Docker Configuration
`version: '3.3'
services:
  stirling-pdf:
    image: frooodle/s-pdf:latest
    ports:
      - '82:8080'  # Port-Mapping aus den Containerinformationen übernommen
    volumes:
      - stirling:/data
      - /home/phil/tessdata:/data/tessdata
    environment:
      - DOCKER_ENABLE_SECURITY=false
      - INSTALL_BOOK_AND_ADVANCED_HTML_OPS=true
      - LANGS=de_DE
      - CUSTOM_FILES_DIR=/data/customFiles
      - UI_APP_NAME=Trauminsel Reisen 🌴 PDF
      - UI_HOME_DESCRIPTION=Alle PDF Tools von Trauminsel Reisen 🌴
      - UI_APP_NAVBAR_NAME= PDF 🌴 Trauminsel Reisen
      - TESSDATA_PREFIX=/data/tessdata
      - CONFIGS_DIR=/data/configs
      - JAVA_TOOL_OPTIONS=-XX:MaxRAMPercentage=75
      - APP_LOCALE=de_DE
      - SYSTEM_DEFAULT_LOCALE=de-DE
      - BASE_URL=https://pdf.trauminselreisen.de
    entrypoint:
      - tini
      - --
      - /scripts/init.sh
    command: ["java", "-Dfile.encoding=UTF-8", "-jar", "/app.jar"]
volumes:
  stirling:

Relevant Log Output
08:30:24.649 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.optimize - xref 11: treating as an optimization candidate

08:30:25.388 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.optimize - XrefExt(xref=11, ext='.png')

08:30:25.388 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.optimize - Optimizable images: JPEGs: 0 PNGs: 1

08:30:25.389 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -

08:30:25.389 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.optimize - Recursing into Form XObject /OCR-XUNRAmg1o3nrUv2lQSIpmQ in page 0

08:30:25.389 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.optimize - xref 11: treating as an optimization candidate

08:30:25.390 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.optimize - xref 11: marking this JPEG as deflatable

08:30:25.396 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -

08:30:25.397 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.optimize - Recursing into Form XObject /OCR-XUNRAmg1o3nrUv2lQSIpmQ in page 0

08:30:25.397 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.optimize - xref 11: treating as an optimization candidate

08:30:25.397 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.optimize - xref 11: found image compressed as /FlateDecode /DCTDecode, marked for JPEG optimization

08:30:25.398 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.optimize - Optimizable images: JBIG2 groups: 0

08:30:25.398 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -

08:30:25.402 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.helpers - os.symlink(/tmp/ocrmypdf.io.i3_3_8x0/optimize.opt.pdf, /tmp/ocrmypdf.io.i3_3_8x0/optimize.pdf)

08:30:25.402 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.subprocess - Running: ['jbig2', '--version']

08:30:25.465 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf.subprocess - Running: ['pngquant', '--version']

08:30:25.466 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -    INFO ocrmypdf._pipeline - Image optimization ratio: 3.45 savings: 71.0%

08:30:25.466 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -    INFO ocrmypdf._pipeline - Total file size ratio: 3.25 savings: 69.2%

08:30:25.466 [Thread-9] INFO  s.s.SPDF.utils.ProcessExecutor -   DEBUG ocrmypdf._pipeline - /tmp/ocrmypdf.io.i3_3_8x0/optimize.pdf -> /tmp/output_3809299846436271993.pdf

Additional Information
No response
Browsers Affected
Firefox, Chrome, Other
No Duplicate of the Issue

[X] I have verified that there are no existing issues raised related to my problem.

home/phil/tessdata:/data/tessdata
Your path is wrong, all our docs show it as
/usr/share/tessdata

That was fast. Thanks.
I moved it over to /usr/share/tessdata, same. Manual works (docker exec -it 7a45c9990406 tesseract /data/Briefpapier.png output -l deu)
But it doesnt show up in the GUI

Can you share a screenshot of the /usr/share/tessdata directory inside docker container

Sure, thanks for looking into it

Ok, so the answer is:
I had tessdata set to the wrong folder inside the container.
It has to be in /usr/share/tessdata inside the container, which I didn't get into my thick skull.
After moving it there, everything works fine.
Thank you.


File plugin "resizimg/resize.with.canvas.min.js" is missing

File for plugin "resizimg/resize.with.canvas.min.js" is missing, so give an error.

Arf, I miss this part of the doc ><' I need to update it!
See the working example to see needed imports: https://alex-d.github.io/Trumbowyg/demos/#plugins-resizimg


Add lint tool like laravel/pint

A lint tool would be too important to keep the code always organized, and it would be interesting to use it in git hooks or in the CI as Github Actions

https://laravel.com/docs/10.x/pint


Add pallet identity

Cool idea 🚀

Identity pallet has been already configured in the runtime.

Identity pallet has been already configured in the runtime.

Where commit 👁

Identity pallet has been already configured in the runtime.

Where commit 👁

#481


Build(deps-dev): Bump @storybook/addon-essentials from 6.4.15 to 6.4.17 (#2610)

Pull request opened by the merge tool on behalf of #2610

Merged in ea3ad2a2a2d440f222f9a119cb715bb53272fdbb


Edit the Design of CreateGame & Lobby Pages

Create Game according to FIGMA
Lobby according to FIGMA and show game information

commit with https://github.com/sopra-fs23-group-37/client/commit/5c96685293516bbabee80b7f8ba74c8d06f2e069