jvm_options may not be overridable because of sort in template

Module version: 6.4.0 / master
Puppet version: all
OS and version: all

Bug description
Trying to set the jvm_option -Xms1024m does not work. The resulting jvm.options-File will look like this:
...
-Xms1024m
-Xms2048m
-Xmx1024m
-Xmx2048m
...

This is because of a default -Xms2048m which is set in jvm.options.erb and @jvm_options.sort.each in the same template. Sorting all keys of the jvm_options-Array results in -Xms2048m being written to the File after -Xms1024m. So effectively  the default will override what is defined in jvm_options-Array.
How to reproduce
elasticsearch::jvm_options:
  - '-Xms1024m'
  - '-Xmx1024m'

Quickfix
Not nice but effective: Skipping sort will still write both options to jvm.options-File but java will only consider the last occurrence of the same key.

as workaround the version prefix described in https://github.com/elastic/puppet-elasticsearch/issues/1032#issuecomment-642499082 works.


Triggers when click on text with "commandlike" content

If i click on text inside note with words like "links", "template", "backlinks" it triggers.
Example:
# MyNote

template
## Links:

## Backlinks:

When i click on template, Links or Backlinks it triggers

Ouch, don't know why I forgot to ignore editor content.
Sorry about that.


Specific SVG not showing

Mirror of https://b.corp.google.com/issues/184544871.
Looks like it only reproduces on one platform (Android).

The next step here is to evaluate whether the svg here is displayed properly in a Flutter app on an Android device.

This SVG renders in the demo app for flutter_svg:

That screenshot is on macOS desktop - I've checked on Android and it works there as well.

Per Jason, we haven't been able to reproduce this issue and there has been no progress on the internal issue in the interim.

The downstream issue has been closed.


oxDNA export

Hi guys, great thanks for your work.
I have a great problem with exporting structures from scadnano to oxDNA.

any 3D structure designed in scadnano if I directly export to oxDNA get's flattened regardless of the lattice.
if I first export the structure to candnano2 and import using taco -> the structures look turned inside out.
Attached is a 12hb  exhibiting all these issues.
And screenshots of the 2 mentioned export options.
220921_0845_12hb_1kb.zip

Hmm, I can reproduce this behavior. Not sure what's going on.
I tried exporting with the Python package and it seems to work:

So I suggest that as a workaround for you for now. Install the scadnano Python package using the instructions here: https://github.com/UC-Davis-molecular-computing/scadnano-python-package#installation
Then put this code in a file named export.py:
import scadnano as sc

def main() -> None:
    design = sc.Design.from_scadnano_file('220921_0845_12hb_1kb.sc')
    design.write_oxdna_files()

if __name__ == '__main__':
    main()

FInally, run python export.py at the command line.
It will generate two files export.dat and export.top.

great thanks, Dave.
It happens in both Hex and SQ lattices.

Here's a minimal example of the problem. It appears 3D coordinates are simply being calculated incorrectly, possibly by the function util.grid_position_to_position3d. This also fails to convert the square grid to the none grid:
In square grid:

After converting to none grid:

In the above image, helices 1 and 2 are on top of each other.


[Feature Request] Rumble Support

First of all, thanks for the great mod, I thought some issues would never be fixed on the Steam version since almost anyone has it.
About the request, the PC version is notorious for not having any rumble support. Do you plan to add it?
Xbox button prompts and/or texture injection would also be awsome.

Rumble might be difficult since game uses DirectInput, and seems the dinput driver for xinput controllers is actually missing rumble support for whatever reason.
Apparently xidi can let xinput rumble work with dinput but that messes up some of the games controls (and also corrupts your save if you aren't using tweaks 0.2.3+...), controls might be fixable by editing xidi.ini though.
If anyone wants to try that out, you can rename the tweaks dinput8.dll to winmm.dll and let xidi use dinput8.dll
When I briefly tried it I didn't get any rumble response though, so game might not even be using dinput rumble at all... If I could figure out where rumble is meant to be applied in the code maybe something could be patched in for it, haven't really been able to work that out yet (guess maybe it could just be tied in to engine acceleration, or maybe sound effects...)
Hoping to figure something for button prompts eventually too, heard the textures are all included in the files already, maybe just have to change a number somewhere to make it switch to different ones.
For texture changes it looks like FXT dev did some work on tools for it, but that might just be for the UI/HUD textures, AFAIK game is using all standard D3DX functions for loading textures in so maybe that could be hooked and redirected to some folder instead, will try checking that out soon.

AFAIK game is using all standard D3DX functions for loading textures in so maybe that could be hooked and redirected to some folder instead

Seem to have something working for this, able to dump them out to a folder & also replace them in the game if a DDS exists for it:

With AutoCrispy + texconv.exe + ESRGAN you can get them all upscaled to 4x pretty easily too, didn't notice any visual glitches from it neither (just make sure autocrispy is set to "Force Dx9" in the output texconv chain)
Needs more work on actually loading the textures in though, atm it's just reading from disk whenever game requests it which causes some nasty stutters, some kind of cache would help a lot.
Unfortunately that the game is 32bit with 4GB memory limit, upscaled folder is already at 5GB just from playing on 3 stages :/

Did you patach the exe to use 4GB instead of 2GB? Anyway, 5GB from upscaled texture is huge. The ones I'm most interested in changing are the HUD/UI ones, they are strechted and are low-res.
Great to know you were able to dump and load them. I've already used ESRGAN for some texture packs.
About the rumble, I'm going to give xidi, thanks for the tip.

Seems the HUD/UI textures are the only ones that method doesn't seem to work with, I think those might be using some D3DXSprite stuff to handle drawing them, maybe just have to look into hooking that too.
4GB patching the exe would probably help, didn't try game out with it yet but guess it would run fine, would still make the texture cache limited to 3GB or so though..
Maybe some "smart" cache could be setup so it could know what stage is loaded in, then it could unload textures for other areas and only cache the current stage instead, hopefully would reduce how much needs to load in, hm...
If you want to try xidi you should be able to fix the controls with this xidi.ini:
[Mapper]
Type=XInputSharedTriggers

[Workarounds]
ActiveVirtualControllerMask=1

Didn't notice any rumble from that on my end though, could be because I'm using Series X controller though?

I also didn't have any luck with xidi, I'm also using a Series X controller. Anyway, I don't think that's the cause, the game never had any rumble regardless of the controller used, maybe it simply wasn't implemented.
About the HUD/UI textures, you can dump them, but not load or you can't even dump? FXT could change the button prompts and unstretch the menus, maybe you should look into it.

Anyway, I don't think that's the cause of the issue, the game never had any rumble regardless of the controller used, maybe it simply wasn't implemented.

Yeah sadly seems that's the case, tried taking a look in the Xbox ver and found the code for setting vibration there, seems to check stuff like current stage/car/speed/gear to calculate the vibration values, but sadly seems all of that was stripped out on PC side, what a waste :(
Fortunately most of the Xbox ver is very close to PC though, same memory structures/engine functions/etc, so had a try at copying the functions over from Xbox entirely, took a little work but seem to have something working 😸
I never really played it on Xbox before so not really sure how the games rumble is meant to react like, seems to be working for gear shifts/drifting/crashes/etc, but maybe could still be something missing with it.
Here's a build if you'd like to try it:
Outrun2006Tweaks-0.2.4-xinputVibrationTest.zip
Make sure to set VibrationMode in the ini to enable it, there's some info about using impulse triggers in there as well.
Also this is using xinput to handle the vibration so shouldn't need to use xidi or anything.

I've made a comparison with the PS2 version and everything seems to be working fine, great work!
About the impulse triggers, are you sure the triggers' motors are vibrating? VibrationMode 2 or 3 seem to only change the way the maion motors work, but I may be wrong. In Forza the impulse triggers have a complete different feel.

Seems to be working, if I edit x1nput.ini and only enable triggers there it feels like they work at least, the defaults there did only set it to 0.25x though, maybe hard to notice with that.
If you add these into your game folder does it make any difference for you?
x1nput_1.3-C2C.zip

Yes, the dll makes the triggers vibrate pretty hard.
Anyway, I think they should vibrate only on acceleration and braking accordingly, they shouldn't vibrate at crashes or other actions.

Feature implemented, closing this issue. I'm going to open a new one for the texture dumping/injection/xbox buttom prompts.
Thanks!


Fix inconsistencies with cluster metrics for memory and CPU

Rancher Server Setup

Rancher version: 2.6.3+
Installation option (Docker install/Helm Chart):

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): reported on 1.21.8

Proxy/Cert Details:

Information about the Cluster

Kubernetes version: 1.21.8
Cluster Type (Downstream): 10 clusters

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider):
Underlying Infrastructure: AWS/GCE, EKS/GKE, VMWare/KVM,
Baremetal: Open Stack

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)

If custom, define the set of permissions:

Describe the bug
UI has been looking into https://github.com/rancher/dashboard/issues/5430 tied to complaints around the cluster metrics upon upgrading from Kubernetes 1.20.x to 1.21.x.
We're showing inaccurate numbers tied to CPU & memory in the Cluster Overview page for downstream clusters whereby we're showing less than the actual usage. What we need is a way to accurately report the resource usage that people expect so that they know what is happening on their
Since it's a "very expensive" operation for the frontend to grab all the correct "usage" for MEM, CPU, PODS (at least 2 extra API requests per cluster) on the homepage, for 2.6.5, UI  decided to remove the "reserved" information from the MEM and CPU until we have a proper technical solution to display the usage in the cluster list in the homepage
For 2.6.6, the main objectives are to show the "usage" everywhere for MEM, CPU, PODS (applicable views), with consistent numbers and units throughout the UI. Technically the values that we were displaying there were for reserved and not used resources, which is the data the users really want to look at. To add that data on the homepage, we would need changes to the backend. Unfortunately this has been a big source for inconsistency claims.
One proposal from the backend has been adding status.usage to git repo object responses but I'd defer to @aalves08 for additional context here.
Internal reference: SURE-4301
Expected Result
The expected results as noted in the dashboard ticket:

we should display correct metrics
we should display correct metrics
the POD numbers should match
the units should be consistent (GiB)
this should result in the same values of PODS for both (applicable for single machine count/node Clusters)

@gaktive exactly the same as this message. 🙏
Would be really nice to include the usage in management.cattle.io.cluster resource.
Just to mention that our "source of truth" in terms of metrics is the counts endpoint:
BASE-URL/k8s/clusters/CLUSTER-ID/v1/counts
FYI @nwmac

I have the same bug in my cluster.
Cluster type: Downstream

In this screen used memory 177%

This will be particularly difficult to confirm because we will need a good way to confirm we have accurate measurements coming from upstream to begin with.


Sponsors should be in footer of every page

The sponsors logos, as on the home page, should be in the footer of every page:

That would please our sponsors at no cost.

I'm not OK to add them on every page. Just on talk pages => Done
But I think it should be nice to add a feature to easily find the old sponsors with an URL like hhtp://localhost:8080/2016/sponsors

Done


[ADD View] basic_toast

Note: To add multiple Views, open a separate issue for each view.
Details of the view(s) you want to add

basic_toast
https://pub.dev/packages/basic_toast
toast

added Thanks.


Slash commands throw console error for {{CLIPBOARD}} on unsecured http (non-localhost)

Bug Report
Installation Method
Installed via docker. Full notes here: https://lewismoten3.wordpress.com/2024/10/21/setting-up-llm-on-raspberry-pi/
Environment

Open WebUI Version: v0.3.32

Ollama (if applicable): 0.3.14

Operating System: Ubuntu 24.04.1 LTS

Browser (if applicable): Chrome 129.0.6668.101 (Official Build) (arm64)

Confirmation:

[x] I have read and followed all the instructions provided in the README.md.
[x] I am on the latest version of both Open WebUI and Ollama.
[x] I have included the browser console logs.
[n/a] I have included the Docker container logs.
[x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

List of prompts should disappear
Prompt textbox should be populated with the prompt content
No error should appear on the console

Actual Behavior:

List of prompts appear frozen
Prompt textbox is not populated
Error appears on console

Description
Bug Summary:
During a chat, type forward slash in the prompt. A list of prompts are displayed. Click Enter, or arrow keys, tab key, or click the command with your mouse. Nothing happens. When viewing the console, an error appears each time.
Reproduction Details
Steps to Reproduce:

create a prompt in the workspace/prompts
open a chat
in the prompt box, type forward slash character "/"
Click Enter - nothing happens
Click prompt with mouse - nothing happens
Use arrow keys - nothing happens
Click escape key - console.log says 'Escape", but list of prompts remain
Click backspace - forward slash erased, prompt list disappears
type forward slash character "/" again
same behavior
refresh the browser window
same behaviors
try typing out the name of the prompt and hitting enter

Logs and Screenshots
Browser Console Logs:
Prompts.svelte:45 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'readText')
    at d (Prompts.svelte:45:52)
    at Array._ (Prompts.svelte:153:9)
    at HTMLButtonElement.d (Prompts.svelte:165:22)
    at HTMLTextAreaElement.ge (MessageInput.svelte:589:34)
d @ Prompts.svelte:45
_ @ Prompts.svelte:153
d @ Prompts.svelte:165
ge @ MessageInput.svelte:589Understand this error

See the code base here:
https://github.com/open-webui/open-webui/blob/c2d1a3164e0a310f77a88ede2938c6adb58a334f/src/lib/components/chat/MessageInput/Commands/Prompts.svelte#L45
The issue appears to be with the clipboard. There needs to be a check to verify navigator.clipboard is defined - especially if Open WebUI is running over http instead of https, and its not accessed via localhost. For security reasons, navigator.clipboard is not available when you're on a non-secure connection.
if (command.content.includes('{{CLIPBOARD}}')) {
			const clipboardText = await navigator.clipboard.readText().catch((err) => {
				toast.error($i18n.t('Failed to read clipboard contents'));
				return '{{CLIPBOARD}}';
			});

Docker Container Logs:
n/a
Screenshots/Screen Recordings (if applicable):

Additional Information
I only have one prompt that I had setup after watching a Video about them, and followed the instructions to create the prompt. See Matt Williams: Is Open Webui The Ultimate Ollama Frontend Choice?
This is the export of that prompt:
prompt-export-1729595990930.json

See here for a potential fix (untested) https://github.com/open-webui/open-webui/commit/50c5bf558b2a826e6dcb29513ba2799c8b60761f


llamafy_qwen.py转QWEN模型，转好后无法加载

Reminder

[X] I have read the README and searched the existing issues.

Reproduction
传参
python llamafy_qwen.py /home/2tdisk/working/AI/model/QWen14BBase2LLaMA /home/2tdisk/working/AI/model/QWen14BBase2LLama 10GB
日志信息：
===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please run
python -m bitsandbytes
and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
bin /home/johnzyx/environment/anaconda-env/python3.10/lib/python3.10/site-packages/bitsandbytes-0.39.1-py3.10.egg/bitsandbytes/libbitsandbytes_cuda117.so
CUDA SETUP: CUDA runtime path found: /home/johnzyx/environment/anaconda-env/python3.10/lib/libcudart.so.11.0
CUDA SETUP: Highest compute capability among GPUs detected: 8.9
CUDA SETUP: Detected CUDA version 117
CUDA SETUP: Loading binary /home/johnzyx/environment/anaconda-env/python3.10/lib/python3.10/site-packages/bitsandbytes-0.39.1-py3.10.egg/bitsandbytes/libbitsandbytes_cuda117.so...
[2024-01-02 18:11:07,018] [INFO] [real_accelerator.py:133:get_accelerator] Setting ds_accelerator to cuda (auto detect)
Convert format: 100%|██████████| 323/323 [00:00<00:00, 389522.77it/s]
Save weights: 100%|██████████| 3/3 [00:16<00:00,  5.57s/it]
Model weights saved in /home/2tdisk/working/AI/model/QWen14BBase2LLama
Model config saved in /home/2tdisk/working/AI/model/QWen14BBase2LLama/config.json
然后文件夹里只有config.json，pytorch_model.bin.index.json，pytorch_model-00001-of-00003.bin，pytorch_model-00002-of-00003.bin，pytorch_model-00003-of-00003.bin 这5个文件
然后运行：
python src/web_demo.py
--model_name_or_path /home/2tdisk/working/AI/model/QWen14BBase2LLama
--template qwen
--quantization_bit 4
报错：
[INFO|configuration_utils.py:802] 2024-01-02 18:11:48,597 >> Model config LlamaConfig {
"_name_or_path": "/home/2tdisk/working/AI/model/QWen14BBase2LLama",
"architectures": [
"LlamaForCausalLM"
],
"attention_bias": true,
"attention_dropout": 0.0,
"bos_token_id": 1,
"eos_token_id": 2,
"hidden_act": "silu",
"hidden_size": 5120,
"initializer_range": 0.02,
"intermediate_size": 13696,
"max_position_embeddings": 8192,
"model_type": "llama",
"num_attention_heads": 40,
"num_hidden_layers": 40,
"num_key_value_heads": 40,
"pretraining_tp": 1,
"rms_norm_eps": 1e-06,
"rope_scaling": null,
"rope_theta": 10000.0,
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"transformers_version": "4.36.2",
"use_cache": true,
"vocab_size": 152064
}
Traceback (most recent call last):
File "/home/johnzyx/working/pythonprojects/LLaMA-Efficient-Tuning/src/web_demo.py", line 11, in
main()
File "/home/johnzyx/working/pythonprojects/LLaMA-Efficient-Tuning/src/web_demo.py", line 5, in main
demo = create_web_demo()
File "/home/johnzyx/working/pythonprojects/LLaMA-Efficient-Tuning/src/llmtuner/webui/interface.py", line 59, in create_web_demo
engine = Engine(pure_chat=True)
File "/home/johnzyx/working/pythonprojects/LLaMA-Efficient-Tuning/src/llmtuner/webui/engine.py", line 20, in init
self.chatter = WebChatModel(manager=self.manager, demo_mode=demo_mode, lazy_init=(not pure_chat))
File "/home/johnzyx/working/pythonprojects/LLaMA-Efficient-Tuning/src/llmtuner/webui/chatter.py", line 30, in init
super().init()
File "/home/johnzyx/working/pythonprojects/LLaMA-Efficient-Tuning/src/llmtuner/chat/chat_model.py", line 27, in init
self.model, self.tokenizer = load_model_and_tokenizer(
File "/home/johnzyx/working/pythonprojects/LLaMA-Efficient-Tuning/src/llmtuner/model/loader.py", line 49, in load_model_and_tokenizer
tokenizer = AutoTokenizer.from_pretrained(
File "/home/johnzyx/environment/anaconda-env/python3.10/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 808, in from_pretrained
return tokenizer_class_py.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
File "/home/johnzyx/environment/anaconda-env/python3.10/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 2012, in from_pretrained
raise EnvironmentError(
OSError: Can't load tokenizer for '/home/2tdisk/working/AI/model/QWen14BBase2LLama'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure '/home/2tdisk/working/AI/model/QWen14BBase2LLama' is the correct path to a directory containing all relevant files for a LlamaTokenizer tokenizer.
Expected behavior
No response
System Info
No response
Others
No response

把原始的 tokenizer 文件复制到新文件夹


Removed cross-spawn dependency

What does this implement/fix? Explain your changes.
Fixes the spawn cmd.exe ENOENT error on Windows and makes it possible to run various tools again.
Does this close any currently open issues?
Probably #396, #456, #456, #598, #768, and #932. Possibly more.
Any other comments?
This change fixed the support of rustfmt for me. I did not test it with any other tool like those in the linked issues above.
Checklist
Check all those that are applicable and complete.

[x] Merged with latest master branch
[ ] Added examples for testing to examples/ directory
[ ] Travis CI passes (Mac support)
[ ] AppVeyor passes (Windows support)

Interestingly I solved another huge, tangential issue for me with cargo-build.
The Windows PATH environment variable wasn't all-caps for me but Path. Thus neither atom-beautify, nor atom-build found the correct build tool... after saving once (which is quite strange because it does work if I do not save anything in Atom).

Looks like only two tests are failing and I have confirmed both are unrelated.
Thank you for contributing!

Published to v0.29.8


Recently Boarded Title

In Board Vessel search and the Find Records search from the homepage: Recently Boarded title should be #818181 As per https://docs.google.com/document/d/1P3mzpbmd1iaXudXnmArLdawOrDCdmhG4WMwXPC0682c/edit#bookmark=id.qy9manpdxfcf

We have already used #818181. Added Roboto Medium to be closer to design


Don't create preview of empty scene.

Godot create preview only current scene, but when scene is recently created and isn't saved, then Godot crash.
Fixes #34574
Probably fix #26723, because it seems to be same issue(look at the backtrace)
Git diff shows 53 additions and 49 deletions, but I added only one if (editor_data.get_edited_scene_root() != NULL)  with brackets

Thanks!


Remove duplicate package imports

[x] I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested
Remove unnecessary module imports.
email.utils.parsedate_tz and email.utils.mktime_tz can be used by using just import email.

Thanks for the PR! Unfortunately that import exists because some static analysis tools won't treat email.utils as valid unless it is imported specifically.


Can 8 digit OTP be support for Oath tokens?

Can 8 digit OTP be support for Oath tokens?

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

ID: b8f14188-98ec-5c94-f408-162ee1baa076
Version Independent ID: 41ed4874-e1e6-56d3-4de4-39c024d1e06c
Content: Azure AD authentication methods
Content Source: articles/active-directory/authentication/concept-authentication-methods.md
Service: active-directory
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@bjw6092 Thank you for the detailed inquiry. I will make @YutongTie-MSFT aware of this.

@MarileeTurscak-MSFT Please refer to #17535

Azure AD will support the use of OATH-TOTP SHA-1 tokens of the 30-second or 60-second variety. Customers can procure these tokens from the vendor of their choice.
You would need to work with your vendor to ensure that the tokens you wish to purchase meet that requirement. Microsoft does not maintain a list of tokens and the standards they support.

Thank you for the response.  To be clear my question is not how often the
OTP changes.  I am interested in the number of digits in the OTP.  My
interpretation is that 8-digit OTPs is an option if the token vendor
supports it.  Let me know if this is not the case.
On Mon, Feb 25, 2019 at 1:08 PM John Flores<EMAIL_ADDRESS>wrote:

Azure AD will support the use of OATH-TOTP SHA-1 tokens of the 30-second
or 60-second variety. Customers can procure these tokens from the vendor of
their choice.
You would need to work with your vendor to ensure that the tokens you wish
to purchase meet that requirement. Microsoft does not maintain a list of
tokens and the standards they support.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/25455#issuecomment-467139812,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AtlVHJvyevzH9lkQw29MGdjolAaISj63ks5vRDSggaJpZM4bHtL1
.

As long as the token conforms to OATH-TOTP SHA-1 tokens of the 30-second or 60-second variety they should work but organizations should test before implementation.


storage/file: Preliminary support for Azure File Service

Support for CreateShare/DeleteShare calls.
@paulmey PTAL.

LGTM, but the build is failing. Looks like it may not be calculating the file endpoint correctly?

nope it used to pass in the earlier commit... I believe it is a network issue in Travis. Kicked off a rebuild.


FIX: fix stop_session func bug

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
Please describe the motivation of this PR and the goal you want to achieve through this PR.
Modification
Please briefly describe what modification is made in this PR.
BC-breaking (Optional)
Does the modification introduce changes that break the backward-compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist

Pre-commit or other linting tools are used to fix the potential lint issues.
The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness.
If the modification has a dependency on downstream projects of a newer version, this PR should be tested with all supported versions of downstream projects.
The documentation has been modified accordingly, like docstring or example tutorials.

Shall we rename the behavior stop to pause and end to destroy? This is clear to me.

Shall we rename the behavior stop to pause and end to destroy? This is clear to me.
stop is to abort the session that is generating tokens. When a session is stopped, he cursor step should be rollback. At this point, it is not pause.
end comes from triton inference server.
I think they make some sense.


Handle exceptions

Hello!
How to handle all exceptions and send response with json-rpc-2.0 format with code 200? For example, exceptions from the Request?

try {     $classInstance->method1();     $classInstance->method2();     ..... } catch (Exception $e) {     throw new \JsonRpc2\Exception('General message', \JsonRpc2\Exception::INTERNAL_ERROR); }


Allow to hide entries from activity bar

Landed via https://github.com/Microsoft/vscode/commit/05d902ac87be74ac09559ecccebf6552272abc44


Create linearsearch.java

Added linear search in java
issue no. #223
#63

Thanks for contributing!


How to setup overrides for config & views?

I have a basic test install of multi-tenant 5.3 on L5.6.
Very simple, nothing else installed, no mods or hacks.
I have a console command that will create a tenant/websites and hostnames - this is working ok.
Tenant websites are accessible. Basic display of users, posts etc.from tenant db is working as expected.
I want to use the local disk for tenant storage.
The only config change is that config('tenancy.website.disk') is set to 'local'
Tenant dirs are created correctly eg: storage/app/tenancy/tenants/{uuid}
I have created tenant config and view dirs, and associated config and view files under tenants/{uuid}
These are enabled in tenancy config as per default.
The problem is these override files arent being accessed.
How to enable config/view file overrides please?
(I've seen this related issue: https://github.com/hyn/multi-tenant/issues/454 )
tenancy.php
use Hyn\Tenancy\Database\Connection;
return [
    'models' => [
        // Must implement \Hyn\Tenancy\Contracts\Hostname
        'hostname' => \Hyn\Tenancy\Models\Hostname::class,
        // Must implement \Hyn\Tenancy\Contracts\Website
        'website' => \Hyn\Tenancy\Models\Website::class
    ],
    'middleware' => [
        // The eager identification middleware.
        \Hyn\Tenancy\Middleware\EagerIdentification::class,
        // The hostname actions middleware (redirects, https, maintenance).
        \Hyn\Tenancy\Middleware\HostnameActions::class,
    ],
    'website' => [
        'disable-random-id' => false,
        'random-id-generator' => Hyn\Tenancy\Generators\Uuid\ShaGenerator::class,
        'uuid-limit-length-to-32' => env('LIMIT_UUID_LENGTH_32', false),
        'disk' => 'local',
        'auto-create-tenant-directory' => true,
        'auto-rename-tenant-directory' => true,
        'auto-delete-tenant-directory' => false,
        'cache' => 10,
    ],
    'hostname' => [
        'default' => env('TENANCY_DEFAULT_HOSTNAME'),
        'auto-identification' => env('TENANCY_AUTO_HOSTNAME_IDENTIFICATION', true),
        'early-identification' => env('TENANCY_EARLY_IDENTIFICATION', true),
        'abort-without-identified-hostname' => env('TENANCY_ABORT_WITHOUT_HOSTNAME', false),
        'cache' => 10,
        'update-app-url' => false,
    ],
    'db' => [
        'default' => env('TENANCY_DEFAULT_CONNECTION'),
        'system-connection-name' => env('TENANCY_SYSTEM_CONNECTION_NAME', Connection::DEFAULT_SYSTEM_NAME),
        'tenant-connection-name' => env('TENANCY_TENANT_CONNECTION_NAME', Connection::DEFAULT_TENANT_NAME),
        'tenant-division-mode' => env('TENANCY_DATABASE_DIVISION_MODE', 'database'),
        'password-generator' => Hyn\Tenancy\Generators\Database\DefaultPasswordGenerator::class,
        'tenant-migrations-path' => database_path('migrations/tenant'),
        'tenant-seed-class' => false,
        'auto-create-tenant-database' => true,
        'auto-create-tenant-database-user' => true,
        'auto-rename-tenant-database' => true,
        'auto-delete-tenant-database' => env('TENANCY_DATABASE_AUTO_DELETE', false),
        'auto-delete-tenant-database-user' => env('TENANCY_DATABASE_AUTO_DELETE_USER', false),
        'force-tenant-connection-of-models' => [
//            App\User::class
        ],
        'force-system-connection-of-models' => [
//            App\User::class
        ],
    ],
    'routes' => [
        'path' => base_path('routes/tenants.php'),
        'replace-global' => false,
    ],
    'folders' => [
        'config' => [
            'enabled' => true,
            'blacklist' => ['database', 'tenancy', 'webserver'],
        ],
        'routes' => [
            'enabled' => true,
            'prefix' => null,
        ],
        'trans' => [
            'enabled' => true,
            'override-global' => true,
            'namespace' => 'tenant',
        ],
        'vendor' => [
            'enabled' => true,
        ],
        'media' => [
            'enabled' => true,
        ],
        'views' => [
            'enabled' => true,
            'namespace' => null,
            'override-global' => true,
        ]
    ]
];

closed. Issue was due to config error causing incorrect resolution of tenant.

closed. Issue was due to config error causing incorrect resolution of tenant.

It's still not working for me. I'm still getting reports that it's not public property. What setting did you change?

I'm sorry friend but that was a year ago and I honestly cant remember, I did get it working and its still functioning well.
If you don't find a quick or easy solution I'd suggest opening up your own issue with info as requested. The devs on this project are very knowledgeable and responsive.
regards
l.


Send Email Feature for use in serverless functions

Is your feature request related to a problem? Please describe.
I need to send emails and nhost already has and is using my smtp creds.
Describe the solution you'd like
I'd love to be able to leverage a simple function in my serverless functions that would send an email using the functionality already present in nhost.
import { sendEmail } from '@nhost/email'

const err = await sendEmail({
  to<EMAIL_ADDRESS>  subject: 'Welcome',
  body: '
welcome...
',
  ...otherPropsAsNecessary
})

Describe alternatives you've considered
re-building the email capability myself (again....). I've done this in a few projects already and I'm just tired of it lol...
Additional context
I'm assuming this feature wouldn't be that hard, since emails are already being sent from nhost using the credentials we've already provided to them. Of course, we'd only want to expose this api in a server-side context...

We could expose the SMTP credentials as environment variables for functions.
Then you can send emails via SMTP. Here's an example: https://github.com/nhost/nhost/blob/main/examples/serverless-functions/functions/send-email/index.ts

@elitan Is this now possible? It's be pretty awesome to use small projects for transactional emails.
For example, I feel like sending the magic link email this way would be useful. There's a hook in the API named useSigninEmailPasswordless which seems like it's for handling the magic link. I can't find (or misunderstand) whether I can generate the magic link from a function/backend. Let's say I want to invite someone to join a team for example.

We don't expose SMTP credentials automatically and we don't have plans for it. However, as this is a feature that would only work with users with custom SMTP settings, you should be able to add them as environment variables yourself and follow the example provided previously.
I am closing this issue as I don't think there is anything that needs to be done here but feel free to reopen if you feel otherwise.


[BUG] Missing WinGet PS module dependency install loop in version 3.1.0

Please confirm these before moving forward

[X] I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
[X] I have tested that this issue has not been fixed in the latest (beta or stable) release.
[X] I have checked the FAQ section for solutions.
[X] This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version
3.1.0
Windows version, edition, and architecture
Windows 11 Education 23H2 x64 (OS Build 22631.3810)
Describe your issue
After the most recent update that changed WingetUI to UniGetUI, I seem to be stuck in a loop on application startup that attempts to install the WinGet PowerShell module over and over again without acknowledging that the previous install had succeeded.

Open UniGetUI after 3.1.0 update, prompted to install module:

Install module, PowerShell opens, installs, then closes on key press:

UniGetUI asks to restart, say yes:

On next startup, the prompt reappears:

Steps to reproduce the issue
See description.
UniGetUI Log
[03/07/2024 22:05:56]
                         __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 3.1.0
[03/07/2024 22:05:56]
[03/07/2024 22:05:56] Version Code:  3.1
[03/07/2024 22:05:56] Using bundled GSudo at C:\Users\Reece Mercer\AppData\Local\Programs\UniGetUI\Assets\Utilities\gsudo.exe
[03/07/2024 22:05:57] Loaded language locale: en
[03/07/2024 22:05:57] Randomly-generated background API auth token for the current session: mc7727xlvl5769n63nrqg65v4e0vhsrzg6p1e3ptcp77m48o9llbiddjaq1jzmjn
[03/07/2024 22:05:57] Api running on http://localhost:7058
[03/07/2024 22:05:57] Begin "which" search for command winget.exe
[03/07/2024 22:05:57] Begin "which" search for command npm
[03/07/2024 22:05:57] Begin "which" search for command python.exe
[03/07/2024 22:05:57] Begin "which" search for command dotnet.exe
[03/07/2024 22:05:57] Lang files were updated successfully from GitHub
[03/07/2024 22:05:57] The restored geometry did not have exactly 5 items (found length was 1)
[03/07/2024 22:05:57] Downloaded new icons and screenshots successfully!
[03/07/2024 22:05:57] Command winget.exe was found on C:\Users\Reece Mercer\AppData\Local\Microsoft\WindowsApps\winget.exe
[03/07/2024 22:05:57] Command npm was found on C:\Users\Reece Mercer\scoop\apps\nodejs-lts\current\npm
[03/07/2024 22:05:57] Command dotnet.exe was found on C:\Program Files\dotnet\dotnet.exe
[03/07/2024 22:05:57] Command python.exe was found on C:\Users\Reece Mercer\scoop\apps\python\current\python.exe
[03/07/2024 22:05:58] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: .NET Tool
                      █ Enabled: True
                      █ Found: True
                      █ Fancye exe name: dotnet tool
                      █ Executable path: C:\Program Files\dotnet\dotnet.exe
                      █ Call arguments: tool
                      █ Version:
                      █   8.0.300
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[03/07/2024 22:05:58] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Npm
                      █ Enabled: True
                      █ Found: True
                      █ Fancye exe name: npm
                      █ Executable path: C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe
                      █ Call arguments:  -NoProfile -ExecutionPolicy Bypass -Command npm
                      █ Version:
                      █   10.7.0
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[03/07/2024 22:05:58] Loaded 2 sources for manager Winget
[03/07/2024 22:05:58] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Winget
                      █ Enabled: True
                      █ Found: True
                      █ Fancye exe name: winget.exe
                      █ Executable path: C:\Users\Reece Mercer\AppData\Local\Microsoft\WindowsApps\winget.exe
                      █ Call arguments:
                      █ Version:
                      █   Naive WinGet CLI Version: v1.8.1791
                      █   Microsoft.WinGet.Client PSModule version:
                      █   Using Native WinGet helper (COM Api)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[03/07/2024 22:05:58] Begin "which" search for command scoop
[03/07/2024 22:05:58] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Pip
                      █ Enabled: True
                      █ Found: True
                      █ Fancye exe name: pip
                      █ Executable path: C:\Users\Reece Mercer\scoop\apps\python\current\python.exe
                      █ Call arguments:  -m pip
                      █ Version:
                      █   pip 23.2.1 from C:\Users\Reece Mercer\scoop\apps\python\current\Lib\site-packages\pip (python 3.12)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[03/07/2024 22:05:58] Command scoop was found on C:\Users\Reece Mercer\scoop\shims\scoop
[03/07/2024 22:05:58] Starting scoop cleanup...
[03/07/2024 22:05:59] Loaded 6 sources for manager Scoop
[03/07/2024 22:05:59] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Scoop
                      █ Enabled: True
                      █ Found: True
                      █ Fancye exe name: scoop
                      █ Executable path: C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe
                      █ Call arguments:  -NoProfile -ExecutionPolicy Bypass -Command scoop
                      █ Version:
                      █   Current Scoop version:
                      █   d337bb1f chore(release): Bump to version 0.4.2 (#5964)
                      █
                      █   'main' bucket:
                      █   7d31ad518 simplex-chat: Update to version 5.8.2
                      █
                      █   'extras' bucket:
                      █   17337d2fb mpc-hc-fork: Update to version <IP_ADDRESS> (#13560)
                      █
                      █   'sysinternals' bucket:
                      █   56aa57d sysinternals-suite: Update to version 2024.06.20
                      █
                      █   'nerd-fonts' bucket:
                      █   d16f2562 SarasaGothic: Update to version 1.0.15
                      █
                      █   'java' bucket:
                      █   fdb41b89 temurin17-nightly-jre: Update to version 17.0.12-6.0.ea
                      █
                      █   'games' bucket:
                      █   663a1d350 dolphin-dev: Update to version 2407-7
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[03/07/2024 22:05:59] Loaded 1 sources for manager Chocolatey
[03/07/2024 22:05:59] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Chocolatey
                      █ Enabled: True
                      █ Found: True
                      █ Fancye exe name: choco.exe
                      █ Executable path: C:\Users\Reece Mercer\AppData\Local\UniGetUI\Chocolatey\choco.exe
                      █ Call arguments:
                      █ Version:
                      █   2.2.2
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[03/07/2024 22:05:59] Loaded 1 sources for manager PowerShell
[03/07/2024 22:05:59] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell
                      █ Enabled: True
                      █ Found: True
                      █ Fancye exe name: powershell.exe
                      █ Executable path: C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe
                      █ Call arguments:  -NoProfile -Command
                      █ Version:
                      █   Name                           Value
                      █   ----                           -----
                      █   PSVersion                      5.1.22621.3810
                      █   PSEdition                      Desktop
                      █   PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
                      █   BuildVersion                   10.0.22621.3810
                      █   CLRVersion                     4.0.30319.42000
                      █   WSManStackVersion              3.0
                      █   PSRemotingProtocolVersion      2.3
                      █   SerializationVersion           <IP_ADDRESS>
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[03/07/2024 22:05:59] Manager Chocolatey has not implemented RefreshPackageIndexes
[03/07/2024 22:05:59] Manager Npm has not implemented RefreshPackageIndexes
[03/07/2024 22:05:59] Manager Pip has not implemented RefreshPackageIndexes
[03/07/2024 22:05:59] Manager .NET Tool has not implemented RefreshPackageIndexes
[03/07/2024 22:05:59] Begin "which" search for command dotnet-tools-outdated.exe
[03/07/2024 22:05:59] Manager PowerShell has not implemented RefreshPackageIndexes
[03/07/2024 22:05:59] Resetting administrator rights cache for process id 25644
[03/07/2024 22:05:59] Command dotnet-tools-outdated.exe was found on C:\Users\Reece Mercer\.dotnet\tools\dotnet-tools-outdated.exe
[03/07/2024 22:05:59] Scoop cleanup finished!
[03/07/2024 22:05:59] Loaded 2 sources for manager Winget
[03/07/2024 22:05:59] Found 0 installed packages from Winget
[03/07/2024 22:06:00] Found 2 installed packages from .NET Tool
[03/07/2024 22:06:00] Dependency WinGet PowerShell Module was not found for manager Winget, marking to prompt...
[03/07/2024 22:06:00] Begin "which" search for command scoop-search.exe
[03/07/2024 22:06:00] Command scoop-search.exe was found on C:\Users\Reece Mercer\scoop\shims\scoop-search.exe
[03/07/2024 22:06:00] Dependency Scoop-Search for manager Scoop is present
[03/07/2024 22:06:00] Begin "which" search for command git.exe
[03/07/2024 22:06:00] Command git.exe was found on C:\Users\Reece Mercer\scoop\shims\git.exe
[03/07/2024 22:06:00] Dependency Git for manager Scoop is present
[03/07/2024 22:06:00] Begin "which" search for command dotnet-tools-outdated.exe
[03/07/2024 22:06:00] Found 40 installed packages from Scoop
[03/07/2024 22:06:00] Command dotnet-tools-outdated.exe was found on C:\Users\Reece Mercer\.dotnet\tools\dotnet-tools-outdated.exe
[03/07/2024 22:06:00] Dependency .NET Tools Outdated for manager .NET Tool is present
[03/07/2024 22:06:00] Found 0 installed packages from Chocolatey
[03/07/2024 22:06:00] Found 0 available updates from Winget
[03/07/2024 22:06:00] Found 0 available updates from Chocolatey
[03/07/2024 22:06:00] Found 1 installed packages from Pip
[03/07/2024 22:06:00] Found 0 available updates from .NET Tool
[03/07/2024 22:06:01] Loaded 1 sources for manager Chocolatey
[03/07/2024 22:06:01] Loaded 6 sources for manager Scoop
[03/07/2024 22:06:01] Found 1 available updates from Pip
[03/07/2024 22:06:01] Found 0 available updates from Npm
[03/07/2024 22:06:01] Found 0 installed packages from Npm
[03/07/2024 22:06:01] Found 1 installed packages from PowerShell
[03/07/2024 22:06:01] Starting package backup
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Creating new instance of InstallationOptions for package UniGetUI.PackageEngine.PackageClasses.Package, as no instance was found in cache
[03/07/2024 22:06:01] Finished loading serializable objects. Serializing with format JSON
[03/07/2024 22:06:01] Serialization finished successfully
[03/07/2024 22:06:01] Backup saved to C:\Users\Reece Mercer\OneDrive\Documents\UniGetUI\REECE-DESKTOP installed packages 2024-07-03 22-06-01.json
[03/07/2024 22:06:01] Loaded 1 sources for manager PowerShell
[03/07/2024 22:06:02] Found 0 available updates from PowerShell
[03/07/2024 22:06:12] Found 40 installed packages from Scoop
[03/07/2024 22:06:14] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[03/07/2024 22:06:24] Found 4 available updates from Scoop
[03/07/2024 22:06:24] Starting check for updates wait interval with waitTime=14400

Package Managers Logs
Manager Winget with version:
Naive WinGet CLI Version: v1.8.1791
Microsoft.WinGet.Client PSModule version:
Using Native WinGet helper (COM Api)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 03/07/2024 22:05:58
Process end time:   03/07/2024 22:05:58

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\Reece Mercer\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 03/07/2024 22:05:59
Process end time:   03/07/2024 22:06:00

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is ListPackages
Subprocess executable: "C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe"
Command-line arguments: "-ExecutionPolicy Bypass -NoLogo -NoProfile"
Process start time: 03/07/2024 22:05:59
Process end time:   03/07/2024 22:05:59

-- Process STDIN
 ...

-- Process STDOUT
 ...

-- Process STDERR
  Write-Output : The term 'Write-Output' is not recognized as the name of a cmdlet, function, script file, or
  operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
  again.
  At line:1 char:1
  + Write-Output (Get-Module -Name Microsoft.WinGet.Client).Version
  + ~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Write-Output:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

  Import-Module : The specified module 'Microsoft.WinGet.Client' was not loaded because no valid module file was found
  in any module directory.
  At line:1 char:1
  + Import-Module Microsoft.WinGet.Client
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ResourceUnavailable: (Microsoft.WinGet.Client:String) [Import-Module], FileNotFoundExcep
     tion
      + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

  Get-WinGetPackage : The term 'Get-WinGetPackage' is not recognized as the name of a cmdlet, function, script file, or
  operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
  again.
  At line:1 char:1
  + Get-WinGetPackage | Print-WinGetPackage
  + ~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Get-WinGetPackage:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 03/07/2024 22:05:59
Process end time:   03/07/2024 22:05:59

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is ListUpdates
Subprocess executable: "C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe"
Command-line arguments: "-ExecutionPolicy Bypass -NoLogo -NoProfile"
Process start time: 03/07/2024 22:06:00
Process end time:   03/07/2024 22:06:00

-- Process STDIN
 ...

-- Process STDOUT
 ...

-- Process STDERR
  Write-Output : The term 'Write-Output' is not recognized as the name of a cmdlet, function, script file, or
  operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
  again.
  At line:1 char:1
  + Write-Output (Get-Module -Name Microsoft.WinGet.Client).Version
  + ~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Write-Output:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

  Import-Module : The specified module 'Microsoft.WinGet.Client' was not loaded because no valid module file was found
  in any module directory.
  At line:1 char:1
  + Import-Module Microsoft.WinGet.Client
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ResourceUnavailable: (Microsoft.WinGet.Client:String) [Import-Module], FileNotFoundExcep
     tion
      + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

  Get-WinGetPackage : The term 'Get-WinGetPackage' is not recognized as the name of a cmdlet, function, script file, or
  operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
  again.
  At line:1 char:1
  + Get-WinGetPackage | Print-WinGetPackage
  + ~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Get-WinGetPackage:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

Return code: SUCCESS (0)

——————————————————————————————————————————

Relevant information
Package Managers Logs seem to show some PowerShell errors.
I have both PowerShell 7.4.3 (installed via WinGet) and 5.1.22621.3810 (bundled with Windows) on my system.
It also still seems to suggest that the module is installed, but fails to show a version:

Screenshots and videos
See description.

Try to:

Run the command Uninstall-Module Microsoft.WinGet.Client repeatedly until it complains the module is not installed. Run this command in PowerShell 5.1.
run the command Install-Module Microsoft.WinGet.Client and see what happens

Yep that fixed it, thanks :) I will note that as above, the Expand version option still shows no version for the PSModule.

I could not figure out how to fix it. The fix described here doesn't seem to work for me.
This is the error I get when Uniget is trying to install the extension:
PackageManagement\Install-Package : The following commands are already available on this system:'Find-WinGetPackage,Get
-WinGetPackage,Get-WinGetSource,Install-WinGetPackage,Uninstall-WinGetPackage,Update-WinGetPackage'. This module
'Microsoft.WinGet.Client' may override the existing commands. If you still want to install this module
'Microsoft.WinGet.Client', use -AllowClobber parameter.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\<IP_ADDRESS>\PSModule.psm1:1809 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
   Exception
    + FullyQualifiedErrorId : CommandAlreadyAvailable,Validate-ModuleCommandAlreadyAvailable,Microsoft.PowerShell.Pack
   ageManagement.Cmdlets.InstallPackage

Press Enter to continue...:

This is the error when trying to uninstall it:
Power shell: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe (same power shell as the command above seem to use) as normal user:
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\Windows\System32\WindowsPowerShell\v1.0> Uninstall-Module Microsoft.WinGet.Client
PackageManagement\Uninstall-Package : No match was found for the specified search criteria and module names
'Microsoft.WinGet.Client'.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\<IP_ADDRESS>\PSModule.psm1:2194 char:21
+ ...        $null = PackageManagement\Uninstall-Package @PSBoundParameters
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Package]
   , Exception
    + FullyQualifiedErrorId : NoMatchFound,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage

PS C:\Windows\System32\WindowsPowerShell\v1.0>

Same powershell as admin user:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\WINDOWS\system32> Uninstall-Module Microsoft.WinGet.Client
PackageManagement\Uninstall-Package : No match was found for the specified search criteria and module names
'Microsoft.WinGet.Client'.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\<IP_ADDRESS>\PSModule.psm1:2194 char:21
+ ...        $null = PackageManagement\Uninstall-Package @PSBoundParameters
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Package]
   , Exception
    + FullyQualifiedErrorId : NoMatchFound,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage

PS C:\WINDOWS\system32>

With C:\Program Files\PowerShell\7\pwsh.exe as normal user:
PowerShell 7.4.3
PS C:\Users\user> Uninstall-Module Microsoft.WinGet.Client
Uninstall-Package: The module 'Microsoft.WinGet.Client' of version '1.8.1133' in module base folder
'C:\Users\user\Documents\PowerShell\Modules\Microsoft.WinGet.Client\1.8.1133' cannot be uninstalled, because one or more
other modules 'Microsoft.WinGet.CommandNotFound' are dependent on this module. Uninstall the modules that depend on
this module before uninstalling module 'Microsoft.WinGet.Client'.
PS C:\Users\user> Uninstall-Module Microsoft.WinGet.CommandNotFound
WARNING: The version '<IP_ADDRESS>' of module 'Microsoft.WinGet.CommandNotFound' is currently in use. Retry the operation after closing the applications.
Uninstall-Package: Module 'Microsoft.WinGet.CommandNotFound' is in currently in use or you don't have the required permissions.
PS C:\Users\user>

Same shell as admin:
PowerShell 7.4.3
PS C:\Users\user> Uninstall-Module Microsoft.WinGet.Client
Uninstall-Package: The module 'Microsoft.WinGet.Client' of version '1.8.1133' in module base folder
'C:\Users\user\Documents\PowerShell\Modules\Microsoft.WinGet.Client\1.8.1133' cannot be uninstalled, because one or more
other modules 'Microsoft.WinGet.CommandNotFound' are dependent on this module. Uninstall the modules that depend on
this module before uninstalling module 'Microsoft.WinGet.Client'.
PS C:\Users\user> Uninstall-Module Microsoft.WinGet.CommandNotFound
WARNING: The version '<IP_ADDRESS>' of module 'Microsoft.WinGet.CommandNotFound' is currently in use. Retry the operation after closing the applications.
Uninstall-Package: Module 'Microsoft.WinGet.CommandNotFound' is in currently in use or you don't have the required permissions.
PS C:\Users\user>

I don't have UniGetUI running in the background, not sure what might be using the Microsoft.WinGet.CommandNotFound.

Please run the command with an extra parameter, as said in the Error message: Install-Module Microsoft.WinGet.Client -AllowClobber

Thanks! This seemed to have worked:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

Loading personal and system profiles took 599ms.
PS C:\Users\user> Install-Module Microsoft.WinGet.Client -AllowClobber
Install-Module : Administrator rights are required to install modules in 'C:\Program Files\WindowsPowerShell\Modules'.
Log on to the computer with an account that has Administrator rights, and then try again, or install
'C:\Users\user\Documents\WindowsPowerShell\Modules' by adding "-Scope CurrentUser" to your command. You can also try
running the Windows PowerShell session with elevated rights (Run as Administrator).
At line:1 char:1
+ Install-Module Microsoft.WinGet.Client -AllowClobber
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Install-Module], ArgumentException
    + FullyQualifiedErrorId : InstallModuleNeedsCurrentUserScopeParameterForNonAdminUser,Install-Module

PS C:\Users\user> Install-Module Microsoft.WinGet.Client -AllowClobber -Scope CurrentUser

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): Y
PS C:\Users\user>

Isn't it dangerous if another module exports the same commandlets?
The new module might hide the existing commands.

Yes, but I can't do much about it

I still haven't figured out how to solve this problem. I tried manually executing Install-Module Microsoft.WinGet.Client -AllowClobber, but it had no effect.

And try to click bottom-left corner to get log. No response to click.

@cesaryuan
What happens if you open PowerShell with admin rights and execute the statement:
Install-Module Microsoft.WinGet.Client -AllowClobber
?

@cesaryuan What happens if you open PowerShell with admin rights and execute the statement: Install-Module Microsoft.WinGet.Client -AllowClobber ?

please install latest beta version and ignore the missing module prompt


Caddy 504 Gatweay Timeout. Can't increase timeouts

Info:

Docker version ($ docker --version): Docker version 18.06.1-ce, build e68fc7a215d7133c34aa18e3b72b4a21fd0c6136
Laradock commit ($ git rev-parse HEAD): commit 9cfe5c6
System info (Mac, PC, Linux): Ubuntu

Issue:
My application needs to have a longer timeout as users upload files. The problem the current caddy timeout is set to 1 minute and I get a 504 Gateway Timeout response when the files being uploaded are too large.
I tried to edit Caddyfile to include timeouts 5m with no luck.

Expected behavior:
timeouts 5m
should increase the timeouts time
(https://caddyserver.com/docs/timeouts)

Reproduce:
Compose caddy container and upload file/s which will take over 1 minute.

Relevant Code:
My Caddyfile:
https://www.example.com {
    root /var/www/public

    fastcgi / php-fpm:9000 php {
        index index.php
    }

    # To handle .html extensions with laravel change ext to
    # ext / .html

    rewrite {
        to {path} {path}/ /index.php?{query}
    }
    timeouts 5m

    gzip
    browse
    log /var/log/caddy/access.log
    errors /var/log/caddy/error.log
    # Uncomment to enable TLS (HTTPS)
    # Change the first list to listen on port 443 when enabling TLS
    tls<EMAIL_ADDRESS>
    # To use Lets encrpt tls with a DNS provider uncomment these
    # lines and change the provider as required
    #tls {
    #  dns cloudflare
    #}
}

my Caddy Dockerfile

FROM golang:alpine

LABEL maintainer="Huadong Zuo<EMAIL_ADDRESS>
RUN apk add --no-cache \
    openssh \
    git \
    build-base && \
    go get github.com/abiosoft/caddyplug/caddyplug \
    && caddyplug install-caddy \
    apk del build-base

ARG plugins="cors"

## ARG plugins="cors cgi cloudflare azure linode"

RUN caddyplug install ${plugins}

RUN apk add --no-cache inotify-tools \
    && echo -e "#!/bin/sh\nwhile inotifywait -e modify /etc/caddy; do\n\tpkill caddy\ndone " >> /start.sh \
    && chmod +x /start.sh

EXPOSE 80 443

WORKDIR /var/www/public

CMD ["sh","-c","/start.sh & /usr/bin/caddy -conf /etc/caddy/Caddyfile -agree"]

Same here! :/

Me too...

Be sure to set also the fastcgi timeouts or it will not work as expected:
fastcgi / <IP_ADDRESS>:9000 php {
        connect_timeout 600s
        read_timeout 600s
        send_timeout 600s
}


imap brute force

Checklist

[x] I have followed the Contributor Guidelines.
[x] The code has been thoroughly tested in my local development environment with flake8 and pylint.
[x] The code is Python 3 compatible.
[x] The code follows the PEP8 styling guidelines with 4 spaces indentation.
[x] This Pull Request relates to only one issue or only one feature
[x] I have referenced the corresponding issue number in my commit message
[x] I have added the relevant documentation.
[x] My branch is up-to-date with the Upstream master branch.

Changes proposed in this pull request
imap brute force module
Your development environment

OS: x
OS Version: x
Python Version: x

@securestep9 , @Ali-Razmjoo any update?

@Mrinank-Bhowmick  - this module failed my test, it failed to find the correct user/password pair when bruteforcing. I had no time to investigate further, likely the exceptions are not handled correctly


bmp don't works

Works for me. Please check your setup and/or provide more details. I'm closing the issue but feel free to re-open it if necessary.


Gravity example

Simple example, no collisions involved, just gravity, for example, make some red ball fall, it could be for example spawned by mouse click.
Implementing acceleration here is the most crucial detail.

hey there, i'm working on this issue

fixed the issue #21

fixed the issue #21 (PR got merged)

Linked PR was merged, closing issue


Deploy av<PHONE_NUMBER>1952-6a1e1da

6a1e1da6775f41c267d6b83b13e174d05635bf3e

/promote dev-gcp

/promote prod-gcp

/promote dev-gcp


Collect all error messages within a form

We have nested forms and within a sub-form there are many input fields. Displaying inline error messages for all these input fields does not look nice in our case. So, we are thinking of displaying all error-messages at the top of the sub-form.
So,currently, is there a way to collect all of the error messages for a specific form?

Yeah you'd have to do a custom dom modifier to put all the element error messages in some common place
See http://jonsamwell.github.io/angular-auto-validate/#custom_dom_modifiers


Communicate napari layer deletions appropriately to the plugin

Currently, if a user deletes the atlas or moving image layer the plugin goes into undefined behaviour and will probably throw index out of bounds errors.
Need to make sure that layer deletions are communicated appropriately and the plugin can handle restarting the entire workflow without having to restart the plugin.

See here for example implementation (https://github.com/brainglobe/brainglobe-utils/blob/6044656fd76d1a8a1b2ba5419e3e0ceaf1ef2e13/brainglobe_utils/brainmapper/transform_widget.py#L61-L136)
The overall plan should be to listen for layer deletions (using the @self._viewer.layers.connect decorator) and inside the function update the dropdowns in the SelectImagesView, but also check if the moving image data layer, the atlas_reference or the atlas_annotations layer has been deleted.
Deleting the layer currently selected as the moving image should set self._moving_image and self._moving_image_data_backup to None.
When deleting either one of the atlas layers (Reference or Annotations), I think the expected behaviour should be to delete the other layer, and clear any class attributes related to the atlas, set self._atlas back to None, and set the index for the atlas selection combobox to 0.
Some of this code already exists in the _on_atlas_dropdown_index_changed method inside of the index == 0. Perhaps this can be generalised and extracted into it's own method, say clear_atlas, which uses the find_layer_index function to get the index of both the reference and annotation layers in the napari layer list (check if any return -1 which is a stand in for layer not found), pop any layers that exist off of self._viewer.layers and reset all atlas related class attributes to None

Closed by #49


Adding codegen for Python using http.client .

Tell us about the task you want to perform and are unable to do so because the feature is not available
Generate API Request code in Python using the code generator feature.
Describe the solution/feature you'd like us to add
Add Python Code Generator using http.client library
Any other feedback you would like to provide regarding the site
The Add header/url param button is very small and is not kinda visible, I had problem finding it for the first time!

Looking forward to your PR @morpheus-30 🚀

#66


Is /https deprecated?

The (protocols.csv](https://github.com/multiformats/multiaddr/blob/master/protocols.csv?plain=1#L31) claims /https is deprecated, but the source of truth multicodec table does not make that claim.
The deprecated claim was introduced in https://github.com/multiformats/multiaddr/pull/109 which was a nice effort to sync this repo to the multicodec repo. It seems like deprecating /https was mentioned in the PR that introduced the /tls multicodec. But it was only mentioned as a future option, not something that was actively pursued.
Since the multicodec table does not deprecate /https (and with the extra context of the origin of the original claim), I don't think /https should be deprecated in this repo.

But, should it be deprecated in general? I don't think so. We've seen a lot of people use /https components in the wild, and prefer it to /tls/http. It also feels more natural to use /https because it's a lot more common across the internet. I think this should be an alias to /tls/http.
Do folks disagree?
cc @Stebalien who might have opinions as the approver of #109 and author of https://github.com/multiformats/multicodec/pull/145
(The same arguments here apply to /wss and /tls/ws)

We should switch to /tls/ws, and /tls/http, yes.
Note: multicodecs themselves don't really get "deprecated".

What's the argument to not treat /https as an alias to /tls/http?

Reducing complexity, eventually? I don't feel about one versus the other, but we definitely shouldn't support both /tls/http and /https. We'll have to for now, likely, but we can deprecate /https eventually.

I agree it's nice and better to support a single format rather than multiple. /tls/http is better because there's a place for the /sni component (/tls/sni/example.com/http).
I don't have a strong opinion on not deprecating /https. Although I have a feeling some folks may be annoyed at having to use /tls/http instead of /https. Maybe I'll tag @olizilla, since I think they've been making some /https multiaddrs recently.
If there's no counter-opinion, I'm okay to close this issue as "Yes, we're trying to move away from /https and prefer /tls/http".


[ANCHOR-380] Add client_id to getRate() when possible

Description
Fix the bug where client_id was not passed to getRate() when the customer of the wallet exists.
Context
Bug fix
Testing
./gradlew test

Reference Server Preview is available here:https://anchor-ref-pr1068.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr1068.previews.kube001.services.stellar-ops.com/

Something went wrong with PR preview build please check

Reference Server Preview is available here:https://anchor-ref-pr1068.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr1068.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr1068.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr1068.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr1068.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr1068.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr1068.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr1068.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr1068.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr1068.previews.kube001.services.stellar-ops.com/

Please don't force-push if avoidable @JiahuiWho


model.fit() uses same chunk of validation data for all evaluation steps

System information.
TensorFlow version (you are using): 2.9.2
Are you willing to contribute it (Yes/No) : Yes
Describe the feature and the current behavior/state.
model.fit() api uses the same validation data chunk to evaluate after every epoch. Ideally, the evaluation should happen on the subsequent iter of the dataset provided.
Standalone code to reproduce the issue
import tensorflow as tf
import numpy as np

train, test = tf.keras.datasets.fashion_mnist.load_data()
images, labels = train
images = images/255.0
labels = labels.astype(np.int32)

fmnist_train_ds = tf.data.Dataset.from_tensor_slices((images, labels))
fmnist_train_ds = fmnist_train_ds.batch(1)

model = tf.keras.Sequential([
  tf.keras.layers.Flatten(),
  tf.keras.layers.Dense(10)
])

def mean_label(y_true, y_pred):
  return tf.reduce_mean(tf.cast(y_true, dtype=tf.float32), name='mean_label')

model.compile(optimizer='adam',
              loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),
              metrics=[mean_label])

model.fit(fmnist_train_ds.repeat(), epochs=10, steps_per_epoch=1,
          validation_data=fmnist_train_ds.repeat(), validation_steps=1, )

Relevant log output
## watch val_mean_label in log output

Epoch 1/10
1/1 [==============================] - 1s 587ms/step - loss: 2.8061 - mean_label: 9.0000 - val_loss: 2.2545 - val_mean_label: 9.0000
Epoch 2/10
1/1 [==============================] - 0s 16ms/step - loss: 2.0885 - mean_label: 0.0000e+00 - val_loss: 1.8890 - val_mean_label: 9.0000
Epoch 3/10
1/1 [==============================] - 0s 19ms/step - loss: 2.0514 - mean_label: 0.0000e+00 - val_loss: 1.6198 - val_mean_label: 9.0000
Epoch 4/10
1/1 [==============================] - 0s 24ms/step - loss: 2.0949 - mean_label: 3.0000 - val_loss: 1.4125 - val_mean_label: 9.0000
Epoch 5/10
1/1 [==============================] - 0s 19ms/step - loss: 1.2432 - mean_label: 0.0000e+00 - val_loss: 1.2543 - val_mean_label: 9.0000
Epoch 6/10
1/1 [==============================] - 0s 17ms/step - loss: 2.9918 - mean_label: 2.0000 - val_loss: 1.1256 - val_mean_label: 9.0000
Epoch 7/10
1/1 [==============================] - 0s 17ms/step - loss: 1.5534 - mean_label: 7.0000 - val_loss: 1.0380 - val_mean_label: 9.0000
Epoch 8/10
1/1 [==============================] - 0s 14ms/step - loss: 3.4063 - mean_label: 2.0000 - val_loss: 0.9567 - val_mean_label: 9.0000
Epoch 9/10
1/1 [==============================] - 0s 18ms/step - loss: 2.6006 - mean_label: 5.0000 - val_loss: 0.8956 - val_mean_label: 9.0000
Epoch 10/10
1/1 [==============================] - 0s 14ms/step - loss: 3.0951 - mean_label: 5.0000 - val_loss: 0.8475 - val_mean_label: 9.0000
<keras.callbacks.History at 0x7fb8c13942b0>

relevant PR :-  https://github.com/keras-team/keras/pull/17399

@abinthomasonline,
The respetive #pr has been assigned for reviewing and once it is merged this issue will move to closed status. Thank you!

@abinthomasonline , As per the comment mentioned here in the linked PR, we don't have the intension to have this feature implemented for now.
Could you please close this issue as well. Thanks!


Metric averages

Description
Please explain the changes you made here.
Release notes
The title of the pull request will be used as the default release notes description. If more detail is needed to communicate to partners the scope of the PR's changes, use this release notes section.
Checklist
General

[ ] Added the correct label: < feature | bug | dependencies | infrastructure | ignore-for-release >
[ ] Created tests which fail without the change (if possible)
[ ] Extended the README / documentation, if necessary

User visible changes

[ ] Wrote browser tests using the validateAccessibility method
[ ] Manually tested at 200% size
[ ] Manually evaluated tab order

New Features

[ ] Add new FeatureFlag env vars to server/conf/application.conf
[ ] Conditioned new functionality on a FeatureFlag
[ ] Wrote browser tests with the feature flag off and on, etc.

Issue(s) this completes
Fixes #<issue_number>; Fixes #<issue_number>...

Codecov Report

Merging #4113 (cce521f) into main (442d80a) will decrease coverage by 0.21%.
The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff              @@
##               main    #4113      +/-   ##
============================================
- Coverage     79.40%   79.20%   -0.21%
  Complexity     2525     2525
============================================
  Files           312      312
  Lines         10258    10284      +26
  Branches        681      686       +5
============================================
  Hits           8145     8145
- Misses         1847     1873      +26
  Partials        266      266

Impacted Files
Coverage Δ

.../app/controllers/monitoring/MetricsController.java
10.52% <0.00%> (-22.81%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Add fees selection to Ordinal inscription send flow

Following support for regular btc sends https://github.com/hirosystems/wallet/issues/3141
Contingent on https://github.com/hirosystems/wallet/issues/3399

@markmhx @mica000 any designs to ref on these changes? Encountering some things I can try to resolve with error messages needing to be relocated/changed/handled differently?
We used to review the fees here and throw an error under the input...

But, now we move to the choose fee screen and see this when the user doesn't have enough funds...

Should I show the same error but move it to the choose fee modal?

Nvm, I can just move some code around and still show in the same place before getting here ...but let me know if prefer to change.

Extending this issue to add an integration test flow for sending inscriptions.


Bug/eltako fsr14 switches

#8

Merged, thanks a lot for your contribution!

One this though: Is is possible to toggle the FSR14 to be a switch or a light in the Eltako-App, too?
see EltakoSwitchAccessory.ts

Yes, this is possible:

Awesome, thanks for the info!

Sorry to bother you, but are you planning to release the fsr_14 feature in the near future?
Would be great to integrate my remaining switches into your homebridge tool.
Thanks for the great plugin.
It works pretty fine!

Yes sure, I must have missed that.

You can give version 2.2.0 a try.

Nice, works perfectly fine.
Thanks a lot!


[Navigator] Update "range" property on navigator

With the release of v3 of Rangpicker, the range object no longer exists. Instead, users must provide a moment object for the to and from. We should adjust the navigator accordingly and either accept the moment objects, or require the dev to convert them to a unix timestamp which we are currently doing internally.

range will be deleted in favor of chartExtents


Can't set cpp data structure to function parameter

Version and Platform (required):

Binary Ninja Version: 3.5.4356-dev, d3c66087
OS: macos
OS Version: 13.4
CPU Architecture: x86_64

Bug Description:
Can't set cpp data structure to function parameter. Example, hit y on parameter you are trying to change. Then try to set it as cpp string like class string* name. Tried different combination like class std::string * name, but it seems to not work either. I can set that data type to structure but not parameters.

Also when i define structure I had to do class string*name; instead of class std::string *name; when it is defined like this below

Should work if you escape std::string with backticks in the Change Type dialog.

thanks that was it.

One edge case is in struct manager. you can create a type as class string name; then it will ask you if you wana make that class string * name.


Cilium 1.16 BGP LBs timing out

clearing all Cilium state from node (including making sure Cilium agent doesn't start during this), then draining (and manually deleting all podCIDR pods) and rebooting nodes: doesn't fix.

During a while true; do curl https://ingress-nginx; sleep 1; done, Hubble shows that during the TCP ACK,PSH timeout period (PCAP from FortiGate (main router & Cilium BGP peer) shows TCP Previous Segment Not Captured), TCP traffic from outside cluster destined for ingress-nginx (LoadBalancer service) ends up as ICMP traffic for VMAgent (headless ClusterIP service) during the blip, then a new TCP session is started.

if VMAgent pod is stopped, pre-xlate-rev (TRACED) TCP shows up where the ICMP would, presumably because there is no backend "VMAgent" pod left to route to.

when on Cilium 1.16, even with existing 1.16 state, downgrading to 1.15.7-1.15.11 immediately resolves all timeouts with no drain/reboot or state clearing needed.

Cilium preflight netpols validator and apiserver server apply validation status all show as Pass for all netpols.

Talos 1.7.6, Kubernetes 1.30.1, 3x M720q e1000e CPs + 1 R730xd BCM5719 Proxmox worker VM, Cilium 1.16.4 and 1.16.2 tested and both have said issues.

Enabling bpf.masquerade and bpf.hostLegacyRouting fixes it entirely. Not sure why that's the fix, but it works now lol.


Added Light Bulb Project Hacktoberfest-accepted

🛠 Fixes Issue (1074)
Closes #1074

👨💻 Changes proposed

✅ Check List (Check all the applicable boxes)

[x] You have linked this PR to the correct issue.
[x] My code doesn't break any part of the project (Zero Octave-Javascript-Projects).
[x] This PR does not contain plagiarized content.
[x] My Addition/Changes works properly and matches the overall repo pattern.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

📷 Screenshots

@Anmol-Baranwal Can you please review my pr?


tags: add boilerplate for tags

Adds a new empty tag db and make sure we are compatible with the upcomming
Graphite version which has some breaking changes.

cc: @DanCech

Coverage decreased (-0.4%) to 79.55% when pulling c9a07936542a7b67cba41d3d95702d6c8255f751 on iksaif:tags into be8c951bdd2bc5280df8ebcef67cd7881e595096 on criteo:master.

Coverage decreased (-0.4%) to 79.55% when pulling 21ac1dc7cbd18604cf8cf6647701aaffd13fd89d on iksaif:tags into be8c951bdd2bc5280df8ebcef67cd7881e595096 on criteo:master.


Authentication and authorization

Currently there's no authentication/authorization, and the database passwords are exposed in the /databases/ endpoint. it would be nice to have an auth mechanism, preventing users from seeing database passwords, and also restricting access to databases, catalogs, schemas, tables, columns, etc.

One of the ideas is to implement a token based mechanism where authorization is defined by SQL queries.
For example, a power user could have access to a full database "postgres", and a specific schema in "trino":
-- this is pseudo SQL, and tables are qualifed as database.catalog.schema.table
SELECT * FROM postgres;
SELECT * FROM trino.hive.public;

An analyst could have access to only a few columns in a given table:
SELECT event_time, price FROM postgres.default.public.sales;

These queries would be encoded in a token (similar to a JWT), and for every data request for permission.
A cool thing is that we can allow queries to be "stacked" using macaroons. For example, if a user has a token giving them access to a given table:
SELECT * FROM trino.hive.public.sales;

They can generate a new token with an additional constraint:
SELECT event_time, price FROM trino.hive.public.sales;

This new token can be given to a different user, eg, if they want to view a chart that was built on top of the sales table.


Hardcoded localhost for API_URL and ALLOWED_ORIGINS URL for CORS

Issue: When running the application via Docker compose on a separate Server/VM, the Angular FrontEnd UI cannot be used as it's always pointing to "localhost" baseApiUrl. Also, the BackEnd Spring Boot REST API has hardcoded "localhost" URLs for setAllowedOrigins in its CORS configuration.
Environment: Docker compose on Redhat 8.9 VM running on Windows "Hyper-V Manager"
cat /etc/redhat-release
# Red Hat Enterprise Linux release 8.9 (Ootpa)

ip addr show eth0
# inet <IP_ADDRESS>

sudo yum list installed | grep "docker"
# containerd.io.x86_64              1.6.28-3.1.el8  @docker-ce-stable
# docker-buildx-plugin.x86_64       0.12.1-1.el8    @docker-ce-stable
# docker-ce.x86_64                  3:25.0.3-1.el8  @docker-ce-stable
# docker-ce-cli.x86_64              1:25.0.3-1.el8  @docker-ce-stable
# docker-ce-rootless-extras.x86_64  25.0.3-1.el8    @docker-ce-stable
# docker-compose-plugin.x86_64      2.24.6-1.el8    @docker-ce-stable

Expected Result:

Web application should retrieve the servers from backend REST API and work as expected.

Actual Result:

The servers from backend REST API could not be retrieved. UI error shows:

Error: Error Code: 0, Message: Http failure response for http://localhost:8080/api/servers: 0 Unknown Error

Notes:

Backend REST API http://<IP_ADDRESS>:8080/api/servers can be accessed without any issues.
Frontend UI is at http://<IP_ADDRESS>:8081/

Useful commands:
# Fix for
# ERROR [spring-api build 6/9] RUN ./mvnw dependency:go-offline -B
# > [spring-api build 6/9] RUN ./mvnw dependency:go-offline -B:
# 0.194 /bin/sh: 1: ./mvnw: Permission denied
chmod +x mvnw

# Revert to original code:
git stash save "Fix hardcoded API_URL and ALLOWED_ORIGINS URL for CORS"
git stash list
git stash pop

docker compose build angular-client
docker compose build spring-api

docker compose up -d mysql-db
docker compose logs -f mysql-db

docker compose up -d
docker compose logs -f angular-client spring-api
docker compose logs -f angular-client
docker compose logs -f spring-api

docker ps -a
docker compose down -v --remove-orphans
docker container prune -a

docker image ls
docker image prune -a
# docker system prune -a

https://stackoverflow.com/questions/35228970/docker-compose-build-single-container
(Saturday, March 02, 2024)

Fix added with commit be099d4 - https://github.com/radualexandrub/SpringBoot-Angular-Server-Ping-Status-Tracker/commit/be099d454cbfacc30d36babce8b96489b46f0eb5

Fix added with commit https://github.com/radualexandrub/SpringBoot-Angular-Server-Ping-Status-Tracker/commit/be099d454cbfacc30d36babce8b96489b46f0eb5


Hiding windowsupdate-optionalupdates hides all windows update panel not only optional updates

Hi,
If I want to hide the optional updates part from Windows Update panel, it will not only hide optional updates but all Windows Update panel.
The URI to use is the following one: windowsupdate-optionalupdates
I try with CSP and catalog settings as below:
hide:windowsupdate-optionalupdates

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

ID: ef1c0ac8-b57d-807a-cfbf-3af680c49299
Version Independent ID: 6b72984a-e2ee-d4e7-98d2-4921e1337b76
Content: Page Settings Visibility
Content Source: hololens/settings-uri-list.md
Product: hololens
Technology: windows
GitHub Login: @evmill
Microsoft Alias: v-evmill

Hi @damienvanrobaeys , if you don't want to allow option updates you can use update rings to configure which updates are offered to the device.
https://learn.microsoft.com/en-us/hololens/hololens-updates

Yes but i want to use doc from MS and this doesn't work


Don't trigger a deliberate SIGSEGV for fatal errors in release code

The error message "segmentation fault" confuses most users,
so enforce a segmentation fault only in debug code.
Release code simply calls the abort function.
Signed-off-by: Stefan Weil<EMAIL_ADDRESS>

Related PR: #341


Use golang 1.15

What this PR does / why we need it:
Update CI and gomod to use go 1.15.
Which issue(s) this PR fixes

Fixes #1248

Special notes for your reviewer:
Developer should have go 1.15 at their GOROOT, they may need to
rebuild tools with go run build.go go-install.
Release note:
Use Golang 1.15

We should hold this until #1242 gets merged

@GuessWhoSamFoo we can wait for #1242, but I don't see anything that would conflict

Regenerated mocks on go.15 against @bryanl 's PR. Confirmed nothing conflicts. We can make a note at the community meeting to remind anyone who compiles octant to update their go tooling.


Feature: Paging (small breaking change)

Adds support for paging result sets using PowerShell's own paging parameters: -First and -Skip.
Addresses #19.
The -First parameter is functionally identical to the previous -Limit parameter, so I have removed that parameter. I have preserved the default behavior - if -First is not specified, 10 results are returned. However, this will be a breaking change to scripts that provide the -Limit parameter. Those scripts will just need to have that parameter renamed to -First instead. I considered leaving -Limit to avoid this situation, but in my opinion, it's bad design to have redundant parameters, and since the solution is a simple rename (no need to re-think or re-design anything), I don't see it as a huge problem so long as it's documented.
The -Skip parameter provides the ability to start at an offset. Combining this with -First allows you to page through multiple result sets.
Here is a usage example:
function Get-PagedServiceNowRequestItem {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory, Position = 0)]
        [Alias('Splat')]
        [Hashtable] $ServiceNowSplat
        ,

        [Parameter()]
        [int] $PageSize = 1000
        ,

        [Parameter()]
        [int] $MaxResults
    )

    begin {
        $skip = 0
        $total = 0
        $isComplete = $false

        if ($MaxResults -and $MaxResults -lt $PageSize) {
            $PageSize = $MaxResults
        }
    }

    process {
        while (-not $isComplete) {
            $thisRecords = Get-ServiceNowRequestItem @ServiceNowSplat -First $PageSize -Skip $skip
            $thisCount = ($thisRecords | Measure-Object).Count
            $total += $thisCount
            Write-Verbose "Returned results $($skip + 1) - $total"
            $skip += $PageSize
            $thisRecords | Write-Output

            if ((-not $thisRecords) -or ($thisCount -lt $PageSize)) {
                Write-Verbose "$thisCount records were returned, compared to $PageSize expected; complete"
                $isComplete = $true
            }
            elseif ($MaxResults -and $total -ge $MaxResults) {
                Write-Verbose "-MaxResults $MaxResults was specified; complete"
                $isComplete = $true
            }
        }
    }
}

# Assume $splat contains parameters for Get-ServiceNowRequestItem (filter criteria, etc.)

# Return all results, 1000 at a time
Get-PagedServiceNowRequestItem -ServiceNowSplat $splat

# Return all results, 500 at a time
Get-PagedServiceNowRequestItem -ServiceNowSplat $splat -PageSize 500

# Return 10 results, 2 at a time
Get-PagedServiceNowRequestItem -ServiceNowSplat $splat -PageSize 2 -MaxResults 10

(Edit: fixed a minor issue in the example code.)

Closing for the time being per my previous comment. I'll re-implement this after #67 is accepted.


Redirecting to named routes using setPippoFilterPath settings

If I use
pippo.getServer().setPippoFilterPath("/api/*");
and try to redirect to a named route
GET("/something", ...).named("something");
routeContext.redirect("something" /* the route name*/, parameters);

It will redirect to an url by appending the filter path to the path that already has filter path included
http://localhost:8081/api/api/v1/me/something
api/api is wrong there

This fix broke publicAt() extension for me if using custom root path for the application, like
pippo.setFilterPath("/stats/*")

@liias
I will take a look. It's time to add more unit tests.


Random coverage, disable/enable not working

With this snippet of code:
-- luacov: disable
if 2 + 2 == 3 then
    spawn(function()
        print("this shouldnt be counted")
    end)
end
-- luacov: enable

I get the following coverage:
==============================================================================
./test.lua
==============================================================================
   -- luacov: disable
 3 if 2 + 2 == 3 then
*0     spawn(function()
 1         print("this shouldnt be counted")
       end)
   end
   -- luacov: enable

==============================================================================
Summary
==============================================================================

File       Hits Missed Coverage
-------------------------------
./test.lua 2    1      66.67%
-------------------------------
Total      2    1      66.67%

Not only are disable/enable not working, but it also randomly added coverage to the print?
Encapsulating the disable/enable inside the if did not make a difference.

disable/enable was added in 0.13.0, random coverage is still strange though

Can't reproduce random coverage with Lua 5.1, Luacov 0.12.0, and no cluacov, very strange.


I have commited a java file

This is pull request for merging java file added by me.

Great @BhavyamSharma7 . Welcome to the League

Great @BhavyamSharma7 . Welcome to the League