Security Vulnerability in used spring-messaging-5.3.2.jar

Type: Bug / dependency-vulnerability
groupId: io.awspring.cloud
artifactId: spring-cloud-starter-aws-messaging
version: 2.3.2 (latest as of December 2021, downgrading does not solve the problem)
Component:
"messaging", "SNS", "SQS"
Describe the bug
spring-messaging-5.3.2.jar has a severe security vulnerability.
For the Record, we tried following the security vulnerability link, but it oddly enough did not lead to a correct site with an option to report it (instead it leads to VMWare and something called Tanzu, pretty far from spring-cloud-aws Ref. https://tanzu.vmware.com/security).
Since this is a showstopper for our team making an important release with SNS & SQS features, our only option is reporting it here. We humbly apologize for any inconvenience. If there was any other option, e.g. a later release of spring-cloud-aws without this vulnerability, we would gladly take it. Please advice if there is. We have spent significant time finding one, without any success.
Running the following standard Maven command exposes the vulnerability.
mvn -DdataDirectory=~/cve-data -DcveValidForHours=24 -C -Pdep-vuln-check,static-analysis -B clean install
[ERROR] Failed to execute goal org.owasp:dependency-check-maven:6.1.6:check (default) on project one:  [ERROR]  [ERROR] One or more dependencies were identified with vulnerabilities that have a CVSS score greater than or equal to '4,0':  [ERROR]  [ERROR] spring-messaging-5.3.2.jar: CVE-2021-22096, CVE-2021-22118 [ERROR]  [ERROR] See the dependency-check report for more details.
Published Vulnerabilities
CVE-2021-22096
In Spring Framework versions 5.3.0 - 5.3.10, 5.2.0 - 5.2.17, and older unsupported versions, it is possible for a user to provide malicious input to cause the insertion of additional log entries.
NVD-CWE-Other
CVSSv2:
Base Score: MEDIUM (4.0)
Vector: /AV:N/AC:L/Au:S/C:N/I:P/A:N

CVSSv3:
Base Score: MEDIUM (4.3)
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

References:
CONFIRM - https://security.netapp.com/advisory/ntap-20211125-0005/
MISC - https://tanzu.vmware.com/security/cve-2021-22096

Vulnerable Software & Versions: (show all)
cpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:* versions from (including) 5.3.0; versions up to (including) 5.3.10
...

CVE-2021-22118
In Spring Framework, versions 5.2.x prior to 5.2.15 and versions 5.3.x prior to 5.3.7, a WebFlux application is vulnerable to a privilege escalation: by (re)creating the temporary storage directory, a locally authenticated malicious user can read or modify files that have been uploaded to the WebFlux application, or overwrite arbitrary files with multipart request data.
CWE-269 Improper Privilege Management
CVSSv2:
Base Score: MEDIUM (4.6)
Vector: /AV:L/AC:L/Au:N/C:P/I:P/A:P

CVSSv3:
Base Score: HIGH (7.8)
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References:
CONFIRM - https://security.netapp.com/advisory/ntap-20210713-0005/
MISC - https://tanzu.vmware.com/security/cve-2021-22118
MISC - https://www.oracle.com/security-alerts/cpuoct2021.html
N/A - N/A

Vulnerable Software & Versions: (show all)
cpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:* versions from (including) 5.3.0; versions up to (excluding) 5.3.7
...

Thanks @tobiassalem for reporting. Since the issue is with Spring Context module, you only need to make sure to use the latest Spring Context and not rely on Spring Cloud AWS dependency management to revolve version for it (which does not happen anyway if you use Spring Boot).
#207 bumps all the Spring related dependencies and we will close this issue in 2.3.4.


2 - WHEN I enter my project title

[x] THEN this is displayed as the title of the README

simple README generated with title from user input


perf(semantic)!: remove SymbolTable::spans field

Remove spans field from SymbolTable. It's unnecessary because you can get the Span from the AstNodeId, and these lookups only happen in the linter when generating diagnostics (i.e. cold path).
Lots of tests failing. I believe this isn't due to this PR being incorrect, but that it's surfacing existing bugs where AstNodeId for a lot of symbols is set incorrectly.
@DonIsaac Are these the same bugs you've found already? Or new ones?

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#4473  👈
#4472
#4470
#4469
#4468
#4467
#4466
#4465
#4464
#4463
#4461
#4460
#4459
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on  Graphite

I need this API for no no-unused-vars.

@DonIsaac Shouldn't the AST node that the symbol's AstNodeId points to be the identifier? In which case the 2 spans should be equivalent. Intent here was not to remove any functionality or information, just to use a more efficient means of storing/accessing that information.
You can still get the Span of a symbol via semantic.symbol_span(symbol_id) (previously semantic.symbols. get_span(symbol_id)).
I had assumed the problem here causing the test failures was that the AstNodeIds set for symbols were incorrect, and that if that was fixed, nothing would change. Have I misunderstood?

@overlookmotel I'm not sure, I just trust getting spans from AST node declarations less than symbol spans. There's some funkiness going on with getting declaration nodes for function expressions. Mind if we wait until no-unused-vars is merged first, then see how this PR affects spans it reports?

Same as https://github.com/oxc-project/oxc/pull/4464#issuecomment-2252219454

Closing due to unsure if this is going to complicate other features. And the benchmark shows no performance improvement.

Well 1-2% improvement on semantic benchmarks isn't nothing. But, yes, I agree we should close for now.
@Boshen can you answer one question though? What AST nodes are SymbolTable::declarations meant to point to? The BindingIdentifier for the binding? Or its parent? Currently it appears to be the latter, and I was assuming that's a bug that's crept in.

Ignore that question. #4739 explains the problem.


Zoom-to-element margins should not be 0

When zooming to an element, such as when clicking a search result or the outline, the view should not zoom all the way into the element with no margin. A small margin should be kept around the element.

Addressed in https://github.com/spcl/dace-webclient/pull/89


[fix] use image instead of ori_mask to get shape

Motivation
Fix https://github.com/open-mmlab/mmdetection/issues/11422
Modification
Use augmented image shape instead of first mask shape.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.altairs seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


check update in background and cache results rather than doing it in the ScriptFilter

even if it doesn't slow down the UX by much, it's still a better way to handle the updates for Alfred Kat and all the other coming Workflows.

done with new AlfredWorkflowUpdater in 7.1


Generate fast path for "new Array(val)"

As pointed in #1271,  this is second part of generating fast path for new Array(variable) case where 0 <= variable <= 8.
Internal test : In progress.
Perf: Slight wins in Octane. In the sample test (modified for variable) mentioned in #1271, this change improves by 15%.
I will update this when I get results.
I have updated the PR based on bucketization logic I mentioned below.
Here is the bucketization I came up with for x86 and x64.
old = no. of elements we used to allocation given the array length passed.
new = no. of elements we will allocate given the array length passed.
e.g. In x64, for native int array, if user called new Array(value); // value = 6, and if it native float array, we were allocation space for 7 elements. After my change we would allocate space for 9 elements.

No regression in performance of benchmarks.

FYI - @LouisLaf , @satheeshravi , @rajatd , @pleath

Server Error in '/' Application.
A potentially dangerous Request.Form value was detected from the client (ctl00$ctl00$ctl00$ctl00$cphRoot$cphSite$cphLC$cphC$txtCandidate_Notes_Web="...Maghsoudi <dralireza.maghsoudi...").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.
Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00$ctl00$ctl00$ctl00$cphRoot$cphSite$cphLC$cphC$txtCandidate_Notes_Web="...Maghsoudi <dralireza.maghsoudi...").
Source Error:
[No relevant source lines]
Source File: c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\a24ecd5a\8d0ac35\App_Web_registerdetails.aspx.2587f01f.5ikejyg9.0.cs    Line: 0
Stack Trace:
[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (ctl00$ctl00$ctl00$ctl00$cphRoot$cphSite$cphLC$cphC$txtCandidate_Notes_Web="...Maghsoudi <dralireza.maghsoudi...").]
System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName) +11188987
System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, String collectionName) +71
System.Web.HttpRequest.get_Form() +178
System.Web.HttpRequest.get_HasForm() +11189223
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +124
System.Web.UI.Page.DeterminePostBackMode() +83
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11155303
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11154842
System.Web.UI.Page.ProcessRequest() +91
System.Web.UI.Page.ProcessRequest(HttpContext context) +240
ASP.candidate_register_registerdetails_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\a24ecd5a\8d0ac35\App_Web_registerdetails.aspx.2587f01f.5ikejyg9.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
Version Information: Microsoft .NET Framework Version:2.0.50727.5485; ASP.NET Version:2.0.50727.5491

@satheeshravi , @curtisman , can you please review this?

Can we have the runtime have matching heuristics?

@curtisman , I will update the interpreter to match the same heuristics as JIT.

@curtisman , @satheeshravi , could one of you review the latest changes?

Why are the slot numbers different for x86 and x64 ? And why are the slot numbers for some cases odd number ?

@satheeshravi , if you refer the table slot numbers table (x86/x64) in PR comment, you will see the before/after slots calculation based on user input. That's the reason we have various version of slot numbers.

:shipit:

Thanks @curtisman  and @satheeshravi  for the review!


DBCP-578 - Use List Instead Of Vector

Hi @arturobernalg
Why? You need a clear explanation of why Collections.synchronizedList is better than Vector or CopyOnWriteArrayList.
Can changing this be likely to have ramification beyond what the current tests assert?
I plan on cutting a release candidate very soon so this one might have to wait for the next go around.

Hi @arturobernalg
Why? You need a clear explanation of why Collections.synchronizedList is better than Vector or CopyOnWriteArrayList.
Can changing this be likely to have ramification beyond what the current tests assert?
I plan on cutting a release candidate very soon so this one might have to wait for the next go around.

Hi @garydgregory
We won using the List interface and all the implementations. We don't lose the synchronized behavior because it create by Collections.synchronizedList.
And seems logical --> https://stackoverflow.com/a/1386288/4495592
Maybe I'm wrong.
TY

Hi @arturobernalg
Why? You need a clear explanation of why Collections.synchronizedList is better than Vector or CopyOnWriteArrayList.
Can changing this be likely to have ramification beyond what the current tests assert?
I plan on cutting a release candidate very soon so this one might have to wait for the next go around.

Hi @garydgregory
We won using the List interface and all the implementations. We don't lose the synchronized behavior because it create by Collections.synchronizedList.
And seems logical --> https://stackoverflow.com/a/1386288/4495592
Maybe I'm wrong.
TY

Yes, i understand the separation of concerns; but I wondering if it worth looking into synchronization at a higher level, maybe, maybe not. In the meantime, I'll take another look at this in more detail later today.


RigGeometry with no bones/weights

When generating an osgjs file using the disableAnimation from the gles plugin, we currently end up with a RigGeometry that has no bones and no weights i.e.

"osgAnimation.RigGeometry": {
  "SourceGeometry": {
    "osg.Geometry": {
      "UniqueID": 114,
      "PrimitiveSetList": [ {
        "DrawElementsUByte": {
          "UniqueID": 119,
          "Indices": {
            "Array": {
              "Uint8Array": {
                "File": "model_file.bin.gz",
                "Size": 142,
                "Offset": 0
              }
            },
            "ItemSize": 1,
            "Type": "ELEMENT_ARRAY_BUFFER"
          },
          "Mode": "TRIANGLE_STRIP"
        }
      } ],
      "VertexAttributeList": {
        "Normal": {
          "UniqueID": 116,
          "Array": {
            "Float32Array": {
              "File": "model_file.bin.gz",
              "Size": 96,
              "Offset": 144
            }
          },
          "ItemSize": 3,
          "Type": "ARRAY_BUFFER"
        },
        "Tangent": {
          "UniqueID": 118,
          "Array": {
            "Float32Array": {
              "File": "model_file.bin.gz",
              "Size": 96,
              "Offset": 1296
            }
          },
          "ItemSize": 4,
          "Type": "ARRAY_BUFFER"
        },
        "TexCoord0": {
          "UniqueID": 117,
          "Array": {
            "Float32Array": {
              "File": "model_file.bin.gz",
              "Size": 96,
              "Offset": 2832
            }
          },
          "ItemSize": 2,
          "Type": "ARRAY_BUFFER"
        },
        "Vertex": {
          "UniqueID": 115,
          "Array": {
            "Float32Array": {
              "File": "model_file.bin.gz",
              "Size": 96,
              "Offset": 3600
            }
          },
          "ItemSize": 3,
          "Type": "ARRAY_BUFFER"
        }
      },
      },
      "osg.ComputeBoundingBoxCallback": {
        "UniqueID": 120
      }
    }
  }
}

When using this, I then have promises issues that make me suspect that osgjs is not resilient to missing bones/weights on a RigGeometry.

https://github.com/cedricpinson/osgjs/blob/feature/animation/sources/osgWrappers/serializers/osgAnimation.js#L372
^ It's the lack of boneMap that triggers the warning.
That being said, I don't know if we would be resilient without bones and weights.
@cedricpinson Is that something we should do/test ?

We should add a warning and not fail

Are you sure ? should we accept the promise?


Fix PoliChek hit: Scotch

Summary
The term "Scotch" may be used if not referring to people. However, the correct name of the breed is apparently "Scottish terrier."
Fixes #Issue_Number (if available) https://dev.azure.com/msft-skilling/Content/_workitems/edit/14595

#sign-off

Closing as duplicate of #31944


Add RadioGroup/Any example

Inspired by #117
With polymorphic variants together, Any makes a lot of sense. Leans itself very well to using it with RadioButtons.

Doesn't build.

Will fix it when #166 got merged.


Update sample and readme

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 94.991%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1472

Relevant Lines:
1517

💛  - Coveralls


Implement QuestObjective expire duration

See:
sealed class QuestObjective
@JvmOverloads
constructor(

        /**
         * Text that tells the player how to achieve this objective.
         */
        val description: String,

        /**
         * How much time is given to complete this objective.
         * Default: 0 - unlimited.
         */
        val expireDuration: Duration = Duration.ZERO)

Completed by https://github.com/AlmasB/FXGL/commit/a9c8e040f2eed1abad69649dd2cd0f16322cde72


gnu-chess 6.2.3

version bump
audit fix (https)

Merged. Thank you for your contribution to Homebrew!


Remove bottom form margin when inside a modal

I think a common use of modals will involve a form inside the modal, and buttons for the form in the footer. With the default CSS, the form will have a margin-bottom, and that doesn't look great in the modal.
I made this change:
.modal form {
margin-bottom: 0px;
}
Example HTML where I use this:

×
Send us feedback

We love feedback! If you have suggestions, bugs, or
	   questions, just tell us here.

Send

Feedback
It's a small thing so perhaps not worth adding global change. Your call.

Fixed in dev branch for now by undoing bottom margin for forms in modals. Will revisit in 2.0.

When will version 2.0 launch?

There is an additional complication when using with (at least) form-stacked, which adds a left-padding as well.

@effectjam it has no date set, so far.


Can you update the library?

Please?
I get this error when adding library via npm:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/react
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@psyycker/react-translation
npm ERR!   @psyycker/react-translation@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Hi, I updated the dependencies and peerdeps.
I released everything under version 0.5.1. Hope that'll help.
Closing for now

Big thank you! Works like a charm


Show durations in seconds and minutes.

Show durations in seconds and minutes.
This adds a way to convert the relative progress sliders to showing actual seconds and minutes.
For now I have left the individual progress slider to only show seconds, while the overall slider shows it in minutes and seconds.

I have also added an "fps" label to the current fps for clarity.

Had to revert it, I've opened the wrong patch. There should be only one connection from the runtime to the UI. All information must be passed by the BenchmarkControls class to the UI. If you want to pass the time information, you need to prepare it in the runtime and pass it via this class to the UI, two new links will make using the 3 nodes much more complicated.


First shown channel shows all users inactive

When I load convos some channel is already active (say #mojo for example). After a few seconds all user names strike out and all text becomes grayed so as to show all users are inactive (though clearly this isn't true). When I switch channels all the others behave correctly but when I go back to that first channel (#mojo again) the users/text are still shown as inactive.
I can mitigate by clicking a channel I rarely use and reloading. This doesn't fix the problem but isolates it someplace I don't usually check.

I was hoping that /names would help kick it into action but instead was told I was the only participant. I'm including a screenshot from immediately after calling /names.

I don't know how to reproduce. Can you give me some output from either the console or when running with MOJO_IRC_DEBUG=1 and CONVOS_DEBUG=1 ?

I've also seen this issue or something similar, when I join a new channel on #freenode from beta.convos.by, at first it updates the user list to show all the members, but then after a few seconds the list clears and it shows 0 participants. Just tested this by joining #linux - You can see that new users are tracked as they join tho:

Pretty sure this is fixed now. Going to test it before making a new release.
Thanks for reporting in ❤

Ooooh thanks! I'm going to upgrade right away!


1.add pull the menu;

1.add pull the menu.That's what I was talking about before with the drop-down menu, or if you have a better name, use the example:
lv_obj_t *pull_win = NULL;
...
        /* create main window*/
        lv_obj_t *main_win = lv_obj_create(lv_disp_get_scr_act(NULL), NULL);
	lv_obj_set_style(main_win , &lv_style_pretty_color);
	lv_obj_set_size(main_win, 416, 416);
        lv_obj_set_event_cb(main_win, event_cb);

        /* create drop-down menu*/
	static lv_style_t pullStyle;
	lv_style_copy(&pullStyle, &lv_style_plain);
	pullStyle.body.main_color = LV_COLOR_BLUE;
	pullStyle.body.grad_color = LV_COLOR_BLUE;
	pullStyle.body.opa = 50;
	pull_win = lv_pull_win_create(lv_disp_get_scr_act(NULL), NULL);
	lv_pull_win_set_size(pull_win , 416, 416);
	lv_obj_set_drag_dir(pull_win , LV_DRAG_DIR_VER);
	lv_pull_win_set_style(pull_win , LV_PULL_WIN_STYLE_BG, &pullStyle);

         /* Add a button to the drop-down menu*/
	lv_obj_t * pullLabel;
	lv_obj_t * pullBtn = lv_btn_create(lv_pull_win_get_obj(pull_win), NULL);
	lv_obj_align(pullBtn, NULL, LV_ALIGN_CENTER, 0, -40);
	pullLabel = lv_label_create(pullBtn, NULL);
	lv_label_set_text(pullLabel, "Button");
         /* hide the drop-down menu*/
	lv_pull_win_set_show(pull_win , false, false);
...

static void event_cb(lv_obj_t * obj, lv_event_t event)
{
	lv_point_t curPoint;
	lv_indev_t * pIndev = lv_indev_get_act();
	if (pIndev == NULL)
		return;

	lv_indev_get_point(pIndev, &curPoint);
	switch (event){
	case LV_EVENT_PRESSED:
		if (curPoint.y < 20){
                        /* If y is less than 20, move the drop-down menu to the foreground */
			lv_obj_move_foreground(pull_win);
		}
		break;
	}
}

Thank you!
I've tried it and it worked well for me.
However, the tile part wasn't clear to me. Can you show an example about how to use them?

@kisvegabor This doesn't have anything to do with tile, it's just that this object I rewrote from the tile object, there might be some inappropriate function and variable names, sorry.Of course, you can also use it in tile, using examples:
        lv_obj_t *pull_win = NULL;
        lv_obj_t *objTileview = NULL;
...
        lv_coord_t hres = 416;
	lv_coord_t vres = 416;

	static const lv_point_t vp[] = {
			{ 0, 0 },//page0
			{ 1, 0 },//page1
			{ 2, 0 },//page2
	};

	objTileview = lv_tileview_create(lv_disp_get_scr_act(NULL), NULL);
	lv_tileview_set_valid_positions(objTileview, vp, 3);
	lv_tileview_set_edge_flash(objTileview, true);
	lv_obj_set_size(objTileview, hres, vres);
	lv_page_set_sb_mode(objTileview, LV_SB_MODE_OFF);
	lv_obj_set_event_cb(objTileview, tileview_event_cb);

	/*第0页容器 +表盘背景*/
	lv_obj_t *objPage0 = lv_obj_create(objTileview, NULL);
	lv_obj_set_click(objPage0, true);
	lv_obj_set_style(objPage0, &lv_style_pretty_color);
	lv_obj_set_size(objPage0, lv_obj_get_width(objTileview), lv_obj_get_height(objTileview));
	lv_tileview_add_element(objTileview, objPage0);
	lv_obj_set_drag_parent(objPage0, true);//使能与父窗口相同的拖拽响应
	lv_obj_set_parent_event(objPage0, true);//将事件发送给父类

	lv_obj_t *objPage1 = lv_obj_create(objTileview, objPage0);
	lv_obj_align(objPage1, objPage0, LV_ALIGN_OUT_RIGHT_MID, 0, 0);
	lv_tileview_add_element(objTileview, objPage1);

	lv_obj_t *objPage2 = lv_obj_create(objTileview, objPage0);
	lv_obj_align(objPage2, objPage1, LV_ALIGN_OUT_RIGHT_MID, 0, 0);
	lv_tileview_add_element( objPage2);

        /* create drop-down menu*/
	static lv_style_t pullStyle;
	lv_style_copy(&pullStyle, &lv_style_plain);
	pullStyle.body.main_color = LV_COLOR_BLUE;
	pullStyle.body.grad_color = LV_COLOR_BLUE;
	pullStyle.body.opa = 50;
	pull_win = lv_pull_win_create(lv_disp_get_scr_act(NULL), NULL);
	lv_pull_win_set_size(pull_win , hres , vres );
	lv_obj_set_drag_dir(pull_win , LV_DRAG_DIR_VER);
	lv_pull_win_set_style(pull_win , LV_PULL_WIN_STYLE_BG, &pullStyle);

         /* Add a button to the drop-down menu*/
	lv_obj_t * pullLabel;
	lv_obj_t * pullBtn = lv_btn_create(lv_pull_win_get_obj(pull_win), NULL);
	lv_obj_align(pullBtn, NULL, LV_ALIGN_CENTER, 0, -40);
	pullLabel = lv_label_create(pullBtn, NULL);
	lv_label_set_text(pullLabel, "Button");
         /* hide the drop-down menu*/
	lv_pull_win_set_show(pull_win , false, false);

        lv_tileview_set_tile_act(objTileview, 0, 0, true);
...

static void tileview_event_cb(lv_obj_t * obj, lv_event_t event)
{
	lv_point_t curPoint;
	lv_indev_t * pIndev = lv_indev_get_act();

	if (pIndev == NULL)
		return;

	lv_indev_get_point(pIndev, &curPoint);
	printf("pressed:%d %d event:%d\n", curPoint.x, curPoint.y, event);

	lv_coord_t xCurPage = 0;;
	lv_coord_t yCurPage = 0;;

	lv_tileview_get_tile_act(objTileview, &xCurPage, &yCurPage);

	switch (event)
	{
	case LV_EVENT_PRESSED:
		if ((curPoint.y < 20) && (xCurPage == 0))
		{
			lv_obj_move_foreground(pull_win);
		}
		break;
	}
}

@LanFengXiMenChuiXue
I meant what is the purpose of these fields?
Or they rae not required?

these fields?
	lv_point_t act_id;
 	uint8_t drag_top_en : 1;
 	uint8_t drag_bottom_en : 1;
 	uint8_t drag_left_en : 1;
 	uint8_t drag_right_en : 1;
 	uint8_t drag_hor : 1;
 	uint8_t drag_ver : 1;

They are required. In my example above, I only showed the drop-down menu, but in practice the menu can also be pulled out to the left or right or down.

Is it intended to work like the android?
I've copied the sample and got it to drop when click-hold it.
On Fri, Dec 6, 2019, 12:56 zlm<EMAIL_ADDRESS>wrote:

these fields?
lv_point_t act_id;
uint8_t drag_top_en : 1;
uint8_t drag_bottom_en : 1;
uint8_t drag_left_en : 1;
uint8_t drag_right_en : 1;
uint8_t drag_hor : 1;
uint8_t drag_ver : 1;
They are required. In my example above, I only showed the drop-down menu,
but in practice the menu can also be pulled out to the left or right or
down.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/littlevgl/lvgl/pull/1301?email_source=notifications&email_token=ABYLTJGZASZZJGNBHCFYUOTQXJRY7A5CNFSM4JVWGRVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGEKHZY#issuecomment-562602983,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYLTJA264WDULTQFMRID4TQXJRY7ANCNFSM4JVWGRVA
.

Hi,
Sorry for the late answer.
I was thinking about the widget and it seems to me it's a little bit complex and specific. With the gesture feature, the user can simply create something similar but fully customized.

Yes, now I also feel it is redundant,you can close this request.

Alright, I closed it.
Thank you anyway :slightly_smiling_face:


System.print does not use overridden toString

class OverrideToString {
    construct new(text){
        _text = text
    }

    toString(){
        return _text
    }
}

var o = OverrideToString.new("test")

System.print(o) //prints 'instance of OverrideToString' (not expected) Verified via debugger that this is calling the native object_toString rather than the overridden toString

System.print(o.toString()) //prints 'test' (as expected)

Hi,
The method that you are trying to override is toString not toString(). toStringconversion is a getter in wren not a regular method. The mix of getter/setter syntax and regular methods definitions can be quite confusing for beginners, so be carreful.

This should really be in the String module doc.. and probably the Classes doc since its the first thing one would normally override.  (this would be a good example for overriding a getter method).

Documentation is present in Object, maybe it should be augmented with an example.

Thanks for the report @Stephenmccaul we can definitely improve the docs there.


fetchgitPrivate: Ambiguous language and unsafe recommendations

https://github.com/NixOS/nixpkgs/blob/cef1abbd884dd7ad72c2a1375d34528015825ae9/pkgs/build-support/fetchgit/private.nix#L15
Can someone write a replacement text for  and have a directory for each build user accessible to that user.  more clearly?
That whole section is a bit full of ifs and maybes too. It's not helpful documentation and it also recommends insecure practices (voiding the s in ssh).
It is also not clear whether there is any setup possible where a user's ssh agent is used such that at no point the keys have to be readable as a file by the nixbld{1,..10} users.
The documentation could simply refer to the already documented example nixbld{1..10} users via a sentence like if you setup your build users via a multi-user setup according to the <insert link here to documentation> then bla bla bla.

IMHO fetchgitPrivate should not be included in Nixpkgs because a) it requires a lot of manual setup by the user, while the whole point of Nix is automatic reproducibility; and b) it's insecure.
The fetchGit function in Nix 1.12 may be an alternative for some use cases. It executes at evaluation time, under the calling user's uid, so it has no problem fetching private repositories. However, the resulting lack of laziness may be a problem for some users.

@edolstra I looked at
static void prim_fetchGit(EvalState & state, const Pos & pos, Value * * args, Value & v)  in https://github.com/NixOS/nix/blob/0fc3e581e0585e377d4b42e343b0487606add547/src/libexpr/primops/fetchGit.cc, but that doesn't seem ready for release as there is no documentation near that function specifying what it does. Are you going to add documentation before the release?
In the mercurial source file you also are referring to git:     // FIXME: git externals probably can be used to bypass the URI, which is a mistake.
You only wrote this a day ago, but this code needs work.
I like how you acknowledge that fetchgitPrivate doesn't belong in nixpkgs, but at the same time your new fetchGit primop implementation makes my eyes bleed.

Does fetchUrl already work with git+ssh:// style URLs in nix 1.12?
Similarly, does nix 1.12 already provide all the features of 1.11.5? I know there is no release date yet, but can it be used in a meaningful way in any way or is it just broken right now?

The manual setup is annoying, but until we have a better solution, we should try to make things easier by at least documenting them properly.
The StrictHostKeyChecking=no can be avoided by adding a module like this to the system config:
{ ... }:
{
  programs.ssh.knownHosts = [
      {
        hostNames = [ "gitlab.com" ];
        publicKeyFile = ./pubkeys/gitlab.com.pub;
      }
      {
        hostNames = [ "github.com" ];
        publicKeyFile = ./pubkeys/github.com.pub;
      }
    ];
  nix.sandboxPaths = [
      "/etc/ssh/ssh_known_hosts"
    ];
}

The knownHosts part can even be included in NixOS. We are already distributing CA certificates, so we might as well package a set of commonly used public keys.

What else can be used other than this fetchgitPrivate, to allow nix to clone from a remote repository requiring authentication? The ssh-agent forwarding for the sandbox is annoying to use (sudo involved), and the use of a ssh config file also requires private putting keys into the store or accessible to nixbld.

Direct password-protected ssh keys cannot be used, becaues they require typing a password
Direct https user/pass cannot be used, because that requires typing a password
The agent, if ssh-auth-sock, means that any nix-build can use the agent. And requires root account.

Is there at least any plan to cover this use case? If we want to use nix in our company, we need nix capable of fetching with authentication. And if possible, private nix stores per user (that's close with nix 2.0 and the --store user namespace).

If we want to use nix in our company, we need nix capable of fetching with authentication. And if possible, private nix stores per user (that's close with nix 2.0 and the --store user namespace).

I would actually consider using individual permission-controlled stores, and using _noChroot to allow only some builders to access the SSH agent socket. But I haven't punched holes in the sandbox for a while, so I might be mistaken.


Use multiple GPU?

I have two RTX 3090 GPUs but when running inference.py I noticed only the first GPU was used. Do you have any suggestions on using more GPUs when available?

Hello, has this problem been solved?

@jinqiupeter  did you find ways to use gpus well?


nixos/ttyd: allow caFile=null when enableSSL=true

fixes https://github.com/NixOS/nixpkgs/issues/340414
linux updates just got merged, so it takes a while to run the test

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@ofborg test ttyd


Added options to the connection.queue method to ensure we can pass in options.collection

https://github.com/scttnlsn/monq/pull/74/commits/dfd274bdc847267f353ef8fc5be40a90600a5e3b looks great but https://github.com/scttnlsn/monq/pull/74/commits/e6fabaac19daf8e6fd2e27b27fdc48b806a78fc2 broke the tests because it's a backward incompatible change.  I agree that passing the full job is probably the right thing to do but will require a little more care since it's a breaking change.

I can pull the breaking commit from my branch. What would be a good way to make the full job available?

Two separate PRs would be great.  I'll release a patch version with your first fix and then bump the version to accommodate the breaking change.

Alternatively, passing a second options argument to register could influence what is passed to the callback.
i.e.
Current behavior:
worker.register({
    reverse: function (params, callback) {
        try {
            var reversed = params.text.split('').reverse().join('');
            callback(null, reversed);
        } catch (err) {
            callback(err);
        }
    }
});

Passing the whole job:
worker.register({
    reverse: function (job, callback) {
        try {
            var reversed = job.params.text.split('').reverse().join('');
            callback(null, reversed);
        } catch (err) {
            callback(err);
        }
    }
}, { fullJob: true });

This would remain backward compatible.  What do you think?


flutter_gallery_ios__transition_perf 90th_percentile_frame_rasterizer_time_millis noisier, likely regression

Due to noise, it's difficult to determine a regression point.
cc @liyuqian

I tested 10 times locally with 0cca3c1d62095e8d94b9d13714f586b852e0be4b, and only saw 2 runs to have 16ms 90th percentile. This 20% probability is probably closer to those before the regression. Maybe this is another infra-related regression that we can only fix after getting back to our device lab physically? CC @godofredoc

90th_percentile_frame_rasterizer_time_millis

3.05

7.925

2.942

3.692

2.886

2.506

3.026

16.468

16.188

6.93

What part of the triage can not be done remotely?
Now we do have instructions to reboot devices, collect screenshots or video.
https://g3doc.corp.google.com/company/teams/flutter/devicelab/macos_host.md#attached-ios-device

@liyuqian Did you get a chance to follow @godofredoc's comments about collecting info from the lab devices to see if this was constrained to an issue in the lab?

Not yet. I'm pushing it to my queue and hopefully I can take some video screenshots this week to analyze it.

I confirmed that the the iPhones on our devicelab is having the "Software Update" dialog which interferes with our performance tests. The following screenshot is taken from flutter-devicelab-mac-2. Someone has to physically touch the iPhone screen to make that dialog go away.

There is an automated test that can be run to dismiss the system dialogs. @digiter can you please share the link to the docs?

Please check out this doc: https://g3doc.corp.google.com/company/teams/flutter/devicelab/macos_host.md#attached-ios-device

@digiter : https://github.com/digiter/infra-dialog seems to require iOS 13 while  flutter-devicelab-mac-2 only has iOS 11 so I couldn't use it to close the dialog... Did I miss something?

Discussed offline, we can use the older Xcode on mac-2 to recreate the trivial XCUITest in https://github.com/digiter/infra-dialog.

The dialog has been closed using Tong's XCUITest. Let's see if the number will go down.

I feel that the chance of having red bars has reduced since July 10th when I closed the dialog on mac-2. Perhaps there are other iPhones in the device lab with the update dialog that are making some red bars. @digiter : what's the best way to sweep through all the iPhones and close all update dialogs?

I'm closing this bug based on #54792, because the original regression seems not to be a real regression, and we have a way to close iOS system bugs now, and the desire to have a tool for bisection is followed in #62504. Feel free to reopen if I'm missing something.


adds initial index property

This adds an optional parameter to the FluidNavBar widget that lets the user set the initially selected item once the widget is created, instead of always be 0.

Thanks for this PR. Can you add a description to explain the context of your PR please ?

This covers the use case for when the use would like the app to always start from, say the second item. Of course it would be much better if it could be refactored into a controlled widget with a property like currentIndex, where setState() would trigger the animation etc. and not internally through tap

Already fixed with #20


Question RE: best way to organize multiple entrypoints to a common WDL code base

Hello, I had what is hopefully a quick question about the best way to handle large projects with multiple WDL entry points in AGC.
If we have a bunch of workflows that are importing from common WDL task files etc, is there a best practices for defining those different workflows to AGC?
My initial approach was to have a staging directory where each workflow entrypoint WDL would be symlinked in a directory corresponding to that workflow and in that directory have inputs.json and MANIFEST.yaml files. The problem there being that it seems like AGC doesn't then follow those symlinks when doing imports for the WDL. (i.e. if my workflow WDL MyExampleWorkflow imports a task WDL file with import "example_tasks.wdl", AGC will fail due to not being able to find example_tasks.wdl in the staging directory.)
Is there a preferred way of managing this that I'm not thinking of?
Thanks in advance!

Following SIM links might be a feature request although there are some implications as AGC will traverse nested directories.
One possible work around would be to have a github repo of common WDL subworkflows and for each workflow you git clone that into a sub-directory of the workflow.


HOSTEDCP-1112: Add config to set creation frequency of RHTAP PRs

What this PR does / why we need it:
Add config to set creation frequency of RHTAP PRs
Which issue(s) this PR fixes:
Fixes HOSTEDCP-1112
Checklist

[x] Subject and description added to both, commit and PR.
[x] Relevant issues have been referenced.

/area ci-tooling

/approve
/lgtm


support PEP 539 for Python>=3.7

Signed-off-by: oleg.hoefling<EMAIL_ADDRESS>

Codecov Report

Merging #180 (4d9406a) into master (c8dc41a) will decrease coverage by 0.04%.
The diff coverage is 92.85%.

@@            Coverage Diff             @@
##           master     #180      +/-   ##
==========================================
- Coverage   91.64%   91.59%   -0.05%
==========================================
  Files          12       12
  Lines        2046     2059      +13
==========================================
+ Hits         1875     1886      +11
- Misses        171      173       +2

Impacted Files
Coverage Δ

src/exception.c
90.40% <92.85%> (-0.68%)
:arrow_down:

Continue to review full report at Codecov.

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


Error requesting method listDevices when registering an external XML-RPC Server

Describe the issue you are experiencing
When registering an external XML-RPC Server (using INIT Method)  the CCU should respond with a list Devices.
This doesn't happen, but instead in the log File it appears an error:
Error requesting method listDevices: <class 'TypeError'>:MyServer.listDevices() takes 1 positional argument but 2 were given Code: 1
An external triggerd "listDevices()" respondes with the expected behaviour.
Describe the behavior you expected
When registering an external XML-RPC Server (using INIT Method)  the CCU should respond with a list Devices.
This doesn't happen, but instead in the log File it appears an error:
Error requesting method listDevices: <class 'TypeError'>:MyServer.listDevices() takes 1 positional argument but 2 were given Code: 1
An external triggerd "listDevices()" respondes with the expected behaviour.
Steps to reproduce the issue

Start an external XML-RPC Server
Register this server using the INIT Method

...
What is the version this bug report is based on?
<IP_ADDRESS>30114
Which base platform are you running?
oci (Open Container Infrastructure)
Which HomeMatic/homematicIP radio module are you using?
RPI-RF-MOD
Anything in the logs that might be useful for us?
2023-03-30 15:54:01,898 de.eq3.cbcs.legacy.bidcos.rpc.LegacyServiceHandler DEBUG [test12_WorkerPool-0] Deployed LegacyBackendNotificationHandler for interfaceId test12
2023-03-30 15:54:01,899 de.eq3.cbcs.legacy.bidcos.rpc.LegacyServiceHandler INFO  [test12_WorkerPool-0] init finished
2023-03-30 15:54:01,899 de.eq3.cbcs.legacy.bidcos.rpc.internal.InterfaceInitializer INFO  [vert.x-worker-thread-0] Added InterfaceId: test12
2023-03-30 15:54:01,900 de.eq3.cbcs.legacy.bidcos.rpc.internal.DeviceUtil TRACE [vert.x-worker-thread-0] before listDevices
2023-03-30 15:54:01,900 de.eq3.cbcs.legacy.bidcos.rpc.internal.LegacyBackendClient TRACE [vert.x-worker-thread-0] Call test12 with listDevices
2023-03-30 15:54:01,909 de.eq3.cbcs.legacy.bidcos.rpc.LegacyServiceHandler TRACE [vert.x-worker-thread-3] RPCMethod: listDevices called
2023-03-30 15:54:01,920 de.eq3.cbcs.legacy.bidcos.rpc.internal.VirtualRemoteControl DEBUG [vert.x-worker-thread-3] isMigrationPerformedDuringRuntime(): false
2023-03-30 15:54:01,920 de.eq3.cbcs.legacy.bidcos.rpc.internal.VirtualRemoteControl TRACE [vert.x-worker-thread-3] getChannelDescriptions()
2023-03-30 15:54:01,924 io.vertx.core.impl.ContextImpl ERROR [vert.x-worker-thread-0] Unhandled exception
de.eq3.cbcs.legacy.communication.rpc.RpcRemoteException: Error requesting method listDevices: <class 'TypeError'>:MyServer.listDevices() takes 1 positional argument but 2 were given Code: 1
	at de.eq3.cbcs.legacy.communication.rpc.internal.format.xml.XmlRpcParser.parseMethodResponse(XmlRpcParser.java:155) ~[HMIPServer.jar:?]
	at de.eq3.cbcs.legacy.communication.rpc.internal.format.xml.XmlRequestResponseProcessor.parseResponse(XmlRequestResponseProcessor.java:171) ~[HMIPServer.jar:?]
	at de.eq3.cbcs.legacy.communication.rpc.internal.transport.http.HttpTransport.sendRequest(HttpTransport.java:107) ~[HMIPServer.jar:?]
	at de.eq3.cbcs.legacy.communication.rpc.internal.rpc.RpcClient.sendRequest(RpcClient.java:94) ~[HMIPServer.jar:?]
	at de.eq3.cbcs.legacy.communication.rpc.internal.rpc.RpcClient.invoke(RpcClient.java:82) ~[HMIPServer.jar:?]
	at com.sun.proxy.$Proxy41.listDevices(Unknown Source) ~[?:?]
	at de.eq3.cbcs.legacy.bidcos.rpc.internal.LegacyBackendClient.listDevices(LegacyBackendClient.java:139) ~[HMIPServer.jar:?]
	at de.eq3.cbcs.legacy.bidcos.rpc.internal.DeviceUtil.synchronizedBackendDevices(DeviceUtil.java:156) ~[HMIPServer.jar:?]
	at de.eq3.cbcs.legacy.bidcos.rpc.internal.InterfaceInitializer.handle(InterfaceInitializer.java:112) ~[HMIPServer.jar:?]
	at de.eq3.cbcs.legacy.bidcos.rpc.internal.InterfaceInitializer.handle(InterfaceInitializer.java:26) ~[HMIPServer.jar:?]
	at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:100) ~[HMIPServer.jar:?]
	at io.vertx.core.impl.WorkerContext.lambda$emit$0(WorkerContext.java:59) ~[HMIPServer.jar:?]
	at io.vertx.core.impl.WorkerContext.lambda$execute$2(WorkerContext.java:104) ~[HMIPServer.jar:?]
	at io.vertx.core.impl.TaskQueue.run(TaskQueue.java:76) ~[HMIPServer.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_352]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_352]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[HMIPServer.jar:?]
	at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_352]

Additional information
No response

Please provide the full payload of your application trying to register your XMLRPC server to the HMIPServer.

Sorry, but please no email reply to github emails. Use the web browser to edit/add comments and don't answer via email to github emails because all your things end up unformatted in the ticket.

Sorry, but perhaps you should have a look for other python related projects communicating via XMLRPC to a CCU/RaspberryMatic device like https://github.com/danielperna84/pydevccu from @danielperna84 since this can't be a general issue/bug within RaspberryMatic what you are describing here. And this here isn't a discussion fora where you seek for help in your development but only for reporting issues/bugs that need to be fixed in RaspberryMatic itself.
However, if you want I can move over this ticket/issue to the discussion section and then other ppl could help you accordingly.

Hi Jens,
thanks for your time and looking into.
I will try the suggestion using daniels approach.


Inventory Items

Add dummy inventory items with prices, pictures, and reviews

Inventory items also need a category


Dose this require everyone to have the mod or only the host?

I find out that ppl seem to having problem joining my game if i have the mode turned on with thunderstore. If i am hosting a game, barely anyone joining the game. I don't have much friends that play lethal company so i can't really test it.

Everyone needs the mod to play with it.


train error => loop

i train YaraParser with intruction in the readme file. but below Exceptions Occur. and go into a loop.
result is :
D:\nlp\Parser\YaraParser-0.2>     java -jar jar/YaraParser.jar train  -train-fil
e sample_data/train.conll  -dev sample_data/dev.conll -model /tmp/model iter:10
-punc punc_files/google_universal.puncs
train file: sample_data/train.conll
dev file: sample_data/dev.conll
cluster file:
beam width: 64
rootFirst: false
labeled: true
lower-case: false
extended features: true
extended with brown cluster features: false
updateModel: max violation
oracle: dynamic
oracle selection: latent max
training-iterations: 10
number of threads: 8
partial training starting iteration: 3
CoNLL data reading done!
size of training data (#sens): 1279
1000...
iteration 1 took 25 seconds
saving the model...Exception in thread "main" java.io.FileNotFoundException: \tm
p\model_iter1 (The system cannot find the path specified)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at Structures.InfStruct.saveModel(InfStruct.java:122)
at TransitionBasedSystem.Trainer.ArcEagerBeamTrainer.train(ArcEagerBeamT
rainer.java:91)
at Parser.YaraParser.train(YaraParser.java:116)
at Parser.YaraParser.main(YaraParser.java:30)

If there is no existing \tmp dir on your system, create it, or just change the -model location to somewhere existing where you know you have write permissions.

yes. this is right.
i change model location and parser works.
thanks


Proposal: show rule name in error message

I propose show name of rule and link to detailed explanation in error message:
Before:
Missing space before opening round brace at src/config.js :
    20 |     * @returns {*}
    21 |     */
    22 |    get(path) {
----------------^
    23 |        return _.get(this._data, path);
    24 |    }

After:
Missing space before opening round brace at src/config.js [requireSpacesInFunctionDeclaration]:
Help: open http://jscs.info/rule/requireSpacesInFunctionDeclaration to see a detailed explanation.

    20 |     * @returns {*}
    21 |     */
    22 |    get(path) {
----------------^
    23 |        return _.get(this._data, path);
    24 |    }

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27812029-proposal-show-rule-name-in-error-message?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).

Thanks for the report! We have --verbose mode for this already. We are also planning on turning this on by default in 3.0

Adding the link to the rule could be interesting though.

We are also planning on turning this on by default in 3.0

is done


Fix compile errors if c_int is not i32 on some platforms

The error type of littlefs is c_int. On most platforms this equals to i32 and the littlefs2 crate also asserts that, but there are some platforms (like AVR) where c_int is i16 and compiling will result in an error. This PR adds support for those platforms where c_int is i16.

Example build instructions for Atmega328p
Prerequisites (for debian; can be directly used in the rust docker image; workdir must be the root of the littlefs2 crate):
# install avr compiler
apt update
apt install -y gcc-avr avr-libc clang

# the nightly compiler is required
rustup toolchain install --profile minimal --component=rust-src nightly

# target configuration for the atmega328p chip. there also is a avr-unknown-gnu-atmega328 target, but manually defining a file is much more easy than using it
cat <<EOT > avr-atmega328p.json
{
  "arch": "avr",
  "atomic-cas": false,
  "cpu": "atmega328p",
  "data-layout": "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8",
  "eh-frame-header": false,
  "exe-suffix": ".elf",
  "late-link-args": {
    "gcc": [
      "-lgcc"
    ]
  },
  "linker": "avr-gcc",
  "llvm-target": "avr-unknown-unknown",
  "max-atomic-width": 8,
  "no-default-libraries": false,
  "pre-link-args": {
    "gcc": [
      "-mmcu=atmega328p"
    ]
  },
  "relocation-model": "static",
  "target-c-int-width": "16",
  "target-pointer-width": "16"
}
EOT

# apply patch described in https://github.com/trussed-dev/littlefs2/issues/30#issuecomment-1472190645
echo 'delog = { version = "0.1.6", git = "https://github.com/LechevSpace/delog.git", rev = "e83f3fd" }' >> Cargo.toml
cargo update

Compile:
cargo +nightly build -Z build-std=core --target=./avr-atmega328p.json --release

Thanks for the PR!  We’ve refactored the error type in https://github.com/trussed-dev/littlefs2/pull/67 and I think I already fixed some of the problems as part of it.  I’ll have another look at the remaining changes.

@bytedream Please review https://github.com/trussed-dev/littlefs2/pull/69 and check if it fixes your build.

@robin-nitrokey yes this fixes it, thank you


migrate-to-git

Please use the form below, leaving the prefilled data to help us. Thank you.
Page link: migrate-to-git
Document link: migrate-to-git.md
My Issue/Suggestion
can you show steps on how to do migrate-to-git?
i already got SCRUM MASTER role, there is no steps what we can do.

Hi @franksoong ,
If your app is eligible for migration, you should see the notification with the Migrate to Git button at the top of the Team Server screen in the Developer Portal. Clicking the button should be the only step for migration.
I will add the screenshot to the documentation to make it more visual. I hope this helps.
Best regards,
Maria

Hey @franksoong ,
I've added information about the notification on the Team Server screen and the button to click in this commit. I hope it makes the document more clear.
Best regards,
Maria


uploadProgress is only called when upload is done

uploadProgress in upload() is not called during upload, only after upload is complete. No way to track progress.

No one to help?

It's working. I checked.
It's called after every chunk was uploaded. Regular chunk size is 5MB.
Chunks can be smaller if you use intelligent ingestion. Then we start from 8MB, but if connection is weak we start splitting it into smaller parts.
It can be called only once if file that you're trying to upload is smaller then that.
Best way to test it is to upload video files which are much bigger.


Image does not look good in dark theme.

Image does not look good in dark theme.

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

ID: c40dd77e-2034-abc1-0dfc-df4238bce00b
Version Independent ID: e08ed609-a8f7-1c15-124f-79f958792153
Content: Building a cloud migration business case - Enterprise Cloud Adoption
Content Source: docs/cloud-adoption/business-strategy/cloud-migration-business-case.md
Service: guidance
GitHub Login: @BrianBlanchard
Microsoft Alias: pnp

Have created PR #1328 to remove any background transparencies that affect readability for images within the /cloud-adoption folder.


cherry-pick(333) : Fixes device detection for KVM-based virtualization

cherry-pick #333 for fixing disk identification issues on KVM host.
Signed-off-by: Aurelien Guillaume<EMAIL_ADDRESS>

Codecov Report

Merging #334 into v0.4.x will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           v0.4.x     #334      +/-   ##
==========================================
+ Coverage   52.31%   52.33%   +0.01%
==========================================
  Files          50       50
  Lines        2397     2398       +1
==========================================
+ Hits         1254     1255       +1
  Misses       1042     1042
  Partials      101      101

Impacted Files
Coverage Δ

pkg/udev/common.go
92.06% <100%> (+0.12%)
:arrow_up:

Continue to review full report at Codecov.

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


428 Show New Version Numbers in Publish Dataset Modal

What this PR does / why we need it:
For Drafts of previously released versions, the Modal will show the new version numbers for Minor and Major Version updates
Which issue(s) this PR closes:

Closes #428

Special notes for your reviewer:
Suggestions on how to test this:
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Is there a release notes update needed for this change?:
Additional documentation:

coverage: 98.403% (+0.7%) from 97.693%
when pulling d7c99cbba13ea92a8fdf20b23c040e3f4864a561 on feat/428-publish-version-numbers
into 69ce4d9f1458590e72bf1796c4a8ff93592511af on develop.

@g-saracca I made the requested changes, thanks!  FileJSDataverseRepository.spec.ts is failing in Github, but I can't reproduce it locally, can you try it in your local environment?

@g-saracca I made the requested changes, thanks! FileJSDataverseRepository.spec.ts is failing in Github, but I can't reproduce it locally, can you try it in your local environment?

Hi @ekraffmiller , yes, that happen to me too. Try applying this change 👇
https://github.com/IQSS/dataverse-frontend/pull/477/files#diff-3f62e885350a48939f240b9daf40f6b06d41da7751f2b613238fc7669ac0a1b2

@g-saracca I made the requested changes, thanks! FileJSDataverseRepository.spec.ts is failing in Github, but I can't reproduce it locally, can you try it in your local environment?

Hi @ekraffmiller , yes, that happen to me too. Try applying this change in the cypress config👇 https://github.com/IQSS/dataverse-frontend/pull/477/files#diff-3f62e885350a48939f240b9daf40f6b06d41da7751f2b613238fc7669ac0a1b2

That worked, thanks!  I just realized I missed some requested changes, will do that now 👍

thanks @g-saracca, requested changes made 👍

Thanks @ekraffmiller , approving! Will be nice to add in the How To test this, a note that update current version is enabled now.

Thanks! I added testing instructions.

I added an issue for the error that occurred in the UploadDatasetFiles unit test: https://github.com/IQSS/dataverse-frontend/issues/481


The best config of vertical  databases

What is the best config of vertical databases？
more than 400 tables,  only vertical databases,  about ten main databases,  each main database has two slave databases。
Looking forward to your reply， thanks！

Hi, @fantacy2001 , what's your meaning in detail of vertical databases?

Hi, @fantacy2001 , what's your meaning in detail of vertical databases?

Do I just need to add configuration？like this:
master,master_slave0,master_slave1,authority,authority_slave0,authority_slave1
master
spring.shardingsphere.sharding.tables.auto_device.actual-data-nodes=master.auto_device
spring.shardingsphere.sharding.tables.band_info.actual-data-nodes=master.band_info
authority
spring.shardingsphere.sharding.tables.au_data_rule.actual-data-nodes=authority.au_data_rule
spring.shardingsphere.sharding.tables.au_module.actual-data-nodes=authority.au_module
if i have too many tables in this config（about Four hundred）,  Does it affect performance？
thank you！

+1

You means all databases have the same structures.
And wanna config them in a simple style?

You means all databases have the same structures.
And wanna config them in a simple style?

i mean 400 tables Split into different databases by business, each database has different tables.  like this config ,is ok ?
spring.shardingsphere.datasource.names=master,master_slave0,master_slave1,authority,authority_slave0,authority_slave1
master库配置:
spring.shardingsphere.sharding.tables.auto_device.actual-data-nodes=master.auto_device
spring.shardingsphere.sharding.tables.band_info.actual-data-nodes=master.band_info
authority库配置:
spring.shardingsphere.sharding.tables.au_data_rule.actual-data-nodes=authority.au_data_rule
spring.shardingsphere.sharding.tables.au_module.actual-data-nodes=authority.au_module

If you means many different tables in ten db, and how about performance.
I suggest you can clone the latest master code and build it:

mvn clean install -Prelease

And try the distribution to see how long will all metadata loaded, these info will show in console logs.

If you means many different tables in ten db, and how about performance.
I suggest you can clone the latest master code and build it:

mvn clean install -Prelease

And try the distribution to see how long will all metadata loaded, these info will show in console logs.
sorry, I may not have expressed it clearly.  My question has two points：
1、Vertical sharding databases by business， Is it feasible to follow the configuration I mentioned above？
2、use sharding-jdbc，If there are many tables split into different databases ,  will there be performance problems when routing?

You can make an investigation for your own cases as a POC.

May I close this issue?

May I close this issue?

please close it ，thank you !


Error adding remote ppoi message to database

Suntzu reported seeing this error yesterday:
Error adding remote ppoi message to database ... no such table: remote_ppoi_messages.
Also his Grafana dashboard shows "No data" for data coming from the HTTP Server. This likely means that local attestations are also not being stored. This happens both when leaving theSQLITE_FILE_PATH config variable empty, and by setting it to something like db.sqlite3.

Fix attempt 1 - I recommended that Suntzu use volumes - https://discord.com/channels/438038660412342282/1087503343410225152/1248544337139208256

resolved by adding volumes ✅


Error with Window container : Unknown instruction: EXPAND-ARCHIVE

React.js Single-page App in a Container
I followed the script with the following specifications:

Visual Studio 2022

"ASP.NET Core with React.js" Template used

Framework: ".NET 6.0 "

Add docker support with window container.

Follow the guide of set up window container

=> error : unknown instruction: EXPAND-ARCHIVE
error CTC1014: Error response from daemon: dockerfile parse error line 8: unknown instruction: EXPAND-ARCHIVE
=> if i remove the : "# escape=`"
new error happen =>
error CTC1014: The command 'pwsh -Command $ErrorActionPreference = 'Stop';$ProgressPreference='silentlyContinue'; Invoke-WebRequest -OutFile nodejs.zip -UseBasicParsing "https://nodejs.org/dist/v$($env:NODE_VERSION)/node-v$($env:NODE_VERSION)-win-x64.zip";     Expand-Archive nodejs.zip -DestinationPath C:;     Rename-Item "C:\node-v$($env:NODE_VERSION)-win-x64" c:\nodejs' returned a non-zero code:<PHONE_NUMBER>: failed to shutdown container: container 77b919fbccd2d26a9c616ca31cc04979d581e2cebb71e41fd25207efd59ae5d7 encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110): subsequent terminate failed container 77b919fbccd2d26a9c616ca31cc04979d581e2cebb71e41fd25207efd59ae5d7 encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110)

@ThanhCuD -- thank you for your feedback.  Please consider these resources:

Visual Studio on Microsoft Q&A
Visual Studio MSDN Forum
Stack Overflow
Reddit

@ghogen -- please look into this potential documentation or setup issue.

@ThanhCuD
The error means that the PowerShell command Expand-Archive is being interpreted as a Docker command. This is a multiline RUN statement and it's broken up into three lines using blackslash to escape the newline. Would you try merging those PowerShell commands onto the same line and try again? This was only broken into separate lines for ease of readability.
RUN Invoke-WebRequest -OutFile nodejs.zip -UseBasicParsing "https://nodejs.org/dist/v$($env:NODE_VERSION)/node-v$($env:NODE_VERSION)-win-x64.zip";  Expand-Archive nodejs.zip -DestinationPath C:;  Rename-Item "C:\node-v$($env:NODE_VERSION)-win-x64" c:\nodejs

I tried. But look like the same issue with a addition warning.

@ThanhCuD
There will be an update to this article coming soon. The error in your comment of May 17 looks like a transient issue to me. I was not able to reproduce it. I did have to modify the Dockerfile and launchSettings.json in the new version.


[definite-init] Treat destroys of mark_uninitialized [var] container …

…to be a load + destroy.
This ensures that DI creates dealloc_box in cases where the box is uninitialized
conditionally.
In the process, I also discovered that we were missing a test case for DI being
used by LLDB. Long term we shouldn't support that code pattern in the general
case, but for now we at least need a test case for it.
rdar://40332620
(cherry picked from commit<PHONE_NUMBER>014704277704a7fadb97b1e9426719)

@swift-ci test


Fix typo in webpack config

Scope
s/build.js/bundle.js/
Alternative would be to remove those comments, but since I think the idea in the boilerplate is to be more  verbose than normal, I think just fixing the typo should do it :)

I'm no longer merging anything into the master branch - take a look at the v3.0.0 branch instead!
Still, thanks so much for taking the time to submit a PR, appreciate it!

Ah, that makes sense :)


find_taclib: what if ocamlfind not found?

Trying to load native tactics on a system where OCaml is not installed currently yields the following error message:
Unexpected error; please file a bug report, ideally with a minimized version of the source program that triggered the error.
Unix.Unix_error(20, "create_process", "ocamlfind")

This pull request properly handles that case (there was already a default case for ocamlfind not finding fstar-tactics-lib, but it didn't support ocamlfind itself not being found)

thanks! looks good to me.

thanks! looks good to me.


Upgrade guides to Micronaut 2.5.7

Woooooooooow!!! Finally all the tests passed after 6-7 runs... Now I'm afraid of merging this because I don't want to break master... :grin:


Small optimization for invisible wires.

hm this still uses the wire "beam" library. We should probably stop doing that.

It's not that bad, but the string concatenation is what kills it. Would be better if tables were used.

I'm solving that right now.


Drag-Drop improvements

Is your feature request related to a problem? Please describe.
A couple issues I've come across with drag-drop (in-app, not to/from external process):
1 - IMO, the drag-drop events really need to sit in one of the base classes to all controls like it is in WPF/UWP (in UIElement). There are some cases where being able to do some logic before or after one of the drag events is raised is super helpful (thus needing a protected virtual method) as you can't rely on AddHandler() to do, particularly in the latter case.
2 - If a control that acts as a drag source contains a ToolTip, the ToolTip needs to be hidden as part of drag drop activating, which follows WPF. Otherwise, the ToolTip will hide, but the drag/drop icon flickers as the pointer moves.
3 - DragLeave event should have DragEventArgs instead of just RoutedEventArgs - so pointer information can be retrieved
4 - One of the things I also was trying to implement, similar to UWP dragging, is a popup with a preview of the item being dragged - except it seems the popup doesn't respond to the changes in position during drag drop. popup.Host.ConfigurePosition() is called but the popup remains in one place. It also seems that all of the InputManager methods (process, preprocess, postprocess) don't do anything during drag drop and return (-1,-1) only once upon querying RawPointerEventArgs.Position, which makes this task impossible to achieve in any way that I can see. I've tested with WPF and this is possible
5 Current implementation preprocess events in global static IInputManager to simulate dnd
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

It might help to emphasize these issues come from real-world use cases -- my guess when implementing/testing the TabView port.

I agree with most of the points, though the input manager is kinda useful in a couple of niche situations:

Pointer events are not raised in some situations e.g. on disabled controls
I don't think we have any other API for getting non-client click events
Debugging raw events: for example recently I had a situation on an embedded device where the device would stop responding to input (and it's hard to debug there). Adding an InputManager handler to print to console was very useful to determine that yes, actually  events are being received at a low level

For the first 2 points we could add additional higher-level APIs to handle these situation, but I think we should keep an API for handling raw events if only for debugging. I'd be fine with changing the API if there are problems with the current one.

For #4, my use case is: the user has to be able to drag and drop something, and once they start dragging it, a visual copy of the element follows the user's cursor around until they drop it (see tab dragging in Firefox for an example). Generating the visual copy is easy enough, but when attempting to move it to follow the user's cursor, I too ran into the issue where subscribing to the raw events didn't work:
IInputManager inputManager = AvaloniaLocator.Current.GetService<IInputManager>()!;
inputManager.PostProcess.OfType<RawPointerEventArgs>().Subscribe(OnPointerMovedRaw);

OnPointerMovedRaw will get called only once after dragging starts, and the position in it is -1,-1.
On Windows, I believe this thread about the same problem in WPF highlights the challenge:

Digging deeper (through the ole2.dll source code), I discovered that a separate, invisible window gets created during the drag which eats up all the normal messages and instead interfaces with the drop targets directly (which is probably why the normal WPF mouse events don't fire in the first place).

I successfully used the workaround as highlighted here, again for WPF:

I tried your demo, and found that if you set AllowDrop="True" on the window, the DragOver event works.

Setting AllowDrop="true" on the window does give you DragOver events as you would hope for. Of course, this makes it so that DragEnter and DragLeave are essentially meaningless (although you still do need to handle setting the DragEffects to DragDropEffects.None to show the user that they can't drop it anywhere in the window).
Then you would determine manually if the pointer is over your actual drop targets like this:
var isLeftBoxHit = _leftBox.Bounds.Contains(e.GetPosition(_panel));
if (isLeftBoxHit)
{
    Debug.WriteLine("Hit left");
}

Definitely hacky, but it does work.

I'm now using the approach referenced here, and with a full implementation here.
The hooked mouse events are sent back into the IInputManager so that subscribing to the IInputManager like AvaloniaLocator.Current.GetService<IInputManager>()!.PreProcess.OfType<RawPointerEventArgs>().Subscribe(OnPointerMovedRaw) will still receive mouse movement events as expected during a drag:
private async void DoDrag(object? sender, PointerPressedEventArgs e)
{
    var inputManager = AvaloniaLocator.Current.GetService<IInputManager>()!;
    var mouse = new MouseDevice();
    using var hookId = NativeMethods.HookMouseMove(pixelPoint =>
    {
        var timestamp = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds();
        var point = this.PointToClient(pixelPoint);
        var eventArgs = new RawPointerEventArgs(mouse, (ulong)timestamp, this, RawPointerEventType.Move, point,
            RawInputModifiers.None);
        inputManager.ProcessInput(eventArgs);
    });

    var dragData = new DataObject();
    var result = await DragDrop.DoDragDrop(e, dragData, DragDropEffects.Link);
}

internal static class NativeMethods
{
    private delegate IntPtr LowLevelMouseProc(int nCode, IntPtr wParam, IntPtr lParam);

    private const int WH_MOUSE_LL = 14;

    private static IntPtr _hookID = IntPtr.Zero;
    private static Action<PixelPoint> _mouseMoveHandler;

    // wee need to keep the variable to prevent the GarbageCollector to remove the HookCallback
    // https://social.msdn.microsoft.com/Forums/vstudio/en-US/68fdc3dc-8d77-48c4-875c-5312baa56aee/how-to-fix-callbackoncollecteddelegate-exception?forum=netfxbcl
    private static LowLevelMouseProc _proc = HookCallback;

    internal static IDisposable HookMouseMove(Action<PixelPoint> mouseMoveHandler)
    {
        _mouseMoveHandler = mouseMoveHandler;

        using var process = Process.GetCurrentProcess();
        using var module = process.MainModule;
        var hhk = SetWindowsHookEx(WH_MOUSE_LL, _proc, GetModuleHandle(module.ModuleName), 0);
        return new HookedMouseMoveContext(hhk);
    }

    internal static void RemoveHook(IntPtr hookId)
    {
        UnhookWindowsHookEx(hookId);
    }

    private static IntPtr HookCallback(int nCode, IntPtr wParam, IntPtr lParam)
    {
        if (nCode >= 0 && MouseMessages.WM_MOUSEMOVE == (MouseMessages)wParam)
        {
            var hookStruct = Marshal.PtrToStructure<MSLLHOOKSTRUCT>(lParam);
            var point = new PixelPoint(hookStruct.pt.x, hookStruct.pt.y);
            _mouseMoveHandler(point);
        }
        return CallNextHookEx(_hookID, nCode, wParam, lParam);
    }

    private enum MouseMessages
    {
        WM_LBUTTONDOWN = 0x0201,
        WM_LBUTTONUP = 0x0202,
        WM_MOUSEMOVE = 0x0200,
        WM_MOUSEWHEEL = 0x020A,
        WM_RBUTTONDOWN = 0x0204,
        WM_RBUTTONUP = 0x0205
    }

    [StructLayout(LayoutKind.Sequential)]
    private struct POINT
    {
        public int x;
        public int y;
    }

    [StructLayout(LayoutKind.Sequential)]
    private struct MSLLHOOKSTRUCT
    {
        public POINT pt;
        public uint mouseData;
        public uint flags;
        public uint time;
        public IntPtr dwExtraInfo;
    }

    [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
    private static extern IntPtr SetWindowsHookEx(int idHook, LowLevelMouseProc lpfn, IntPtr hMod, uint dwThreadId);

    [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
    [return: MarshalAs(UnmanagedType.Bool)]
    private static extern bool UnhookWindowsHookEx(IntPtr hhk);

    [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
    private static extern IntPtr CallNextHookEx(IntPtr hhk, int nCode, IntPtr wParam, IntPtr lParam);

    [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
    private static extern IntPtr GetModuleHandle(string lpModuleName);
}

internal class HookedMouseMoveContext : IDisposable
{
    private readonly IntPtr _hhk;

    public HookedMouseMoveContext(IntPtr hhk)
    {
        _hhk = hhk;
    }

    public void Dispose()
    {
        NativeMethods.RemoveHook(_hhk);
    }
}

Is there any appetite to put this into Avalonia?

I've done some more investigating into this, particularly (4). The InputManager returning (-1,-1) is only occuring because the wrong RawEvent is being queried. If you use RawDragEvent instead of RawPointerEventArgs you can still get input messages during drag drop. The (-1,-1) is from a random WM_MOUSELEAVE event that occurs shortly after starting DragDrop However, this will only work while dragging inside the HWND. In WPF you can get this to work by handling the GiveFeedback event, originating from IOleDropSource.OleGiveFeedback but to get the mouse position outside the window you need GetCursorPos() which obviously doesn't work for touch/pen. Though I have no idea if the other platforms have something similar to OleGiveFeedback/is a way to mock it for parity. So (4) may not be entirely possible in a cross-platform, modern framework like Avalonia. Not to mention, I still cannot figure out why the popup refuses to move when in drag-drop (even if force-repositioned after RawDragEvent)
UWP does have CoreDragOperation.SetDragUIContentFromSoftwareBitmap, so there might be an option to pass in a bitmap to be set as the mouse cursor that gives the drag preview. Still requires the GiveFeedback event, has the downside of removing the default drag feedback cursors, and probably isn't cross-platform.
Also an aside, RawDragEvent probably should be renamed to RawDragEventArgs to be consistent with the other raw event args.

I think Avalonia needs a way to allow/not allow drag and drop from code. This would be better explained in a scenario:
You're trying to implement drag and drop, then there's a target to drop files, but it only accepts certain file formats, for example just PNGs, we need a way to handle this properly.

@amwx

2 - If a control that acts as a drag source contains a ToolTip, the ToolTip needs to be hidden as part of drag drop activating, which follows WPF. Otherwise, the ToolTip will hide, but the drag/drop icon flickers as the pointer moves.

Thank you!! I was about to give up but this clued me in to fixing my dnd!! Spent the last 2 ENTIRE days racking my brain because my dnd broke dragging into external applications. But only for 1 type of control and its because of a freakin' tooltip I added! (its only conditionally visible but was still directly attached to a parent of the drag source)
This situation does more than just make the cursor flicker (only testing on Win11 right now) it'll invalidate the whole operation. So to fix I moved the tooltip into a style so its only attached if not dragging. Thank you man


Allow for registering global mutation convention exceptions mapped to a single error type

Product
Hot Chocolate
Is your feature request related to a problem?
Handling common exceptions requires you to apply attributes to many mutations, even if you don't require more specific error properties.
The solution you'd like
What if you could register one or more exceptions that map to the same "generic" error type?
For example:
.AddMutationConventions(options =>
{
    options.ErrorInterface<IError>();

    // These both implement `IError`.
    options.GlobalExceptions
        .Register<DomainException>();
        .Register<NotFoundException>();
}

When an exception occurs, it will be handled by Error attributes on the mutation first. If there is no matching error attribute, and the exception implements IError, then a generic error type will be returned based on the error interface.
In this way, you're not adding DomainError and NotFoundError to many mutations or every mutation, but rather a single Error type is created for handling the registered "global exceptions".
So instead of using:
[Error<DomainError>]
[Error<NotFoundError>]
[Error<NotGlobalError1>]
[Error<NotGlobalError2>]

You could just have:
[Error<NotGlobalError1>]
[Error<NotGlobalError2>]

If your error interface contains a Message and a Code, then you can do the following on any mutation:
addArticle(...) {
    article {
        # ...
    }
    errors {
        ... on Error { # Could come from a `DomainException` or a `NotFoundException`.
            message
            code
        }
    }
}

Having DomainException and NotFoundException extend a common base exception would still require you to add that error to every single mutation in your schema, so that doesn't solve the problem.
I'm aware of certain best practices like strongly-typed errors, and alternatives like result objects, but they're not always feasible, and don't always make sense.

Note that this doesn't solve the issue of libraries being able to add application-level errors that don't result in HTTP 500 results. If it were possible to raise an application-level error using middleware, for example, then that same mechanism could potentially be used to achieve something similar to the above suggestion.

I do not think that we will implement this. I have quite strong feelings against this. I might change my stance on this. I am moving this to discussions and we can revisit it in the future.


PHP open/close tags get spaces inserted when inside

Description
I'm using jsbeautify on mixed PHP/CSS/JS/HTML. PHP open/close tags inside script blocks get spaces inserted between the characters. I don't expect the PHP to be formatted itself, but is it possible for the tags to remain intact? It makes it easy to then find and replace with the original PHP content after formatting.
Input
The code looked like this before beautification:
<script>
var foo = <?php ?>;
var bar = <?= ?>;
</script>

Expected Output
The code should have looked like this after beautification:
<script>
    var foo = <?php ?>;
    var bar = <?= ?>;
</script>

Actual Output
The  code actually looked like this after beautification:
<script>
    var foo = < ? php ? > ;
    var bar = < ? = ? > ;
</script>

Steps to Reproduce
var format = require('js-beautify');
var fs = require('fs');
var src = fs.readFileSync('./test.php').toString();
fs.writeFileSync('./formatted.php', format.html(src));

Environment
OS: Linux xps 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u3 (2019-06-16) x86_64 GNU/Linux
Settings
default settings

See #1647 .  If you have a suggestion as to how to improve the readme to make this more discoverable, I would appreciate a PR.

Thanks @bitwiseman I see it now in the changelog and readme.


Please invite me to the community

Name
Estevamsl
Additional Context
Because I want to stay on top of everything that goes on in this organization and of course, as a good dev, you have to know about the challenges of this incredible world of programming

Invitation sent to join the GitHub Organization. Welcome to Infraform 🎉Please check your mail to accept the invitation sent by GitHub! 🤖About usInfraform is an open source solution for serverless platforms, it is designed for the development solutions and enhance creators to create their infrastructure 💻 Great to have you in our community ✨ Looking forward to your valuable contributions! 🤓 You can also check our community ✨ Github ✨ LinkedIn 💜 You can also share our community with other folks who want to learn development, DevOps, tech, and contribute together and with us 👉💜👈


Ref#28628--replace '\d' in regex to [0-9]

In Python2 and Python3 '\d' in regular expression matches to different patterns. To avoid errors, '\d' was replaced with [0-9].

The matching rules for \d are identical in Pythons 2 and 3. In both versions, u'\d' matches Unicode decimal characters and b'\d' matches b'[0-9]'. Unless some test started failing or you have a particular use case that's stopped working, I'm not sure this PR is necessary. Personally, I find \d more legible than [0-9].

Based on Python3's document, what '\d' corresponding to is slightly different from Python2:

Matches any Unicode decimal digit (that is, any character in Unicode character category [Nd]). This includes [0-9], and also many other digit characters.

However, I actually kind of agree with you that '\d' seems to be more robust. But if someone intended to use only [0-9], she/he might meet problem with the current version of django.

It would be good to add tests to show what benefit each change has.

Junyi, do you want to move forward with this or should we close it? Absent some tests to show some benefit, I'm not sure.

Hi, @timgraham. You can close it. Thanks!


Mysql silent data cutoff when over length

When you insert data into a column that has more than the specified length, it'll silently get cut-off.
CREATE TABLE IF NOT EXISTS test_cutoff
(
    auth_key VARBINARY(1) NOT NULL,
);

Then insert via
let data = String::from("John");
sqlx::query("INSERT INTO test_cutoff (foo) VALUES(?)",data.as_bytes())

Enabling strict mode via
.after_connect(|conn| Box::pin(async move {
        conn.execute("SET SESSION innodb_strict_mode=ON;").await?;
        Ok(())
     }))

also doesn't work.

Truncation is the expected behavior by default: https://dev.mysql.com/doc/refman/8.0/en/binary-varbinary.html

If strict SQL mode is not enabled and you assign a value to a BINARY or VARBINARY column that exceeds the column's maximum length, the value is truncated to fit and a warning is generated.

Yeah, we're probably eating the warning but the best we could do is log it. It's a warning, not an error.
Also, note this bit:

For cases of truncation, to cause an error to occur (rather than a warning) and suppress insertion of the value, use strict SQL mode.

This appears to be a different flag than innodb_strict_mode, and it appears the latter does not exactly imply the former so you probably need to enable both:
.after_connect(|conn| Box::pin(async move {
        conn.execute("SET SESSION sql_mode=STRICT_ALL_TABLES; SET SESSION innodb_strict_mode=ON;").await?;
        Ok(())
     }))

Thanks for clarification, I'll use your suggested fix for the sql mode. I think it'd be nice to set this by default. Setting the client timezone could also be interesting for that case.


Return static VMs to the pool when deleted.

Right now a static VM can be used in at most one benchmark.
This PR returns the VM to the pool of available static VMs when
VirtualMachine.Delete() is called.

LGTM

I don't think VMs should get added back to the pool if they were never part of the pool to begin with (e.g. if they were created from the config file rather than from the json file).


Automated cherry pick of #3077: loadbalancer bugfix

Cherry pick of #3077 on release/2.11.
#3077: loadbalancer bugfix

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.11@b756cb9). Click here to learn what that means.
The diff coverage is 0%.

@@              Coverage Diff               @@
##             release/2.11   #3078   +/-   ##
==============================================
  Coverage                ?   7.16%
==============================================
  Files                   ?     476
  Lines                   ?   76795
  Branches                ?       0
==============================================
  Hits                    ?    5499
  Misses                  ?   70833
  Partials                ?     463

Flag
Coverage Δ

#aFlag
7.16% <0%> (?)

Impacted Files
Coverage Δ

pkg/multicloud/aws/utils.go
0% <ø> (ø)

pkg/compute/models/skus.go
1.34% <ø> (ø)

pkg/compute/models/loadbalancers.go
1.74% <0%> (ø)

...g/compute/models/loadbalancercachedcertificates.go
3.87% <0%> (ø)

pkg/compute/models/loadbalancercertificates.go
4.73% <0%> (ø)

pkg/multicloud/aws/region.go
0% <0%> (ø)

pkg/compute/models/loadbalancerbackendgroups.go
1.59% <0%> (ø)

pkg/compute/models/managedresource.go
0% <0%> (ø)

pkg/compute/models/loadbalancerlisteners.go
1.63% <0%> (ø)

pkg/multicloud/aws/loadbalancer.go
0% <0%> (ø)

... and 1 more

Continue to review full report at Codecov.

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


OnClick detected by wrong object

[X] Review the documentation: https://docs.viromedia.com/
[X] Search for existing issues: https://github.com/viromedia/viro
[X] Use the latest ViroReact release: https://docs.viromedia.com/docs/releases

Environment
Please provide the following information about your environment:

Development OS: Windows,
Device OS & Version: Android 9
Version: ViroReact 2.16.0, React Native 0.59.3
Device(s): Huawei P20 EML-L09

Description
I have an issue when I click on AR mode an object beside an other one. The click is detetected by the wrong object.
Reproducible Demo
Complete reproducible demo https://github.com/beauvaisbruno/virobugs
import {AppRegistry, View} from 'react-native';
import {Viro3DObject, ViroAmbientLight, ViroARScene, ViroARSceneNavigator} from "react-viro";
import React from "react";

const Navigator = ()=>{
  return  <View style={{ flex:1}}><ViroARSceneNavigator
    initialScene={{scene:  () => {
        return  <ViroARScene>
          <ViroAmbientLight color={"#aaaaaa"} />
          <Viro3DObject
            source={require("./res/outside.glb")}
            type="GLB"
            position={[0, 0, -1]}
            onClick={()=> {
              console.log("Clicked outside");
            }}
          />
          <Viro3DObject
            source={require("./res/inside.glb")}
            type="GLB"
            position={[0, 0, -1]}
            onClick={()=> {
              console.log("Clicked inside");
            }}
          />
        </ViroARScene>;
      }}}
    //https://viromedia.com/signup/
    apiKey={"SOME_API_KEY"} />
  </View>;
}

AppRegistry.registerComponent('virobugs', () => Navigator);

inside.zip
outside.zip

Hey! I have been working for a couple of week with Viro and I could realize what is going on: when you have objects pretty close each other, their hitboxes overlap. You must set the property highAccuracy={true} of the Viro3DObject component to ensure event like clicking will be triggered properly. Cheers!


fix: change market_cap_change_24h property type

This PR fixes an issue with a property type in tokenInfo endpoint.

Closed because merge to #30 PR.


Testing - Create test project (add a unit and test widget test)

The unit and widget test "journey" has begun. The tests will be added progressively


Update HCI scenario for test_operator

Selecting tests by operator is still not working, so each child job will need to provide a list of include/exclude tests. Move from pre_tempest to pre_test hook.
Override tempestconf to add manila configuration.
As a pull request owner and reviewers, I checked that:

[x] Appropriate testing is done and actually running
[X] Appropriate documentation exists and/or is up-to-date:

[x] README in the role
[X] Content of the docs/source is reflecting the changes

Updates based on: https://review.rdoproject.org/r/c/testproject/+/51865/31#message-87b57dc4a3f3c5012a7ad531aca61cfb0382da58
Note that each project will need to set their own list of tempest tests, like:
https://github.com/openstack-k8s-operators/manila-operator/pull/267

manila-operator tempest job results:
https://review.rdoproject.org/zuul/build/0e8ba8f113a24771b0a88735a5f8fd7a

looks good! thank you @viroel

This patch didn't trigger HCI job - care to modify zuul config to trigger the job when hci_ceph_backends.yml (or any HCI related file) is edited?

/hold
until we get the HCI job trigger - I'd rather be conservative here. Once we get the job trigger, we'll be able to remove that hold.

@cjeanner pls take a look again when free. Thanka

ew/hold cancel
no need to hold anymore

/hold cancel
no need to hold anymore

/approve
sorry, lost track of that one - all good, tests are here, thanks!


Receiving random "AD configuration has been modified" alerts.

No additional details are given in the alert, so it is unclear what modification has been made. I did notice some of the alerts seemed to be related to my AD server going offline and coming back. Additional details on what configuration change was made would be helpful.

I updated the plugin in all versions to output more detailed messages. I found out what is happening. It appears that whenever a node of the cluster (any node) switches DC's, then it will output a modified message. This causes a lot of messages. In the next version, I will look for these messages and squash them.


Simplify ?= operator transform output

resource_browser.coffee contains:
    parentState.__id ?= _.uniqueId()

Which becomes the rather verbose:
    if (parentState.__id != null) {
      parentState.__id;
    } else {
      parentState.__id = _.uniqueId();
    }

Still an issue after merging in mainline decaf.  My preference would be to fix it in decaf, but a transform is okay, too.

Do you know how hard it would be to do this in decaf?

I take back my decaf preference.  It isn't behaving too badly here, and has to handle edge cases like return-existential-assignment.  Tweaking/adding a transforms would be quicker/easier.
With only decaf running, this Coffee:
opt["$field"] ?= @element

becomes
(opt['$field'] != null ? opt['$field'] : opt['$field'] = this.element);

A transform should be able to examine consequents and rewrite if they contain only Identifiers/MemberExpressions.

👍 codemod it is!

@justinthec want to take a crack at this transform next?

Verified that this is still a problem.


add connect_timeout and read_timeout configuration

requests by default has no timeout, which isn't a sane configuration for our usecase.
The established pattern for configuration at the moment is to use a global in the turbopuffer module, which isn't optimal but works.

@pushrax will this retry? 👍🏻

will this retry?

as of https://github.com/turbopuffer/turbopuffer-python/pull/37 yes


Cannot compile after march 14 update

/go/src/github.com/andelf/go-curl/easy.go:408:22: identifier "_Ctype_struct_curl_slist" may conflict with identifiers generated by cgo

I have the same issue with @frozentech

Downgrade your go lang to 1.11.6. It works for me when I downgraded. I think the current go-curl does not work with 1.12

Thanks @frozentech

Any update on this? Downgrading a package doesnt seem like an ideal option

Till Go version 1.11.13 the issue is not seen. I guess the issue is introduced in 1.12

Hi @Ullaakut, any updates on the issue.

Thanks  @Ullaakut

Problem still persist in 1.14
Details:
ubuntu 19.10.
go 1.14