http: add CONNECT-UDP support

Commit Message:
This commit adds CONNECT-UDP (RFC 9298) support. UdpConnPool is added to create a UDP socket for a new CONNECT-UDP request, and UDPUpstream is added to maintain the socket and other relevant data associated with UDP upstreams.
We added an integration test for the terminating CONNECT-UDP proxy, but not the forwarding proxy in this commit. We are going to add test cases to cover the forwarding proxy scenario in a subsequent commit.
Additional Description:
Risk Level: Medium, the feature can only be enabled by the new configuration added in this commit.
Testing: Integration test
Docs Changes: TBA
Release Notes:  TBA

/assign @DavidSchinazi
David will do a first pass review. Thank you!

What's the right way to add api/envoy/extensions/upstreams/http/udp/v3/udp_connection_pool.proto? The check_and_fix_proto_format CI complains about it.

What's the right way to add api/envoy/extensions/upstreams/http/udp/v3/udp_connection_pool.proto? The check_and_fix_proto_format CI complains about it.

Drive-by comment.... The proto BUILD file is generated by tool. Once you have the correct proto change (e.g., import, namespace, etc), you can run fix_proto_format. I used sudo ./ci/run_envoy_docker.sh '\''./ci/do_ci.sh fix_proto_format locally.

What's the right way to add api/envoy/extensions/upstreams/http/udp/v3/udp_connection_pool.proto? The check_and_fix_proto_format CI complains about it.

Drive-by comment.... The proto BUILD file is generated by tool. Once you have the correct proto change (e.g., import, namespace, etc), you can run fix_proto_format. I used sudo ./ci/run_envoy_docker.sh '\''./ci/do_ci.sh fix_proto_format locally.

I tried it and it deleted both the proto and the BUILD file. Tried it with the proto file alone then it complained about missing the BUILD file. I guess I should have written the proto in a different way? I don't see any Envoy documentation about this.

/assign @RyanTheOptimist
/assign @alyssawilk
Hi Ryan and Alyssa. @DavidSchinazi has finished the first pass so can you review this PR? Also, I have a couple of questions.

What is the right way to add an API proto and a BUILD file? I added api/envoy/extensions/upstreams/http/udp/v3/udp_connection_pool.proto and api/envoy/extensions/upstreams/http/udp/v3/BUILD manually but the CI complains about it.
I think I should update relevant documentation as well. Is updating https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/upgrades would be enough? I will appreciate it if you can point me to other documents I have to update as well if any.

Thank you!

Can you take a look  @RyanTheOptimist ? Thanks

Can you take a look @RyanTheOptimist ? Thanks

Oh shoot. Sorry! I dropped this. Will take a look.

Looks like format needs to be fixed:
./test/integration/udp_tunneling_integration_test.cc:237:      absl::HexStringToBytes("01"             // DATAGRAM Capsule Yype
                                                                                ^
./test/integration/udp_tunneling_integration_test.cc:247:      absl::HexStringToBytes("00"             // DATAGRAM Capsule Yype
                                                                                ^
Checked 4609 file(s) and 125517 comment(s), found 2 error(s).

And also the proto check is failing:
https://dev.azure.com/cncf/envoy/_build/results?buildId=139704&view=logs&jobId=c95d62a5-6bb9-58f0-2a02-7575fd482a15&j=c95d62a5-6bb9-58f0-2a02-7575fd482a15&t=76c9b3e6-0d40-57e9-06f3-2219e9228a0a

Yype! Fixed the typo. Do you know what is the right way to add that proto without encountering that check error, Ryan? I asked two questions including this one in the previous comment https://github.com/envoyproxy/envoy/pull/27714#issuecomment-1582777188 I will appreciate it if you can shed light on it.

Yype! Fixed the typo. Do you know what is the right way to add that proto without encountering that check error, Ryan? I asked two questions including this one in the previous comment #27714 (comment) I will appreciate it if you can shed light on it.

I think you need to update api/BUILD. Check out https://github.com/envoyproxy/envoy/pull/27256/files as an example
That being said, the API shepherd should know for sure. @lizan, it looks like you're the shepherd for this PR. Can you do the API review?

I think you need to update api/BUILD. Check out https://github.com/envoyproxy/envoy/pull/27256/files as an example
That being said, the API shepherd should know for sure. @lizan, it looks like you're the shepherd for this PR. Can you do the API review?

Thank you for the information, Ryan. Let me know if you have any comments, @lizan.

Looks like a real build error:

# Execution platform: //third_party/rbe_configs/config:platform
external/envoy/source/common/router/router.cc:777:43: error: reference to type 'const Envoy::Http::RequestHeaderMap' could not bind to an lvalue of type 'Http::RequestHeaderMap *'
        Http::HeaderUtility::isConnectUdp(downstream_headers_)) {
                                          ^~~~~~~~~~~~~~~~~~~
external/envoy/source/common/http/header_utility.h:177:52: note: passing argument to parameter 'headers' here
  static bool isConnectUdp(const RequestHeaderMap& headers);
                                                   ^
1 error generated.

Ah, my bad. Just fixed it. Thanks for the review, Ryan. I will resolve CI errors if there's any.

Looks like format is failing.
CodeChecker ERROR [yamllint] changelogs/current.yaml (key-duplicates 217:3): duplication of key "change" in mapping

I think this is missing the -area clause.
And looks like the docs need to be tweaked too:
Did you forget to add 'envoy.upstreams.http.udp' to extensions_build_config.bzl, extensions_metadata.yaml, contrib_build_config.bzl, or contrib/extensions_metadata.yaml?

//test/integration:udp_tunneling_integration_test                       TIMEOUT in 6 out of 16 in 915.0s

@RyanTheOptimist This is quite tricky to debug. When I ran the test locally, the timeouts did not happen. I found that it happens with a certain chance only when:

The downstream protocol is HTTP/3
"-c opt" compilation flag is set when testing.

I have been trying to triage the cause but it's been quite difficult since I have to pass -c opt option to reproduce the timeout, so the QUICHE does not print any DLOGs.
Do you have any advice or tips to debug this type of issue, Ryan? I think it will be helpful if I can locally modify QUICHE library for Envoy to print out some debugging logs.

Thank you, @lizan.
@RyanTheOptimist I figured out the cause of the timeout error. It's the combination of QUICHE's expiration time of QUIC Datagram in its Datagram queue, and Envoy using the defer_send_in_response_to_packets_ of the QUIC connection config for CPU usage optimization.
I've made a temporary fix in this PR by setting a higher expiry time for QUIC Datagrams on the Envoy side, but the real fix requires the QUICHE library change, probably setting the default minimum expiry time higher. If you are fine with this temporary fix, I will send a subsequent PR for removing the temporary fix after this one gets merged, the QUICHE change is made, and rolled into Envoy.
Looks like the CI is blocked due to the conflict in the changelogs/current.yaml. Could you resolve it? Thank you!

Thank you, @lizan.
@RyanTheOptimist I figured out the cause of the timeout error. It's the combination of QUICHE's expiration time of QUIC Datagram in its Datagram queue, and Envoy using the defer_send_in_response_to_packets_ of the QUIC connection config for CPU usage optimization.
I've made a temporary fix in this PR by setting a higher expiry time for QUIC Datagrams on the Envoy side, but the real fix requires the QUICHE library change, probably setting the default minimum expiry time higher. If you are fine with this temporary fix, I will send a subsequent PR for removing the temporary fix after this one gets merged, the QUICHE change is made, and rolled into Envoy.
Looks like the CI is blocked due to the conflict in the changelogs/current.yaml. Could you resolve it? Thank you!

To fix the changelog you'll need to do a main merge.

/retest

Looks like some tidy failures here:
https://dev.azure.com/cncf/envoy/_build/results?buildId=140504&view=logs&jobId=b7634614-24f3-5416-e791-4f3affaaed6c&j=b7634614-24f3-5416-e791-4f3affaaed6c&t=d565ee52-b888-5d80-7fea-dfaed104c390
Also coverage:
Code coverage for source/extensions/upstreams is lower than limit of 96.6 (93.8)
Code coverage for source/extensions/upstreams/http is lower than limit of 96.6 (93.1)
Code coverage for source/extensions/upstreams/http/generic is lower than limit of 96.6 (84.6)
Code coverage for source/extensions/upstreams/http/udp is lower than limit of 96.6 (78.0)
Detailed coverage results here:
https://storage.googleapis.com/envoy-pr/e9f2ada/coverage/index.html

/wait
on CI

Hi @RyanTheOptimist
I added more test cases to increase the test coverage.
Because of the coverage bug of excluding nested brackets of case statements, it's not possible to reach the coverage threshold in extensions/upstreams/http/generic/config.cc (https://storage.googleapis.com/envoy-pr/e9f2ada/coverage/source/extensions/upstreams/http/generic/config.cc.gcov.html). The maximum coverage I can achieve is 88.5.
I added it to the exception list to make it pass the coverage test. I set the threshold as 85.0 to give some headroom. Let me know if you have any comments or questions. Thank you!

/retest


Hide number row selection dropdown

Hello,
How i can hide dropdown which is used to select number of rows to display in the table.

If you are just trying to remove the pagination from the bottom then you need to disable the pagination for the table.
<ReactTable
  data={data}
  columns={columns}
  showPagination={false}
/>

If you want pagination but dont want the row selection then your left with two options.

Either pass in a custom component for pagination

<ReactTable
  data={data}
  columns={columns}
  PaginationComponent={CustomPagination}
/>

function CustomPagination () {
 // look at docs for how to build custom component
  return false
}

You can just set the amount of rows manually and hide the rows with CSS.

<ReactTable
  data={data}
  columns={columns}
  defaultPageSize={20}
/>

.-pageSizeOptions {
 display: none;
}

showPageSizeOptions: false

showPageSizeOptions: false
its good solution thanks


⚡ Feature | Investigate webmention support

Description
Suggested by @friedger https://forum.stacks.org/t/stacks-powered-comment-system/11363/6
Investigate if we can / how webmentions could work for Sigle.

A first step would be to enable webmentions through webmention.io.
I would like to see the following snippet on my block:
<link rel="webmention" href="https://webmention.io/friedger.de/webmention" />
<link rel="pingback" href="https://webmention.io/friedger.de/xmlrpc" />

@friedger by any chance do you have some good links explaining how webmention is working to display a list of comments on the user page and how a user can moderate them?

The site https://webmention.io/ contains a description for easy integration. The longer part is here: https://github.com/aaronpk/webmention.io#api
This is only for webmention.io service. Implementing such a service using gaia would be a new project..


How to Work with advanced cookies in Safari and IE in PHP8

Proposed title of article
How to Work with advanced cookies in Safari and IE in PHP8
Proposed article introduction
A cookie in PHP is a small file with a maximum size of 4KB that the server embeds on the client’s computer. In this article, you will learn all about PHP cookies along with its various operations such as create, retrieve, modify etc.
When the web browser requests a page from a web server, the webserver responds with the page content. Later, the same web browser requests the same page again, and the webserver has no information that the request is from the same web browser.
Cookies solve this stateless challenge.
Key takeaways

What is a Cookie?
Create Cookies With PHP
PHP Create/Retrieve a Cookie
Modify a Cookie Value
Delete a Cookie
What is a Session?

Article quality
This article will mainly focus on the cookies on the Internet Explorer and Safari browsers which are known to cause issues with JavaScript. This is a unique feature that no other article has paid attention to. Therefore, am introducing the readers to the best solution when handling cross-browser web application developments.
References
Please list links to any published content/research that you intend to use to support/guide this article.
Conclusion
Finally, remove the Pre-Submission advice section and all our blockquoted notes as you fill in the form before you submit.
We look forwarding to reviewing your topic suggestion.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Closing because the topic form is not filled in properly. Please go through the documentation and issues created by other authors before submitting a new issue.

I have updated the submission and i'm ready to work on it!


Blazor DI topic service lifetime update

Fixes  #20402
Thanks @JustinGrote! :rocket:
Internal Review Topic (links to Default services section)
Internal Review Topic (links to Service lifetime section)

Cross-link the Default services section down to the Service lifetime section because the HttpClient registration is scoped without explaining why (it's different than in regular ASP.NET Core apps).
In the Service lifetime section, explicitly state "Blazor WebAssembly" when referring to "run client-side in the browser" just to make sure that it's clear.

Javier, do you want to make any changes to the paragraph that describes the Scoped lifetime in the Service lifetime section? ...

Blazor WebAssembly apps don't currently have a concept of DI scopes. Scoped-registered services behave like Singleton services. However, the Blazor Server hosting model supports the Scoped lifetime. In Blazor Server apps, a scoped service registration is scoped to the connection. For this reason, using scoped services is preferred for services that should be scoped to the current user, even if the current intent is to run client-side in the browser in a Blazor WebAssembly app.

... or is that text still good?

Also with changing the wording of the documentation could you make the DI not give errors when using a singleton in startup not give an error if all I have to do is change it to AddScoped it fixes this error when I want it to behave as a singleton not scoped.


[Bug]: http://<IP_ADDRESS>:5555/api/get_personal_info 返回contents错误

Search for answers in existing issues

[X] I have searched issues, there is no issue related to the problem I encountered

Python version
python 3.10
Issue description
http://<IP_ADDRESS>:5555/api/get_personal_info 返回contents错误
Repro steps
api.py文件中的
def fetch(path, data):
base_data = {
"id": gen_id(),
"type": "null",
"roomid": "null",
"wxid": "null",
"content": "null",
"nickname": "null",
"ext": "null",
}
base_data.update(data)
url = f"http://{const.IP}:{const.PORT}/{path}"
response = requests.post(url, json={"para": base_data}, timeout=5)
response 返回的内容出错，
{'content': '[json.exception.type_error.316] invalid UTF-8 byte at index 0: 0x90', 'id': '20230728145737', 'receiver': 'CLIENT', 'sender': 'SERVER', 'srvid': 1, 'status': 'FAILED', 'time
': '2023-07-28 14:57:37', 'type': 6500}
编码错误，需要调整一下服务端。
导致无法输出
logger.info(
f"""
wechat login info:
            nickName: {content['wx_name']}
            account: {content['wx_code']}
            wechatId: {content['wx_id']}
            startTime: {response['time']}
            """
    )

信息。
整个代码无法继续执行下去。
Relevant log output
无法正常执行

I just encountered the exact same issue. And I fixed it by changing my system region setting, which is kind of funny.
The error itself indicates something wrong with the utf-8 encoding, it's a vague error to be honest. I tried to tune up my requests multiple times but still got same error. Luckily, I got another environment running the bot normally, so started to compare two environments and found this system setting difference:

On the other working environment, the Beta function box of Unicode UTF8 is not checked and it encourages me trying to uncheck the box and reboot my problematic Windows environment. And poof, the utf-8 byte error is gone magically after the reboot.
Didn't track down the root cause though, it might still be helpful double checking your utf8 encoding settings. Good luck!

@ziran33 invalid UTF-8 indicates your json file is not UTF-8 format, you can convert your config.json file to UTF-8 and try again. Normally, you can just open the json file with notepad++(or else) and save with UTF-8


cannot install syncthing

Issue description
syncthing fails to instal with nix-env -i syncthing. Here is the relevant log
warning: name collision in input Nix expressions, skipping '/home/null/.nix-defexpr/channels_root/nixos'
installing 'syncthing-0.14.52'
these derivations will be built:
  /nix/store/3bz92qxq9pw38b2nlv4dpcvrnsp5qbjv-syncthing-0.14.52.drv
building '/nix/store/3bz92qxq9pw38b2nlv4dpcvrnsp5qbjv-syncthing-0.14.52.drv'...
unpacking sources
unpacking source archive /nix/store/41qyzb3m6z0pnwfn864i2cf0f870r90k-source
source root is source
patching sources
configuring
no configure script, doing nothing
building
go: disabling cache (/homeless-shelter/.cache/go-build) due to initialization failure: mkdir /homeless-shelter: permission denied
GOPATH is /build/syncthing-9e3e8324
go: disabling cache (/homeless-shelter/.cache/go-build) due to initialization failure: mkdir /homeless-shelter: permission denied
go: disabling cache (/homeless-shelter/.cache/go-build) due to initialization failure: mkdir /homeless-shelter: permission denied
go: disabling cache (/homeless-shelter/.cache/go-build) due to initialization failure: mkdir /homeless-shelter: permission denied
go: disabling cache (/homeless-shelter/.cache/go-build) due to initialization failure: mkdir /homeless-shelter: permission denied
go: disabling cache (/homeless-shelter/.cache/go-build) due to initialization failure: mkdir /homeless-shelter: permission denied
github.com/syncthing/syncthing/vendor/golang.org/x/net/internal/iana
github.com/syncthing/syncthing/vendor/github.com/gobwas/glob/util/runes
github.com/syncthing/syncthing/vendor/github.com/vitrun/qart/gf256
github.com/syncthing/syncthing/vendor/golang.org/x/crypto/blowfish
runtime/cgo
github.com/syncthing/syncthing/vendor/github.com/petermattis/goid
github.com/syncthing/syncthing/vendor/golang.org/x/sys/unix
...
go build runtime/cgo: open /nix/store/yh6p6ky7w2nfa64r3r7vhr5d5s1p87bk-go-1.11.2/share/go/pkg/linux_amd64/runtime/cgo.a: permission denied
exit status 1
exit status 1
builder for '/nix/store/3bz92qxq9pw38b2nlv4dpcvrnsp5qbjv-syncthing-0.14.52.drv' failed with exit code 1
error: build of '/nix/store/3bz92qxq9pw38b2nlv4dpcvrnsp5qbjv-syncthing-0.14.52.drv' failed

Steps to reproduce
nix-env -i syncthing
Technical details

system: "x86_64-linux"
host os: Linux 4.14.87, NixOS, 19.03pre162412.6449501902c (Koi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.1.3
channels(null): "nixos-19.03pre162412.6449501902c"
channels(root): "nixos-19.03pre162412.6449501902c"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Should be fixed on master, https://github.com/NixOS/nixpkgs/issues/51825.

thanks @pbogdan ! that fixed it


Fetch Token Before Sending Request

Hello,
I stumbled upon this library and decided to give it a try! I have a public and private API used by my app and the private API is behind Firebase Authentication. Is there a way to fetch the authorization token right before making the request. The call to get the token is async.
if let cu = firebaseAuth.currentUser {
                    cu.getIDTokenForcingRefresh(true) { (token, error) in
                        if let t = token {
                            urlRequest.setValue("Bearer \(t)", forHTTPHeaderField: "Authorization")
                            closure(.success(urlRequest))
                        } else {
                            closure(.failure(.underlying(NetworkingErrors.noToken, nil)))
                        }
                    }
                }

Here is an example of how I currently do it. This closure is called after the new token as been set. I see there is a synchronous way to accomplish this with this library, but how about an async one? 😄

Great to hear that you decided to give Squid a try! :)
So, on a request level, it is rather easy to do as you can just chain publishers. So you would create a Future<String, Error> publisher which yields the token and then call flatMap, initializing a new request with the token and scheduling it.
However, I see the use case for asynchronous initialization of header or body, so I will think of a way to incorporate that in the API.

Asynchronous headers are implemented in version 1.2.0 (see documentation here) ... hope that helps your use case ;)


Xcode 11.6: failed to get simulator udid, error: failed to determin latest (iOS) simulator version

Hi, i'm getting the mentioned error. Here is the log
The stack used is Xcode 11.6
When using Xcode 11.5 - it runs fine
Please advice on what to do. Lowering the stack version is not an option.
+------------------------------------------------------------------------------+

| (0) xcode-test                                                               |
+------------------------------------------------------------------------------+
| id: xcode-test                                                               |
| version: 2.4.6                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2020-07-20T19:10:13Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
INFO[19:10:13]  * [OK] Step dependency (xcode) installed, available.
INFO[19:10:13]  * [OK] Step dependency (go) installed, available.
Configs:
- ProjectPath: Strowr.xcworkspace
- Scheme: Strowr
- SimulatorPlatform: iOS Simulator
- SimulatorDevice: iPhone 5s
- SimulatorOsVersion: latest
- OutputTool: xcpretty
- IsCleanBuild: false
- IsSingleBuild: true
- ShouldBuildBeforeTest: true
- ShouldRetryTestOnFail: true
- GenerateCodeCoverageFiles: false
- ExportUITestArtifacts: false
- DisableIndexWhileBuilding: true
- TestOptions:
- XcprettyTestOptions: --color --report html --output "/Users/vagrant/deploy/xcode-test-results-Strowr.html"
- Verbose: false
- HeadlessMode: true
- CacheLevel: swift_packages
* action: -workspace
- xcodebuildVersion: Xcode 11.6 (Build version 11E708)
Checking if output tool (xcpretty) is installed
- xcprettyVersion: 0.3.0
failed to get simulator udid, error: failed to determin latest (iOS) simulator version
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | xcode-test (exit code: 1)                                     | 11.95 sec|
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-steplib/steps-xcode-test/issues    |
| Source: https://github.com/bitrise-steplib/steps-xcode-test                  |
+---+---------------------------------------------------------------+----------+

Hi @KoCMoHaBTa,
Can you please send a link to a build and enable support access in your project settings?

@non-binary https://app.bitrise.io/build/e08b8b2462024acc#?tab=log

Same issue: https://app.bitrise.io/build/6b870a7a75f36769#?tab=log

Hello I am having this issue, half of our builds are failing today, we are using the same stack in all the builds, we have been using iPhone 8 Plus for years, suddenly today this error showed up.
I forked the repo and added logs and I found out that  xcrun simctl list is not showing all the devices, on the left image you can see that "== Devices ==" list is empty
Here is a failing build https://app.bitrise.io/build/513f08258a368524#?tab=log
and a non failing one https://app.bitrise.io/build/eed37a0a937149f6#?tab=log

I think i've resolved this by changing the simulator device to some newer. At the time when i reported this issue, i was using iPhone 5s, upgrading to some newer device type, eg iPhone 8 Plus, solved the issue for me.

Hi there, 👋
Thanks so much for bringing this to our attention.
Our engineers are currently investigating this issue! I'll post it here as soon as I have any updates.
Thanks for your patience!

Hi there,
Just wanted to let you know that the issue has been resolved. 🎉  Could you please check on your end as well?
Thank you!


(Re) Implementing path-value autocompletion

Forgot to mention in the commit message, but ba1cd1f deletes the functionality which autocompletes a leaf-path and its leaf-value.
The reason for it is that typescript gets too slow. "To much type instantiation", thinking it was possibly infinite.
I think the problem was the use of three recursive types in a row, namely Fragment<T> = Tree<RecursivePartial<T>>, and finally LeafPath<Fragment<T>>. The solution was to just ask whether T extends Fragment.
So... I'll be getting back to this later, and check whether the lagging continues. Specifically, the deleted types are:

LeafValue - which autocompletes for the possible values (when using as const) or their general type.
PathLeafPair - the path and either its as const value or its general type.

const sample = [42, {prop: 'value'}] as const;
const pair: PathLeafPair<typeof sample> = ['[1].prop', 'value'] // or ['[0]', 42]

The reason for it is that typescript gets too slow. "To much type instantiation", thinking it was possibly infinite.

The problem persists, specifically for the any generic argument, even though the resultant type is always any.

resolved 3a3d5f1d20a066c43c632a4e34e8cc1c13257a46


npm install hangs after update

Hi,
"npm install" command doesn't stop / print anything on console after this commit https://github.com/oney/RCTWebRTCDemo/commit/dcaf0a61d0b277d6438555ae450bdfbd25736b12

Sorry. It is responding after few minutes pause.


Hotspot and OpenJ9 tarballs extract to the same directory

Platform:
MacOS
Architecture:
x64
Both HotSpot and OpenJ9 tarballs untar into the same directory. If the destination directory contains the name of the JVM (i.e. hotspot or openj9) updating or switching between JVMs would (imho) be more straightforward and possibly less confusing out of the box.
Steps to reproduce

visit https://adoptopenjdk.net/
select "Other platform"
select "OpenJDK 8 (LTS)"
select "HotSpot"
select "macOS x64"
select "Download JDK (tar.gz)"
select "Back to platform"
select "OpenJ9"
select "MacOS x64 Large Heap"
select "Download JDK (tar.gz)"
untar both HotSpot and OpenJ9 tarballs
notice HotSpot JVM has been overwritten by the OpenJ9 JVM

# untar (hotspot)
[user@box TestZone]$ tar xf ~/Downloads/OpenJDK8U-jdk_x64_mac_hotspot_8u212b03.tar.gz

# check JVM (hotspot)
[user@box TestZone]$ jdk8u212-b03/Contents/Home/bin/java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode)

# untar (openj9)
[user@box TestZone]$ tar xf ~/Downloads/OpenJDK8U-jdk_x64_mac_openj9_macosXL_8u212b03_openj9-0.14.0.tar.gz

# check JVM (now overwritten by openj9)
[user@box TestZone]$ jdk8u212-b03/Contents/Home/bin/java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b03)
Eclipse OpenJ9 VM (build openj9-0.14.0, JRE 1.8.0 Mac OS X amd64-64-Bit 20190417_48 (JIT enabled, AOT enabled)
OpenJ9   - bad1d4d06
OMR      - 4a4278e6
JCL      - 5590c4f818 based on jdk8u212-b03)

Of course the destination directory can be moved to a different name but (imho) it would be better if the JVM-name is included by default.
Kind regards,
Freek

related to #1016


Convert GC controller to use a work queue

Also make sure we have a unit test that verifies that we handle finalizers for both the AddFunc (backup was deleted while GC controller was offline) and the UpdateFunc (backup was deleted while the GC controller was running).

I'm doing this as part of #383


kubevpn connect --ssh-addr error desc = not an ip:port

It looks like even if all ssh configuration correct, it failed with below error.
kubevpn connect --ssh-addr <IP_ADDRESS>:22 --ssh-username root --ssh-keyfile ~/.ssh/ssh.pem --foreground=true
Error: rpc error: code = Unknown desc = not an ip:port

ahd kubevpn logs or debug=true does not generate any logs.

It looks like even if all ssh configuration correct, it failed with below error.
kubevpn connect --ssh-addr <IP_ADDRESS>:22 --ssh-username root --ssh-keyfile ~/.ssh/ssh.pem --foreground=true
Error: rpc error: code = Unknown desc = not an ip:port

ahd kubevpn logs or debug=true does not generate any logs.

you can use kubevpn logs -f to see more log

i will comfire this issue and fix it as soon as possible

It looks like even if all ssh configuration correct, it failed with below error.
kubevpn connect --ssh-addr <IP_ADDRESS>:22 --ssh-username root --ssh-keyfile ~/.ssh/ssh.pem --foreground=true
Error: rpc error: code = Unknown desc = not an ip:port

ahd kubevpn logs or debug=true does not generate any logs.

i tested it and it works well, you can upgrade it to latest version by command kubevpn upgrade and try it again?
maybe it is because you do not special remote cluster kubeconfig or special option --remote-kubeconfig, this option means kubevpn will use ssh server ~/.kube/config file to connect to cluster or you can copy this file to local , and special --kubeconfig or export env like k8s kubectl

❯ kubevpn upgrade
The latest version is: v2.1.0, commit: fa4943175245b449aa786113d7577514755e27d2
Already up to date, don't needs to upgrade
Upgrade daemon...done

My environment is macos ventua 13.4, just in case.
normally it works fine.

by the way, I test ssh server with/without ~/.kube/config
based on timing, it looks not even try to connect remote.

can you exec command kubevpn version and show me output?

no needs to quit daemon by command kubevpn quit, daemon server will do nothing if client not send any command to server. the reason why i startup a daemon server is because can connect to mutiple cluster

maybe we can have a online meeting by feishu or tencent meeting? to diagnose issue ? if you have some time

sure, we can talk your time morning (my time evening), let me know time.

sure, we can talk your time morning (my time evening), let me know time.

ok, here is my wechat: fcw895703375

Sorry, my wechat account got logged out and can't recover it.  Here is larksuite meeting we can use.
Meeting topic: kubevpn
Meeting time: Tomorrow, Nov 1, 8:00 - 8:30 PM (GMT-7)
Meeting ID: 954 040 901
Meeting link: https://vc.larksuite.com/j/954040901

Sorry, my wechat account got logged out and can't recover it. Here is larksuite meeting we can use.
Meeting topic: kubevpn Meeting time: Tomorrow, Nov 1, 8:00 - 8:30 PM (GMT-7) Meeting ID: 954 040 901 Meeting link: https://vc.larksuite.com/j/954040901

ok ,got it, meeting start timestamp should is<PHONE_NUMBER> . right? because i am in chain, GMT+8, in case of mistake the time

yes next 10minutes :-)

yes next 10minutes :-) . started the meeting. Thanks

Maybe you can use comand kubectl config view --flatten --raw and save output , use this kubeconfig to connect via ssh. i noticed that when we try to connect to via ssh, we have see log like kubeconfig is invalid, and i checked code, this message only shows while kubeconfig is not configured correctly


Do we need a Security Context Constraints for benchmark-operator/ripsaw ?

While I was working on small-file operator,  I faced a lot of issues due to non-root privileges container, so , the solution we could rule out was to create an SCC and associated SA , then allowing the pods to run as root. But the difference was, I was not using a PVC to develop the smallfile operator. I don't think that when we will be working with PVC mounted on a mountpath, we could really see that issue. Hence,  I am creating this issue to have discussion and reach to a majority based opinion.

Closing this issue, given that smallfile was implemented in Ripsaw without the need for privileges to launch privileged pods. The workaround/issue was the mount path being set to /tmp.


[Platform] GKE: MeshKit-based adapters not authenticating to Kube API

Description
Meshery Adapter for Istio and other MeshKit-based adapters are not available on @rwong2888's system. He has the following environment:

a gke cluster was instantiated with https://registry.terraform.io/modules/terraform-google-modules/kubernetes-engine/google/latest/submodules/private-cluster

Expected Behavior
Meshery Adapter for Istio should be available.
Screenshots/Logs
mesheryctl.log

Environment:

Host OS: macOS
Meshery Version: v0.5.0-rc-3
Kubernetes Version: GKE private cluster
Browser:

To Reproduce
@rwong2888 has run the following sequence of commands:
10687  mesheryctl system stop
10688  docker rm -f $(docker ps -aq)
10689  docker ps
10690  docker ps -aq
10691  rm -rf ~/.meshery
10692  rm ~/.kube/config
10693  gcloud container clusters get-credentials playground --region us-east4
10694  mesheryctl system start
10695  mesheryctl system config gke --token ~/Downloads/auth.json
10696  mv ~/.meshery/kubeconfig.yaml ~/.kube/config

Reference
Conversation - https://istio.slack.com/archives/C01NS1FMHSR/p1614025599030300

@hexxdump will you be able to check this one?

@leecalcote Can you share with us the logs here?

mesheryctl.log

Attaching more logs from Raymond's setup:
mesheryctl-2<IP_ADDRESS>.02.log
mesheryctl-2<IP_ADDRESS>.59.log
I had offline chat with Raymond, I have confirmed with him that the "mesheryctl system config gke -t <auth.json>" is generating kubeconfig.yaml as expected. No errors thrown from the GKE script. kubeconfig.yaml also seems to be fine.
❯ cat kubeconfig.yaml                                                                                [11:16:02]
apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: xxxx
    server: https://xxxx
  name: gke_forbes-development_us-east4_playground
contexts:
- context:
    cluster: gke_forbes-development_us-east4_playground
    namespace: default
    user: sa-meshery-ligmkchm-default-gke_forbes-development_us-east4_playground
  name: sa-meshery-ligmkchm-default-gke_forbes-development_us-east4_playground
current-context: sa-meshery-ligmkchm-default-gke_forbes-development_us-east4_playground
kind: Config
preferences: {}
users:
- name: sa-meshery-ligmkchm-default-gke_forbes-development_us-east4_playground
  user:
    token: xxxxx

However, the below logs are seen in the latest 'mesheryctl system logs'
from log file1:

~/Downloads/mesheryctl-2<IP_ADDRESS>.59.log:40: meshery-octarine_1      | time="2021-02-24T15:30:53Z" level=error msg="unable to create a new Octarine client: No Auth Provider found for name \"gcp\""
~/Downloads/mesheryctl-2<IP_ADDRESS>.59.log:126: meshery_1               | time="2021-02-24T15:30:53Z" level=error msg="unable to create client set: no Auth Provider found for name \"gcp\""
~/Downloads/mesheryctl-2<IP_ADDRESS>.59.log:127: meshery_1               | time="2021-02-24T15:30:53Z" level=error msg="unable to scan Kubernetes: unable to create client set: no Auth Provider found for name \"gcp\""
~/Downloads/mesheryctl-2<IP_ADDRESS>.59.log:129: meshery_1               | time="2021-02-24T15:30:53Z" level=error msg="Error creating a mesh client.: rpc error: code = Unknown desc = unable to create a new Octarine client: No Auth Provider found for name \"gcp\""
~/Downloads/mesheryctl-2<IP_ADDRESS>.59.log:134: meshery_1               | time="2021-02-24T15:30:53Z" level=error msg="unable to create client set: no Auth Provider found for name \"gcp\""
~/Downloads/mesheryctl-2<IP_ADDRESS>.59.log:135: meshery_1               | time="2021-02-24T15:30:53Z" level=error msg="unable to create client set: no Auth Provider found for name \"gcp\""
~/Downloads/mesheryctl-2<IP_ADDRESS>.59.log:138: meshery_1               | time="2021-02-24T15:30:55Z" level=error msg="unable to create client set: no Auth Provider found for name \"gcp\""
~/Downloads/mesheryctl-2<IP_ADDRESS>.59.log:139: meshery_1               | time="2021-02-24T15:30:55Z" level=error msg="unable to ping Kubernetes: unable to create client set: no Auth Provider found for name \"gcp\""

from log file2:
~/Downloads/mesheryctl-2<IP_ADDRESS>.02.log:7: meshery-cpx_1           | time="2021-02-24T16:00:29Z" level=error msg="unable to create a new cpx client: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined"
~/Downloads/mesheryctl-2<IP_ADDRESS>.02.log:21: meshery-nsm_1           | time="2021-02-24T16:00:29Z" level=error msg="unable to create a new NSM client: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined"
~/Downloads/mesheryctl-2<IP_ADDRESS>.02.log:23: meshery-octarine_1      | time="2021-02-24T16:00:29Z" level=error msg="unable to create a new Octarine client: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined"
~/Downloads/mesheryctl-2<IP_ADDRESS>.02.log:29: meshery-osm_1           | time="2021-02-24T16:00:29Z" level=error msg="unable to create a new osm client: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined"
~/Downloads/mesheryctl-2<IP_ADDRESS>.02.log:104: meshery_1               | time="2021-02-24T16:00:29Z" level=error msg="unable to load in-cluster kubeconfig: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined"

@kumarabd mentioned that he will take a look at the environment variable issue.

@utkarsh-pro could the issue be that other contexts in the kubeconfig are missing certificate data?

@leecalcote, not quite. The error that would be generated in that case would look something like none of the auth infos are valid either the certificate path is invalid or is inaccessible.
However this error looks quite like: https://github.com/kubernetes/client-go/issues/242
This issue suggests to  import _ "k8s.io/client-go/plugin/pkg/client/auth" so that client-go loads all of the third party provider auth plugins.

@hexxdump how do you suggest to proceed? Mark with label issue/invalid (essentially, "could not reproduce")?

@leecalcote I just had a word with @utkarsh-pro yesterday, I will raise a PR for this issue today.


"Vent Front" climate entity no longer provided

Hi
I recently had a Nobis A11 Glass Round Top pellet stove installed. I was very pleased to find this integration which recognized it immediately! Thanks for your work!
However, the integration suddenly stopped providing the entity that allows fan control :/
I've taken a quick look at the code, but haven't had time to really understand it. I'm guessing it probably has something to do with the data provided by the API for this specific stove. Here are the diagnostic data:
config_entry-aguaiot-01JCZRGQN524Q106WJGYJ09BE6.json
Is there anything else I can provide or do to try to resolve this issue?
Thanks!

Yes, it was. It worked for a day or two, and then became unavailable.

Please try 0.6.0


spec: resulted type for division operation

In the spce at https://golang.org/ref/spec#Arithmetic_operators there is,

Arithmetic operators apply to numeric values and yield a result of the same type as the first operand.

In my interpretation it says that,
3/2 - int
3/2.0 - int
3.0/2 - float64
3.0/2.0 - float64

But Go compiler produce float64 for 3/2.0.

This is covered as part of untyped constants / expressions: https://golang.org/ref/spec#Constant_expressions
3rd example:
const c = 15 / 4.0         // c == 3.75  (untyped floating-point constant)


License note, not correct?

"Phone System is an add-on license available with Office 365 F1, E1, E3, and Office Premium licenses. Phone System is also included as part of Office 365 E5 licenses."
Is it new that F1 and "Office Premium" (I guess you mean Business Premium) can have the Phone System add-on license? If you change to following:
"Phone System is an add-on license available with Office 365 E1 and E3 licenses. Phone System is also included as part of Office 365 E5 licenses."
https://docs.microsoft.com/en-us/microsoftteams/teams-add-on-licensing/office-365-business-premium

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

ID: d6891495-01c6-117b-c28b-28232782ba74
Version Independent ID: 1c23b35a-e9ba-ffdd-9baa-a3f83f4ed9ca
Content: Phone System–Virtual User licenses
Content Source: Teams/teams-add-on-licensing/virtual-user.md
Service: msteams
GitHub Login: @jambirk
Microsoft Alias: jambirk

@lcansby Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

@waseemhashem please comment

at least 75% of customer tenants are still missing the ability to purchase the free Virtual User license version.  I am based in Australia so this may be a regional issue that needs fixing. When comparing a rare tenant that lists license vs tenant that doesn't is seem both have a different portal version despite both being on preview mode. I have logged a ticket with Microsoft support: [Ticket #:15434498] and they are having to dish out full Phone System product keys on a 90 day trial, to allow us to license resource accounts on client tenancies.

@waseemhashem The purchasing instructions above only work in preview mode and that the Preview mode is working which it is again broken today for the Purchase services page. It's like today we get the non preview mode view in Preview mode but missing the Phone System - Virtual User license and the page won't scroll. It worked yesterday for the fist time in over a week and it's back on the blink again today. I have tested this on multiple tenants and another Microsoft partner has confirmed they experience the frustrating experience. We now have 2 weeks to Teams deployments backed up because we cannot get these essential licenses to assign PSTN numbers to Auto-Attendant/Call-Queues. Ticket #:15434498

@lcansby  Thank you for the feedback. The note is correct "Phone System is an add-on license available with Office 365 F1, E1, E3, and Office Premium licenses. Phone System is also included as part of Office 365 E5 licenses." Let me know what exactly you are looking to correct ?
Regards
Sri

@msbemba In the section "Virtual User license allocation" there is a note that the phone system add-on licenses are available for "Office 365 F1, E1, E3, and Office Premium licenses". According to other documentation and Phone system add-on is only available for E1 and E3.

@lcansby I got what you are saying. The doc (https://docs.microsoft.com/en-us/microsoftteams/teams-add-on-licensing/office-365-business-premium) is now updated stating that "If you decide to buy an Enterprise E5 license, it includes a Phone System license. If you use an Enterprise E1 or E3 license or an Office 365 Business Essentials or Office 365 Business Premium license you will need to buy the Phone System add-on."
Hope this helps!
Regards
Sri

@msbemba Is that really correct that you can add Phone System license to an Office 365 Business Essentials or Office 365 Business Premium subscription? That is new in that case, earlier you only been able to add Phone system to Enterprise licenses, not Business.
https://docs.microsoft.com/en-us/microsoftteams/teams-add-on-licensing/virtual-user
This page still states that Phone System add-on is available on F1 and the unknown license "Office Premium".

@msbemba if you add F1, It think you are bang on. As long as this is what Microsoft support vs what actually works but isn't supported.

@lcansby  Thank you for your feedback. I have made changes to the doc to refelect the licensing options correctly. PR https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/pull/2819 . you are correct with the statement that Business premium or essentials do not have option to add phone system as add-on.
Regards
Sri

@waseemhashem please comment

Option 3 in this Microsoft document specifies Phone System as an Add-On for Office 365 Essentials : https://docs.microsoft.com/en-us/microsoftteams/teams-add-on-licensing/office-365-business-premium


Merge User Guide and API sections

🚀 Feature Request
Currently in our prototype #1319 User Guide and API sections are very similar. We should rething them.
Proposal

Extract guide "Installation guide for Apple M1 (ARM)" into Installation section
Try to move info from user guide into API section
Try to prune API section from classes that should be shown: private classes, mixins. This can be done for example by manually selection that should be shown like it is done in numpy, pandas and many other libraries. Or we can point out what kind of objects should be ignored.

Test cases
No response
Additional context
No response

May be in the separate task we can create section about the base classes for developers

May be we can add separate section for native nets and nets from PTF

Why do we have section with the base classes for Transforms, but not for Models?

"Change-point transforms" and "Decomposition transforms:" are almost the same

I guess we should try to filter more such cases, this method is actually king of provate

Also kind of private class

Why saving then?

Is everything ok with rendering?

Why aren't you commenting in PR?

Is everything ok with rendering?

I don't know, I didn't change it. It is how it looks in our current documentation. I think it depends on how the table is styled in each theme.

Why saving then?

I don't understand what is the problem. Can you elaborate on this?

 Can we somehow improve sorting here?(in all the sections)

Can you explain what is the problem with this order? It is ordered by the order in the Transforms document.

Closed by #1324.


feat: CMake dynamic library fetching + install/clean_install scripts

- What I did

Building atclient and/or atchops will now dynamically fetch libraries. there is no longer a need to specify flags like -DATCLIENT_FETCH_MBEDTLS=ON. The CMake script will check if you already have it installed, otherwise, it will use FetchContent to fetch the source and build & install it it for your project.
atclient and atchops each have install.sh and clean_install.sh for installing the library in your /usr/local directory (or similar)
Removed macos-latest from CI because ubuntu and macos -latest both use x86_64 architecture and the same compiler and so I don't think it would make a difference

- How I did it

See changes

- How to verify it

Tests passing
Now have to call only cmake -S . -B build instead of the old cmake -S . -B build -DATCLIENT_FETCH_MBEDTLS=ON -DATCLIENT_FETCH_ATCHOPS=ON

- Description for the changelog

@XavierChanth
Is this okay?
https://github.com/atsign-foundation/at_c/pull/70/commits/38fc03734787fc78219902baf6b09a21893dd065


Custom YAML tags

In my YAML document, I want to use some custom tags. Unfortunately, when using monaco-yaml I get the error marker that the tag is unknown (e.g. unknown tag <!foo>YAML(0)). Is it possible somewhere to define those custom tags or to disable tag validation at all (without disabling validation as a whole)?

I just found out that it is already supported by the yaml-language-server using the customTags option. I guess it could then be easily added as another option for setDiagnosticsOptions. If you are interested then I could come up with a pull request.

This was added in #103


Suggestion: make the project installable through homebrew

Hi,
The project seems really cool, great job!
Wanted to suggest to also support homebrew as a way of installing the project (it works both on Mac and Linux)

I want to support as many package managers as i can, but for now my focus is on adding more drivers support and fixing bugs. But after that, i will start working on this.
Anyways, to anyone that wants to contribute, this could be a good addition.

Looked into this topic. It seems that you have to do this one yourself. To create a tap within homebrew you have to create a seperate repository like this one: https://github.com/neovim/homebrew-neovim
I found this tutorial for creating a homebrew tap for a golang cli application, since it also uses goreleaser i thought it may help you. https://askcloudarchitech.com/posts/tutorials/create-homebrew-tap-golang-goreleaser-cobra-cli/

Yes, it's super easy with goreleaser as it does everything automatically (I've done it for one of my own repos).
I could help, but since it needs creating a repo etc., it needs to be done by the owner

Gentlemen, I have made a formulae which is ready to be merged with the Homebrew core, but it currently lacks a proper test as lazysql does not have any subcommands, like version (ie. lazysql -v) to ensure the binary is built properly. Please see here:
https://github.com/DanzigerGeist/homebrew-core/commit/4f0b8b6e5d0e819b50dce6e9250e15f82ddba5e1
I am not super-familiar with Go hence I will have to rely on you guys to add this before I can open a pull request with Homebrew. Other than that, the formulae works like a charm, so once as we add any meaningful way to test it on install - we can make it available with brew.

thanks

Just FYI: goreleaser provides a very convenient way to publish brew packages (haven't tried it with actual Homebrew upstream, but was very easy to publish to own custom brew repository)

Yes, it's super easy with goreleaser as it does everything automatically (I've done it for one of my own repos).
I could help, but since it needs creating a repo etc., it needs to be done by the owner

I'll take a look at this. Thanks.

Great @jorgerojas26 ; thank you. Small suggestion: you could create a repository called <user>/homebrew-tap, where each of the formulas would go there.
With the way it's setup right now, for lazysql, you'd have jorgerojas26/lazysql/lazysql; then for something else, you'd a new repository jorgerojas26/<other-tool>.
But with a central repo, it could be jorgerojas26/tap/lazysql, then jorgerojas26/tap/<other-tool> (you don't even need to do jorgerojas26/homebrew-tap/... and it can be shortened to jorgerojas26/tap/...


Debugging with WebAuthenticator

When I try to debug (using VSCODE) my MAUI app on Windows with using The WinUIEx.WebAuthenticator I receive the following error. It does work fine if I publish the app and install the package, but that makes debugging very difficult. Is there something I need to do in order to have this work while debugging?
System.InvalidOperationException: The WebAuthenticator requires a packaged app with an AppxManifest
   at WinUIEx.WebAuthenticator.Authenticate(Uri authorizeUri, Uri callbackUri, CancellationToken cancellationToken)

Sounds like VSCode launches the app differently than Vs2022. As the error states running as packaged is a requirement for the web authenticator.

I see. After thinking it through a bit I can understand why it works that way. Thanks!


[cmake] Building rocksdb as a module

After the many cmake refactors now we should be able to properly modularize the optional components. This pull request provides a scaffolding example for modularizing rocksdb - one optional dependency that we have in the toolchain.
Note: for fb internal build system (buck) this will require us to change the build targets. @orionr what's the recommended way of doing so at this moment?

@caffe2bot retest this please


Remove type_enforced dependency

What is the need for this task.
A fixed version for type_enfoced was added to fix the loose version dependency of meshkernel. Remove type_enforced dependency again after https://github.com/connor-makowski/type_enforced/issues/24 is fixed or after meshkernel released a version where the version is fixed.
What is the task?
A clear and concise description of what you want to happen.
Additional context
Add any other context or screenshots about the feature request here.

Note: This should be fixed in:
https://github.com/connor-makowski/type_enforced/commit/b58d79f178e8300fe33e70204f4ff9a66aa1fdeb
type_enforced note: 1.0.0 and 1.1.0 are both yanked from pypi due to allowed installs in python 3.7 & 3.8. This should have been prevented as these python versions do not have the underlying features needed to support our new type_enforced processes.
To use python3.7 or python3.8 you must lock to type_enforced<=0.0.16. A fix is in place to function properly in 3.9+ with various restrictions related to python type hints based on exact python version (eg use of | for union typing wasn't supported by python until 3.10).
See the updated docs for more info.


Simplify logic to decide whether CCP modified the IR

The previous attempts at fixing this issue relied on marking the IR
changed only when CCP was able to fold an instruction during
propagation (https://github.com/KhronosGroup/SPIRV-Tools/pull/3799,
https://github.com/KhronosGroup/SPIRV-Tools/pull/3732).
Those fixes missed the case described in
https://github.com/KhronosGroup/SPIRV-Tools/issues/3991.  In this case,
the folder never actually succeeds in folding the instruction, but it
does create constants in the process.
Fixed with this change.

Changed the logic for keeping track of IR changes.  @alan-baker PTAL.


not working correctly

can you make it in single package or upload on aur so i can use it without any issue ;-;

Can you please expand on what exactly is not working?

Can you please expand on what exactly is not working?

Traceback (most recent call last):
File "/usr/bin/translatesubs", line 33, in
sys.exit(load_entry_point('translatesubs==0.2.4', 'console_scripts', 'translatesubs')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/translatesubs", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/lib/python3.11/site-packages/translatesubs-0.2.4-py3.11.egg/translatesubs/main.py", line 3, in
File "/usr/lib/python3.11/site-packages/translatesubs-0.2.4-py3.11.egg/translatesubs/managers/language_manager.py", line 8, in
File "/usr/lib/python3.11/site-packages/translatesubs-0.2.4-py3.11.egg/translatesubs/utils/constants.py", line 1, in
File "/usr/lib/python3.11/site-packages/translatesubs-0.2.4-py3.11.egg/translatesubs/translators/googletrans.py", line 1, in
File "/home/muzammil/.local/lib/python3.11/site-packages/googletrans/init.py", line 6, in
from googletrans.client import Translator
File "/home/muzammil/.local/lib/python3.11/site-packages/googletrans/client.py", line 12, in
import httpcore
File "/home/muzammil/.local/lib/python3.11/site-packages/httpcore/init.py", line 1, in
from ._api import request, stream
File "/home/muzammil/.local/lib/python3.11/site-packages/httpcore/_api.py", line 5, in
from ._sync.connection_pool import ConnectionPool
File "/home/muzammil/.local/lib/python3.11/site-packages/httpcore/_sync/init.py", line 1, in
from .connection import HTTPConnection
File "/home/muzammil/.local/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 14, in
from .http11 import HTTP11Connection
File "/home/muzammil/.local/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 49, in
class HTTP11Connection(ConnectionInterface):
File "/home/muzammil/.local/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 161, in HTTP11Connection
self, event: h11.Event, timeout: Optional[float] = None
^^^^^^^^^
AttributeError: module 'h11' has no attribute 'Event'. Did you mean: '_events'?


Force not HTTPS

We want to be eavesdropped on!

When we had similar query modifiers in the past a lot of less technical users were alarmed with the fact that search terms included modifiers that looked like code.  It's an odd UX constraint, but until we find a way for search terms to lead to actual web results most of the time we should hold off on using advanced features of google search in the querystring.


Update resnet.py

The original code "from .utils import load_state_dict_from_url" is not applicable.
you connot import  load_state_dict_from_url from .utils.
change ".utils" to "torch.hub" can fix the problem.

@shinji411 Sorry unfortunately we can't merge this one as it will break code on the FB side. The  import at question is necessary to be imported as-is to enable FB-specific functionalities.


Make DataSplitter more transparent to the existing Lightning Data Loader API wrt kwargs

This allows DataSplitter and SemiSupervisedDataSplitter to pass kwargs to the DataLoader constructor in keeping with the DataSplitter API which states "**kwargs: Keyword args for data loader".
The original implementation didn't completely observe the above design, since passing drop_last as a kwarg to the Splitter caused an error due to the the hard-coded default of drop_last=3 in data_loader_kwargs.
In addition to allowing default values for all data_loader_kwargs to be defined under defaultKwargs, the main benefit of this refactoring is that DataSplitter is now transparent wrt the existing Lightning Data Loader API (like drop_last=True).
Because this refactoring does not affect supervised training, new tests added to tests/models/test_models.py::test_data_splitter run directly on DataSplitter, but not on SemiSupervisedDataSplitter (the implementation is identical)

@adamgayoso I'm happy to add more unit tests if required, just lmk and thanks for looking!

Hi @adamgayoso ,
I'm not sure what is going on with pytest throwing tons of errors.
As a sanity check I've created a vanilla cuda dev container which replicates all pytest errors in my environment in the following steps:

clone https://github.com/mkarikom/cuda_devcon
open the cuda_devcon folder in vscode
confirm "open folder in container"
wait for build
python -m pip install pytest && git clone --recurse-submodules git@github.com:scverse/scvi-tools.git && cd scvi-tools && pytest tests/models/test_models.py

I hit a run-time bug with the proposed default_data_loader_kwargs.update(kwargs) syntax so reverted to the previous splatting syntax

Hey, @adamgayoso!
I think this is now current and all checks passing!
Sorry about the delayed changes!
A style issues in the pre-commit.ci that I can't see at all with my flake8/pylint plugins.
The only other style issue was "leading _" but adding those led to undefined errors in the tests so I've ignored it.
Hope your last few weeks have been as fun as ours ;)


Detect and delete duplicate Notion pages

I was just wondering if it is possible to have the notion database recognize duplicates in a database so they can be deleted. Thanks!
Originally posted by @domhicks in https://github.com/dvanoni/notero/issues/27#issuecomment-1508584640

There's a potential approach discussed here, but I haven't tried it myself yet.

Is there any update for this issue? Badly need the solution, thanks.

Hi @domhicks @jchutten @sheldon123z @warkcod, I've just released version 0.5.8 which contains a new utility function for finding duplicates. It's not the most polished solution, but I'd appreciate if y'all could try it out and let me know if it's helpful for you. Thanks!
Usage
The utility function can be called via the Run JavaScript window available from the menu: Tools → Developer → Run JavaScript.
Paste the following code into the window, ensure the "Run as async function" option is enabled, and click the Run button at the top left. This will return page titles that appear in the database multiple times.
return await Zotero.Notero.findDuplicates();

To find duplicates based on a different database property, pass the property name to the findDuplicates function. For example, to find duplicates with the same Zotero URI, use the following code.
return await Zotero.Notero.findDuplicates('Zotero URI');

You can then use the results to search for the duplicate pages in Notion.
Example
https://github.com/dvanoni/notero/assets/299357/3676cc7b-7298-4f24-b2ef-ee0ae9b52ae4


Vasil branch: Collateral not working properly

I'm using the latest build off the vasil branch
I'm trying to use Nami on the pre-prod testnet and thing seem to work fine before I set a collateral

however after I set a collateral the function errors out

I tried with an imported wallet and also a newly created wallet, both have the same issue.

Maybe it's similar with my issue https://github.com/berry-pool/nami/issues/674
Hope they can answer soon

@carleryd @nmaddp1995 this should be resolved now on the vasil branch.

Thank you @alessandrokonrad , I can confirm the latest build resolves this issue 🥳
Using this build https://github.com/berry-pool/nami/blob/vasil/build.zip


Update resource on db CRD, does not update Statefulset

Example: Elasticsearch
https://kubernetes.slack.com/archives/C8149MREV/p1529463492000043

@tamalsaha I have a couple of other ES clusters that I will confirm this on.
Steps to reproduce:
Create an ES cluster with no memor initial resources
Check resources on ES statefulset
Use kubedb edit to add memory resources
Check resources on ES statefulset

Pre-resource addition setting of ES_JAVA_OPTS var:
        - name: ES_JAVA_OPTS
          value: -Xms134217728 -Xmx134217728

Used kubedb edit es apps-es -n prerc to add resources, 128Mi is 80% of 160Mi:
  resources:
    limits:
      cpu: 100m
      memory: 160Mi
    requests:
      cpu: 50m
      memory: 160Mi

The output is "interesting":
$ kubedb edit es apps-es -n prerc
<unknown> "apps-es" edited

Verified kubectl get statefulset apps-es -o yaml shows the update to the update resources:
- name: ES_JAVA_OPTS
  value: -Xms134217680 -Xmx134217680                                                                           │                                                                                image: kubedb/elasticsearch:6.2
imagePullPolicy: IfNotPresent
name: elasticsearch
ports:
- containerPort: 9300
  name: transport
  protocol: TCP
- containerPort: 9200
  name: http
  protocol: TCP
resources:
  limits:
    cpu: 100m
    memory: 160Mi
  requests:
    cpu: 50m
    memory: 160Mi

At this point the cluster started cascade failing but the pods, per kubectl get po, did not show any restarts (https://github.com/kubedb/project/issues/185). Tweaking the resources , I couldn't get it to not crash, to the point that even removing the limits & requests still caused it fail.
Will all the modifications I have done to this ES instance, I only noticed the change didn't update the value is going from none to having resource requests and limits.
That said, I also found that when it did change ES_JAVA_OPTS was based on the requests not limits, is that what you expect, or should it be the other way around?


Dose this doc for .razor file?

I hope .razor file don't precompile too, how?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 8a83deb2-e035-bb66-be4f-68709bcad341
Version Independent ID: 16438f35-f35d-c097-0903-ec17e83e051e
Content: Razor file compilation in ASP.NET Core
Content Source: aspnetcore/mvc/views/view-compilation.md
Product: aspnet-core
Technology: aspnetcore-mvc
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

It's in the doc.

@Rick-Anderson
I don't think so, i want handle .razor file too.

I'm guessing Razor components are treated the same as Razor file.

@guardrex  who's the right resource to ask for Blazor prrojects.

The Razor SDK doesn't act on Razor components. Runtime compilation (hot reload) is being considered for .NET 6 ...

https://github.com/dotnet/aspnetcore/issues/25999
https://github.com/dotnet/aspnetcore/issues/5456

For .NET 5, Blazor app developers can use dotnet watch.

sad news. Thank you @guardrex @Rick-Anderson


FeatureToggle V5 Roadmap

This is an overview of the potential themes for v5

Move to "pure" .net standard implementation
Move to .NET standard 2
Simplify configuration (try and have a single method regardless of platform: UWP, Core, Full. etc)
Simplify solution in visual studio (e.g. remove multi-targeting and have a single .NET standard class lib)
Maybe take the opportunity for a major release to re-examine the architecture of providers and how toggles are read

If you are going to change the provider model, I'm very interesting in your future thoughts. I have created 3 provider so far FeatureToggle.Azure and have some thoughts on the subject.

Thanks @mikanyg - I appreciate all those suggestions. This library embraces semantic version so version 5 will be allowed breaking changes, I thought about the separate provider packages thing before so any suggestions on how to implement this are welcome :) I'm also happy to talk about modifying the SQL stuff.
One thing that's always been out of scope has been the management of updating toggles (e.g. web UI). This is something that I'm open to in the future but probably a good idea to focus on v5 first and then have another think about it.

Are you still actively maintaining this project, @jason-roberts ? Looking for a library to use for a client.

bump


Implement #7 - Allow whitelisting and blacklisting of entities and domains

Adds the config attributes

include
exclude

which allow whitelisting / blacklisting
Fixes #7

Implementation similar to how the home-assistant influxdb component handles it

works perfect @lukas-hetzenecker Thank you very much, now I only got the information I need in my haster HA.


Data Feeds UI: S9: New S3 Integration Overlay

User Story
As an Automate User, when I click on New Integration-> S3:

I should see a form which will allow me to add S3 Integration details.
Name, Region, bucket key, secret key, access key are all required

Desired Views:

CSS and Other UI settings can be found on Figma Editor
Definition of Done

Page should have design as shown in the Figma Preview

All things specified in User Story Acceptance Criteria should be fulfilled.
All Exceptions are Handled Properly, with user prompt.
Ensure Console has no Errors and not unnecessary logging in Smoke Test.
UI should exactly match UX design.
Unit Test coverage for every new feature at least 70%
Cypress Coverage for new Feature.
Smoke Test is done.
Ensure Build and Integration Pipelines are Green.
PR has 2 approvers.
All Code Review Comments are Resolved.

@shaik80 @vivekshankar1 @MadhviAtroliya @shivangi-singh1 Hey team! Can you please add your planning poker estimates with ZenHub


Drop IE11 support with next major release v8

Description
We should drop IE11 support with our next major release.

Users will still be able to run their IE11 test with Mocha <=v7
we as maintainers will be released of the ES5 burden

Closing, we have chosen the transpiling option, so keep supporting IE11.


Regenerate spec files before downloading tarballs

Otherwise it doesn't download the tarball ofthe new version
but of the old version, which doesn't make sense

+1 . merging. not tested anyway...


pkg-config related issue

Hi,
I'm installing py-kaldi-asr via pip on condaenv, but I'm getting this error:
Collecting py-kaldi-asr
Using cached https://files.pythonhosted.org/packages/be/c9/b25dd5d9d5621a8e3327b931e22e69ee256c50767c3646b087c9f05047fd/py-kaldi-asr-0.3.0.tar.gz
Complete output from command python setup.py egg_info:
Package kaldi-asr was not found in the pkg-config search path.
Perhaps you should add the directory containing `kaldi-asr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'kaldi-asr' found
looking for atlas library, trying pkg-config first...
looking for atlas library, pkg-config found it
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-2tNyTW/py-kaldi-asr/setup.py", line 99, in
find_dependencies()),
File "/tmp/pip-build-2tNyTW/py-kaldi-asr/setup.py", line 72, in find_dependencies
raise Exception("* failed to find pkgconfig for kaldi-asr")
Exception: *** failed to find pkgconfig for kaldi-asr
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-2tNyTW/py-kaldi-asr/
I had encountered a similar issue with the .pc file for Atlas, but managed a workaround(as the file was in a different dir) but I'm completely lost at this, mostly because I just got swamped with some other work.
System:
Ubuntu 18.04 on Oracle Virtualbox (Host Windows 8)
Python 2.7 (Anaconda) (but I'm using "pip" for this and not "conda")
Thanks!(This is my first git issue ever)
unnecessary comment: What's the deal with pkg-config anyway?

Did you write kaldi-asr.pc as described in https://github.com/gooofy/py-kaldi-asr#source ?

Sorry my mistake, it was really dumb of me to miss/overlook that.
Just did as you pointed, it worked!
Thanks a bunch!

Good to hear that it worked for you. You can close the issue, if you want.

Having a similar issue. Created kaldi-asr.pc and put it within py-kaldi-asr folder. I then did "export PK_CONFIG_PATH=/path/to/py-kaldi-asr". But still it gives the error:
python setup.py build_ext --inplace
looking for atlas library, trying pkg-config first...
Package atlas was not found in the pkg-config search path.
Perhaps you should add the directory containing atlas.pc' to the PKG_CONFIG_PATH environment variable No package 'atlas' found looking for atlas library, trying hard-coded paths... looking for atlas library, found it. Package kaldi-asr was not found in the pkg-config search path. Perhaps you should add the directory containing kaldi-asr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'kaldi-asr' found
Traceback (most recent call last):
File "setup.py", line 99, in
find_dependencies()),
File "setup.py", line 72, in find_dependencies
raise Exception("* failed to find pkgconfig for kaldi-asr")
Exception: *** failed to find pkgconfig for kaldi-asr
Makefile:12: recipe for target 'kaldiasr/nnet3.so' failed

Do you really think that /path/to/py-kaldi-asr should not be adjusted to your case? :-)

Of course I adjusted to my case :) I just wrote it that way to not show unnecessary information

OK. As the problem seems to be right there, please include this information.

Same error. Sorry I made a typo here on git

please try
pkg-config --cflags kaldi-asr --debug
and check the output to see what is going on, then.
here is mine:
[...]
Looking for package 'kaldi-asr'
Looking for package 'kaldi-asr-uninstalled'
Reading 'kaldi-asr' from file '/usr/lib64/pkgconfig/kaldi-asr.pc'
Parsing package file '/usr/lib64/pkgconfig/kaldi-asr.pc'
  line>kaldi_root=/opt/kaldi
 Variable declaration, 'kaldi_root' has value '/opt/kaldi'
  line>
  line>Name: kaldi-asr
  line>Description: kaldi-asr speech recognition toolkit
  line>Version: 5.4
  line>Requires: atlas openfst
Looking for package 'atlas'
Looking for package 'atlas-uninstalled'
Reading 'atlas' from file '/usr/lib64/pkgconfig/atlas.pc'
Parsing package file '/usr/lib64/pkgconfig/atlas.pc'
  line>Name: atlas
  line>Version: 3.10.2
  line>Description: Debug information for package atlas
  line>Cflags: -I/usr/include/atlas/
  line>Libs: -L/usr/lib64/atlas/ -lsatlas
Path position of 'atlas' is 1
Adding 'atlas' to list of known packages, returning as package 'atlas'
Looking for package 'openfst'
Looking for package 'openfst-uninstalled'
Reading 'openfst' from file '/usr/lib64/pkgconfig/openfst.pc'
Parsing package file '/usr/lib64/pkgconfig/openfst.pc'
  line>Name: openfst
  line>Description: Weighted finite-state transducer library
  line>Version: 1.6.7
  line>Libs: -lfst
Path position of 'openfst' is 1
Adding 'openfst' to list of known packages, returning as package 'openfst'
  line>Libs: -L${kaldi_root}/src/lib -lkaldi-decoder -lkaldi-lat -lkaldi-fstext -lkaldi-hmm -lkaldi-feat -lkaldi-transform -lkaldi-gmm -lkaldi-tree -lkaldi-util -lkaldi-matrix -lkaldi-base -lkaldi-nnet3 -lkaldi-online2 -lkaldi-cudamatrix -lkaldi-ivector
  line>Cflags: -I${kaldi_root}/src
Path position of 'kaldi-asr' is 1
Adding 'kaldi-asr' to list of known packages, returning as package 'kaldi-asr'
 original:  kaldi-asr  atlas  openfst
 sorted:  kaldi-asr  atlas  openfst
 original:  kaldi-asr  atlas  openfst
 sorted:  kaldi-asr  atlas  openfst
-I/opt/kaldi/src -I/usr/include/atlas/

Mine says:
Variable declaration, 'kaldi_root' has value '/testing/kaldi'   line>   line>Name: kaldi-asr   line>Description: kaldi-asr speech recognition toolkit   line>Version: 5.2   line>Requires: atlas   line>Libs: -L${kaldi_root}/tools/openfst/lib -L${kaldi_root}/src/lib -lkaldi-decoder -lkaldi-lat -lkaldi-fstext -lkaldi-hmm -lkaldi-feat -lkaldi-transform -lkaldi-gmm -lkaldi-tree -lkaldi-util -lkaldi-matrix -lkaldi-base -lkaldi-nnet3 -lkaldi-online2 -lkaldi-cudamatrix -lkaldi-ivector -lfst   line>Cflags: -I${kaldi_root}/src  -I${kaldi_root}/tools/openfst/include   line> Path position of 'kaldi-asr' is 1 Adding 'kaldi-asr' to list of known packages Searching for 'kaldi-asr' requirement 'atlas' Looking for package 'atlas' Looking for package 'atlas-uninstalled' Package atlas was not found in the pkg-config search path. Perhaps you should add the directory containing atlas.pc'
to the PKG_CONFIG_PATH environment variable`

Mine says:
Variable declaration, 'kaldi_root' has value '/testing/kaldi'   line>   line>Name: kaldi-asr   line>Description: kaldi-asr speech recognition toolkit   line>Version: 5.2   line>Requires: atlas   line>Libs: -L${kaldi_root}/tools/openfst/lib -L${kaldi_root}/src/lib -lkaldi-decoder -lkaldi-lat -lkaldi-fstext -lkaldi-hmm -lkaldi-feat -lkaldi-transform -lkaldi-gmm -lkaldi-tree -lkaldi-util -lkaldi-matrix -lkaldi-base -lkaldi-nnet3 -lkaldi-online2 -lkaldi-cudamatrix -lkaldi-ivector -lfst   line>Cflags: -I${kaldi_root}/src  -I${kaldi_root}/tools/openfst/include   line> Path position of 'kaldi-asr' is 1 Adding 'kaldi-asr' to list of known packages Searching for 'kaldi-asr' requirement 'atlas' Looking for package 'atlas' Looking for package 'atlas-uninstalled' Package atlas was not found in the pkg-config search path. Perhaps you should add the directory containing atlas.pc'
to the PKG_CONFIG_PATH environment variable`

ah, there you got your answer: it fails to find the atlas package on your system :)

Mine says:
File 'systemd.pc' appears to be a .pc file
Will find package 'systemd' in file '/usr/share/pkgconfig/systemd.pc'
Looking for package 'kaldi-asr'
Looking for package 'kaldi-asr-uninstalled'
Reading 'kaldi-asr' from file '/home/test/py-kaldi-asr/kaldi-asr.pc'
Parsing package file '/home/test/py-kaldi-asr/kaldi-asr.pc'
line>kaldi_root=/home/test/kaldi
Variable declaration, 'kaldi_root' has value '/home/test/kaldi'
line>
line>Name: kaldi-asr
line>Description: kaldi-asr speech recognition toolkit
line>Version: 5.2
line>Requires: atlas
line>Libs: -L${kaldi_root}/tools/openfst/lib -L${kaldi_root}/src/lib -lkaldi-decoder -lkaldi-lat -lkaldi-fstext -lkaldi-hmm -lkaldi-feat -lkaldi-transform -lkaldi-gmm -lkaldi-tree -lkaldi-util -lkaldi-matrix -lkaldi-base -lkaldi-nnet3 -lkaldi-online2 -lkaldi-cudamatrix -lkaldi-ivector -lfst
line>Cflags: -I${kaldi_root}/src  -I${kaldi_root}/tools/openfst/include
line>
Path position of 'kaldi-asr' is 1
Adding 'kaldi-asr' to list of known packages
Searching for 'kaldi-asr' requirement 'atlas'
Looking for package 'atlas'
Looking for package 'atlas-uninstalled'
Package atlas was not found in the pkg-config search path.
Perhaps you should add the directory containing `atlas.pc'
to the PKG_CONFIG_PATH environment variable
Package 'atlas', required by 'kaldi-asr', not found

Hmm, am I missing something when installing kaldi-asr. I followed instruction at https://github.com/kaldi-asr/kaldi/blob/master/tools/INSTALL

Hmmm, am I missing something when installing kaldi-asr? I followed instruction here https://github.com/kaldi-asr/kaldi/blob/master/tools/INSTALL

I think your pkg-config setup is incomplete, you will need to tell pkg-config about your atlas library installation. to check, run
pkg-config --cflags atlas
I suspect that will not work on your setup.

I got:
Package atlas was not found in the pkg-config search path.
Perhaps you should add the directory containing `atlas.pc'
to the PKG_CONFIG_PATH environment variable
No package 'atlas' found
I see atlas at /usr/include/atlas. However I don't see 'atlas.pc' here. How to I tell pkg-config about atlas ?

Modified setup.py as suggested. Still got the same error.
Output of uname -a is:
Linux ip_adress 4.4.0-1067-aws #77-Ubuntu SMP Mon Aug 27 13:22:03 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I am sorry. I only have experience with Kaldi and Ubuntu 17.04 till 18.10 and not 16.04. Obviously, they changed some installation details for atlas after 16.04. BTW: If you want to train models, you will probably need a GPU (just mentioning it because of the -aws part in your kernel identifier).

One more idea. I compared my kaldi-asr.pc to the one documented here: I have no Requires line. This makes sense because the atlas configuration can be done without pkg-config.

One more idea. I compared my kaldi-asr.pc to the one documented here: I have no Requires line. This makes sense because the atlas configuration can be done without pkg-config.

Could you elaborate on this ? Also, I'm trying to perform speech-to-text for .wav files using kaldi pre-trained models so I'm not thinking about training my own models as of now

Tried it. Still got the error:
looking for atlas library, trying pkg-config first...
Package atlas was not found in the pkg-config search path.
Perhaps you should add the directory containing `atlas.pc'
It's still looking to configure atlas with pkg-config.
My kaldi-asr.pc looks like:
kaldi_root=/home/test/kaldi
Name: kaldi-asr
Description: kaldi-asr speech recognition toolkit
Version: 5.2
Libs: -L${kaldi_root}/tools/openfst/lib -L${kaldi_root}/src/lib -lkaldi-decoder -lkaldi-lat -lkaldi-fstext -lkaldi-hmm -lkaldi-feat -lkaldi-transform -lkaldi-gmm -lkaldi-tree -lkaldi-util -lkaldi-matrix -lkaldi-base -lkaldi-nnet3 -lkaldi-online2 -lkaldi-cudamatrix -lkaldi-ivector -lfst
Cflags: -I${kaldi_root}/src  -I${kaldi_root}/tools/openfst/include

looking for atlas library, trying pkg-config first...

Yes, and "first" means it will make a second try, with "looking for atlas library, trying hard-coded paths...", see setup.py. From time to time, you might have to look into the code ... You have been warned :-)

Looked into setup.py and saw that it was trying to find where libatlas.so.3 is. Found it at /usr/lib/atlas-base/atlas) and included the path in setup.py. I no longer have that error. Thanks for the suggestion @svenha
Running into a different issue when running "make":
warning: no library file corresponding to '/usr/lib/cblas.so.3' found (skipping)
warning: no library file corresponding to '/usr/lib/f77blas.so.3' found (skipping)
warning: no library file corresponding to '/usr/lib/lapack_atlas.so.3' found (skipping)
c++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/kaldiasr/nnet3.o build/temp.linux-x86_64-2.7/kaldiasr/nnet3_wrappers.o -L/home/machPred/phillip_workenv/speech_recognition/kaldi/tools/openfst/lib -L/home/machPred/phillip_workenv/speech_recognition/kaldi/src/lib -lkaldi-decoder -lkaldi-lat -lkaldi-fstext -lkaldi-hmm -lkaldi-feat -lkaldi-transform -lkaldi-gmm -lkaldi-tree -lkaldi-util -lkaldi-matrix -lkaldi-base -lkaldi-nnet3 -lkaldi-online2 -lkaldi-cudamatrix -lkaldi-ivector -lfst -o /home/test/py-kaldi-asr/kaldiasr/nnet3.so
/usr/bin/ld: cannot find -lkaldi-decoder
/usr/bin/ld: cannot find -lkaldi-lat
/usr/bin/ld: cannot find -lkaldi-fstext
/usr/bin/ld: cannot find -lkaldi-hmm
/usr/bin/ld: cannot find -lkaldi-feat
/usr/bin/ld: cannot find -lkaldi-transform
/usr/bin/ld: cannot find -lkaldi-gmm
Any idea where I may look for these files ?

Looked in setup.py and saw that it was looking for libatlas.so.3. I found it at /usr/lib/atlas-base. That error is gone. Thanks for the suggestion @svenha
Having a different issue when running "make".
warning: no library file corresponding to '/usr/lib/atlas.so.3' found (skipping)
warning: no library file corresponding to '/usr/lib/cblas.so.3' found (skipping)
warning: no library file corresponding to '/usr/lib/f77blas.so.3' found (skipping)
warning: no library file corresponding to '/usr/lib/lapack_atlas.so.3' found (skipping)
c++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/kaldiasr/nnet3.o build/temp.linux-x86_64-2.7/kaldiasr/nnet3_wrappers.o -L/home/test/kaldi/tools/openfst/lib -L/home/test/kaldi/src/lib -lkaldi-decoder -lkaldi-lat -lkaldi-fstext -lkaldi-hmm -lkaldi-feat -lkaldi-transform -lkaldi-gmm -lkaldi-tree -lkaldi-util -lkaldi-matrix -lkaldi-base -lkaldi-nnet3 -lkaldi-online2 -lkaldi-cudamatrix -lkaldi-ivector -lfst -o /home/test/py-kaldi-asr/kaldiasr/nnet3.so
/usr/bin/ld: cannot find -lkaldi-decoder
/usr/bin/ld: cannot find -lkaldi-lat
/usr/bin/ld: cannot find -lkaldi-fstext
/usr/bin/ld: cannot find -lkaldi-hmm
/usr/bin/ld: cannot find -lkaldi-feat
/usr/bin/ld: cannot find -lkaldi-transform

Hey @Cloud299
I am facing the same issue:
Cannot find any of the lkaldi-XXXX
Did you find a solution to this?

looks like an issue with your kaldi installation and/or pkg-config setup. check out what
pkg-config --libs kaldi-asr
produces and make sure the -L paths are ok and contain the required libraries.
example output:
$ pkg-config --libs kaldi-asr
-L/opt/kaldi/src/lib -L/usr/lib64/atlas/ -lkaldi-decoder -lkaldi-lat -lkaldi-fstext -lkaldi-hmm -lkaldi-feat -lkaldi-transform -lkaldi-gmm -lkaldi-tree -lkaldi-util -lkaldi-matrix -lkaldi-base -lkaldi-nnet3 -lkaldi-online2 -lkaldi-cudamatrix -lkaldi-ivector -lsatlas -lfst

libraries:
$ ls -l /opt/kaldi/src/lib
total 0
lrwxrwxrwx 1 root root 24 May  5 17:27 libkaldi-base.so -> ../base/libkaldi-base.so
lrwxrwxrwx 1 root root 26 May  5 17:27 libkaldi-chain.so -> ../chain/libkaldi-chain.so
lrwxrwxrwx 1 root root 36 May  5 17:27 libkaldi-cudamatrix.so -> ../cudamatrix/libkaldi-cudamatrix.so
lrwxrwxrwx 1 root root 30 May  5 17:27 libkaldi-decoder.so -> ../decoder/libkaldi-decoder.so
lrwxrwxrwx 1 root root 24 May  5 17:27 libkaldi-feat.so -> ../feat/libkaldi-feat.so
lrwxrwxrwx 1 root root 28 May  5 17:27 libkaldi-fstext.so -> ../fstext/libkaldi-fstext.so
lrwxrwxrwx 1 root root 22 May  5 17:27 libkaldi-gmm.so -> ../gmm/libkaldi-gmm.so
lrwxrwxrwx 1 root root 22 May  5 17:27 libkaldi-hmm.so -> ../hmm/libkaldi-hmm.so
lrwxrwxrwx 1 root root 30 May  5 17:27 libkaldi-ivector.so -> ../ivector/libkaldi-ivector.so
lrwxrwxrwx 1 root root 22 May  5 17:27 libkaldi-kws.so -> ../kws/libkaldi-kws.so
lrwxrwxrwx 1 root root 22 May  5 17:27 libkaldi-lat.so -> ../lat/libkaldi-lat.so
lrwxrwxrwx 1 root root 20 May  5 17:27 libkaldi-lm.so -> ../lm/libkaldi-lm.so
lrwxrwxrwx 1 root root 28 May  5 17:27 libkaldi-matrix.so -> ../matrix/libkaldi-matrix.so
lrwxrwxrwx 1 root root 26 May  5 17:27 libkaldi-nnet2.so -> ../nnet2/libkaldi-nnet2.so
lrwxrwxrwx 1 root root 26 May  5 17:27 libkaldi-nnet3.so -> ../nnet3/libkaldi-nnet3.so
lrwxrwxrwx 1 root root 24 May  5 17:27 libkaldi-nnet.so -> ../nnet/libkaldi-nnet.so
lrwxrwxrwx 1 root root 30 May  5 17:27 libkaldi-online2.so -> ../online2/libkaldi-online2.so
lrwxrwxrwx 1 root root 26 May  5 17:27 libkaldi-rnnlm.so -> ../rnnlm/libkaldi-rnnlm.so
lrwxrwxrwx 1 root root 26 May  5 17:27 libkaldi-sgmm2.so -> ../sgmm2/libkaldi-sgmm2.so
lrwxrwxrwx 1 root root 34 May  5 17:27 libkaldi-transform.so -> ../transform/libkaldi-transform.so
lrwxrwxrwx 1 root root 24 May  5 17:27 libkaldi-tree.so -> ../tree/libkaldi-tree.so
lrwxrwxrwx 1 root root 24 May  5 17:27 libkaldi-util.so -> ../util/libkaldi-util.so

Same issue here. I'm using Mint 19.2 which is a Ubuntu 18.04 (Bionic Beaver) based distribution. I'm running an anaconda environment with Python 3.75 installed (but the same error was happening when I used a different environment running 3.6.9).
The error message resembles Cloud299's error message ("Package atlas was not found in the pkg-config search path", etc.).
An  '/usr/lib/x86_64-linux-gnu' subdirectory exists in my system and it contains the 'libatlas.so.3' file as well as an 'atlas' subdirectory (with libblas & liblapack related files). There's also a '/usr/include/x86_64-linux-gnu/atlas' with headers. There's no file named 'atlas.so.3' in my filesystem.
pkg-config --libs kaldi-asr
gives:
Package atlas was not found in the pkg-config search path.
Perhaps you should add the directory containing `atlas.pc'
to the PKG_CONFIG_PATH environment variable
Package 'atlas', required by 'kaldi-asr', not found

Since there's a reference to '/usr/include/atlas' in setup.py and I lacked that directory in my system, I made a symbolic link to what looked like the correct subdirectory with:
ln -s /usr/include/x86_64-linux-gnu/atlas /usr/include/atlas
It didn't work. It just made my error message longer but it still complains about not finding the atlas package:
Collecting py-kaldi-asr
  Using cached https://files.pythonhosted.org/packages/b5/bb/0082185cfa67d63068358de9b1a65661c8dcdbe97e935809427d5881ea17/py-kaldi-asr-0.5.2.tar.gz
    ERROR: Command errored out with exit status 1:
     command: /home/cosmicaug/anaconda3/envs/pykadiasr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3iuu2zct/py-kaldi-asr/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3iuu2zct/py-kaldi-asr/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-3iuu2zct/py-kaldi-asr/pip-egg-info
         cwd: /tmp/pip-install-3iuu2zct/py-kaldi-asr/
    Complete output (18 lines):
    Package atlas was not found in the pkg-config search path.
    Perhaps you should add the directory containing `atlas.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'atlas' found
    Package atlas was not found in the pkg-config search path.
    Perhaps you should add the directory containing `atlas.pc'
    to the PKG_CONFIG_PATH environment variable
    Package 'atlas', required by 'kaldi-asr', not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-3iuu2zct/py-kaldi-asr/setup.py", line 99, in <module>
        **find_dependencies()),
      File "/tmp/pip-install-3iuu2zct/py-kaldi-asr/setup.py", line 72, in find_dependencies
        raise Exception("*** failed to find pkgconfig for kaldi-asr")
    Exception: *** failed to find pkgconfig for kaldi-asr
    looking for atlas library, trying pkg-config first...
    looking for atlas library, trying hard-coded paths...
    looking for atlas library, found it.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@cosmicaug That worked for me. Using your suggestion, I can install on Ubuntu 18 with:
 virtualenv -p python3.7 .env
. .env/bin/activate
sudo apt install libatlas-base-dev
sudo ln -s /usr/include/x86_64-linux-gnu/atlas /usr/include/atlas
pip install Cython
pip install numpy py-kaldi-asr

Then I can import kaldiasr from Python.

@chrisspen
Nice! I wonder why I couldn't get it to work? I believe that I did the other steps as you describe.
What's your OS?


Math domain error

Hi,
I'm using this code to process some images from the FLIR i7 camera. I know that theoretically the library doesn't support that camera, but after some handwork with exiftool and images from the camera, I realized that I could use it for extract the thermal_np_array which is enough for me.
Even though I made it work properly for a lot of images, I'm getting a 'math domain error' in the raw2temp module in some cases. Do you know why is this happening? All metadata that raw2temp needs are available so I guess that this shouldn't be happening.
Here you have some examples of the 'troublemakers' :)
Thanks in advance. @Nervengift

Hi,
I kept studying that error and after some 'debugging' in the raw2temp module, I discovered that my thermal_np_array had some 0 values. I'm assuming that these are some hardwarware bad detections and I'm interpolating those 0s with the average of the row. I'm including this piece of code
for row in thermal_np:     if 0 in row:         mean = np.mean(row)         row[row == 0] = mean


Swift Cocoapod issue

I had installed pinterest SDK in swift project by using cocoa pod.
use_frameworks!
target 'XXX' do
pod 'PinterestSDK'
end
Then I had tried to import PDKClient class. But I am getting error. "No such module PDKClient"
Could you tell me solve way?
Thanks.

It is problem of Xcode.
Please build project, then warning message will be disappear.

@samulegold2016 - Please try @jinthreek89 fix and let us know if you are still encountering issues.


What is the value of R1?

What should be the value of R1?
I see it is marked as N/C, and I am not sure if that resistor should be there at all, or if it has to be ommited
Thanks!

The crystal and associated caps and resistors form part of a Pierce Oscillator https://en.wikipedia.org/wiki/Pierce_oscillator
As seen in the ESP32 S2 Hardware Design Guidelines section '2.4.2 RTC (optional)' https://www.espressif.com/sites/default/files/documentation/esp32-s2_hardware_design_guidelines_en.pdf
Generally speaking you won't need to populate it, or even add a footprint for the series or parallel resistors there at all.

thanks a lot for answering @eggsampler!!


not working : chrome + localhost

Rules url :
http://localhost/tds/*
script url:
http://localhost/tds/*.css
(tried others .css urls too)
How can I debug it ?
Tried it on FF and Chrome

Debugging is explained on https://chrome.google.com/webstore/detail/live-reload/jcejoncdonagmfohjcdgohnmecaipidc and https://addons.mozilla.org/addon/live-reload/, it's different per browser. It should help you understand which files are monitored.


clean up all app docs

This PR cleans up the documentation for all apps (warren lab, badelf, etc.). The key change is that the warren_lab app should be just configs (similar to how the future materials_project app will look)
@SWeav02 I will open PRs like this one, which will merge into your main branch (so it will update your PR over in the official repo!). There will be several PRs that I post here, where this is the first (and easiest 😅). These PRs should also give you a view of how to PRs for the official main branch should look. Basically keep the changes small and to a single topic, which makes them much easier to read through and approve.

go ahead and merge this once you approve 😄. You can make edits later too


remove Apache Spark

remove all the code using Apache Spark and code using its results (as that was just an incomplete PoC)

I think yes because this cleans up the repo and makes it more maintainable.
A future project could restart with GeoSpark included.


Fixing VS's documentation.

The nuget command line tool can't find which solution we want to restore packages on. The documentation needs some update.

Thanks!


Medium range missing?

Hello
According to VL53L1X datasheet, there's a Medium Distance Mode, which is not present at API.
Was there an update by ST removing it?

As I just read, there's more than one version of the core, the STSW-IMG007 contains all three modes, others may not, the library could be built upon one of them.


Allow login from env var MANIFOLD_API_TOKEN

This authenticates a machine using the API token instead of a JWT returned from the login flow.
MANIFOLD_API_TOKEN=[token] manifold list

does it save the token to .manifoldrc? IMO it shouldn't, and should override manifoldrc, too

Yeah it does, will avoid that

Just realizing that there's a larger implication throughout the code. If you authenticate the CLI using a team-owned all commands will fail due to reliance on GET /self.
So what we'll do:

Don't save the token on disk
Catch the case of API token auth 400ing on GET /self
Track if the token is from a team on the session object
Update commands which relied on the session.User() to do their own API call
Short-circuit analytics calls from clients which are authenticated as a team

@jbowes is team authentication with an API token deployed? Encountered some issues while fixing this PR.

@jbowes is team authentication with an API token deployed? Encountered some issues while fixing this PR.

yup! whatcha see?

yup! whatcha see?

nope! it wasn't (it wasn't even written, heh). doing so now.


fix: data model name for Endpoint_Ports

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

v3.0.2
GitHub release

Your semantic-release bot :package::rocket:


Write a Kotlin program to convert inches to centimeters

Description
Write a Kotlin program to convert inches to centimeters
1 inch = 2.54 centimeters
Input  : 5
Output : 12.7

How to contribute

Save the solution in ConvertInchesToCentimeters.kt file
Add ConvertInchesToCentimeters.kt file in convert-inches-to-centimeters folder

!assign


Fix 0 width for empty elements.

If an empty element has class ".col .sx", then the element will have no width. With a 1px min-height, the width applied by the responsive classes .col .sx will be applied.

Having 0 width when the element is empty is expected and desired behavior


Build configuration on IntegrationPlatform ignored

What happened?
The IntegrationPlatform spec is able to hold build configuration settings that should be applied to the integration image builds. However, some settings are ignored when set on the IntegrationPlatform (e.g. build.buildConfiguration.platforms).
Status of the Integration platform after adding the setting:
#...
  status:
    build:
      baseImage: arm64v8/eclipse-temurin:17
      buildConfiguration:
        orderStrategy: sequential
        platforms:
        - linux/amd64
        - linux/arm64
        strategy: routine
#...

I would expect the operator to use a setting -Djib.from.platforms=linux/arm64 but it is not there (see logs below).
When the platform is set via trait option on the integration (kamel run simple.groovy -t builder.platforms="linux/arm64") it works and I can see the setting -Djib.from.platforms=linux/arm64 is being used during the integration image build as expected.
Users should be able to set this also on IntegrationPlatform level for all integrations.
Steps to reproduce

Install Camel K 2.3.0-SNAPSHOT
patch the IntegrationPlatform to add build configuration (k patch itp camel-k --type=merge -p '{"spec":{"build": { "buildConfiguration": {"platforms": ["linux/amd64","linux/arm64"]}}}}')
Review the integration platform status to have the setting applied
run integration and review the operator log to use the setting -Djib.from.platforms=linux/arm64 during the build

Relevant log output
{"level":"info","ts":"2024-03-27T08:49:31Z","logger":"camel-k.maven.build","msg":"Executed command: ./mvnw jib:build -V --no-transfer-progress -Dstyle.color=never -Dmaven.repo.local=/etc/maven/m2 --global-settings /tmp/kit-co1tqo3ui44s7386ui00-557093953/maven/settings.xml -Dmaven.artifact.threads=4 -T 4 -P jib -Djib.to.image=<IP_ADDRESS>/camel-system/camel-k-kit-co1tqo3ui44s7386ui00:39034 -Djib.from.image=arm64v8/eclipse-temurin:17 -Djib.allowInsecureRegistries=true"}

Camel K version
2.3.0-SNAPSHOT

@christophd are you sure this is happening with version 2.3.0? Just tested and it work as expected:
kamel run test.yaml -t builder.platforms="linux/arm64"
...
camel-k-operator-56cbd4ff78-h4z5g camel-k-operator {"level":"info","ts":"2024-04-18T14:01:34Z","logger":"camel-k.maven.build","msg":"Executed command: ./mvnw jib:build -V --no-transfer-progress -Dstyle.color=never -Dmaven.repo.local=/etc/maven/m2 --global-settings /tmp/kit-cogif7of9h2c73aouqu0-2355704660/maven/settings.xml -Dmaven.artifact.threads=8 -T 8 -P jib -Djib.to.image=<IP_ADDRESS>/default/camel-k-kit-cogif7of9h2c73aouqu0:1233624 -Djib.from.image=eclipse-temurin:17 -Djib.baseImageCache=/tmp/kit-cogif7of9h2c73aouqu0-2355704660/maven/jib -Djib.from.platforms=linux/arm64 -Djib.allowInsecureRegistries=true"}
....
$ docker inspect 69cdd648323b
...
        "Architecture": "arm64",
        "Os": "linux",

Ah, I think I miss to read the second part, like it fails to execute when the property are set outside the trait. Gonna checking right now.


Workflow update

[ ] New branch for releases
[ ] Releases should be created automatically
[ ] CHANGELOG file not needed (the main reason: impossible to edit while release), github releases probably will be enough
[ ] Some changelog generation fixes required (https://github.com/conventional-changelog/conventional-changelog/issues/601 at least)
[ ] Will be better run tests for packages in main repo (very annoying to check all other repos)

Will be better run tests for packages in main repo (very annoying to check all other repos)

Not (yet?) possible, unfortunately :(

https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations

The strategy property is not supported in any job that calls a reusable workflow.

https://github.community/t/reusable-workflow-with-strategy-matrix/205676

Will be better run tests for packages in main repo (very annoying to check all other repos)

Also done in #41 🤗


Indent.log from latexindent.pl

I would like to disable the creation of the indent.log file. I tried editing the defaultSettings.yaml and using the command line options for latexindent.pl, but it seems like there is not option to disable it completly.
I found a workaround, but i think its kinda ugly. I created a script that calls "latexindent.pl -g /dev/null" and my latex-formatter plugin calls this script instead of latexindent.pl.
With these changes, when i run my script directly into a tex file, the tex file gets idented and occurs the following error: "Can't open /dev/null ...", this solves my problem since the indent.log file is not written anymore and the file is correctly indented, but i think there should be a better solution.
Would anyone have a better solution?

I am quite busy with univerity at  the moment, but if i have time next week i try to find a solution

You might like to look at the -c option, see http://latexindentpl.readthedocs.io/en/latest/sec-how-to-use.html#from-the-command-line

I'd say this issue is about latexindent, and isn't about the latex-formatter project.