Why does AuthorizeAsync not work with AuthorizeView?

AuthorizeAsync should have the ability to set Authorized or NotAuthorized, so that the AuthorizeView tag could be used. Otherwise, resource-based authorization is required to use AuthorizeAsync with a separate if-check.
Please advise.

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

ID: 5aad527d-62e1-a5de-af9e-4bba8e747b76
Version Independent ID: 8e447a28-81e7-d80e-a447-08413e88cf98
Content: View-based authorization in ASP.NET Core MVC
Content Source: aspnetcore/security/authorization/views.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Thank you for contacting us. Due to a lack of activity on this discussion issue we're closing it in an effort to keep our backlog clean. If you believe there is a concern related to the ASP.NET Core which hasn't been addressed, please file a new issue.


Don't Merge! PR real time test for source branch full build

Docs Build status updates of commit 22ed02c:
:clock10: Full build: the average full build time is 6 min(s) 8 sec(s), this is based on the last 247 build(s) for this repository.
:warning: This is a FULL build due to a configuration change (usually in .openpublishing.publish.config.json and/or docfx.json). It is strongly suggested to merge this configuration change after the business hours, as it could impact the overall build performance of other PRs on the 'pr-basebranch' branch. For more detailed info, please click here.

Docs Build status updates of commit 22ed02c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

docfx.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Fixed url chrome webstore

Url for chrome webstore was showing the 'extension published page' instead of the normal extension page. This was causing the install button to be disabled.

Thank you so much!


The reason of parsed exim-11.eml is "undefined"

The value of "Diagnostic-Code" is not written in English.
[
    [0] Sisimai::Data  {
        internals: {
            action           "",
            addresser        Sisimai::Address  {
                internals: {
                    address<EMAIL_ADDRESS>                    alias     "",
                    host      "welcometoenglishandfun.com",
                    user      "info",
                    verp      ""
                }
            },
            alias            "",
            deliverystatus   "5.0.900",
            destination      "latinmail.com",
            diagnosticcode   "SMTP error from remote mail server after RCPT<EMAIL_ADDRESS>host mx1.latinmail.com [<IP_ADDRESS>]: 550<EMAIL_ADDRESS>Destinatario desconocido o mailbox lleno",
            diagnostictype   "SMTP",
            feedbacktype     "",
            lhost            "mail",
            listid           "",
            messageid<EMAIL_ADDRESS>            reason           "undefined",
            recipient        Sisimai::Address  {
                internals: {
                    address<EMAIL_ADDRESS>                    alias     "",
                    host      "latinmail.com",
                    user      "sachp",
                    verp      ""
                }
            },
            rhost            "mx1.latinmail.com",
            senderdomain     "welcometoenglishandfun.com",
            smtpagent        "Exim",
            smtpcommand      "RCPT",
            subject          "LAST VACANCIES!!!",
            timestamp        Tue Oct 31 03:33:25 2006,
            timezoneoffset   -0300,
            token            "9e8739bd66b05fd605b8a94580edd299c25e9c8d"
        }
    }
]

Unknown recipient or full mailbox

Beginning with Sisimai 4.1.27, the reason is "onhold".


[INLONG-6611][TubeMQ] Base implementation of TubeMQ C++ Producer

Prepare a Pull Request

Implement the basic functions of tubemq c++ producer
Fixes #6611
Parent Issue: #1177

@xuehuanran please rebase and push again to fix the failed UT, thanks.


Task: Update the Guide "Removing Targets Artifacts"

What is the task about?
Make the necessary changes to the documentation after DELETE /api/v1/artifacts changes to POST /api/v1/artifacts/delete.
Parent feature
https://github.com/repository-service-tuf/repository-service-tuf-api/issues/455
References
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Closing as this change is on the Umbrella repository.
I opened an issue in the correct repository

https://github.com/repository-service-tuf/repository-service-tuf/issues/502


No clone the array in arrays

When cloning a Array it is within another
var array = [
   ['a', 'b' ],
   ['c', 'd' ],
];
var cloneArray = _.clone(array);
cloneArray[0][0] = 'E';
console.log(array);

In console
[
   ['E', 'b' ],
   ['c', 'd' ],
]

Is a reference and not a a clone

Function clone in underscore return a shallow copy of the object or the array. It does not return deep copy of all objects and arrays. See: http://underscorejs.org/#clone If you want a deep clone you create your own function using clone.

@alejonext Try require('lodash/cloneDeep') or lodash.clonedeep.


[feature][datasource] Main add datasource-pulsar

Purpose of this pull request

Check list

[x] Code changed are covered with tests, or it does not need tests for reason:
[x] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[x] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs

+1 LGTM

haha, thx


robotframework-modbuslibrary unavailable on PyPI

Neither installing using pip nor download sources from PyPI worked for me? Was this package even published?

This work is an early dev that was not completed. We do not plan to work on it in the next weeks, you should fork ;-)


Textfield Label white backgroud

Describe the bug
The TextField label background is set to white
To Reproduce
Steps to reproduce the behavior:

Use a Textfield on a color background

Blazorfiddle link
N/A
Expected behavior
The TextField label background to be transparent
Screenshots
If applicable, add screenshots or .GIF captures to help explain your problem.

Additional context
Version 2.7.0-develop-017

@vudzero If you inspect the mdc-floating-label css you can see that it uses the
--mdc-theme-surface for the background color and if not set the defaults to white. So maybe it should default to transparent.
https://github.com/SamProf/MatBlazor/blob/2a7931c4004471cba74b38de4e4aadf94075c93f/src/MatBlazor.Web/src/matTextField/matTextField.scss#L37
.mat-floating-label--float-above-outlined {
background-color: var(--mdc-theme-surface, #fff) !important;
}

@vudzero @enkodellc ,
If this issue is resolved with the above PR, can we close it?

All good!


RefineDet model?

Hi,
Thanks so much for your sharing. I saw you have the RefineDet performance, however, in the models folder I did not see the model file. Could you kindly tell me how to access it?
Thanks.

Hello, there's no DSSD code here.（pytorch)


feat: landing - animate hero

Closes CSB-1862.
What kind of change does this pull request introduce?

Animates the landing page hero on desktop.
What is the current behavior?

What is the new behavior?

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.
Verified animations on the following browsers:

Chrome
Safari
Firefox

Performance verification on Chrome.
Checklist

[x] Ready to be merged

Awesome work @olarclara! Pretty smooth, and the FPS is not dropping below 30. Thanks for all the effort 🎉👏👏
I have two comments that are important to fix:

The Sandpack component is flicking on the screen before the hero. We should prioritize the first paint to be the full hero:

If I stop scrolling earlier and edit the code, I can't see my changes. Maybe we can force the swap or force a scrollTo to the position that the editing is fully working.

@zehfernandes thank you! the fouc shold be fixed now. I'll take a shot at fixing the latter issue tomorrow, probably in another PR.
https://user-images.githubusercontent.com/24959348/143956633-73407242-48f5-4fa6-b82e-87782b554105.mov


How to Remove padding in android ?

Pdf is having padding...
Can we remove it

used height and width props

Can you please tell me how and where to use the height and width props? @mansilaad


CLI Tool

See angular-cli & ember-cli as possible examples of features. Makes it easy to spin up a new project, add new components/deltas/etc. This is probably something we should avoid locking in until we have a better sense of how applications should be structured. There's a bit of movement in the Redux community away from grouping by "type" (reducer, component, etc.) and towards grouping by feature, or domain, as adding a new feature when things are grouped by type requires some bouncing between folders. I'm not sure I prefer that, but I haven't built a project that way yet.

Started: https://github.com/valtech-nyc/brookjs-cli


Left Sidebar can be minimized on the large screen size

Hi Gurayyarar,
Thank you for providing this awesome Admin Material Design template.
As per subject, I knew that the Left Sidebar can be minimized (toggled) if the screen size is small. But, can we add the 'hamburger' button on the wide/large screen as well, so it can toggled on the large screen size as well.
Thanks
-gs

You can check #4

Thank you @Adohk


Add Cassandra726's file

Created and edited file

Changes approved - merging and purging branch 1/18/21

Changes approved - merging and purging branch 1/18/21


32538: Fix readme for azure-maps-search

Description
Fixing README.md file according to the: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/maps/azure-maps-search/azure/maps/search/models/_models.py#L450
Resolves: https://github.com/Azure/azure-sdk-for-python/issues/32538

/check-enforcer override


HTML seen in confirmation message

See screenshot (mac)

I'm seeing a bunch of issues like this which look like graphics glitches.
I think it might be related to: https://github.com/mwcproject/mwc-qt-wallet/issues/129
Can we make the scale factor configurable?

I will review the massages. Seems like we need to separate html and plain text


Add EIP-7495 specifications for StableContainer[N] and Profile[B]

This introduces EIP-7495 SSZ types to improve forward compatibility:

https://eips.ethereum.org/EIPS/eip-7495

Implementation: https://github.com/protolambda/remerkleable/pull/22
Tests: #3777


Add preliminary support for running doctests.

This partially addresses #225.
This only works on nightly, due to the use of the unstable feature doctest-xcompile
The relevant tracking issues are:

https://github.com/rust-lang/cargo/issues/7040
https://github.com/rust-lang/rust/issues/64245

If the subcommand is test and the compiler is nightly, we provide the -Zdoctest-xcompile flag if CROSS_UNSTABLE_ENABLE_DOCTESTS=true.

could you squash the changes? feel free to remove the co-authored by for me


Show total HNT rewarded on reward txn view

PR for #28
Hii @allenan.
I have made the desired changes. Please review them. If the changes are up to the mark, then please add a hacktoberfest-accepted label on this PR. I'd really appreciate it.

@MohdImran001 it looks like this PR includes some unrelated commits. Can you cherry pick out the ones relevant to issue #28 ?

Sure, @allenan

thanks @MohdImran001 the TxnView.js code looks good, however there are still unrelated commits. If you could cherry pick out the reward txn code, I can get this merged and the hacktoberfest label applied

Sorry @allenan, I am unable to remove unnecessary commits, I tried but couldn't figure out how to remove them, these are occuring because I messed up something when I merged changes from my previous PR. If you want I can make a new PR and we closes this one.

Hii @allenan, should I make a new PR ?.

New PR would be fine

On Oct 24, 2020, at 1:07 PM, Mohd Imran<EMAIL_ADDRESS>wrote:

Hii @allenan, should I make a new PR ?.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


[BUG] 404 Not Found error

Prerequisites

[x] Checked if your Laravel Excel version is still supported: https://docs.laravel-excel.com/3.1/getting-started/support.html#supported-versions
[X] Able to reproduce the behaviour outside of your code, the problem is isolated to Laravel Excel.
[X] Checked that your issue isn't already filed.
[X] Checked if no PR was submitted that fixes this problem.
[X] Filled in the entire issue template

Versions

PHP version: 7.4.3
Laravel version: 7.28.3
Package version: 3.1

Description

Whenever I try to navigate to export url, it shows 404 | Not Found error.
Steps to Reproduce
I followed the instructions on the docs https://docs.laravel-excel.com/3.1/getting-started/installation.html for installation. Then I followed https://docs.laravel-excel.com/3.1/exports/ to test the package and export. When I navigated to {sitelink}/users/export/, It showed 404 error. I tried it on a clean install of Laravel too, but same error.
I have created a git repo for reference: https://github.com/agarwalvaibhav0211/error-finding

Expected behavior:
A excel file should download.

Actual behavior:
404 Error

Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.

Sounds like you have some issues with your local system. Your git repo works fine for me. I would recommend seeking help on a forum like Laracasts or Stackoverflow.

It isn't working on my computer. I even tried it with docker, still no response

As I said before, your repository works on my computer. The bug is unrelated to this package (the 404 happens before it reaches this package) that's why I recommend asking this question on Laracasts or Stackoverflow.


Computing the dynamics via RNEA

Hey,
I tried to use pinocchio to construct regression matrix and extract dynamic parameters from urdf files.
https://gepettoweb.laas.fr/doc/stack-of-tasks/pinocchio/master/doxygen-html/md_doc_b-examples_c-dynamics.html#autotoc_md40,
from the above link, it seems you plan to provide an explicit way to compute the inverse dynamics via Netwon-Euler equation, are you going to release this example recently?
Thanks and best wishes

What do you want to do exactly @JunningHuang?

Otherwise, you can do inverse dynamics as tau = rnea(model, data, q, v, a, fext).


WorkloadLabels error causes app details to not show workloads

What kind of request is this (question/bug/enhancement/feature request):
bug
Steps to reproduce (least amount of steps as possible):

Launch longhorn, drone or other app with default parameters, I have not done any other operations.
The pods of the workloads list are all running

Result:
The app active number is 0, and there is nothing in the workload of the details page.
WorkloadLabels appId tag is incorrect.
Other details that may be helpful:
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):
rancher/rancher:master 1/30

Installation option (single install/HA):
single , HA

Version: master 2.2 (1/31/19)
Confirmed fixed.


Geek-onacci Number

🚀 Feature
Geek created a random series and given a name geek-onacci series. Given four integers A, B, C, N. A, B, C represents the first three numbers of geek-onacci series. Find the Nth number of the series. The nth number of geek-onacci series is a sum of the last three numbers (summation of N-1th, N-2th, and N-3th geek-onacci numbers)
Have you read the Contributing Guidelines on Pull Requests?
yes
Motivation
want to add code in c++ in cp
Pitch
Want to add as a GSSoC'21 participant .

/assign

This code is in cpp , but bot added the label of c .


Demo connect fail when egress recording enabled

I am running Livekit and Egress on EKS, and using your demo web(meet.livekit.io) as a tester. It has been working nicely so far until I started test Egress features. if I join room with the jwt, the demo page crashes and the browser console shows error logs as below,
framework-7751730b10fa0f74.js:9 TypeError: Cannot read properties of undefined (reading 'matchAll')
    at 590-005945d272d18427.js:1:101542
    at Array.map (<anonymous>)
    at 590-005945d272d18427.js:1:101514
    at rx (590-005945d272d18427.js:1:101958)
    at 590-005945d272d18427.js:1:100800
    at Object.useMemo (framework-7751730b10fa0f74.js:9:67913)
    at n.useMemo (framework-7751730b10fa0f74.js:25:5985)
    at rE (590-005945d272d18427.js:1:100786)
    at aD (framework-7751730b10fa0f74.js:9:61583)
    at i (framework-7751730b10fa0f74.js:9:119731)

main-cca64c2bc7b52412.js:1 TypeError: Cannot read properties of undefined (reading 'matchAll')
    at 590-005945d272d18427.js:1:101542
    at Array.map (<anonymous>)
    at 590-005945d272d18427.js:1:101514
    at rx (590-005945d272d18427.js:1:101958)
    at 590-005945d272d18427.js:1:100800
    at Object.useMemo (framework-7751730b10fa0f74.js:9:67913)
    at n.useMemo (framework-7751730b10fa0f74.js:25:5985)
    at rE (590-005945d272d18427.js:1:100786)
    at aD (framework-7751730b10fa0f74.js:9:61583)
    at i (framework-7751730b10fa0f74.js:9:119731)

Below is how I trigger egress recording with my application

Whenever my application receive Room_Started Webhook, it requests RoomComposite Egress
Whenever my application receive Track_Published Webhook, it requests TrackComposite Egress

Hey @calvin-seo, thanks for your report.
We just enabled source maps on the production build of meet.livekit.io #59. Could you reproduce the issue and include the hopefully more descriptive error message? This would be highly appreciated. 🙏

@calvin-seo The source maps are not working as expected, so you don't need to repeat the test. We are working on a solution and ping you again.


Events with comments are not clearly labeled in lowering_replay

@ahimahis described illustrated that currently the only unique sign that an event has a comment is a slight change in the "add comment" button.
Note: This is especially an issue for users who use the comment button to "correct" previously logged events (as users cannot edit events).

@ahimahis

Hi, @ahimahis. I wanted to bump this, have you had a chance to look at it?


drake_bazel_installed doesn't work well

The drake_bazel_installed example doesn't work well in practice.  Anything that uses LCM or AutoDiff doesn't actually compile correctly.  (Our smoke tests for this mode in our CI here don't cover a lot.)
At minimum, we should disclaim this in the documentation.
Possibly we should try to fix some of these bugs and add more CI coverage.
In the extreme, we could just declare it a failed experiment and delete it.  The only stark benefit it offers is for people who want to use Bazel for their projects, but do not have a SNOPT license to rebuild from source.

Closing as "won't do".  In #286 we have drake_bazel_download now, and we hope that we can support that long-term.


[EPIC] Lanes / paths inside building assets

These issues relate to lanes or ped paths inside building assets. For clarification: They appear as purple lines in the asset editor.
TM:PE seems to be generally bad at dealing with routes inside buildings.

#10 - Bus routes should respect 1 way routes in buildings
#174 - Pedestrians not keen on using asset-defined pedestrian routes

I also wonder if there might be an issue with paths in sub-buildings (lots of train station assets use sub-buildings or even props to provide their walkways between platforms)

Not technically a 'purple path', but it seems TM:PE prefers cims crossing train tracks rather than using internal paths provided by the station:

#188 - Pedestrians see train track junctions as valid crossing points

Note also: There are some station designs (see last screenshot) that expect cims to cross the tracks! Not sure how that is implemented.
In cases where a pedestrian or bike path (either via "purple line" or network prefbs) crosses train tracks, could we do something akin to an invisible mini-level crossing or traffic lights so that the cims don't run in front of, or through, trains?

And, seeing as we're talking about cim routing through train stations:

#157 - Strange behavior when using multi rail train stations

Not sure if useful, but while looking at something else I noticed that NetAI (which can be accessed via NetInfo.m_netAI) contains this:
GetNodeBuilding(ushort nodeID, ref NetNode data, out BuildingInfo building, out float heightOffset)


Make Retainer abstract and convert Retainer to char *

Consider how to handle a struct wrapper for array in the future

Consider how to handle a struct wrapper for array in the future

closed in #23

closed in #23


Harmonize serialization utils, methods on objects and more

### Tasks
- [x] Currently we have and use multiple tools for serialization throughout the code base. We're using everything except `marshalutil` heavily. Therefore, we should try to remove dependencies to `marshalutil` to decrease the amount of code and thus error surface.
- [ ] Go away from manual `binary.Read` and `binary.Write` in favor of utils provided in `stream` package
- [x] Remove objects' `.FromBytes()` method in favor of stateless `ObjectFromBytes()` function to avoid quirks with Go generics
- [x] Remove `storable` package from hive.go
- [x] Remove `PositionedWriter` and replace with `stream.WriteCollection`
- [ ] introduce/generate wrapper to conveniently store basic types with our `kvstore.TypedKVStore`
- [x] Revisit `time.Time` serialization (seconds vs nanoseconds)
- [x] Introduce better way to serialize and deserialize `BlockIssuerKeys`

In this commit the serialization of BlockIssuerKeys has been improved. However, it showcases one problem well:

many objects can be read/written in the context of a reader (e.g. for a snapshot). While the total object size might be variable, the object is still able to deserialize itself without the need to always prepend a size (just by following the order and reading the individual fields from the reader). This becomes important when we are writing lots of objects, for example outputs, for a ledger state snapshot.
When and how exactly do we utilize serix? Some objects are sometimes serialized with serix but other times not. Especially when reading from a reader currently serix does not support that.


No permission to view clair error log

Got 403 when to view scan log.

The root cause is that the user harbor has no x permission for directory scan_job.

Fixed in #3655


CXTranslationUnit.TryParse results in CXTranslationUnit with CX_DeclKind_ObjCPropertyImpl cursor while parsing Windows targeted files

Here is the code (based on @xoofx setup approach):
			const string root = "cppast.input";

			var filesToParse = new List<string>
			{
				@"c:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\windef.h",
				@"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\Include\um\corerror.h",
				@"e:\BigRepos\runtime\src\coreclr\src\inc\corhdr.h",
				@"e:\BigRepos\runtime\src\coreclr\src\inc\corjit.h"
			};

			var sysIncludes = new List<string>
			{
				@"c:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\",
				@"c:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\",
				@"c:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\"
			};

			var includes = new List<string>
			{
				@"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\Include\um\",
				@"e:\BigRepos\runtime\src\coreclr\src\inc\"
			};

			var defines = new List<string>
			{
				"_AMD64_=1",
				"TARGET_AMD64=1",
				"_MSC_VER=1920",
				"_WIN32=1",
				"_M_AMD64=100",
				"_M_X64=100",
				"_WIN64=1"
			};

			var arguments = new List<string>
			{
				"-Wno-pragma-once-outside-header",
				"-fms-extensions",
				"-fms-compatibility",
				"-fms-compatibility-version=19.20",
				"-dM",
				"-E",
				"-xc++",
				"--target=x86_64-pc-windows-msvc19.20",
				"-fparse-all-comments"
			};
			var normalizedIncludePaths = new List<string>();
			normalizedIncludePaths.AddRange(includes.Select(x => Path.Combine(Environment.CurrentDirectory, x)));

			var normalizedSystemIncludePaths = new List<string>();
			normalizedSystemIncludePaths.AddRange(sysIncludes.Select(x => Path.Combine(Environment.CurrentDirectory, x)));

			arguments.AddRange(normalizedIncludePaths.Select(x => $"-I{x}"));
			arguments.AddRange(normalizedSystemIncludePaths.Select(x => $"-isystem{x}"));
			arguments.AddRange(defines.Select(x => $"-D{x}"));

			var translationFlags = CXTranslationUnit_Flags.CXTranslationUnit_None;
            translationFlags |= CXTranslationUnit_Flags.CXTranslationUnit_SkipFunctionBodies;
            translationFlags |= CXTranslationUnit_Flags.CXTranslationUnit_IncludeAttributedTypes;
            translationFlags |= CXTranslationUnit_Flags.CXTranslationUnit_VisitImplicitAttributes;
            translationFlags |= CXTranslationUnit_Flags.CXTranslationUnit_DetailedPreprocessingRecord;

var createIndex = CXIndex.Create();

            var tempBuilder = new StringBuilder();
            foreach (var file in filesToParse)
            {
	            var filePath = Path.Combine(Environment.CurrentDirectory, file);
	            tempBuilder.AppendLine($"#include \"{filePath}\"");
			}
			var rootFileContent = tempBuilder.ToString();
			var rootFileContentBlob = Encoding.UTF8.GetBytes(rootFileContent);
			fixed (void* rootFileContentPtr = rootFileContentBlob)
			{
				var rootFileName = Marshal.StringToHGlobalAnsi(root);
				CXTranslationUnit.TryParse(createIndex, root, arguments.ToArray(), new[]
				{
					new CXUnsavedFile
					{
						Contents = (sbyte*) rootFileContentPtr,
						Filename = (sbyte*) rootFileName,
						Length = new UIntPtr((uint) rootFileContentBlob.Length)
					}
				}, translationFlags, out var translationUnit);
				var tu = TranslationUnit.GetOrCreate(translationUnit);
				using var outputStream = new MemoryStream();
				var generator = new PInvokeGenerator(null, s => outputStream);
				generator.GenerateBindings(tu);
			}

But strangely TryParse out-returns translationUnit which cursor has DeclKind = CX_DeclKind_ObjCPropertyImpl and then all goes boom here since CXCursorKind is CXCursor_TranslationUnit:
    public sealed class ObjCPropertyImplDecl : Decl
    {
        internal ObjCPropertyImplDecl(CXCursor handle) : base(handle, handle.Kind, CX_DeclKind.CX_DeclKind_ObjCPropertyImpl)
        {
            if ((handle.Kind != CXCursorKind.CXCursor_ObjCSynthesizeDecl) && (handle.Kind != CXCursorKind.CXCursor_ObjCDynamicDecl))
            {
                throw new ArgumentException(nameof(handle));
            }
        }
    }

Do I do something wrong or miss something?

Could you clarify what version of libClang is being loaded? I'd guess there is a mismatch between what you have on the box and the version of ClangSharp you are referencing

I'd guess there is a mismatch between what you have on the box and the version of ClangSharp you are referencing

That's it! For some reasons I've been referencing not the latest libclang.dll! After I have copied the one from c:\Users\hypeartist\.nuget\packages\libclang.runtime.win-x64\10.0.0\runtimes\win-x64\native\ the issue seems to be resolved and now cursor's DeclKind is CX_DeclKind_LastDecl.
Btw, I can't make a reference to libclang to be being copied to bin folder so I have to copy it manually the path above.

Some off-topic points:

Names of nested types are presented as ParentTypeName::TypeName I had to add return name.Replace("::", ".") in string GetTypeName(Cursor cursor, Cursor context, Type type, out string nativeTypeName) method as a quick-n-dirty workaround.

Method parameters default value assignment seems to be kinda broken for pointer types. Now it checks (in bool VisitImplicitCastExpr(ImplicitCastExpr implicitCastExpr, IntegerLiteral integerLiteral)) like:

	        if (implicitCastExpr.Type is PointerType)
            {
                if (integerLiteral.Value.Equals("0"))
                {
                    // C# doesn't have implicit conversion from zero to a pointer
                    // so we will manually check and handle the most common case

                    _outputBuilder.Write("null");
                    return true;
                }

                return false;
            }

But it goes wrong if implicitCastExpr.Type is typedef for a pointer. So I had to change
if (implicitCastExpr.Type is PointerType)

into:
if (implicitCastExpr.Type.CanonicalType is PointerType)

to make it work as expected.

There are a few scenarios, especially as you get to more C++ oriented code, that aren't going to be correctly handled today. It's something that I typically fix as the issues are raised.
These all sound like issues that could be fairly easily resolved with tests added to ensure the behavior works as expected. In the case of the pointer type being a typedef, there are likely similar scenarios around attributed and elaborated types.

Closing this as the original issue was addressed.
Newer versions of ClangSharp now validate the native library version loaded matches the expected version.


Hoges removed extra fillet preventing 6A from properly mating with Y-…

@AnthonyMyatt I think the fillets are still useful, they just need to be on the right side

@giesberge looks good.


Add new iOS 11 api adjustedContentInset support

adopt adjustedContentInset instead of contentInset on iOS 11
Checklist

[x] All tests pass. Demo project builds and runs.
[x] I added tests, an experiment, or detailed why my change isn't tested.
[x] I added an entry to the CHANGELOG.md for any breaking changes, enhancements, or bug fixes.
[x] I have reviewed the contributing guide

Awesome! Would love a change log entry and even a unit test for this.
Sent with GitHawk

Change log entry and unit test added :)

Yes, the new files have been included by pod.

@yiplee are the examples building for you?

@rnystrom  I agree with you. But the bug will remain exist if people forget to replace containerInset by adjustedContainerInset in their codes.  And in my opinion, when people call context's containerInset, they expect context to return the real content inset applied to scroll view.

@yiplee though even more about this, I think the only way to go is with a separate API. I found a few places that will break in Instagram if we make this change, so that’s a blocker.
Would you be ok making this a separate API? Thanks!!
Sent with GitHawk

@rnystrom It's OK. I will update the PR right now. 😄


[Bug Report]: dynamic-group extension separate with its children when quick drag and release

What happened?
https://github.com/user-attachments/assets/031cc81d-456f-4571-acfc-000a2e9e6fcd
Core Version
2.0.6
Extension Version
2.0.10
Engine Version
No response
What browsers are you seeing the problem on?
Firefox, Chrome, Microsoft Edge

😂😂    I have not reproduced this problem. Is there a similar problem in all kinds of browsers? or some of them

You need to quick drag and release to trigger this bug.
Your gif is only dragging. (you need to release your Left Mouse Button)
Yes, all of them (I don't know if safari has this problem, because I don't have mac).

Watch my video between 0:27 ~ 0:29, I click LMB (Left Mouse Button) start to drag and release LMB for 4 times.

Besides, If you use custom htmlnode this bug will become more obvious.

I also found this problem, it should be the same problem https://github.com/didi/LogicFlow/issues/1949
DynamicGroup's parent movement is handled internally by onDragging()
The movement of DynamicGroup's children is handled by MOUSEMOVE's dx and dy
Promise.resolve().then(() => {
  this.onDragging({
    deltaX,
    deltaY,
    event: e,
  })
  this.eventCenter?.emit(EventType[`${this.eventType}_MOUSEMOVE`], {
    deltaX,
    deltaY,
    e,
    data: this.data || elementData,
  })
  this.eventCenter?.emit(EventType[`${this.eventType}_DRAG`], {
    e,
    data: this.data || elementData,
  })
})

onDragging() uses event data to calculate dx and dy, which has a slight error with the final dx and dy of mousemove, causing the position movement of parent and children to be slightly disordered

I also found this problem, it should be the same problem #1949
DynamicGroup's parent movement is handled internally by onDragging() The movement of DynamicGroup's children is handled by MOUSEMOVE's dx and dy
Promise.resolve().then(() => {
  this.onDragging({
    deltaX,
    deltaY,
    event: e,
  })
  this.eventCenter?.emit(EventType[`${this.eventType}_MOUSEMOVE`], {
    deltaX,
    deltaY,
    e,
    data: this.data || elementData,
  })
  this.eventCenter?.emit(EventType[`${this.eventType}_DRAG`], {
    e,
    data: this.data || elementData,
  })
})

onDragging() uses event data to calculate dx and dy, which has a slight error with the final dx and dy of mousemove, causing the position movement of parent and children to be slightly disordered
Of course, autoExpand is another problem, the dx and dy changed by onDragging() are larger

onDragging()->parent moveNodes()
MOUSEMOVE event-> children moveNodes()

The unification of the dx and dy data of parent.moveNodes() and the dx and dy data emitted by the mousemove event should be the key point to approach this problem.

maybe can fix in https://github.com/didi/LogicFlow/pull/1963
getMoveDistance can get parent real dx and dy


Update stale_issues.yml

Turning on the auto-stale issues workflow.

:tada: This PR is included in version 2.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Upgrade ruby to 3.2.1

What:

Upgrade ruby to 3.2.1

Why:

To be on latest ruby version

@apoorv1316 please run a smoke test locally.

@vipulnsward I Ran a smoke test locally and things are working fine.


Entity.BabySkeleton.name in death msg?

Please use the search functionality before reporting an issue. Also take a look at the closed issues!
Issue description:
Mekanism Baby Skeletons register as entity.BabySkeleton.name
Steps to reproduce:
1.Get shot by a baby skeleton
2.Die
3.Look at death msg
Version (make sure you are on the latest version before reporting):
Forge: 1.11.2 <IP_ADDRESS>5
Mekanism: 1.11.2 9.3.2
Other relevant version:
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
https://gyazo.com/430cbb59b462b717917b78084497ff66
does this mean that the Eu_us file needs changed ?

It is indeed a fault in the language files. There's an "entity.Mekanism.BabySkeleton.name=Baby Skeleton" mapping, but not one you're describing.

i knowticed that it is now entity.BabySkeleton.name

Can be closed, issue is solved and will be available in the next release.


External Heder

Hello,
I have a Problem with the External Header. I want to use exthdr['PhysUnit'] to get a list of the Channel_Units or add a row of Units to my DataFrame. But i am not sure how to implement it to my code!
(Btw thank you for your awesome library, it really helped me a lot with my project!)
My Code:
reader = APReader(m_file_path)
col = []
for channel in reader.Channels:
col.append(channel.Name)
rows =[]
for channel in reader.Channels:
rows.append(channel.data)
unit = []
for channel in reader.ExtHeader:
unit.append(channel.exthdr['PhysUnit'])
df = pd.DataFrame(rows)          #Erstellung des Dataframes/ Einlesen der Rows in den DataFrame
df = df.T                        #Die Rows werden mit dem Columns geswaped, da diese Vertauscht waren
df.columns = col
AttributeError: 'APReader' object has no attribute 'ExtHeader'

You are iterating over reader.ExtHdr,the APReader does not have such a property. You have to foreach over reader.Channels, just like you did in the first two loops.

If i loop over reader.Channels i get an AttributeError (AttributeError: 'Channel' object has no attribute 'ExtHdr')
unit = []
for channel in reader.Channels:
unit.append(channel.ExtHdr['PhysUnit'])

unit = []
for channel in reader.Channels:
unit.append(channel.extHeader['PhysUnit'])
This does not work for me... Do i need to use the binaryreader when i load the data?

What does not work for you? What is the issue?

Make sure you use the current version! Run
pip install --upgrade apread


What did you see happen?
In this case, I add my own code logic UserService.Hello(), and there is an error: undefined: UserService
What did you expect to see?
I want to add my own code logic that can not be distinguished by gopls, now I want to find a way to let gopls filter error, Is there any configurations ? Please tell me, thanks.
Editor and settings
No response
Logs
No response

Related Issues and Documentation

x/tools/gopls: negated build flag causes error #59346
x/tools/gopls: undeclared name when accessing symbols from other files #35337 (closed)
x/tools/gopls:  #52425 (closed)
x/tools/gopls: strange output with gopls >= 0.3.0, no actual errors detected #37046 (closed)
x/tools/gopls: Implement action should ignore importing the current package #61830 (closed)
x/tools/gopls: missing semantic tokens for function parameters in block #56257 (closed)
x/tools/gopls: bad state after creating new directory and package #37978 (closed)
x/tools/gopls: invalid errors when using "pkgm" VS Code snippet #39296 (closed)
x/tools/gopls: show error message if nested module is not root #38089 (closed)
x/tools/gopls: references doesn't work properly. #60676 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Related Issues and Documentation

x/tools/gopls: negated build flag causes error #59346
x/tools/gopls: undeclared name when accessing symbols from other files #35337 (closed)
x/tools/gopls:  #52425 (closed)
x/tools/gopls: strange output with gopls >= 0.3.0, no actual errors detected #37046 (closed)
x/tools/gopls: Implement action should ignore importing the current package #61830 (closed)
x/tools/gopls: missing semantic tokens for function parameters in block #56257 (closed)
x/tools/gopls: bad state after creating new directory and package #37978 (closed)
x/tools/gopls: invalid errors when using "pkgm" VS Code snippet #39296 (closed)
x/tools/gopls: show error message if nested module is not root #38089 (closed)
x/tools/gopls: references doesn't work properly. #60676 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

sry, it can't help me

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions


Drag ruler distances when using 5-5-5 appears to still use Euclidean

https://ptb.discord.com/channels/915186263609454632/1167102619727167581/1168232668719231119

Closing as it doesn't look like Drag Ruler is getting updated anytime soon. Elevation Ruler should be able to handle distances correctly when used with Terrain Mapper.


Incorrect handling of HEAD requests with Content-Length > 0

Example configuration:
global
	lua-prepend-path /redacted/?.lua
	lua-load test.lua

frontend test_fe
    mode http
    bind *:8080
    http-request lua.test
    use_backend test_be

backend test_be
    mode http
    server example example.com:80

local http = require('http')

core.register_action("test", {"http-req"},function ()
	local r, err = http.head {
		url = "http://<IP_ADDRESS>/"
	}

	if err ~= nil then
		core.Info("err: " .. err)
	else
		core.Info(r.content)
	end
end)

Now making a request to localhost:8080 will log the following:
[info] 053/235929 (28384) : err: http.head: Receive error (content): connection closed.

RFC 7230#3.3.2 says:

A server MAY send a Content-Length header field in a response to a
HEAD request (Section 4.3.2 of [RFC7231]); a server MUST NOT send
Content-Length in such a response unless its field-value equals the
decimal number of octets that would have been sent in the payload
body of a response if the same request had used the GET method.

and that's what the example.com server is doing: It's sending a non-zero Content-Length in response to the HEAD request, leading to haproxy-lua-http falling over.

Hey Tim, I'll investigate this more thoroughly, but from the quick glance of the code, we don't specifically handle responses to HEAD requests, and this specific error is returned by underlying
socket:receive("*a")
Aside from that, we do need some light testing harness for this library, maybe something like httpbin.org or similar.

Hey Tim, I'll investigate this more thoroughly, but from the quick glance of the code, we don't specifically handle responses to HEAD requests, and this specific error is returned by underlying
socket:receive("*a")

Yes, that's what I concluded as well. I didn't create a PR, because I did have the time to investigate the proper solution.

Aside from that, we do need some light testing harness for this library, maybe something like httpbin.org or similar.

I suggest VTest as with HAProxy itself. I plan to use that for my haproxy-auth-request as well, when I get around to it.

@anezirovic You might be interested in this: https://github.com/TimWolla/haproxy-auth-request/blob/master/.github/workflows/vtest.yml
Maybe the HAProxy installation and VTest installation steps could be spun out into an includeable action within either the haproxytech or the haproxy organization (I would prefer the latter). Documentation is here: https://help.github.com/en/actions/building-actions

Do you have an update to share / did you get around to working on this, yet?

Hey Tim, the issue was rather trivial, forgot to push the fix long time ago. We just need to be sure not to consume response body (if any) for HEAD requests. request.content attribute will be explicitly set to nil as well (so if you use core.Info(), please guard it with tostring()).
I've never used HEAD in my haproxy Lua code, I feel embarrassed.
If this works for you, we will close the issue.

so if you use core.Info(), please guard it with tostring()

I don't. This was just my my simple reproducer. In fact I don't care about the body at all (that's why I've been using a HEAD request).

If this works for you, we will close the issue.

Yes, this is looking good on the system where I've been seeing the issue. You can close this (and label as “fixed” or whatever).


Web Agent Error

Hi, I created a Web Agent and It worked perfectly. However I got this error currently. The agent works fine on other (serve)[http://muginn.arukascloud.io]. I wonder whether the site is blocking my domain?
[00:00:00] ERROR -- : Error when fetching url: Failed: #<Faraday::Response:0x007f73b82bfba0 @on_complete_callbacks=[], @env=#<Faraday::Env @method=:get @body="" @url=#<URI::HTTP http://www.biquege.com/yinianyongheng/> @request=#<Faraday::RequestOptions (empty)> @request_headers={"User-Agent"=>"Huginn - https://github.com/cantino/huginn", "Accept-Encoding"=>"gzip,deflate"} @ssl=#<Faraday::SSLOptions verify=true> @response=#<Faraday::Response:0x007f73b82bfba0 ...> @response_headers={} @status=0>>
/app/app/models/agents/website_agent.rb:346:in `check_url'
/app/app/models/agents/website_agent.rb:333:in `block in check_urls'
/app/app/models/agents/website_agent.rb:332:in `each'
/app/app/models/agents/website_agent.rb:332:in `check_urls'
/app/app/models/agents/website_agent.rb:326:in `check'
/app/app/concerns/sortable_events.rb:75:in `check'
/app/app/concerns/dry_runnable.rb:31:in `dry_run!'
/app/app/controllers/agents/dry_runs_controller.rb:41:in `create'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:188:in `process_action'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:126:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:455:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `block in instrument'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `instrument'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:126:in `process'
/app/vendor/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/rendering.rb:30:in `process'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal.rb:190:in `dispatch'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal.rb:262:in `dispatch'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:39:in `block in serve'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `each'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `serve'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:725:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call'
/app/vendor/bundle/ruby/2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch'
/app/vendor/bundle/ruby/2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/etag.rb:25:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/conditional_get.rb:38:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/head.rb:12:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:222:in `context'
/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:216:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:36:in `call_app'
/app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `block in call'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `block in tagged'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:26:in `tagged'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `tagged'
/app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `call'
/app/config/initializers/silence_worker_status_logger.rb:3:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/static.rb:136:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/engine.rb:522:in `call'
/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/handler/webrick.rb:86:in `service'
/usr/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
/usr/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
/usr/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
[00:00:00] INFO -- : Dry Run finished

Hi @Voleking,
I think status 0 means the site did not respond at all. Can you reach the url via a browser? For me the DNS resolution for biquege.com fails.

@dsander Oh yes, it's the website problem.

Hi, I changed to the right url and this agent worked fine in the last few weeks. However, I get this error again now.


Question

Is it worth it if you set the radius to 20K?

What?

im pregen the world and im set radius is 20K is that worth it?

A larger radius just means a longer time. 20k is fine for a server that is medium sized.

my server not lag anymore if i use 20k radius right?

Whether or not it lags depends on whether or not you enforce the radius with a world border. Players should not cross beyond the 20k radius.


mdPrefix/mdSuffix should change cursor when hover over icon

Bug, feature request, or proposal:
Bug
What is the expected behavior?
Cursor should change to pointer when hover over icon
What is the current behavior?
Cursor don't change from the input type cursor.

What are the steps to reproduce?
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U
What is the use-case or motivation for changing an existing behavior?
Should change cursor to pointer to indicate that icon is clickable.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular-4.3.0
material-2.0.0-beta.8 (probably all versions)
chrome
macosx
Is there anything else we should know?

The prefix and suffix aren't necessarily for icons, they can also be used for text. This would be handled better on the consuming side.

Good point! I will close this issue!


wiener_lpdf parameter order

There are some inconsistencies in the ordering of the parameters in the wiener_lpdf code (see lines 109, 115, 121-122): https://github.com/stan-dev/math/blob/3a080d74172c19f7eb9e7339214bcc4e2847c3bb/stan/math/prim/prob/wiener_lpdf.hpp
It's unclear (and probably unlikely) that this affects the functionality, but is worth noting. In general, the parameters are presented in this order: alpha, tau, beta, delta. But in some cases they are presented in a different order (alpha, beta, tau, delta; see lines 109, 115, 121-122). Ideally the former order should be preserved throughout the code.

This definitely does not affect the functionality, but could be something to address if it would improve readability.

Thanks for the quick reply. Definitely would improve readability. I figured as much about the functionality.


[Launcher] Use default config files instead of sample files

Hello @drewrip @albertoperdomo2 ,
I updated a bit the launcher following @albertoperdomo2 's previous PR to use a xxx.default file that contains everything and a xxx.custom file, where we can customize values.
I think that's better than xxx.sample -> xxx, because with the .sample file, it's easy to have issues when a new value is added, but users don't update their xxx file. Example: the has_toolbox script.

good addition! 👌🏽


Nog is still called WWM in notification area

**Version (which release did you use?)
c8ee70b - Development Build
Describe the bug
Nog is still call WWM in notification area.
To Reproduce
Steps to reproduce the behavior:

Go to notification area
Hover mouse over nog icon
Shows WWM

Expected behavior
It should show NOG
Actual behavior
It shows WWM

Thank you!


FFmpeg failed to read

Solved every issue so far, but after tying to generate subtitles I get this error
FFmpeg failed to read "C:\Users\user\AppData\Roaming\Blackmagic Design\DaVinci Resolve\Support\Fusion\Scripts\Utility\audio.mov".
Anyone have any idea on how to solve? Thanks

Solved it by opening CMD and running pip install ffmpeg-python

Solved it by opening CMD and running pip install ffmpeg-python


Table Iteration ends after the second iteration as the NextPageLink is empty

Issue description
Opening this issue following resolution of #57
The error message "uri cannot be empty" is no more present.
However, following the second iteration, the links (NextPageLink, PreviousPageLink, FirstPageLink and LastPageLink) are all empty, so the iteration process after the second step
Use Case
What problem would this feature solve?
Correct behavior of the Iteration process
Proposed Solution
Fill the links each time the GET calls in the iteration process are performed
Additional Context
Code for reproducing the issue (got more that 16000 items to retrieve):
import (
    "fmt"
    snowcred "github.com/michaeldcanady/servicenow-sdk-go/credentials"
    servicenow "github.com/michaeldcanady/servicenow-sdk-go"
    snowtable "github.com/michaeldcanady/servicenow-sdk-go/table-api"
)

func main() {
    cred := snowcred.NewUsernamePasswordCredential(username, password)
    client := servicenow.NewServiceNowClient(cred, instance)
    fmt.Printf("fetching ServiceNow Computers\n")
    pathParameters := map[string]string{
        "baseurl": client.BaseUrl + "/now",
        "table":   "cmdb_ci_computer",
    }
    requestBuilder := snowtable.NewTableRequestBuilder(client, pathParameters)
    params := &snowtable.TableRequestBuilderGetQueryParameters{
        Limit: 10,
    }
    result, err := requestBuilder.Get(params)
    if err != nil {
        fmt.Printf("unable to GET table %s in ServiceNow: %s\n", "cmdb_ci_computer", err)
        return
    }
    fmt.Printf("fetched devices count: %d\n", len(result.Result))
    pageIterator, err := snowtable.NewPageIterator(*result, client)
    if err != nil {
        fmt.Printf("error on NewPageIterator: %s\n", err)
        return
    }
    cis := []string{}
    iterateErr := pageIterator.Iterate(func(pageItem *snowtable.TableEntry) bool {
        ci, inerr := pageItem.Value("sys_id").ToString()
        if inerr == nil {
            cis = append(cis, ci)
        }
        return true
    })
    if iterateErr != nil {
        fmt.Printf("error on Iterate: %s\n", iterateErr)
        return
    }
    fmt.Printf("Fetched CIs = %d\n", len(cis))
}

Results:
fetching ServiceNow Computers
fetched devices count: 10
Fetched CIs = 20

Related Issues
Follows #57
Version
Checklist
Before submitting this feature request, please make sure you have completed the following:

[x]  I have searched for similar feature requests in the repository's issue tracker.
[x]  I have checked the latest version of the Go SDK to see if this feature already exists.
[x]  I have provided a clear and descriptive title for this feature request.
[x]  I have provided a detailed description of the feature and its use case.
[x]  I have provided any relevant additional context or examples.
[x]  I have linked any related issues or pull requests.

Thank you for your submissions! I have tested it now with a total of 855

So with any hope it should be good to go! Thank you for your submissions!


Add home key for stackdriver-exporter

The key "home" is needed for ci testing, but it's missing in this yaml.

/assign @mattfarina


[11.x] Suggest laravel/serializable-closure on Database component

@crynobone hi, why just suggest??
A third party package only uses "illuminate/database": ">=5.6 <12.0", but 11.x doesn't has laravel/serializable-closure as requirement, but it seems that it is being used on 11.x
Message was: "Class "Laravel\SerializableClosure\Support\ReflectionClosure" not found" at
vendor\illuminate\support\Onceable.php:66
vendor\illuminate\support\Onceable.php:34
vendor\illuminate\database\Eloquent\Concerns\PreventsCircularRecursion.php:29
vendor\illuminate\database\Eloquent\Concerns\HasRelationships.php:795
vendor\illuminate\database\Eloquent\Model.php:1204
vendor\illuminate\database\Eloquent\Model.php:1174
tests\Unit\HasManyTest.php:401

CC: @driesvints


Knockout template rendering

I'm using CLNDR in a knockout project and ported the standard template to knockout to see if it was feasible. No need for underscore (or any other templating language) if you already use knockout. The code is available here https://github.com/karl-sjogren/clndr-knockout

@karl-sjogren I just updated the Readme with a link to your project: https://github.com/kylestetz/CLNDR#template-rendering-engine


Add sensors for PWM controller MAX31790

Add fan speed and fan fault sensors for the PWM controller MAX31790.

Rebased to resolve merge conflicts.

Add the fallthrough statements and rebased onto main.

@GeorgeCGV Could you please revisit this PR?

@aasinclair Could you please take another look at this one?

@GeorgeCGV @aasinclair Sorry guys, had to rebase onto main due to a merge conflict.

Rebased onto main to resolve merge conflicts.

@anangl Ready to merge?


Only Partial Maven Upgrade

Hey there,
I'm enjoying dependabot since yesterday.
However, it made some PRs on my Maven Project which broke the builds.
The reason was that it promoted an upgrade from JUnit 5.4.2 to 5.5.2 but ONLY for the Engine, not for the API. I therefore had a missmatch and my builds failed.
Same happened for Log4J2.
Old Dependency (Fine):
 <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-api</artifactId>
        <version>2.11.2</version>
</dependency>
<dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-core</artifactId>
        <version>2.11.2</version>
</dependency>

Proposed PR (Breaking):
 <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-api</artifactId>
        <version>2.11.2</version>
</dependency>
<dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-core</artifactId>
        <version>2.12.1</version>
</dependency>

Should be Result (Fine):
 <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-api</artifactId>
        <version>2.12.1</version>
</dependency>
<dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-core</artifactId>
        <version>2.12.1</version>
</dependency>

Dependabot only promoted one change, not both.
The Maven Issues here are also a little cryptic, as its throwing ClassNotFound-Exceptions but whatsoever thats a maven/java problem.

👋 Sorry for the slow reply.
Closing as a duplicate of:

#1296


Add Credo + Reviewdog

Description
Added credo + reviewdog to comments from credo in github
Checklist

[x] Everything passes when running mix test
[x] Ran mix format
[x] No frontend compilation warnings

The Gh action doesnt seem to work properly :disappointed:


Use SSH Agent Auth

We should use ssh-agent auth and only prompt for a password if necessary

Fixed by https://github.com/clly/commando/pull/2


i18n(es): translate file-tree

Description

What does this PR change? Give us a brief description.
Translates file-tree to spanish

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

es
components/file-tree.mdx
Localization added, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Nice catch @HiDeoo, all suggestions have been applied 😁


Messy syntax highlighting in comments of .inc files (php).

File in question: https://raw.githubusercontent.com/backdrop/backdrop/1.x/core/includes/ajax.inc

This is by design because .inc files are set to be detected as pascal files.
Just change your settings.

That did it, thanx!


feat: improve object storage cache

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
Improve object storage local cache:

Replace the lru crate with moka for memory cache management.
Modify the cache capacity unit from the number of entries to the size in bytes on the disk.  The default capacity is 256 Mib.
Implement the async_eviction_listener in moka to remove the evicted files.
Invalidate both the memory and disk cache when deleting or writing files.
Add gauges metric for the cache.

Checklist

[x]  I have written the necessary rustdoc comments.
[x]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)
Partial work of #2516

@evenyag @waynexia PTAL

@evenyag Applied the suggestions, thank u. PTAL.


Create IC module

This PR includes

adding the illumination correction module
adding the CP pipeline to calculate, perform IC, and save images
creating a utils folder with all functions to call in notebooks/py files
edit main README to reflect new added module
edit download data module import library to reflect utils module

@d33bs Can you give a last review and approve before I merge? I changed a lot!

@gwaybio @d33bs @axiomcura
I will be merging this now! Thank you for the reviews! 😄


shell_exec('dep deploy') no execute when i use web client

a.php：
shell_exec('dep deploy');
b.php:
shell_exec('mkdir b');
my deploy's version is 6.0.3.
when i use php cli mode to execute command "php a.php", it works.
but when i want to use webhook to send a request to http://xxx.com/a.php
it doesn't work,
but when i send request to http://xxx.com/b.php,
it works,
the permissions of nginx and php-fpm's user is the same as snapshot
use linux centos 6.8

help me please

Try to use full path to dep.
exec which "dep" and copy full path and try again.

just nothing.
i edited a.php with full path like this:
shell_exec('/home/gosuncn/hook/dep deploy');
but it doesn't work also.
and i try to edit deploy.php to generate a task A
and then edited a.php：
shell_exec('/home/gosuncn/hook/dep A');
it doesn't work.
i find php-fpm's error.log and nginx's error.log,
and there are no errors in these logs.
Is deployer the problem？

Try php -f "/home/gosuncn/hook/deploy.php"

Try this: php -r ‘/home/gosuncn/hook/dep’


fix btce private api

add param 'method' to param api for btce

I wonder whether this will transpile to PHP/Python correctly... I thought we should enclose property names in quotes, to make them recognizeable by regexes in the transpile.js?
+                'nonce': nonce, method: path,

I wonder whether this will transpile to PHP/Python correctly...
Nope, it won't transpile like that, quotes should be there, I added them.

@tritoanst thanks!

We should describe these rules in a human-readable format somewhere. Maybe add something like a Contribution section to the README.md.

Should be a file named CONTRIBUTING according to GitHub...


Getting started

Is your feature request related to a problem? Please describe.
It would be great if you can make a video explaining how to start using it. May be I am too new to python but is is giving me errors.
Traceback (most recent call last):
File "C:\DATOS\BasuraTemporal\Portatil\Programación\Python\aplhavantage\alphavantage_api_client-main\alphavantage_api_client-main\app.py", line 1, in
from alphavantage_api_client import AlphavantageClient, GlobalQuote, Quote, AccountingReport, CompanyOverview, Ticker
File "C:\DATOS\BasuraTemporal\Portatil\Programación\Python\aplhavantage\alphavantage_api_client-main\alphavantage_api_client-main\alphavantage_api_client_init_.py", line 1, in
from alphavantage_api_client.client import AlphavantageClient
File "C:\DATOS\BasuraTemporal\Portatil\Programación\Python\aplhavantage\alphavantage_api_client-main\alphavantage_api_client-main\alphavantage_api_client\client.py", line 3, in
import requests
ModuleNotFoundError: No module named 'requests'
PS C:\DATOS\BasuraTemporal\Portatil\Programación\Python\aplhavantage\alphavantage_api_client-main\alphavantage_api_client-main>
Describe the solution you'd like
A hello world where you can get a quote and some more.
Describe alternatives you've considered
Reading the wiki was not enough for me
Additional context
Gracias

Hi Mike! According to the error, the ‘requests’ package is not visible to app.py. This most likely means you have not activated your environment where you installed the client. Can you confirm how you installed? Are you using pip, poetry, or something else?


Calling .batch() on a Dataset alters the input shape and leads to EfficientNet aborting training

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
2.17
Custom code
Yes
OS platform and distribution
ArchLinux
Mobile device
No response
Python version
3.12
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
GeForce RTX 4080
Current behavior?
Calling .batch() on a dataset as presented in the Prepare Inputs section of https://keras.io/examples/vision/image_classification_efficientnet_fine_tuning/#transfer-learning-from-pretrained-weights, leads to the input dataset changing shape from (None, 224, 224, 3) to (32, None, 224, 224, 3), where 32 is the chose batch size. This then gives a value error: ValueError: Input 0 of layer "efficientnetb0" is incompatible with the layer: expected shape=(None, 224, 224, 3), found shape=(32, None, 224, 224, 3).
If relevant, I am attempting to train a model on the IP102 dataset, which can be downloaded from https://www.kaggle.com/datasets/rtlmhjbn/ip02-dataset.
Standalone code to reproduce the issue
#Training and validation dataset locations
path_to_train_setbgr = pathlib.PosixPath(
    "../Insect Pest Classification Dataset/classification/trainbgr")
path_to_val_setbgr = pathlib.PosixPath(
    "../Insect Pest Classification Dataset/classification/valbgr")

IMG_SIZE = 224
size = (IMG_SIZE, IMG_SIZE)
BATCH_SIZE = 32
NUM_CLASSES = 102
epochs = 30

#Loading Dataset
train_ds = tf.keras.utils.image_dataset_from_directory(
    path_to_train_setbgr,
    label_mode="int",
    seed=1,
    batch_size=BATCH_SIZE,
    image_size=size)

val_ds = tf.keras.utils.image_dataset_from_directory(
    path_to_val_setbgr,
    label_mode="int",
    seed=1,
    batch_size=BATCH_SIZE,
    image_size=size)

#Data Augmentation Functions

img_augmentation_layers = [
    layers.Normalization(axis =-1, mean= [0.485, 0.456, 0.406], variance=[0.229, 0.224, 0.225]),
    layers.RandomRotation(factor=0.15),
    layers.RandomTranslation(height_factor=0.1, width_factor=0.1),
    layers.RandomFlip(),
    layers.RandomContrast(factor=0.1),
    layers.RandomCrop(height=IMG_SIZE, width=IMG_SIZE),
    layers.RandomBrightness(factor=0.1),
    layers.RandomZoom(height_factor=0.1)
]

def img_augmentation(images):
    for layer in img_augmentation_layers:
        images = layer(images)
    return images

# One-hot / categorical encoding
def input_preprocess_train(image, label):
    image = img_augmentation(image)
    label = tf.one_hot(label, NUM_CLASSES)
    return image, label

def input_preprocess_val(image, label):
    label = tf.one_hot(label, NUM_CLASSES)
    return image, label

#Applying data augmentation

train_ds = train_ds.map(input_preprocess_train, num_parallel_calls=tf.data.AUTOTUNE)
train_ds = train_ds.batch(batch_size=BATCH_SIZE,
                          drop_remainder=True)
train_ds = train_ds.prefetch(tf.data.AUTOTUNE)

val_ds = val_ds.map(input_preprocess_val, num_parallel_calls=tf.data.AUTOTUNE)
val_ds = val_ds.batch(batch_size=BATCH_SIZE, drop_remainder=True,)

#Defining the mode;=
model_B0 = EfficientNetB0(include_top=True,
                          weights=None,
                          classes = NUM_CLASSES,
                          input_shape=(IMG_SIZE, IMG_SIZE, 3))

model_B0.compile(optimizer='adam',loss='sparse_categorical_crossentropy',metrics=['accuracy'])

#Fitting the model
hist_1= model_B0.fit(train_ds, epochs=epochs, validation_data=val_ds)

Relevant log output
ValueError: Input 0 of layer "efficientnetb0" is incompatible with the layer: expected shape=(None, 224, 224, 3), found shape=(32, None, 224, 224, 3).

Calling .batch() is unnecessary if you already declare batch size when first declaring the model


Numpy has no module asscalar (still)

#43, #51 I still got a problem with:

File "/net/people/plg/pgkyl/lib/python3.8/site-packages/numpy/init.py", line 311, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'asscalar'

I tried upgrading postgkyl and installing postgkyl-experimental after 2022/10/07 merge (#50), neither of these worked. Now I try to downgrade numpy but it takes ages and still I don't know if it is going to work.
EDIT: I had no adiospy, only adios-python in my system, my Python is 3.8.13 (https://gkeyll.readthedocs.io/en/latest/install.html#postgkyl-install)

Hi @pjujeczko
I am sorry for the trouble. I think that the most likely reason for your issues is the dependency mixup. The bug you are experiencing is due to an old version of ADIOS NumPy wrapper and to fix this we have to switch to their own updated version which is available on conda-forge.
Our new conda release has updated dependencies so it will work straight out of the box for new installations. However, if you already have postgkyl install, I think there is no way around manually getting rid of the old modules first. So have to do this:
conda uninstall adiospy
conda install -c gkyl -c conda-forge postgkyl

Our documentation has been updated to reflect this: https://gkeyll.readthedocs.io/en/latest/install.html#installing-with-conda-preferred-for-non-developers
Please let me know if this helps!

The part about no adiospy is surprising. Have you done the uninstall I mentioned above?

Yes, I did this - things didn't work, however after I've done it again everything started working... Pgkyl plots figures. I work on HPC, I guess I messed something up by loading modules (I was trying to load older Python versions). Great thanks for the support!

Happy to hear that it is working for you know!


uriToFsPath: Failed to determine the current system.

Does this issue occur when all extensions are disabled?: Yes/No

Version: 1.92.0 (user setup)
Commit: b1c0a14de1414fcdaa400695b4db1c0799bc3124
Date: 2024-07-31T23:26:45.634Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19045
Steps to Reproduce:

Installing the vscode and remote-ssh extension
Connecting to a Remote Server

On the Windows client, open a Linux remote. In this case, the system type determined in uriToFsPath is Windows OS, and the obtained fsPath will convert / to\. But, actually, the system type is linux. In addition, I learned other scenarios to identify system types and remote environments.

Can this problem be fixed?

Hi, is there any progress on this issue? @alexr00 @roblourens

I don't understand the actual problem you see, please explain more


unrelated to js lib

not sure where to report bugs for the core notion app, so I just figured I would do it here
a few issues:
Command + A does not work. Given that its supported in virtually every text input field, it should be in notion
using the arrows to navigate text behaves very strangely, sometimes simply arrowing up does not work (eg it skips lines in a seemingly unpredictable manner)

<EMAIL_ADDRESS>for support, if you're on one of the paid plans. I don't know if that email address actively drops free tier requests.

its just a suggestion. I dont need support

Yeah, but it makes more sense to forward this to the support team so that they can track it internally on a relevant bug tracker. The current one is just focused on the JS/TS SDK.


Updated with more companies

Fixes #110
Innowave, Growin, XPandIT, VW, Carrot, BI4All, WaterDog, Foreteller were added to the list.
BOLD and Syone were already there.

Thanks @afonsojramos! Awesome new companies! ⭐


[0.7] Problem with the undo/redo method

Hi,
I am currently building an IDE using RichTextFX and when i use the method undo , redo it didnt work properly.
If you undo what you write it delete all the text you write normaly it only delete the last word or the last line.
If you don't do any action like copy/paste/cut on the code the undo method will clear all the code area even if u tiped 1000 lines.
Hope u will understand !
Windows 10 x64, coding with NetBeans.
I'm using the RichTextFX FatJar version 0.7

@eliottizi I'm going to try clarifying what you've written. Is this correct?

Add text to the area by manually typing content into it. In other words, don't copy/paste something.
Call undo via CTRL + Z and undo your work

Expectation: delete the last word on the last line

My guess is that every time you input something via the keyboard, the previous undo is merged with the new change you have done (e.g. added a character). i think if you pause for a bit, it stops this, but I've never fully understood how this part of the code works.

Yes, if subsequent edits "touch" or overlap each other, they are merged. As a consequence (that I haven't realized until now), if you start with an empty document, every edit will be merged into the previous one. Pausing will not help. We might want to provide a more meaningful default behavior. In the meantime, you can invoke area.getUndoManager().preventMerge() manually. A reasonable time to invoke it might be after the user paused typing for a second or two. See e.g. Trigger processing after a period of inactivity for how to do it.

Yes that's it @JordanMartinez  !
I will try it @TomasMikula .
Thanks for your answers guys ;)

@TomasMikula We could quickly implement such an idea via a StateMachine that stores a boolean (false = do not merge changes; true = merge changes when possible) for determining whether to preventMerge or not:

initial state = false
user starts typing: state = true; a timer starts
if user types before timer ends, timer restarts
if timer finishes, state = false
if any other text manipulation occurs (e.g. cut, paste, developer-made function), state = false & timer is cancelled.

However, I see one type of bug that could arise from this:

Let's say the user is typing some long text.
Before the timer runs out, the user calls some shortcut that will execute a custom developer-made text-manipulating function.
Since the state is still true, the new change might be erroneously merged with the user's typed-in-text change. This might be desired in some cases, but we'd need to document this possibility so developers are aware of it.

Closed by #530.


[FLINK-24227][connectors/kinesis] Kinesis DataStreams connector using Kinesis async client

What is the purpose of the change
User stories:
As a Flink user, I’d like to use Kinesis Data Streams as sink for my data pipeline.
Context:
The AsyncSinkWriter currently has a static batch size. We’d like to allow Sink users to specify what batch size they would like to use as they are in a better place to choose a batching logic/size for their needs. We’d like to also allow Sink developers to make use of the provided configuration mechanism for their Sink implementations.
Scope:
Implement an asynchronous sink for Kinesis Data Streams (KDS) by inheriting the AsyncSinkBase class. The implementation can for now reside in its own module in flink-connectors. The module and package name can be anything reasonable e.g. flink-connector-aws-kinesis for the module name and org.apache.flink.connector.aws.kinesis for the package name. Side-note: There will be additional work later to move these implementations somewhere else (see theongoing discussion) (http://mail-archives.apache.org/mod_mbox/flink-dev/202106.mbox/<CAGZNd0EbmGuD327_J4GvDyaOygaewXmjZ9KZN33Fv0v+J8gCcg@mail.gmail.com>).
The implementation must use the Kinesis Java Client (https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/kinesis/AmazonKinesisClient.html).
The implementation must allow users to configure the Kinesis Client, with reasonable default settings.
Implement an asynchornous sink writer for KDS by extending the AsyncSinkWriter. The implementation must deal with failed requests and retry them using the requeueFailedRequestEntry method. If possible, the implementation should batch multiple requests (PutRecordsRequestEntry objects) to KDS for increased throughput. The implemented Sink Writer will be used by the Sink class that will be created as part of this story.
Unit/Integration testing. Use Kinesalite (in-memory Kinesis simulation). We already use this in KinesisTableApiITCase.
Java / code-level docs.
Brief change log
Added Kinesis Data Streams Sink into a new module flink-connectors/flink-connector-kinesis-async
Edit: flink-connectors/flink-connector-kinesis-async is now flink-connectors/flink-connector-aws (as of 2021-10-01)
Verifying this change
This change added tests and can be verified as follows:
Added integration tests set up with Kinesalite
Does this pull request potentially affect one of the following parts:
Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): yes
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no
Documentation
Does this pull request introduce a new feature? yes
If yes, how is the feature documented? JavaDocs

LGTM


changements cosmetiques

(double lettre, anglicisme, etc)

Coverage remained the same at 61.882% when pulling a2feb065924ef4995932093802bc2405e1153372 on lumibd:patch-1 into a2d66f46758747f111c4e8c86c5dad13383581a9 on codecombat:master.


CASSANDRA-17252 connection limit handler may leak per ip count 3.0

See CASSANDRA-17252

Committed.


Crop bug if Ratio width < height

I tested with ratio: Ratio(width: 2, height: 3) and the cropped image does not match.
It works with square and width > height.

Hello, I faced the same issue earlier, I understand the core code and made changes in one of the file in library. then its works fine
Please do changes in that file and check

in calculate_on_crop_params.dart file
-caclulateOnCropParams function

replace below code at the end , It will definitely works,
I made changes in cropSizeHeight, cropSizeWidth parameter  according to aspect ratio
final double cropSizeWidth;
final double cropSizeHeight;
if (aspectRatio > 1) {
cropSizeWidth = cropSizeMax;
cropSizeHeight = cropSizeWidth / aspectRatio;
} else {
cropSizeHeight = cropSizeMax / aspectRatio;
cropSizeWidth = cropSizeHeight * aspectRatio;
}
return OnCropParams(
cropSizeHeight: cropSizeHeight,
cropSizeWidth: cropSizeWidth,
translateScale: translateScale,
scale: scale,
);
Thanks

Also face the same issue
@ikbendewilliam please take a look

@TarasBounty , Please check my answer, It will help you as i faced it and solve

@RockyPanchal Thanks, I saw it. Hope @ikbendewilliam will fix it in the next package release and we can use it without a "fork workaround"

Currently we are very busy with projects, if you have a fork with a fix, please create a PR so we can have this fix available for everyone :-)

Currently we are very busy with projects, if you have a fork with a fix, please create a PR so we can have this fix available for everyone :-)

@RockyPanchal

Fixes have been merged and published in v0.1.0


use now() method in VirtualTimeScheduler::schedule

Will change nothing for VirtualTimeScheduler itself but will fix clock offset issue in EventLoopScheduler
Clock is often out of sync when I use EventLoopScheduler, this patch seems to fix all my troubles.

Coverage remained the same at 96.164% when pulling 96079ac6190a5df9c475d96bf772f0d374ce1321 on etienneroudeix:master into aa8357bad2ed4b5094aa14a89d8d8a7e51941d25 on ReactiveX:master.

@etienneroudeix I took a look at this andnow() returns $this->time so I don't see how this change could make any difference.
Can you provide more information on the issue you're experiencing, with code to reproduce the problem?  What is the actual behavior?  What is the expected behavior?

Hello @davidwdan, I'll take time to ease my code and remove my own dependecies to provide an actual buggy sample.
now() returns $this->time in VirtualTimeScheduler but not in EventLoopScheduler  which get real timestamp from system.

@davidwdan here is an example script.
It just needs ```rx/http: ^0.2.0```` library to have a loop
The script also uses demo bootstrap.
<?php
require_once __DIR__ . '/demo/bootstrap.php';

// need rx/http: ^0.2.0

class EndlessSubject extends \Rx\Subject\Subject
{
    function onCompleted()
    {
    }
}

$loop = \EventLoop\EventLoop::getLoop();

printf("[%s]Start\n", date ('H:i:s'));

$subject = new EndlessSubject();
$subject
    ->lift(function () {
        // the idea here is to do not noify next until we had 10 seconds without any further data
        return function (
            \Rx\ObservableInterface $observable,
            \Rx\ObserverInterface $observer,
            \Rx\SchedulerInterface $scheduler = null
        ) {
            $buffer = [];

            if ($scheduler === null) {
                throw new \Exception("You must use a scheduler that support non-zero delay.");
            }

            $doOnDelay = function () use ($observer, &$buffer) {
                $observer->onNext($buffer);
                $buffer = [];
            };

            $rescheduleDelay = function () use (&$doOnDelayDisposable, $scheduler, $doOnDelay) {
                if (isset($doOnDelayDisposable)) {
                    printf("[%s]Cancel previous scheduler\n", date ('H:i:s'));
                    $doOnDelayDisposable->dispose();
                }

                printf("[%s]Schedule onNext in 10 sec\n", date ('H:i:s'));
                $doOnDelayDisposable = $scheduler->schedule($doOnDelay, 10000);
            };

            return $observable->subscribe(new \Rx\Observer\CallbackObserver(
                function ($x) use ($observer, $rescheduleDelay, &$buffer) {
                    $buffer[] = $x;
                    $rescheduleDelay();
                },
                function ($err) use ($observer, $rescheduleDelay) {
                    $rescheduleDelay();
                    $observer->onError($err);
                },
                function () use ($observer, $rescheduleDelay) {
                    $rescheduleDelay();
                    //$observer->onCompleted();
                }
            ));
        };
    })
    ->subscribeCallback(
        function ($data)  {
            printf("[%s]Got final results\n", date ('H:i:s'));
            print_r($data);
        },
        null,
        null,
        new \Rx\Scheduler\EventLoopScheduler($loop)
    );

$observable = \Rx\Observable::create(function (\Rx\ObserverInterface $observer) use ($loop) {
    $observer->onNext('1');
    $loop->addTimer(1, function () use ($observer) {
        $observer->onNext('1');
    });
    $loop->addTimer(3, function () use ($observer) {
        $observer->onNext('2');
    });
    $loop->addTimer(5, function () use ($observer) {
        $observer->onNext('3');
    });
    $loop->addTimer(9, function () use ($observer) {
        $observer->onNext('4');
        $observer->onCompleted();
    });

})->multicast($subject);

//$observable->subscribe($subject);
$observable->subscribeCallback(
    function ($data) {
        printf("[%s]Got 1 result : %s\n", date ('H:i:s'), $data);
    }
);

$observable->connect();

if you run this script with current version you got:
[17:30:05]Start
[17:30:05]Schedule onNext in 10 sec
[17:30:05]Got 1 result : 1
[17:30:06]Cancel previous scheduler
[17:30:06]Schedule onNext in 10 sec
[17:30:06]Got 1 result : 1
[17:30:08]Cancel previous scheduler
[17:30:08]Schedule onNext in 10 sec
[17:30:08]Got 1 result : 2
[17:30:10]Cancel previous scheduler
[17:30:10]Schedule onNext in 10 sec
[17:30:10]Got 1 result : 3
[17:30:14]Cancel previous scheduler
[17:30:14]Schedule onNext in 10 sec
[17:30:14]Got 1 result : 4
[17:30:20]Got final results
Array
(
    [0] => 1
    [1] => 1
    [2] => 2
    [3] => 3
    [4] => 4
)

The final display did not actually wait for 10 seconds but only 6
Whereas with the fix I submitted :
[17:30:40]Start
[17:30:40]Schedule onNext in 10 sec
[17:30:40]Got 1 result : 1
[17:30:41]Cancel previous scheduler
[17:30:41]Schedule onNext in 10 sec
[17:30:41]Got 1 result : 1
[17:30:43]Cancel previous scheduler
[17:30:43]Schedule onNext in 10 sec
[17:30:43]Got 1 result : 2
[17:30:45]Cancel previous scheduler
[17:30:45]Schedule onNext in 10 sec
[17:30:45]Got 1 result : 3
[17:30:49]Cancel previous scheduler
[17:30:49]Schedule onNext in 10 sec
[17:30:49]Got 1 result : 4
[17:30:59]Got final results
Array
(
    [0] => 1
    [1] => 1
    [2] => 2
    [3] => 3
    [4] => 4
)

I waited 10 seconds
Thank you for you feedbacks

This is happening because there is scheduling outside of the event loop scheduler (with $loop->addTimer(...)). When the scheduler no longer has events scheduled, it stops running, so the clock does not get updated anymore. The first action scheduled after the scheduler has stopped will be scheduled relative to the last action from before the scheduler was stopped.
Here is a more simplistic example that generates the same issue:
<?php

require_once __DIR__ . '/vendor/autoload.php';

use React\EventLoop\Factory;
use Rx\Scheduler\EventLoopScheduler;

$loop = Factory::create();

$scheduler = new EventLoopScheduler($loop);

function echoWithTime($x) {
    printf("[%s] $x\n", date ('H:i:s'));
}

$scheduler->start();

echoWithTime(1);

$loop->addTimer(2, function () use ($scheduler) {
    $scheduler->schedule(function () {
        echoWithTime(2);
    }, 2000);
});

$loop->run();

This outputs 2 lines that are 2 seconds apart. Intuitively, they should be 4 seconds apart.
The reason VirtualTimeScheduler uses clock instead of now is to make the entire action execute while the clock is not moving. If this is changed to now() then the clock will drift during execution.
This problem is much more likely to cause unexpected results so it makes sense to make this change to now(). And for consistency, we should consider the same change in scheduleRelativeWithState.
@etienneroudeix - Would you be willing to write a test?

Coverage increased (+0.9%) to 97.062% when pulling dbb22f6557530439e744f89f520f3838deeaeff7 on etienneroudeix:master into aa8357bad2ed4b5094aa14a89d8d8a7e51941d25 on ReactiveX:master.

@mbonneau just added a test, I made it with small timer (100ms) to avoid extending test time too much. I had to allow a 0.02 tolerance in assertion otherwise it was failing on your travis php 5.6 environnement (see https://travis-ci.org/ReactiveX/RxPHP/jobs/167594028).
I hope this is the kind of test you expected ?

Coverage remained the same at 96.164% when pulling 126b251fd713c81364bff24963696d983658963b on etienneroudeix:master into aa8357bad2ed4b5094aa14a89d8d8a7e51941d25 on ReactiveX:master.

LGTM

@etienneroudeix - This is great - and a good catch.


When the provider interrupts abnormally, the consumer cannot return quickly and still waits for the timeout to end

[√] I have searched the issues of this repository and believe that this is not a duplicate.
[ ] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.3
Operating System version: Windows 10
Java version: Oracle JDK 1.8

Steps to reproduce this issue

set @Reference(timeout = 10000)
kill -9 provider

Pls. provide [GitHub address] to reproduce this issue.
Expected Result
fast return when timeout is not reached
Actual Result
What actually happens?
the consumer returns until the timeout ends
detail see #1968

#1968

dup of #4699


fix: add sql files to watch ignore

Fix #87
@mcollina @marcopiraccini Since we don't want to watch .sql files, maybe it's better to watch only .js, .mjs, .json files instead of ignoring all others in watch ignore. There can be a lot of configs, docs, etc files that shouldn't trigger server reload. WDYT?

The migrations folder, which is controversial because, when you create a new migration with and editor it could save an empty file first and that would run)

As I understand we decided to not watch the migration files here #84.

Essentially, we need to move from an ignore list to an allow list. Could you make that change?

Yes, that is exactly what I suggested.

Close in favor #147


Process value add

Added the values from the wingdi.h#L3628 repository

@facebamm : Thanks for your contribution! The author(s) have been notified to review your proposed change.


rebuild the action in dist/ in order to get rid of set-output deprecations

In 07ee17f53d4cabcc2435b1e63dd611799f8d0adf you have updated the dependency on @actions/core to 1.10 which would have added support for the new GITHUB_OUTPUT way of setting outputs.
Unfortunately, the file that actually gets executed by GitHub (dist/index.js) has not been updated and thus the deprecation warnings remained.
Also in 07ee17f53d4cabcc2435b1e63dd611799f8d0adf you update the dependency to @actions/github which has changed its API a bit. This is also fixed in this PR.
This PR adds the needed build dependencies to rebuild dist/index.js and rebuilds is in order to actually stop the set-output related deprecation warnings.

This is actually failing. ncc doesn't handle OSSL properly.
ncc: Compiling file index.js into CJS
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:140:10)
    at hashOf (/home/rafaelgss/repos/os/create-deployment/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:37:1855992)
    at ncc (/home/rafaelgss/repos/os/create-deployment/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:37:1860457)
    at runCmd (/home/rafaelgss/repos/os/create-deployment/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:55128)
    at 819 (/home/rafaelgss/repos/os/create-deployment/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:51698)
    at __webpack_require__ (/home/rafaelgss/repos/os/create-deployment/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:59048)
    at /home/rafaelgss/repos/os/create-deployment/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:59260
    at /home/rafaelgss/repos/os/create-deployment/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:59321
    at Object.<anonymous> (/home/rafaelgss/repos/os/create-deployment/node_modules/@vercel/ncc/dist/ncc/cli.js:8:28) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}


Detach this fork

Since this repo is the new future of the project, this fork should be detached and converted into an independent repository.

Yep, just asked support for this.


Insure default resource requirement values are set correctly (resolves #1119)

First commit modifies sort test to cover this bug.

@cket and I discussed this. He wants to try out a property-based approach that relies on config being injected during unpickling.

Closing, continuing in #1133


URL parameters are rendered with sanitized quotes

I have some js that depends on a URL set in an Env variable. I pass it as a string parameter to my my component and then use a script component to run the actual js.
// HTML component
templ myComponent(url string) {

 ....

}

// Script component
script myScript(url templ.SafeURL) {
...
}

myComponent(os.Getenv("URL_VAR").Render(ctx, w)

The problem is the url is always rendered like this in the final html
<div onload="__templ_myScript_bab0("http://<IP_ADDRESS>:8090")">

This obviously breaks my JS code as it's not a valid URL...
What's the best way to pass URLs like this to JS?

Hi, thanks for trying out templ.
I've tried to reproduce the issue here https://github.com/a-h/templ-issue-165 - but for me, it appears to be working fine.
package main

script show(message string) {
	alert(message)
}

templ page(message string) {
	<!DOCTYPE html>

		<title>Test</title>

Test

			<input type="button" value="Click me" onclick={ show(message) }/>

}

It renders out to this (I ran it through a formatter for legibility):
<!doctype html>

      <title>Test</title>

Test

      <input type="button" value="Click me" onclick="__templ_show_3e0b("https://www.google.com")">

And clicking the button shows the expected URL.

What error are you seeing?

Ok. Looks like the URL is represented correctly when it reaches my script. I guess I was doing something wrong before. I just thought it was weird that it is represented as unescaped in the event declaration.
i.e. onclick="__templ_show_3e0b("https://www.google.com")"
Thanks again.

Closing


Install as Progressive Web App

Install GitProfile as a Progressive Web App. PWA Vite Plugin can be used.

I would like to solve this issue. Kindly assign this task to me

Done.

@joanjeremiah Any update on this?

I tried vite plugin and also react pwa template service registers. I couldn't make it work. I am still trying.

I've taken a shot at this issue. Using the PWA vite plugin. #319


Update style check CI job descriptions

The overall label "Shellcheck" somewhat hid the clippy and rustfmt runs underneath, so change it to "Style and Linters"

@bors r+

:pushpin: Commit dd9f0991166bb58b7933f99b634edb481b3b7e6c has been approved by JohnTitor

:hourglass: Testing commit dd9f0991166bb58b7933f99b634edb481b3b7e6c with merge 17b0682f9c517fd05c3a14faf5b671e813894e22...

:sunny: Test successful - checks-actions
Approved by: JohnTitor
Pushing 17b0682f9c517fd05c3a14faf5b671e813894e22 to master...