🌱 add hack/verify-release.sh

Manual cherry-pick of #1238 without releasing.md parts.

/override test-ubuntu-e2e-integration-release-1-4
Save the trees.


documentation needs note about setting up %LOCALAPPDATA% path for app pools

(I'm using IIS 10.0 on a windows 10 machine.)
Issue:
By default, my app pool's %LOCALAPPDATA% path was blank. It was causing my application(s) to not be able to get to the correct path to store keys in its keyring (when using the  services.AddDataProtection "PersistKeysToFileSystem" option).
This was remedied by the following:
In addition to setting the apppool's "Load the user profile" (Advanced settings) to true, I had to set "setProfileEnvironment" to true inside the file: %windir%\system32\inetsrv\config\applicationHost.config
(By default it is false)
I think this note should be added to the documentation. This would save a lot of users several hours/days of pain.
Secondly, maybe the IIS team should consider adding this property setting to the app pool's advanced settings UI.
Thank you.

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

ID: 945c28b7-6cc7-d4ed-3b96-a401eef42f59
Version Independent ID: eb45fbf9-29fb-c67b-2f50-454380a502dd
Content: Data Protection key management and lifetime in ASP.NET Core
Content Source: aspnetcore/security/data-protection/configuration/default-settings.md
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Let's track this on the other topic. I'll put the reference here, and that will cross-link these two.
https://github.com/aspnet/Docs/issues/10864


Addition of InternshipDiary methods to Model

New methods are added to:

Interface Model
ModelManager
UserPrefs
ReadOnlyUserPrefs

Note: AB3 methods are left alone, so that program build will succeed
Refactored JavaDocs in:

InternshipDiary
ReadOnlyInternshipDiary

Okay I seem to have missed out on changing the tests, will refactor all the test cases too


chore: support tidb 6.5

fixes apecloud/kubeblocks#7942, fixes apecloud/kubeblocks-addons#895

It looks th expression in vars reads concisely !


Use Sleuth API for Redis instrumentation

Spring Cloud Sleuth provides Brave-specific instrumentation for Redis. Following the strategy described in https://github.com/spring-cloud-incubator/spring-cloud-sleuth-otel/issues/67#issuecomment-878146710, we should extract it and use the Sleuth API instead. Then, we can register the implementation both in Brave and OpenTelemetry.
A possible solution: https://github.com/spring-cloud/spring-cloud-sleuth/pull/2046. I'm available to improve it with some auto tests, but I'm not sure how to set them up. Do you have any suggestion?

Thanks @marcingrzejszczak


Release OUI 1.3

and update docs site

Should include https://github.com/opensearch-project/oui/issues/873 as well as many https://github.com/opensearch-project/oui/labels/next-theme issues.

@joshuarrrr  what is the targeted date for this release so I can coordinate with @canascar on wrapping up icons?

Realistically I'd be planning to do this on 9/1/2023

This needs to go in for 2.10 https://github.com/opensearch-project/oui/issues/908

This needs to go in for OSD 2.10 #985

completed via #1021 and https://github.com/opensearch-project/oui/issues/1022


Why pull-request always failed?

I checked the build log and found iv is undefined.
I checked https://www.openssl.org/docs/manmaster/apps/enc.html,
it seems that 'the actual IV to use: this must be represented as a string comprised only of hex digits. When only the key is specified using the -K option, the IV must explicitly be defined.'
( I am not an openssl expert, but will this help? )


hinted msm affine

basically, it will be similar to this function
https://github.com/BitVM/BitVM/blob/98b564b4fbd4077634980447414bce0e54fcb928/src/bn254/msm.rs#L247
which is constructed from
https://github.com/BitVM/BitVM/blob/98b564b4fbd4077634980447414bce0e54fcb928/src/bn254/msm.rs#L221
we need to do the same for https://github.com/BitVM/BitVM/blob/98b564b4fbd4077634980447414bce0e54fcb928/src/bn254/msm.rs#L194

This is implemented in original BitVM repo by another group.


Load DB with JSON users.json

Create a helper that loads all the users using the JSON file

added load of the db and fixed the controllers


Switching between canary and k8s rollout with no downtime

Is it possible to switch between canary and k8s rollout with no downtime?
Currently, when I delete Canary object, my original deployment is left with 0 replicas.
I use Helm for deployment and Linkerd as service mesh

You can disable the canary rollout by setting skipAnalysis to true inside the canary spec. The canary deletion is handled by Kubernetes GC, you need some kind of script to make the removal work without downtime, I’ve explained the removal process here https://github.com/weaveworks/flagger/issues/308#issuecomment-534025425

I'm also facing the same problem, while I'm getting around -primary to not primary with helm templating on resources based on if the canary resource is to be deployed or not, I have an issue with the original deployment containing replicas: 0 overriding the HPA.
I cannot found where it's happening in flagger's code but to me if flagger is doing so when the canary resource is deployed, it should remove the replicas: 0 when the resource is removed.

@n0rad Helm3 might help you with that problem because of it's 3-way Strategic Merge Patches. https://helm.sh/docs/faq/

thx @tega90, indeed helm3 will simplify the templating on the -primary and we are looking for it's support in helm-operator.
I'm still wondering what to do with the replicas: 0.
The process describe in #308 does not look friendly to me and I do not expect anyone here at @blablacar to remember to do manual steps while wanted to remove canary on a live system. Especially since we are using gitops and any other resource deletion only needs removing the file from git.

I just tested 1.0.0-rc.5 on gke 1.15.11 and removing canary resource still leave the deployment with a replica: 0 on kube deployment

I don't know if it's linked but the deployment I'm using do not have an initial replica value and is using an HPA

I tested with a replicas value without HPA and it's the same. I think this issue should be re-open

@n0rad have you enabled the finalizers? https://docs.flagger.app/usage/how-it-works#canary-finalizers

thx @stefanprodan, I thought it would be the default behavior, why it's not ?
I did tests with podinfo and it's working ok with few changes to the chart : #595

I thought it would be the default behavior, why it's not ?

Because finalizers can have grave side-affects, for example, if Flagger is down or it has been removed from the cluster, deleting a namespace with canaries will block forever. You shouldn't be creating services since Flagger does it for you. The finalizers are meant to be used while you're evaluating Flagger, on the long run you should remove the ClusterIPs from your charts and let Flagger bootstrap the app instead of patching existing objects.

The finalizer can be enable with a flag, so it's ok for me.
let's talk about the global lifecycle in #595, especially since this ticket is closed and working as the doc is expected it.


feature/events_endpoint

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


UI Element Separation

There's no indication of the separate UI areas so it just seems like things get broken at random when you click between tabs or whatever because you have this big empty space that isn't filling up and all your root list seemingly got overwritten by the add root button. If possible, it would be nice if the the UI had separators and scroll bars so you could visually grasp that the root area is not supposed to overflow into the game list.

I've been thinking about moving the roots to the other screen so it's doesn't take up valuable space from the game list. That would also help make the boundaries clearer.
There is a scroll bar next to the roots, but I know it can get small if you have a lot of roots.


Jesi 7188

Approved. We've taken this reference as far as we wanted, and learned a lot along the way.


Diag gird2d

This PR add the ability to set the value of the diagonal to something else than zero in the grid graph.
Here is an example output:
G = Grid2d(6, 7, diag_value=0.5)
G.plot()

Coverage increased (+0.04%) to 88.211% when pulling bba41fbf079cad9407ce279c3a6c13519556e528 on cgallay:diag_gird2d into 7b3884bf8552470f8a74ca843fe866d67c77076b on epfl-lts2:master.

Thanks!


Error while using new web search function

Microsoft PowerToys version
<IP_ADDRESS>
Running as admin

[ ] Yes

Area(s) with issue?
PowerToys Run
Steps to reproduce

Open PowerToys Run.
Use web search function "??" like "?? where am i".

✔ Expected Behavior
Open browser with the search results for the content I inserted after "??".
❌ Actual Behavior
Something went wrong, with the following error trace:
Version: <IP_ADDRESS>
OS Version: Microsoft Windows NT 10.0.22000.0
IntPtr Length: 8
x64: True
Date: 10/01/2022 21:04:09
Exception:
System.InvalidOperationException: Cannot start process because a file name has not been provided.
at System.Diagnostics.Process.Start()
at Wox.Infrastructure.Helper.OpenInShell(String path, String arguments, String workingDir, Boolean runAsAdmin)
at Community.PowerToys.Run.Plugin.WebSearch.Main.<>c__DisplayClass19_2.b__3(ActionContext action)
at PowerLauncher.ViewModel.MainViewModel.<>c__DisplayClass27_0.b__0()
at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke(Action callback)
at PowerLauncher.ViewModel.MainViewModel.OpenResultsEvent(Object index, Boolean isMouseClick)
at PowerLauncher.ViewModel.MainViewModel.b__28_11(Object index)
at PowerLauncher.ViewModel.RelayCommand.Execute(Object parameter)
at PowerLauncher.MainWindow.SuggestionsList_PreviewMouseLeftButtonUp(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Other Software
No response

@chrisnavar
Thank you for reporting that!
Could you please send us a bug report?
Do you see an message box saying that the browser can't be started or only this crash?

How to generate the report:
1. Right-click on the PowerToys icon in the tray menu and select Report Bug.

2. The report is saved as .zip file on your desktop. Please drag and drop the report into a GitHub comment of this issue.

Nite for other contributors: If there isn't a message box I think the parameter of shellExecute() must be empty unexpectedly.

Duplicate of #15331

Thanks for reporting this. This issue is a duplicate.
I'm linking this issue to #15331 to centralize the discussion thread for tracking.
Thanks for your help to make PowerToys a better piece of software!

Nite for other contributors: If there isn't a message box I think the parameter of shellExecute() must be empty unexpectedly.

@htcfreek A test build with this logged may help a lot. I'll try  do this in the following days when I'm available.

Just to confirm, @htcfreek are we assuming these?
https://github.com/microsoft/PowerToys/blob/f303c29d4c69fdd9b69f011d3aa03c4a01bf67da/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.WebSearch/Main.cs#L84-L93
https://github.com/microsoft/PowerToys/blob/f303c29d4c69fdd9b69f011d3aa03c4a01bf67da/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.WebSearch/Main.cs#L128-L137
https://github.com/microsoft/PowerToys/blob/f303c29d4c69fdd9b69f011d3aa03c4a01bf67da/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.WebSearch/Main.cs#L148-L157

Just to confirm, @htcfreek are we assuming these?
https://github.com/microsoft/PowerToys/blob/f303c29d4c69fdd9b69f011d3aa03c4a01bf67da/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.WebSearch/Main.cs#L84-L93
https://github.com/microsoft/PowerToys/blob/f303c29d4c69fdd9b69f011d3aa03c4a01bf67da/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.WebSearch/Main.cs#L128-L137
https://github.com/microsoft/PowerToys/blob/f303c29d4c69fdd9b69f011d3aa03c4a01bf67da/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.WebSearch/Main.cs#L148-L157

When I have tested it and renamed the exe file I saw one of these message boxes. Seeing a message box is imo the expected behavior.

I'm building an installer with _browserPath, arguments and url logged and hope could send this to the users to get some info.

Test build with extra logging: https://github.com/franky920920/PowerToys/releases
After reproducing the issue, do a standard /bugreport and the logs will be collected so I can know what is executed.

Duplicating this againist #15384 with possible fix.

Tracking in /dup #15384


"Failed to create CoreCLR, HRESULT: 0x80004005" on Ubuntu 20.04.1 LTS ARM 64-bit  in Docker

Summary
I tried to run PowerShell 7.1.0 RC2 on Ubuntu 20.04.1 LTS 64-bit, on a Raspberry Pi 3 B+, in a Docker container. PowerShell fails to launch.
Steps to reproduce

Obtain a Raspberry Pi 3 B+
Install Ubuntu Server 20.04.1 LTS on a microSD card
Install Docker
Pull the arm64v8/ubuntu container image, and run a container
Download PowerShell ARM64 powershell-7.1.0-rc.2-linux-arm64.tar.gz
Extract the archive
Try to run ./pwsh

docker run --rm -it arm64v8/ubuntu:focal
apt update && apt install wget --yes
wget 'https://github.com/PowerShell/PowerShell/releases/download/v7.1.0-rc.2/powershell-7.1.0-rc.2-linux-arm64.tar.gz'
tar -xzvf powershell-7.1.0-rc.2-linux-arm64.tar.gz
./pwsh

Expected behavior
PowerShell runs
Actual behavior
root@30010574f698:/# ./pwsh
Failed to create CoreCLR, HRESULT: 0x80004005

Notes
I tried the suggestion here, but it didn't change the behavior. https://github.com/PowerShell/PowerShell/issues/13166

@pcgeek86 Please collect and share log as suggested in #13166.

I bet it cannot write to TMPDIR, see https://github.com/dotnet/runtime/issues/46462

Close as a duplicate of #13166


Weird interactions with rlImgui and SUPPORT_CUSTOM_FRAME_CONTROL=1

While following
Using both PollInputEvents() and SwapScreenBuffer()
And using rlImgui's simple.cpp example

I witnessned that fps counting was not working ( frozen at 0.0 fps)
Animated widgets do not work anymore(e.g the plotting section)

I believe both issues are due to io.DeltaTime being 0 since GetFrameTime() is invalidated and cannot be used anymore when SUPPORT_CUSTOM_FRAME_CONTROL is on.
Using raylib's GetTime() and checking how other imgui's backends do it should be enough to fix it, I will experiment later.
Here is the full code:
#include "raylib.h"
#include "raymath.h"

#include "imgui.h"
#include "rlImGui.h"

int main(int argc, char* argv[])
{
	// Initialization
	//--------------------------------------------------------------------------------------
	int screenWidth = 1280;
	int screenHeight = 800;

	SetConfigFlags(FLAG_MSAA_4X_HINT | FLAG_VSYNC_HINT);
	InitWindow(screenWidth, screenHeight, "raylib-Extras [ImGui] example - simple ImGui Demo");
	rlImGuiSetup(true);

	// Main game loop
	while (!WindowShouldClose())    // Detect window close button or ESC key
	{
		PollInputEvents(); // SUPPORT_CUSTOM_FRAME_CONTROL

		BeginDrawing();
		ClearBackground(DARKGRAY);

		// start ImGui Conent
		rlImGuiBegin();

		// show ImGui Content
		bool open = true;
		ImGui::ShowDemoWindow(&open);

		// end ImGui Content
		rlImGuiEnd();

		EndDrawing();

		SwapScreenBuffer(); // SUPPORT_CUSTOM_FRAME_CONTROL
		//----------------------------------------------------------------------------------
	}
	rlImGuiShutdown();

	// De-Initialization
	//--------------------------------------------------------------------------------------
	CloseWindow();        // Close window and OpenGL context
	//--------------------------------------------------------------------------------------

	return 0;
}

Opened PR #34

I see the PR and understand what what you are tryin to do, but I think a simpler way is to pass in the DT from outside, then it can come from any source. I've pushed up a change that adds a begin that takes a custom DT.

Fine by me!
I agree that if user code manually triggers frames with its own time computation, ImGui should not also compute its own and end up with disrespectancies


Firefox: Ignores set preferences to ignore download popup window

Hi there. I am having problems downloading a file using protractor and selenium.
On chrome, it works fine, however Firefox seems to ignore the preferences I have set up to ignore the popup window. I set up my config file according to other posts I saw, that were relevant to me.
Versions:

Node Version: v12.16.1
Protractor Version: ^5.4.2
Angular Version: N/A
Browser(s): Firefox
Operating System and Version macOS Catalina 10.15.4

Code:

Your protractor configuration file (only the relevant info)

A relevant example test (only the relevant info)

Output from running the test
Output comes from my catch(){} block

Ok my mistake, just get rid of the goog:chromeOptions for firefox


Testing on Android (FF)

[ ] Is palava.tv usable in general?
[ ] Are there WebRTC connection bugs?
[ ] Are there any unpleasant layout bugs?
[ ] Any ideas for improvements on this platform?

Looks all good to me (I'm using ff on android quite often and already several times with the new frontend)


Feat/recent donations + cache homepage queries

https://github.com/Giveth/giveth-dapps-v2/issues/1992

Thanks Amin Loooks Good to me!
I would just ask if we should instead the cache configurable by an env variables instead of hardcoding, what do you think?

Thanks @CarlosQ96. You are generally right, however, these APIs will be called to fetch historic data.  It's not needed to be so accurate and updated.
BTW, our config file is a flat .env type file which is already cluttered and big. I think we must go later for a better approach supporting optional, default value, grouping and hierarchy.


feat: add vant ui framework

Not sure why it doesn't fetch the plugin .js file and .css file, would anyone know why?


Switch myria dataset selector to an ordinary dropdown

Fixes #101
After consulting with colleagues, we have no good solution for forcing a custom-rendered select UI (as is generated by ui-select) to overflow the edges of a div with overflow: scroll or hidden selected. As such, the only viable solutions to this problem would be to convert it to a list in the DOM, as is done on the change data tab; or to revert to a browser-default select box.
In the interest of time, I opted for the latter.
This should be reviewed, I'm particularly uncertain about what was happening with the $select.search value previously; but as is demonstrated in the gif below, this does permit the user to switch Myria datasets without the list being cut off.

Awesome. I'll merge this but also want to get rid of the select dependency.


Uniquness of dag node's IMR values.

@apoelstra This PR includes several refactoring commits to set things up.  Let me know if you prefer it split into different PRs.


9.0.2 with external Oracle DB fails

I'm trying to update our Database using the maven goal update-only,
many like the following errors apears:
[ERROR] Failed to process CVE-2022-42344 org.owasp.dependencycheck.analyzer.exception.UnexpectedAnalysisException: java.sql.SQLException: Invalid column type: 16     at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability (CveDB.java:1058)     at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability (CveDB.java:866)     at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call (NvdApiProcessor.java:87)     at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call (NvdApiProcessor.java:33)     at java.util.concurrent.FutureTask.run (FutureTask.java:264)     at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)     at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)     at java.lang.Thread.run (Thread.java:829) Caused by: java.sql.SQLException: Invalid column type: 16     at oracle.jdbc.driver.OracleStatement.getInternalType (OracleStatement.java:4486)     at oracle.jdbc.driver.OraclePreparedStatement.setNullCritical (OraclePreparedStatement.java:4390)     at oracle.jdbc.driver.OraclePreparedStatement.setNull (OraclePreparedStatement.java:4374)     at oracle.jdbc.driver.OraclePreparedStatementWrapper.setNull (OraclePreparedStatementWrapper.java:937)     at org.apache.commons.dbcp2.DelegatingPreparedStatement.setNull (DelegatingPreparedStatement.java:521)     at org.apache.commons.dbcp2.DelegatingPreparedStatement.setNull (DelegatingPreparedStatement.java:521)     at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability (CveDB.java:981)     at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability (CveDB.java:866)     at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call (NvdApiProcessor.java:87)     at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call (NvdApiProcessor.java:33)     at java.util.concurrent.FutureTask.run (FutureTask.java:264)     at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)     at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)     at java.lang.Thread.run (Thread.java:829) [ERROR] Failed to process CVE-2023-38218 org.owasp.dependencycheck.analyzer.exception.UnexpectedAnalysisException: java.sql.SQLException: Invalid column type: 16     at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability (CveDB.java:1058)     at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability (CveDB.java:866)     at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call (NvdApiProcessor.java:87)     at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call (NvdApiProcessor.java:33)     at java.util.concurrent.FutureTask.run (FutureTask.java:264)     at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)     at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)     at java.lang.Thread.run (Thread.java:829) Caused by: java.sql.SQLException: Invalid column type: 16     at oracle.jdbc.driver.OracleStatement.getInternalType (OracleStatement.java:4486)     at oracle.jdbc.driver.OraclePreparedStatement.setNullCritical (OraclePreparedStatement.java:4390)     at oracle.jdbc.driver.OraclePreparedStatement.setNull (OraclePreparedStatement.java:4374)     at oracle.jdbc.driver.OraclePreparedStatementWrapper.setNull (OraclePreparedStatementWrapper.java:937)     at org.apache.commons.dbcp2.DelegatingPreparedStatement.setNull (DelegatingPreparedStatement.java:521)     at org.apache.commons.dbcp2.DelegatingPreparedStatement.setNull (DelegatingPreparedStatement.java:521)     at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability (CveDB.java:981)     at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability (CveDB.java:866)     at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call (NvdApiProcessor.java:87)     at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call (NvdApiProcessor.java:33)     at java.util.concurrent.FutureTask.run (FutureTask.java:264)     at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)     at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)     at java.lang.Thread.run (Thread.java:829)
Therefore I'm trying as suggested to purge the DB.
Describe the bug
Trying to purge the DB as per https://github.com/jeremylong/DependencyCheck#breaking-changes
Version of dependency-check used
The problem occurs using version 9.0.2 of the maven plugin
Log file
Executing Maven:  -B -f JOB_NAME/workspace/pom.xml -s /home/jenkins/.m2/settings.xml -U org.owasp:dependency-check-maven:purge
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< de.shgruppe.sccm-admin:owasp-pom >------------------
[INFO] Building SCCM-Admin owasp DB 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- dependency-check-maven:9.0.2:purge (default-cli) @ owasp-pom ---
[INFO] Unable to purge database; the database file does not exist: /var/lib/jenkins/local-maven-repo/org/owasp/dependency-check-utils/9.0.2/../../dependency-check-data/9.0/odc.mv.db
[INFO] RetireJS repo removed successfully
[INFO] Hosted suppression file removed successfully
[INFO] Cache directory purged
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS

pom.xml
<configuration>                     <databaseDriverName>oracle.jdbc.OracleDriver</databaseDriverName>                     <connectionString>jdbc:oracle:thin:@owasp-db:1521:owasp</connectionString>                     <serverId>owasp-db</serverId>                   	<nvdApiKey>${nvdApiKey}</nvdApiKey>                 </configuration>
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
purge goal should support also external DB.
Additional context
While the goal update-only used it works on the external DB.
Executing Maven:  -B -f JOB-NAME/workspace/pom.xml -s /home/jenkins/.m2/settings.xml -U org.owasp:dependency-check-maven:update-only [INFO] Scanning for projects... [INFO]  [INFO] ------------------< de.shgruppe.sccm-admin:owasp-pom >------------------ [INFO] Building SCCM-Admin owasp DB 1.0.0 [INFO] --------------------------------[ jar ]--------------------------------- [INFO]  [INFO] --- dependency-check-maven:9.0.2:update-only (default-cli) @ owasp-pom --- [INFO] Instance is null, returning unconfigured instance [INFO] Setting default auxiliaries to "ODC" [INFO] setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 0, maxSpoolPerRun = -1, diskUsagePattern = UPDATE, spoolChunkSize = 2 ] [INFO] setting defaultElementAttributes to [ IS_LATERAL = false, IS_SPOOL = true, IS_REMOTE = false, IS_ETERNAL = false, MaxLifeSeconds = 86400, IdleTime = 1800, CreateTime =<PHONE_NUMBER>804, LastAccessTime =<PHONE_NUMBER>804, getTimeToLiveSeconds() = 86399, createTime =<PHONE_NUMBER>804 ] [INFO] initialized MemoryCache for CENTRAL [INFO] Constructed cache with name [CENTRAL] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 0, maxSpoolPerRun = -1, diskUsagePattern = UPDATE, spoolChunkSize = 2 ] ...

The purge goal does not work with external databases. That should be more clearly documented.

@jeremylong now I'm realy confused, you suggested not to recreate the database https://github.com/jeremylong/DependencyCheck/issues/6116#issuecomment-1829571097

From the error message it appears like Oracle does not support setting a Boolean columns to NULL (16 is java.sql.Types.BOOLEAN)

@aikebah I blame you: https://github.com/jeremylong/DependencyCheck/pull/5978#discussion_r1385746530
kidding I don't have an oracle db handy to test with and I'm a bit time constrained atm.

:D can't promise anything, but will try to take a look into the code tomorrow to try and uncover which field the stacktrace is complaining about and why that would be... need to see if I still have a docker image with an oracle DB at hand... otherwise it'll take some time to rebuild such a multi-gigabyte beast...
You guessed perfectly right on how I was able to quickly digest from the stacktrace what the likely root of the issue is :D

MS SQL Server is likely to suffer from the same issue as the datatype used for booleans in that schema (and the stored procedure update_vulnerability) is BIT. So unless the mssql jdbc driver ignores the type on setNull (like h2 does)  it will likely  also signal a type mismatch between the Types.BOOLEAN specified and the Types.BIT derived from the prepared statement)
H2, mysql and postgress have support for the Boolean datatype, which is also used in their schema definitions

As oracle wasn't working, just to help confirm the above supported db's, switched to postgres 15.5 and that does work fine.

@SMUnlimited, Which Oracle version have you tried on?

@aikebah I understand, but you suggested that Oracle 23c should be a solution, I wondered if I should upgrade our Oracle DB to this version as theother DB such as mysql and postgress are not supported in our Org, H2 is also not recommended as a Prod DB.
I'm not sure how to proceed.

As oracle wasn't working, just to help confirm the above supported db's, switched to postgres 15.5 and that does work fine.

@SMUnlimited, Which Oracle version have you tried on?

@RobSHK v19

@aikebah I'm good with only supporting Oracle 23c and above. We would likely just need to update the schema correct?
alterntively, we could just wrap an isOracle check on the offending lines:
if (isOracle) {
  callUpdate.setNull(7, java.sql.Types.BIT);
  callUpdate.setNull(8, java.sql.Types.BIT);
  callUpdate.setNull(9, java.sql.Types.BIT);
  callUpdate.setNull(10, java.sql.Types.BIT);
} else {
  callUpdate.setNull(7, java.sql.Types.BOOLEAN);
  callUpdate.setNull(8, java.sql.Types.BOOLEAN);
  callUpdate.setNull(9, java.sql.Types.BOOLEAN);
  callUpdate.setNull(10, java.sql.Types.BOOLEAN);
}

Looks like BIT should work for Oracle indeed (it's one of the datatypes for a NUMBER column).
As indicated most likely we'll need the same for MS SQL server (where the database datatype is BIT)
Unfortunately the Oracle container build scripts fail to run for me (podman/buildah), otherwise I could test if any of the numeric types would still give errors, but the most fitting numeric datatype candidate is indeed BIT.
I think your alternate approach would be more enterprise-friendly for the Oracle case (as I suspect many large enterprises are still on an older version of Oracle, as far as I know mine is still at 19)
An additional benefit of the BIT type is that we can reuse the same for MS SQL-server, which is likely to trigger similar issues (when their jdbc driver validates the given target field-type of the setNull), though none have been reported yet.
So the conditional should check for both oracle and mssql (not sure whether we already have a boolean field for detection of the mssql case)

we do not have a check for MS SQL server yet - that would need to be added.


TC.3.2 Add a losing-button to the active Game

This task has been finished on the day with posted SHA comment, in the interest of correctly closing the issue (and us having to first learn how to), it has been closed a while after the finishing of the task.

We have in the meantime figured out, that we can not correctly close it once it is done (otherwise the commit is kinda useless).


Modify middleware validator  to Filter Users based on their state - ONBOARDING

On https://dashboard.realdevsquad.com/users/, we want to filter user whose state is ONBOARDING
Requirements

Ensure some testing is done.

Additional Info:

Setup Backend First, then fill new-signup form locally(my.realdevsquad.com/new-signup)

@shubhamsigdar1 I would like to work on this.

Hi @shubhamsigdar1 Can I take this task ?


Conflict with Gatsby-source-prismic-graphql

I was working with gatsby-source-prismic-graphql in my project at first, but then switched to gatsby-source-prismic, whereupon the latter was broken - I was unable to query (and I was using the correct syntax - checked against another project where I had only gatsby-source-prismic installed and it was working fine).
Annoying problem, unsure if it's known. But probably something to be remedied as these two packages will probably be installed in succession by people trying out various methods of sourcing from Prismic.

Hi @michaeljblum, could you provide more details about the error?


NO package manager

Please add it to bower or npm

Thank you for advise. It was planned long time ago but I could not do it because of time.
I have added it in bower.

tnx a lot

can you added to npm? or how is it?


check tags while fetching storage pool for importing vm

Description
This PR fixes https://github.com/apache/cloudstack/issues/9670
Details

This pull request includes several changes to the UnmanagedVMsManagerImpl class to enhance the handling of disk offerings during the import and conversion of unmanaged instances. The most important changes include modifications to the getStoragePool method, updates to the conversion and import logic, and adjustments to the test cases.
Enhancements to disk offering handling:

server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java: Modified the getStoragePool method to accept an additional diskOfferingTags parameter and updated the logic to ensure the storage pool supports the disk offering. [1] [2] [3]

Updates to conversion and import logic:

server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java: Updated various methods to include disk offering tags and ensure compatibility with storage pools, such as checkUnmanagedDiskAndOfferingForImport, importDisk, importUnmanagedInstanceFromVmwareToKvm, sanitizeConvertedInstance, checkConversionSupportOnHost, convertVmwareInstanceToKVMWithOVFOnConvertLocation, and convertVmwareInstanceToKVMAfterExportingOVFToConvertLocation. [1] [2] [3] [4] [5] [6] [7]

Adjustments to test cases:

server/src/test/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImplTest.java: Updated the test methods importUnmanagedInstanceTest and baseTestImportVmFromVmwareToKvm to mock the doesTargetStorageSupportDiskOffering method and ensure the tests reflect the new disk offering logic. [1] [2]

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)
[ ] build/CI
[ ] test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[x] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[x] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

How did you try to break this feature and the system with this change?

@blueorangutan package

@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan package

Packaging result [SF]: ✔ el8 ✔ el9 ✔ debian ✔ suse15. SL-JID 11276

@blueorangutan test

@vishesh92 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

[SF] Trillian test result (tid-11613)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 51907 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9764-t11613-kvm-ol8.zip
Smoke tests completed. 130 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_01_secure_vm_migration
Error
134.42
test_vm_life_cycle.py

test_01_secure_vm_migration
Error
134.42
test_vm_life_cycle.py

test_05_vmschedule_test_e2e
Failure
362.27
test_vm_schedule.py

test_05_rvpc_multi_tiers
Failure
482.80
test_vpc_redundant.py

test_05_rvpc_multi_tiers
Error
482.81
test_vpc_redundant.py

CLGTM. Could you describe your tests @vishesh92 ?

I am still testing it. Let me make this PR as a draft for now.

There are some issues. I will continue on this after https://github.com/apache/cloudstack/pull/9787.

@blueorangutan package

@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan package

@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: ✔ el8 ✔ el9 ✖ debian ✔ suse15. SL-JID 11908

@blueorangutan package

@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: ✔ el8 ✔ el9 ✔ debian ✔ suse15. SL-JID 11909

@blueorangutan package

@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: ✔ el8 ✔ el9 ✔ debian ✔ suse15. SL-JID 11951

@blueorangutan package

@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: ✔ el8 ✔ el9 ✔ debian ✔ suse15. SL-JID 11954

@blueorangutan test keepEnv

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

[SF] Trillian Build Failed (tid-12013)

[SF] Trillian test result (tid-12016)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 44529 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9764-t12016-kvm-ol8.zip
Smoke tests completed. 132 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_01_secure_vm_migration
Error
134.38
test_vm_life_cycle.py

test_01_secure_vm_migration
Error
134.39
test_vm_life_cycle.py


feat(sequence): fully enable strict null checks

Description
Enables strict null checks within the @fluidframework/sequence package. This change contains quite a number of breaking changes.
Does this introduce a breaking change?
Yes. The changes are primarily changing the types to be more accurate -- there are very few behavioral changes.

@connorskees @Abe27342 Are these changes intended for the 2.0.0-internal.1.0.0 release? When were the breaking changes announced?

@connorskees @Abe27342 Are these changes intended for the 2.0.0-internal.1.0.0 release? When were the breaking changes announced?

Fair enough point--@connorskees you might want to put a short note in UPCOMING in main branch. FWIW I don't expect this will significantly impact consumers, it mostly promotes code quality on more internal-facing APIs.


Jump to a specific rebus

Expected Behavior
Jump to a specific (eg. an earlier unanswered) rebus by clicking on the corresponding spot on the progress bar
Actual Behavior
Have to navigate by pressing back button several time.
(Newbie here 👋 ! Any pointers appreciated)

Hello, I would like to work on this issue


Mohil longest palindromic sequence

Basically LCS of string and its reverse
Description
Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000.
Program Name -  Longest Palindromic Subsequence
Issue No.- #71
Checklist(self check)

[ ] Yes, this task assigned to me.
[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] My Filename is in camelCase format
[x] I have added Problem statement, Problem link in file.

Thanks for making PR, but I can't merge it. because some else opened the issue and assigned


Add GA tracking

Doing this manually for now. Please review ATF @freva / @johans1 .

:+1:
This would only if the user loaded the front page, and for other pages, f.ex. /search?query=..., this is because we cant controller routing for github pages, but we do controller the 404.html, which was a copy of index.html. Changed it to be a link to index.html instead in 342c6e350a66fdf3b29c2bfe226345c92fb9b50f.


InvalidCiphertextException on Deployment

Hi @Saigonen!
I found this repo and it's super awesome because it's frustrating that CDK won't directly support SecureString.
When I was testing it out, during deployment I got InvalidCiphertextException (full output below just in case), but I think the root of the problem is possibly the Name is not getting passed in:
# CDK template.json
       ...
      ]
    },
    "EncryptionKey": "alias/keyMain",
    "Name": "/CoreAppStage/SENTRY_DSN",
    "Value": "REPLACE_ME",
    "ValueType": "encrypted"
   },

         ....
         "ValueType": "encrypted",
        "Value": "REPLACE_ME",
        "EncryptionKey": "alias/keyMain",
        "Name": "0"
    }
}

For some reason it appears the Name property isn't getting all the way to the debug line and I'm not familiar enough with CF's custom resources to be able to figure out why.
Could that be my issue? or is it more closely related to the InvalidCiphertextException?
Thanks!
Justin

{
    "errorType": "InvalidCiphertextException",
    "errorMessage": "UnknownError",
    "name": "InvalidCiphertextException",
    "$fault": "client",
    "$metadata": {
        "httpStatusCode": 400,
        "requestId": "d99f388c-f5af-4cc8-b8f2-80a4c3233499",
        "attempts": 1,
        "totalRetryDelay": 0
    },
    "__type": "InvalidCiphertextException",
    "message": "UnknownError",
    "stack": [
        "InvalidCiphertextException: UnknownError",
        "    at deserializeAws_json1_1InvalidCiphertextExceptionResponse (/var/task/index.js:5942:25)",
        "    at deserializeAws_json1_1DecryptCommandError (/var/task/index.js:3635:23)",
        "    at processTicksAndRejections (node:internal/process/task_queues:96:5)",
        "    at async /var/task/index.js:478:24",
        "    at async /var/task/index.js:11847:22",
        "    at async StandardRetryStrategy.retry (/var/task/index.js:10681:42)",
        "    at async /var/task/index.js:9784:24",
        "    at async decrypt (/var/task/index.js:50167:25)",
        "    at async onCreateAndUpdate (/var/task/index.js:50137:54)"
    ]
}

First I would fix that decryption error since it is not related to the parameter name.
I assume you are using the actual encrypted base64 formatted value in your test in place of the "REPLACE_ME" value. If not, the decryption will fail.
Also ensure that the key used in encrypting the value is a symmetric KMS key.
Another thing to check is that you haven't used encryption context when encrypting the value. At the moment this lib does not support passing the encryption context to decrypt command.
You can also test this lib with the plaintext version. I do not recommend using it for production since it will leak the secret in cloudformation files, but for ruling out your problems related to the encryption you can test it out. The actual parameter will be encrypted using the default SSM key.
new SecureStringParameter(stack, 'Parameter', {
  parameterName: '/CoreAppStage/SENTRY_DSN',
  stringValue: 'some plaintext string',
  valueType: ValueType.PLAINTEXT,
});


Hygiene tests update (WIP)

Description
This pull request synchronises the FIBO hygiene tests with those in https://github.com/edmcouncil/idmp.
It assumes that https://github.com/edmcouncil/fibo/issues/2021 has been addressed beforehand.
Checklist:

[X] I'm familiar with the FIBO developer quide. My contribution meets all the requirements described there.
[X] My contribution follows the principles of best practices for FIBO.
[X] My changes have been reconciled with latest master and no merge conflicts remain.
[X] This PR is related to exactly one issue. The issue is referenced by using a GitHub keyword such as "fixes", "closes", or "resolves".
[X] Hygiene tests have been applied by a PR with "(WIP)" in title.
[X] The issue has been tested locally using a reasoner (for ontology changes).

In a sense, we do have this option - whatever you put in the project's respective folder (/etc/testing/hygiene_parameterized) will be run, so if we do not want a test we can remove it from this folder.
The particular test you mentioned was explicitly requested by @ElisaKendall, so you should raise your concern with her - but I agree that it does not fit to this particular project.

I'm ok if you remove this one, but we just passed all of them so I don't see the harm in keeping it.


Fix unnecessary border in diagrams

issue : Fix unnecessary border in diagram
ISSUE SUMMARY
There is unnecessary border in the diagrams and it does not looks clean.
To see this issue go to this link "https://kubernetes.io/docs/contribute/"
SCREENSHOTS OF DIAGRAM HAVING UNNECESSARY BORDER

WHY NECCESSARY?
To make the documentation look more clean .
CLEAN DIAGRAM SCREENSHOTS

visit this link to see the diagram without border "https://kubernetes.io/releases/release/"

/area web-development
/sig docs

I will fix this
/assign

Can you point out using drawings/mocks like what actually you want to do?

Do you want to crop these diagrams for reducing white space? or
You want to remove solid black border lines?

/triage needs-information
/priority awaiting-more-evidence
/remove language-en

visit this link to see the diagram without border "https://kubernetes.io/releases/release/"

@PranitRout07 This page is an auto-generated page and those diagrams are .jpg

/remove language en

You can see this
https://github.com/kubernetes/website/blob/main/content/en/releases/release.md#the-release-cycle
and the diagrams you are referring to are in Mermaid.
https://github.com/kubernetes/website/blob/main/content/en/docs/contribute/_index.md#getting-started

Remove the borders.

Raised PR in #43219

/kind feature

/remove-triage needs-information

/remove-triage needs-information

I think it is a personal taste thing.
For example, I like borders. I won't suggest adding borders if diagrams don't have borders.

I don't see a dire need to change things here, But to each one's own taste
Please feel free to re-open
/close


Maya Looks: Maya 2022 maketx "linearize" does not preserve correct colors upon publish

Describe the bug
In Maya's Extract Look when converting to .tx files the current logic is to linearize anything that was sRGB and "convert" the Color Space to "Raw".
However, Artists here detected color differences in Maya 2022 and are telling me Raw is the wrong choice for color space for this case. In Maya 2020 it gave good results, but in Maya 2022 it's messing up.
I am told that the color space should actually be: scene-linear Rec.709-sRGB when being linearized from sRGB files.
And, when applying that setting in Maya 2020 and Maya 2022 they both appear correct.
Anyone here knows more about this?

Note that this does suffer from the "OCIO" difference between Maya 2020 and 2022 because:
Maya 2022: scene-linear Rec.709-sRGB
Maya 2020: scene-linear Rec.709/sRGB
Note the subtle name difference of the color space
[cuID:OP-2526]

Solved in AYON.


Update utils.py for position-based indexing

Updated utils.py to use .iloc[] for position-based indexing since integer-based indexing ["Open"][n - 1] will be deprecated in future Pandas

Thanks for contribution but is already fixed in dev branch #1672. Planning to merge and release next few days.


Added an option to use either the standard Material Da…

Added functionality to allow developers to choose between the standard Material DatePicker or a custom datepicker.
Without this, PlutoGrid will always use the build in date picker that does not handle localization.
Before:

After:

Example of usage:
                    child: PlutoGrid(
                        columns: controller.createTableColumns(),
                        rows: rows,
                        selectDateCallback: (PlutoCell cell, PlutoColumn column) async {
                          return showDatePicker(
                              context: context,
                              initialDate: PlutoDateTimeHelper.parseOrNullWithFormat(
                                    cell.value,
                                    column.type.date.format,
                                  ) ??
                                  DateTime.now(),
                              firstDate: startDate,
                              lastDate: DateTime.now());
                        }
                        ),

@bastaware isOpenedPopup will be true even if you force it to false during the custom date picker creation. Is this the expected behavior?
line 73 of lib/src/ui/cells/pluto_date_cell.dart


feat: add check_amicable_pair.cpp

Description of Change

Added a file check_amicable_pair.cpp in the math folder which checks the pair is amicable or not.
Checklist

[x] Added description of change
[x] Added file name matches File name guidelines
[x] Added tests and example, test must pass
[x] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
[x] Relevant documentation/comments is changed or added
[x] PR title follows semantic commit guidelines
[x] Search previous suggestions before making a new one, as yours may be a duplicate.
[x] I acknowledge that all my contributions will be made under the project's license.

Notes:

please revert this commit 10e4ffa8bba5c968d8ba46255217c77233a660e5

Sorry there is a small error. I'll fix it now

@mishraabhinn I have changed the function as you said.

@Panquesito7 Sorry, that code has some issue, it wasnt giving correct output. But I have made the code much more simpler. Thank you.

Looks much better :)
👍 god job everyone

@kvedala, this can be merged after CI passes. 🙂

Thank you guys @kvedala @Panquesito7 @mishraabhinn

@ayaankhan98 please merge without squashing the commits. Otherwise, it disrupts the graph.

@kvedala Okay i will remember.

@kvedala @ayaankhan98 can some one merge the full commit done in this pull request. Because, when I am trying for another pull request(another algorithm), it is showing my old commits again.


BuiltByBit and Polymart badges

Add badge to indicate that you are on the following pages:
BuiltByBit (formerly mc-market)
Polymart
links to both sites:
https://builtbybit.com
https://polymart.org

Will be available in the next release, along with #29

This is what they look like

Now available in 2.4.0


Syncing latest changes from upstream main for kubernetes-csi-addons

PR containing the latest commits from upstream main branch

/lgtm
/approve


chore(main): release 0.64.0

:robot: I have created a release beep boop
0.64.0 (2024-01-08)
Features

Files: Filter files matching a substring (a119ea9)
Files: Filter files matching a substring (#621) (06d3321)
i18n: App is translatable (#624) (c19e7fb)
User can register & see their workspace's invitations (#613) (81ec731)

Bug Fixes

tests: Missing openHexa (799bb55)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/BLSQ/openhexa-app/releases/tag/0.64.0 :sunflower:


SignaturePad doesn't support for Windows 8.1

I never released a package for windows phone because I never finished the implementation.

could you please suggest any work around?
i really need to finish this with in two days

Implement windows phone support.  It was never implemented on windows phone

i have one doubt, is this signature pad support windows implementation?

Not sure.  You'd have to go take a look at xamarin signaturepad

Thank you for spent your time


Adding tests that show errors in deserialization

What's done:

test for invalid custom serialization
test for invalid inline serialization

@bishiboosh @NightEule5 this is a very small PR with a workaround for custom serializers (with the override of deserialise() method), that some users can add.
I hope you don't mind if I merge it without the review as it is very primitive - just a small hack.
I also have found that some more complex cases are not working, so I have added tests and ignored them


Broken pipe (Errno::EPIPE)

Hello,
I'm using Neography in production with Neo4j 2.1.3 Enterprise.  It's hosted on my VPS running on the same instance as a Sinatra app I have using the Neography gem.
I've been running it for some weeks now and I'm occasionally getting the following error
Broken pipe (Errno::EPIPE)

This occurs when I run a cypher query, typically to fetch a single node by ID but very occasionally when I run other types of queries.  The typical query it fails for is something like MATCH (u:User) WHERE id(u)=<id> RETURN u
I'm running Neography with the following settings:
Neography.configure do |config|
    config.protocol           = "http://"
    config.server             = "localhost"
    config.port               = 7474
    config.directory          = ""  # prefix this path with '/'
    config.cypher_path        = "/cypher"
    config.log_file           = "log/neography.log"
    config.log_enabled        = false
    config.slow_log_threshold = 0    # time in ms for query logging
    config.max_threads        = 20
    config.authentication     = nil  # 'basic' or 'digest'
    config.username           = nil
    config.password           = nil
    config.parser             = MultiJsonParser
    config.http_send_timeout    = 30000
    config.http_receive_timeout = 30000 # 30 seconds
end

I'm also running Neo4j with it's default settings.
Any ideas as to why this is happening?
Thanks in advance,
Nick

Not sure what to say here... this is mostly an external issue (network problems) rather than something I can do with neography...

Yes, correct. The issue turned out to be GC problems with Neo4j memory
settings not configured properly.
Thanks,
On Mon, Feb 9, 2015 at 8:04 AM, Max De Marzi<EMAIL_ADDRESS>wrote:

Not sure what to say here... this is mostly an external issue (network
problems) rather than something I can do with neography...
—
Reply to this email directly or view it on GitHub
https://github.com/maxdemarzi/neography/issues/192#issuecomment-73504915
.


feat: add zerionWallet

Hey, @DanielSinclair !
I've reverted changes to getDefaultWallets. Is it ok for now, or I should revert all calls of zerionWallet({ chains }) as well?

@zerts Am seeing a few reliability problems on our example dApp deployment: https://rainbowkit-example-git-fork-zerts-add-zerio-6a8b08-rainbowdotme.vercel.app/
Other teams are bumping into an issue that appears to be related to provider injection delays; if RainbowKit doesn't see the flag at the time of connector initialization, it falls back to WalletConnect. We're not seeing this with MetaMask; likely because that is optimized.

@DanielSinclair
The script that creates window.ethereum global is injected synchronously. You can check that window.ethereum is defined by adding an inline script to the head element of your test page, e.g.:
<head>
    <!-- other elements -->
    <script>
        console.log('ethereum provider is defined:', Boolean(window.ethereum));
    </script>
</head>

I did stumble upon inconsistencies in Rainbow kit trying to detect an Injected Wallet.
I didn't have a chance to look at how you do it, but if you need help trying to nail down the bug, feel free to reach out.
Btw, I wasn't able to reproduce the above bug on your test page, but I did see it in some dapps.

@DanielSinclair
We've dug deeper into extension lifecycle issues and it turned out that due to what seems to be a chrome bug it was not guaranteed that the ethereum global was always injected before site scripts.
We've found a workaround that should provide a more robust behavior. We can send you the latest extension build.

Looks like Wagmi didn't have a check for isZerion yet, so opened a PR to introduce that: https://github.com/wagmi-dev/references/pull/187
Cherry-picked this PR to #1108 to merge


Added rtu.txt

@gestanestle First stage of verification passed, official domain is rtu.edu.ph as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@gestanestle Thank you for your patience while waiting for a review and processing your request. Pull request merged.


[CDN] Migrate azure-mgmt-cdn to track2 SDK

Description

Migrate azure-mgmt-cdn to track2 SDK
Testing Guide

az cdn --help
az afd --help
History Notes

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

CDN

LGTM.


problem with a small dataset - illness  len() should return >= 0

Dear developer, I noticed that your article lacks experiments with the illness dataset.
I tried to implement the script itself, but I encountered an error
Could you please tell me what is the reason and how to solve this problem
Traceback (most recent call last):
  File "/kaggle/working/SegRNN/run_longExp.py", line 141, in <module>
    exp.train(setting)
  File "/kaggle/working/SegRNN/exp/exp_main.py", line 105, in train
    train_data, train_loader = self._get_data(flag='train')
  File "/kaggle/working/SegRNN/exp/exp_main.py", line 45, in _get_data
    data_set, data_loader = data_provider(self.args, flag)
  File "/kaggle/working/SegRNN/data_provider/data_factory.py", line 44, in data_provider
    print(flag, len(data_set))
ValueError: __len__() should return >= 0
...
CPU times: user 227 ms, sys: 54.7 ms, total: 282 ms
Wall time: 16.7 s

Thank you for bringing that up. Indeed, our article lacks experiments with the illness dataset.
We have submitted a new version with a script specifically designed for the illness dataset, named "scripts/SegRNN/ill.sh". You can pull the latest code and use this script, which should address your issue. If it doesn't, please provide the script you implemented, and I'll do my best to assist you further.

Thank you for bringing that up. Indeed, our article lacks experiments with the illness dataset.
We have submitted a new version with a script specifically designed for the illness dataset, named "scripts/SegRNN/ill.sh". You can pull the latest code and use this script, which should address your issue. If it doesn't, please provide the script you implemented, and I'll do my best to assist you further.

Thanks. I've discovered my mistake.


Extra unwanted space after page content

I'm having an extra space after all my contents/footer. I think its because of the div.sb-site calculating its min-height giving a big white space after the footer.

howdy, still having this issue. i am using the https://github.com/JoryHogeveen/off-canvas-sidebars/issues/new?template=bug_report.md.


make host number visible to find logs easily

Maybe I'm just not good enought, but I cannot find the number assigned to a host setup easily.
I'd like to be able to easily find that out since I got quite a lot of them, and when I want to look at /data/logs/proxy_host-xx.log I never know which xx I'm looking for...
So either adding a field to name each host in the gui and use a normalized version of this name, or let me display a column "number" or # in the GUI to be able to find which host I'm after...
Thanks in advance for considering it.

Duplicate of https://github.com/jc21/nginx-proxy-manager/issues/174


Can't run extension inside Java dev-container

Issue Type: Bug
1- Open a new vscode remote dev-container using the Java 12 container definition examples (based off of Docker image of openjdk:12-jdk)
2- Install the live-share extension from inside the container (requires a restart)
Following error occurs:

Agent terminated with exit code: 0 and signal null: FailFast:
Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.at System.Environment.FailFast(System.String)
at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
at System.Globalization.GlobalizationMode..cctor()
at System.Globalization.CultureData.CreateCultureWithInvariantData()
at System.Globalization.CultureData.get_Invariant()
at System.Globalization.CultureInfo..cctor()
at System.StringComparer..cctor()
at System.AppDomain.InitializeCompatibilityFlags()
at System.AppDomain.Setup(System.Object)

I'd like to note that the remote dev-container extension is working flawlessly on a container with the python-3 definition (based off of python:3 image).
Hope this can help,
Thanks! :)
Extension version: 1.0.905
VS Code version: Code - Insiders 1.39.0-insider (695ee74864ef93d10f5de0861cb66af190e76211, 2019-10-02T08:56:32.907Z)
OS version: Linux x64 5.0.0-29-generic snap
Remote OS version: Linux x64 5.0.0-29-generic

System Info

Item
Value

CPUs
AMD Ryzen 7 2700X Eight-Core Processor (16 x 2760)

GPU Status
2d_canvas: unavailable_softwareflash_3d: disabled_softwareflash_stage3d: disabled_softwareflash_stage3d_baseline: disabled_softwaregpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwareoop_rasterization: disabled_offprotected_video_decode: disabled_offrasterization: disabled_softwareskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: disabled_softwareviz_display_compositor: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_software

Load (avg)
1, 1, 1

Memory (System)
47.17GB (13.75GB free)

Screen Reader
no

VM
0%

Item
Value

Remote
Dev Container: Java 12

OS
Linux x64 5.0.0-29-generic

CPUs
AMD Ryzen 7 2700X Eight-Core Processor (16 x 3377)

Memory (System)
47.17GB (13.75GB free)

VM
0%

@xWiiLLz thanks for reaching out. Your logs may provide us with helpful information. You can access them via the Live Share: Export Logs command from the command palette (ctrl + shift + p) and attach them to this issue. Also, from the error message," Couldn't find a valid ICU package installed on the system" sounds like it might be dotnet setup issue. #1175 or #1023 might be related to this. would you check the suggestions there and let us know if it unblocks you ?

@setaskin, thanks a lot for the quick answer!
Here's the logs:
logs.zip
As for the dotnet fix, I'll try the work around once I have time.
Since dotnet is required by the extension and there is this known issue on some linux kernels, shouldn't the setup make sure the required dependencies are present?

I'm also experiencing this issue with a Java 11 container.

We’ve made improvements in this area since this issue was filed (i.e. the vsls-agent process and associated dependencies have been removed). We believe this may have improved your experience and are closing this issue. If this issue still persists for you, please comment on the issue and let us know. Thank you.


Return success state of a Safe transaction

Currently there is not good indicator if a Safe transaction was successful or failed. The backend should return this with the list of transactions.

Safe txs have now an attribute isSuccessful to indicate the success state of the transaction since 40e2f811c2a812efc0fb3822f4ece420f55cd247


Redraw on terminal resize

Awesome application! Would be nice to have redraw on terminal resize, not sure how difficult that would be with termion.

Thanks a lot, I am glad you like. I am it's most avid user myself :D.
Have you tried to trigger a redraw, for example by pressing the up/down keys? This will pick up the correct sizes.
Please let me know in case that doesn't work for you.

Yah, forcing a redraw fixes it, but it would be nice if it was automatic. It looks like ncdu automatically redraws. Just a nice QOL thing.

Thanks for the clarification, I see what you mean! NCDU indeed is able to do it, and it remains puzzling to me how it does it 😅.

NP :D Often times terminal backends will expose a resize event, but in the case of termion it looks like we have to instead listen to a SIGWINCH signal. Here's an example of how to do it: https://github.com/gyscos/Cursive/issues/91

Thanks a bunch, I think that would help! Right now, dua is fully synchronous (except for the traversal), which makes implementing signals safely non-trivial, at least in my head.
Something I would like to do is to make event processing asynchronous, and then 'just' select on signals that come in from another source. For now, this doesn't seem easy though, yet I would be glad to see a PR which shows how that can be done.

Yah so it looks like currently the event loop is just an iterator over stdin.keys(). What I would do is create a thread to read the keys into a channel, and then select between that channel and the SIGWINCH channel in a loop. Should be fine like that.

The latter would also enable more fine-grained, potentially time-based
updates for a better user experience during traversal and deletion, and of
course, the ability to interrupt all operations.
On Sun 28. Jul 2019 at 10:16, Caleb Bassi<EMAIL_ADDRESS>wrote:

Yah so it looks like currently the event loop is just an iterator over
stdin.keys(). What I would do is create a thread to read the keys into a
channel, and then select between that channel and the SIGWINCH channel in a
loop. Should be fine like that.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/Byron/dua-cli/issues/28?email_source=notifications&email_token=ADTXPGXKNSRA27OYUKTCVHTQBT6QVA5CNFSM4IHGNEF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD26V5VY#issuecomment-515727063,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADTXPGWSV6JGB2THKBQQYHTQBT6QVANCNFSM4IHGNEFQ
.

--
Sebastian Thiel 李乐乐
Rust and TWU Advocate
Email<EMAIL_ADDRESS>Telephone +49 (0) 40 300 95 880 <+49+(0)+40+300+95+880>
[image: ThoughtWorks]
http://www.thoughtworks.com/?utm_campaign=sebastian-thiel-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator
ThoughtWorks Deutschland GmbH Großer Burstah 46-48D-20457 Hamburg
Sitz der Gesellschaft: Hamburg Geschäftsführer: Dr. Peter Buhrmann - AG
Hamburg - HRB 115336

By now, input handling is indeed done in a separate channel. That should make tackling this issue possible.

In case it helps, gdu (another similar tool, written in golang, does handle window resize properly).
Thanks for this dua tool, it's nice to have dua, ncdu and gdu as options (ncdu being the slowest as it does not currently use multiple cpu cores).

Thanks for the reminder. I did take another look and it turns out that more recent crossterm versions provide a Resize event which one only has to listen to. The termion version doesn't have this feature and I don't see it happening either, it's not really worth it to maintain it even as crossterm seems to work well enough.
That said, with this in place, now dua will also resize automatically when compiled with default features.
A new release is available here.


Factor out loopback file system and add Stat

Also, fix warnings.

I've now added Stat which lets you mount Lofs9p on Linux.

Thanks!


Option to use MongoDB like ID

Is your feature request related to a problem? Please describe.
Many apps I believe are based on the _id and how it is defined by MongoDB.
In my case for instance, I use it as the time of creation of documents. Directly in a query in order for instance to get documents by creation time.
function getObjectId(days) {
    const yesterday = new Date()
    days = days || 14
    yesterday.setDate(yesterday.getDate() - days)
    const hexSeconds = Math.floor(yesterday / 1000).toString(16)
    return new ObjectId(hexSeconds + '0000000000000000')
}
const objectId = getObjectId(days)
const query = {}
query._id = { $gt: objectId }

Describe the solution you'd like
Add an option to use mongoDB ids
Describe alternatives you've considered
I have no alternative other than adding createdAt field and change all my queries.

My bad I totally ignored the option timestampData.. a bit of rework and it would be fine.
feel free to close.


Current source checkout fails with a parse error on gcc2

This is with: https://github.com/adamfowleruk/Paladin/blob/develop/Paladin/PreviewFeatures/CommandOutputHandler.h#L29
https://paste.ubuntu.com/p/YPfQTXsdtp/

On another not "-lgcov" is gcc8 only afaik: https://github.com/adamfowleruk/Paladin/blob/44887d1fea2a3b3cecf0878dbc531ff09b850630/Tests/compile.sh#L11

Fixed for Haikuports PR. Patch provided there.

Thanks for this. I'll ensure that my build testing uses x86 in the pipeline in future. Should catch things like this.


Error When Following the Usage Instructions

I tried following the usage instructions you posted on a sample .jpg image of a receipt.
Every time I run it, I get an error saying, "RuntimeError: Expected 4-dimensional input for 4-dimensional weight [64, 3, 7, 7], but got 3-dimensional input of size [3, 384, 500] instead".
How do I fix that?
Full code:
import pytesseract
import sys
sys.path.extend(['docformer/src/docformer/'])
import modeling, dataset
from transformers import BertTokenizerFast

config = {
  "coordinate_size": 96,
  "hidden_dropout_prob": 0.1,
  "hidden_size": 768,
  "image_feature_pool_shape": [7, 7, 256],
  "intermediate_ff_size_factor": 4,
  "max_2d_position_embeddings": 1000,
  "max_position_embeddings": 512,
  "max_relative_positions": 8,
  "num_attention_heads": 12,
  "num_hidden_layers": 12,
  "pad_token_id": 0,
  "shape_size": 96,
  "vocab_size": 30522,
  "layer_norm_eps": 1e-12,
}

fp = "images/data_sample.jpg"

tokenizer = BertTokenizerFast.from_pretrained("bert-base-uncased")
encoding = dataset.create_features(fp, tokenizer)

pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'

feature_extractor = modeling.ExtractFeatures(config)
docformer = modeling.DocFormerEncoder(config)

v_bar, t_bar, v_bar_s, t_bar_s = feature_extractor(encoding)
output = docformer(v_bar, t_bar, v_bar_s, t_bar_s)  # shape (1, 512, 768)

Full error:
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Input In [3], in <module>
     31 feature_extractor = modeling.ExtractFeatures(config)
     32 docformer = modeling.DocFormerEncoder(config)
---> 34 v_bar, t_bar, v_bar_s, t_bar_s = feature_extractor(encoding)
     35 output = docformer(v_bar, t_bar, v_bar_s, t_bar_s)

File ~\anaconda3\envs\docformer_env\lib\site-packages\torch\nn\modules\module.py:1102, in Module._call_impl(self, *input, **kwargs)
   1098 # If we don't have any hooks, we want to skip the rest of the logic in
   1099 # this function, and just call forward.
   1100 if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
   1101         or _global_forward_hooks or _global_forward_pre_hooks):
-> 1102     return forward_call(*input, **kwargs)
   1103 # Do not call functions when jit is used
   1104 full_backward_hooks, non_full_backward_hooks = [], []

File ~\Documents\Projects\docformer_implementation\docformer/src/docformer\modeling.py:512, in ExtractFeatures.forward(self, encoding)
    509 x_feature = encoding['x_features']
    510 y_feature = encoding['y_features']
--> 512 v_bar = self.visual_feature(image)
    513 t_bar = self.language_feature(language)
    515 v_bar_s, t_bar_s = self.spatial_feature(x_feature, y_feature)

File ~\anaconda3\envs\docformer_env\lib\site-packages\torch\nn\modules\module.py:1102, in Module._call_impl(self, *input, **kwargs)
   1098 # If we don't have any hooks, we want to skip the rest of the logic in
   1099 # this function, and just call forward.
   1100 if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
   1101         or _global_forward_hooks or _global_forward_pre_hooks):
-> 1102     return forward_call(*input, **kwargs)
   1103 # Do not call functions when jit is used
   1104 full_backward_hooks, non_full_backward_hooks = [], []

File ~\Documents\Projects\docformer_implementation\docformer/src/docformer\modeling.py:48, in ResNetFeatureExtractor.forward(self, x)
     47 def forward(self, x):
---> 48     x = self.resnet50(x)
     49     x = self.conv1(x)
     50     x = self.relu1(x)

File ~\anaconda3\envs\docformer_env\lib\site-packages\torch\nn\modules\module.py:1102, in Module._call_impl(self, *input, **kwargs)
   1098 # If we don't have any hooks, we want to skip the rest of the logic in
   1099 # this function, and just call forward.
   1100 if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
   1101         or _global_forward_hooks or _global_forward_pre_hooks):
-> 1102     return forward_call(*input, **kwargs)
   1103 # Do not call functions when jit is used
   1104 full_backward_hooks, non_full_backward_hooks = [], []

File ~\anaconda3\envs\docformer_env\lib\site-packages\torch\nn\modules\container.py:141, in Sequential.forward(self, input)
    139 def forward(self, input):
    140     for module in self:
--> 141         input = module(input)
    142     return input

File ~\anaconda3\envs\docformer_env\lib\site-packages\torch\nn\modules\module.py:1102, in Module._call_impl(self, *input, **kwargs)
   1098 # If we don't have any hooks, we want to skip the rest of the logic in
   1099 # this function, and just call forward.
   1100 if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
   1101         or _global_forward_hooks or _global_forward_pre_hooks):
-> 1102     return forward_call(*input, **kwargs)
   1103 # Do not call functions when jit is used
   1104 full_backward_hooks, non_full_backward_hooks = [], []

File ~\anaconda3\envs\docformer_env\lib\site-packages\torch\nn\modules\conv.py:446, in Conv2d.forward(self, input)
    445 def forward(self, input: Tensor) -> Tensor:
--> 446     return self._conv_forward(input, self.weight, self.bias)

File ~\anaconda3\envs\docformer_env\lib\site-packages\torch\nn\modules\conv.py:442, in Conv2d._conv_forward(self, input, weight, bias)
    438 if self.padding_mode != 'zeros':
    439     return F.conv2d(F.pad(input, self._reversed_padding_repeated_twice, mode=self.padding_mode),
    440                     weight, bias, self.stride,
    441                     _pair(0), self.dilation, self.groups)
--> 442 return F.conv2d(input, weight, bias, self.stride,
    443                 self.padding, self.dilation, self.groups)

RuntimeError: Expected 4-dimensional input for 4-dimensional weight [64, 3, 7, 7], but got 3-dimensional input of size [3, 384, 500] instead

Have a look here: https://github.com/uakarsh/docformer/blob/master/examples/DocFormer_for_MLM.ipynb
The error is because, the entity is not batched (i.e having a shape of (....), rather than (batch_size,....)

@uakarsh Thank you for your help! Does this mean that the Usage section of the README can't actually be used? I was trying to do a demo of it to my study group. I tried encoding['resized_scaled_img'] = encoding['resized_scaled_img'].unsqueeze(0) to add a batch size of 1, but that didn't work either.

It can be used, we just need to pass an argument, add_batch_dim=True, in dataset.create_features function.

The thing, which you did also won't work, because there are more then just imae feature, i e you need to unsqueeze the other features as well.

Thank you so much, it runs now! Unsqueezing each feature also works for me, but add_batch_dim is more straightforward. Are there any examples of followup steps (i.e., what the resulting tensor means in terms of the input image)?

Maybe, you can have a look at the notebook, which I shared previously. In that notebook, you can go through the DocFormerForMLM class, and look at the forward method there. I would briefly describe it here:
All the shapes are mentioned as per the default configuration

The self.embeddings, are responsible for encoding the spatial features of the bounding boxes (size -> (512,768)
The self.resent, is responsible for extracting the image feature (size -> (512, 768)
The self.lang_emb, is responsible for the language feature extraction from the words of the bounding boxes (size -> (512,768)
The self.encoder, calculates the attention and forward propagates it (size -> (512,768)

And then, for downstream task, the linear layers are attached. Hope it helps.

Ok, understood, thank you very much for your help. I'll close the issue since the example runs!


Fix the MiqWorker.systemd_supported? method

Only the first worker type was reporting as being supported for systemd
because all other require calls returned false as the gem was already
loaded.

Is this for backport @agrare ?

@jrafanie yeah just for ivanchuk

I think we'll need a BZ if we want this on ivanchuk

Ivanchuk backport details:
$ git log -1
commit 76c7a75d8519734b46c4648271a6153fe2293199
Author: Joe Rafaniello<EMAIL_ADDRESS>Date:   Fri Aug 2 10:03:30 2019 -0400

    Merge pull request #19092 from agrare/fix_miq_worker_systemd_supported

    Fix the MiqWorker.systemd_supported? method

    (cherry picked from commit a579f91deb805289d9caf66610fdca38ad665ea7)


Convert to {n_x, n_y, n_z, n_e, n_p} interface

This depends on https://github.com/jmcelve2/cheshire/issues/6

Solved with https://github.com/jmcelve2/cheshire/pull/9.


Fix BC break

Q
A

Bug fix?
no

New feature?
no

BC breaks?
yes

Deprecations?
no

Related tickets
fixes #32

Documentation

License
MIT

What's in this PR?
Adds a workaround for missing LoopInterface::tick() method.
Why?
Since react/http-client utilizes newer versions of react/event-loop which have BC in them, the tick() method no longer exists. This PR adds a workaround to fix that.
Example Usage
Checklist

[ ] Updated CHANGELOG.md to describe BC breaks (composer.json requirements)

@joelwurtz Could this be merged?

@nenadstojanovikj Thanks a lot for this fix!


Remove git dep for secp256k1 install

Addresses issues from #260  and #237.  This PR packs libsecp256k1 as part of the bundle.

Codecov Report
Base: 94.15% // Head: 94.11% // Decreases project coverage by -0.03% :warning:

Coverage data is based on head (be4376b) compared to base (9538846).
 Consider uploading reports for the commit 5a83744 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #265      +/-   ##
==========================================
- Coverage   94.15%   94.11%   -0.04%
==========================================
  Files         201      201
  Lines        5508     5474      -34
  Branches      658      657       -1
==========================================
- Hits         5186     5152      -34
  Misses        179      179
  Partials      143      143

Impacted Files
Coverage Δ

packages/logger/lib/util.ts
60.00% <0.00%> (-3.64%)
:arrow_down:

packages/wire/lib/serialize/Encoder.ts
75.00% <0.00%> (-2.78%)
:arrow_down:

...h/lib/deserialize/channel-settings-from-message.ts
66.66% <0.00%> (-2.57%)
:arrow_down:

packages/wire/lib/MessageFactory.ts
67.64% <0.00%> (-0.93%)
:arrow_down:

...ages/wire/lib/messages/QueryChannelRangeMessage.ts
91.42% <0.00%> (-0.24%)
:arrow_down:

packages/bitcoin/lib/BitcoinError.ts
91.66% <0.00%> (-0.23%)
:arrow_down:

packages/core/lib/lightning/TxFactory.ts
84.28% <0.00%> (-0.23%)
:arrow_down:

...s/wire/lib/messages/QueryShortChannelIdsMessage.ts
94.23% <0.00%> (-0.11%)
:arrow_down:

packages/bitcoin/lib/HdPublicKey.ts
97.77% <0.00%> (-0.10%)
:arrow_down:

packages/bufio/lib/BufferReader.ts
94.26% <0.00%> (-0.10%)
:arrow_down:

... and 17 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Accessing containers - --reverse-proxy / --inspector

I am struggling a bit trying to understand how best to access containers that kubedock has created.
I have created a simple integration test that depends on a mysql container. If I use kubedock in --reverse-proxy mode, I can see that when my test asks testcontainers for the mysql container db url, it is given the fully qualified kubedock hostname with the random port that has been assigned to the mysql instance:
Waiting for database connection to become available at jdbc:mysql://kubedock.xxx.svc.cluster.local:57636/yyy using query 'SELECT 1'

Unfortunately, because I have not exposed this port explicitly in the kubedock service config, it times out while trying to obtain a connection.
If I remove the --reverse-proxy flag and instead try to use --inspector, I can see that a k8s service has been created for my mysql container with the random port exposed, however when my test asks testcontainers for the mysql db url, it is still given the kubedock hostname rather than that of the mysql service.
So I guess my question is, what is the expected use case for the --inspector flag? Is there some way I can get testcontainers to provide me with the container's service name rather than the kubedock service name?

I guess this is why the recommendation is that kubedock runs as a sidecar...

So I guess my question is, what is the expected use case for the --inspector flag? Is there some way I can get testcontainers to provide me with the container's service name rather than the kubedock service name?

In some cases there is no port exposed when starting the container. In that case kubedock doesn't expose ports either. The --inspector flag will query the registry for that specific image to see if there were any default ports exposed via the image itself. If so, it will reverse-proxy/port-forward these ports as well. This will increase compatibility, but note that the occasions where this is required are rare (and can be worked around by exposing them in the test itself).


Add demo for box-sizing

Maybe in future, we can create demos for all things? 😉

Added demo in commit 44ec539b140a4255e4b4891ba0c75379cea99df0.


[WIP] 486 Add example model package

Fixes #486 .
Description
This PR implemented a draft example of the model package for discussion, leverage @ericspod 's great work to save data: https://github.com/Project-MONAI/MONAI/pull/3138

Basic principles
(1) Structured sharable data: Define meta data and components in structured files, like JSON or YAML.
(2) TorchScript package: Export model weights, meta data, components config, etc. into TorchScript file.
(3) Hybrid programming: The developer of model package defines which parts of the workflow should be shared for others to reconstruct other logic, then define these parts in JSON or YAML config, and implement other logic in the python program. For example, this PR defines transforms, dataset, dataloader, inferer, etc. in the inference.json config, implements an inference logic with native PyTorch program in inference.py, other teams can easily leverage the config file to reconstruct necessary components and implement their specific inference logic.
(4) Data sharing: the python program can leverage the ConfigParser to get constructed instance or raw config items from config file then lazy instantiation, configs can refer / extend other items in a file or even other files.

Structure of the package
(1) commands: start point to execute, like: export.sh to export the network weights, meta, config, etc. to TorchScript model, inference.sh to load TorchScript model, construct instances and execute inference.
(2) configs:  structure config for sharable components or information, can be JSON or YAML, like: metadata.json record the necessary meta information of the model package, inference.json define the args and components for inference usage.
(3) docs: necessary documents, like: README.md and lisence.txt, etc. depends on the model context.
(4) models: pretrained model weights and exported TorchScript model file.
(5) programs: python program to execute the main logic, like inference.py leverage the structured components to construct inference program. We can extract common logic and implement as utils in the core codebase later.

Status
Work in progress
Checks

[ ] Notebook runs automatically ./runner [-p <regex_pattern>]

I didn't implement any config-parsing related logic in it so far, marked as TODO: in the code.

Interesting comments from @ericspod during the online meeting:

Just a note that .ts is meant to be Torchscript but to web developers it'll looks like a Typescript file, we may want to choose something else if anyone finds that confusing.
Versioning the package would help, if we used git repos to store things the commit hash becomes part of the version implicitly.

Thanks.

Hi @ericspod @wyli ,
Maybe I misunderstood your suggestion, how can we get the commit hash if we want to save the commit hash in meta data for this commit...?
Thanks in advance.

Hi @ericspod @wyli ,
Maybe I misunderstood your suggestion, how can we get the commit hash if we want to save the commit hash in meta data for this commit...?
Thanks in advance.

What I was thinking was, from the perspective of a user, the commit hash could be used to determine model versions. It wouldn't be included in the package but would be used to tell model versions apart that claim to be the same version, ie. if the user forgets to increment the version.

Hi @ericspod @wyli ,
Maybe I misunderstood your suggestion, how can we get the commit hash if we want to save the commit hash in meta data for this commit...?
Thanks in advance.

What I was thinking was, from the perspective of a user, the commit hash could be used to determine model versions. It wouldn't be included in the package but would be used to tell model versions apart that claim to be the same version, ie. if the user forgets to increment the version.

Thanks for your explanation, looks good to me!

Slightly adjusted the folder structurer, thanks for the reference of MONAI application:
https://github.com/Project-MONAI/monai-deploy/blob/main/guidelines/monai-application-package.md#table-of-important-paths
Thanks.

Hi @wyli @ericspod ,
Thanks for several internal discussions, I updated the example model package to show new ideas:

inference.py shows how to get config and modify it then instantiation, and also shows how to get instance directly, these are the 2 ways for JSON / python hybrid.
inference_v2.py shows how to write a new config with a base config and override some configs.
trtinfer.json and trtinfer.py show how to refer to config in another JSON file or same file, simulated TensorRT and DALI inference logic.

Could you please help take a look again?
Thanks in advance.

Hi @ericspod @wyli ,
I added the tensorboard.png and mlflow.png into the model package for training curves, and changed the docs folder to materials.
Thanks.

Hi @aihsani ,
Thanks for your suggestion!
I think the shell scripts are used to simplify the common use cases and args, especially for researchers to tune args when training a MMAR, for example, they may have several different configs, change config file in shell.
For example, the inference.sh in this example is:
python ../scripts/inference.py
    --config ../configs/inference.json
    --meta ../configs/metadata.json

And you are right, we should definitely not put complicated logic in the shell script, main things should in the python or JSON files, you can call the python program inference.py directly.
Thanks.

I added schema example to check the metadata format and expected values.
It's based on the jsonschema standard: http://json-schema.org/.
I didn't define schema for all the items, just included key required items as example.
Thanks.

Hi @wyli ,
I changed the override feature to a separate MMAR example according to our online discussion to make it more clear.
Thanks.

Hi @ericspod @wyli @rijobro @aihsani ,
I have updated this MMAR example according to our online discussion yesterday.
And moved the python scripts and schema to MONAI core to support 90% cases:
https://github.com/Project-MONAI/MONAI/tree/506b9089637d7dd9ed3496dde9deee8c669f269d/monai/apps/mmars
Thanks.

To recap what we had discussed about actual file structure, let's say we have a directory with at least these files:
models/model.ts
models/model.pt
configs/metadata.json

We can consider this directory the model package itself. The metadata.json would have in it the information that is currently provided in this PR, plus it should also have the arguments to instantiate the network rather than that being in the inference config. If the model isn't compatible with Torchscript then the mode.ts file will be absent and this will be needed to recreate the network before loading the stored weights.
This directory can then be packaged into a zip file whose structure can be assumed with models and configs directories. If the model is compatible with Torchscript then a new .ts file can be made with the metadata stored internally and other files saved as extra files using save_net_with_metadata. Users can then load this Torchscript model without worrying about the metadata or anything else MONAI specific if they just wanted to get things started quickly. Either way we'd have a zip file that's easy to distribute and which other software can expect to have as input.

closing in favour of https://github.com/Project-MONAI/tutorials/tree/master/modules/bundles


Update Node setup documentation

Add chai.should() call along with registering chaiAsPromised. This seems to be necessary in order to call .should on a promise, but I couldn't find it explicitly mentioned anywhere in the docs.

You should only do this if you want to use the should interface. It's part of the Chai docs: http://chaijs.com/. As such I don't think it's the plugin's job to instruct people on this core Chai feature...

Fair enough


[Bug Report] In the el-upload file upload screen opens twice by tab key and enter key operation

Element UI version
2.3.3
OS/Browsers version
windows10/ Google Chrome 65.0.3325.181
Vue version
2.5.13
Reproduction Link
https://jsfiddle.net/mmx38qxw/1302/
Steps to reproduce

Focus the upload button by moving with the tab key
Make sure that you clicked the button with the enter key, and start up the file upload screen
Select a file and upload it
4.The upload is canceled and the file selection screen is activated again

What is Expected?
In the first file selection, the file is uploaded correctly.
What is actually happening?
You can not upload files correctly unless you select the file twice.

Cannot reproduce.

I wrote the environment with win10. I do not know if it will work on linux, Mac, but this bug has occurred at least in win10's explorer.

Only in Windows10 IE or also in Windows 10 Chrome?

This bug occurs in win10 and Edge, win10 and IE, win10 and chrome environment.
In the win10 and fireFox environment this bug did not occur.

@Leopoldthecoder
Make sure to use tab & enter key. This bug can be reproduced on Chrome for Mac, too.
It's an accessibility issue, actually.

I am using tab and enter. Do you guys have a screenshot?

OK, I have reproduced this.


Date field doesn't support all datetime format when it should

Initial Checks

[X] I have searched GitHub for a duplicate issue and I'm sure this is something new
[X] I have searched Google & StackOverflow for a solution and couldn't find anything
[X] I have read and followed the docs and still think this is a bug
[X] I am confident that the issue is with pydantic (not my code, or another library in the ecosystem like FastAPI or mypy)

Description
At https://pydantic-docs.helpmanual.io/usage/types/#datetime-types it says
date fields can be:
str, following formats work:

...see datetime

However date field doesn't support strings that have time in it when it should.
Example Code
from datetime import datetime, date
from pydantic.dataclasses import dataclass

@dataclass
class Bug:
    dateField: date = None
    datetimeField: datetime = None

In [2]: Bug(dateField="2022-01-01")
Out[2]: Bug(dateField=datetime.date(2022, 1, 1), datetimeField=None)

In [3]: Bug(datetimeField="2022-01-01T12:00:00")
Out[3]: Bug(dateField=None, datetimeField=datetime.datetime(2022, 1, 1, 12, 0))

In [4]: Bug(dateField="2022-01-01T12:00:00")
---------------------------------------------------------------------------
ValidationError                           Traceback (most recent call last)
Cell In [4], line 1
----> 1 Bug(dateField="2022-01-01T12:00:00")

File /usr/local/lib/python3.10/site-packages/pydantic/dataclasses.py:313, in _add_pydantic_validation_attributes.<locals>.new_init(self, *args, **kwargs)
    310 handle_extra_init(self, *args, **kwargs)
    312 if self.__class__.__pydantic_run_validation__:
--> 313     self.__pydantic_validate_values__()
    315 if hasattr(self, '__post_init_post_parse__'):
    316     # We need to find again the initvars. To do that we use `__dataclass_fields__` instead of
    317     # public method `dataclasses.fields`
    318     import dataclasses

File /usr/local/lib/python3.10/site-packages/pydantic/dataclasses.py:416, in _dataclass_validate_values(self)
    414 d, _, validation_error = validate_model(self.__pydantic_model__, input_data, cls=self.__class__)
    415 if validation_error:
--> 416     raise validation_error
    417 self.__dict__.update(d)
    418 object.__setattr__(self, '__pydantic_initialised__', True)

ValidationError: 1 validation error for Bug
dateField
  invalid date format (type=value_error.date)

### Python, Pydantic & OS Version

```Text
pydantic version: 1.10.2
            pydantic compiled: False
                 install path: /usr/local/lib/python3.10/site-packages/pydantic
               python version: 3.10.8 (main, Oct 25 2022, 03:04:20) [GCC 11.2.1 20220219]
                     platform: Linux-5.15.49-linuxkit-aarch64-with
     optional deps. installed: ['email-validator', 'typing-extensions']

Affected Components

[ ] Compatibility between releases
[ ] Data validation/parsing
[ ] Data serialization - .dict() and .json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[X] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

It's mentioned on doc that date supports string with YYYY-MM-DD format.


Run go test in CI

Issue https://github.com/rancher/rancher/issues/44474
The test script is not running in the ci script.
The changes:

Run the test script in the ci script
Move dapper image to v0.6.0 as that is the latest image (2 years old). The 1.11.2 version is 7 years old according to docker hub.

I have dropped the following changes:

The git command added allows users on linux to run dapper with DAPPER_MODE=bind which makes builds a bit faster by not requiring the repository to be copied, a bind mount can be used instead.

I'm not sure that's the proper way to fix this, need more investigation from me.

Add volumes for caching go modules. This also makes the build faster.

This caching might work differently on GHA so instead of making it work both here and later, I'll defer to when we migrate to GHA.

Run CI on arm64 in drone: Let's not add anything in drone unless necessary.

I have updated the PR by removing the following:

I have dropped the following changes:

The git command added allows users on linux to run dapper with DAPPER_MODE=bind which makes builds a bit faster by not requiring the repository to be copied, a bind mount can be used instead.
I'm not sure that's the proper way to fix this, need more investigation from me.
Add volumes for caching go modules. This also makes the build faster.
This caching might work differently on GHA so instead of making it work both here and later, I'll defer to when we migrate to GHA.
Run CI on arm64 in drone: Let's not add anything in drone unless necessary.

I have also changed the order of script called in script/ci.


ARROW-9899: [Rust] [DataFusion] Switch from Box --> SchemaRef (Arc) to be consistent with the rest of Arrow

This PR proposes using SchemaRef (which is an Arc<Schema>) instead of Box<Schema> inside Datafusion to be consistent with the rest of the arrow implementation, avoid so many copies, and make the code simpler.
A pretty good example of the simplification is:
before:
projected_schema: Box::new(csv.schema().as_ref().to_owned()),

after:
projected_schema: csv.schema().clone()),

This code is not only clearer to understand in my opinion, it is also likely faster (it is a clone of an Arc (and an increment of a refcount) rather than a clone of the actual Schema itself)

@alamb This one needs another rebase

@andygrove  -- rebased


X509_NAME_print_ex in RFC 2253 format

I parse a X509_NAME with X509_NAME_add_entry_by_NID and when I use X509_NAME_print_ex with flag = XN_RFC_2253 the resulted string is always flipped.
e.g.
1 run
C=DE, O=T-Systems, CN=Joe Doe
CN=Joe Doe, O=T-Systems, C=DE
2 run
CN=Joe Doe, O=T-Systems, C=DE
C=DE, O=T-Systems, CN=Joe Doe
and the same strings will never be equal. When I use instead X509_NAME_print_ex without the flag XN_RFC_2253 the strings are equal. My question is now should a rfc 2253 string not always be generated in the same way?

I don't understand what you are saying.  Are you saying that your code doesn't match what the one-line call to X509_NAME_print_ex does?  Perhaps you should post what you're doing.

From RFC2253:

Otherwise, the output consists of the string encodings of each
RelativeDistinguishedName in the RDNSequence (according to 2.2),
starting with the last element of the sequence and moving backwards
toward the first.