F-Req: any possibility to set account-flags on (first) logon?

when using the mysql-auth-plugin, locally created user hasn't set any flags, so we have to it manually (which makes using pGina less efficient):

user must not change it's PW
password never expires

I'm neither familiar with pGina-code, nor the windows-auth-process, so I don't know, if it's possible at all within the auth-mechanism and if, where to work at best.
(is there any documentation about the call-chain on login?)
another way may be possible, too, and maybe this offers more possible features: calling system-scripts with the username after successful auth, but before showing the desktop...
or is this already possible somehow?

ok, thanks, this is working for the actual problem.
unfortunately it's not clear, when the scripts are called in the various stages.
always at start of the stage (authen,author,gateway) or it's end? (perhaps relevant, because the user must be know by windows itself or the profile must already be created)
I've now put the script into the notification-stage, as it seems, that this is only called, if the previous stages run successfully -- or am I wrong?

It runs depended on the plugin order
In your case it would be useful to put it behind the local machine plugin in the gateway stage.
http://mutonufoai.github.io/pgina/documentation/plugins/local_machine.html#gateway_stage

thanks.
but it seems that the scripting is not 100% reliable.
this could be due to restrictions, but even simple tests don't seeem to work, while others do.
I've had a look at pGina.Service.ServiceHost_log.txt, but nothing corresponding can be found there.
due to that pGina does these scripting-calls synchronously, it should get at least the information, if that call could be successfully placed or not (e.g. path not found or returned error)
sure, pGina ignores these errors, but is there any possibility to put such calls and there return-values into the log?
quick view into log4net.config didn't show a simple possibility for that...
(btw.: many thanks for your time even for continuing work at pGina and now nearly just-in-time help to get special requirements running)

but it seems that the scripting is not 100% reliable.
Made some tests and it is 100% reliable. You have to make sure that your script is running properly.
That's the reason why I've added the default scripts, and yes the scripting plugin is logging the whatever you want to do and the return code.

Logging is done at pGina.Service.ServiceHost_log.txt
http://mutonufoai.github.io/pgina/documentation/user.html#logging


Test versions

GitHub Issue
updating verion tassk to push tags and point at master when releasing
Changes
updating verion tassk to push tags and point at master when releasing
Checks
Before making your PR, please check the following:

[ ] Critical lint errors are resolved
[ ] App runs locally
[ ] App builds locally (run the build command for any impacted package and check for any errors before the PR)

closing in lue of https://github.com/HausDAO/daohaus-monorepo/pull/681

closing in lue of https://github.com/HausDAO/daohaus-monorepo/pull/681


Modify upgradeAvailable to adhere to supported upgrade path

Fix #578
This changes the upgradeAvailable property to only return supported upgrades based on the documented upgrade path.
https://github.com/rancher/kubewarden-ui/assets/40806497/2ad046e3-ee47-4be9-b6a5-cbab3ad54221

Looks good but I was not able to test all paths because of https://github.com/rancher/kubewarden-ui/issues/580.

If current version is 1.1.0 should I upgrade to 1.1.2 before going to 1.2.1?

Do we take APP versions into account or only CHART version? For example cases where (or was this just wrong release?)

Chart (MINOR) changes but APP does not (1.2.8 -> 1.3.0)
Chart (MINOR) does not change but APP does (1.2.7 -> 1.2.8)

NAME                 	CHART VERSION	APP VERSION
kubewarden/kubewarden-controller	1.5.1        	v1.6.0
kubewarden/kubewarden-controller	1.5.0        	v1.6.0
kubewarden/kubewarden-controller	1.3.1        	v1.4.0
kubewarden/kubewarden-controller	1.3.0        	v1.4.0
kubewarden/kubewarden-controller	1.2.8        	v1.4.0
kubewarden/kubewarden-controller	1.2.7        	v1.3.0
kubewarden/kubewarden-controller	1.2.6        	v1.3.0

@viccuad might know?

I've updated this with clear indication on what can be updated. The upgrade button now includes the Chart version and appVersion, the computation behind the upgrade path now checks the chart.version rather than the chart.appVersion for compatibility.

I updated this to take the user preference for pre-release Helm chart versions into account when presenting upgrades, and added unit tests for this case as well.
https://github.com/rancher/kubewarden-ui/assets/40806497/6c4b9f29-aa79-4a0d-a8e4-67e6a83505fd

@kravciak I updated this to follow the flow mentioned by @viccuad - it will now check for updates to appVersion initially, and then the chart version. Also added a test for this case.

But now we skip upgrade to latest chart versions of current app.
For example I installed kubewarden-controller chart v1.5.0. Upgrade path skips chart 1.5.3:

expected: app 1.6.0 (chart 1.5.0) -> app 1.6.0 (chart 1.5.3) -> app 1.7.0 (chart 1.6.2) -> app 1.8.0
current:  app 1.6.0 (chart 1.5.0) -> app 1.7.0 (chart 1.6.2) -> app 1.7.0 -> app 1.8.0 -> app 1.9.0

kubewarden/kubewarden-controller	1.6.2        	v1.7.0     	A Helm chart for deploying the Kubewarden stack
kubewarden/kubewarden-controller	1.6.1        	v1.7.0     	A Helm chart for deploying the Kubewarden stack
kubewarden/kubewarden-controller	1.6.0        	v1.7.0     	A Helm chart for deploying the Kubewarden stack
kubewarden/kubewarden-controller	1.5.3        	v1.6.0     	A Helm chart for deploying the Kubewarden stack
kubewarden/kubewarden-controller	1.5.2        	v1.6.0     	A Helm chart for deploying the Kubewarden stack
kubewarden/kubewarden-controller	1.5.1        	v1.6.0     	A Helm chart for deploying the Kubewarden stack
kubewarden/kubewarden-controller	1.5.0        	v1.6.0     	A Helm chart for deploying the Kubewarden stack

@kravciak I think that's correct, the supported upgrade paths are all taking appVersion as the semver to check against.
There aren't any patch appVersion between 1.6.0 to 1.7.0, or 1.7.0 to 1.8.0, or 1.8.0 to 1.9.0.
Hence it should be possible to upgrade from chart appVersion 1.6.0 (version 1.5.0) to appversion 1.7.0 (version 1.6.2). If it weren't, we should have released a chart appVersion 1.6.1 (version whatever, potentially 1.5.1).


azd up requires azd auth login in GitHub Codespaces

- [X ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Fork the repo
Open in GitHub Codespaces
az login
azd up

Any log messages given by the failure

"ERROR: not logged in, run 'azd auth login' to login

Expected/desired behavior

supposed to start the deployment.

Once you run azd auth login, then run azd up the solution starts the deployment.
It would be good to add 'azd auth login' part of the instructions.

fixed https://github.com/Azure-Samples/summarization-openai-python-promptflow/pull/18


Create Navbar

Acceptance Criteria:
1- Ensure categories links and redirect are working.
2- Search functionality has filter function.
3 - Login and SignUp button redirect are working.


feat: cosmos upgrade v19.2.0

upgrade cosmos dependencies to align with v19.2.0
remove thorchain-v1 from cosmos fork branch
handle event parsing from legacy logs or current abci events array
remove unused end block handler logic

closes https://github.com/shapeshift/web/issues/7743


minikube 1.3.1

deparallelize build
set GOPATH

Both changes were necessary for me to build minikube in a linuxbrew/brew docker image locally.

Without de-parallelezation: https://gist.github.com/4f627ded6f16622779f9082e7852ffe7
=> make
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
which go-bindata || GO111MODULE=off GOBIN=/tmp/minikube-20190813-42974-1m7v2fq/minikube-1.3.1/gocode/bin go get github.com/jteeuwen/go-bindata/...
which go-bindata || GO111MODULE=off GOBIN=/tmp/minikube-20190813-42974-1m7v2fq/minikube-1.3.1/gocode/bin go get github.com/jteeuwen/go-bindata/...
# cd .; git clone https://github.com/jteeuwen/go-bindata /tmp/minikube-20190813-42974-1m7v2fq/minikube-1.3.1/gocode/src/github.com/jteeuwen/go-bindata
Cloning into '/tmp/minikube-20190813-42974-1m7v2fq/minikube-1.3.1/gocode/src/github.com/jteeuwen/go-bindata'...
fatal: cannot copy '/usr/share/git-core/templates/description' to '/tmp/minikube-20190813-42974-1m7v2fq/minikube-1.3.1/gocode/src/github.com/jteeuwen/go-bindata/.git/description': File exists
package github.com/jteeuwen/go-bindata/...: exit status 128
# cd .; git clone https://github.com/jteeuwen/go-bindata /tmp/minikube-20190813-42974-1m7v2fq/minikube-1.3.1/gocode/src/github.com/jteeuwen/go-bindata
Cloning into '/tmp/minikube-20190813-42974-1m7v2fq/minikube-1.3.1/gocode/src/github.com/jteeuwen/go-bindata'...
/tmp/minikube-20190813-42974-1m7v2fq/minikube-1.3.1/gocode/src/github.com/jteeuwen/go-bindata/.git/hooks/: No such file or directory
package github.com/jteeuwen/go-bindata/...: exit status 1
Makefile:232: recipe for target 'pkg/minikube/translate/translations.go' failed
make: *** [pkg/minikube/translate/translations.go] Error 1
make: *** Waiting for unfinished jobs....
Makefile:223: recipe for target 'pkg/minikube/assets/assets.go' failed
make: *** [pkg/minikube/assets/assets.go] Error 1

Um... looks like setting GOPATH is not necessary 😕

@issyl0, I removed the line where I previously set GOPATH: when not set it defaults to $HOME/go and $HOME is set to a temporary directory during the Homebrew build, so we're all good...

Thanks, Maxim! :rocket:

Thanks, Issy!


animation rendering

Description
Task: Adding Animation.
Feature: Projectiles
In the context of projectiles, the animation function is utilised to graphically describe and replicate projectile motion, making it simpler for users to understand their behaviour under various circumstances. It's an important tool.
Dependencies
no major dependencies as it is basically a render animation
Milestones
List of steps that need to be completed for this task.

[ ] Understand the class of the projectiles as this is a new feature
[ ] analyse the types of atlas files and their dependencies for animations
[ ] grab all types of files for a suitable fit animation
[ ] Implement the type of animation
[ ] test to see if the game is running and the animation is being applied to the targets

Completion Deadline: oct 2
Documentation

Main description of feature
JavaDoc
...

Member

Elanagai Arivuchelvan (@ElanagaiArivuchelvan)
Sahajdeep Singh (@sahajdeep31)
Jigyasu mittal ( @JigyasuMittal )

Hi there, will you be implementing the different projectiles for different mobs?


Android: black items in map

Hi guys. Do you know why I'm seeing black item, even black pointer on android? It's working well on iOS but not on android

Did you get this resolve?

@mariovillamizar Are you seeing this on an emulator or a physical device? I have also seen this issue on emulators but I havnt seen it happen on physical android devices.


Should it be Pack.class?

https://github.com/3esi/dotnet-plugin/blob/f11c37fc9ea12165162e8ca1a4d56758dcce5907/src/main/java/net/karlmartens/dotnet/Pack.java#L16

This line should read ...getLogger(Pack.class);

Issue
A cut and paste issue that would have caused debug logging to go against the wrong category.
Resolved the issue in commit 33f326185deb6b723657ac4f202013fbf9a46ea6
Impact

Minor

Version

Will be available in the next version 0.2.19


Release: 3.9.1

Description
Create 3.9.1 release, This release contains following changes:

Add Github Action CI test for this repo
Correct IO assertion macros
Split rv32i_m/F/fnmadd_b15.S, fnmsub_b15.S, fmadd_b15.S, fmsub_b15.S into multiple smaller tests
Split each _b15 file into 50 files consists of 768 (128*6) tests

Yes, they are in a separate folder


chore(test): mock all request responses

This patch adds mocked responses to all the requests made in the tests.
Here's how I generated the data in mock-data.json using nock:
diff --git a/test/integration/endpoints.js b/test/integration/endpoints.js
index 4ab166c..604de5e 100644
--- a/test/integration/endpoints.js
+++ b/test/integration/endpoints.js
@@ -4,10 +4,28 @@ process.env.INTEGRATION = true
 import fs from 'fs'
 import path from 'path'
 import fileModule from 'file'
+import nock from 'nock'

 const testDir = 'tests'
 const testFileName = 'integration_test.js'

+before(() => {
+  nock.recorder.rec({
+    output_objects: true,
+    dont_print: true,
+  })
+})
+
+after((done) => {
+  const nockCallObjects = nock.recorder.play()
+  fs.writeFile('./mock-data.json', JSON.stringify(nockCallObjects), (error) => {
+    if (error) {
+      console.error(error)
+    }
+    done()
+  })
+})
+
 describe('endpoint', () => {
   it('should load the server and set everything up properly', (done) => {
     const app = require(`${process.cwd()}/server`)

This means that our tests don't make any requests which has been a problem in the past. This enables us to mock future endpoints from the beginning and maybe we can start moving the mocked data into the tests and delete the json file in the future.

This failure actually makes sense since the weather API test is failing on master as well 😆

It looks like the weather site is just broken right now so the failure makes sense at this point of time

But this is the kind of issues we get rid of by mocking the website responses like I'm doing in this PR. The fact that this PR and master is blocked on something that we can't change is pretty bad.

Regenerated the mock json data in a more human readable form so that diffs will be better in the future.

The CI build is running in ~30sec with linting and testing running in ~5sec each.

@MiniGod How's this?

I don't wanna tout my own horn but it's been really fun working in this PR with the really fast and consistent tests 🙏

This is AMAZING! You are not tooting your horn at all, we will have to call Gudni, the pineapple president to give you one of his fálkaorðas

Great note about how to do the mock data for new endpoints. LGTM now.
I love this PR so much. I and @kristjanmik were talking about apis.is last weekend, and how much it sucks that the tests fail if the sources are not up, and hence the automatic deploy fails too. This is seriously such an amazing PR! Kudos to @koddsson


fix cluster example start script

without this change, the example doesn't start with an error like
Error: Could not find or load main class io.aeron.samples.tutorial.cluster.BasicAuctionClusteredServiceNode
Caused by: java.lang.ClassNotFoundException: io.aeron.samples.tutorial.cluster.BasicAuctionClusteredServiceNode
Error: Could not find or load main class io.aeron.samples.tutorial.cluster.BasicAuctionClusteredServiceNode
Caused by: java.lang.ClassNotFoundException: io.aeron.samples.tutorial.cluster.BasicAuctionClusteredServiceNode
Error: Could not find or load main class io.aeron.samples.tutorial.cluster.BasicAuctionClusteredServiceNode
Caused by: java.lang.ClassNotFoundException: io.aeron.samples.tutorial.cluster.BasicAuctionClusteredServiceNode

should the parameters for the example contain the word "tutorial", like in aeron.cluster.tutorial.bidIntervalMs?
thanks!

I agree that including the scope of tutorial does help.

I agree that including the scope of tutorial does help.
ok then nothing more should be changed.
Changes for this PR is necessary because you moved package cluster (with classes like BasicAuctionClusteredServiceNode) from tutorial to samples

I think moving them into a tutorial subpackage is better.  Added PR #1055.


Memory utilization question

I set up two public server with different RAM. One is 8Gb and the other is 32Gb. The cfg is the same with node_size=large and history=full. Then I create about 1 million accounts for testing.
I find that in the 8Gb machine, the memory utilization is up to 95% and won't increase. But in the 32Gb machine, the memory cost is about 13Gb and it increased all the time. The increase speed is about 1Mb every 8 minute(I won't do any transaction).
I have two question about this.

Does the increased memory used by sqlite?
Does ripple set the max memory utilization in code? Or there is a unknown memory leak?

Thanks.

How are you measuring the memory used? Are you measuring virtual memory usage or physical memory usage?

Is this still an issue?


Not able to run script

! When running the script with  python3 domLink.py  -D starlink.com . Getting below error
<class 'type'>
Traceback (most recent call last):
File "domLink.py", line 221, in
main()
File "domLink.py", line 150, in main
api_key = args.api if args.api else read_key_from_config()
File "domLink.py", line 47, in read_key_from_config
return config.get('API_KEYS', 'whoxy')
File "/usr/lib/python3.8/configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "/usr/lib/python3.8/configparser.py", line 1149, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'API_KEYS'

Its simple:

Script needs to be run with Python2
You need to set an API key

how to set an API?

how to set an API?

It literaly is in the Readme: "Set that API key in a file named domLink.cfg in the same directory."


GLFW not building with premake.

Hi,
I'm trying to build GLFW for my project using Premake in Visual Studio 2019, but I'm getting an error:
1>------ Build started: Project: GLFW, Configuration: Debug x64 ------
1>cl : command line warning D9002: ignoring unknown option '-std=c11'
1>cl : command line warning D9002: ignoring unknown option '-lgdi32'
1>context.c
1>egl_context.c
1>init.c
1>input.c
1>monitor.c
1>osmesa_context.c
1>vulkan.c
1>wgl_context.c
1>win32_init.c
1>win32_joystick.c
1>win32_monitor.c
1>win32_thread.c
1>win32_time.c
1>win32_window.c
1>window.c
1>Generating Code...
1>D:\CppWorkspace\Hazel\Hazel\vendor\GLFW\src\win32_window.c : fatal error C1090: PDB API call failed, error code '3': D:\CppWorkspace\Hazel\Hazel\vendor\GLFW\bin-int\Debug-windows-x86_64\GLFW\GLFW.pdb
1>Done building project "GLFW.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

The premake file used to build is:
project "GLFW"
	kind "StaticLib"
	language "C"

	targetdir ("bin/" .. outputdir .. "/%{prj.name}")
	objdir ("bin-int/" .. outputdir .. "/%{prj.name}")

	files
	{
		"include/GLFW/glfw3.h",
        "include/GLFW/glfw3native.h",
        "src/glfw_config.h",
        "src/context.c",
        "src/init.c",
        "src/input.c",
        "src/monitor.c",
        "src/vulkan.c",
        "src/window.c"
	}

	filter "system:windows"
		buildoptions { "-std=c11", "-lgdi32" }
		systemversion "latest"
		staticruntime "On"

		files
		{
			"src/win32_init.c",
            "src/win32_joystick.c",
            "src/win32_monitor.c",
            "src/win32_time.c",
            "src/win32_thread.c",
            "src/win32_window.c",
            "src/wgl_context.c",
            "src/egl_context.c",
            "src/osmesa_context.c"
		}

		defines
		{
            "_GLFW_WIN32",
            "_CRT_SECURE_NO_WARNINGS"
   		}

   		filter { "system:windows", "configurations:Release" }
        	buildoptions "/MT"
```
Any help is highly appreciated.

I've seen this error quite a lot, it has been addressed in newer versions of Visual Studio, can you tell me the version you're currently using? If not check your path, as error code 3 can be a path error.

My visual studio is version 16.6.2 and the installer says it's up to date

Can you try running it elevated?

I tried, it didn't work. I also tried to repair the Visual studio installation, that didn't work either

I installed Visual Studio 2017, and it worked.
I think I should close this issue then.

but why does it happen in vs2019?


Allow custom levels to be defined

I'd like to be able to define additional levels (and associated styles) to be added to the default set of levels (success, error, warning, info)

I'd like to be able to do this as well; while the default set covers the bases pretty well, having the ability to add a generic style (or simply an additional style) is helpful. For example, I have an implementation where I need to be able to show success, warning, and info as parts of the UX. Additionally, though, I need a "pending" state while I'm waiting for something to process I need to show the user that the action is running. This should be a neutral style.

Yes, very common use case - show notification with loading/pending state and then success/failure.
Maybe the ability to pass any string for the level prop would be very useful. This will allow custom notification-loading, etc. elements


Add support for cfn-lint 1.x

Describe the bug
The 0.x versions of cfn-lint received their final release at the end of July, and all new releases of cfn-lint are for 1.x. Attempting to install taskcat with a 1.x version of cfn-lint results in a dependency resolution error.
The conflict is caused by:
    The user requested cfn-lint==1.15.1
    taskcat 0.9.54 depends on cfn_lint<1.0 and >=0.72.0

To Reproduce
Steps to reproduce the behavior:
Install these two packages together.
mkdir -p ~/temp/taskcat && cd ~/temp/taskcat/
python3 -m venv venv && source venv/bin/activate
pip install taskcat==0.9.54 cfn-lint==1.15.1

Expected behavior
Should be able to install taskcat and use the latest version of cfn-lint
Screenshots
If applicable, add screenshots to help explain your problem.
**Version (Please make sure you are running the latest version of taskcat)

Taskcat Version 0.9.54
Python Version 3.11.9

Additional context
Add any other context about the problem here.

Would you be interested in submitting a pull request?

Yep - my intention was to give it a shot see if I can work out how to build/test this project once I'm back home & on my personal device. Will give it a shot this evening.


Panic when etcd-snapshot-dir does not exist

K3s tracking issue for:

https://github.com/rancher/rke2/issues/4942#issuecomment-1915682698

If the target snapshot dir does not exist, the etcd snapshot will fail, and the subsequent reconcile in listLocalSnapshots will panic when attempting to walk the nonexistent path.
There is another race condition if a scheduled snapshot and manual snapshot run at the same time, and one of them prunes files out from underneath the other. There is locking in the snapshot code path, but it is essentially useless because it is a mutex within the server process, and the cron scheduler already ensures only a single execution at a time - and it does nothing to help with multiple snapshots taken by separate processes. We should fix that as well, if possible.

Issue found on master branch with commit de825845b2f1eca82c19892c327ed274abfa8901
Environment Details

Infrastructure

[x] Cloud
[ ] Hosted

Node(s) CPU architecture, OS, and Version:

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"

$ uname -m
x86_64

Cluster Configuration:

HA: 3 server/ 1 agent

Config.yaml:

token: xxxx
cluster-init: true
write-kubeconfig-mode: "0644"
node-external-ip: <IP_ADDRESS>
node-label:
- k3s-upgrade=server

etcd-snapshot-retention: 2
etcd-snapshot-schedule-cron: "* * * * *"
etcd-s3: true
etcd-s3-access-key: xxx
etcd-s3-secret-key: xxx
etcd-s3-bucket: xxx
etcd-s3-folder: xxx
etcd-s3-region: xxx

etcd-snapshot-dir: '/does/not/exist'
debug: true

Testing Steps

Copy config.yaml

$ sudo mkdir -p /etc/rancher/k3s && sudo cp config.yaml /etc/rancher/k3s

Install k3s

curl -sfL https://get.k3s.io | sudo INSTALL_K3S_COMMIT='de825845b2f1eca82c19892c327ed274abfa8901' sh -s - server

Perform etcd-snapshot operations: save, prune, list, delete

Expected behavior:

Step 3: Perform etcd-snapshot operations: save, prune, list, delete - none of them should have a seg fault. Should exit gracefully.
Reproducing Results/Observations:

k3s version used for replication:

$ k3s -v
k3s version v1.29.1+k3s-de825845 (de825845)
go version go1.21.6

Prune operation output:
$ sudo /usr/local/bin/k3s etcd-snapshot prune --snapshot-retention 2
time="2024-02-15T19:32:35Z" level=warning msg="Unknown flag --token found in config.yaml, skipping\n"
time="2024-02-15T19:32:35Z" level=warning msg="Unknown flag --etcd-snapshot-retention found in config.yaml, skipping\n"
time="2024-02-15T19:32:35Z" level=warning msg="Unknown flag --etcd-snapshot-schedule-cron found in config.yaml, skipping\n"
time="2024-02-15T19:32:35Z" level=warning msg="Unknown flag --cluster-init found in config.yaml, skipping\n"
time="2024-02-15T19:32:35Z" level=warning msg="Unknown flag --write-kubeconfig-mode found in config.yaml, skipping\n"
time="2024-02-15T19:32:35Z" level=warning msg="Unknown flag --node-external-ip found in config.yaml, skipping\n"
time="2024-02-15T19:32:35Z" level=warning msg="Unknown flag --node-label found in config.yaml, skipping\n"
time="2024-02-15T19:32:35Z" level=info msg="Applying snapshot retention=2 to local snapshots with prefix on-demand in /does/not/exist"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x46f311d]

goroutine 1 [running]:
github.com/k3s-io/k3s/pkg/etcd.snapshotRetention.func1({0xc001220ee4?, 0xf?}, {0x0, 0x0}, {0x6f0bb80, 0xc0012980f0})
	/go/src/github.com/k3s-io/k3s/pkg/etcd/snapshot.go:930 +0x3d
path/filepath.Walk({0xc001220ee4, 0xf}, 0xc000f5f700)
	/usr/local/go/src/path/filepath/path.go:570 +0x4a
github.com/k3s-io/k3s/pkg/etcd.snapshotRetention(0x2, {0x604a43d, 0x9}, {0xc001220ee4, 0xf})
	/go/src/github.com/k3s-io/k3s/pkg/etcd/snapshot.go:929 +0x1ad
github.com/k3s-io/k3s/pkg/etcd.(*ETCD).PruneSnapshots(0xc00094af00, {0x6f64090, 0xc000943720})
	/go/src/github.com/k3s-io/k3s/pkg/etcd/snapshot.go:507 +0x6d
github.com/k3s-io/k3s/pkg/cli/etcdsnapshot.prune(0x0?, 0xa8b1a00)
	/go/src/github.com/k3s-io/k3s/pkg/cli/etcdsnapshot/etcd_snapshot.go:280 +0x7c
github.com/k3s-io/k3s/pkg/cli/etcdsnapshot.Prune(0xc000a9be40?)
	/go/src/github.com/k3s-io/k3s/pkg/cli/etcdsnapshot/etcd_snapshot.go:267 +0x34
github.com/urfave/cli.HandleAction({0x54002c0?, 0x66e58b8?}, 0x5?)
	/go/pkg/mod/github.com/urfave/cli@v1.22.14/app.go:524 +0x50
github.com/urfave/cli.Command.Run({{0x6010151, 0x5}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x6376f09, 0x56}, {0x0, ...}, ...}, ...)
	/go/pkg/mod/github.com/urfave/cli@v1.22.14/command.go:175 +0x63e
github.com/urfave/cli.(*App).RunAsSubcommand(0xc000dcda40, 0xc000a9bb80)
	/go/pkg/mod/github.com/urfave/cli@v1.22.14/app.go:405 +0xe07
github.com/urfave/cli.Command.startApp({{0x605de37, 0xd}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x0, 0x0}, {0x0, ...}, ...}, ...)
	/go/pkg/mod/github.com/urfave/cli@v1.22.14/command.go:380 +0xb58
github.com/urfave/cli.Command.Run({{0x605de37, 0xd}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x0, 0x0}, {0x0, ...}, ...}, ...)
	/go/pkg/mod/github.com/urfave/cli@v1.22.14/command.go:103 +0x7e5
github.com/urfave/cli.(*App).Run(0xc000dcd880, {0xc000d56b60, 0xd, 0xd})
	/go/pkg/mod/github.com/urfave/cli@v1.22.14/app.go:277 +0xb27
main.main()
	/go/src/github.com/k3s-io/k3s/cmd/server/main.go:81 +0xbfb

Moving this out to the next release to fix the prune subcommand.

Validated on master branch with commit 364dfd8b89e62bc7816aa4843db8deb6f6fd2978
Environment Details

Infrastructure

[x] Cloud
[ ] Hosted

Node(s) CPU architecture, OS, and Version:

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"

$ uname -m
x86_64

Cluster Configuration:

HA: 3 server/ 1 agent

Config.yaml:

token: xxxx
cluster-init: true
write-kubeconfig-mode: "0644"
node-external-ip: <IP_ADDRESS>
node-label:
- k3s-upgrade=server

etcd-snapshot-retention: 2
etcd-snapshot-schedule-cron: "* * * * *"
etcd-s3: true
etcd-s3-access-key: xxxx
etcd-s3-secret-key: xxxx
etcd-s3-bucket: xxxx
etcd-s3-folder: xxxx
etcd-s3-region: xxxx

etcd-snapshot-dir: '/does/not/exist'

debug: true

Testing Steps

Copy config.yaml

$ sudo mkdir -p /etc/rancher/k3s && sudo cp config.yaml /etc/rancher/k3s

Install k3s

curl -sfL https://get.k3s.io | sudo INSTALL_K3S_COMMIT='364dfd8b89e62bc7816aa4843db8deb6f6fd2978' sh -s - server

Verify Cluster Status:

kubectl get nodes -o wide
kubectl get pods -A

Verify etcd-snapshot operations: save, prune, list, delete

sudo /usr/local/bin/k3s etcd-snapshot list
sudo /usr/local/bin/k3s etcd-snapshot save
sudo /usr/local/bin/k3s etcd-snapshot prune
sudo /usr/local/bin/k3s etcd-snapshot delete <snapshot>

Validation Results:

k3s version used for validation:

$ k3s -v
k3s version v1.29.2+k3s-364dfd8b (364dfd8b)
go version go1.21.7

Save:
 $ sudo /usr/local/bin/k3s etcd-snapshot save
time="2024-03-11T18:42:04Z" level=warning msg="Unknown flag --token found in config.yaml, skipping\n"
time="2024-03-11T18:42:04Z" level=warning msg="Unknown flag --etcd-snapshot-schedule-cron found in config.yaml, skipping\n"
time="2024-03-11T18:42:04Z" level=warning msg="Unknown flag --cluster-init found in config.yaml, skipping\n"
time="2024-03-11T18:42:04Z" level=warning msg="Unknown flag --write-kubeconfig-mode found in config.yaml, skipping\n"
time="2024-03-11T18:42:04Z" level=warning msg="Unknown flag --node-external-ip found in config.yaml, skipping\n"
time="2024-03-11T18:42:04Z" level=warning msg="Unknown flag --node-label found in config.yaml, skipping\n"
time="2024-03-11T18:42:04Z" level=debug msg="Attempting to retrieve extra metadata from k3s-etcd-snapshot-extra-metadata ConfigMap"
time="2024-03-11T18:42:04Z" level=debug msg="Error encountered attempting to retrieve extra metadata from k3s-etcd-snapshot-extra-metadata ConfigMap, error: configmaps \"k3s-etcd-snapshot-extra-metadata\" not found"
time="2024-03-11T18:42:04Z" level=fatal msg="failed to get etcd-snapshot-dir: stat /does/not/exist: no such file or directory"

Prune:
 $ sudo /usr/local/bin/k3s etcd-snapshot prune
time="2024-03-11T18:43:11Z" level=warning msg="Unknown flag --token found in config.yaml, skipping\n"
time="2024-03-11T18:43:11Z" level=warning msg="Unknown flag --etcd-snapshot-schedule-cron found in config.yaml, skipping\n"
time="2024-03-11T18:43:11Z" level=warning msg="Unknown flag --cluster-init found in config.yaml, skipping\n"
time="2024-03-11T18:43:11Z" level=warning msg="Unknown flag --write-kubeconfig-mode found in config.yaml, skipping\n"
time="2024-03-11T18:43:11Z" level=warning msg="Unknown flag --node-external-ip found in config.yaml, skipping\n"
time="2024-03-11T18:43:11Z" level=warning msg="Unknown flag --node-label found in config.yaml, skipping\n"
time="2024-03-11T18:43:11Z" level=fatal msg="failed to get etcd-snapshot-dir: stat /does/not/exist: no such file or directory"

List:
$ sudo k3s etcd-snapshot list
WARN[0000] Unknown flag --token found in config.yaml, skipping
WARN[0000] Unknown flag --server found in config.yaml, skipping
WARN[0000] Unknown flag --write-kubeconfig-mode found in config.yaml, skipping
WARN[0000] Unknown flag --node-external-ip found in config.yaml, skipping
WARN[0000] Unknown flag --node-label found in config.yaml, skipping
FATA[0000] failed to get etcd-snapshot-dir: stat /does/not/exist: no such file or directory

Delete:
$ sudo k3s etcd-snapshot delete on-demand-ip-x
WARN[0000] Unknown flag --token found in config.yaml, skipping
WARN[0000] Unknown flag --server found in config.yaml, skipping
WARN[0000] Unknown flag --write-kubeconfig-mode found in config.yaml, skipping
WARN[0000] Unknown flag --node-external-ip found in config.yaml, skipping
WARN[0000] Unknown flag --node-label found in config.yaml, skipping
FATA[0000] failed to get etcd-snapshot-dir: stat /does/not/exist: no such file or directory


Please support HDRP. Many people are looking forward to this!

Unity has already supported HDRP VR. Please support HDRP.

Hello @jerrygg, this request is already being tracked at #630. Closing as a duplicate.


Inconsistent original/output video size

Hi,
I used the default setting for peerconnection_serverless. However, the original ~1s test.yuv video would become ~19s output video after transmission.
Could someone help me out here?
Thanks!

Hi @ChengChen2020 , it is right. You can set the duration time in sender's configuration json file. The key is "autoclose". And AlphaRTC will repeat the video if the video's duration time is less than the key "autoclose".


[MembershipInferenceBlackBox] Why does the attack shuffles the inputed data?

Hey,
I recently used the MembershipInferenceBlackBox attack to test my target model. I noticed that if I input data into the infer() method, the data points are shuffled before the attack infers the membership status (See: black_box.py#L273). As a result, the returned values can not be matched to their corresponding data points anymore.
Is this behaviour intended? And if so, it would be great to hear an opinion on why this is intended behaviour.
Thanks!

Hi @marisanest Thank you very much for your question and checking the code of ART! We'll be back with an answer as soon as possible.

Actually, you're right, this shouldn't happen in infer. Thanks @marisanest, I will fix it as soon as possible.

Greate, thanks for your quick reply! Let me know if I can help in any way. Otherwise, looking forward to ART 1.7.1 :+1:


Generating new Hyperdrive has error.

I tried the sample code from the document and it has the error.
This is the code section.
const Hyperdrive = require('hyperdrive');
const Corestore = require('corestore');

const fs = require('fs');
const corestore = new Corestore('./storage');

const drive = new Hyperdrive(corestore);

But when I run node index.js, there is this error.
TypeError [ERR_INVALID_ARG_TYPE]: The "size" argument must be of type number. Received undefined
Let me know how to resolve this, thank you.

I don't think you are using the @next package, are you?

You mean hyperdriver@next package?

hyperdrive@next yea, ie
npm install hyperdrive@next


cdc: load old value with prefix seek if possible

What is changed and how it works?
Close #11642 .
Related changes

PR to update pingcap/docs/pingcap/docs-cn:
PR to update pingcap/tidb-ansible:
Need to cherry-pick to the release branch

Check List
Tests

Unit test

Side effects
Release note
None

/merge


Position Update Issues

Prerequisites

[X ] Put an X between the brackets on this line if you have done all of the following:

My beacons have Estimote Location packet enabled (Check it in the Estimote Cloud, or via app)
My Android device/devices supports BLE and has Android OS version >= 5.0.0
My Android device/devices have bluetooth enabled
My app has Location Permissions granted

Basic information
Estimote SDK version: Indoor SDK 2.0.1
Android devices affected: Samsung Galaxy S8+
Android OS version affected: 7.0
Beacon hardware version: [Paste here your beacons hardware version (you can check that in Estimote Cloud).] I1.2
Description
When using the Estimote Indoor Location SDK I am not getting updates on Android properly. When I start positioning updates I first get an initial position which is roughly correct, but all updates after that are the same position no matter where I move the device. This occurs in both my custom app and when building the example in this repo.
Steps to reproduce:

Load up example app
Select a location
Start positioning
Updates are not correct

Expected behavior:
The SDK should report back correct position updates like it does on iOS
Actual behavior:
It does not report back correct position updates.

Hello, I also experience the same issue, even with the example. When my tablet (samsung galaxy tab 2, Android 7.0) locks the screen the onPositionUpdate starts working with new values, when I resume the app it works for 10 seconds and then I get the same results. The position gets updated after 10 seconds if I am near a beacon.

same issue in S5 with Android 6.0.1
When chaning the location which should be used during runtime, this issue seems to "solve itself", but then it seems like multiple instances of indoorManager are working at the same time

I was facing same issue.
I fixed the issue by downgrading sdk version to 2.5.3
Also I have taken one textView to get x, y coordinates and updated method as below:
override fun onPositionUpdate(locationPosition: LocationPosition) {
indoorLocationView.updatePosition(locationPosition)
runOnUiThread {
txtVwLocationCords.setText("x: " + df.format(locationPosition.x)+  "\n" +"y: "+ df.format(locationPosition.y))
}
}
Although it's not smooth as ios version.
Happy coding :-)


Run proxies using arbitratry userid

For explanation see:
https://docs.openshift.org/latest/creating_images/guidelines.html
Under "Support Arbitrary User IDs"

I'm curious how you encountered this.  Do these containers fail to start without this change in openshift?

Also - Could we use the runAsUser field of the PodSecurityContext (https://kubernetes.io/docs/api-reference/v1.6/#podsecuritycontext-v1-core) - or SecurityContext for Container.

Please read the link in the commit request for the rationale.

Without these changes, the containers fail with permissions errors when deploying on origin.

Right, lgtm.


[BUG][NOWEWB] - NOWEB will remain in the STARTING state after automatic restart. It requires manual ReStart to change to WORKING.

NOWEB will remain in the STARTING state after automatic restart. It requires manual ReStart to change to WORKING.

This is an accidental phenomenon. Normally, it will automatically change to WORKING after a few seconds of STARTING.

version 2024.10.1

Suddenly a large batch changed to the failed state, and returned to normal after restarting.

Suddenly a large batch changed to the failed state, and returned to normal after restarting.

I would like to ask if it is possible to turn off the automatic restart of noweb?

You need to remove WHATSAPP_RESTART_ALL_SESSIONS from the environemnt variables

Normally, it will automatically change to WORKING after a few seconds of STARTING

yeah, noticed this behaviour after container restart too, checking it!

Quick question - do you use file or mongodb?
We should start CRM system or something to avoid such question over an over :D

Quick question - do you use file or mongodb?
We should start CRM system or something to avoid such question over an over :D

use mongodb

I would like to ask if it is possible to turn off the automatic restart of noweb?

You need to remove WHATSAPP_RESTART_ALL_SESSIONS from the environemnt variables

OK, thanks

Let's try 2024.10.5 and see if it helps :crossed_fingers:

I would like to ask if it is possible to turn off the automatic restart of noweb?

You need to remove WHATSAPP_RESTART_ALL_SESSIONS from the environemnt variables

Hi，I deleted the WHATSAPP_RESTART_ALL_SESSIONS environment variable, will this have any impact on NOWEB? I think your design like this must be useful

Let's try 2024.10.5 and see if it helps 🤞

Doesn't seem to help, these sessions stay on starring

@HuangDaHui could you try to add WAHA_AUTO_START_DELAY_SECONDS=1 environment variable?
The issue likely because all sessions starts at once (almost), but with 1 seconds delay it can help slowly run them one by one to avoid such issues.
If there's something in logs right after the start, it'd help us as well :pray:

I deleted the WHATSAPP_RESTART_ALL_SESSIONS environment variable, will this have any impact on NOWEB? I think your design like this must be useful
ok let me try
I deleted the WHATSAPP_RESTART_ALL_SESSIONS environment variable, will this have any impact on NOWEB? I think your design like this must be useful

ok let me try
I deleted the WHATSAPP_RESTART_ALL_SESSIONS environment variable, will this have any impact on NOWEB? I think your design like this must be useful

ok let me try
I deleted the WHATSAPP_RESTART_ALL_SESSIONS environment variable, will this have any impact on NOWEB? I think your design like this must be useful

@HuangDaHui could you try to add WAHA_AUTO_START_DELAY_SECONDS=1 environment variable? The issue likely because all sessions starts at once (almost), but with 1 seconds delay it can help slowly run them one by one to avoid such issues.
If there's something in logs right after the start, it'd help us as well 🙏

ok let me try
I deleted the WHATSAPP_RESTART_ALL_SESSIONS environment variable, will this have any impact on NOWEB? I think your design like this must be useful

Could it be related to MongoDB? I have another container with relatively few sessions, and this never seems to happen.

I would like to ask if it is possible to turn off the automatic restart of noweb?

You need to remove WHATSAPP_RESTART_ALL_SESSIONS from the environemnt variables

 Deleting it seems to have no effect. It still turns into starting in large batches and cannot be started. I don’t know why?

Soon after this happens, the container will exit on its own and I need to re-docker start id

@HuangDaHui Do you use a single MongoDB with multiple WAHA workers by any change? Lioke multiple docker container but with the same MONGO_URL string? If yes - you need to setup WAHA_WORKER_ID=waha{ID} for each container (unique one)
Could you try to add WAHA_WORKER_RESTART_SESSIONS=False - in this case after restart all sessions will be stopped

@HuangDaHui Do you use a single MongoDB with multiple WAHA workers by any change? Lioke multiple docker container but with the same MONGO_URL string? If yes - you need to setup WAHA_WORKER_ID=waha{ID} for each container (unique one)
Could you try to add WAHA_WORKER_RESTART_SESSIONS=False - in this case after restart all sessions will be stopped

Yes, 2 containers use the same MongoDB, 1 NOWEB and 1 WEBJS
Is this the reason that causes the problem?

@HuangDaHui Do you use a single MongoDB with multiple WAHA workers by any change? Lioke multiple docker container but with the same MONGO_URL string? If yes - you need to setup WAHA_WORKER_ID=waha{ID} for each container (unique one)
Could you try to add WAHA_WORKER_RESTART_SESSIONS=False - in this case after restart all sessions will be stopped

docker run -it -p 15101:3000/tcp --restart=always -e "WAHA_WORKER_ID=waha15101"  -e "WHATSAPP_DEFAULT_ENGINE=NOWEB" -e WHATSAPP_SESSIONS_MONGO_URL=mongodb://<IP_ADDRESS>:27018/ -e WHATSAPP_FILES_LIFETIME=0   -e WHATSAPP_RESTART_ALL_SESSIONS=True -e WAHA_AUTO_START_DELAY_SECONDS=1 devlikeapro/waha-plus
Is this okay?

No matter how I configure it, it always becomes starting and I don't know how to fix it

Yes, 2 containers use the same MongoDB, 1 NOWEB and 1 WEBJS

That should be fine

WAHA_WORKER_RESTART_SESSIONS=False这个也是 每次重启后你都需要手动启动它们。但让我们看看它是否有帮助

ok let me try
Is there anything else that could cause this problem to occur? It happens very frequently recently, which makes me very distressed

Is there anything else that could cause this problem to occur?

Logs would help to understand what is happening :pray:

  throw er; // Unhandled 'error' event
  ^

Error: Opening handshake has timed out
at ClientRequest. (/app/node_modules/@adiwajshing/baileys/node_modules/ws/lib/websocket.js:872:7)
at ClientRequest.emit (node:events:520:28)
at TLSSocket.emitRequestTimeout (node:_http_client:851:9)
at Object.onceWrapper (node:events:634:28)
at TLSSocket.emit (node:events:520:28)
at Socket._onTimeout (node:net:590:8)
at listOnTimeout (node:internal/timers:594:17)
at process.processTimers (node:internal/timers:529:7)
Emitted 'error' event on WebSocketClient instance at:
at WebSocket. (/app/node_modules/@adiwajshing/baileys/lib/Socket/Client/web-socket-client.js:46:100)
at WebSocket.emit (node:events:520:28)
at emitErrorAndClose (/app/node_modules/@adiwajshing/baileys/node_modules/ws/lib/websocket.js:1035:13)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
Is this useful?

You don't use any proxies for the sessions, right? Seen this before with bad proxies

You don't use any proxies for the sessions, right? Seen this before with bad proxies

No proxy used

Will it have any impact if I run 2 MongoDB containers in docker? They use different ports

The same is NOWEB, mongodb://<IP_ADDRESS>:27017. When using this MongoDB, everything is normal, but when using this MongoDB, it often gets stuck. mongodb://<IP_ADDRESS>:27018/

I run 2 MongoDB containers in docker

Fine if it's NOWEB and WEBJS (different engines)

ok, we'll try to find why the session not got restarted after the handshake timeout, that's weird.

I run 2 MongoDB containers in docker

Fine if it's NOWEB and WEBJS (different engines)

`--WEBJS
docker run -it -p 15000:3000/tcp --restart=always -e "WHATSAPP_DEFAULT_ENGINE=WEBJS" -e WHATSAPP_SESSIONS_MONGO_URL=mongodb://<IP_ADDRESS>:27017/ -e WHATSAPP_FILES_LIFETIME=0  -e WHATSAPP_RESTART_ALL_SESSIONS=True  devlikeapro/waha-plus:chrome
docker run -it -p 15001:3000/tcp --restart=always -e "WHATSAPP_DEFAULT_ENGINE=WEBJS" -e WHATSAPP_SESSIONS_MONGO_URL=mongodb://<IP_ADDRESS>:27018/ -e WHATSAPP_FILES_LIFETIME=0  -e WHATSAPP_RESTART_ALL_SESSIONS=True  devlikeapro/waha-plus:chrome
--NOWEB
docker run -it -p 15100:3000/tcp --restart=always -e "WHATSAPP_DEFAULT_ENGINE=NOWEB" -e WHATSAPP_SESSIONS_MONGO_URL=mongodb://<IP_ADDRESS>:27017/ -e WHATSAPP_FILES_LIFETIME=0  -e WHATSAPP_RESTART_ALL_SESSIONS=True  devlikeapro/waha-plus
docker run -it -p 15101:3000/tcp --restart=always  -e "WHATSAPP_DEFAULT_ENGINE=NOWEB" -e WHATSAPP_SESSIONS_MONGO_URL=mongodb://<IP_ADDRESS>:27018/ -e WHATSAPP_FILES_LIFETIME=0   -e WHATSAPP_RESTART_ALL_SESSIONS=True -e WAHA_AUTO_START_DELAY_SECONDS=1  devlikeapro/waha-plus`
This is the command I currently use to run WAHA. I don’t know if there is anything that needs to be adjusted. Everything is normal with NOWEB at port 15100:3000, and everything is normal with WEBJS.
NOWEB with only port 15101:3000 often gets stuck and the container exits.

In addition, I would like to ask if it is possible not to restart if the sessions are in the scan qr code state? Because I think it doesn't make sense, restarting just takes up resources

sessions are in the scan qr code state

If you stop it - it'll remember the state and won't restart it after (with WHATSAPP_RESTART_ALL_SESSIONS=False and WAHA_WORKER_RESTART_SESSIONS=True)

sessions are in the scan qr code state

If you stop it - it'll remember the state and won't restart it after container restart (with WHATSAPP_RESTART_ALL_SESSIONS=False and WAHA_WORKER_RESTART_SESSIONS=True)

ok let me try

@HuangDaHui Do you use a single MongoDB with multiple WAHA workers by any change? Lioke multiple docker container but with the same MONGO_URL string? If yes - you need to setup WAHA_WORKER_ID=waha{ID} for each container (unique one)
Could you try to add WAHA_WORKER_RESTART_SESSIONS=False - in this case after restart all sessions will be stopped

Hello, WAHA_WORKER_ID=waha{ID} After setting the ID, multiple NOWEBs can use the same MongoDB, right?

@HuangDaHui Do you use a single MongoDB with multiple WAHA workers by any change? Lioke multiple docker container but with the same MONGO_URL string? If yes - you need to setup WAHA_WORKER_ID=waha{ID} for each container (unique one)
Could you try to add WAHA_WORKER_RESTART_SESSIONS=False - in this case after restart all sessions will be stopped

Hello, WAHA_WORKER_ID=waha{ID} After setting the ID, multiple NOWEBs can use the same MongoDB, right?

After setting the ID, multiple NOWEBs can use the same MongoDB, right?

Yes and make sure to set WHATSAPP_RESTART_ALL_SESSIONS=False as well.
Do not run the same session on two workers, no protection for it right now. On two NOWEB workers you'll see "STOPPED" sessions from the different worker
Here's example for docker-compose
https://github.com/devlikeapro/waha/blob/core/docker-compose/docker-compose.workers.yaml

After setting the ID, multiple NOWEBs can use the same MongoDB, right?

Yes and make sure to set WHATSAPP_RESTART_ALL_SESSIONS=False as well. Do not run the same session on two workers, no protection for it right now. On two NOWEB workers you'll see "STOPPED" sessions from the different worker
Here's example for docker-compose https://github.com/devlikeapro/waha/blob/core/docker-compose/docker-compose.workers.yaml

OK, thank you


Allow actor type be specified during registration

Currently actors are registered via:
Dapr.Actors.Runtime.ActorRuntime.RegisterActor<TActor>(Func<ActorTypeInformation, ActorService> actorServiceFactory = null)

The "type" of the registered actor is inferred from the actor implementation class name.  However, clients of the actor must specify the same type string when invoking actor methods.  This makes the implementation class name an implicit component of the actor contract, subject to the risk of breaking the contract due to an innocent refactoring of the implementation.
Proposal:
Add an overload that allows passing an explicit actor type string, which can then be a shared contract between implementation and client (alongside the actor interface definition):
Dapr.Actors.Runtime.ActorRuntime.RegisterActor<TActor>(string actorType, Func<ActorTypeInformation, ActorService> actorServiceFactory = null)

@philliphoff This sounds good. Would you like to do a PR for this?

Sure!


Settings

Depends on this PR. DO NOT MERGE.
Before merging (once PR #15 has been merged), switch the base branch to v2.
This pull request adds support for the settings.

Self-merge.


option to show both icons and tab headers at once

Sometimes a design requires both text and icons to be shown at a certain resolution, and then at a lower resolution the tabs should only show the icons.  This adds support to the directive for such a behavior, if the user wants to display both tab icons and header text at the same time.

Thanks for the PR, good idea! Can you rewrite your commit message to follow the contributing guidelines? Thanks in advance.

Updated commit message


feat: support Array types

resolves #29
This turned out to be harder than expected from the inability to initialize Arrays with generic type parameters.
ref: https://stackoverflow.com/questions/41941102/instantiating-generic-array-in-kotlin


[BUG] Profile page the group link headings are not accessible

Description
The group links headings on the Profile page sections should be h2 not h3
note: not all profiles use the group headings, example with group headings http://linkfree.io/eddiejaoude
Screenshots
No response
Additional information
No response

Hello, I'm interested in working on this. Please assign me this issue.

I am interested in working on this issue. Can I be assigned to this issue, please?

Hello, I'm interested in working on this. Please assign me this issue.

@JayK1524  I have just assigned another issue to you.  As per our Contributing Guide we only assign one issue per person.
We appreciate your enthusiasm but in future please do not ask to be assigned to various issues in the expectation that one of these will be assigned to you.  I am sure you will appreciate this creates extra work for maintainers as well as notifications and noise.

I am interested in working on this issue. Can I be assigned to this issue, please?

@Sivasish48 I will assign this to you

Hello, I'm interested in working on this. Please assign me this issue.

@JayK1524 I have just assigned another issue to you. As per our Contributing Guide we only assign one issue per person.
We appreciate your enthusiasm but in future please do not ask to be assigned to various issues in the expectation that one of these will be assigned to you. I am sure you will appreciate this creates extra work for maintainers as well as notifications and noise.

Sorry, I didn't know that. I will keep that in mind. Thanks for the assignment.

I want to contribute in this @SaraJaoude

I want to contribute in this

@KushagraVarshney05 please check the top right of the page under the Assignees box - as you can see this Issue has ben assigned to someone else. When this is the case please do not ask to be assigned as this increase the noise and notifications unnecessarily for the maintainers.

@Sivasish48 I have unassigned this from you as there has been no activity for over 2 weeks.

i didn't understand the issue. Can u please provide some more info or a screenshot as well. :)

I am interested in working on this issue. Can someone assign it to me?

Can you shared more information about this issue , i didn't understand what goes wrong. I would love to work on this issue

Yes @mallyapravin

Yes @mallyapravin

Hello , as am new to this stack of project but this problem can be solve using html. And i know html . Am pretty confident that i can solve this problem. Please assign this issue to me 🙏

Yes @mallyapravin

Hello , as am new to this stack of project but this problem can be solve using html. And i know html . Am pretty confident that i can solve this problem. Please assign this issue to me 🙏

Read this comment @mallyapravin.

@mallyapravin as you were the first to request this issue once it became available, I have assigned this to you. Thank you for clarifying what is required in this issue by adding a screenshot - this is always super helpful to add context, avoid confusion and extra notifications.


Ensure docs publishing bot has appropriate configuration for .NET docs repo

https://github.com/Azure/azure-docs-sdk-dotnet/pull/1842#issuecomment-777228253

We don't use this anymore.  Old on-boarding methodoligy. Closing.


Horizontal scrolling?

Is horizontal scrolling available? I cannot see anything regarding this in readme or repo.

No its not implemented actually in this module, i think you can implement it and do a PR or ask the owner to add it.


Update go modules

qtls rewrote history upstream, this updates to just use
the latest of everything

Pull Request Test Coverage Report for Build 1957

0 of 0   changed or added relevant lines in 0 files are covered.
6 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.1%) to 79.242%

Files with Coverage Reduction
New Missed Lines
%

pkg/ice/agent.go
2
85.77%

pkg/ice/candidate.go
4
91.11%

Totals

Change from base Build 1953:
-0.1%

Covered Lines:
3890

Relevant Lines:
4909

💛  - Coveralls

REVIEWED


Calling sfTransform_getMatrix causes program to crash

I have the following code:
sfTransform t = sfTransform_fromMatrix(
    5, 5, 5,
    4, 4, 4,
    3, 3, 3
);

float mtrx;

sfTransform* t_ptr = &t;
t_ptr.sfTransform_getMatrix(&mtrx);

Upon running the app, I get the following error and a black screen:
Program exited with code -11

This seems to be an issue in the bindings as I am doing everything according to the documentation.

If you’re using dynamic bindings then make sure those two function pointers aren’t null.
Otherwise you’re going to have to investigate with a debugger to at least determine which of those functions caused the segfault, because a segfault is just a generic memory access violation.

I will investigate and come back to you thanks.


Google map theming?

Is it possible to change the style of the map? something similar to the below link
https://developers.google.com/maps/documentation/javascript/styling
Thanks

Yes; maps have input styles.

I was able to add custom styling from Google's Map Style Wizard by adding it directly to the map component.
ngOnInit() {
  this.mapApiWrapper.getNativeMap()
    .then((map)=> {
      map.setOptions(<NativeGoogMapProps> {
        styles: [Copied styles go here]
      });
  });
}

(I'm using angular2-google-maps: 0.17.0)


Autoencode training

Hi, I'm posting a new issue since other one is closed.
I'm trying this exact scenario of retraining the sdxl vae. I've made the changes indicated to create a config file that looks like below so that its pointing to training AutoencoderKL class with the loss config of lpips, and weights checkpoint of sdxlvae
The problem I run into is that the encode methods on the AutoencoderKL and its parent AutoencoderEngine are different. I'm using the training script under sgm examples. When training runs, as part of sanity check, the encode method gets called via:
run_sanity_check-->validation_step-->AutoencodingEngine.forward()-->self.encode(x, return_reg_log=True)

At this point, derived class AutoencoderKL does not have an encode method that takes return_reg_log param. What is the right codepath here to make this match sdxl vae training?
config file
model:
  base_learning_rate: 4.5e-6
  target: sgm.models.autoencoder.AutoencoderKL
  params:
    input_key: jpg
    monitor: val/rec_loss
    embed_dim: 4
    ckpt_path: "/mnt/d/generative-models/configs/checkpoints/sdxl_vae.safetensors"

    lossconfig:
      target: sgm.modules.autoencoding.losses.GeneralLPIPSWithDiscriminator
      params:
        perceptual_weight: 0.25
        disc_start: 20001
        disc_weight: 0.5
        learn_logvar: True

        regularization_weights:
          kl_loss: 1.0

    regularizer_config:
      target: sgm.modules.autoencoding.regularizers.DiagonalGaussianRegularizer

    ddconfig:
       attn_type: vanilla-xformers
       double_z: true
       z_channels: 4
       resolution: 256
       in_channels: 3
       out_ch: 3
       ch: 128
       ch_mult: [1, 2, 4, 4]
       num_res_blocks: 2
       attn_resolutions: []
       dropout: 0.0

Thank you!
Originally posted by @darshats in https://github.com/Stability-AI/generative-models/issues/85#issuecomment-1703762148

hey @darshats did you get any updated about this? Is there any correct config that can be used to further finetune the SDXL VAE model? Thanks in adavance.

@YAOYI626 Hi, have you made it? Thanks


Failure on env in Vagrant 1.7.2

I use Vagrant 1.7.2 on Ubuntu 14.04.
% vagrant -v
Vagrant 1.7.2

When I run vagrant up, I get the following error:
% vagrant up
Bringing machine 'gitlab' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

shell provisioner:
* The following settings shouldn't exist: env

According to this issue thread in another repository, I need to update to Vagrant > 1.8.
Perhaps the README.md file should be updated to reflect this?

It appears that upgrading to Vagrant 1.9.3 has fixed the issue.


display of external links

the display of external links is not working

Technical note:
Each link should be an item of a list and external links should be clickable

do you think it's doable?
Because on the Notion I attached the link directly to the text so it was cleaner and clickable, I would love to have the same thing on the platform

@Lauraillouz do you have any info on that?


SELECT * does not show results

Type: Bug
When run the following three queries:
SELECT * FROM «table» WHERE id=«id»
SELECT id, «column» FROM «table» WHERE id=«id»
SELECT COUNT(*) FROM «table» WHERE id=«id»

I get no results from the first query
Some data from the actual record in the second.
And the value 1 from the third
Note that i tried the exact same in SSMS and there I do get full results when using SELECT *.
Screenshot:

Azure Data Studio version: azuredatastudio 1.47.0 (c7c2b2f21505562d21972d4c135119d00806db4f, 2023-11-07T17:17:45.669Z)
OS version: Windows_NT x64 10.0.22621
Restricted Mode: No
Preview Features: Enabled
Modes:

System Info

Item
Value

CPUs
11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 1382)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
15.74GB (1.08GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (2)

Extension
Author (truncated)
Version

azuremonitor
Mic
0.1.9

import
Mic
1.5.5

Hi @stephan-ansems
Can you please try the latest insiders build and let us know if that works for you?

The insiders build fixed this issue for me.

Closing as resolved,


Save the Edited Date and Time in across other Gallery apps

Is it possible to save the Edited Date and time to exif or metadata so that other Gallery apps can also recognize the same data.
Currently I am using a workaround where I edit the Date and time and then covert that image and tick "write metadata" which seems to save it. But this workaround does not work on videos.
Will be great if we could save all the metadata directly.
Thanks for the great app.

I honestly don't understand what you are trying to achieve.

Is it possible to save the Edited Date and time to exif or metadata so that other Gallery apps can also recognize the same data.

What is the "the Edited Date and time" you mention? Are you talking about the file property usually called the "file modified date"?
Date & time can be edited and it will be saved in the Exif, XMP or other metadata standard, depending on the media format. When editing the date & time, you can select Copy from other date, and then select File modified date, if that's what you meant.
As for metadata editing support, it depends on the format. Some are better supported than others. You can check out the wiki for details.

Date & time can be edited and it will be saved in the Exif, XMP or other metadata standard, depending on the media format. When editing the date & time, you can select Copy from other date, and then select File modified date, if that's what you meant.

Yes this is what I meant. Can we have an option to forcefully write this edited date and time to disk and save it permanently. Bcoz when I edit this info, the other Gallery apps like fstop do not catch the new edited date and time.
Write metadata option is there is convert menu which works. So need similar option.

So:

saving the current file modified date to the Exif date: already possible as mentioned above,
modifying the file modified date to be the same as Exif date: not possible with Aves because Aves is not a file manager.

Converting creates a new file, which is a different thing from editing existing items.


purple points represent what?

hi, what do purple points represent?  labeled by some algorithm or rule?

It's just a labeled run of points. You can play with the menus in the bottom right to see that there are multiple kinds of labels you can add (which render as different colors), and you can also add different series!


libcloud-928: deploy node functon for EC2 in lines with GCE

#LIBCLOUD-928
deploy_node function for EC2 to take a startup script which will be launched once the VM is up and running.

Coverage decreased (-0.009%) to 88.228% when pulling 5aa70b6a730d6b03237158de92396c1fa64da105 on gargpankaj83:libcloud-928/deploy-node-ec2 into 9b15645fc9ec5d45609e171199da30acff6de88b on apache:trunk.

Oh, I was about to forgot: I would like to thank you for your contributions, @gargpankaj83!

@gargpankaj83 please can you update this PR with a complementing test so the changes can be merged.

@gargpankaj83 Any progress?

First thank you for your contribution.
This PR is very old and out of date now so I will go ahead and close it.
If it's still relevant, please sync your changes with the latest master / trunk and open a new PR. Thanks!


Consider displaying GIFs of SYP & OAB, map of ILL on homepage’s featured products

Triaging backlog (see email). Suggest we don't do.

Agreed. Not until we overhaul the app sites’ design to match our new brand anyway.


EXISTS/NOT EXISTS subqueries produce syntax error

Running an exists or not exists query fails.  E.g. adding this integration test to test/ecto/integration/crud_test.exs:
    test "handles exists subquery" do
      account1 = TestRepo.insert!(%Account{name: "Main"})
      user1 = TestRepo.insert!(%User{name: "John"}, [])
      TestRepo.insert!(%AccountUser{user_id: user1.id, account_id: account1.id})

      subquery = from(au in AccountUser, where: au.user_id == parent_as(:user).id, select: 1)

      assert [_] = TestRepo.all(from(a in Account, as: :user, where: exists(subquery)))
    end

Produces an error:
  1) test select handles exists subquery (Ecto.Integration.CrudTest)
     test/ecto/integration/crud_test.exs:237
     ** (Exqlite.Error) near "(": syntax error
     SELECT a0."id", a0."name", a0."email", a0."inserted_at", a0."updated_at" FROM "accounts" AS a0 WHERE (exists((SELECT 1 FROM "account_users" AS sa0 WHERE (sa0."user_id" = a0."id"))))
     code: assert [_] = TestRepo.all(from(a in Account, as: :user, where: exists(subquery)))
     stacktrace:
       (ecto_sql 3.7.2) lib/ecto/adapters/sql.ex:760: Ecto.Adapters.SQL.raise_sql_call_error/1
       (ecto_sql 3.7.2) lib/ecto/adapters/sql.ex:693: Ecto.Adapters.SQL.execute/5
       (ecto 3.7.2) lib/ecto/repo/queryable.ex:219: Ecto.Repo.Queryable.execute/4
       (ecto 3.7.2) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
       test/ecto/integration/crud_test.exs:244: (test)

The error appears to be that the generated SQL has two parentheses after the EXISTS (exists((), but sqlite only supports a single exists( .

Yea this can be fixed. Thank you for throwing a test together. If you want to attempt to fix it, that's fine. Otherwise, I'll try to get to this soon.

Thanks.  I briefly investigated, but the solution wasn't apparent to me.

Thanks. I briefly investigated, but the solution wasn't apparent to me.

Liar 😉 It looks like you figured it out!


Replace libdparse with DMD in UnusedParameterCheck

This check warns for unused function parameters, with the following exceptions:

functions with no bodies are ignored;
function overrides are ignored;
parameters having only '_' chars in their name are ignored;
parameters passed as pointers are ignored;
parameters having 'ref' or 'out' are ignored;

This visitor inherits a common chain of visitors also used for UnusedVariableCheck (UnusedIdentifierCheck and UnusedStorageCheck. I've decided to move this check to DMD without moving it's parent classes, since most of the base class functionality is needed for the unused var check.
My approach for this visitor is:

create a "scope" (array of AA containing some var metadata) when visiting a function;
check the unused params in the scope only if the function should be checked;
when visiting a Parameter, add it's metadata to the current scope;
when visiting an identifier expression, mark the parameter as used, if it exists;
if visiting a string expression inside a mixin statement, try to look for any of the current scope params in the string literal;
visit '__traits' expression and mark as used the expression's arguments having the identifier type;
when checking if a param is used, if a param is not found in the current scope, the parent scopes are checked in order to cover local function cases.

I've also added extra tests for override functions and ref / out / pointer params.
Also, the check is not 100% correct. Given the following example:
void testNested(int a)
{
	int nested(int b)
	{
		int a = 5;
		return a + b;
	}

	nested(3);
}

The libdparse visitor fails to warn for unused param 'a' in 'testNested'. I've kept the same behavior in DMD version.

You should rebase your PR on top of master, not merge master into your branch. That way we will not have all of the "Merge ..." commits.


Pay close attention to version dependencies

In order to get Ansible to work properly with Azure, you must have the exact component versions in the 'sudo pip install ansible[azure]'. However, you will most likely have newer versions already, and this will cause issues. Tell pip install to overwrite existing component versions by using the '--ignore-installed' paramter:
sudo pip install ansible[azure] --ignore-installed

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

ID: 88ac6b7d-76dc-189b-4ce7-d5f2b4043162
Version Independent ID: 5982bd9f-1339-3a62-75a4-35161e88368e
Content: Quickstart - Install Ansible on Linux virtual machines in Azure
Content Source: articles/ansible/install-on-linux-vm.md
Service: ansible
GitHub Login: @TomArcherMsft
Microsoft Alias: tarcher

@erosen03 I just published a new article for installing Ansible that should resolve any issues. Please let me know if you encounter any further problems. https://docs.microsoft.com/en-us/azure/developer/ansible/install-on-linux-vm

Thanks, @TomArcherMsft. That's a good post, and very nice  that there is now a simple .sh file to get things installed properly. I'll use that for the next Ansible controller.


Feature/questions answers/markdown

Checklist

[x] I tested all changes and all related features with different users (student, tutor, instructor, admin) on the test server https://artemistest.ase.in.tum.de.
[x] Client: I added multiple screenshots/screencasts of my UI changes

Motivation and Context

Students, tutors and instructors can only use plain text to write questions and answers limiting their ability to describe the problem or solution precisely.
The buttons of the Markdown editor take too much space and don't look good on smaller screens.
Description

I added the Markdown editor to the questions and answers component.
I changed the design of the buttons in the markdown editor UI to be smaller in order to fit better on smaller screens / spaces.
NOTE: If you encounter any bugs with the markdown editor please let me know. I will be further working on it in a separate PR, in which I will also address the functionality.
(Also if you have any wishes or suggestions for the Markdown editor)
Steps for Testing

Log in to Artemis
(1a. Enable questions and answers on a course if deactivated)
Navigate to a lecture or exercise
Markdown should now be available for questions and answers
View any other Markdown editor and check if buttons are displayed correctly

Screenshots

Markdown editor for question (with smaller buttons):

Editor after changes:

Nice work. Looks much better now 👍 I would really love to ship this in the release 4.0.1 before all students start to use Artemis 🥇
Can we please get rid of the 3rd row above the text editor in your screenshot? I think 2 rows are really the absolut maximum here.
I think we can move the fullscreen button to the first row (for all Markdown editors who want to have this enabled) with right alignment. It makes more sense here, because it's not really a command, but a view control.
For questions and answers specifically, we should remove the "Formula" button, because this is rarely used to format questions.
Then, we would already have 2 rows ;-)

Nice work. Looks much better now 👍 I would really love to ship this in the release 4.0.1 before all students start to use Artemis 🥇
Can we please get rid of the 3rd row above the text editor in your screenshot? I think 2 rows are really the absolut maximum here.
I think we can move the fullscreen button to the first row (for all Markdown editors who want to have this enabled) with right alignment. It makes more sense here, because it's not really a command, but a view control.
For questions and answers specifically, we should remove the "Formula" button, because this is rarely used to format questions.
Then, we would already have 2 rows ;-)

@krusche thanks for the feedback!
I removed the formula button now and added the option to remove the fullscreen button, which I also deactivated here. It is enabled by default so that it doesn't interfere with the editors used elsewhere.

This makes it only two rows for now.
The goal for the next update (PR) is to make it only one row, but that will take a little bit more of refactoring.

@filip-gregurevic Could you please resolve the conflict and fix the typescript tests? thanks!

@krusche all fixed now 👍

And as for the answer editor:

The full screen option is missing (is this intentionally)
The quote command is not working as expected but this is a known issue for all markdown editors, so not really related with this PR

Great work, I really like the new feature!
I noticed a missing functionality in the markdown editor that you maybe could address in a follow-up PR:

The heading (Styling) command is not working as expected (check preview tab after using a Heading2 for example)

Would it be possible to add the fullscreen command in the same line as the other commands bar. By that you will save some wasted space and maybe make the initial text field a bit bigger

@HanyaElhashemy thanks for the feedback!
I removed the fullscreen command intentionally on the questions and answers. I just forgot to remove it for the new questions, but it should be fixed with the latest commit.
I will refactor the whole layout of the Markdown editor in another PR and I will check all functionalities / commands. I noted the ones you mentioned, thanks :)

@filip-gregurevic The markdown layout looks good now, thanks for addressing my comments ^^
One last thing: could you please try to reduce the duplicate html code and since question and answer have the same markdown editor layout you could define a component for the layout and use it for both the question and answer in Exercise as well as in Lecture

I also did some testing. My findings are more related to your next pull request:
Fore me coloring of text did not work
testing:
`# Heading 1
test
test
test

test
language test
test

test
test

test
test

Heading 2
Heading 1
Heading 3
 test red
$$ e^{\frac{1}{4} y^2} $$`

I also did some testing. My findings are more related to your next pull request:
Fore me coloring of text did not work and also the first heading. Sometimes newlines \n were skipped
testing:
**test**
*test*
test
> test
```language test```
[test](http://www.google.de)
1. test
2. test
- test
- test
## Heading 2
# Heading 1
### Heading 3
 test red
$$ e^{\frac{1}{4} y^2} $$

What I would also like to see if the answer field would expand a bit and not only display one line. One could argure thats what the full screen feature is for, but I think most answers will be bigger than one line and ImO that would be nice to have

@TobiasPr thanks! I noted the bugs.
And there's the option to resize the answer/ question window below the text area for longer texts, but I will also set a bigger default hight in the new layout

@filip-gregurevic I also think the initial size of the text area for questions and answers should be larger. Can you set it to 100px (min) height?

@filip-gregurevic I also think the initial size of the text area for questions and answers should be larger. Can you set it to 100px (min) height?

@krusche done with the latest commit.

Probably unrelated to this PR but I just noticed that the scrollbars are always shown for the preview which looks a bit odd. If it's easy to set them to auto, that would be really nice. If not, also not a big deal.


Containers running but I can't access to the app via web browser.

OS: Ubuntu 22.04 where I have sonarr, plex and other apps installed via saltbox which uses traefik to load every app with an url like appname.mydomain.com
Steps:
"git clone https://github.com/antebrl/IPTV-Restream.git" and then "docker compose up -d"
I get this error:
Error response from daemon: driver failed programming external connectivity on endpoint iptv-restream-nginx-1 (5c70f8fc2f66d01eba851d5e5c1e45a0b558c988ef40fce0c315851d5e4ed6b4): Bind for <IP_ADDRESS>:80 failed: port is already allocated
How I fixed above error:
I changed changing the port to 8080:8080 in the docker-compsoe.yml file, then I made "docker compose up -d"
Now iptv-restream-backend-1, iptv-restream-frontend-1, iptv-restream-nginx-1 are running but none of the following sites I tried is loading:
Current issue
Nothing loads at http://mydomain.com:8080, http://mydomain.com:5000, http://my-server-ip-address:8080, http://my-server-ip-address:5000
I tried adding my domain and also my server IP address to the yml file on the VITE_BACKEND_URL line, but it didn't make a difference.
Not sure if the fact that this solution doesn't use traefik is what doesn't allow me to access to it despite the containers are running

Change the port mapping of the nginx-container in the docker-compose.yml to 8080:80, as the second port is the container internal port and nginx listens on port 80. The application should then be accessible on http://mydomain.com:8080
If that won't fix it, we have to look into the traefik configuration.


Update Hard Policy Result Approach

Hard policies whose results include restrictions should return restrictions (ex: storagecost <= $80) rather than solutions (ex: a list of storageaccounts whose cost is <= $80).
A hard policy "solver function" should take  the hard policy evaluation results, and based on those and the infrastructure metadata values determine the solutions.
The reason for this separation it to ensure that the IT Admin writing the policies doesn't have to provide in the rego policies the logic for choosing the solution.  This is also more consistent with the approach that will be taken with soft policies and the (future) introduction of the optimizer.

https://github.com/fybrik/fybrik/pull/1249 addresses this issue


Fixes #3678. ContextMenu accesses disposed MenuBar.

Fixes

Fixes #3678

Proposed Changes/Todos

[x] Call UngrabMouse before disposing _menubar

Pull Request checklist:

[x] I've named my PR in the form of "Fixes #issue. Terse description."
[x] My code follows the style guidelines of Terminal.Gui - if you use Visual Studio, hit CTRL-K-D to automatically reformat your files before committing.
[x] My code follows the Terminal.Gui library design guidelines
[x] I ran dotnet test before commit
[ ] I have made corresponding changes to the API documentation (using /// style comments)
[x] My changes generate no new warnings
[x] I have checked my code and corrected any poor grammar or misspellings
[x] I conducted basic QA to assure all features are working

@tznind is there any problem the _menuBar being disposing here for the TGD?

Should be fine. Maybe some of the Undo operations might access a closed sub menu. E.g.

open menu
add new entry
close menu
hit ctrl+z

Can you please test if that really happens when ctrl+z is hit? If affirmative I've to found a solution to fix it. _menuBar is never added to a superview, but initialized calling BeginInit/EndInit. Only the menus are added to superview when they are opened. Maybe subscribing to the Application.Top.Dispose event to dispose the _menuBar instead of disposing on the MenuAllClosed event. But this is only needed after you confirm that this may be an issue. Thanks.

I think I found a better solution than what I first presented. It's only worth preserving the last opened MenuBar. In any case, the ContextMenu information is always present when the object is created and assigned to the MenuItems property. ContextMenu just creates a static instance of the MenuBar with the information collected from the MenuItems property. At least now, if there is a need to access information from the last MenuBar of the ContextMenu opened, it will be available while the application is running.

Cool. I'll have a look at the new hotness in a few minutes.

It's only worth preserving the last opened MenuBar.

Depending on other specifics, it is either easy or easy-ish to make at least this argument against that reasoning: Why should we reconstruct objects that are pretty heavy to construct (due to all the hotkey parsing and all that sort of stuff, especially), when they could very well be needed again, possibly very soon? Just seems somewhat unconventional and kinda wasteful.
I'm sure seeing the code will help answer some of the underlying technical bits, though, so I'll come back here once I get a good look at it.......assuming I don't get distracted. But I told alexa to remind me every 30 minutes to check my focus, just in case. 😅

Oh yeah also while it's in my mind...
Something both of you might find useful is the .net Community Toolkit has a standalone component for its CommunityToolkit.Diagnostics namespace (no other dependencies), which has a TON more throw helpers and guard methods, covering a bunch more exception types as well as a lot more use cases, in a semi-fluent style, similar to how Asserts look.
And it's another code generation-based thing, so it doesn't add a runtime dependency on the CommunityToolkit.Diagnostics package nor a design or build-time dependency for consumers of the Terminal.Gui library, either. Probably one we should add and make use of, for the rather nice consistency it can help provide, just like the built-in throw helpers do for the few exception types those are implemented for. 👍
I have something partially written up for #3675 that I'll send over to @tig when it's done that also demonstrates a much cleaner way of dealing with all those conditionals, rather than having all the preprocessor directives for them. In short, it's primarily just making use of the [Conditional(string)] attribute, which allows you to call a method it is placed on as if it is always there, but the compiler will skip it without the need for messy preprocessor directives if the symbol given to the attribute is not defined. That and [DoesNotReturn] (on a method) or [DoesNotReturnIf(bool)] (on a parameter of a method) give cleaner and slightly DRY-er code, plus great static analysis like most of the throw helpers also provide (they use those attributes for exactly that).
Anyway.... Off to the git machine!

The unit test error isn't belong from this PR but reproduces in the v2_develop branch.

@dodexahedron please don't send anymore PR to my branches that aren't directly related with the issue that the PR was created. If you want to improve and cleanup code that you think the TG needs to, then submit a PR yourself to the TG repository and not for the forked repositories. I spend a while to fix an erroneous code you submitted to my branch but that was unnecessary for me take the responsibility to worry about that. I admit that was my fault when I merged your PR, but please don't send me more unrelated PR to my branches. Sorry if I offended you but that wasn't my intention. Thanks.


Missing Sublime Text command - Break / wrap line

While building this extension to map Sublime Text default keyboard shortcuts to VS Code, I found that this feature is missing.
The feature is break / wrap line.
Default Sublime Text keybindings
Windows / Linux: alt+q
Mac: cmd+alt+q

This would be very useful to have! Atom has Alt+Q which breaks lines and even correctly handles comments in source code. I currently have to break comments up manually :( There's the "Reflow Markdown" extension, but that breaks in source code.


CASMINST-4801: Do not prematurely mark ELIMINATE_NTP_CLOCK_SKEW step successful

Description
The ELIMINATE_NTP_CLOCK_SKEW upgrade step as written can fail but still record that it succeeded, so that a re-run of the script will skip the step altogether, silently allowing the upgrade to continue despite possible clock skew.
This PR prevents that, requiring that the step fully succeed before it is recorded as being completed.
I am testing this change on my ongoing fanta upgrade.
Checklist Before Merging

[X] My commits or Pull-Request Title contain my JIRA information, or I don't have a JIRA.

/backport main


Provide CPFS scaling profile option for CP4D

Is your feature request related to a problem? Please describe.
On a large deployment of CP4D/watsonx the underlying CPFS components need to be scaled up to avoid performance issues and instability.  This has to be done manually.
Describe the solution you'd like
The deployer config YAML could contain a size variable like used in the CP4BA deployment.
cpfs_profile_size: small # Profile size which affect replicas and resources of Pods of CPFS as per https://www.ibm.com/docs/en/cpfs?topic=operator-hardware-requirements-recommendations-foundational-services

@techietav can you elaborate on how to set the size after installation. CPFS are installed as part of the CP4D control plane and initial installation assumes small size. I tried setting the CommonService size to medium, but this doesn't seem to change anything (no additional replicas, ...). Any advice?

On the Fusion HCI system there are over 1400 pods so I believe I should be using medium at least. https://www.ibm.com/docs/en/cloud-paks/foundational-services/4.6?topic=installer-hardware-requirements-recommendations-foundational-services
In ccs-cr you can set the size which is small by default.
spec:
  autoScaleConfig: false
  blockStorageClass: ibm-storage-fusion-cp-sc
  fileStorageClass: ibm-storage-fusion-cp-sc
  global_search_reindex_job_resources_limits_memory: 2Gi
  license:
    accept: true
  scaleConfig: **small**
  storageClass: ibm-storage-fusion-cp-sc
  version: 8.5.0

This is the foundational services sizing page https://www.ibm.com/docs/en/cloud-paks/foundational-services/4.6?topic=installer-hardware-requirements-recommendations-foundational-services

Editing ccs-cr doesn't actually work as it reverts to small I just discovered.
there is a common-service CR that I changed to medium as a test

When creating an instance of the common-service in the IBM Cloud Pak foundational services operator there is a parameter spec.size that can be [starterset, starter, small, medium, large, production]

@techietav Any suggestions on how to change the scaling after install?

According to the docs  it can only be set on install or upgrade.  "You can set the profile during installation or upgrade."


Add GitHub commit hash to log output

Pechy's fork of the chia plotter outputs the commit hash of the version of the plotter running.  Can that be added to this plotter too?
With how much work is going into this plotter, it'd be nice to see something similar to identify what specific version is being utilized, short of implementing actual an actual version numbering system.

@AndyRPH  it's done. you may close the issue.


Caltech is correct, not "Cal Tech"

Just a note about an incorrect abbreviation in the article - see subject line for all the details

Good catch @danielskatz, I addressed this in https://github.com/BloombergMedia/whatiscode/pull/118.


Add encrypted App Store Connect API json file and use for fastlane upload

Details

Adds an encrypted json file that contains the App Store Connect API key for fastlane to use when uploading the build per https://github.com/Expensify/Expensify/issues/151900#issuecomment-772111266
Don't want to auto-close the issue as there is still more work for Mobile-Expensify
Reference https://github.com/Expensify/Expensify/issues/151900
Tests
None. We'll test this once it's merged and see if the build succeeds.

Should we remove this line?

I don't think that link is working.... It's not pointing me to a specific line when I click it.

- name: Run Fastlane
    run: bundle exec fastlane ios beta
    env:
----->  FASTLANE_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}

FASTLANE_PASSWORD since we have to use API key now?

Updated

Self merging since it's all approved.


Filepup started asking me for activation in video play

Filepup started asking me for activation in video play

Yes, in some sites you must Pair video to play. More info here http://filmkodi.com/en/how-pair-with-openload-in-kodi/


Error: "hard link not allowed for directory"

Ran a WDL workflow and got this error in the task using cellRanger: hard link not allowed for directory.

@sitapriyamoorthi is this for the app currently on proof.fredhutch.org or the dev app at proof-dev ?

This is for the version of proof currently in prod.


Replace memory allocation point of ValueTrack correctly in AnimationMixer

I'll fix the commit up shortly. Didn't mean to create a second commit.

Okay, please squash later.

@alesliehughes It's not obvious to me what this does, could you add more details on what the bug is in the PR description?

@alesliehughes It's not obvious to me what this does, could you add more details on what the bug is in the PR description?

When a animation track doesn't have an keys, it's possible that we leak memory due the ERR_CONTINUE_MSG macro usage.
By checking the error condition first, we avoid a allocated and thus the leak.
I'll update the patch with the above.

Thanks!

Cherry-picked for 4.2.2.


Add an example of image rendering

@fdehau Please help check the code, the rendering results are as follows:

IMO examples are there to showcase some basic use cases of the widgets of this library. This example is both too advanced and a bit too far away from the common usage of this crate. So I'm afraid that I will not merge this. However, if you manage to put together a public project and you are still using tui I would happily link to it.


[Event-Request] Codeunit 9520 - Mail Management - SendMailOrDownload

In https://github.com/microsoft/ALAppExtensions/issues/4308 a new OnBeforeRunMailDialog event was added so we can override the standard behavior with a custom Mail Dialog. This for example allows us to make an editable variant of the Email Dialog.
The SendMailOrDownload function currently does not provide the possibility to retrieve the changed Email Item after it was processed. Therefore it would handy if the following event was created:
OnAfterSendMailOrDownload(var IsSent: boolean; var TempEmailItem)

@fvet

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Can not get good result with really bad dataset

I am try SGMSE. I am create my dataset: 90GB, all clean and noisy audio normalized, SNR -20...-10db. I am train 17 epoch and after 40K iterations all metrics stabilized around very low values (ESTOI 0,65; PESQ 1.1; SISDR -20db). Of cource sound is awfull and speech do not recognized.
What you dataset SNR parameters and how much bad sound you try? I am appreciate any recomendations for my case.

Hello,
Thank you for bringing up this issue. I assume that your data set with an SNR range of -20 to -10 dB is too challenging for the model. The SNR range is too low, and as a result, it is unable to learn the score function well, which explains why you have poor metrics.
Typically, in our experiments, we use datasets with a more moderate SNR range, e.g., between 0 and 20 dB. This range allows the model to perform much better and produce more intelligible and higher-quality speech outputs.


Add shortcut to jump to tab that match a URL pattern or open a new one

Similar functionality as https://github.com/mikecrittenden/chrome-shortkeys
But the "Shortkeys for Chrome" doesn't support query multiple window

https://github.com/mikecrittenden/chrome-shortkeys/blob/master/app/scripts/background.js#L105

This requires background.html work

Prioritize this because the Shortkeys (Custom Keyboard Shortcuts) seems never get updated.


Dynamo table for storing Cancellation events

Kafka consumer to write to table

👍  assuming the latest version to comms-kafka-messages is pushed and all the tests pass

This PR was successfully deployed to production by CircleCI build 111 at 2017-03-08 14:33 GMT.


Partial text shows on iOS when using MathJax font in an inline SVG

Issue Summary
When using the MathJax WOFF font files here in an inline SVG, text gets sliced up on iOS devices.
This appears to be related to #2435 that caused a similar issue with equations.
Steps to Reproduce:

Create an SVG element, e.g.

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 232.82 171.07"><defs><style>.a{fill:#fff;stroke:#1d1d1b;}.a,.b{stroke-miterlimit:10;}.b{fill:none;stroke:#1d1e1b;}.c,.d,.e{fill:#1d1e1b;}.d,.e{isolation:isolate;font-size:12px;}.d{font-family:MathJax_Math-Italic, MathJax_Math;font-style:italic;}.e{font-family:MathJax_Main-Regular, MathJax_Main;}</style></defs><path class="a" d="M538,74.2" transform="translate(-109.49 -90.46)"/><line class="b" x1="210.75" y1="91.35" x2="164.81" y2="43.8"/><path class="c" d="M277,131.67a3.76,3.76,0,1,0-.09,5.32h0a3.74,3.74,0,0,0,.1-5.3Z" transform="translate(-109.49 -90.46)"/><path class="c" d="M322.67,184.67a3.76,3.76,0,1,0-5.3-.4h0a3.74,3.74,0,0,0,5.29.41Z" transform="translate(-109.49 -90.46)"/><line class="b" x1="68.5" y1="17.2" x2="139.02" y2="153"/><path class="c" d="M245.16,245.18a3.76,3.76,0,1,0,1.61-5.07,3.76,3.76,0,0,0-1.61,5.07Z" transform="translate(-109.49 -90.46)"/><line class="b" x1="12.9" y1="109.88" x2="68.5" y2="17.2"/><line class="b" x1="139.02" y1="153" x2="164.81" y2="43.8"/><path class="c" d="M125.6,202.27a3.76,3.76,0,1,1-1.29-5.16,3.75,3.75,0,0,1,1.29,5.16Z" transform="translate(-109.49 -90.46)"/><path class="c" d="M181.21,109.59a3.75,3.75,0,1,0-5.16,1.29A3.76,3.76,0,0,0,181.21,109.59Z" transform="translate(-109.49 -90.46)"/><line class="b" x1="210.75" y1="153" x2="210.75" y2="91.35"/><path class="c" d="M324,243.45a3.76,3.76,0,1,1-3.76-3.76,3.76,3.76,0,0,1,3.76,3.76Z" transform="translate(-109.49 -90.46)"/><text class="d" transform="translate(0 122.93)">A</text><text class="d" transform="translate(61.25 10.1)">B</text><text class="d" transform="translate(166.82 35.08)">C</text><text class="d" transform="translate(139.42 168.46)">D</text><text class="d" transform="translate(217.78 85.86)">E</text><text class="d" transform="translate(217.81 168.46)">F</text><text class="e" transform="translate(23.77 59.47)">14</text><text class="e" transform="translate(193.82 63.1)">21</text><text class="e" transform="translate(220.82 126.76)">11</text><text class="e" transform="translate(85.02 92.15)">11</text><text class="e" transform="translate(138.57 97.51)">2</text></svg>

Use font-face to define the included font families.

@font-face {
          font-family: 'MathJax_Main-Regular';
	  font-style: normal;
	  font-weight: normal;
          src: url("URL_HERE1") format("woff2");
        }

@font-face {
          font-family: 'MathJax_Math-Italic';
	  font-style: italic;
	  font-weight: normal;
          src: url("URL_HERE2") format("woff2");
        }

where "URL_HERE1" and "URL_HERE2" point to MathJax_Main-Regular.woff and MathJax_Math-Italic.woff files respectively that are locally hosted.
Technical details:

MathJax Version: 3.2
Client OS: iOS (tested on many iOS devices using BroswerStack)
Browser: Safari, Chrome, Firefox...

I am using the following MathJax configuration:
N/A (no need to load MathJax)
and loading MathJax via
N/A (no need to load MathJax)
Supporting information:
Here is a screenshot of the sample SVG mentioned above. This is how it appears on all devices except those running iOS.

On iOS devices, it instead appears like this.

This issue is caused by the font file rather than my code as when I instead use a different font file, e.g. the STIX fonts here, the issue goes away.
Also, this issue is caused by an operating system (iOS) and not a browser (e.g. Safari) as the issues occurs on both Chrome and Safari on iOS but doesn't occur on either Chrome or Safari on Mac.
This therefore suggests that it's the same as #2435 which caused a similar issue with equations.
Workarounds

Use a different font file, e.g. STIX fonts.

However, there are significant differences between that font and the MathJax font. It can therefore be a bit jarring if you write an equation using MathJax font and then create an SVG directly after that which references that equation but uses a different font.

Convert the font to outlines using e.g. Adobe Illustrator

This is the approach that I've been using for many years. However, the quality of the image decreases on low resolution screens compared to directly pointing to the font file, similar to how outputting equations using CommonHTML appears better than SVG.
Possible solutions

Issue 2435 was fixed in equations by using "will-change:opacity" as committed here. I've tried to use the same approach with images by using either "svg{will-change:opacity;}" or "text{will-change:opacity;}" but nothing changes.
Issue 2435 also mentions that using “transform: translateZ(0);” fixes the issue in equations. However, applying that to my SVG text instead causes the text to disappear.

Use "dumbed-down" versions of the MathJax font files. However, I'm a bit lost as to how to do that. Issue 2435 mentions that converting the WOFF file to TTF and then back to WOFF fixes the issue with equations. Unfortunately, I've tried this but the issue still persists.

I understand that this is of course not the main purpose of MathJax. However, I think many people would benefit from being able to output a high resolution equation using CommonHTML and to follow that equation by referencing it using a high resolution image that uses the exact same font.

As mentioned in #2435, the MathJax TeX fonts have some metrics set to unusual values (the ascent and descent values are set to nearly zero, and would have been zero if it weren't; for a WebKit issue with that).  This makes it easier to handle the placement of the characters in relation to their baselines.  MathJax then uses additional CSS to form the proper bounding box around the characters.  The flickering described in #2435 is due to the fact that during page redrawing (like when the page scrolls), WebKit sometimes seems to clip the font to the ascent/descent values, presumably for efficiency.  That could leave some parts of the expression un-rendered.
It looks like the SVG text renderer clips to the ascent/descent values, and I don' t see a way to work around that.  But you could use the v2 font files, which don't have the modified ascent/descent values.  They are at
https://github.com/mathjax/MathJax/tree/legacy-v2/fonts/HTML-CSS/TeX/woff

or via the URL
<EMAIL_ADDRESS>
for example.  Note, however, that it looks like SVG clips horizontally as well, and some characters extend beyond their advance width (e.g., the "F" in your diagram).  You may want to add a non-breaking space at the end of the labels in that case to make sure that the clipping doesn't clip the character.  In a few cases, you may need a space at the beginning as well (e.g., lower case j).