Revert "move imagepullsecret to sa from deployment"

Reverts stolostron/multicloud-operators-foundation#715
fix issue https://issues.redhat.com/browse/ACM-10470

/cherry-pick backplane-2.5

/lgtm
/hold
holding in case there are other reviewers needed


fix: retry on anthropic overloaded

Attempt at fixing https://github.com/ErikBjare/gptme/issues/345
Untested since it's hard to reproduce.

[!IMPORTANT]
Adds retry mechanisms with exponential backoff for handling Anthropic API overload errors in llm_anthropic.py.

Behavior:

Adds retry_on_overloaded and retry_generator_on_overloaded decorators in llm_anthropic.py for retrying on APIStatusError with status code 503 using exponential backoff.
Applies retry_on_overloaded to chat() and retry_generator_on_overloaded to stream() in llm_anthropic.py to handle Anthropic API overloads.

Imports:

Adds time and wraps imports in llm_anthropic.py for implementing retry logic.

This description was created by  for 5b4406157e0a3cc6dd9eb76bdf179e8eaed89384. It will automatically update as commits are pushed.

Codecov Report
Attention: Patch coverage is 75.00000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 71.08%. Comparing base (04d70c0) to head (915bd15).
Report is 1 commits behind head on master.

:white_check_mark: All tests successful. No failed tests found.

Files with missing lines
Patch %
Lines

gptme/llm/llm_anthropic.py
75.00%
5 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #356   +/-   ##
=======================================
  Coverage   71.08%   71.08%
=======================================
  Files          68       68
  Lines        5243     5261   +18
=======================================
+ Hits         3727     3740   +13
- Misses       1516     1521    +5

Flag
Coverage Δ

anthropic/claude-3-haiku-20240307
69.09% <75.00%> (+0.02%)
:arrow_up:

openai/gpt-4o-mini
67.85% <45.00%> (-0.10%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

@gptme do you think this will fix #345? read the stacktrace and see if we handle it appropriately

@gptme could you also add the decorator to def chat? if you think that is also needed

A single failing test in
anthropic.NotFoundError: Error code: 404 - {'type': 'error', 'error': {'type': 'not_found_error', 'message': 'model: gpt-o4'}}
...
=========================== short test summary info ============================
FAILED tests/test_server.py::test_api_conversation_generate - KeyError: 0
============= 1 failed, 147 passed, 1 skipped, 1 retried in 50.18s =============

and for the openai case:
openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model `gpt-o4` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

wtf? where is it getting "gpt-o4" from?!

@gptme why does it happen? i find no references to "o4" in the codebase or anything?

Fixed in https://github.com/ErikBjare/gptme/commit/dec7a60f0b1f8b9694d2fcdb093114c4abf136ae


Docker image

Would be very convenient to just have docker image to use it. As it looks that already support linux os?

Would be very convenient to just have docker image to use it.

I am not planning a Docker Image at the moment, when I have more time I will at least make a tutorial and a docker file.
Well, pull requests are accepted.

As it looks that already support linux os?

Operating system support should be understood on two levels:

BouncyHsm (as application)
BouncyHsm.Pkcs11lib.so (as PKCS#11 native liberally).

BouncyHsm
BouncyHsm is .NET 8.0 application without native dependencies, run on all supported platforms https://github.com/dotnet/core/blob/main/release-notes/8.0/supported-os.md.
I tried it myself on Debian 12, RockyLinux 9, AlmaLinux 9, Ubuntu 24.04.
BouncyHsm.Pkcs11lib.so
BouncyHsm.Pkcs11lib is written in pure C with no external dependencies, so it should compile with gcc/Clang for any linux/unix system or architecture.
Github actions compile the native library on Ubuntu, and it works for Debian based systems (with the same version of glibc).
On REHEL based systems (RockyLinux 9, AlmaLinux 9), I compile the library directly on them https://github.com/harrison314/BouncyHsm/blob/main/Doc/BuildPkcs11Lib.md.
Likewise, the native library must be compiled for other systems that do not use glibc or have a different architecture (Alpine Linux, raspberry pi,...).
It should even compile for FreeBSD (I plan to try) and MacOS (I don't have HW).
Final note: The BouncyHSM application and the native library do not need to be on the same node (virtual machine). The native library only needs to set the TCP endpoint to which it should be connected via the environment variable. So it goes to test applications that run for example on FreeBSD (not supported for .NET 8) and have BouncyHSM saved on another node that already supports .NET 8 (eg. Debian).

I have recently built a simple image around BouncyHsm based on the prebuilt artifacts.
below Dockerfile should be a good starting point, but may need some adjustments in appsettings.json, especially to expose the port .
FROM alpine:3.20.3

ENV APP_VERSION=1.1.0

WORKDIR /unzip
ADD https://github.com/harrison314/BouncyHsm/releases/download/v${APP_VERSION}/BouncyHsm.zip .
RUN apk --update add unzip && rm -rf /var/cache/apk/* && unzip BouncyHsm.zip && rm BouncyHsm.zip

FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /App

COPY --from=0 /unzip /App

EXPOSE 8080
EXPOSE 8765
VOLUME /App/bin

ENTRYPOINT ["dotnet", "BouncyHsm.dll"]


Remove Apifox.Apifox 2.3.27 to Ruihu.Apifox 2.3.27

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

URL: http://cdn.apifox.com/download/2.3.27/Apifox-2.3.27.exe
Status Code: 200
(Automated message - build 869)


Updating project to angular6

So, i updated a couple projects to latest version of angular and i had a few issues with rxjs library, i solve all of them installing the library "rxjs-compat" and "tether".
Maybe this should be useful for other with the same issue and also i think you should added to your package.json. i also have a demo running your Advanced example on version 6, i might publish that on stack-blitz and you can make a reference reference .
also you can add it to documentation
I hope this help others

It would nice to create a milestone for this, as there's a chance that the libraries this project depends on have breaking changes going from Angular 4 or 5 to Angular 6, the least trivial being rxjs 5 to rxjs 6.
The Angular Update Guide should help.

here is a link  from stackblitz with the advance example running on angular6

Nice to know what you needed to get it working with latest angular version and I'm sure others will find it useful too so thanks for sharing @Crash1988.
I've created a branch 4.x to mark the angular version the current release is dependent on and since it seems to be running with out any issues with angular 5 (that most of my own projects currently are on), I haven't seen the need to create a separate version or branch for angular 5. Some of my colleagues however have tried it out with angular 6 too and they also ran into som issues and I know angular 6 has introduced a few new things so my idea was to create a branch for angular 6 and release a new version which relies on angular 6. The idea is also to keep the versions of angular-generic-table in sync with angular just to make it easier, so the first version to truly support angular 6 would be 6.0.0. What do you guys think about that?

That makes sense if you want to use the same release schedule as Angular (I'd only keep the major version in sync in that case). The angular 6 branch would be merged into master then, once it's stable?

I've created a separate branch for this now:
https://github.com/hjalmers/angular-generic-table/tree/5.x
as well as milestone:
https://github.com/hjalmers/angular-generic-table/milestone/3
I decided to go for version 5 as this library probably won't follow the release cycle of angular as I initial planned and the table might introduce other breaking changes unrelated to angular, although the goal is to avoid it and always strive towards backwards compatibility.

There's a new version released now for those who'd like to use angular 7 and rxjs 6.
Install using:
npm i @angular-generic-table/core@latest tether --save

If you're using column settings just add:
npm i @angular-generic-table/column-settings@latest ng2-dragula --save

You also need to add temporary pollyfill for dragula if you intend to use column-settings (add to end of pollyfills.ts).
(window as any).global = window;


[DOC] Character filters - Mapping

Description
Updates:

Updating the OpenSearch documentation to include a page on Mappings Character filters in the analyzers section.
Updated the heading on the HTML Strip Character Filter page to match formatting across docs.

Issues Resolved
Both updates are related to https://github.com/opensearch-project/documentation-website/issues/1483 and address part of https://github.com/opensearch-project/documentation-website/issues/1483.
Version
all
Frontend features
n/a
Checklist

[x] By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Closed in favour of moving changes to a fresh PR https://github.com/opensearch-project/documentation-website/pull/8556
Merge conflicts with main were vast and I didn't want to miss something.


User route viewing: fix map style switching

Route passing parameter when choosing map type needs to be disabled when route is null to allow maps to switch. Will need to trigger re-draw.

fixed by using redraw as planned instead of reload.


.github: use GH action to assign all new issues to O11y applications project

Description

As in title
cc @VineethReddy02 @ramonguiu
Type of change
What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

[ ] CHANGE (fix or feature that would cause existing functionality to not work as expected)
[ ] FEATURE (non-breaking change which adds functionality)
[ ] BUGFIX (non-breaking change which fixes an issue)
[ ] ENHANCEMENT (non-breaking change which improves existing functionality)
[x] NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Changelog entry
Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.

Converted to draft as our project is an org-wide and not just scoped to this repo which means we need an org-wide github token as per https://github.com/marketplace/actions/assign-to-one-project#organisation-or-user-project


Nothing to publish.

php artisan vendor:publish --provider="BackupManager\Laravel\Laravel5ServiceProvider"
returns
Nothing to publish.
commands ARE NOT available db:backup, db:restore and db:list.

Hi, what version of Laravel are you using? (2 months later, assuming you still are around)

I am seeing this in Laravel 5.2.

I am frequently 'composer update' ing,  so ij would say it was 5.1 but now 5.2


Update version

No new features has been introduced since last version, so this is a patch release. This version only includes bug-fixes.

It could be nice to release next version, since all known bugs has been solved.

I'll commit directly to the dev branch, and will bump to a new minor version. :)
Thanks


Support for native ARRIRAW and Blackmagic RAW files

Apple Feedback Assistant ID: MISSING!
Is your feature request related to a problem? Please describe.
We requently edit blackmagic raw files and some time arri raw files. We have M1 Ultra and fast Nas that can do online Edit easily so we don't need to wait for generating proxies.
We currently use Davinci Resolve to edit those files as they just work inside Reosolve, but we really missed editing on FCP.
Describe the solution you'd like
A simple support for native arri raw and blackmagic raw files.

Apple announced at the 2024 FCP Creative Summit that Blackmagic will be releasing a Media Extension for Blackmagic RAW at some point - although they didn't specify a timeframe.
Now that Media Extensions are supported in macOS and Final Cut Pro 11, anyone can (in theory) write their own codec support.
So whilst it doesn't look like Apple themselves will be building a BRAW or ARRIRAW plugin anytime soon - it's entirely possible that ARRI and Blackmagic themselves might do it, or even a third party.
In the meantime, if you want BRAW in Final Cut Pro, there's always my BRAW Toolbox on the Mac App Store.


Uploading folder with a lot of sub-folders causes Chrome to hang/crash

Take a look at this jsFiddle and then try dragging a folder with a large number of files in it and it causes the browser to hang (and usually crash)
https://jsfiddle.net/ad3q077k/4/
The folder I was testing with comprised of 6,286 Files across 1,150 Folders
It didn't seem to have the issue when uploading a folder with just 4-sub-folders and 9000+ files (some of which were really large).
So I suspect it's the folder structure causing the crash...perhaps the fact it's recursively calling readEntries causing the hangs/crashes.
I realise sending you the folder I'm testing with isn't possible, but you can replicate fairly easily by simply uploading a system folder or something (e.g. in windows the "windows" or "program files" folders).
I thought this may be a browser bug, but I noticed it works fine in Google Drive with no crashes/hangs.

Hi @nickdatum -- I'd accept a pull request to improve this performance, but since Resumable.js at its core is designed to handle large files resiliently, the scale of file handling seems somewhat out of scope. Obviously, if you're looking at it and find good solutions, please share.

I have an idea with this... I think it's because the files array is getting too large and filling up the memory. I also suspect there is some duplicates being put into the memory, but I'll have to debug further first to figure this all out.
I may have a play later in the week and potentially try to defer some of the processing so it doesn't iterate through directories all in one go before starting the upload.
Do you think this could work?

It's very likely that -- combined with the fact that the library does a lot of operations on "all files at the same time". Adding 10K files will create as many instances of ResumableFile immediately, and all calls to methods like .progress() will loop through all and continuously poll the progress of each items. Which is going to be a pain.
The problem is certainly solvable; I'm worried that it's a pretty sizeable rewrite of lib though. On hacky solution would be to manage drag/drop/files array outside of Resumable with a queue that would feed files to Resumable in drips rather than all at once.

I'm going to spend the day today doing some memory profiling and seeing if I can make any sort of performance improvements...could end up being a waste of a day or a really productive one, I'll keep you updated!

@steffentchr I've rewrote the loadFiles function and it works a lot more efficiently now. I also removed the incorrect paths patch I'd applied before as this also fixed this as part of the rewrite (issue #304)
Please let me know what you think, I think you'll be pretty impressed with the performance increase! The main benefit is it doesn't cause the browser to completely hang (and sometimes crash) so you can still use whatever web application you're integrating resumable into.
https://github.com/nickdatum/resumable.js/blob/performance-relative/resumable.js
I've also added a new "beforeAdd" event, as quite often users will want to show a message or something to say files are currently being loaded in for processing (or other possible actions).

That look great -- very solid improvements from the look of the code, and it seems to be doing all the optimisations in a transparent manner that isn't even breaking backwards-compatibility. Any outstanding things or do you want to merge this in to the core liv?

Thanks, glad it's working for you now.
There was one thing breaking with backwards compatibility (missing forward slash at beginning of relative path) but I've sorted this now in my latest push.
Happy for you to merge in now and glad to help out. I made use of the project for my app, so it felt good to contribute something back :)

Awesome -- do you want to submit as a pull request?

Ok, just submitted the pull request

This one, right? https://github.com/23/resumable.js/pull/313

That's the one! Thanks


validate mod manifest and profile if present during zip peeking

methods are already implemented on the resources and just need to be triggered and disable the mods
todo from #416

If I see this right - mod manifest is already loaded and validated here:
https://github.com/GodotModding/godot-mod-loader/blob/3a889664c8557fedb3315076d205a3bf8aab6e8b/addons/mod_loader/mod_loader.gd#L82

Not sure about the profile part?

right, the manifest is already validated
https://github.com/GodotModding/godot-mod-loader/blob/3a889664c8557fedb3315076d205a3bf8aab6e8b/addons/mod_loader/resources/mod_data.gd#L143-L151
the profiles are still not loaded during zip peek though and not validated there either.
https://github.com/GodotModding/godot-mod-loader/blob/3a889664c8557fedb3315076d205a3bf8aab6e8b/addons/mod_loader/mod_loader.gd#L69-L86
looking at it, it's even happening before zip peek. that seems broken

maybe the manifest does need additional validation like checking all dependencies are there before loading.

I close this, we have #445 open for mod configs. And for dependency validation we have #454.


Upgrade Mojibar.app to v1.2.0

:bouquet:

Thank you for the contribution. It needed some fixes, so they were made in aab65445e9742c69f729ffb5439c1abf0be1c7cc. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


[v0.9] Helm charts config reference not very helpful

The helm charts config reference (https://github.com/EOEPCA/eoepca/tree/v0.9/system/clusters/creodias) for the cluster deployment forces the service operator to use flux and other dependencies he may not want to use in his infrastructure.
It would be nice to have a platform-independent helm chart configuration that allows the service operator to deploy the building blocks in any empty kubernetes cluster.
Moreover, it would be really appreciated to have some documentation for the helm charts, explaining the purpose of each parameter so that the service operator would be able to properly configure the building blocks within his infrastructure.

The eoepca deployments are provided as examples. Most components are deployed using their helm charts, with the flux HelmRelease providing examples of the values to supply to create a the helm release. Those not wishing to use flux can easily extract the values from these HelmReleases, which must be tailored to their operational environment.
The helm charts themselves are independently hosted at the EOEPCA helm chart repository - https://eoepca.github.io/helm-charts/index.yaml.
The deficiency in the helm chart documentation is understood, with a number of existing stories to address this:

ADES - EOEPCA-435 - https://eoepca.atlassian.net/browse/EOEPCA-435
Login Service - EOEPCA-436 - https://eoepca.atlassian.net/browse/EOEPCA-436
PDP - EOEPCA-437 - https://eoepca.atlassian.net/browse/EOEPCA-437
PEP - EOEPCA-438 - https://eoepca.atlassian.net/browse/EOEPCA-438
User Workspace - EOEPCA-440 - https://eoepca.atlassian.net/browse/EOEPCA-440
User Profile - EOEPCA-441 - https://eoepca.atlassian.net/browse/EOEPCA-441
Workspace API - EOEPCA-442 - https://eoepca.atlassian.net/browse/EOEPCA-442
Data Access - EOEPCA-443 - https://eoepca.atlassian.net/browse/EOEPCA-443
Bucket Operator - EOEPCA-461 - https://eoepca.atlassian.net/browse/EOEPCA-461

With eoepca release v1.0, each of the helm charts (as per above) are now supported by a README that describes their values - with the exception of the Bucket Operator for which there is not yet a helm chart.
In addition, the Deployment Guide (https://deployment-guide.docs.eoepca.org/) has been published to provide a description of the BB deployments using helm charts directly (not flux), and should be regarded as a good reference. Within this guide links are provided to the specific 'values' documentation for each helm chart.


SOMs and negative inputs

This PR adds a SOM field to the json for targeting a specific SOM (right now either seed or patch_sm).
It also permits negative inputs when using input_min and input_max fields in an input description, e.g.:
{
  "inputs": {
    ...
    "cv5": {
      "input_min": -1,
      "input_max": 1,
      "code": "hardware.GetAdcValue(daisy::patch_sm::CV_5);"
    },
    ...
  }
}

This adjusts the scaling Oopsy does to factor in the different input range, preserving the expected behavior of the @max and @min param attributes. This addresses #60.

closing as this is handled in #69


List scrolls to random position after screen rotation

When I rotate screen at the beginning of the list everything works fine, list scrolls to the right position - there where it was before rotation. When I scroll a little bit further and pass position 60~ and rotate, it always scrolls up to position 59-60. When I scroll a lot further and rotate it doesn't scroll to position 59-60 nor to last position, but to position 0.
I have the same issue in my own app which I am creating according to this codelab, when I scroll past position 144~ and rotate the screen it always scrolls up to position 143-144. and if I scroll to position before 150 and rotate the screen list scrolls to correct position. When I scroll to position like 230~ and rotate it doesn't scroll to position 143-144 nor to last position, but to position 0.

Alright, I think this happens because everytime fragment is recreated we make viewModel.searchRepo(query) call thus new RepoSearchResult is created. To avoid that situation we have to call viewModel.searchRepo(query) once in a fragment lifecycle.

Codelab changed meanwhile. Feel free to create a new issue or reopen this one if the issue still exists.


json-views for... xml

Any idea - is it possible to use json-viewer for xml?

Hi, thanks for using json-viewer.
I have made an XML demo here.

You need to use tools like xml2js to convert your data, and fine-tune the details of this POC.

This issue will be closed. Let me know if you still need some help.


Unexpected Grant::account_role behavior in custom instructions

Previously this code was necessary as a part of a trigger executable. Now this is a part of visit_custom and things seem to be different

Originally posted by @s8sato in https://github.com/hyperledger-iroha/iroha/pull/5217#discussion_r1826861080

This got no longer observed by https://github.com/hyperledger-iroha/iroha/pull/5217/commits/70d51d0cbe091df7ccb7a74224e1fb815b8caefc#diff-cd94d0dcbb98edced1837c8346684b4099a29ed3213a2c28217df350e465cf8d
I'm not sure if it's worth pursuing


Plane and Texture.fromFrame not working ?

Was trying to make a 9slice scaling example and found out Plane and Texture arent working together nicely.
When I create a Plane directly with a Texture, it doesn't work.
When I use a RenderTexture, it does work..
example:
using latest PIXI dev (4.x)
using @ivanpopelyshev 's version
https://jsfiddle.net/whizzkid74/8p2s3jz8/8/

we have a nine slice :D


Bot dont post stats plus it spam console with need support and that bigger message with should only be on start

I use discord.js v13 so i had to edit sending (from ch.send(embed) to ch.send({ embeds: [embed] }) and messages.edit(embed) to messages.edit({ embeds: [embed] }) idk if code worked before but it dont now, what to do

you can downgrade your discordjs package to v12 by using this command npm i<EMAIL_ADDRESS>or you can try our friend pull request #5

you can downgrade your discordjs package to v12 by using this command npm i<EMAIL_ADDRESS>you can also use npm i command to install all package at package.json or you can try our friend pull request #5

I code the bot in v13 so i cant downgrade bcz rest of bot wont work

you can just use the this repo files, edit the config, and type npm i?

you can just use the this repo files, edit the config, and type npm i?

Bruh i code bot for one hosting and idk how to make ptero status. I code this bot on v13 and it dont only have status

closing this issue, this issue fixed at our support server


Errors when trying to contribute new extras feature

Description
Hi! I am trying to create new extras feature by following these steps. However I am encountering the following issues and I wonder if any them is going to stop me from correctly contributing a feature. In the docs it is specified that these commands need to run successfully. If they are going to be an issue, does anyone know how I could solve them?
Thanks
Steps to Reproduce

Created new python 3.8 (also tried 3.7) virtual environment in anaconda.
Forked and cloned kedro repository
Ran: "make install-test-requirements"
Got first error message
Manually installed geopandas through "conda install geopandas". Based on this answer.
Reran "make install-test-requirements"
Got second error message
Nonetheless ran: "make install-pre-commit"
Got 3rd error message
Nonetheless ran "make test-no-spark"
Got the third error message
Nonetheless ran "make build-docs"
Got the fourth error message

Actual Result
After step 3 I got the following message
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\lucas\anaconda3\envs\kedro-37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lucas\\AppData\\Local\\Temp\\pip-install-ury96kq4\\fiona\\setup.py'"'"'; __file__='"'"'C:\\Users\\lucas\\AppData\\Local\\Temp\\pip-install-ury96kq4\\fiona\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\lucas\AppData\Local\Temp\pip-pip-egg-info-lmd0rg07'
         cwd: C:\Users\lucas\AppData\Local\Temp\pip-install-ury96kq4\fiona\
    Complete output (1 lines):
    A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Which seems to have been solved with step 5. However, after running step 6, I get the following dependency issues:
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

adlfs 0.2.5 requires fsspec<0.6.3,>=0.6.0, but you'll have fsspec 0.6.3 which is incompatible.
docker 4.3.1 requires pywin32==227; sys_platform == "win32", but you'll have pywin32 228 which is incompatible.
tensorflow 2.3.1 requires numpy<1.19.0,>=1.16.0, but you'll have numpy 1.19.2 which is incompatible.
trufflehog 2.1.11 requires GitPython==3.0.6, but you'll have gitpython 3.1.11 which is incompatible.

After step 8 I get:
An unexpected error has occurred: CalledProcessError: command: ('c:\\users\\lucas\\anaconda3\\envs\\kedro-37\\python.exe', '-mvirtualenv', 'C:\\home\\lucas\\.cache\\pre-commit\\repoo06rby0h\\py_env-python3.7', '-p', 'c:\\users\\lucas\\anaconda3\\envs\\kedro-37\\python.exe')
return code: 1
expected return code: 0
stdout:
    FileNotFoundError: [Errno 2] No such file or directory: 'c:\\users\\lucas\\anaconda3\\envs\\kedro-37\\Lib\\venv\\scripts\\nt\\python.exe'

stderr: (none)
Check the log at C:\home\lucas/.cache\pre-commit\pre-commit.log
make: *** [Makefile:51: install-pre-commit] Error 1

After step 10 I get:
ERROR tests/extras/datasets/tensorflow/test_tensorflow_model_dataset.py::TestTensorFlowModelDatasetVersioned::test_version_str_repr[None-None-None-None-None]
FAILED tests/tools/ipython/test_ipython_loader.py::TestIpythonStartupDir::test_locate_no_project - AssertionError: as...

After step 12 I get:
./docs/build-docs.sh
make: ./docs/build-docs.sh: Command not found
make: *** [Makefile:39: build-docs] Error 127

Your Environment
Include as many relevant details about the environment in which you experienced the bug:

Conda version used: conda 4.9.0
Python version used: Python 3.7.9 but also 3.8
Operating system and version: Windows 10 Pro

Error 1: You might need to install Fiona manually on Windows by running conda install -c conda-forge fiona -y
Error 2: It's not technically an error since pip does not break, it is merely a warning
Error 3: It might be related to the bug we encountered that Virtualenv 20.* broke some of the pre-commit hooks
Error 4: I don't have anything to suggest here
Error 5: Kedro documentation won't build on Windows as we rely on shell scripts for that (but this is not required to start working on a feature)
To setup your dev environment on Windows you can (roughly) follow the steps in our CI: win_setup_conda, win_setup_env, win_setup_requirements.
Note that not all our unit tests are runnable on Windows, so the coverage won't be 100%

I had the same problems trying to set up a dev environment on my windows laptop (linked above).
@DmitriiDeriabinQB all the links in your reply point to private-kedro, which we unfortunately can not access. Would it be possible to share information publicly?
Otherwise it's kind of frustrating to contribute for Windows users, which is a large fraction of corpo. I do not want to be the devil's advocate and i run Ubuntu on my private laptop but my work laptop uses Windows unfortunately

I had the same problems (including problem at step 4) trying to set up a dev environment on my windows laptop (linked above).
@DmitriiDeriabinQB all the links in your reply point to private-kedro, which we unfortunately can not access. Would it be possible to share information publicly?
Otherwise it's kind of frustrating to contribute for Windows users, which is a large fraction of corpo. I do not want to be the devil's advocate and i run Ubuntu on my private laptop but my work laptop uses Windows unfortunately

If you replace private-kedro with kedro in the URLs, they should work 😅

Thanks. So trivial solution and yet so powerful!
Downgrading the version of virtualenv helped to install the git hooks.
However, running the hooks on a commit still doesn't work: pre-commit.log
the actual environment looks like this: conda_specs.txt
at this tage it seems I will better try to install it on a linux machine rather then investing time into making it install on windows :(

Downgrading the version of virtualenv helped to install the git hooks.

@mlisovyi Does it mean that make lint, for example works for you on Windows? It may fail due to some linting errors, I just want to confirm that the command itself is runnable.

Yes, make lint kind of worked, when executed in the terminal. "Kind of", because trufflehog anyway failed for some unclear to me reason.
But in general pre-commit on windows works. I do use its hooks in other projects to run isort and black (and some othe basic hooks, but not linting)

You can use Circle CI configuration as a guidance for how to set up Windows environment.

Thanks @andrii-ivaniuk . Could you point at specific lines in the file or better add the instructions to the docs? For a beginner looking through ~500 lines of yaml is not a realistic option.

Thanks @andrii-ivaniuk . Could you point at specific lines in the file or better add the instructions to the docs? For a beginner looking through ~500 lines of yaml is not a realistic option.

https://github.com/quantumblacklabs/kedro/blob/424756dae498048094ebb00bb15674c88f31f7fd/.circleci/config.yml#L121

https://github.com/quantumblacklabs/kedro/blob/424756dae498048094ebb00bb15674c88f31f7fd/.circleci/config.yml#L121

@lucasjamar Do you have any problems with the Windows env setup? If no, could you please close the issue?

@lucasjamar Do you have any problems with the Windows env setup? If no, could you please close the issue?


show top peers on overview

Really looking forward to this one!

@blukai @howardchung do you guys have any preference on how we display this data? I'm thinking we could try putting it above heroes so the new screen looks like matches on the left, peers/heroes on the right. Idk what we want to show for peers though (recent games with them?)

Yeah I think we'd just show the top 20 peers (making the same /peers API call as the peers tab and limiting the display, like we do with heroes).
I suppose we'd want the column for games with+games_against.  Should we stack them?  Maybe 10 heroes/10 peers to make it balance matches?

I just started working on this and having them stacked on the right. If we have it pull 10 heroes/10 peers it will still look off due to the container titles and the table headers. Maybe we got with top 5 peers instead of 10?
Option 1 (20 Matches, 10 Heroes, 10 Peers):

Option 2 (20 Matches, 10 Heroes, 5 Peers):

Option 3 (20 Matches, 5 Peers, 10 Heroes):

Personally I like option 3 the best.


Toolbox Editor: Multiple Toolboxes & Bug Fixes

Can create multiple toolboxes and switch between them in nav tree.
Resolved bug #158.

This change is

Review status: 0 of 9 files reviewed at latest revision, 1 unresolved discussion.

src/controller/toolbox_controller.js, line 374 at r1 (raw file):

     */
    if (!opt_noWarning && !window.confirm('Are you sure you would like to clear ' +
          'your toolbox editor workspace?')) {

This toolbox should have a resource name by now, right? I suggesting using it in the user message.

Comments from Reviewable

Review status: 0 of 9 files reviewed at latest revision, 1 unresolved discussion.

src/controller/toolbox_controller.js, line 374 at r1 (raw file):
Previously, AnmAtAnm (Andrew n marshall) wrote…
This toolbox should have a resource name by now, right? I suggesting using it in the user message.

Done.

Comments from Reviewable

Reviewed 9 of 9 files at r1.
Review status: 8 of 9 files reviewed at latest revision, 3 unresolved discussions.

src/model/toolbox.js, line 297 at r1 (raw file):

  /**
   * Adds a custom tag to a category, updating state variables accordingly.
   * Only accepts 'VARIABLE' and 'PROCEDURE' tags.

Add a todo on github that this custom tag can now be something other than VARIABLE and PROCEDURE (added in the past year).

src/view/toolbox_editor_view.js, line 173 at r1 (raw file):

    Blockly.svgResize(this.previewWorkspace);

    // TODO: Make editor show the @param toolbox (when user clicks on a

Remove TODO if it's done.

Comments from Reviewable

Review status: 8 of 9 files reviewed at latest revision, 3 unresolved discussions.

src/model/toolbox.js, line 297 at r1 (raw file):
Previously, rachel-fenichel (Rachel Fenichel) wrote…
Add a todo on github that this custom tag can now be something other than VARIABLE and PROCEDURE (added in the past year).

Done.

src/view/toolbox_editor_view.js, line 173 at r1 (raw file):
Previously, rachel-fenichel (Rachel Fenichel) wrote…
Remove TODO if it's done.

Done.

Comments from Reviewable

Review status: 6 of 9 files reviewed at latest revision, 3 unresolved discussions.

Comments from Reviewable


Allow resource loading to be done from the Classpath

Copy of https://github.com/quarkiverse/quarkus-wiremock/pull/112, but with fixed formatting issues.

@all-contributors add @geoand  for code


Visualize a taxonomic tree with sigma. Is it possible? #Scalability

I want to visualize a dataset of 90.000 species and their taxonomic pathes with sigma.js.
Will it be possible to render a static tree with these large amount of nodes or will the browser just hang?
I looked at examples like: This which already hangs completely at 7000 nodes :(
Does anybody have informations about the scalability or should I use SNAP

Hum... 90k nodes and I guess you have as much edges also ~90k since we are speaking of a tree. It starts to be a little too much for a web browser to render. I know I already rendered approx. this size of graph but it will be laggy on most computers and you'll have to sacrifice some visual features. Does your viz need to be dynamic? Else I would recommend to develop a custom renderer using webgl.

Thanks for the answer!
No I don't need dynamics or anything, just a static .svg-like graph with 2 gradient colors. In sigma you can disable all the visual candies?

Yes you can disable most of it. I must tell you however that sigma has a slight synchronous performance overhead when reading your graph for the first time and this might be a problem for you. That's why we are currently working on graphology and a new version of sigma.


Fix debian custom repo

Currently custom repo doesn't have apt or rpm key defined,
so apt update gonna be failed.
This PR should fix that.

jenkins test pipeline

jenkins test pipeline

jenkins test pipeline

jenkins test pipeline

jenkins test pipeline

jenkins test pipeline

Ahhh, finally, jenkins test succeeded :dancing_men:
Hi @guits, could you please take a look ?
Thanks

@dsavineau @guits Can it be backport to stable-4.0 please?

This really needs in using custom repo because it doesn't update cache after adding custom repo and it will fails and key should be import before. @guits @dsavineau

@clwluvw the backport is already opened https://github.com/ceph/ceph-ansible/pull/5689


Teams custom personal app (SPFx) - slow authentication startup in desktop app

Hi
We've implemented quite some Teams personal apps at clients now and the custom Teams apps in the (Teams desktop app) sometimes have load times ranging from 4s - 10s before our custom code even begins. The Teams web app handles auth in a different way, so never any issue there.
It appears to have something to do with the way authentication is done in the desktop app (acquire OBO token call...). With a trick, you can also get the console & network tab to show in the desktop app. That way we can verify when our React is loaded & starting + when our backend api calls are done.
Clients are complaining about the response times and rightfully so. The response times before our code hits also varies greatly between tenants as mentioned.
Has anyone had the same experience? Is there a magic wonder solution out there that I don't know of yet (e.g. simple AAD authentication setting) ?
See also techcommunity

I moved this issue to SharePoint/sp-dev-training-spfx-teams-dev

The initial issue template contained a bunch of sections, including a critical "context" section that asked for versions. That's included because it's necessary to get some context about your environment and versions.


define query params?

I tried to use data() and query() but no such methods exist.
Then I tried to put it after the url but it didn't work.
How do you define query params?

GitHub was not working properly yesterday :)


feat(devtools): add searchbar

#57

Hey @nellyk and @infoxicator, thanks for taking a look at my PR. I've addressed the comments above, please let me know if any other changes need to be made


Muting with boom-arm not working anymore

Hi there,
thank you very much for your extension. I don't know, if there have been any changes to Jabra or google Meet. I have an issue with Jabra Link380 and  Jabra Evolve2 65:
When muting the headset with the boom-arm, google meet will not mute itself (the mic button will not turn red). This worked before.

I just released an update to fix this, it should be available soon!


Cannot find Docker image for Windows 10.0.19045

I'm running Windows 10:
PS> [Environment]::OSVersion

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.19045.0 Microsoft Windows NT 10.0.19045.0

Yet, I'm not able to find/download a matching Docker Windows Nano Server image:
FROM mcr.microsoft.com/windows/servercore:ltsc2022

Step 1/12 : FROM mcr.microsoft.com/windows/servercore:ltsc2022
ltsc2022: Pulling from windows/servercore
no matching manifest for windows/amd64 10.0.19045 in the manifest list entries

None of the Docker Windows Nano Server images in this list comes with a revision number of 19045.
Please advise.

Answer found on StackOverflow:
https://stackoverflow.com/questions/77096001/no-matching-manifest-for-windows-amd64-10-0-19045-in-the-manifest-list-entries#answer-78122434


Re-introduce relayer supervisor layer in test framework

Description
This PR re-introduces the relayer supervisor test layer to allow the relayer supervisor to be spawned automatically by the test framework.
A new RunWithSupervisor struct is introduced to wrap any test cases at the chain layer or higher. The runner will spawn the supervisor before the main test is executed.
A new SupervisorOverride trait is introduced to override whether RunWithSupervisor should spawn the supervisor. Automatic spawning of supervisor can be disabled by implementing should_spawn_supervisor() to return false in TestOverrides.
The RunWithSupervisor wrapper is applied by test runner functions at the highest level before test execution. For example, run_binary_chain_test spawns the supervisor right after the chains are bootstrapped, but run_binary_channel_test only spawns the supervisor after the channels have been bootstrapped.
When manually composing RunWithSupervisor with other runner structs, one should make sure that RunWithSupervisor is only present once inside the compositions. Otherwise multiple relayer supervisors may be spawned and running concurrently during the test.
More explanation and documentation will be added in this PR.

PR author checklist:

[ ] Added changelog entry, using unclog.
[ ] Added tests: integration (for Hermes) or unit/mock tests (for modules).
[ ] Linked to GitHub issue.
[ ] Updated code comments and documentation (e.g., docs/).

Reviewer checklist:

[ ] Reviewed Files changed in the GitHub PR explorer.
[ ] Manually tested (in case integration/unit/mock tests are absent).

Looks good! Do we need to do anything for the ICA filter test or can it stay as is?

I think no need, since it is using run_binary_connection_test already automatically spawns the supervisor. Unless the original test should not spawn the supervisor?


Try to work around double stringify.

This is a weird issues due to combinaison of upgrades that will be tricky to work around.
for some reason gulp-typescript do not warn of not-matching types, and a String end up being used as an object, leading to double serialisation, and late faillure at deserialisation.
so now to work around you have (sometime) to work around the doubled serialized notebook by JSON.parse twice. Which is a bit brittle, I think but should work.

[x] creating new .ipynb
[x] creating subfolder
[x] creating .ipynb in subfolder
[x] pure text file seem to work also.

Merging for now to test more.


make docs dev command failed on main branch

Describe the bug
Recently I'm facing an issue while running make docs in my env. may be related to https://github.com/executablebooks/sphinx-copybutton/issues/170 issue but not sure
To Reproduce
run make docs in astronomer-providers

Did you build the image from scratch?
The following library should be installed
https://github.com/astronomer/astronomer-providers/blob/3b41eb70b14104b1a57a85c413edb708fa7d2359/setup.cfg#L81

Did you build the image from scratch?
The following library should be installed
https://github.com/astronomer/astronomer-providers/blob/3b41eb70b14104b1a57a85c413edb708fa7d2359/setup.cfg#L81

hmm, After your comments, I build it from scratch with
make stop
make clean
docker system prune -a
make build-run

but the issue persists. I was trying this from pychram terminal in conda env but after manually installing sphinx-copybutton in env with conda install -c conda-forge sphinx-copybutton it started working

Looks like it is because the make docs command does not currently use docker.. may be run pip install -e .[docs] in that?
https://github.com/astronomer/astronomer-providers/blob/3b41eb70b14104b1a57a85c413edb708fa7d2359/Makefile#L45-L46

running
pip install -e .[docs]

and then make docs worked!


Can we add this issue to the list? (AMD)

This Shadertoy renders wrong on AMD: https://www.shadertoy.com/view/ftKSzy
You have to make a meaningless modification on line 29 (abs() => abs (roundness * 2.0) * 0.5) to make it work properly on AMD. I brought this to their attention over a year ago and it's still like this on the latest Adrenalin drivers.

Hello.

renders wrong on AMD

I tested on AMD integrated Vega8 integrated Linux kernel 6.11.8 mesa 24.3.0
No bug for me.
If you want to discuss it - join my discord to communicate in real time to save our time - https://discord.gg/JKyqWgt

Can we add this issue to the list?

This list is only for my bugs - all bugs here is only what I found - just for reference when I need these links sometime.
I do not add anyone else bugs here, for example FabriceNeyret2 have much larger bug list then me - I not adding his bugs here.
If you want - make your own list with your bugs.

@toomuchvoltage il close this in few days if no response/discussion


Update content store garbage collection

Use single instance of content store instead of creating new one for each collection. Using new instance and wrapping causes failures.

Codecov Report

Merging #1658 into master will decrease coverage by 0.12%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1658      +/-   ##
==========================================
- Coverage   49.06%   48.94%   -0.13%
==========================================
  Files          27       27
  Lines        4080     4080
==========================================
- Hits         2002     1997       -5
- Misses       1663     1668       +5
  Partials      415      415

Impacted Files
Coverage Δ

metadata/db.go
67% <100%> (ø)
:arrow_up:

metadata/content.go
31.04% <0%> (-1.19%)
:arrow_down:

Continue to review full report at Codecov.

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


Passed the $listeners to the actual input via v-on

Input: Made sure all v-on listeners that are placed on el-input are passed through to the actual input (e.g. <el-input @keyup="">
Checkbox: Made sure all v-on listeners are passed throught to the input
Please make sure these boxes are checked before submitting your PR, thank you!

[x] Make sure you follow Element's contributing guide (中文 | English | Español).
[x] Make sure you are merging your commits to dev branch.
[x] Add some descriptions and refer relative issues for you PR.

You can <el-input @keyup.native=""> when trying to listen to native events.


Fix for division by zero error on empty or homogenous array

Make sure that empty arrays or arrays with all the same entry return 0 for Skewness and Kurtosis rather than throwing a division by zero error.
@ohasselblad @rafatower

@stuartlynn, looks like the wrong file was committed

Ah sorry will update shortly
On Thu, Dec 3, 2015 at 6:06 PM Andy Eschbacher<EMAIL_ADDRESS>wrote:

@stuartlynn https://github.com/stuartlynn, looks like the wrong file
was committed
—
Reply to this email directly or view it on GitHub
https://github.com/CartoDB/cartodb-postgresql/pull/181#issuecomment-161817781
.

--
Stuart Lynn
Map Scientist
CartoDB—Map Your World's Data
143 Roebling St 2A, New York, 11211, USA
T: +3123940797  Twitter: @stuart_lynn
W: www.cartodb.com
Live sessions to learn CartoDB

Ok should be the correct file now.


[2071] Rename mcb db command

Context
It's an implementation detail that it uses az to get to it.
Changes proposed in this pull request
before:
mcb az apps psql

after:
mcb db

Guidance to review
Checklist

[ ] Make sure all information from the Trello card is in here
[ ] Attach to Trello card
[ ] Rebased master
[ ] Cleaned commit history
[ ] Tested by running locally

 Rename 'mcb az apps psql' to 'mcb db'


error when recording audio on edge and safari 11 (and Firefox)

Hi,
I am trying to record audio using WebRTC on Firefox, Chrome, Safari and Edge. For this I wanted to use RecordRTC as it should support all these browsers for audio recording. I got it working in chrome without a problem, but when I try it on Safari 11 I get the following error message:

When I tried to test it on Edge, it seems to be able to record, but when I try to play it, it seems empty.

The image is what RecordRTC logs to the console and you can see that an audio/wav file has been created, but I can't play it.
If you have any solutions to my problem, I would appreciate it.
Thanks in advance
(BONUS: I try using it in Firefox and there I get the message that they can't allocate the audiosource, does anyone have a fix for this?)

See #351


Rename regions in BED files so that they're unique

Given robinandeer/chanjo#125, the name field of the BED file needs to be unique per row. Some commercial kits repeat the gene name, hence this can break things during the run.

Luca;
bcbio does try to do this right now:
https://github.com/chapmanb/bcbio-nextgen/blob/master/bcbio/variation/coverage.py#L23
but perhaps we missed something. Were you getting non-unique names running inside of bcbio or running manually outside of it?

I just found this issue when running the pipeline today (but I haven't updated in the past week).

Closing this since I am guessing there are not issues with the current version.
thanks a  lot!


Usage of Deprecated new Buffer() in lib/equality_filter.js

I noticed the following deprecation warning for this library.
The warning:
@deprecated — since v10.0.0 - Use Buffer.from(string[, encoding]) instead.
is on line 21 of lib/equality_filter.js

I am getting this deprecation warning in the nodejs console now. Any word on a fix?


fix ERC20 data

Wrong function used
https://github.com/0xSpaceShard/starknet-devnet-rs/blob/38aa51eb9951597a22acbeab4a64e33181dbaf7e/crates/starknet-devnet-core/src/starknet/predeployed.rs#L36
it should be not selector but to-cario-stirng or something.

If you haven't already prepared a PR, I'll check it out. Thanks for reporting.

starkli storage 0x49D36570D4E46F48E99674BD3FCC84644DDD6B96F7C741B1562B82F9E004DC7 ERC20_symbol --rpc https://starknet-mainnet.g.alchemy.com/v2/XXXXXXXXXXXXXXXXXXXXXXXX
0x0000000000000000000000000000000000000000000000000000000000455448

starkli storage 0x49D36570D4E46F48E99674BD3FCC84644DDD6B96F7C741B1562B82F9E004DC7 ERC20_symbol --

0x02aebeba3810b1e6b70781f14b2d72c1cb89c0b2b320c43bb67ff79f562f5ff4

Ah ok, now I see what you mean; the value assigned to the key is wrong, not the key itself.

Feel free to review: https://github.com/0xSpaceShard/starknet-devnet-rs/pull/546


Investigate seeding a long running collectd + worker (daemonset)

There are a million ways today that metrics are collected, and integrating them has become a wonderland of useless complexity with almost 0 gain.  The purpose of this issue to provide a daemon that can post summarized stats back to the master when the master is online.
The purpose is to provide the sonobuoy master with a summarized set of well defined stats that can be used to help operators diagnose issue on their cluster.

There are several other tools that exist as well including intels metrics collection, collectd, etc.


Fixing Dataset Path Report

fixed bug causing dataset directories to be reported as protected when they were consortium level

@yuanzhou Not sure why the CI tests are failing- Flask is trying to import something (escape) from the jinja2 library that no longer exists??  Doesn't seem likely that that was removed.  It works in Python 3.8.9 on my local machine..

I noticed that same issue with local build of entity-api as a standalone flask app yesterday. But not with docker build. Probably related to python version or some dependencies.


Unhandled error when decorating iTunes result without an image URL

parser.parseURL() throws the following error for podcast rss feeds that don't have an image URL:
Cannot read property 'href' of undefined

This happens occasionally and I've got about 10 podcasts for which I can reproduce. I've forked and fixed by just not adding an image property to itunes during decoration. I'll send a PR shortly to fix if it looks 👌 .

Fixed by #36

I am having the same problem.

TypeError: Cannot read property 'href' of undefined

The error occurs when calling parser.parseURL('http://www.transfermarkt.de/rss/news')

[0] TypeError: Cannot read property 'href' of undefined
[0]     at Parser.buildRSS (/path/node_modules/rss-parser/lib/parser.js:181:72)
[0]     at Parser.buildRSS2 (/path/node_modules/rss-parser/lib/parser.js:169:21)
[0]     at xmlParser.parseString (/path/node_modules/rss-parser/lib/parser.js:41:23)
[0]     at Parser.<anonymous> (/path/node_modules/xml2js/lib/parser.js:303:18)
[0]     at Parser.emit (events.js:182:13)
[0]     at SAXParser.onclosetag (/path/node_modules/xml2js/lib/parser.js:261:26)
[0]     at emit (/path/node_modules/sax/lib/sax.js:624:35)
[0]     at emitNode (/path/node_modules/sax/lib/sax.js:629:5)
[0]     at closeTag (/path/node_modules/sax/lib/sax.js:889:7)
[0]     at SAXParser.write (/path/node_modules/sax/lib/sax.js:1436:13)


Clarify object relationship in method blocks

Our current method blocks (i.e. Neopixel, Game) are pretty visually unclear about how the blocks map to the TypeScript code. For example:

This block has a number of issues:

The pre-populated name is "item". What we really want is to default to a variable that we know is of the given type (or to create one, see #443). Otherwise, dragging this into the program will likely result in a type error.
The variable should be a shadow block. Dragging the variable block out of this block results in a type error.
The object variable is displayed like an input, when it is actually invoking the function. No visual distinction is made to clarify the difference
The wording does not make it clear that this affects the state of the object. Perhaps something like "Set item's LED to white at..." would be more appropriate.

@riknoll - has this been addressed?

I still think our object oriented blocks story needs to be fleshed out.


Add docs

I'm currently using rand_derive2 on a project with the lint #![warn(missing_docs)]. However, the implementation of derive macro for RandGen doesn't have docs and I get a warning for every use of #[derive(RandGen)].
So, this pull requests adds docs. I added them in 4 places, which seem to be all there is. Feel free to change any of the messages or make them #[doc(hidden)]. I don't mind the actual documentation, I just want the errors to go away 😊
Also, I changed the example to show that you can enable this lint without warnings. It's not super pretty so, again, feel free to add it as a separate example or to remove it entirely.

Thanks for the commit @Odilf, it makes sense to add some documentation! I added one small comment, if you can change that, I am happy to merge it and publish a new version!

@Odilf I merged this too quickly, because the example does not compile anymore and cargo fmt failed. I revert the commits for now. Could you create a new PR and check if everything works?

Oh the change was so small that I forgot to check but I should've done format_ident! instead of format! for generate_ty_name. Opening a new PR with that fixed


1.1.0f release commits

For review by @snhenson

merged?

merged?

It was a fast-forward commit so I guess github detected it was merged.


Compiler is incorrectly cropping output

Description
Say one wanted to create a shareable image of a Typst-rendered equation — that is to say the equation has the page cropped to the height and width of the equation — one would think to write something like the following:
#set page(
width: auto,
height: auto,
margin: 0pt,
)
$E = m c^2$

but this ends up rendering something that looks like

On the left and right of the image there are some gaps of extra page, and the top has the exponent, 2, on c cut off. The following is another example:
#set page(
width: auto,
height: auto,
margin: 0pt,
)
$mat(
n;
r;
) = frac(n!, r!(n-r)!)$

This one is more extreme where it cuts deep into the fraction and the matrix.
Both of the above were compiled with:
typst compile -f png <input>.typst <output>.png

Reproduction URL
No response
Operating system
Linux
Typst version

[X] I am using the latest version of Typst

#1028


Access the host machine's git repo error when using the git-statistic in a Windows 10 guest machine.

Here is my scenario：
Host machine: Ubuntu 24.04
Guest machine: Windows 10
We put a host machine's directory, e.g.  development in to the guest machine, and it is appeared as Z:\development in guest machine. We have a git repo called PythonSnippet in the directory. When we use the installed git-statistic to analyze the git repo Z:\development\PythonSnippet, an error occured, which reads

When we copy the PythonSnippet repo into the guest machine's native directory, then git-statistic could do the analysis properly.
A log tracing can be added into the application, and then we coud provide you the error log information for further analysis.

The file path of log is
C:\Users\userName\AppData\Local\com.lsk.gitstatistic\logs.

We've checked the log file, there are two lines which read
[2024-10-21][12:25:20][tao::platform_impl::platform::event_loop::runner][WARN] NewEvents emitted without explicit RedrawEventsCleared
[2024-10-21][12:25:20][tao::platform_impl::platform::event_loop::runner][WARN] RedrawEventsCleared emitted without explicit MainEventsCleared
And the red alarm "Error Message" is still there. Maybe an explicit log out should be written in the program.


fix(remix-dev): fix sourcemap path replace in Cloudflare Pages build

Closes: #3768

[ ] Docs
[ ] Tests

Testing Strategy:
I built the remix project, and linked remix-dev:
yarn build
cd packages/remix-dev/
yarn link

Then I linked the remix-dev build in a cloudflare-workers project:
cd some-cloudflare-project/
yarn link @remix-run/dev
yarn dev

and verified that the sourcemaps work.

Is there anything blocking the merge of this PR? The current DX with Cloudflare Pages is very poor due to the missing source maps.

Due to some refactoring this PR isn't working anymore. I'll make a new one based on the new structure of the remix-dev package.


❌  stat /home/codespace/.dapr/components: no such file or directory

I'm following the quickstart: Service Invocation & I opened the sample in a dev container.
I'm able to build the project:

codespace ➜ .../service_invocation/csharp/http/order-processor (master ✗) $ dotnet build
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:06.24

But when I try to run the app, it can't find the components directory:

codespace ➜ .../service_invocation/csharp/http/order-processor (master ✗) $ dapr run --app-port 7001 --app-id order-processor --app-protocol http --dapr-http-port 3501 -- dotnet run
❌  stat /home/codespace/.dapr/components: no such file or directory

I'm guessing the components folder is there in the dev container just not under that path? 🤔🤷♂

it happens the same to me. I have installed dapr using brew

This sounds like an issue with the CLI, rather than the dev container, to me? If the ~/.dapr/components folder doesn't exist, it should probably not throw an error.

@mukundansundar what do you think?

@spottedmahn could you give some details on which devcontainer was used?
@ItalyPaleAle It seems that that folder is not present ... And it should throw and error IMO since daprd will try to read from given location


Blacklisting beeswax and oozie throws errors and prevents startup 4.5.0

When disabling beeswax and oozie like shown on this documentation-page: http://gethue.com/mini-how-to-disabling-some-apps-from-showing-up/
with
app_blacklist=beeswax,impala,security,filebrowser,jobbrowser,rdbms,jobsub,pig,hbase,sqoop,zookeeper,metastore,spark,oozie,indexer
the following errors are thrown on hue-startup:
RuntimeError: Model class beeswax.models.QueryHistory doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
and
Oozie application is not enabled: Model class oozie.models.Job doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Version is 4.5.0

While not perfect his should not affect Hue from running normally though
On Tue, Aug 20, 2019, 9:26 AM stefanm7<EMAIL_ADDRESS>wrote:

When disabling beeswax and oozie like shown on this documentation-page:
http://gethue.com/mini-how-to-disabling-some-apps-from-showing-up/
with
app_blacklist=beeswax,impala,security,filebrowser,jobbrowser,rdbms,jobsub,pig,hbase,sqoop,zookeeper,metastore,spark,oozie,indexer
the following errors are thrown on hue-startup:
RuntimeError: Model class beeswax.models.QueryHistory doesn't declare an
explicit app_label and isn't in an application in INSTALLED_APPS.
and
Oozie application is not enabled: Model class oozie.models.Job doesn't
declare an explicit app_label and isn't in an application in INSTALLED_APPS.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cloudera/hue/issues/948?email_source=notifications&email_token=AAAEMGP27YDFQ5GWXY23XS3QFQLKVA5CNFSM4INZTVC2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HGJNA2A,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAEMGMZ2FYX4FCZPKUUTNDQFQLKVANCNFSM4INZTVCQ
.

I am using the hue-docker image gethue/hue:4.5.0 and it does shutdown if this error is thrown.
I attached the log of the hue-container.

beeswax should not be blacklisted very probably as it is a core lib. It was replaced by 'hive', could you switch beeswax with 'hive' in the app_blacklist?

Yes, beeswax and oozie should not be blacklisted obviously.

HUE 4.5. Blacklist is empty. Facing the same error. Can't start hue. Traceback after /usr/lib/hue/build/env/bin/supervisor:
$ /usr/lib/hue/build/env/bin/supervisor
[INFO] Not running as root, skipping privilege drop
[21/Oct/2019 12:31:54 +0000] settings     DEBUG    DESKTOP_DB_TEST_NAME SET: /usr/lib/hue/desktop/desktop-test.db
[21/Oct/2019 12:31:54 +0000] settings     DEBUG    DESKTOP_DB_TEST_USER SET: hue_test
[21/Oct/2019 12:31:54 +0000] settings     DEBUG    DESKTOP_DB_TEST_NAME SET: /usr/lib/hue/desktop/desktop-test.db
[21/Oct/2019 12:31:54 +0000] settings     DEBUG    DESKTOP_DB_TEST_USER SET: hue_test
[21/Oct/2019 05:31:57 +0000] decorators   INFO     AXES: BEGIN LOG
[21/Oct/2019 05:31:57 +0000] decorators   INFO     Using django-axes 2.2.0
[21/Oct/2019 05:31:57 +0000] decorators   INFO     AXES: BEGIN LOG
[21/Oct/2019 05:31:57 +0000] decorators   INFO     Using django-axes 2.2.0
Traceback (most recent call last):
File "/usr/lib/hue/build/env/bin/hue", line 14, in
Traceback (most recent call last):
File "/usr/lib/hue/build/env/bin/hue", line 14, in
load_entry_point('desktop', 'console_scripts', 'hue')()
File "/usr/lib/hue/desktop/core/src/desktop/manage_entry.py", line 219, in entry
load_entry_point('desktop', 'console_scripts', 'hue')()
File "/usr/lib/hue/desktop/core/src/desktop/manage_entry.py", line 219, in entry
execute_from_command_line(sys.argv)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/management/init.py", line 364, in execute_from_command_line
execute_from_command_line(sys.argv)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/management/init.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/management/init.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/management/base.py", line 283, in run_from_argv
utility.execute()
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/management/init.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/management/base.py", line 327, in execute
self.check()
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/management/base.py", line 359, in check
include_deployment_checks=include_deployment_checks,
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/management/base.py", line 346, in _run_checks
return checks.run_checks(**kwargs)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/checks/registry.py", line 81, in run_checks
self.execute(*args, **cmd_options)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/management/base.py", line 327, in execute
self.check()
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/management/base.py", line 359, in check
include_deployment_checks=include_deployment_checks,
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/management/base.py", line 346, in _run_checks
return checks.run_checks(**kwargs)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/checks/registry.py", line 81, in run_checks
new_errors = check(app_configs=app_configs)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/checks/urls.py", line 16, in check_url_config
new_errors = check(app_configs=app_configs)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/checks/urls.py", line 16, in check_url_config
return check_resolver(resolver)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/checks/urls.py", line 26, in check_resolver
return check_method()
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/urls/resolvers.py", line 256, in check
return check_resolver(resolver)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/checks/urls.py", line 26, in check_resolver
return check_method()
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/urls/resolvers.py", line 256, in check
for pattern in self.url_patterns:
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/utils/functional.py", line 35, in get
for pattern in self.url_patterns:
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/utils/functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/urls/resolvers.py", line 407, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/utils/functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/urls/resolvers.py", line 400, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module
res = instance.dict[self.name] = self.func(instance)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/urls/resolvers.py", line 407, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/utils/functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/urls/resolvers.py", line 400, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/usr/lib/hue/desktop/core/src/desktop/urls.py", line 50, in
import(name)
File "/usr/lib/hue/desktop/core/src/desktop/urls.py", line 50, in
from desktop.configuration import api as desktop_configuration_api
File "/usr/lib/hue/desktop/core/src/desktop/configuration/api.py", line 32, in
from desktop.configuration import api as desktop_configuration_api
File "/usr/lib/hue/desktop/core/src/desktop/configuration/api.py", line 32, in
from notebook.connectors.hiveserver2 import HiveConfiguration, ImpalaConfiguration
File "/usr/lib/hue/desktop/libs/notebook/src/notebook/connectors/hiveserver2.py", line 48, in
from notebook.connectors.hiveserver2 import HiveConfiguration, ImpalaConfiguration
File "/usr/lib/hue/desktop/libs/notebook/src/notebook/connectors/hiveserver2.py", line 48, in
from beeswax.api import _autocomplete, _get_sample_data
File "/usr/lib/hue/apps/beeswax/src/beeswax/api.py", line 39, in
from beeswax.api import _autocomplete, _get_sample_data
File "/usr/lib/hue/apps/beeswax/src/beeswax/api.py", line 39, in
import beeswax.models
File "/usr/lib/hue/apps/beeswax/src/beeswax/models.py", line 51, in
import beeswax.models
File "/usr/lib/hue/apps/beeswax/src/beeswax/models.py", line 51, in
class QueryHistory(models.Model):
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 118, in new
class QueryHistory(models.Model):
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 118, in new
"INSTALLED_APPS." % (module, name)
RuntimeError: Model class beeswax.models.QueryHistory doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
"INSTALLED_APPS." % (module, name)
RuntimeError: Model class beeswax.models.QueryHistory doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

I encountered the same issue with beeswax via the Hue Docker image.
The Hue documentation is still providing an example with beeswax and oozie. It would be useful to remove it from the documentation.


Snippets: False usage of variable creates regex parsing error

Type: Bug
Good day,
I have encountered that false usage of variables in snippets can lead to side effects in regex parsing.
This is a minimized example of the actual used snippet. The snippet's last line is incorrect since the variable does not exist.
The regex used here creates a header guard of the current file in upper case while the directory until "Source" is cut.
"C++ header guard": {
        //"scope": "C,C++",
        "prefix": "test_guard",
        "body": [
            "// Define to prevent recursive inclusion -------------------------------------",
            "",
            "#ifndef ${TM_FILEPATH/(?:^.*\\\\Source\\\\)?(\\w+)\\W?/${1:/upcase}_/g}",
            "#define ${TM_FILEPATH/(?:^.*\\\\Source\\\\)?(\\w+)\\W?/${1:/upcase}_/g}",
            "",
            "//!< @todo ${file_name} description",
        ],
        "description": "C++ header guard",
        //"isFileTemplate": true
    }

This expected result for the test file is:
// Define to prevent recursive inclusion -------------------------------------

#ifndef COMMON_CONFIGURATION_TEST_HPP_
#define COMMON_CONFIGURATION_TEST_HPP_

//!< @todo file_name description

but for whatever reason, comma seperators are inserted.
// Define to prevent recursive inclusion -------------------------------------

#ifndef COMMON,_CONFIGURATION,_TEST,_HPP,_
#define COMMON,_CONFIGURATION,_TEST,_HPP,_

//!< @todo file_name description

Removing the wrong usage of the variable in the last line of the snippet also removes this issue.
But it is very unexpected that the regex result depends on a completely different line in the snippet. It took me a long time to catch this dependency believing the used regex was false.
I would be happy if you can have a look if this dependency can be removed for developers falling into the same trap in the future.
VS Code version: Code 1.93.0 (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info

Item
Value

CPUs
12th Gen Intel(R) Core(TM) i7-1260P (16 x 2496)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off

Load (avg)
undefined

Memory (System)
31.71GB (18.94GB free)

Screen Reader
no

VM
0%

Extensions (33)

Extension
Author (truncated)
Version

gitlens
eam
15.4.0

boost-test-adapter-xnely
Eri
3.2.8

jenkins-pipeline-linter-connector
jan
1.2.0

hex-fmt
ker
1.0.0

jenkins-doc
Maa
1.7.0

cortex-debug
mar
1.12.1

debug-tracker-vscode
mcu
0.0.15

memory-view
mcu
0.0.25

peripheral-viewer
mcu
1.4.6

rtos-views
mcu
0.0.7

rainbow-csv
mec
3.12.0

git-graph
mhu
1.30.0

debugpy
ms-
2024.10.0

python
ms-
2024.12.3

vscode-pylance
ms-
2024.8.2

jupyter
ms-
2024.8.0

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.19

vscode-jupyter-cell-tags
ms-
0.1.9

vscode-jupyter-slideshow
ms-
0.1.6

remote-ssh
ms-
0.114.1

remote-ssh-edit
ms-
0.86.0

remote-wsl
ms-
0.88.2

cmake-tools
ms-
1.19.51

cpptools
ms-
1.21.6

cpptools-extension-pack
ms-
1.3.0

remote-explorer
ms-
0.4.3

rust-analyzer
rus
0.3.2104

code-spell-checker
str
3.0.1

cmake
twx
0.0.17

vscode-lldb
vad
1.10.0

vscode-icons
vsc
12.8.0

vscode-proto3
zxh
0.5.5

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
g316j359:31013175
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl2:31104044
refactort:31108082
pythonrstrctxt:31112756
flighttreat:31119336
wkspc-onlycs-t:31132770
wkspc-ranged-c:31125598
fje88620:31121564

can confirm
I would suspect the commas are coming from JavaScript collapsing a string array into a single string
as it defaults to using , to join the values together
the commas are being added between ${1:/upcase} and _
as a workaround, I suggest to use a tabstop placeholder ${1:file_name}

possible lead
https://github.com/microsoft/vscode/blob/83f695ad2ae4befe613dfd1bb1b1d8547d647d53/src/vs/workbench/contrib/snippets/browser/snippetsFile.ts#L65-L75

an error also comes up when in isExtensionDevelopment
[RedCMD.snippets-snippets]: One or more snippets from the extension 'snippets-snippets' very likely confuse snippet-variables and snippet-placeholders (see https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax for more details)


Update README.md

Description
typo fix in link name
Issues
n/a
Type of change

[x] Doc fix (non-breaking improvement)

Thank you for your PR.


Merge release 2.1.0 into master branch

What does this PR do?
This PR does the merge of release 2.1.0 into master branch with all the conflicts resolved (there was one conflict in AndroidConfig.kt).
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Codecov Report

Merging #1606 (b37900b) into develop (1dfff18) will decrease coverage by 0.24%.
Report is 22 commits behind head on develop.
The diff coverage is n/a.

:exclamation: Current head b37900b differs from pull request most recent head c9bacb3. Consider uploading reports for the commit c9bacb3 to get more accurate results

@@             Coverage Diff             @@
##           develop    #1606      +/-   ##
===========================================
- Coverage    83.76%   83.52%   -0.24%
===========================================
  Files          443      443
  Lines        15135    15135
  Branches      2265     2265
===========================================
- Hits         12677    12640      -37
- Misses        1869     1891      +22
- Partials       589      604      +15

see 21 files with indirect coverage changes


Help: How to debug connectionReset/ConnectionAborted issue

Hi
I'm trying to setup a webserver with Actix and Lapin.
I have a Lapin amq connection to a RabbitMQ docker container. The connection is initiated from within an actix request. It keeps failing with either ConnectionReset or ConnectionAborted.
I can connect to the rabbit from Python and do a full test cycle, so the RabbitMQ is functioning normally.
I know that actix uses tokio runtime under the hood (the runtime per thread version), and I'm using with_tokio on the connection properties.
I'm not sure how to go about debugging this. I found it very hard to debug with gdb since the async stuff turn me around and then some...
This is the relevant output from running with log trace enabled.
[2020-10-15T19:15:24Z TRACE amq_protocol_tcp] Connecting to <IP_ADDRESS>:32897
[2020-10-15T19:15:24Z DEBUG lapin::channels] create channel with id 0
[2020-10-15T19:15:24Z TRACE lapin::channel] channel 0 send_frame
[2020-10-15T19:15:24Z TRACE lapin::channel] channel 0 wake
[2020-10-15T19:15:24Z TRACE mio::poll] registering event source with poller: token=Token(1), interests=READABLE | WRITABLE
[2020-10-15T19:15:24Z TRACE lapin::reactor] reactor poll
[2020-10-15T19:15:24Z TRACE pinky_swear] Called from future, registering waker. promise=[ProtocolHeader.Ok]
[2020-10-15T19:15:24Z TRACE lapin::reactor] reactor poll done
[2020-10-15T19:15:24Z TRACE lapin::io_loop] io_loop run
[2020-10-15T19:15:24Z TRACE pinky_swear] Called from future, registering waker up in chain. promise=[ProtocolHeader.Ok]
[2020-10-15T19:15:24Z TRACE lapin::reactor] reactor poll
[2020-10-15T19:15:24Z TRACE lapin::socket_state] Got event for socket: Wake
[2020-10-15T19:15:24Z TRACE lapin::socket_state] Got event for socket: Wake
[2020-10-15T19:15:24Z TRACE lapin::reactor] reactor poll done
[2020-10-15T19:15:24Z TRACE pinky_swear] Called from future, registering waker. promise=[ProtocolHeader]
[2020-10-15T19:15:24Z TRACE lapin::socket_state] Got event for socket: Writable
[2020-10-15T19:15:24Z TRACE lapin::reactor] reactor poll
[2020-10-15T19:15:24Z TRACE lapin::socket_state] Got event for socket: Closed
[2020-10-15T19:15:24Z TRACE lapin::socket_state] Got event for socket: Readable
[2020-10-15T19:15:24Z TRACE lapin::socket_state] Got event for socket: Writable
[2020-10-15T19:15:24Z TRACE lapin::internal_rpc] Queuing internal RPC command: CloseConnection(200, "OK", 0, 0)
[2020-10-15T19:15:24Z TRACE pinky_swear] Called from future, registering waker. promise=[ProtocolHeader.Ok]
[2020-10-15T19:15:24Z TRACE pinky_swear] Resolving promise. promise=[ProtocolHeader.Ok]
[2020-10-15T19:15:24Z TRACE pinky_swear] Called from future, registering waker up in chain. promise=[ProtocolHeader.Ok]
[2020-10-15T19:15:24Z TRACE pinky_swear] Got data, waking our waker.
[2020-10-15T19:15:24Z TRACE pinky_swear] Called from future, registering waker. promise=[ProtocolHeader]
[2020-10-15T19:15:24Z ERROR lapin::channels] Connection error: IO error: connection reset
[2020-10-15T19:15:24Z TRACE pinky_swear] Resolving promise. promise=[ProtocolHeader]
[2020-10-15T19:15:24Z TRACE pinky_swear] Got data, waking our waker.
[2020-10-15T19:15:24Z TRACE pinky_swear] Called from future, registering waker. promise=[ProtocolHeader.Ok]
[2020-10-15T19:15:24Z TRACE pinky_swear] Got data, notifying next in chain.
[2020-10-15T19:15:24Z TRACE pinky_swear] Got data, waking our waker.
[2020-10-15T19:15:24Z TRACE pinky_swear] Called from future, registering waker up in chain. promise=[ProtocolHeader.Ok]
[2020-10-15T19:15:24Z TRACE pinky_swear] Called from future, registering waker. promise=[ProtocolHeader]
[2020-10-15T19:15:24Z TRACE lapin::reactor] reactor poll done
[2020-10-15T19:15:24Z TRACE pinky_swear] Dropping promise. promise=[ProtocolHeader]
[2020-10-15T19:15:24Z TRACE pinky_swear] Dropping promise. promise=[ProtocolHeader.Ok]

Would you happen to have some kind of minimal reproducer?

I've tried to pare it down, and failed. But at least now I have a better idea what's happening, even if not why.
In a test, I'm creating a rabbitmq container, then trying to connect to it, through actix and lapin. That fails, but if I connect to a rabbitmq container that is already running, it succeeds. While I'm still not sure why, it's probably not a lapin issue.


Failed to parse a switch statement before an update expression

Problem description
Consider the following snippet where error happens if pos++ is changed to ++pos .
switch (c) {
case '\r':
case '\n':
case '\t':
case ' ':
          return;
case '"':
case '\'':
        setReplacementLength(getReplacementLength() + pos - offset + 1);
      return;
  }
  ++pos;

Parse the snippets with following code
snippets_tree = java_parser.parse(bytes(snippets, 'utf8')).root_node
snippets_tree.children

Expected parse tree output (optional)
[<Node kind=switch_expression, start_point=(1, 0), end_point=(12, 3)>,
 <Node kind=expression_statement, start_point=(13, 2), end_point=(13, 8)>]

Actual parse tree output (optional)
[<Node kind=expression_statement, start_point=(1, 0), end_point=(13, 8)>]

And this expression statement contains ERROR node
snippets_tree.children[0].children

[<Node kind=update_expression, start_point=(1, 0), end_point=(13, 4)>,
 <Node kind=ERROR, start_point=(13, 4), end_point=(13, 7)>,
 <Node kind=";", start_point=(13, 7), end_point=(13, 8)>]

Seems fixed now


Unregister-ScheduledJob -Name 'Name' -WhatIf does not honor whatif

Steps to reproduce
Import-Module PSScheduledJob
Register-ScheduledJob -Name 'test' -ScriptBlock {echo 'hello world'}
Unregister-ScheduledJob -Name test -WhatIf
Get-ScheduledJob
Expected behavior
I expect the job to still be there.
It does work with Unregister-ScheduledJob -Id 11 -WhatIf.
Actual behavior
The scheduled job is corrupted.
Get-ScheduledJob : Cannot get the test scheduled job because it is corrupted or in an irresolvable state. Because
it cannot run, Windows PowerShell has deleted test and its results from the computer. To recreate the scheduled
job, use the Register-ScheduledJob cmdlet. For more information about corrupted scheduled jobs, see
about_Scheduled_Jobs_Troubleshooting.
Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.14393.1198
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.1198
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

The cmdlet isn't still ported. So please duplicate the report to UserVoice too.

I have duplicated the report in UserVoice.
Jason Wasser
On Sat, Jun 3, 2017 at 3:11 AM, Ilya<EMAIL_ADDRESS>wrote:

The cmdlet isn't still ported. So please duplicate the report to UserVoice
https://windowsserver.uservoice.com/forums/301869-powershell too.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PowerShell/issues/3920#issuecomment-305957332,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALik7-4XHZdm_8-DUppIBUKBT3OsxLXvks5sAQcXgaJpZM4NuhLs
.

@wasserja Please add cross-links to/from UserVoice.

https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/19501987-unregister-scheduledjob-name-name-whatif-does


big performance difference on tensorRT

Hi, I just tried the demo code below, in your result, the [TensorRT (FP16)] result is much better than others. However, the results I got are quite different. there is not such a big difference between [TensorRT (FP16)]  and others (the output is attached). I wonder if you know what happened or how I can figure out the reason for that. Thank you.
docker run -it --rm --gpus all \
  -v $PWD:/project ghcr.io/els-rd/transformer-deploy:0.4.0 \
  bash -c "cd /project && \
    convert_model -m \"philschmid/MiniLM-L6-H384-uncased-sst2\" \
    --backend tensorrt onnx \
    --seq-len 16 128 128"

Inference done on Tesla M60
latencies:
[Pytorch (FP32)] mean=6.31ms, sd=1.32ms, min=4.48ms, max=10.75ms, median=6.39ms, 95p=8.63ms, 99p=9.33ms
[Pytorch (FP16)] mean=8.81ms, sd=2.02ms, min=6.59ms, max=55.42ms, median=8.70ms, 95p=11.20ms, 99p=12.16ms
**### [TensorRT (FP16)] mean=4.59ms, sd=1.97ms, min=2.27ms, max=10.38ms, median=4.47ms, 95p=8.02ms, 99p=8.86ms**
[ONNX Runtime (FP32)] mean=5.03ms, sd=2.00ms, min=2.64ms, max=10.45ms, median=5.16ms, 95p=8.37ms, 99p=9.17ms
[ONNX Runtime (optimized)] mean=5.19ms, sd=2.04ms, min=2.80ms, max=10.59ms, median=5.25ms, 95p=8.67ms, 99p=9.40ms

Also, I got this error while running the code above
Traceback (most recent call last):
  File "/usr/local/bin/convert_model", line 8, in <module>
    sys.exit(entrypoint())
  File "/usr/local/lib/python3.8/dist-packages/transformer_deploy/convert.py", line 358, in entrypoint
    main(commands=args)
  File "/usr/local/lib/python3.8/dist-packages/transformer_deploy/convert.py", line 329, in main
    check_accuracy(
  File "/usr/local/lib/python3.8/dist-packages/transformer_deploy/convert.py", line 82, in check_accuracy
    f"{engine_name} discrepency is too high ({discrepency:.2f} > {tolerance}):\n"
  File "/usr/local/lib/python3.8/dist-packages/torch/_tensor.py", line 678, in __array__
    return self.numpy()
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

Hi @HireezShanPeng,
The big performance difference comes from RTX 3090 card used in the readme.
https://pytorch.org/blog/accelerating-training-on-nvidia-gpus-with-pytorch-automatic-mixed-precision/
https://www.tensorflow.org/guide/mixed_precision#supported_hardware
https://developer.nvidia.com/blog/mixed-precision-programming-cuda-8/
M60 doesn't support 16bit precision. There is no performance advantage of running a 16-bit model on M60.
logs on my 1080Ti, which also doesn't support 16-bit precision

https://github.com/NVIDIA/TensorRT/issues/218

Thank you @kamalkraj for your answer. Just to complete:

when there is no tensor cores dedicated to FP16, mixed precision is usually slower as we add some casting (Fp32 <-> FP16) here and there involving plenty of tensor copies;
if you are doing cloud inference, T4 is a "cheap" option (regarding other GPU prices) which supports FP16. However, you need to keep in mind that recent GPUs have much more FP16 tensor cores than the good old T4 and the difference with FP32 is even higher.


Click on day without file existing does not do anything - throws "Folder already existing" error on console

After the latest update (today) I cannot click on days that do not yet have a daily file and have it create that file for me. It basically just yields a "Folder already exists" message on the console and does not display any error to the user.
This is on desktop with the most current obsidian public version.
Downgrading to an earlier version of the calendar plug-in does restore the "create new daily" functionality for me.

Having the same issue (new user, clean install)

Hi thanks for the quick report @bietiekay! I just published a new version with the fix. Sorry about that.

works! Thanks a lot for the quick fix!


Question about Partition Strategy using id as partition key

Hi, my question is related to https://github.com/MicrosoftDocs/azure-docs/issues/46354
I added a comment there but the ticket is closed hence I create this ticket for tracking.
Client : .NET core app with MongoDBDriver 2.8.1
Server: Cosmos MongoDB with Wire protocol 3.4
I have a large collection name orders and choose the unique orderId as index and partition key. Obviously there is 1 document per logical partition. The order document size is quite large, about 90KB.
In Production, the metrics shows that Avg Throughput  is 100K RU/s. The metrics page also show that we have about 16 partitions, 30GB each.

Is there any better strategies to choose partition key to reduce the consuming RU & improve performance? When there is a spike of data to write, the throughput can be seen massively & unevenly distributed like the photo below and we got a lot of exceptions

Command update failed: Message: {"Errors":["Request rate is large. More Request Units may be needed, so no changes were made. Please retry this request later. Learn more: http://aka.ms/cosmosdb-error-429"]}
ActivityId: 567b2295-0000-0000-0000-000000000000, Request URI: /apps/98d69d4b-03ce-48bb-aa1e-5e7bbd7b26a9/services/8904d4ba-be8d-494c-8a6f-7f7b0c1d3c32/partitions/41296cba-03c9-4d7b-bdcd-f983311b442c/replicas/132243222105318549p/, RequestStats:
RequestStartTime: 2020-02-27T03:56:01.3650496Z, RequestEndTime: 2020-02-27T03:56:01.3650496Z,  Number of regions attempted:1
ResponseTime: 2020-02-27T03:56:01.3650496Z, StoreResult: StorePhysicalAddress: rntbd://cdb-ms-prod-australiaeast1-fd6.documents.azure.com:14332/apps/98d69d4b-03ce-48bb-aa1e-5e7bbd7b26a9/services/8904d4ba-be8d-494c-8a6f-7f7b0c1d3c32/partitions/41296cba-03c9-4d7b-bdcd-f983311b442c/replicas/132243222105318549p/, LSN: 5940891, GlobalCommittedLsn: 5940891, PartitionKeyRangeId: , IsValid: True, StatusCode: 429, SubStatusCode: 3200, RequestCharge: 0.38, ItemLSN: -1, SessionToken: , UsingLocalLSN: False, TransportException: null, ResourceType: StoredProcedure, OperationType: ExecuteJavaScript
, SDK: Microsoft.Azure.Documents.Common/2.9.2.

This Physical partitions doc say we can choose to limit the number of logical partitions. Can i use the result of orderId mod desired-partition-count  as the partition key value to do that?
Unlike logical partitions, physical partitions are an internal implementation of the system.
You can't control the size, placement, or count of physical partitions, and you can't control the
mapping between logical partitions and physical partitions.
However, you can control the number of logical partitions and the distribution of data,
workload and throughput by choosing the right logical partition key.

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

ID: d52f6d2e-f852-45ce-c205-ee4038d5ecd1
Version Independent ID: e45b7f29-4d75-0dda-0f13-38b644213840
Content: Partitioning in Azure Cosmos DB
Content Source: articles/cosmos-db/partitioning-overview.md
Service: cosmos-db
GitHub Login: @markjbrown
Microsoft Alias: mjbrown

@vanthoainguyen Thank you for your query, our team will further look into it and get back to you at the earliest.

@Mike-Ubezzi-MSFT can you assign this to @ThomasWeiss ?
Thanks.

@vanthoainguyen can you please send your Azure subsription ID and Cosmos DB account name to thweiss (at) microsoft (dot) com, so I can give you the best recommendation?

As discussed, I've found out that it's totally fine to have _id as the partition key.
The problem i observed is not because of the chosen partition strategy but the way we model the document that makes it really big over time and there are recent spikes in writing operations.
This is from @ThomasWeiss

As usual with non-relational databases, you have to optimize your data model for your most important operations

And in our cases it's the WRITE operation so we will have to fix it.
Closing now.


typo: Condtion -> Condition

@HongGit, do you know whether SAMLUnableToLoadConditions and SAMLUnableToLoadCondition are actually the same exception, or whether they are separate exceptions?

Thanks for catching these, @nschonni. I'm wondering whether this is an accidental duplication with a typo, or whether there actually are two similar exceptions with the same exception description. For the moment, I mark this as waiting on feedback.

Unfortunately, in IdentityModel\System\IdentityModel\Tokens\SamlAssertion.cs, it is referencing "SAMLUnableToLoadCondtions".  Here is the line of code:
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLUnableToLoadCondtions)));

Thanks, @HongGit. I'll merge your PR now, @nschonni.

@rpetrusha sorry, I was not explicitly clear.  Could we revert this change?  The source code was referencing SAMLUnableToLoadCondtions.  Update the spelling will break the reference, so this change need to be reverted.

Ah. Sorry about that, @HongGit. I'll open a PR to revert the change right now.

Should the other line be fixed, @HongGit, or does that also need to be reverted, or should it be deleted:

I don't see it in SAMLAssertion.cs on index.

@rpetrusha I think both should be fixed.  you could find the file at https://github.com/microsoft/referencesource/tree/master/System.IdentityModel/System/IdentityModel/Tokens.
From the source code resource file, there is only one entry for SAMLUnableToLoadCondtion, not sure why there are two entries in this file?.

@rpetrusha there should be one SAMLUnableToLoadCondtion and one SAMLUnableToLoadCondtions.

OK. I'll revert the second change as well, @HongGit.


Add more documentation

Round out core client examples
Update a few Sphinx configuration attributes

Coverage remained the same when pulling 78f488b2f5d50a4d6dee70a19d9b661017fbd5b8 on krismolendyke:docs into 2aebb80606b1e144ff70f14c17f93123d340a56a on monetate:master.


Introduce term "runtime interchangeable" for types that aren't the same type, but have an identity conversion

Fixes #730
This landed slightly differently than originally discussed:

the uses of "considered equivalent" were only in conversions where the concept of types that aren't the same have identity conversions.
The uses of "the same type" often meant "the same type". However, not always. In places like overriding methods, partial method definitions, and so on, the types could be those that are runtime interchangeable (meaning any identity conversion).

So, the term "runtime interchangeable" is introduced in the clause on identity conversions. It refers to types that are not the same, but have identity conversions.
I also moved text from the tuple type to the identity conversions clause to define those conversions.
Replace the term "the same type" with "the same type or runtime convertible" when that's what was meant.

Comment from the meeting: Where "the same type or runtime interchangeable" is used, replace with "runtime interchangeable" only.
Instead of "runtime interchangeable", use "identity convertible" for this concept.


Add Web3 Ticketing

Version is 0.0.2
(This will be invalid because the icon is missing, will follow up in another commit)
Closes #377

Updated to 0.0.5 with a valid icon now, ready to review!


[WIP]add connectors  in token convert

Set connector for each resource toke

:x: Build AElf <IP_ADDRESS>95 failed (commit https://github.com/AElfProject/AElf/commit/a11254d0d0 by @llypb)

:white_check_mark: Build AElf <IP_ADDRESS>01 completed (commit https://github.com/AElfProject/AElf/commit/e0ee0e014c by @EricBlack)

:x: Build AElf <IP_ADDRESS>11 failed (commit https://github.com/AElfProject/AElf/commit/198df57047 by @llypb)

:white_check_mark: Build AElf <IP_ADDRESS>19 completed (commit https://github.com/AElfProject/AElf/commit/9b7648dab2 by @llypb)

:x: Build AElf <IP_ADDRESS>22 failed (commit https://github.com/AElfProject/AElf/commit/c17ef2cada by @llypb)

:x: Build AElf <IP_ADDRESS>28 failed (commit https://github.com/AElfProject/AElf/commit/2694ac056e by @llypb)

:x: Build AElf <IP_ADDRESS>53 failed (commit https://github.com/AElfProject/AElf/commit/144fdc7c0f by @llypb)

:white_check_mark: Build AElf <IP_ADDRESS>00 completed (commit https://github.com/AElfProject/AElf/commit/ead17bc4cc by @YueZh127)

:white_check_mark: Build AElf <IP_ADDRESS>20 completed (commit https://github.com/AElfProject/AElf/commit/e671406b9d by @rosona)

Improve CalculateFeeService use strategy pattern in branch: AddTxFee