Incorrect save path

When I hit "save as" and choose a path, it fills the path box with a ref path such as ".. \ .. \ .. \ .. \Downloads". After I give the file a name it processes it but at the end it says 0B. I got around this by filling the path box myself with the full path eg: "D:\MyStuff" and then it worked.
Thanks for this project :) it's really cool.

It detects the path (before opening the folder picker) as relative and transforms the chosen path to a relative form too.
Now, for some reason the save is not working. :?

I could not reproduce this issue with the latest version (2.4), could you confirm that it's working?
Expected behavior:

If the latest folder path is relative before opening the file picker, then the new path is also converted to relative.
If it's not relative, the selected path will stay as non relative.

Both relatives and non-relatives path should work and produce a gif/video.

I also couldn't reproduce it in 2.4. Seems fixed. Thanks!

Awesome! Closing this issue.


Use AWSKMSClientBuilder

I decided to make a new KmsMasterKeyProviderBuilder class instead of just using the builder directly inside KmsMasterKeyProvider. There are two reasons for this:

The motivation behind the client builders in the AWS Java SDK was to remove the need to have/use multiple constructors to build an object, and I felt it would be valuable to carry that reasoning over to this library. Using the builder removes the need to search for the correct constructor, and is a bit more expressive.
A separate builder class ensures that code previously written using the old constructors will not break with the introduction of the client builders. I noticed that clients created with the builder are immutable, so any calls to the setters in KmsMasterKeyProvider that change the state of the KMS client (e.g. KmsMasterKeyProvider#setRegion), will throw an exception, and won't change as expected. This way felt safer.

Also, feel free to share thoughts on how the new builder can be tested. I originally added an equals method to KmsMasterKeyProvider, and was going to ensure that both the builder and constructor created objects with the same properties, but because AWSKMSClient does not have equals overriden, this proved to be difficult.

I should note that it would be useful to be able to reuse KMS clients, but I don't want to tie us to an API for that until we know what multi-region KMS MKPs would look like.

Regarding testing, we'll need to figure out how we want to run automated integration tests for this. We have some cross-language compatibility tests that operate on KMS, but I'm not sure if we've put those in a public repository just yet, and we certainly haven't set up a publicly visible test fleet using actual AWS credentials to run KMS calls. When we do that's probably the best place to put tests for client construction.

Closing this as moot at this point as we merged a different version of the builder concept.


Cannot find checkXXX() methods for checking constraints

According to the README, this should be generated:
@Override void checkAge(int age) {
  // Check single-field (argument) constraints in the check method.
  checkArgument(age >= 0);
}

However, I can't find such methods for any of my fields. Am I missing something?
I am using FreeBuilder 1.10.1.

Sorry, that's a mistake that crept in somehow; I just fixed it. You should override the setter to perform single-field validation. Thanks for the catch!


Log in as User in container

With either LCOW or with containers using MobyVM, how does one login as a user instead of the default root user?

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

ID: 87364a28-e1df-eda3-2480-11556ac578be
Version Independent ID: eebcf9e0-2ff4-d3b5-687f-682adf0b005b
Content: Linux Containers on Windows
Content Source: virtualization/windowscontainers/deploy-containers/linux-containers.md
Service: windows-containers
Product: windows-containers
GitHub Login: @scooley

You don't. Docker supports the USER command while building an image. You can also run the container as an image (https://stackoverflow.com/questions/35734474/connect-to-docker-container-as-user-other-than-root). You cannot however login as a user which means if you want to run an using a windows account you actually use a built-in windows account and set up GMSAs (https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/manage-serviceaccounts) which are used as the identity to communicate with network resources, which of course has caveats (including not working/partially working with all but the absolute latest windows releases, requiring the container host being part of AD, making some custom AD configurations for those hosts, creating custom GSMA accounts, etc).

Ahh yes, that makes sense. Thank you for clearing that up!


Bug: --parseDependency generates documentation for external packages

Describe the bug
When using Swaggo with the --parseDependency flag, route documentation is incorrectly generated from dependency packages. This behavior leads to unintended API routes being included in the generated documentation.
To Reproduce
Steps to reproduce the behavior:

Set up a basic Go project with external dependencies that have their own swagger annotations.
Install Swaggo and run the command swag init --parseDependency.
Observe that the generated docs include routes from the external dependencies.

Expected behavior
I expected that only the routes from the main application would be documented. Routes from external dependencies should not be included unless explicitly specified.
Your swag version
v1.16.3
Your go version
go version go1.22.4 linux/amd64
Desktop (please complete the following information):

OS: Ubuntu 22.04

An alternative option can be used instead of --parseDependency.
--parseDependencyLevel    Parse go files inside dependency folder, 0 disabled, 1 only parse models, 2 only parse operations, 3 parse all.
swag init --parseDependencyLevel 1

An alternative option can be used instead of --parseDependency. --parseDependencyLevel Parse go files inside dependency folder, 0 disabled, 1 only parse models, 2 only parse operations, 3 parse all. swag init --parseDependencyLevel 1

Thank you, that works.


History - User permission audit logs

As a Ministry Team, I want a user permission audit trail, so that I can see logs of permissions granted and removed in the past for audit and investigation purposes.
Context: Requested by AG, as they are being audited on this regularly. The current state doesn't allow to follow added and removed users, which can lead to gaps in understanding past permissions and doesn't allow full transparency.
Acceptance Criteria:

On the History Tab of a project set, add a log line for each permission related action, including the name of the user performing the action, the name of the user receiving or loosing permission, the permission in question, and a time and date stamp, including Year, Month, Day, Hours, Minute, Timezone 3 letters (ie. PST).
Add a "Roles" Filter at the top of the list under the "History" Tab, enabling to look only at permission changes.
Add a "Project details" (suggestions welcome for that name) Tab, allowing to look exclusively at project edition logs (ie. filtering out permission logs).

Not ultimate audit trail, because it's possible to add/remove users in Keycloack.
Consider keycloack audit trail as an addition.

Thibault's comment from Oct 29, 2024:

Well yes the need still exists, I can understand it doesn't take priority over some other items, but I think that's a good addition and to confirmed, might also be an improvement for private cloud too.

This is about security and the ability to track if someone was granted permission, by who, even for a short time, to try and investigate potential breaches etc.
This would be a good discussion to have to understand if there's a need in Private cloud too. I'd suggest talking about it with Nick.


Basic Extensions

Please make separate PRs for each individual extension. It helps with reviewing and pushing certain extensions over others.


Optimize capnp

Follow capnp best practices in hopes of saving a bit of CPU in each process.

x.y is 3x-4x faster than reader.x.y in my tests

@deanlee do you see any other best practices we’re currently violating? pycapnp seems to make up a decent amount of the CPU usage in our python processes

Not merging as-is. This doesn't have a significant impact on performance, and it's less readable.

maybe we should find or create a capnp's compiler plugin to compile  schemas to cython.

This still makes very little difference. I think the way to go is optimizing pycapnp for cheap encoding (currently it makes a few copies) or writing something in Sub/PubMaster to serialize capnp bytes to python dicts for cheap read/write, because currently we're paying for read/write and serialization.


Allow global configuration of request constructors

Fixes #60. Add a new method to the module object to override the constructors for XMLHttpRequest and XDomainRequest. Allows simpler integration with request mocking libraries like sinon.

Looks good, there's one issue I have with it - it doesn't actually fix #60 as it ends with a conclusion to a different API than the one you implemented.
What is the reason behind going back to the initial proposition?

Aw, shoot. Missed the change at the end of that issue. I'll update the PR.

@naugtur updated the PR

That was quick!
Thanks for contributing.

Updated the README with your suggestion. Thanks for the quick review.

+1 If we can get this pulled in that'd be great!

I need to fix our testrunner to work in old IEs again and make sure everything still passes there. Master branch has few minor updates waiting for a release, but I feel like I should fix the issues with tests before I release another version.
A release should happen this weekend if everything goes well

Awesome, thanks @naugtur.


LineComponentSeparator breaks on too many special characters

variable : formatMiddle string ("\".format(")

This breaks LineComponentSeparator because it just uses basic character index searching. A more intelligent stack needs to be used.

https://www.glslang.org/docs/internals.html


Linker Issue with Apple Clang 15

With the new Xcode compiler and linker, Openblas linking fails.
A workaround is to use the following command:
$ RUSTFLAGS="-C link-args=-Wl,-ld_classic" cargo install gemm-benchmark --features openblas

Would be great if this link option could be made intrinsic on MacOS?

I can't reproduce this:
❯ clang --version
Apple clang version 15.0.0 (clang-15<IP_ADDRESS>)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

❯ cargo build --release --features openblas
   Compiling libc v0.2.127
   Compiling dirs-sys v0.3.7
   Compiling dirs v3.0.2
   Compiling openblas-src v0.10.4
   Compiling gemm-benchmark v0.1.3 (/Users/daniel/git/gemm-benchmark)
    Finished `release` profile [optimized] target(s) in 21.93s

I guess OpenBlas upstream fixed it. Closing this.


IOS Build rejected by apple: Invalid Bundle - One or more dynamic libraries that are referenced by your app are not present in the dylib search path.

Plugin Version or Commit ID
v0.10.1
Unity Version
2021.3.7f1
Your Host OS
macOS 12.4 (Monterey)
Target Platform
iOS
[Windows Only] Visual Studio C++ and Windows SDK Version
No response
[Linux Only] GCC/G++ and GLIBC Version
No response
[Android Only] Android Build Tools and NDK Version
No response
[iOS Only] XCode Version
Xcode 13.4.x
Command Sequences
Build iOS application
Log
ITMS-90562: Invalid Bundle - One or more dynamic libraries that are referenced by your app are not present in the dylib search path.
Additional Context
Hi,
I had successfully built an application with the Mediapipe Unity plugin for iOS.
However, it is rejected from Apple validation, and mail is saying:
ITMS-90562: Invalid Bundle - One or more dynamic libraries that are referenced by your app are not present in the dylib search path.
Mediapipe Unity plugin is the only plugin in the application.
Could you please help me recognize what is cause for this issue and how to solve this?

I'm not entirely sure if this is the issue but make sure you set the bundle_id here before you build the plugin:
D:\Repositories\MPUP093\MediaPipeUnityPlugin\bazel-mediapipeunityplugin\mediapipe_api\objc\BUILD
`# Copyright (c) 2021 homuler

Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_framework")
objc_library(
name = "mediapipe_c_ios",
sdk_frameworks = [
"Accelerate",
"AVFoundation",
"CoreVideo",
"CoreGraphics",
"CoreMedia",
"GLKit",
"OpenGLES",
"QuartzCore",
],
deps = [
"//mediapipe_api:mediapipe_c",
"@ios_opencv//:OpencvFramework",
],
)
ios_framework(
name = "MediaPipeUnity",
bundle_id = "PLEASE_SET_YOUR_BUNDLE_ID_HERE.MediaPipeUnity",
families = [
"iphone",
"ipad",
],
infoplists = ["Info.plist"],
minimum_os_version = "11.0",
visibility = ["//visibility:public"],
deps = [
":mediapipe_c_ios",
],
)
`


Unable to upload 380K SVG file to slack

Description
Intermittent failure in uploading SVG file depending on its size. If the size is too large I get a timeout error.
Reproducible in:
$ pip freeze | grep slack
slackclient==2.8.0
$ python --version
Python 3.8.6
$ sw_vers && uname -v
ProductName:	Mac OS X
ProductVersion:	10.13.6
BuildVersion:	17G14033
Darwin Kernel Version 17.7.0: Mon Aug 31 22:11:23 PDT 2020; root:xnu-45<IP_ADDRESS>~1/RELEASE_X86_64

The Slack SDK version
slackclient==2.8.0
Python runtime version
Python 3.8.6
OS info
ProductName:	Mac OS X
ProductVersion:	10.13.6
BuildVersion:	17G14033
Darwin Kernel Version 17.7.0: Mon Aug 31 22:11:23 PDT 2020; root:xnu-45<IP_ADDRESS>~1/RELEASE_X86_64
Steps to reproduce:
Run the attached script to upload an svg file to a Slack channel.

Invoke upload2slack.py

Expected result:
SVG file is successfully uploaded.
Actual result:
The following trackback is generated:
Traceback (most recent call last):
  File "upload2slack.py", line 41, in <module>
    response = loop.run_until_complete(future)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/slack/web/base_client.py", line 181, in _send
    res = await self._request(
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/slack/web/base_client.py", line 202, in _request
    return await _request_with_session(
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/slack/web/async_internal_utils.py", line 182, in _request_with_session
    async with session.request(http_verb, api_url, **req_args) as res:
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/aiohttp/client.py", line 1012, in __aenter__
    self._resp = await self._coro
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/aiohttp/client.py", line 504, in _request
    await resp.start(conn)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 860, in start
    self._continue = None
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/aiohttp/helpers.py", line 596, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError
make: *** [upload-full] Error 1

Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. :bow:
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

upload2slack.py.zip

@kickingvegas This seems to be the issue reported at https://github.com/slackapi/python-slack-sdk/issues/476  , which is not yet fixed.
Can you remove run_async=True in WebClient (or setting run_async=False instead is also fine)? I didn't see the option is set in the code you've shared but I'm sure your code is running in this path: https://github.com/slackapi/python-slack-sdk/blob/v2.8.0/slack/web/base_client.py#L137-L148 The default "sync" WebClient does not have this issue.
If you really want to use aiohttp under the hood, I recommend using AsyncWebClient, which is a more straight-forward way to run HTTP requests in the nature of asyncio.

@seratch  tried the synchronous call, got this traceback:
Traceback (most recent call last):
  File "./uploadjiradeps2slackstories.py", line 29, in <module>
    response = client.files_upload(
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/slack/web/client.py", line 1306, in files_upload
    return self.api_call("files.upload", files={"file": file}, data=kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/slack/web/base_client.py", line 150, in api_call
    return self._sync_send(api_url=api_url, req_args=req_args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/slack/web/base_client.py", line 241, in _sync_send
    return self._urllib_api_call(
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/slack/web/base_client.py", line 352, in _urllib_api_call
    response = self._perform_urllib_http_request(url=url, args=request_args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/slack/web/base_client.py", line 489, in _perform_urllib_http_request
    raise err
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/slack/web/base_client.py", line 469, in _perform_urllib_http_request
    resp: HTTPResponse = urlopen(  # skipcq: BAN-B310
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 542, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 1393, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 1354, in do_open
    r = h.getresponse()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

Oh, did it take 30+ seconds?? If so, having longer timeouts may help: https://github.com/slackapi/python-slack-sdk/blob/v2.8.0/slack/web/base_client.py#L46

I've tried with this file 10 times but I was not able to reproduce the situation easily. I didn't change the default timeout.
If the uploading in this situation always fails, you can retry it... sorry, this is the only thing I can suggest here. Another option is to use another cloud storage service that works for you more stably as the primary and then share the URL by calling https://api.slack.com/methods/files.remote.add to unfurl / create search index in Slack.

👋 Let us close this issue due to inactivity but please feel free to write in whenever you have something further to discuss here.


Add Releases with apk

Just a thought, would be nice to be able to download the apk file directly from github since emulators don't come with the Play Store installed.
Also, consider removing the keystore from git and doing a force push to pretend it was never there. If it's the release keystore, there's the chance someone could use it to publish your app as if it came from you.
Thanks for making this, I'm going to compile it myself and try it out now!

Hi David,
Thank you for your interest. Sorry for the late reply, I didn't check my personal mails last week.
I was keeping the release apks locally with me till now. Will start publishing them tonight.
As for the keystore, it is password-protected. Should that be enough to prevent misuse?

I've added a release for the latest version.
I will be following this as a practice from now on


three questions on visibility

1."settings.refreshOnResize" only appear once in the code, and it seems invalid when window.resize
https://github.com/Semantic-Org/Semantic-UI/blob/master/src/definitions/behaviors/visibility.js#L167
2.Docs use "settings.checkOnResize" but the code use "settings.checkOnRefresh"?
https://github.com/Semantic-Org/Semantic-UI/blob/master/src/definitions/behaviors/visibility.js#L1175
3.Can one element use visibility twice ? I need different offset but it seems invalid when using visibility twice.
thank you so much!

1/2) . refreshOnResize is missing its default setting. This is a typo and a bug.

checkOnRefresh checks position anytime it refreshes (which could be other reasons)
refreshOnResize should be a separate setting that determines whether browser resize should refresh positions

You can overload any UI with two modules by changing the namespace $('.foo').visibility( namespace: 'visibility2'}); I intend to put examples of this in the module docs whenever I get time.

thanks for answering.


Upload, Download, GetDownloadUrlAsync (Image) Example Scene

Dear friend,
I hope this message finds you well and 1st I want to thank you for the great work.
I'm trying to use Firebase storage with REST on Unity but I failed.
Can you please Add an example Scene with an example code showing how can upload a photo on Firebase, and how to retrieve it into the Unity image component how can you Get the Download Url?
I saw your Documentation on GitHub but when I add the code in a c# script in Unity there are a lot of errors, so I'm doing something wrong.
Thanks in advance!

Hi @mhadji05 reach out on my discord and share an example of what you have so far. I'll try to help you troubleshoot what you have so far.
I'll also look into adding a sample scene as well.
Cheers

Just copy paste your code.
`// Create a firebase authentication client
var firebaseClient = new FirebaseAuthenticationClient();
// Create a firebase storage client
var firebaseStorageClient = new FirebaseStorageClient(firebaseClient);
// Sign the user in
await firebaseClient.SignInWithEmailAndPasswordAsync(email, password);
// Get a reference to the resource using a path.
var resource = firebaseStorageClient.Resource("root/test.json");
var json = "{"value":"42"}";
string downloadUrl;
using (var stream = new MemoryStream(Encoding.UTF8.GetBytes(json)))
{
// Upload content to storage
downloadUrl = await resource.UploadAsync(stream, new Progress(progress => Debug.Log(progress.Percentage)));
}
// Get content public download url (doesn't require authentication)
var knownUrl = await resource.GetDownloadUrlAsync();
Assert.IsTrue(downloadUrl == knownUrl);
// Download content
var httpClient = new HttpClient();
var response = await httpClient.GetAsync(knownUrl);
var responseData = await response.Content.ReadAsStringAsync();
Assert.IsTrue(responseData == json);
// Delete storage content
await resource.DeleteAsync();`
If you upload an example scene I will appreciate it a lot.
Thanks


Add LSP client name truncation feature

Hello! How are you? I created this small functionality for staline.nvim.
I like the lsp_name section, but I had the inconvenience that every LSP client is activated when navigating between different files, causing the lsp_name list of names to grow and grow, ruining the appearance of staline.
My solution was to add the lsp_client_character_name option to the configuration file and expand the features of lsp_name, so that by adding a certain value to lsp_client_character_name, the list of names would be truncated and a number indicating how many clients are active would be displayed.
That is:
require('staline').setup {
  defaults = {
    lsp_client_character_name = 12,
    ...
    }
}

With lsp_client_character_name = 0.

With lsp_client_character_name = 12.

With lsp_client_character_name = 12 when the LSP client is not detected.

The icon is part of lsp_client_symbol.
What do you think?

Heyyo @farias-hecdin, good stuff ❤ .
I will merge in 2 days as Im not at home currently and I cant test. Also if you could change all the casing to snake, it would be great.
In the mean time, if you dont encounter any bugs too, let me know 😅

I corrected some bugs in the functionality. Pardon my mistake. :tired_face:

Bro, i got a error
currently i use lsp

heyyo @muhrizkiakbar,
which version of neovim are you on? the requirement secrion was updated recently: #70


Sentence doesn't look right

Hello,
I am reading this:
it's often best to define a single publisher so you can change the layering model across publishers later.
This doesn't  make much sense to me, I assume it should say "across solutions"?

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

ID: aed97a28-1e40-eaca-1612-367a71f7d0d7
Version Independent ID: a1201bae-0aa1-6350-63d5-f2aecdc4eacb
Content: Solution concepts - Power Platform
Content Source: power-platform/alm/solution-concepts-alm.md
Service: powerapps
GitHub Login: @Mattp123
Microsoft Alias: matp

After more reading, I think it actually means to read "across environments".

@PathToSharePoint - thank you for your feedback. You were correct the first time that it should be "across solutions." The last two sentences in the paragraph for the article has been revised as follows:
Once you introduce a publisher for a component in a managed solution, you can’t change the publisher for the component. Because of this, it's best to define a single publisher so you can change the layering model across solutions later.
Closing issue.


Remote_write unexpected resource usage

Bug Report
What did you do?
I'm running pretty busy Prometheus 2.11.1 for federation. It usually consumes ~100GB of RAM(total is 128), ingestion rate is ~40MB/s. Some metrics:

sum(prometheus_tsdb_head_series) -<PHONE_NUMBER>
sum(rate(prometheus_tsdb_head_samples_appended_total[5m])) - 52202271

What did you expect to see?
I expected to see Prometheus writing into remote storage, CPU increase and egress traffic equal to ingress or lower.
What did you see instead? Under which circumstances?
CPU usage increased as expected. But egress traffic to remote storage hit 60MB/s (ingress is 40) which is quite unexpected).
Moreover, every 2h or 4h Prometheus were killed by OOM killer.
Remote storage was working fine, metric prometheus_remote_storage_enqueue_retries_total was equal to 0.
Environment

System information:
Linux 4.14.86-generic x86_64

Prometheus version:
Prometheus 2.11.1

Alertmanager version:
 n/a

Prometheus configuration file:

remote_write:
- url: http://remote-storage
  remote_timeout: 30s
  queue_config:
    capacity: 10
    max_shards: 100
    min_shards: 1
    max_samples_per_send: 10000
    batch_send_deadline: 5s
    min_backoff: 30ms
    max_backoff: 100ms

Logs:

 journalctl -u prometheus | grep 'remote'
prometheus: ts=2019-07-18T10:10:02.622Z caller=dedupe.go:111 component=remote level=info queue=0:http://remote-storage msg="starting WAL watcher" queue=0:http://remote-storage
prometheus: ts=2019-07-18T10:10:02.808Z caller=dedupe.go:111 component=remote level=info queue=0:http://remote-storage msg="Stopping remote storage..."
prometheus: ts=2019-07-18T10:10:02.831Z caller=dedupe.go:111 component=remote level=error queue=0:http://remote-storage msg="error tailing WAL" err="readCheckpoint: readCheckpoint wasn't able to read all data from the checkpoint /state/prometheus/data/wal/checkpoint.405041/00000000, size: 133660672, totalRead: 8596156"
prometheus: ts=2019-07-18T10:10:02.831Z caller=dedupe.go:111 component=remote level=info queue=0:http://remote-storage msg="WAL watcher stopped" queue=0:http://remote-storage
prometheus: ts=2019-07-18T10:10:02.882Z caller=dedupe.go:111 component=remote level=info queue=0:http://remote-storage msg="Remote storage stopped."
prometheus: level=info ts=2019-07-18T10:39:26.377Z caller=wal_watcher.go:149 component=remote queue=0:http://remote-storage msg="starting WAL watcher" queue=0:http://remote-storage
prometheus: level=info ts=2019-07-18T10:46:16.377Z caller=queue_manager.go:499 component=remote queue=0:http://remote-storage msg="Remote storage resharding" from=1 to=100```

Actually in Prometheus 2.11, it read from WAL and write to remote storage instead of forwarding ingress directly to egress. So the ingress traffice may not be equal to engress.
And if prometheus restarts and it already have wal, the egress traffic may reach its max speed which related to max_shards and max_samples_per_send in queue_config.
As for OOM, I don't know the size of memory of your machine. But in my cluster, 500k series may consume 7~8G. The series in your case is such huge, maybe more memory is needed :joy:

If your Prometheus instance is near it's memory limit before adding in remote write it's definitely going to OOM when you add in remote write if you don't give it more memory. From what I remember we saw about a 20% increase in memory used during normal operations with the new WAL based remote write. The goal was that the new remote write doesn't OOM your prometheus instance.
I'm assuming it's OOM'ing every 2 hours or so when truncation/checkpointing happens, which will increase memory usage while those processes occur.
To reduce the memory usage of remote write, you could reduce the max # of shards or max samples per send, or add relabel rules to drop some metrics from remote write.
Are you using federation to grab all metrics from all your other Prometheus instances?

Hi @cstyan

To reduce the memory usage of remote write, you could reduce the max # of shards or max samples per send, or add relabel rules to drop some metrics from remote write.

It turns out that 60MB/s is not the limit. When I increased number of shards to 2k egress increased to 150mb/s, so reducing number of shards is not the option.
The way I solved it is to set GOGC to 50, which increases CPU usage but helps Prometheus to survive during checkpoints.

Are you using federation to grab all metrics from all your other Prometheus instances?

No, but still a lot - it is non-trivial task to control churn in large teams)

so reducing number of shards is not the option

Just a suggestion if you weren't able to increase memory.
If you're using remote write anyways you could simply remote write from the lower level Prometheus instances and reduce your usage of or do away with federation.
Let me know if you have other questions or concerns and we can dig into them.

This seems to be more a configuration tuning problem than an actual bug. I'm therefore closing this issue. For more discussions around configuring and tweaking remote write, you could also use the prometheus-users mailing list.


html in php file - enter after html tag always choses autocomplete

Writing HTML inside a PHP document causes <?php to be suggested immediately after finishing a HTML tag. Definitely annoying if you consistently want to enter down after writing an HTML line. Any suggestions on how i can fix? Thanks for the help.

Duplicate of https://github.com/felixfbecker/php-language-server/issues/372


More Strict Warnings Cleanup

With warnings/errors at the highest levels, functions are expected to be declared before they are defined in main translation unit. Adding declarations to the top of the sources for each free function.

I don't think it's necessary since all of them are defined before their usages.
Compiler seems over reacting. :)

Fair enough.


Move translations to a dedicated platform

Pixelfed is going to grow a lot very soon, it seems, so in order to keep strings updated in multiple languages (as well as to make it easier to translate), it would be ideal to move translations to an external platform.
I suggest translatewiki.net, as it works well for projects like Wikipedia and OpenStreetMap, and has a sizeable community.

Weblate also works well for this, and I think can automatically merge into git? It's what the Mastodon translations use.

I have had good experiences with Weblate (as well as Transifex).
The reason I recommended translatewiki.net is because of its community. I've seen folks who never used a project translating it into several languages: https://translatewiki.net/w/i.php?title=Special:MessageGroupStats&language=eo&group=page-Translating%3ALib.reviews%2FFAQ#sortable:3=desc
Because translatewiki hosts such big free software projects, folks who are already there end up translating other projects when they're bored, it seems.

Crowdin is OK too.


Create link from Help to https://www.freeukgenealogy.org.uk/about/links/ and add GRO booklet there

Done.  Needs checking as part of overall checking, and no complex html, so closing.


Put examples how to work with custom view via code.

Hi. Your library is so cool but the big issue that absolutely not clear to understand how use it in code. Can you add code examples how add custom elements on the layout via code. Pls don't link your Demo project, it's a lot of code, that not easy to read.

Sorry, but I believe that the demo is as concise as it gets. If you are not willing to invest 30 minutes into going trough the Demo project than I cannot help you to make it any faster anyway.
However, I will give some guidance - read the appropriate section in the README and when studing the demo only focus on e.g. PickerInTabelDemoController. All the magic happens in the storyboard in the demo but all can be done with code as well.
Another approach would be to read the in-code documentation starting from ColorPickerController . Basically, all you need to do is to add controls to its colorControls property and then lay them out on the screen using autolayout.
Btw. I am planning on improving the documentation on custom color pickers but I might only get to it in September.

Thanks for answer! You'r absolutely right. Actually I've figured out how to implement ColorPicker in Storyboard  by your demo project. But unfortunately i didn't understand how to implement extra properties for the custom view by code. Anyway thank you for that.
Btw. I think some think wrong with my demo project. I have some error with debug file.

And also one ViewController lost RadialHueControl. I just download demo project and run. Do I need to do some think else?

And one extra question.
In CustomColorPickerViewController.swift file in function viewDidLoad() I tried to change UI background color. But after some tests my changes not affect on UI. It's always .systemBackground Is it right place for change that parameter? I understand, that viewDidLoad() never called even CustomView appear on the screen.

Hi. I've founded some answer on my questions. May be for someone it will be useful.

viewDidLoad() I understood why this method have not worked. I don't know why, but when I run project the builder compiles CustomColorPickerViewController.swift only once. After first run, builder don't recompile this file again, that's why when I added my parameters for customise ViewController, it didn't affect on final result. For use new change I have to Clear Build Folder (Shift+Cmd+K) and Run compiler again. After that new changes affect on the project.

I didn't mention about that issue, but I think maybe it will be useful. When I use  DefaultColorPicker I could set "Selected Color", before open ViewController in this way:

        if let destinationColorPicker = segue.destination as? ColorPickerControllerProtocol {
            destinationColorPicker.delegate = self
            destinationColorPicker.selectedColor = UIColor.systemPink
            }

But it does not work with CustomColorPicker. For do that i had to create Segue and instance of CustomColorPicker class. I don't know whether my method is elegant but it works. Maybe @RastislavMirek could tell, what the best way to do that.
 override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        print("Prepare seque color picker")
        if let destinationColorPicker = segue.destination as? ColorPickerControllerProtocol {
            destinationColorPicker.delegate = self
            }

        if segue.identifier == "PresentColorPicker" {
            let destVC = segue.destination as! CustomColorPickerViewController
            destVC.selectedColor = sender as? UIColor ?? .white
            }
    }

And also, sometimes one issue appear when I try run project. What does it mean?


Encrypt sensitive information

Signed-off-by: chengdehao<EMAIL_ADDRESS>

Based on this CI result, I have a question. Whenever I modify a file in helm, do I have to zip it up? @zhu733756

The change looks good to me.
What do you think @zhu733756

The change looks good to me. What do you think @zhu733756

LGTM. We have discussed it. Can you also add helm e2e test in anthor pr @wenchajun


[SDK] Replace NSRange.toRange() with failable initialiser on Range

Fixes ABI FIXME #75

cc @phausler

Please make sure to get review from someone from Foundation for changes in the overlay.

Updated a comment on String.UTF16View
Sure, I'll make sure to request a review from one of you next time :). I just happened to notice that this ABI FIXME was implementable now.

pinging @phausler

This is an API change and would make swift-corelibs deviate from the Darwin versions

This is in the overlay, actually. I think we should consider it for post-Swift 4.

The ABI FIXME led me to believe this source-breaking change was always planned when the requisite compiler features were available. It's just about when we force users to change their code. If the design is settled, I'd advocate for getting the "definitive" API out there as soon as possible.

This pull request was opened 22 months ago.  Is this still worth keeping open?  There has been no movement here, and this PR cannot be merged as is into master.

The bulk of this has been subsumed by the new Range(_:in:) constructor.  I'm going to close this.  If there is any more movement or you would like to revisit this, please reopen this pull request and rebase it onto master @karwa.


Update for https://developer.okta.com/docs/reference/api/system-log/,…

… Events api will be deprecated

Thank you for your PR and sorry it took so long to get back to it. We have recently released a 1.x version of this SDK which completely updates the structure and build process for our SDK.
I believe our changes no longer require this PR to be included so we are going to close it. If you feel the new version does not resolve the issues you were seeing, prompting this PR, please let us know and we will be happy to re-investigate.


unable to import High resolution images into the current working project !

#IN_WINDOWS_ENVIRONMENT

Unclear what your issue is, please re-open with more details.

i can not import images of high resolutions it only allow to import images of low resolution!

Can you provide a sample image that is not working for you?


Updated link to method update (highlight)

In this page, for the link that redirect to the example code for the update method, it highlight the store method. Juste changed the code to select in the url ;)

Thanks!


NPM published version is different than github

On npm, the published version is 0.24.0. However, in this repo, the version in package.json (https://github.com/Zondax/ledger-blockstack/blob/main/js/package.json#L3) is 0.22.5. Why the difference in versions?

:link: zboto Link

The version mismatch was a typo when creating the js package release, which is done manually. it is now fixed and an updated version has been uploaded to npm.


Extra hostile checks, loot table support

If the attacker own the killed entity, or both are on the same team, the entity is not considered hostile.
Loot tables are supported with loottable attribute. Custom loot tables must be located in config/incontrol/loot_tables.

I'm sorry but I'm very busy and have tons of mods to take care of. So it is very easy to loose track of this.
Anyway there is still some problem. I think some files are missing in your PR because in ForgeEventHandlers you depend on things like:
             	LootContext.Builder builder = (new LootContext.Builder((WorldServer)event.getEntity().world))
             			.withLootedEntity(event.getEntity()).withDamageSource(event.getSource());

But that's not even present in the ForgeEventHandler that is in the main branch.
But to be honest. I'm also not sure why this would be needed and for your hostile check I would prefer that another rule was used


Connectcast plugin not working.

I'm getting the error below
[cli][info] Found matching plugin connectcast for URL http://connectcast.tv/
error: Unable to open URL: https://www.connectcast.tv/jwplayer/jwplayer.flash.swf (403 Client Error: Forbidden)
Edit
New error
Traceback (most recent call last):
File "", line 6, in
File "main.py", line 128, in
File "main__livestreamer.py", line 9, in
File "livestreamer_cli\main.py", line 886, in main
File "livestreamer_cli\main.py", line 471, in handle_url
File "livestreamer_cli\main.py", line 388, in fetch_streams
File "livestreamer\plugin\plugin.py", line 313, in get_streams
File "livestreamer\plugin\plugin.py", line 227, in streams
File "livestreamer\plugins\connectcast.py", line 22, in _get_streams
AttributeError: 'NoneType' object has no attribute 'group'

changed:  https://connectcast.tv/jwplayer/v5/player.swf    but error remain...

Is there a solution for this yet?

Not sure if this makes any difference, but I noticed when looking at a stream that connectcast appear to be pointing to a different jwplayer location where I don't get a 403 in my browser: http://connectcast.tv/jwplayer/v6.12/jwplayer.flash.swf

I can confirm this isn't fixed yet.


Return specific status code for azure function with input binding event grid trigger

What language does your question apply to? (e.g., C#, JavaScript, Java, All)
Python
Question
In my application I have the issue that a failing event grid triggered azure function is continually triggered because of the event grid retry policy.
As we can read in Azure Event Grid - Delivery And Retry, if the azure function fails with error code 500 the event grid continuously retries to deliver the event to the azure function.
In most cases this is fine, but in a specific case I would like to catch the specific exception and return the function with a status code 400, as this would stop the event grid from retrying to deliver the event.
Is this possible, or am I forced catch the exception and return the function normally, resulting in a status code of 200? I would prefer to mark this trigger as failing.
What I tried:
Add an HTTP output binding to my function.json:
{
  "scriptFile": "__init__.py",
  "bindings": [
    {
      "type": "eventGridTrigger",
      "name": "event",
      "direction": "in"
    },
    {
      "type": "http",
      "direction": "out",
      "name": "$return"
    }
  ]
}

However, when I return the azure function with
return func.HttpResponse(e, status_code=400)
the following casting exception is thrown later:
System.Private.CoreLib: Exception while executing function: Functions.ImageUploadTrigger. Microsoft.Azure.WebJobs.Script: Unable to cast object of type 'Newtonsoft.Json.Linq.JObject' to type 'Microsoft.AspNetCore.Http.HttpRequest'.
It seems an "in" "eventGridTrigger" is not compatible with an "http" "out" binding.

Hi, currently it is not supported to return a different status code with the event grid binding.

I have experienced the same behaviour for an EventHub input binding while trying to output specfic status codes as http output binding - also tried multiple output formats.
function.json:

{
    "scriptFile": "__init__.py",
    "bindings": [
        {
            "type": "eventHubTrigger",
            "name": "events",
            "direction": "in",
            "eventHubName": "%EVENT_HUB_NAME%",
            "cardinality": "many",
            "connection": "EVENT_HUB_CONNECTION_STRING",
            "consumerGroup": "$Default",
            "dataType": "binary"
          },
          {
            "type": "http",
            "direction": "out",
            "name": "$return"
        }
    ]
}

throwing  Unable to cast object of type 'System.Byte[][]' to type 'Microsoft.AspNetCore.Http.HttpRequest'.

Closing as this is not supported currently - but will keep in our backlog for the future


XLA error when running on GPU

Description
On version 0.4.3 I receive the following error when I run any jitted function on the GPU.
2023-02-15 05:44:23.038563: E external/org_tensorflow/tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:429] Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
2023-02-15 05:44:23.039220: E external/org_tensorflow/tensorflow/compiler/xla/status_macros.cc:57] INTERNAL: RET_CHECK failure (external/org_tensorflow/tensorflow/compiler/xla/service/gpu/gpu_compiler.cc:626) dnn != nullptr
*** Begin stack trace ***

The problem goes away with jaxlib 0.4.2.
Ubuntu 22.04, CUDA 11.8, CuDNN 8.6
GPU: A6000 (I have dual-GPU config, but I only utilize one of them when using JAX)
What jax/jaxlib version are you using?
jax 0.4.3/jaxlib 0.4.3
Which accelerator(s) are you using?
GPU
Additional system info
Python 3.10
NVIDIA GPU info
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 520.61.05    Driver Version: 520.61.05    CUDA Version: 11.8     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA RTX A6000    Off  | 00000000:41:00.0 Off |                  Off |
| 30%   45C    P0    80W / 300W |      0MiB / 49140MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   1  NVIDIA RTX A4000    Off  | 00000000:61:00.0 Off |                  Off |
| 34%   56C    P0    38W / 140W |      0MiB / 16376MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

How did you install jaxlib and cudnn?
You could have a mismatch of version. Maybe you use a jaxlib that expect a different cudnn version?

I would have expected CuDNN 8.6 to work. Can you try a newer CuDNN, e.g., 8.8?

OK this is fixed with CuDNN 8.8 👍 Not sure if there was an issue with my cuDNN installation, so maybe 8.6 also works if I reinstall it. I may try it a bit later.

@mehdiataei is the issue fixed so we can close the bug?


'some-value-with-any-type'

smd['some-key'] = 'some-value-with-any-type'

This value, if it is a dictionary. Then it won't work.
We run the following code:
smd = SharedMemoryDict(name='my_smd', size=20480)
smd['key'] = {}
smd['key']['key2'] = 'some-value'

We hope to get the following results:
{'key': {'key2': 'some-value'}}

But we can only get:
{'key': {}}

"Key2" and its value will not appear in the result.

Please help. We need the value of a certain "KEY" to be a dictionary.

The problem is that all data is just pickled and written into /dev/shm/... on each modification of the shared-dictionary. But if the shared-dictionary contains items, which are mutable the shared-dict is not informed about a change and cannot pickle it again.
But could we hold references to some other shared-dictionaries (e.g. by specifying a primitive string type which points to the shared-memory-name and on unpickling it creates a new instance of it again? (ideally the same for lists).
Or that any dict put into the shared-memory-object is modified so that it informs the parent object on change?
E.g.:
class Dict(dict):
    def __init__(self, parent, *args, **kwargs):
        self.parent = parent
        dict.__init__(self, *args, **kwargs)
    def __setitem__(self, key, value):
        dict.__setitem__(key, value)
        self.parent.pickle_again()

class SharedMemoryDict:
    def __setitem__(self, key, value):
        if isinstance(value, dict):
            value.__class__ = Dict
            value.parent = self
        … rest of the logic …

@wskxjtzq I created a nested dictionary implementation using JSON for serialization.
This works quite well for me.
https://github.com/spaceone/shared-memory-dict/blob/json-nested-dictionary-serializer/shared_memory_dict/nested_json_serializer.py

@cassiobotaro Can you reopen this issue as the README has not been adjusted yet.


"'hlrrwifi' is not a valid Protocol" error after last update

Did you read the instructions?

[X] I have read the README, including the advanced debugging section.

The problem
Hello,
my spx-wfg01 - HitachiAirToAirHeatPump gateway integration stop working after last update.
Integration is Hitachi Hi Kumo (Europe).
Everythink was working before without pb.
Error in log : ValueError: 'hlrrwifi' is not a valid Protocol
And : TypeError: init() got an unexpected keyword argument 'min_value'
Thank's for the help.
What version of this integration (ha-tahoma) has the issue?
2.12.0
What version of Home Assistant Core has the issue?
2021.12.10
Which gateway / hub do you use?
Hitachi Hi Kumo (Europe)
Device model
spx-wfg01 - HitachiAirToAirHeatPump
Home Assistant log
Logs
Cette erreur provient d'une intégration personnalisée

Logger: custom_components.tahoma
Source: custom_components/tahoma/__init__.py:64
Integration: Overkiz (by Somfy)
First occurred: 07:55:20 (1 occurrences)
Last logged: 07:55:20

'hlrrwifi' is not a valid Protocol
Traceback (most recent call last):
  File "/config/custom_components/tahoma/__init__.py", line 64, in async_setup_entry
    setup, scenarios = await asyncio.gather(*tasks)
  File "/usr/local/lib/python3.9/site-packages/backoff/_async.py", line 133, in retry
    ret = await target(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/pyoverkiz/client.py", line 358, in get_setup
    setup = Setup(**humps.decamelize(response))
  File "/usr/local/lib/python3.9/site-packages/pyoverkiz/models.py", line 63, in __init__
    self.devices = [Device(**d) for d in devices]
  File "/usr/local/lib/python3.9/site-packages/pyoverkiz/models.py", line 63, in <listcomp>
    self.devices = [Device(**d) for d in devices]
  File "/usr/local/lib/python3.9/site-packages/pyoverkiz/models.py", line 185, in __init__
    self.protocol = Protocol(self.device_url.split(":")[0])
  File "/usr/local/lib/python3.9/enum.py", line 384, in __call__
    return cls.__new__(cls, value)
  File "/usr/local/lib/python3.9/enum.py", line 702, in __new__
    raise ve_exc
ValueError: 'hlrrwifi' is not a valid Protocol

Additional information
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup
result = await component.async_setup_entry(hass, self)  # type: ignore
File "/usr/src/homeassistant/homeassistant/components/number/init.py", line 81, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 147, in async_setup_entry
platform = await async_prepare_setup_platform(
File "/usr/src/homeassistant/homeassistant/setup.py", line 309, in async_prepare_setup_platform
platform = integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 530, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 535, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/config/custom_components/tahoma/number.py", line 22, in
OverkizNumberDescription(
TypeError: init() got an unexpected keyword argument 'min_value'

Hi, sorry for this. I’ve implemented a fix for the protocol issue in our library: https://github.com/iMicknl/python-overkiz-api/pull/341/files
About the min_value, it’s related to a bugfix we merged too soon, it was expected for the next HA release. Meanwhile, you can rollback to the previous version.

OK thank's.
It back to work after downgrade to v2.10.2.
I'm waiting the next release ;-)

Fixed in https://github.com/iMicknl/ha-tahoma/pull/732. We will release a new update soon, or update to latest master.


Must be the wrong place to do so!

Hello,
Couldn't find a way to contact you,
But I can't seem to find a way to "follow a specific userId" ? is this possible through Vine API? i can't seem to find a decent documentation regarding anything thats related to that.

Potentially, you could rotate through the pages of a users timeline and filter out other users. Since the API is undocumented, there may or may not be a better way to do this.
You can get a users timeline: VineClient.UserTimeline
https://github.com/stuisme/VineSharp/blob/master/VineSharp/VineClient.cs#L171
Unlikely, but you could try different urls like:
https://api.vineapp.com/users/906264212790190080/posts
-or-
https://api.vineapp.com/posts?userId=xxx (or user=xxx)
(I have no clue if these work)


Julia v1.0 Build failing with CSV 0.10

With the compatibility change to CSV = 0.10, the check for Julia v1.0 is failing. CSV might not be required, to verify later.

Removed Julia v1.0 from actions; might want to revisit.


update third_party/xxhash

update third_party/xxhash to reflect the fix of xxhash issue#590, mentioned in PR#27609

@drfloob
@dennycd

@donnadionne xxhash was tracked as a subtree originally, but we manually deleted a lot of unnecessary files. Is there an update process? I'm not sure if git subtree pull ... will re-acquire those deleted files.

Also, thanks @HannahShiSFB for the fix! How did you generate the patch?
@donnadionne git subtree pull appears to be broken. I think we could instead do something like adding the xxhash remote, pulling to a branch, then squash-merging to master. But whatever it is, we should document the process if it isn't already.

I remember having some trouble importing xxhash properly; it was originally attempted to be added as header only, but then we ended up adding it as a subtree but pretty much only using the xxhash.h file.  How is git subtree pull broken?  I can try it out and document any workaround may be needed.
Including @nicolasnoble in this to see if he has good solutions

For this PR, i triggered adhoc 👍
https://fusion2.corp.google.com/invocations/720c867c-a687-441e-8559-f03a57ea7d82/targets
let's make sure that is clean

Here is the result to adhoc: https://fusion2.corp.google.com/invocations/7da31b89-4818-45d6-85ef-ae45939808d1/details

I followed the instruction in
https://github.com/grpc/grpc/tree/master/third_party#updating-third_partyxxhash
to update the xxhash.


Hercules CI updates

Motivation for this change

Unbreak the build
Update hercules-ci-agent to 0.8.0
First release of the hci command to run effects locally, manipulate state files and manage secrets

I've included the hackage updates, because iirc that's the correct workflow now.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build hci

Rebased to avoid the extra hackage2nix run commit.


feat: implement FileIO on top of R2

failing build, need fixes at cloudflare/src/file.rs
lint fixes
fixed fs for cloudflare r2
style fixes

Summary:
Briefly describe the changes made in this PR.
Issue Reference(s):
Fixes #... (Replace "..." with the issue number)
Build & Testing:

[ ] I ran cargo test successfully.
[ ] I have run ./lint.sh --mode=fix to fix all linting issues raised by ./lint.sh --mode=check.

Checklist:

[ ] I have added relevant unit & integration tests.
[ ] I have updated the documentation accordingly.
[ ] I have performed a self-review of my code.
[ ] PR follows the naming convention of <type>(<optional scope>): <title>

should I close this :p

closing in favour of #920


feat: defer impersonation user assignment

Fix was successfully tested with this change. Now the question remains if the change is breaking. IMHO it is not but we can still talk about that.
FYI: i think the e2e is a bit broken. I will also try to fix it :)
closes #245

@prometherion any idea why the e2e is failinf? Should it even work .. ? :D

The current e2e on bats is totally flaky and should be totally rewritten to Go.
May I ask you to test manually if everything's fine and no privilege escalation is possible?

Basic impersonation does not work:
╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:12:35
╰─⠠⠵ KUBECONFIG=alice.kubeconfig kubectl get ns
NAME       STATUS   AGE
oil-dev    Active   1s
oil-test   Active   4s
╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:12:36
╰─⠠⠵ KUBECONFIG=alice.kubeconfig kubectl get ns --as bob
Error from server (Forbidden): cannot retrieve user and group: the current user alice cannot impersonate the user bob
╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:12:40
╰─⠠⠵ KUBECONFIG=alice.kubeconfig kubectl get ns --as bob --as some-group
Error from server (Forbidden): cannot retrieve user and group: the current user alice cannot impersonate the user some-group
╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:12:50
╰─⠠⠵
╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:13:02
╰─⠠⠵ KUBECONFIG=alice.kubeconfig kubectl get ns --as system:serviceaccount:capsule-system:default --as some-group
Error from server (Forbidden): cannot retrieve user and group: the current user alice cannot impersonate the user some-group

Allowed impersonation RBAC:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: alice-impersonator
rules:
- apiGroups: [""]
  resources: ["users", "groups"]
  resourceNames: ["alice"]
  verbs: ["impersonate"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: alice-impersonator
subjects:
# You can specify more than one "subject"
- kind: User
  name: alice # "name" is case sensitive
  apiGroup: rbac.authorization.k8s.io
roleRef:
  # "roleRef" specifies the binding to a Role / ClusterRole
  kind: ClusterRole #this must be Role or ClusterRole
  name: alice-impersonator # this must match the name of the Role or ClusterRole you wish to bind to
  apiGroup: rbac.authorization.k8s.io

Tried some impersonations:
╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:23:04
╰─⠠⠵ KUBECONFIG=alice.kubeconfig kubectl get ns --as alice --as alice --as-group allowed
NAME       STATUS   AGE
oil-dev    Active   10m
oil-test   Active   10m

╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:23:05
╰─⠠⠵ KUBECONFIG=alice.kubeconfig kubectl get ns --as alice --as alice
NAME       STATUS   AGE
oil-dev    Active   10m
oil-test   Active   10m

╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:23:10
╰─⠠⠵ KUBECONFIG=alice.kubeconfig kubectl get ns --as alice --as bob
Error from server (Forbidden): cannot retrieve user and group: the current user alice cannot impersonate the user bob

╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:23:13
╰─⠠⠵ KUBECONFIG=alice.kubeconfig kubectl get ns --as alice --as alice --as-group allowed
NAME       STATUS   AGE
oil-dev    Active   10m
oil-test   Active   10m

╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:23:20
╰─⠠⠵ KUBECONFIG=alice.kubeconfig kubectl get ns --as alice --as alice --as-group alice
NAME       STATUS   AGE
oil-dev    Active   10m
oil-test   Active   10m

╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:23:23
╰─⠠⠵ KUBECONFIG=alice.kubeconfig kubectl get ns --as alice --as alice --as-group some-group
Error from server (Forbidden): cannot retrieve user and group: the current user alice cannot impersonate the group some-group

╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:23:30
╰─⠠⠵ KUBECONFIG=alice.kubeconfig kubectl get ns --as alice --as alice --as-group system:masters
Error from server (Forbidden): cannot retrieve user and group: the current user alice cannot impersonate the group system:masters

╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:24:09
╰─⠠⠵ KUBECONFIG=alice.kubeconfig kubectl get ns --as alice --as allowed --as-group system:masters
Error from server (Forbidden): cannot retrieve user and group: the current user alice cannot impersonate the group system:masters

Via cURL:
╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:29:32
╰─⠠⠵ curl  https://localhost:9010/api/v1/namespaces --cert alice-oil.crt --key alice-oil.key -H "Impersonate-User: bob"
{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"cannot retrieve user and group: the current user alice cannot impersonate the user bob","reason":"Forbidden","code":403}%

╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:29:34
╰─⠠⠵ curl  https://localhost:9010/api/v1/namespaces --cert alice-oil.crt --key alice-oil.key -H "Impersonate-User: alice" -H "Impersonate-Group: system:masters"
{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"cannot retrieve user and group: the current user alice cannot impersonate the group system:masters","reason":"Forbidden","code":403}

╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:30:03
╰─⠠⠵ curl  https://localhost:9010/api/v1/namespaces --cert alice-oil.crt --key alice-oil.key -H "Impersonate-User: alice" -H "Impersonate-Group: some-group"
{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"cannot retrieve user and group: the current user alice cannot impersonate the group some-group","reason":"Forbidden","code":403}%

╭─dev at dev-olb in ~/testing/capsule-proxy/hack on issue/245✘✘✘ 23-02-10 - 14:30:16
╰─⠠⠵ curl  https://localhost:9010/api/v1/namespaces --cert alice-oil.crt --key alice-oil.key -H "Impersonate-User: alice" -H "Impersonate-Group: allowed"
-> Worked

To me it seems good. @prometherion anything else you would test? Should i directly bump to 0.3.3?

Astonishing work, @oliverbaehler! 👏🏻
We're already referring to the issue that is assigned to v0.3.3.


TIFF Writer to print debug information with logging

https://github.com/TomographicImaging/CIL/blob/master/Wrappers/Python/cil/io/TIFF.py#L70-L72
remove the prints and write more sensible information

Changed print outputs, but should convert to use logging and give more information


Backport sha256 optimizations (sse41, avx2, shani)

This PR backports all optimizations, improvements and fixes for sha256 related code.
It also makes using assembly implementations the default (--enable-experimental-asm is now --disable-asm and thus ASM is enabled by default).
To verify that I didn't miss any backports, you can run git checkout bitcoin/master -- src/crypto/sha256* (assuming you have bitcoin as remote for the bitcoin repo) and then run a diff.
I will later benchmark inital sync and tests.

Tests got a little bit faster on Travis:
develop branch: Runtime: 827 s
This branch: Runtime: 754 s
Looking forward to see the numbers in combination with #3132 :)


⚠ PrivateHD has degraded performance

In f8cd0fe, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 2215 ms

Resolved: PrivateHD performance has improved in e45259e.


Parameters for fine-tuning models with CPU backend?

I'm exploring fine-tuning of the pre-trained models. To start with, I'm just trying to run the fine-tuning tutorial using the provided AMI corpus, but with a CPU backend. However, I'm unable to get training to go past the first iteration of epoch 1. As soon as it starts, training aborts with the following error: FinetuneCTC.cpp:613] Loss has NaN values.
I0330 17:32:15.987434  9086 FinetuneCTC.cpp:276] [Network Params: 70498735]
I0330 17:32:15.987478  9086 FinetuneCTC.cpp:281] [Criterion] ConnectionistTemporalClassificationCriterion
I0330 17:32:16.038491  9086 FinetuneCTC.cpp:285] [Network Optimizer] SGD (momentum=0.8)
I0330 17:32:16.041868  9086 FinetuneCTC.cpp:538] Shuffling trainset
I0330 17:32:16.042310  9086 FinetuneCTC.cpp:545] Epoch 1 started!
F0330 17:32:24.966100  9086 FinetuneCTC.cpp:613] Loss has NaN values. Samples - ES2008d_H00_FEE029_2232.12_2233.38,ES2015d_H03_FEE060_1196.33_1197.58,ES2005c_H03_FEE019_2233.32_2234.57,TS3009b_H01_MTD035UID_1164.82_1166.04
*** Check failure stack trace: ***
    @     0x7fef22a6e0cd  google::LogMessage::Fail()
    @     0x7fef22a6ff33  google::LogMessage::SendToLog()
    @     0x7fef22a6dc28  google::LogMessage::Flush()
    @     0x7fef22a70999  google::LogMessageFatal::~LogMessageFatal()
    @     0x5616c6055b13  (unknown)
    @     0x7fef124fabf7  __libc_start_main
    @     0x5616c60d77ca  (unknown)
[ff84fdd979b8:09089] *** Process received signal ***
[ff84fdd979b8:09089] Signal: Segmentation fault (11)
[ff84fdd979b8:09089] Signal code: Address not mapped (1)
[ff84fdd979b8:09089] Failing at address: 0x7fe0c7a7920d
[ff84fdd979b8:09089] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7fe0ca520980]
[ff84fdd979b8:09089] [ 1] /lib/x86_64-linux-gnu/libc.so.6(getenv+0xa5)[0x7fe0ca15f8a5]
[ff84fdd979b8:09089] [ 2] /usr/lib/x86_64-linux-gnu/libtcmalloc.so.4(_ZN13TCMallocGuardD1Ev+0x34)[0x7fe0ca9cae44]
[ff84fdd979b8:09089] [ 3] /lib/x86_64-linux-gnu/libc.so.6(__cxa_finalize+0xf5)[0x7fe0ca160735]
[ff84fdd979b8:09089] [ 4] /usr/lib/x86_64-linux-gnu/libtcmalloc.so.4(+0x13cb3)[0x7fe0ca9c8cb3]
[ff84fdd979b8:09089] *** End of error message ***

The behavior is identical in the Colab, as well as on my computer (Ubuntu 16.04 x86-64). It also remains the same irrespective of whether the I use the provided dataset (AMI corpus) or try my own.
It seems like the training parameters in the tutorial are optimized for the GPU back-end, but are there any pointers for how to run fine-tuning with the CPU back-end? I assume it is supported and expected to work on the CPU. Any help you could provide would be very useful.

@gmurthy — if you built Flashlight from source, can you run make test in your Flashlight build directory and ensure all of your tests are passing with the CPU backend?

I am also getting the error, while running using CPU backend.
Error
fl_asr_tutorial_finetune_ctc model.bin --datadir ami_limited_supervision --train train_10min_0.lst,train_10min_1.lst,train_10min_2.lst,train_10min_3.lst,train_10min_4.lst,train_10min_5.lst,train_9hr.lst --valid dev:dev.lst --arch arch.txt --tokens tokens.txt --lexicon lexicon.txt --rundir checkpoint --lr 0.025 --netoptim sgd --momentum 0.8 --reportiters 1000 --lr_decay 100 --lr_decay_step 50 --iter 25000 --batchsize 4 --warmup 0
Initialized Gloo successfully!
F20211229 17:59:02.459493 19752 FinetuneCTC.cpp:615] Loss has NaN values. Samples - ES2014b_H02_FEE055_977.04_980.75,ES2013c_H00_FEE049_2200.73_2204.44,ES2015b_H02_FEE059_583.73_587.44,ES2008d_H01_FEE030_1631.49_1635.2
*** Check failure stack trace: ***
@     0x7f03f48b8e0a  google::LogMessage::Fail()
@     0x7f03f48b8d4c  google::LogMessage::SendToLog()
@     0x7f03f48b85dc  google::LogMessage::Flush()
@     0x7f03f48bc276  google::LogMessageFatal::~LogMessageFatal()
@     0x55f23f8067c8  _ZZ4mainENKUlSt10shared_ptrIN2fl6ModuleEES_INS0_3app3asr17SequenceCriterionEES_INS0_7DatasetEES_INS0_19FirstOrderOptimizerEEdlE3_clES2_S6_S8_SA_dl
@     0x55f23f7688a5  main
@     0x7f03e8c3d0b3  __libc_start_main
@     0x55f23f7ff0ee  _start
@              (nil)  (unknown)
Aborted
Inference/tests are working
fl_asr_test --am model.bin --datadir '' --emission_dir '' --uselexicon false
--test ami_limited_supervision/test.lst --tokens tokens.txt --lexicon lexicon.txt --show
works fine.
failing make tests
Out of 409 only the following three tests do not pass in make test (Tried  various iterations of installing the dependencies right to make all tests pass):
The following tests FAILED:
357 - Seq2SeqTest.Seq2SeqBeamSearchViterbi (Failed)
358 - Seq2SeqTest.Seq2SeqMedianWindow (Failed)
359 - Seq2SeqTest.Seq2SeqStepWindow (Failed)

Getting the same symptoms on CPU only. Any updates or ideas on this?


Add Maryville University to the list of domains

Official Website
https://www.maryville.edu/
Long-term Courses

Computer Science
Web and Game Design

Domain Recognized
Recognized here

@vanessasickles Thank you for your patience while waiting for a review and processing your request. Pull request merged. Please start applying for JetBrains educational subscription at https://www.jetbrains.com/shop/eform/students in an hour, to allow the changes to propagate through JetBrains systems.


Multiple LDAP does not work as a backup

Hello,
I'm trying to use multiple LDAP as follows:
authentication: ldap
  admin-groups: ............"
  container-wait-time: 600000
  ldap:
  -  url: first_ldap_url
     user-search-base: OU=Users
     user-search-filter: (sAMAccountName={0})
     group-search-base: OU=Groups
     group-search-filter: (member={0})
     manager-dn: ......................
     manager-password: "........................"
  -  url: second_ldap_url
     user-search-base:
     user-search-filter: (sAMAccountName={0})
     group-search-base: OU=Groups
     group-search-filter: (member={0})
     manager-dn: ..........................................
     manager-password: "..................."

I was expecting that when the first LDAP url is down, the second will be user to authenticate the users. Apparently, it's only using the first one and there's no backup for the second one. Meaning, if the first one is down (while the other one works), the users will still not be able to authenticate (although the second LDAP works).
Unfortunately, the documentation is not clear in that subject. Could you please update the docs in case someone might also think that that's an LDAP backup system.
Thanks in advance.

Hi, you are right, if one the servers fail to respond, the login attempt will fail as well. I'll keep this issue open as a feature request to improve this.


bug: refactoring.nvim selector issue when using Fzf-lua

Did you check docs and existing issues?

[X] I have read all the LazyVim docs
[X] I have searched the existing issues of LazyVim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
0.10
Operating system/version
Arch Linux
Describe the bug
E5108: Error executing lua: ...azyVim/lua/lazyvim/plugins/extras/editor/refactoring.lua:14: module 'telescope'   ' not found:
When you visually select and use <leader>rs for Refactor it gives this error when using with Fzf-lua
Steps To Reproduce

Visual Select
press <leader>rs

Expected Behavior
Should have alternative to work with Fzf-lua.
Repro
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  { "LazyVim/LazyVim", import = "lazyvim.plugins" },
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

@Redoxahmii
I tried something, but not sure how well it works and since I don't use refactoring.nvim, I thought maybe you'd give it a go. Do the following
-- ~/.config/nvim/lua/plugins/core.lua
return {
  {
    "dpetka2001/LazyVim",
    branch = "fix/refactoring-pick",
  },
}

Then open Lazy UI by pressing <leader>l and then press C (check for updates) and U (do the updates). Then restart Neovim and test out the behavior of refactoring.nvim with fzf-lua.
If there's something not working, please do let me know so I don't do a PR and leave it to the maintainer to come up with a proper fix.

Yes it seems to be working now.


Investigate devnet parachain not producing blocks

The following configuration in capi.config.ts does not produce blocks in westmint
Reproduced in OSX
rococoDev: {
      binary: polkadot,
      chain: "rococo-local",
      parachains: {
        statemine: {
          id: 1000,
          binary: polkadotParachain,
          chain: "statemine-local",
        },
        contracts: {
          id: 2000,
          binary: polkadotParachain,
          chain: "contracts-rococo-local",
        },
        westmint: {
          id: 3000,
          binary: polkadotParachain,
          chain: "westmint-local",
        },
      },
    },

@tjjfvi @harrysolovay the issue is that we need at least 1 validator per parachain.
The 2nd issue is that only alice and bob have well known keys.
I'll investigate how to update the chain spec to include more validators following https://docs.substrate.io/tutorials/build-a-blockchain/authorize-specific-nodes/

The 2nd issue is that only alice and bob have well known keys.

Can you clarify what this means?

@tjjfvi only alice and bob are authorized to produce blocks.
To add more authorized validate the genesis in the chain spec needs to be updated.


Custom Component example in readme incorrect

Description
Incorrect custom component example in readme. Should not instantiate custom component with var x = new PixiComponent(...), just do var x = PixiComponent(...) otherwise TypeError thrown by react.
Steps to reproduce

Make component eg. var CustomComponent = new PixiComponent('MyComponent', {})

Additional info

@inlet/react-pixi version: 0.1.0
React version: 16.4.1
ReactDOM version: 16.4.1
PIXI version: 4.8.1

Thanks for pointing out! If you'd like you can create a PR for this?

Done! ✨


Star Trek Resurgence: striped shadows in several areas

Star Trek Resurgence (UE4, DX11) has weird striped shadows in several areas, similar but probably not related to the depth bias issues observed in some d3d9 games that's been fixed a few weeks ago.
Software information
Star Trek Resurgence v1.05 from EGS, the game has no graphical settings except resolution.
System information

GPU: AMD 6900XT
Driver: Mesa, latest master (23.3), VK_EXT_depth_bias_control is supported
Wine version: Wine-GE-Proton8-12
DXVK version: latest master

Apitrace file(s)

Apitrace file
Renderdoc trace

Screenshots
Notice the striped pattern on his face and uniform

Looking at the Renderdoc trace, from what I can tell, the artifact appears around 2930, where it takes in input seemingly valid data (depth and normal) and outputs this striped mess.

Just to make sure, did you check that it doesn't look like this on windows d3d11 as well?

I don't have windows installed at the moment but I'll try it in the next few hours just to be sure.
Looking at this video though, I don't see any striping: https://youtu.be/FHPt-pvrWEM?t=1116

Retested on windows, same hardware.
There is a faint striping if you look closely but not as strong as my previous screenshot.

Probably depth bias stuff which is already fixed but needs driver support?


zipAll not working as expected ?

RxJS version: 5.0.0-beta.7
Code to reproduce: http://jsbin.com/milute/edit?js,console
Expected behavior: at the subscribe callback i expected to see the length of array that was made by zipAll
Actual behavior: something with ZipBufferIterator which i don't understand
Additional information: what's wrong with my or yours code ?
Thanks

for better explanation what I need to do :
    Observable
      .from(this.resourceStaffs)
      .map((resourceStaff: ResourceStaff, index: number) => this._resourceService.saveResourceStaff(resourceStaff, index))
      .zipAll()
      .subscribe((objectIndices: Array<ObjectIndex<ResourceStaff>>) => {
        debugger;
     ...

I have array of objects and I need to save them (using ng2 http) one-by-one, wait for all results and then zip it into one result (array of objectIndices).
Can anyone help me out please ? Thanks in advance.

EXCEPTION: TypeError: unknown type returned
   EXCEPTION: TypeError: unknown type returned
   angular2.dev.js (25644,9)
   STACKTRACE:
   angular2.dev.js (25644,9)
   TypeError: unknown type returned
   at SafeSubscriber.prototype.error (https://localhost:44300/app/libs/rx.js:10829:11)
   at Subscriber.prototype._error (https://localhost:44300/app/libs/rx.js:10769:7)
   at Subscriber.prototype.error (https://localhost:44300/app/libs/rx.js:10749:9)
   at OuterSubscriber.prototype.notifyError (https://localhost:44300/app/libs/rx.js:805:7)
   at InnerSubscriber.prototype._error (https://localhost:44300/app/libs/rx.js:891:7)
   at Subscriber.prototype.error (https://localhost:44300/app/libs/rx.js:10749:9)
   at subscribeToResult (https://localhost:44300/app/libs/rx.js:8257:7)
   at ZipBufferIterator.prototype.subscribe (https://localhost:44300/app/libs/rx.js:2505:7)
   at ZipSubscriber.prototype._complete (https://localhost:44300/app/libs/rx.js:2358:11)
   at Subscriber.prototype.complete (https://localhost:44300/app/libs/rx.js:10755:9)
  -------------   Elapsed: 166 ms; At: Mon May 02 2016 13:10:11 GMT+0200 (Central Europe Daylight Time)   -------------
   at Zone[longStackTraceZoneSpec].onScheduleTask (https://localhost:44300/app/libs/angular2-polyfills.js:1452:14)
   at ZoneDelegate.prototype.scheduleTask (https://localhost:44300/app/libs/angular2-polyfills.js:359:22)
   at Zone.prototype.scheduleEventTask (https://localhost:44300/app/libs/angular2-polyfills.js:302:14)
   at zoneAwareAddEventListener (https://localhost:44300/app/libs/angular2-polyfills.js:915:6)
   at addEventListener (Function code:1:36)
   at Anonymous function (https://localhost:44300/app/libs/http.dev.js:693:9)
   at Observable.prototype.subscribe (https://localhost:44300/app/libs/rx.js:11218:7)
   at Observable.prototype._subscribe (https://localhost:44300/app/libs/rx.js:11255:7)
   angular2.dev.js (25644,9)

SCRIPT5022: Exception thrown and not caught
rx.js (10858,9)

In the JSBin, you're trying to zip together POJO objects. Basically you're calling it on an observable of objects. zipAll should only be called on a an observable of observables, promises, iterables, etc.

I have array of objects and I need to save them (using ng2 http) one-by-one, wait for all results and then zip it into one result (array of objectIndices).

Presuming that this.resourceStaffs is an array, and this._resourceService.saveResourceStaff() returns a Promise<ObjectIndex<ResourceStaff>> or Observable<ObjectIndex<ResourceStaff>>, this code you provided should work:
Observable
      .from(this.resourceStaffs)
      .map((resourceStaff: ResourceStaff, index: number) => this._resourceService.saveResourceStaff(resourceStaff, index))
      .zipAll()
      .subscribe((objectIndices: Array<ObjectIndex<ResourceStaff>>) => {
        debugger;
       });

with the second example from the previous comment i get this exception :

It sounds like saveResourceStaff is returning something that isn't observable, promise or iterable.
Hopefully you found my answers helpful, @virtualvoid. I'm going to close this issue for now, as I don't see a bug in zipAll or combineAll, but feel free to reopen if you can provide a complete example we can test against. (The JSBin you provided was misusing the operator).

Thanks for information, however I still think there's something weird.
I've created this repository ng2rxjs-sample1 because i can't do it well with jsbin.
Let's just say I wanted to query github repositories for more than 1 user (two in this sample) and I want to get the results in one subscribe call for all of the calls.
Now take a look at this line : https://github.com/virtualvoid/ng2rxjs-sample1/blob/master/app/app.ts#L37
I expected that the value type after calling zipAll will be two dimensional array, like .subscribe((values: Repository[][]) => { and not .subscribe((values: Observable<Repository[]>[]) => { like it's now.
Or maybe I'm missing something here. Can you please take a look at that repo and point me to the right direction ? Thanks !

Oh this is funny actually ! I think there's something wrong with the TypeScript typings for RxJS because if you look at the transpiled code of my app, and points debugger on that incriminating line the results are actually two dimensional array :

Unfortunately the typings can only take us so far.  In the case of combineAll and zipAll there is a raw limitation that we haven't found a solid work around for.  Basically from a typings perspective, we only have T, which in your case is Observable<Something>.  We have no way of extracting Something out to produce Observable<Something[][]>, the two options we have is to assume T, and do Observable<Observable<Something>[]> or manually specify it.
It may be that the definition (): Observable<T[]>; can never really work from a typescript perspective, so perhaps we should remove it.
In your specific case, once #1640 lands, you will be able to do Observable.zip(userNames.map(userName => this._repositoryService.getRepositories(userName))). Which will have similar behaviors.

@david-driscoll sounds like a plan, thanks for your reply.


console warnings

Warning: Unknown props items, deletingInterval, emptyPause, pause, typingInterval on  tag. Remove these props from the element.
I'm using the minimal setup:
import ReactRotatingText from 'react-rotating-text';
<ReactRotatingText items={['first', 'second', 'third']} />
versions:
"react": "15.4.2",
"react-dom": "15.4.2",
"react-rotating-text": "^1.1.2",

Any idea?

I just published a new version with the fix, thanks for reporting this. Try to npm install again to get v1.1.3 and let me know if this fixes the issue.

Thanks,
Issue solved.


Improve test suite

Current tests are far too manual; I should be able to change the source code, and test and see if it broke. I think this is partly due to the fact that your module bundles disk operations in its main core, rather than its CLI wrapper where it should be.

Yes, it is something I'd like to improve when we have time. Thanks for the advice 😀

Link Issue #15


is this the pytorch-version of gnn?

Hi, I cannot find other way to contact you so I put up this issue. I was about to write a gnn of pytorch version when I get this. In the code I find the class EnetGnn. I wonder is this class the complete pytorch version of gnn at https://github.com/xjqicuhk/3DGNN ? I would like to do something with gnn, and I will appreciate it if your code can help.

sorry, replace 'gnn' with '3dgnn'

Yes, this is pytorch version https://github.com/xjqicuhk/3DGNN , if you have any question we can discuss together, I would like to do something with 3dgnn, too :)


service "cert-manager-webhook" not found

Hello,
I have a k3s cluster (v1.18.6) using cert-manager 0.15 with Let's encrypt for Rancher and Ingress. Everything was OK since 3 days, where i suddenly begin to have dial error like this :
20/08/19 05:18:36 [ERROR] Failed to connect to peer wss://<IP_ADDRESS>/v3/connect [local ID=<IP_ADDRESS>]: dial tcp <IP_ADDRESS>:443: i/o timeout 2020/08/19 05:18:37 [ERROR] Failed to connect to peer wss://<IP_ADDRESS>/v3/connect [local ID=<IP_ADDRESS>]: dial tcp <IP_ADDRESS>:443: i/o timeout
I manage to fix this by cleaning iptables rules then restart k3s. But i still i have a problem, now i have this message :
Error from server: conversion webhook for cert-manager.io/v1alpha2, Kind=Issuer failed: Post https://cert-manager-webhook.cert-manager.svc:443/convert?timeout=30s: service "cert-manager-webhook" not found
The pods are running :
kubectl get all -n cert-manager
NAME                                           READY   STATUS    RESTARTS   AGE
pod/cert-manager-66bbb47c56-j72kc              1/1     Running   0          77m
pod/cert-manager-cainjector-5579468649-rrrjq   1/1     Running   0          76m
pod/cert-manager-webhook-746cf468-9d7wt        1/1     Running   0          76m

NAME                                      READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/cert-manager              1/1     1            1           34d
deployment.apps/cert-manager-cainjector   1/1     1            1           34d
deployment.apps/cert-manager-webhook      1/1     1            1           34d

NAME                                                 DESIRED   CURRENT   READY   AGE
replicaset.apps/cert-manager-66bbb47c56              1         1         1       34d
replicaset.apps/cert-manager-cainjector-5579468649   1         1         1       34d
replicaset.apps/cert-manager-webhook-746cf468        1         1         1       34d

But the service is not up

kubectl get services -n cert-manager
No resources found in cert-manager namespace.

Where should i look to fix this ?
Thanks a lot

Update :
After upgrading to 0.16.1 and delete all CRD, it's work now but i have a new error :
 dial tcp <IP_ADDRESS>:443: connect: connection refused

Fixed by reinstalling all .. Not really a solution but in a hurry

I believe I have found the possible cause.
When installing through Helm and using a custom releaseName, the service is created with a name "cert-manager-webhook", and the MutatingWebhookConfiguration and ValidatingWebhookConfiguration are also created for this name.
In these objects there is a configuration that points the name of the Webhook and the Pod/Cert-Manager points precisely to the Service that has the name that is in these objects.
When removing the HelmRelease to install a new one with a different name, these MutatingWebhookConfiguration and ValidatingWebhookConfiguration objects are not deleted, thus becoming garbage in the environment and conflicting with the new objects.
The Pod/Cert-Manager continues to see the old objects and use their settings to try to make the Webhook call.
In short, I solved it by removing the objects. And installing Cert-Manager again:
kubectl get validatingwebhookconfiguration.admissionregistration.k8s.io
kubectl delete validatingwebhookconfiguration.admissionregistration.k8s.io/<Junk Object>

kubectl get mutatingwebhookconfiguration.admissionregistration.k8s.io
kubectl delete mutatingwebhookconfiguration.admissionregistration.k8s.io/<Junk Object>

I believe I have found the possible cause.
When installing through Helm and using a custom releaseName, the service is created with a name "cert-manager-webhook", and the MutatingWebhookConfiguration and ValidatingWebhookConfiguration are also created for this name.
In these objects there is a configuration that points the name of the Webhook and the Pod/Cert-Manager points precisely to the Service that has the name that is in these objects.
When removing the HelmRelease to install a new one with a different name, these MutatingWebhookConfiguration and ValidatingWebhookConfiguration objects are not deleted, thus becoming garbage in the environment and conflicting with the new objects.
The Pod/Cert-Manager continues to see the old objects and use their settings to try to make the Webhook call.
In short, I solved it by removing the objects. And installing Cert-Manager again:
kubectl get validatingwebhookconfiguration.admissionregistration.k8s.io
kubectl delete validatingwebhookconfiguration.admissionregistration.k8s.io/<Junk Object>

kubectl get mutatingwebhookconfiguration.admissionregistration.k8s.io
kubectl delete mutatingwebhookconfiguration.admissionregistration.k8s.io/<Junk Object>

this worked for me

I believe I have found the possible cause.
When installing through Helm and using a custom releaseName, the service is created with a name "cert-manager-webhook", and the MutatingWebhookConfiguration and ValidatingWebhookConfiguration are also created for this name.
In these objects there is a configuration that points the name of the Webhook and the Pod/Cert-Manager points precisely to the Service that has the name that is in these objects.
When removing the HelmRelease to install a new one with a different name, these MutatingWebhookConfiguration and ValidatingWebhookConfiguration objects are not deleted, thus becoming garbage in the environment and conflicting with the new objects.
The Pod/Cert-Manager continues to see the old objects and use their settings to try to make the Webhook call.
In short, I solved it by removing the objects. And installing Cert-Manager again:
kubectl get validatingwebhookconfiguration.admissionregistration.k8s.io
kubectl delete validatingwebhookconfiguration.admissionregistration.k8s.io/<Junk Object>

kubectl get mutatingwebhookconfiguration.admissionregistration.k8s.io
kubectl delete mutatingwebhookconfiguration.admissionregistration.k8s.io/<Junk Object>

something funky when trying to re-install cert-manager after installing prometheus-community via helm. cert-manager-startupcheckapi kept attempting for prometheus-webhook....
used this method here to remove the prometheus-webhook and prometheus-admission and cert-manager successfully re-installed!

Why is this issue closed?
The problem still exists as of 2024.... The helm chat will leave left-over webhooks. That isn't expected functionality!

I am also still seeing this error when applying the manifests from https://cert-manager.io/docs/installation/kubectl/#steps. None of the suggested steps above have made a difference for me including uninstalling and reinstalling


check out prerender_service and prerender_rails for generating static crawler-friendly pages

One of the downsides of single page applications (SPAs) is that in order to be viewed they must be generated by javascript, and most search engine crawlers cannot do this. The workaround is for the server to return the SPA for users and static rendered pages for web crawlers. Google has created a set of standards for doing this, and it's also baked into AngularJS as well. More details at Google's Making AJAX Applications Crawlable page.
Given that one of the goals of CIViC is to be a useful online reference for cancer variant information, we should make it easily available to search engines, etc.
A company, prerender.io, provides software for doing the redirection and page generation logic. They've open sourced their software so it's possible to install and set up your own prerender server. Then you use their Rails libraries to plug it into your app.
I found this after digging around for a little bit, and it looks like the easiest solution. Here's Prerender.io:
https://prerender.io/
Their node-based page rendering server:
https://github.com/prerender/prerender
And the Rails gem that generates the rendering requests and serves up the prerendered pages:
https://github.com/prerender/prerender_rails

+1 this is a really good point.  being able to search for and find the variant level summaries in particular could wind up being the major source of daily users.  But for that to work we obviously need search engine indexing...
It sounds like the functionality of prerender might do the trick.  And by luck they have selected the same MIT license as us for their project, which is also nice.

Google effectively indexes all of our pages, so this solution doesn't seem as urgently required anymore. Additionally, Angular2 has been architected to provide server-side rendering without all of these complex solutions required by angular 1, so with the version 2 of the client it may be possible to have rendered static pages much easier, if required.


Deployed documentation does not match released versions

The documentation called "latest" includes the maxMessageLength option which isn't in the latest release (1.1.16). Look here: https://raven-js.readthedocs.org/en/latest/config/index.html#maxmessagelength
The latest release (1.1.16) and some releases before it are also not included in the list of versions.
"Latest" ought to be called "Unstable" or "In development" if that is what it documents, and all released versions should be added to the documentation.
I was using the maxMessageLength option because I saw it in the documentation and got very confused why it did not work (because it has not been released yet).

Yeah, I agree this is confusing. Do you know how I'd do this in Readthedocs? Ideally, yes, I'd make latest be the latest tagged release, and not master.

I've never used Readthedocs.

Alright, then I'll figure out what needs to be done.

I've released 1.1.17, so that fixes this immediate issue. I'm going to open another to figure out a better way to publish docs though to prevent this from happening again.