GooglePay - PaymentConfiguration was not initialized.

Bug Description
When running initGooglePay on Android the app immediately crashes and throws this error:

To Reproduce
Removing this block of code stops the app from crashing, so the issue lies here:
componentDidMount() {
  initGooglePay({
    testEnv: true,
    merchantName: 'Test App',
    countryCode: 'US',
  })
    .then(response => {
      console.log('response', response);
    })
    .catch(err => {
      console.log('error', error);
    });
}

Expected behavior
This should return a response which will allow the app to render the google pay button.
Test Device:

Device: Samsung S20 Ultra
OS: Android
Version: 10

Additional setup information:
package.json:
"@stripe/stripe-react-native": "^0.2.2",
"react": "17.0.2",
"react-native": "0.66.0",
app/build.gradle:
implementation 'com.google.android.gms:play-services-wallet:18.1.3'
build.gradle:
minSdkVersion = 21
compileSdkVersion = 30
targetSdkVersion = 30
If there is anything else I can provide to help identifying the issue let me know. If anyone knows a workaround could you post a fix please?

I found the issue and I am closing this as it has nothing to do with the library the issue was my app. I had code in build.gradle to use the exo player for playing video and had code which turned out was not needed.
// jcenter repository is deprecated: https://developer.android.com/studio/build/jcenter-migration
        //noinspection JcenterRepositoryObsolete
        jcenter() {
            content {
                // however, react-native-video's native packages have not been migrated yet, so we keep this config for now
                includeModule("com.yqritc", "android-scalablevideoview")
                includeModule("com.google.android.exoplayer", "extension-okhttp")
                includeModule("com.google.android.exoplayer", "exoplayer")
                includeModule("com.google.android.exoplayer", "exoplayer-core")
                includeModule("com.google.android.exoplayer", "exoplayer-dash")
                includeModule("com.google.android.exoplayer", "exoplayer-hls")
                includeModule("com.google.android.exoplayer", "exoplayer-smoothstreaming")
                includeModule("com.google.android.exoplayer", "exoplayer-ui")
                includeModule("com.google.android.exoplayer", "exoplayer-extractor")
                includeModule("com.google.android.exoplayer", "exoplayer-common")
                includeModule("com.google.android.exoplayer", "exoplayer-transformer")
            }
        }

Removing this fixed Google Pay. In case anyone has this very specific issue it might save you some time.

Reopening as it turns out the above did not fix the issue. Could anyone please help with this issue?

Yeah, I'm having the same issue but not with all devices...

It looks like we resolved this on our end.
I removed the implementation 'com.google.android.gms:play-services-wallet:18.1.3' line and replaced it with only implementation 'com.stripe:stripe-android:18.2.0'.
Give it a shot. It's been a weird bug because I couldn't replicate it locally.

Hey @bill-pairaktaridis, I will give it a shot and report back to you. Thanks for posting a solution.

Also having the same issue with 0.2.3.
java.lang.IllegalStateException: PaymentConfiguration was not initialized. Call PaymentConfiguration.init().
    at com.stripe.android.PaymentConfiguration$Companion.loadInstance(PaymentConfiguration.kt:77)
    at com.stripe.android.PaymentConfiguration$Companion.getInstance(PaymentConfiguration.kt:69)
    at com.stripe.android.googlepaylauncher.GooglePayPaymentMethodLauncher.<init>(GooglePayPaymentMethodLauncher.kt:69)
    at com.stripe.android.googlepaylauncher.GooglePayPaymentMethodLauncher.<init>(GooglePayPaymentMethodLauncher.kt:170)
    at com.stripe.android.googlepaylauncher.GooglePayPaymentMethodLauncher.<init>(GooglePayPaymentMethodLauncher.kt:154)
    at com.reactnativestripesdk.GooglePayFragment.onViewCreated(GooglePayFragment.kt:62)
    at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:2987)
    at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:546)
    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
    at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
    at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
    at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
    at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:524)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:237)
    at android.app.ActivityThread.main(ActivityThread.java:8107)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)

Just dropping a note that this still crashes in 0.26.0.
I tried suggestions from this issue as well as the other two "PaymentConfiguration was not initialized" issues in this repo:

Swapping back and forth between initStripe and the provider method.
Delaying the initialization of Stripe.
All permutations of different dependency versions.
A million other things that filled up my weekend :/

The crash would even still occur if I limited isPlatformPaySupported calls to iOS only.
As observed by others it was device specific. My Pixel 4 never experienced a crash, but my Nexus 5x would crash maybe 95% of the time. In the end I just ended up disabling Google Pay in PaymentConfiguration.kt (see below). I know this isn't possible for most people, but we don't support Google Pay anyway and it was preventing us from releasing our latest version.
  @ReactMethod
  fun isPlatformPaySupported(params: ReadableMap?, promise: Promise) {
    promise.resolve("")
  }

Good luck y'all!

With version 0.35.0 of stripe, and 0.72.6 of react-native, this bug was observed in my case too. What worked however was to hide the  , unless the promise isPlatformPaySupported() resolves (to indicate available support), like
{!gPayDisabled && <PlatformPayButton
                type={PlatformPay.ButtonType.Pay}
                disabled={gPayDisabled}
                onPress={pay}
                style={{
                    width: "100%",
                    height: 60,
                }}
            />}

I have experienced the same issue and solved it by replacing StripeProvider with a custom provider that stores the state of the initialization. So we know if the stripe is ready before we call the isPlatformPaySupported.
The problem:
When StripeProvider initializes the SDK it doesn't await it neither provides a state of the initialization.
https://github.com/stripe/stripe-react-native/blob/888c6cb31d7a00b362832e0566ac2d08890e5445/src/components/StripeProvider.tsx#L68
The solution:
    const { isPlatformPaySupported } = useStripe();
    const [isInitialized, setIsInitialized] = React.useState(false);

    useEffect(() => {
        initStripe({
            publishableKey: "...",
        }).then(() => setIsInitialized(true));
    }, []);

   if (isInitialized) {
       isPlatformPaySupported();
   }

I have experienced the same issue and solved it by replacing StripeProvider with a custom provider that stores the state of the initialization. So we know if the stripe is ready before we call the isPlatformPaySupported.
The problem: When StripeProvider initializes the SDK it doesn't await it neither provides a state of the initialization.
https://github.com/stripe/stripe-react-native/blob/888c6cb31d7a00b362832e0566ac2d08890e5445/src/components/StripeProvider.tsx#L68
The solution:
    const { isPlatformPaySupported } = useStripe();
    const [isInitialized, setIsInitialized] = React.useState(false);

    useEffect(() => {
        initStripe({
            publishableKey: "...",
        }).then(() => setIsInitialized(true));
    }, []);

   if (isInitialized) {
       isPlatformPaySupported();
   }

It work for me.
My code like.
` const [isInitialized, setIsInitialized] = useState(false);
const initializeStripe = async () => {
if (isAndroid) {
await NativeStripeSdk.initialise({
publishableKey,
appInfo,
stripeAccountId,
threeDSecureParams,
urlScheme,
setReturnUrlSchemeOnAndroid,
});
} else {
await NativeStripeSdk.initialise({
publishableKey,
appInfo,
stripeAccountId,
threeDSecureParams,
merchantIdentifier,
urlScheme,
});
}
setIsInitialized(true);
};
initializeStripe();

  if (!isInitialized) {
return null; // or a loading spinner

}`

I have experienced the same issue and solved it by replacing StripeProvider with a custom provider that stores the state of the initialization. So we know if the stripe is ready before we call the isPlatformPaySupported.
The problem: When StripeProvider initializes the SDK it doesn't await it neither provides a state of the initialization.
https://github.com/stripe/stripe-react-native/blob/888c6cb31d7a00b362832e0566ac2d08890e5445/src/components/StripeProvider.tsx#L68
The solution:
    const { isPlatformPaySupported } = useStripe();
    const [isInitialized, setIsInitialized] = React.useState(false);

    useEffect(() => {
        initStripe({
            publishableKey: "...",
        }).then(() => setIsInitialized(true));
    }, []);

   if (isInitialized) {
       isPlatformPaySupported();
   }

It work for me. In my case code is.
`
const [isInitialized, setIsInitialized] = useState(false);
const initializeStripe = async () => {
if (isAndroid) {
await NativeStripeSdk.initialise({
publishableKey,
appInfo,
stripeAccountId,
threeDSecureParams,
urlScheme,
setReturnUrlSchemeOnAndroid,
});
} else {
await NativeStripeSdk.initialise({
publishableKey,
appInfo,
stripeAccountId,
threeDSecureParams,
merchantIdentifier,
urlScheme,
});
}
setIsInitialized(true);
};
initializeStripe();
if (!isInitialized) {
return null; // or a loading spinner
}
`

I have experienced the same issue and solved it by replacing StripeProvider with a custom provider that stores the state of the initialization. So we know if the stripe is ready before we call the isPlatformPaySupported.
The problem: When StripeProvider initializes the SDK it doesn't await it neither provides a state of the initialization.
https://github.com/stripe/stripe-react-native/blob/888c6cb31d7a00b362832e0566ac2d08890e5445/src/components/StripeProvider.tsx#L68
The solution:
    const { isPlatformPaySupported } = useStripe();
    const [isInitialized, setIsInitialized] = React.useState(false);

    useEffect(() => {
        initStripe({
            publishableKey: "...",
        }).then(() => setIsInitialized(true));
    }, []);

   if (isInitialized) {
       isPlatformPaySupported();
   }

It worked for me. In my case code like.
 const [isInitialized, setIsInitialized] = useState(false);
    const initializeStripe = async () => {
        if (isAndroid) {
            await NativeStripeSdk.initialise({
            publishableKey,
            appInfo,
            stripeAccountId,
            threeDSecureParams,
            urlScheme,
            setReturnUrlSchemeOnAndroid,
            });
        } else {
            await NativeStripeSdk.initialise({
            publishableKey,
            appInfo,
            stripeAccountId,
            threeDSecureParams,
            merchantIdentifier,
            urlScheme,
            });
      }
       setIsInitialized(true);
    };

  initializeStripe();

  if (!isInitialized) {
    return null; // or a loading spinner
  }


Consider making the PdfDocument struct public.

Detailed feature request
I am working on a project to render a pdf that has a lot of pages. I need to "recon" the document to get the number of pages and the sizes so that I can virtualize the process of getting the actual images. The PdfDocument struct would be perfect for this. Unfortunately, it is internal.
I understand the desire to keep the API simple but I feel there is a lot of value in exposing a few of the internals.

Hi @chrisg32,
as described in this previous issue I have no plans to make the internals public.
If you really REALLY want to access the PdfDocument class, you could use reflection like this:
var document = PdfDocumentReflection.Load(inputStream, null, true);
var size = PdfDocumentReflection.PageSizes(document);

public static class PdfDocumentReflection
{
    private static readonly Type _pdfDocumentType = typeof(PDFtoImage.Conversion).Assembly.GetType("PDFtoImage.Internals.PdfDocument")!;

    private static readonly MethodInfo _loadMethod = _pdfDocumentType.GetMethod("Load", BindingFlags.Public | BindingFlags.Static)!;

    private static readonly PropertyInfo _pageSizesProperty = _pdfDocumentType.GetProperty("PageSizes", BindingFlags.Public | BindingFlags.Instance)!;

    public static object Load(Stream stream, string? password, bool disposeStream) => _loadMethod.Invoke(null, [stream, password, disposeStream])!;

    public static IList<SizeF> PageSizes(object pdfDocument) => (IList<SizeF>)_pageSizesProperty.GetValue(pdfDocument)!;
}

But I don't see why you can't just call GetPageSize and cache its result. For batching purposes you can use the new method overloads like:
IEnumerable<SKBitmap> ToImages(Stream pdfStream, Range pages, bool leaveOpen = false, string? password = null, RenderOptions options = default)
or
IEnumerable<SKBitmap> ToImages(Stream pdfStream, IEnumerable<int> pages, bool leaveOpen = false, string? password = null, RenderOptions options = default)
Alternatively, you might want to check out PDFiumCore, which gives you to access the full potential of pdfium. PDFtoImage is just a small and simple API facade for conversion stuff.

@sungaila Thank you for the reply. Reflection was my fallback plan.
I appreciate your work on this library.


AggressiveInlining for custom markup extensions

Is your feature request related to a problem? Please describe.
We use around ~3k markup extensions in our app's markup - this is causing 10-100k redundant MarkupExtensions objects allocations on launch.
here is how x:Static works after xaml compilation for Data="{x:Static Icons.Bool_Union}”
 path.Data = Icons.Bool_Union;

here is how markup extension works forHeader="{Loc BoolOperations_Union}"
Loc loc = new Loc(LocKey.BoolOperations_Union);
  context.ProvideTargetProperty = HeaderedSelectingItemsControl.HeaderProperty;
  object obj6 = loc.ProvideValue((IServiceProvider)(object)context);
  context.ProvideTargetProperty = null;

Describe the solution you'd like
I see 2 solutions:

We want an attribute for MarkupExtension like [XamlAggressiveInlining]
some kind of custom x:Static extensions

Describe alternatives you've considered
usage of x:Static is an option, but adds a lot of boilerplate on a large scale.
Compare:
{Loc AppHeader} - with an 10-line markup extension code
{x:Static Loc.AppHeader} and large code-generated 10k lines Loc static class with all the possible Loc properties.
Additional context
No response

Pooling could be a simpler strategy for high-use extensions, such as localization. MarkupExtension should be short-lived: created, provide a value, and never used again.

It might be obsolete with .NET 9/10 optimizations, as these should eliminate short living objects.

this is causing 10-100k redundant MarkupExtensions objects allocations on launch

What about:
public class CustomMarkupExtension
{
  public static YoutReturn ProvideValue(IServiceProvider _, YourInput content)
  {
  }
}

Where it restricts markup extension, without allowing parameter options.

It might be obsolete with .NET 9/10 optimizations, as these should eliminate short living objects.

maybe sometime it will be implemented and maybe it will work in some cases, hopefully case above, but let's be real :)

maybe making a custom struct markup extension will work well, but still, the goal is not 4 lines of code, but 1, like x:Static.

What about:
public class CustomMarkupExtension
{
  public static YoutReturn ProvideValue(IServiceProvider _, YourInput content)
  {
  }
}

Where it restricts markup extension, without allowing parameter options.

Ah, that's the exact same idea I had in my (now rather long) todo list! StaticResource would perfectly match this pattern.

public static class FastMarkupExtension
{
    public static struct FastMarkupExtensionParameters
    {
        public IServiceProvider ServiceProvider; // optional, special naming
        public IProvideValueTarget ProvideValueTarget; // optional, special naming
        [ConstructorArgument]
        public string Arg1;
        public string Arg2;
    }
    public static string ProvideValue(ref FastMarkupExtensionParameters args);
}

Yep. Implemented inlining-friendly static resource extension, and it completely eliminated object allocation.
-       object? Old(IServiceProvider serviceProvider)
+       object? New(IServiceProvider serviceProvider)
        {
-           var ex = new StaticResourceExtension("SystemAccentColor");
+           var ex = new StaticResource2Extension("SystemAccentColor");
            return ex.ProvideValue(serviceProvider);
        }

-; Assembly listing for method AvaloniaApplication5.CustomTheme:Old(System.IServiceProvider):System.Object:this (FullOpts)
+; Assembly listing for method AvaloniaApplication5.CustomTheme:New(System.IServiceProvider):System.Object:this (FullOpts)
; Emitting BLENDED_CODE for X64 with AVX - Windows
; FullOpts code
; optimized code
; rsp based frame
; fully interruptible
; No PGO data
-; 0 inlinees with PGO data; 3 single block inlinees; 0 inlinees without PGO data
+; 0 inlinees with PGO data; 5 single block inlinees; 0 inlinees without PGO data

G_M000_IG01:
-       push     rbx
-       sub      rsp, 32
-       mov      rbx, rdx

G_M000_IG02:
-       mov      rcx, 0xD1FFAB1E
-       call     CORINFO_HELP_NEWSFAST
-       mov      rcx, 0xD1FFAB1E
-       mov      gword ptr [rax+0x08], rcx
-       mov      rcx, rax
-       mov      rdx, rbx
+       mov      rcx, rdx
+       mov      rdx, 0xD1FFAB1E

G_M000_IG03:
-       add      rsp, 32
-       pop      rbx
-       tail.jmp [Avalonia.Markup.Xaml.MarkupExtensions.StaticResourceExtension:ProvideValue(System.IServiceProvider):System.Object:this]
+       tail.jmp [Avalonia.Markup.Xaml.MarkupExtensions.StaticResource2Extension:ProvideValue(System.IServiceProvider,System.Object):System.Object]

-; Total bytes of code 54
+; Total bytes of code 19


[BUG] If Schedule Online Meeting selected after meeting creation invitees don't get the Teams link

Steps to reproduce:
Chair creates a meeting invitation. The invitee confirms the invitation. After that, the chair changes the meeting and creates a Teams link using schedule online meeting.
a) nothing else is changed. Then the invitees don't get any notification about this and they don't get the Teams link.
b) the meeting is moved to another date/time. Then the invitees get the "newly planned' invitation and the Teams link is shown there. But the Teams link will never be shown in the calendar entry of the invitee.
Any changes including the "Schedule Online Meeting" changes should be transparent for all invitees and should be properly shown in the corresponding calendars.

Duplicate of issue #109
When a user clicks the Save and Send Invitations button on a calendar entry, the code to actually send invitations (or updates to previously sent invitations) only runs if certain trigger fields have changed value.  These fields are subject, invitee(s), start date & time, end date & time, etc.  On a new calendar entry document these fields will change from blank to whatever new value is entered, so the invitations are sent.
  If you update an existing calendar entry document, but don't change values for any of the trigger fields, then update notifications will NOT be sent, even if you click the "Save and Send Invitations" button.
The DOMI code does NOT update any of these trigger fields when you create, update, or delete an online meeting.  The meeting location and meeting id fields are updated, but they are not trigger fields.
There are no plans to modify the Open Source DOMI code, as any such modification will cause DOMI to modify calendar information.
A workaround for this can be performed as a user training issue -which is to change the Subject of the calendar document (any non-whitespace change will work) whenever an online meeting is created, updated, or deleted.
I will refer this issue (and my response) to the Core Notes Development team so they are aware of it.

I spoke with Bruce Kahn, this is fixed for 12.0.1


fix for low decimals tokens

So fix is just to change ACC_TOKEN_PRECISION value?

Would be nice to have a unit test showing the behavior that was failing before.


Allow separating per-module symbols

Currently, esdoc put all exported symbols at the first level of the navigation hierarchy, except if you move a module to its own subdirectory; I was expecting subsections to be created respecting the natural modularization reflected by the file system.
For example, in a project I have to move src/utils.js to src/utils/index.js in order to go from

to

I find it odd to have to alter one's project file organization in order to structure apidocs navigation tree; would it be reasonable to expect an option allowing to respect the natural modularization?

This is difficult problem. Because classes are normally one per a file. So I am not using file name for navigation separater. But functions are one or plural per a file.

If functions are one per a file, file name for navigation separater is wordy

e.g. https://github.com/ReactiveX/RxJS/tree/master/src/operators

If functions are plural per a file, it is useful

e.g. https://github.com/Kinto/kinto.js/blob/master/src/utils.js

after I was troubled, I chose current navigation style.
Personally, I like one default export per a file. So one class / function is one file. If you want to collect utility functions, I proposal to define Util class and use static methods.
What do you think this?

The thing is, there's the concept of module, which is basically a collection of exported symbols, which can be classes, functions, constants, etc…; that's probably why you can export default and export… If find it really convenient to organize a codebase in modules [> submodules] > exported symbols.
Could we at least hope to eventually have an option to specify grouping, eg in esdoc.json?

If you want to collect utility functions, I proposal to define Util class and use static methods.

That would work, but would also defeat the whole purpose of ES6 modules imho :/

Also, I don't think using subfolders to detect modules/namespaces is a good idea, because that means esdoc suggests — well, in that case, enforces — static conventions for organizing the code hierarchy on the filesystem… I think it should work the other way around, esdoc should only rely on the ES6 module spec to generate and reflect the code modularization in the navigation hierarchy.

I understood your thought.

Could we at least hope for eventually having an option to specify grouping, eg in esdoc.json?

It is not best. Because each documentations are different looks.
I regard that current navigation style is simple than your proposal. So, I can not accept your proposal.
Sorry.

dir > identifier (I like this)

dir > file > identifier

I suggest you to use ESDoc API for your navigation style.

I'll dig into the plugin API and see if I can come with something :)
Thanks.

You can modify HTML using onHandleHTML in plugin.
Thank you for understanding.

I also have the same problem. I'm working on a project where everything is small composable functions. But they are all on the top level unless I move them into subdirectories.
Maybe the plugin API could offer a hook to assemble the directory index.


Prevent layout shift when scrollbars appear on OSs with non-floating scrollbars

Love this demo @leerob  :)
I noticed some layout shifting when the scrollbars appeared on the homepage but disappeared on the short bug ticket pages. `scrollbar-gutter' should sort this out!
This won't happen on an OS with 'floating' or disappearing scrollbars like macOS or iOS, but it will happen on Windows (or for Mac devs like me who have this setting turned on to catch this sort of thing:

Thank you!


Fix issue that marketplace, shared_gallery, vhd is not None when parameter is empty

Before fixing, if the runbook is like below, the azure_runbook,marketplace is not None though its each parameter is empty, this marketplace is invalid, so azure_runbook,marketplace should be None.
requirement:
azure:
marketplace:
publisher: ""
offer: ""
sku: ""
version: ""
vhd: ""https://vxxtralus.blob.core.windows.net/vhds/bvtpublisher1/bxxxT_Linux_Genxx_Success/27082023/blob-<IP_ADDRESS>3.vhd"
This PR is to fix this issue in this situation.

@LiliDeng LGTM, but it needs to test if there is regresion.


When cdkDropListOrientation="horizontal" under dir="rtl", then CdkDragDrop.previousIndex can be incorrect

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
When cdkDropListOrientation="horizontal" under dir="rtl", then CdkDragDrop.previousIndex can be incorrect.
like:

{{item}}

For example, I can't reorder (horiz list) properly, and can't move (horiz ro vert) list correctly:
https://stackblitz.com/edit/6om1jr-j3qhqe?file=src%2Fexample%2Fcdk-drag-drop-connected-sorting-example.html
https://stackblitz.com/edit/y3tacw?file=src%2Fexample%2Fcdk-drag-drop-connected-sorting-example.html
Reproduction
StackBlitz links:

(v16) https://stackblitz.com/edit/6om1jr-j3qhqe?file=src%2Fexample%2Fcdk-drag-drop-connected-sorting-example.html
(v17) https://stackblitz.com/edit/y3tacw?file=src%2Fexample%2Fcdk-drag-drop-connected-sorting-example.html

Expected Behavior
Should function correctly as cdkDropList(s) when orientation is vertical and dir="ltr"
Actual Behavior
Horizontal/rtl  cdkDropList is not dropping with correct index in its own list or to another list.
Environment

Angular: 16,17
CDK/Material: 16,17
Browser(s): chrome
Operating System (e.g. Windows, macOS, Ubuntu): macOS

There are a couple of reasons why it doesn't work:

You need to import either the BidiModule or the Dir directive, because that's what the drop list uses to figure out the direction.
You need to the dir="rtl" on the parent of the list. Setting it on the list itself seems to mess up the layout.

Here's a working fork of your repro: https://stackblitz.com/edit/y3tacw-qxeza8.

can the docs be updated to mention that importing the BidiModule is required


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v4.9.291",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2f18f97a1a787154a372c0738f1576f14b693d91"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "2f18f97a1a787154a372c0738f1576f14b693d91",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "usb: host: ohci-tmio: check return value after calling platform_get_resource()\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v4.9.291 by commit 2f18f97a1a787154a372c0738f1576f14b693d91. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1002230


[VM] Enhance vm open-port command

Closes #1982.

Breaking Change: Adds two more required parameters: --port and --priority. The old default of * doesn't make sense. Priority was static but now must be specified since the command could be reused.

Can we make priority optional?
If I've just run az vm create and then do az vm open-port, not sure if I'd know what priority to use.

@derekbekoe That would be ideal if it was reasonable to allow.

Can we include an example of a port range in the help for this param?
Will any of these formats work?
1000-5000 (all ports from 1000 to 5000 inclusive)
80,443 (only 80 and 443)

@derekbekoe the problem with defaulting the priority is that you can't have two inbound rules with the same priority. In essence, it would work the first time and then fail the second. Like nsg rule create it will only accept a single port or a range of ports. It will not accept a list (comma separated or otherwise).
I had an implementation that took a space separated list and simply created multiple rules, but then you immediately run into the problem of priority. Without a good heuristic to go by, I stuck with only creating one rule with each call and making priority required.

In essence, it would work the first time and then fail the second

@tjprescott, how the error looks like? If the error is good, failing with using the same default priority would be ok, and people can refer to examples section for help.

@yugangw-msft the error is pretty clear. I'll leave the priority default to 900 then. Thanks for the feedback. :)


Do not add twice the same python

if default and root points to the same executable, don't add twice, only keep the root.
also rename Python [conda env:mycondaenv] to  Python [conda:mycondaenv].
Root is still Python [conda root] and default is still Python [default]. The presence of the : allow to differentiate if there is a root environment (so we would have Python [conda:root] and Python [conda root]).
I also plan to let users define their own naming pattern.

Coverage increased (+0.4%) to 74.436% when pulling 27a70312c1082d35f791ff9b5e07bbcc48625dbd on Stibbons:avoid_dupl into fa870f1e0b6fc334cbf63b7d55e1f10713192db4 on Anaconda-Platform:master.

if default and root points to the same executable, don't add twice, only keep the root.

Why keeping root instead of keeping default... if we get rid of default then there will be issues when people try to share this notebook with others without the extension.

also rename Python [conda env:mycondaenv] to Python [conda:mycondaenv].
Root is still Python [conda root] and default is still Python [default]. The presence of the : allow to differentiate if there is a root environment (so we would have Python [conda:root] and Python [conda root]).

I don't agree with the change... I think it makes things confusing between Python [conda:root] and Python [conda root] is just one colon to differentiate them whereas with the current scheme it is more discover-able, I think: Python [conda env:root] and Python [conda root], despite the fact that if you have a root you can not create a root env...

Agree to keep default. Also I agree with your second reponse.

Reworked a little bit according to your review. Can only test it tomorow

Coverage decreased (-28.2%) to 45.848% when pulling ff5cc634400ebaf3759ce736122b554b875fff9c on Stibbons:avoid_dupl into fa870f1e0b6fc334cbf63b7d55e1f10713192db4 on Anaconda-Platform:master.

Coverage decreased (-0.8%) to 73.285% when pulling ff5cc634400ebaf3759ce736122b554b875fff9c on Stibbons:avoid_dupl into fa870f1e0b6fc334cbf63b7d55e1f10713192db4 on Anaconda-Platform:master.

Coverage decreased (-0.8%) to 73.285% when pulling ff5cc634400ebaf3759ce736122b554b875fff9c on Stibbons:avoid_dupl into fa870f1e0b6fc334cbf63b7d55e1f10713192db4 on Anaconda-Platform:master.

Coverage decreased (-0.8%) to 73.285% when pulling ff5cc634400ebaf3759ce736122b554b875fff9c on Stibbons:avoid_dupl into fa870f1e0b6fc334cbf63b7d55e1f10713192db4 on Anaconda-Platform:master.

#80 is actually doing some pruning here, in line with what is suggested, I think:

A kernel stored in the same environment as nb_conda_kernels itself will already be picked up by the KernelSpecManger base class, so PR 80 doesn't modify it at all.
[conda root] is preserved, but again, only if it is not the currently active environment.

Because the tests are now testing nb_conda_kernels itself in a non-root environment, and the tests require the existence of additional environments with Python and R environments, all of the key behaviors are affirmatively tested. The only thing that isn't currently tested is the negative case: that is, confirming that the current environment is left to the base class for handling.


Adding lucide.zip to release files

As far as I understand, right now there are two ways to download all the files: via website and via github actions (artifacts).
Can we please make it, so that lucide.zip file is attached to releases as well?

@marchellodev Good idea, I was thinking to add it as a static package as well.

@ericfennis Why was this closed? :)

Is now added to the release pages. https://github.com/lucide-icons/lucide/releases/tag/v0.16.19


Plugin configuration/initialization errors on HOOBS 4

Describe Your Problem:
I'm experiencing configuration errors when I try to set up this plugin on HOOBS. Everything appeared fine - I was able to authenticate w/ Amazon in the browser and successfully retrieve the cookie, however the HOOBS log indicated the failure to initialize and invalid cookie (renew unsuccessful).
Logs:
9/27/2023, 10:09:51 PMAlexa Smarthome BridgeLoaded plugin 'homebridge-alexa-smarthome'
9/27/2023, 10:09:51 PMAlexa Smarthome BridgeLoading 1 platforms...
9/27/2023, 10:09:51 PMAlexa Smarthome BridgeHomebridgeAlexaSmartHomeLogin required because existing authentication not found
9/27/2023, 10:09:53 PMAlexa Smarthome BridgeBridge is running on port XXXXXXX.
9/27/2023, 10:09:53 PMAlexa Smarthome BridgeHomebridgeAlexaSmartHomeERRORFailed to initialize connection to Alexa. - You can try to get the cookie manually by opening http://XXXXXXX/ with your browser.
9/27/2023, 10:09:53 PMAlexa Smarthome BridgeHomebridgeAlexaSmartHomeERRORAfter initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)

Plugin Config:
{
    "platform": "HomebridgeAlexaSmartHome",
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "XXX.XXX.XX.XX",
            "port": XXXX
        }
    },
    "language": "en-US",
    "debug": true
}

Screenshots:

Environment:

Plugin Version: 1.0.3
Homebridge Version: 1.6.0 (via HOOBS v4.3.0)
Node.js Version: Local machine (via Terminal) - 18.16.0 (HOOBS device version - 16.20.2)
NPM Version: Local machine (via Terminal) - 9.5.1
Operating System: macOS

It seems like HOOBS is not saving the cookie to the device like Homebridge does. I have not used HOOBS nor am I aware if this plugin is compatible

I’m having this exact issues, but on raspberry Pi platform. Please help.

@jourdannorman can you share what the logs show after you login successfully? The last two lines in your screenshot are normal and happen before you login the first time.

Closing due to inactivity


[Feature] UBI9 support for all system Docker images

https://catalog.redhat.com/software/containers/ubi9/ubi/615bcf606feffc5384e8452e
https://catalog.redhat.com/software/containers/ubi9-minimal/61832888c0d15aff4912fe0d?architecture=amd64&image=6633b5136d81a5634a616c41
https://catalog.redhat.com/software/containers/ubi9/ubi-micro/615bdf943f6014fa45ae1b58?architecture=amd64&image=662a8edd22c80ead7411ec6c

reference upcoming docker.md in /docs for list of system images


Can I show one id per page ?

Hi ,
if I have data with id like this
id   name   desc
1     aaa     ccc
1    bbb    ccc
2   aaa      bbb
2   bbb     bbb
I have two table in one page
first table
id --- 1
desc ccc
second table show all with id = 1
id   name  desc
1   aaa    ccc
1   bbb   ccc
for normally the table will display all row
if I need to display id 1 in first page and id 2 in second page is it possible?

The way I have done this before is use a list (might be able to do it with
a table) as a "master" for the page.  Size this appropriately so it take
the entire page; this forces each subsequent item to kick to a new page.
Select Distinct IDs; use these to feed a sub-report.
The sub-report would take the ID as a report input parameter; each
sub-report fires a query that contains that parameter in the predicate (ID
in this case).  This would display the data associated with that ID.
Some many not like this solution as it will fire more queries than a
filtering option.  I agree.  On the flip side it is easy to implement and
most reports don't require high performance.
The Kernel
On Tue, Nov 20, 2018 at 11:05 AM whitesorrow<EMAIL_ADDRESS>wrote:

Hi ,
if I have data with id like this
id name desc
1 aaa ccc
1 bbb ccc
2 aaa bbb
2 bbb bbb
I have two table in one page
first table
id --- 1
desc ccc
second table show all with id = 1
id name desc
1 aaa ccc
1 bbb ccc
for normally the table will display all row
if I need to display id 1 in first page and id 2 in second page is it
possible?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/majorsilence/My-FyiReporting/issues/189, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AF32LxwcwshamsG6YMm9yyrdMUryl5QVks5uxChggaJpZM4Yra-h
.

This wiki
https://github.com/majorsilence/My-FyiReporting/wiki/0001---Create-New-Report
shows how to create a Report with a Report Parameter.  We'll call this the
sub report; ensure it when you run it and provide the input ID, it only
shows you the data you want to see for that ID.
Open the "master report" you can insert a sub report from the "Insert" menu
in the designer.  The configuration dialog will allow you to pass data to
the input parameters of the sub report.
[image: image.png]
The Kernel
On Wed, Nov 21, 2018 at 9:28 PM whitesorrow<EMAIL_ADDRESS>wrote:

Hi Kernel-Klink,
how did I take the ID as report input parameter for sub-report?
now I can display what I want but the sub-report still display all row of
data
I didn't familiar with create report sorry for much question
thank you
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/majorsilence/My-FyiReporting/issues/189#issuecomment-440893695,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF32L6t0JmirQJ3FjkYRu3e3tzQDORthks5uxgu1gaJpZM4Yra-h
.

Hi Kernel-Klink ,
I had add the parameter in subreport and can pass the parameter value from mainreport to subreport
but when I go to dataset -> SQL select it can get only query parameter that I can't pass from mainreport
is there syntax to use parameter in the sql?
ex. query parameter use '@parametername' but for parameter I didn't found it from SQL... button
ps. the image image.png I can't see it.
Thank you

never mind I can do it now
query parameter
id --> =!parameter.param_id.value
parameter (can pass from mainreport)
param_id
SQL
where id = @id


GCThread Exception after AcmStream.Dispose()

After Dispose() for AcmStream:
 public void Dispose()         {             Dispose(true);             GC.SuppressFinalize(this);         }
and something wrong/exception in this part
            if (streamHandle != IntPtr.Zero)             {                 MmResult result = AcmInterop.acmStreamClose(streamHandle, 0);                 streamHandle = IntPtr.Zero;                 if (result != MmResult.NoError)                 {                     throw new MmException(result, "acmStreamClose");                 }             }
Now I have System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.    at NAudio.Wave.Compression.AcmInterop.acmStreamClose(IntPtr hAcmStream, Int32 closeFlags)    at NAudio.Wave.Compression.AcmStream.Dispose(Boolean disposing)    at NAudio.Wave.AcmMp3FrameDecompressor.Dispose()    at NAudio.Wave.Mp3FileReader.Dispose(Boolean disposing)    at System.IO.Stream.Close().
After that It skip part with GC.SuppressFinalize(this); and in GC thread have NAudio.MmException: InvalidHandle calling acmStreamClose    at NAudio.Wave.Compression.AcmStream.Dispose(Boolean disposing)    at NAudio.Wave.Compression.AcmStream.Finalize()
https://github.com/naudio/NAudio/blob/e359ca0566e9f9b14fee1ba6e0ec17e4482c7844/NAudio/Wave/Compression/AcmStream.cs

I'm not sure exactly what the issue is here. Do you have a simple way to reproduce your problem with the current NAudio code?

https://github.com/mail4andrey/NAudio/commit/cbf68c6cbdce60875d3a5908096fdc1878416210
I try to add this situation to test. But it is slightly different. When we second time dispose AcmStream (from destructor) should be MmException with message "InvalidHandle".
For mock function of dll I use JustMock.


PVE AI of question

Hello, can the pve ai bot of ygomaster use ygopro，I want to use it in mdpro3

No, they aren't compatible


Unable to use customGameIDs.json (Or I misunderstand how it works)

Hello I have read all of the sections on the setup guide, and I have read through a couple similar closed issues, however I have this problem where customGameIDs.json is not working properly. I have the file formatted as such:
{
    "SLUDGE LIFE 2":<PHONE_NUMBER>047013487
}

I also have a discord application with the name "SLUDGE LIFE 2" and it has the application ID of "1313645437047013487". However, when I I play Sludge Life 2, my discord rich presence says "Playing a game on steam" still. I am not sure how to get discord to say "Playing SLUDGE LIFE 2".
Here is the output of the program:
┌─[saint@REI] - [~] - [Tue Dec 03, 16:28]
└─[$] <> ----------------------------------------------------------
[Dec 03 2024 - 16:28:05] progam's current folder structure version is up to date...
----------------------------------------------------------
[Dec 03 2024 - 16:28:05] loading config file
[Dec 03 2024 - 16:28:05] everything is ready!
----------------------------------------------------------
[Dec 03 2024 - 16:28:06] found game SLUDGE LIFE 2 played by ParkerSaint
[Dec 03 2024 - 16:28:08] steam app ID 2275150 found for SLUDGE LIFE 2
[Dec 03 2024 - 16:28:08] game changed, updating to 'SLUDGE LIFE 2'
[Dec 03 2024 - 16:28:08] fetching the Discord game ID for SLUDGE LIFE 2
[Dec 03 2024 - 16:28:08] found the discord game ID for sludge life 2
[Dec 03 2024 - 16:28:08] fetching icon for SLUDGE LIFE 2
[Dec 03 2024 - 16:28:08] no image found in cache
[Dec 03 2024 - 16:28:08] getting icon from Discord
[Dec 03 2024 - 16:28:08] successfully found Discord icon for SLUDGE LIFE 2
[Dec 03 2024 - 16:28:08] creating new rich presence object for SLUDGE LIFE 2
[Dec 03 2024 - 16:28:08] pushing presence to Discord
----------------------------------------------------------

so I just pushed a new commit from my phone, try pulling the latest changes (git pull) and see if that fixes it, if not send the new logs

I pulled the latest commit and now this is the log is throwing a python error.
× steam-presence.service - Discord rich presence from Steam on Linux
     Loaded: loaded (/home/saint/.config/systemd/user/steam-presence.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Tue 2024-12-03 18:21:58 MST; 2min 15s ago
   Duration: 35ms
 Invocation: 1c2d466734c445e4aa1b6f5383dd7e4b
       Docs: https://github.com/JustTemmie/steam-presence
    Process: 7294 ExecStart=/home/saint/Repositories/steam-presence/venv/bin/python -u /home/saint/Repositories/steam-presence/main.py (code=exited, status=1/FAILURE)
   Main PID: 7294 (code=exited, status=1/FAILURE)
   Mem peak: 5.1M
        CPU: 21ms

Dec 03 18:21:58 REI systemd[744]: Started Discord rich presence from Steam on Linux.
Dec 03 18:21:58 REI python[7294]:   File "/home/saint/Repositories/steam-presence/main.py", line 628
Dec 03 18:21:58 REI python[7294]:     if r == "error":)
Dec 03 18:21:58 REI python[7294]:                     ^
Dec 03 18:21:58 REI python[7294]: SyntaxError: unmatched ')'
Dec 03 18:21:58 REI systemd[744]: steam-presence.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 18:21:58 REI systemd[744]: steam-presence.service: Failed with result 'exit-code'.

darnit there was a typo, I should stop coding on my phone
anywho, noooow it should work


Quick Start for DataHUB

Idea: Harmonize Knowledgebase content.
Derived from a response to #20: https://github.com/nfdi4plants/nfdi4plants.knowledgebase/issues/20#issuecomment-1360058411
Create Quickstart, Manual and maybe also developers docs for the tools with high user exposure

done #179


In iOS asking to set Team ID

When run in iOS, the app is breaking at PCA = builder.Build(); statement, asking to set 'team id'. No clue where to set it. I even tried Automatic Provisioning which didn't help.

Sorry you're having trouble! Is this happening at run time or compile? Can you provide the full error and stack trace?

Fortunately, it is running perfectly in both iOS Simulator and iPhone. It is running after I did the following:

Yesterday till I posted here, it was not working for iOS. That was on my laptop.
Today morning after seeing your reply, I moved the code to Desktop, ran it in iOS Simulator, it is worked fine.
Then I tried on my laptop and there was no issue.
Then I tried on my desktop connecting iPhone and it worked fine.

I don't know what caused the issue yesterday. Now I will proceed to implement to access OneDrive, which was my intention.
ThanQ...

Glad it's working for you.


Multi GPU training

Hi @sunjiahao1999, thank you for your great work. Does your repo support multiple GPU training?

Not yet, all the experiments I have done were based on single GPU. There are no plans to support multiple GPUs for now. But you can refer to SoftGroup multi-GPUs implementation.


Option to union rather than intersect paginated posts

The current behaviour when specifying multiple categories, tags and locales on a pagination page is to filter posts that include all of these.
For example, this shows all posts with both the food and animal categories:
pagination:
  category: food, animal

This pull request adds a combine: union option which can change that behaviour to filter posts that have at least one of the specified categories, tags and locales.
For example, this shows all posts with either the food and animal categories:
pagination:
  category: food, animal
  combine: union

I've added a couple of tests and modified the example to demonstrate how to use it. I'm currently using this fork on a site to achieve this. It'd be great to refer to the main repo instead, let me know if there's anything further I can do.

#63 looks very related to this.


Allow to define "items": [] in _category_.json

Have you read the Contributing Guidelines on issues?

[X] I have read the Contributing Guidelines on issues.

Description
we can easily customize sidebar hierarchy via sidebars.js, but sometimes using _category_.json under direct directory is more effecient.
The problem is we cannot define which documents to show withing _category_.json
Has this been requested on Canny?
No response
Motivation
more usecases with only using _category_.json
API design
Where in documents under /docs/layouts has item from one.md, two.md, three.md ~ ten.md
We can define items to be shown with this directory’s category when autogenerated.
{
  "label": "Layouts",
  "items": ["one", "two", "three"]
}

This is useful to ignore files on main/master branch that are incomplete for production.
Have you tried building it?
No response
Self-service

[ ] I'd be willing to contribute this feature to Docusaurus myself.

Sorry, duplicate of #5689. That issue wasn't finalized so let's move the discussion there and see what would be good for us.


Setting up SMB crawler -> Error: undefined

Attempting to setup the SMB crawler following the guide in the blog.  Problem is I keep getting this red message at the bottom saying Error: undefined.  There are no "i" markers on the left or highlighting to tell me where this may be or what it means.  Below is my config with some slight edits.
Edits made: IP address, location, login, and password.
{
"id": "Share",
"description": "Share HDD",
"type": "smb",
"locations": [
{
"host_name": "EDITED",
"ip_address": "192.168.1.xxx",
"location": "EDITED"
}
],
"file_regex": "(\.doc[a-z]$)|(\.xls[a-z]$)|(\.txt$)|(\.csv$)|(\.htm[a-z]$)|(\.ppt[a-z]$)|(\.pdf$)|(\.msg$)|(\.zip$)|(\.eml$)|(\.rtf$)|(\.md$)|(\.png$)|(\.bmp$)|(\.tif[f]*$)|(\.jp[e]*g$)",
"credentials": {
"auth_type": "ntlm",
"login": "EDITED",
"password": "EDITED"
},
"schedule": {
"is_active": true,
"cron_schedule": "*/15 * * * *"
},
"max_file_size_bytes": 30000000,
"verbose": true
}
Could the issue be related to the location?  I've tried:
"\COMPUTERNAME\SHARE"
"//COMPUTERNAME/SHARE"
"SHARE"

Hello @TrailerTracch !
Please, add field token to credentials object with empty string value.
It should look like this:
"credentials": {
  "auth_type": "ntlm",
  "login": "EDITED",
  "password": "EDITED"
  "token": ""
},

We fixed the error message, run sudo ./ambar.py update to get the fix
We also updated docs: Crawling Your Own Shared Folders

Thanks for the quick reply and fix!  I see now in the screenshot I overlooked the token part.
I have the crawler setup but now I'm stuck at the following:
[info] filecrawler initialized
[error] error connecting to Smb share on PCNAME
I've double checked my account for ambar to access this share but is there anyway to get a more detailed logging on this to figure it out?

It's quite strange, because in case of smb connection error you should get two lines in the log, like this:
2017-04-13 11:10:00.964: [info] filecrawler initialized
2017-04-13 11:11:00.999: [error] timed out
2017-04-13 11:11:01.007: [error] error connecting to Smb share on DESKTOP-2FHRAM

location field must start with the share name you're going to crawl, e.g. "location": "Share/EnglishStories" or "location": "Share". Have you checked you host name/IP address, also did you try to access your share manually via windows explorer?

@fpd4444
Share access via windows explorer was fine along with the IP,name, and account.  I believe I just didn't have the other parts of the config correct.  I appreciate everyone's help with this and getting me up and running!

@TrailerTracch is problem solved? Can I close the issue?

Closing issue. No response from issue author


[region-isolation] Change "pass non-transferable non-sendable value as transferring parameter" error to use the variables name + some other small improvements

In this PR, I am improving the diagnostics around errors with transferring non-transferable parameters. Specifically:

I changed assigning a structurally isolated (e.x.: task or actor isolated) value to use a two part diagnostic like other diagnostics. This means we first emit a short "transferring $NAME may cause a race" and follow on with a note that describes what is wrong:

 func testPassArgumentAsTransferringParameter(_ x: NonSendableType) async {
-  transferValue(x) // expected-error {{task-isolated value of type 'NonSendableType' passed as a strongly transferred parameter; later accesses could race}}
+  transferValue(x) // expected-error {{transferring 'x' may cause a race}}
+  // expected-note @-1 {{task-isolated 'x' is passed as a transferring parameter; Uses in callee may race with later task-isolated uses}}
 }

I cleaned up the "call site passes self" error to just say "task or actor isolated value cannot be transferred". In reality, I have to fix 1-2 more things and then I am going to make this an unknown pattern error. In both cases, we will not allow the code through, but the later actually tells the user to send us a bug report.

@swift-ci smoke test


Konflux update test-component-pac-tgafxj

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI/test-component-pac-tgafxj-on-pull-request has failed.
Namespace: build-e2e-gjfx-tenant
PipelineRun: test-component-pac-tgafxj-on-pull-request-c9zvl

Task Statuses:

StatusDurationName

✅ Succeeded
10 seconds
init

✅ Succeeded
20 seconds
clone-repository

❌ Failed
27 seconds
build-container

✅ Succeeded
8 seconds
show-summary

Failure snippet:
task build-container has the status "TaskRunImagePullFailed":
the step "upload-sbom" in TaskRun "test-component-pac-tgafxj-on-pull-request-c9zvl-build-container" failed to pull the image "". The pod errored with the message: "Back-off pulling image "quay.io/redhat-appstudio/cosign@sha256:c883d6f8d39148f2cea71bff4622d196d89df3e510f36c140c097b932f0dd5d5"."

Pipelines as Code CI/test-component-pac-tgafxj-on-pull-request has successfully validated your commit.
Namespace: build-e2e-gjfx-tenant
PipelineRun: test-component-pac-tgafxj-on-pull-request-zr2jh

Task Statuses:

StatusDurationName

✅ Succeeded
6 seconds
init

✅ Succeeded
21 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
10 seconds
deprecated-base-image-check

✅ Succeeded
11 seconds
apply-tags

✅ Succeeded
8 seconds
push-dockerfile

✅ Succeeded
39 seconds
clamav-scan

✅ Succeeded
17 seconds
ecosystem-cert-preflight-checks

✅ Succeeded
1 minute
clair-scan

✅ Succeeded
9 seconds
sast-snyk-check

✅ Succeeded
11 seconds
sbom-json-check

✅ Succeeded
7 seconds
show-sbom

✅ Succeeded
13 seconds
show-summary

Pipelines as Code CI/test-component-pac-tgafxj-on-pull-request has successfully validated your commit.
Namespace: build-e2e-gjfx-tenant
PipelineRun: test-component-pac-tgafxj-on-pull-request-lkmlr

Task Statuses:

StatusDurationName

✅ Succeeded
5 seconds
init

✅ Succeeded
14 seconds
clone-repository

✅ Succeeded
26 seconds
build-container

✅ Succeeded
12 seconds
sbom-json-check

✅ Succeeded
8 seconds
clair-scan

✅ Succeeded
11 seconds
ecosystem-cert-preflight-checks

✅ Succeeded
10 seconds
deprecated-base-image-check

✅ Succeeded
6 seconds
sast-snyk-check

✅ Succeeded
38 seconds
clamav-scan

✅ Succeeded
10 seconds
apply-tags

✅ Succeeded
5 seconds
push-dockerfile

✅ Succeeded
12 seconds
show-summary

✅ Succeeded
7 seconds
show-sbom

Pipelines as Code CI/test-component-pac-tgafxj-on-pull-request has successfully validated your commit.
Namespace: build-e2e-gjfx-tenant
PipelineRun: test-component-pac-tgafxj-on-pull-request-j2r2q

Task Statuses:

StatusDurationName

✅ Succeeded
6 seconds
init

✅ Succeeded
14 seconds
clone-repository

✅ Succeeded
23 seconds
build-container

✅ Succeeded
9 seconds
apply-tags

✅ Succeeded
7 seconds
deprecated-base-image-check

✅ Succeeded
38 seconds
clamav-scan

✅ Succeeded
7 seconds
sast-snyk-check

✅ Succeeded
8 seconds
push-dockerfile

✅ Succeeded
8 seconds
sbom-json-check

✅ Succeeded
11 seconds
clair-scan

✅ Succeeded
11 seconds
ecosystem-cert-preflight-checks

✅ Succeeded
7 seconds
show-sbom

✅ Succeeded
15 seconds
show-summary

Pipelines as Code CI/test-component-pac-tgafxj-on-pull-request has failed.
Namespace: build-e2e-gjfx-tenant
PipelineRun: test-component-pac-tgafxj-on-pull-request-45ndk

Task Statuses:

StatusDurationName

✅ Succeeded
5 seconds
init

✅ Succeeded
19 seconds
clone-repository

✅ Succeeded
26 seconds
build-container

✅ Succeeded
7 seconds
clamav-scan

❌ Failed
5 seconds
clair-scan

✅ Succeeded
8 seconds
apply-tags

✅ Succeeded
6 seconds
sbom-json-check

✅ Succeeded
7 seconds
push-dockerfile

✅ Succeeded
6 seconds
deprecated-base-image-check

✅ Succeeded
12 seconds
ecosystem-cert-preflight-checks

✅ Succeeded
8 seconds
sast-snyk-check

✅ Succeeded
10 seconds
show-summary

✅ Succeeded
8 seconds
show-sbom

Failure snippet:
task clair-scan has the status "Failed":
Inspecting raw image manifest quay.io/redhat-appstudio-qe/build-e2e-gjfx-tenant/build-suite-test-application-zvwh/test-component-pac-tgafxj@sha256:0d91513bea7bce517b10819da2fccda3ab77dfe1a96ddea283d359584d767610.
time="2024-07-16T15:13:46Z" level=fatal msg="Error parsing image name \"docker://quay.io/redhat-appstudio-qe/build-e2e-gjfx-tenant/build-suite-test-application-zvwh/test-component-pac-tgafxj@sha256:0d91513bea7bce517b10819da2fccda3ab77dfe1a96ddea283d359584d767610\": reading manifest sha256:0d91513bea7bce517b10819da2fccda3ab77dfe1a96ddea283d359584d767610 in quay.io/redhat-appstudio-qe/build-e2e-gjfx-tenant/build-suite-test-application-zvwh/test-component-pac-tgafxj: manifest unknown"
The raw image inspect command failed

Pipelines as Code CI/test-component-pac-tgafxj-on-pull-request has successfully validated your commit.
Namespace: build-e2e-gjfx-tenant
PipelineRun: test-component-pac-tgafxj-on-pull-request-66zv8

Task Statuses:

StatusDurationName

✅ Succeeded
6 seconds
init

✅ Succeeded
18 seconds
clone-repository

✅ Succeeded
24 seconds
build-container

✅ Succeeded
8 seconds
sbom-json-check

✅ Succeeded
8 seconds
sast-snyk-check

✅ Succeeded
8 seconds
deprecated-base-image-check

✅ Succeeded
11 seconds
clair-scan

✅ Succeeded
11 seconds
ecosystem-cert-preflight-checks

✅ Succeeded
8 seconds
apply-tags

✅ Succeeded
6 seconds
push-dockerfile

✅ Succeeded
39 seconds
clamav-scan

✅ Succeeded
14 seconds
show-summary

✅ Succeeded
8 seconds
show-sbom


Detect screenshot

Definition: Malware can capture screenshots of the target system
Source: https://blog.cyble.com/2023/05/03/new-kekw-malware-variant-identified-in-pypi-package-distribution/
Sample:
def steal_screen(self):
  image = ImageGrab.grab(
    bbox=None,
    include_layered_windows=False,
    all_screens=True,
    display=None
  )
  image.save(self.dir + "\\Screenshot.png")
  image.close()

Hi @romain-dd @christophetd, Which heuristic category would this fit in? I think the closest might be exfiltrate-sensitive-data since the screenshot might contain user stuff, but in this code example the data isn't sent anywhere.


Create interfaces for block marshalling

Create interface for marshalling type.Block and unmarshalling
consensus.processedBlock. The explicit interfaces will facilitate
testing of the consensus package (specifically the validHeader
function).

Next steps, I'd like to replace the blockMarshaller, processedBlockUnmarshaller, and dosBlocks members of ConsensusSet with a blockValidator interface like:
type blockValidator interface {
  validate(types.Block) error
}

type stdBlockValidator struct {
  dosBlocks map[types.BlockID]struct{}
  blockMarshaller blockMarshaller
  processedBlockUnmarshaller processedBlockUnmarshaller
}

func (v stdBlockValidator) validate {
  // move over current contents of validHeader()
}

I'm not sure that a BlockUnmarshaller makes sense, using this strategy would lead to creating an typeUnmarshaller type for every single type that gets unmarshalled. This seems like the wrong approach to mocking the encoding package, as we have dozens of types that get encoded throughout Sia.
hmm.

It would probably be sufficient to make a generic mock of the encoding package, having a type that has a Marshal and Unmarshal function implemented. For the stub case, all objects would marshal to []byte{'1'} and all calls to unmarshal would just return whatever object was already being pointed at (maybe panicking or returning an error if 'nil' was passed).

It would probably be sufficient to make a generic mock of the encoding package, having a type that has a Marshal and Unmarshal function implemented. For the stub case, all objects would marshal to []byte{'1'} and all calls to unmarshal would just return whatever object was already being pointed at (maybe panicking or returning an error if 'nil' was passed).

That makes sense, pushing a commit now that does this.

Looks good except for the block marshaller file that's still around

Thanks for reviewing. Fixed the issues you mentioned and rebased onto master.


add support to return value from slot

is it possible to return Option<QVariant> instead of Option<&QVariant> from a slot?
if not we should add support for it to make it possible to return local values.
currently it does not compile:
 pub fn handle_value(&mut self, val: i32 ) ->  Option<QVariant> {
    if val < 0 {
        Some(false.into())
    }
    Some(true.ino())
}

error[E0308]: mismatched types
  --> src/backend.rs:67:1
   |
67 | Q_OBJECT!(
   | ^ expected reference, found struct `qml::QVariant`
   |
   = note: expected type `std::option::Option<&qml::QVariant>`
              found type `std::option::Option<qml::QVariant>`
   = help: here are some functions which might fulfill your needs:
           - .as_ref()
           - .take()
           - .unwrap()
   = note: this error originates in a macro outside of the current crate

error: aborting due to previous error

The problem rises from the memory handling -- if it is not a reference, value will take memory and leak it every time this slot will be called

is this also true for primitive datatypes like i32?
in this case it means there is no feasible way to return results to qml without building a custom garbagecollection-mechanism.

@fneddy all primitives are wrapped in QVariants.
Yes, if it's not possible to return a reference, there should be some kind of garbage collector system, which is, hopefully, can be provided via qml-rust to ease memory management.

A straightforward way of doing this (I think I made it this way in kefia) is to have some kind of map or list, that returns references to qvariants to qml.

so I had a little time to investigate:
The slot definition struct has a field for the return type of the slot. In the Q_OBJECT macro this return value is hardcoded to 43 this corresponds to QMetaType::Void.

all primitives are wrapped in QVariants.

this I because is is coded this way. But does it need to be so? The  slot definition  allows all predefined  QMetaTypes as return types.

The problem rises from the memory handling -- if it is not a reference, value will take memory and leak it every time this slot will be called

I think this should be only true for rust structs. QVariant will try to clear the Object but through this are non C++ QObjects this will have no effect an leak(?). All trough for the pre-defined QMetaTypes QVariant should be totally able to free the memory(!?)
So long story short: in my opinion returning a non QVariant should be OK as long as its type is defined as std QMetaType. This way QT should know how to handle free/delete. For every other datatype there must be either a garbage collector or a callback from the QVariant ~destructor that calls the rust struct drop() method.


SOLR-16631: solr.allowUrls - hostnames should be treated in case insensitive way

https://issues.apache.org/jira/browse/SOLR-16631

Description
Given that hostnames should be case insensitive (see rfc3986;section-<IP_ADDRESS>), the check for should also consider hostnames in urls in a case insentive way.
Solution
hostPort checking is now ignoring the case
Tests
Changed existing tests with mixed cases in the host name
Checklist
Please review the following and check all that apply:

[ ] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
[X] I have created a Jira issue and added the issue ID to my pull request title.
[ ] I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
[X] I have developed this patch against the main branch.
[X] I have run ./gradlew check.
[X] I have added tests for my changes.
[ ] I have added documentation for the Reference Guide

I gave it a try...

@Paul-Blanchaert can you either give me ability to commit (Push?) changes to the PR, or modify the change log to add a  via Eric Pugh and then I'll merge!   Thanks for the contirbution!


Do basic QA/QC on plant cover data

Checking for outliers, errors, etc.

[x] Percent cover values between 0 and 100
[x] Single site + time summed percent cover doesn't exceed 100
[x] Compare species locations to distributions
[x] Check for unusual/unique latlons

Notes:

Some individual records have no value for percent cover. Does that mean that plant was in the plot and very tiny, or are those errors that need to be removed?
Some subplots have summed percent cover that exceeds 100%. Is that because entire plants overhanging plot were included?
There are only a few lat lon combos that have only one or a few records, which were all mostly at the TEAK site in California, which was mostly only sampled in 2019.
Compared the 8 most common species against GBIF occurrences, which all looked good.

do NA values for plant cover mean plant was there but took up no space?
some plots have percent cover that exceeds 100
all from TEAK site, which was only mostly sampled in 2019, probably site issues


Add Azure settings tab to Settings page

 Issue by jntullo
Wednesday Feb 18, 2015 at 15:17 GMT
Originally opened as https://github.com/projectjellyfish/ux/issues/183

Needed inputs are:

Azure pem
Azure sub id
Azure api url

these are moved to the jellyfish-fog gem. closing.


Opencollective image cannot be displayed when the image format is svg and the avatarHeight parameter is specified.

Describe the bug
Opencollective image cannot be displayed when the image format is svg and the avatarHeight parameter is specified.
To Reproduce
Steps to reproduce the behavior:

open link: https://opencollective.com/webpack/organization/0/avatar.svg?avatarHeight=128
See error

Expected behavior
The image can be displayed normally.

Triage Template (core team only)
This template is for members of the team to triage for prioritisation. For more guidance see https://www.loom.com/share/369ab467fbc64dec848085d38ff57ca0:
P1 high frequency, high impact
P2 low frequency, high impact
P3 high frequency, low impact
P4 low frequency, low impact
Examples of high impact - a problem affects users during an essential process (expenses and payments > onboarding and registration > contributing) with no workaround.
High frequency - >10% of users affected (measured as a proportion of total potential users for this case).

The fix is deployed, but the cache might take some time to fully update


[AMQ-5796] Incorrect Task Usage mentioned for amq browse command for …

…the msgsel option

please merge this

retest this please

retest this please
Not sure why this pull request is not being merged ?


Throbber is not considered as Text<'_>

Hello!
I would really like to use this crate/lib for a personnal projet (ATAC) in order to make a tree component with a throbber for requests that are pending.
But the problem is that the throbber cannot be made into a Span<'_> nor in something like Text<'_>.
A great example of that is when using the tui-tree-widget lib :
let throbber = Throbber::default()
    .label("some name")
    .throbber_set(throbber_widgets_tui::CLOCK)
    .use_type(throbber_widgets_tui::WhichUse::Spin);

TreeItem::new_leaf(identifier, throbber)

says:
the trait bound `Text<'_>: From<Throbber<'_>>` is not satisfied
the trait `From<Throbber<'_>>` is not implemented for `Text<'_>`

Help: the following other types implement trait `From<T>`:
<Text<'a> as From<&'a Masked<'_>>>
<Text<'a> as From<Masked<'a>>>
<Text<'a> as From<std::string::String>>
<Text<'a> as From<&'a str>>
<Text<'a> as From<Cow<'a, str>>>
<Text<'a> as From<Span<'a>>>
<Text<'a> as From<ratatui::text::Line<'a>>>
<Text<'a> as From<Vec<ratatui::text::Line<'a>>>>

Note: required for `Throbber<'_>` to implement `Into<Text<'_>>` Note: required by a bound in `TreeItem::<'a, Identifier>::new_leaf`

Having the throbber implementing Span<'_> (to go into a Line<'_>) or just Text<'_> would be fantastic as it would bring a bigger compatibility with other libs without denaturing the concept of this one.
Have a great day

Otherwise, works like a charm!

@Julien-cpsn Thanks for using our library.
I have created a PR(#7) that allows Throbber to be converted to Span and Line.
I plan to use stateless Into traits (random indexes) and have the Throbber methods to_symbol_span and to_line as stateful.
How about something like this?

@arkbig Yes that would be great!
I hope my request does not go too far from your orginal vision of the lib :)

We have released v0.4.1, which adds the ability to convert to span and line.
Thank you for reporting the problems you encountered during actual use!
Please be assured that the original vision has not changed. Your feedback is invaluable to us!

@arkbig I will try it soon!
TIP: put the link of the issue in the commit/release in order for issuers to see where you put the solution.


Cluster never appears.

I am trying to spin up a long running cluster.
I get this:
info] Your new cluster's id is j-V9DQSH3QKAI2, you may check its status on AWS console.
[success] Total time: 2 s, completed Oct 4, 2017 11:20:52 AM
[info] Found cluster j-V9DQSH3QKAI2, start monitoring.
....
[info] Cluster terminated without error.
[success] Total time: 17 s, completed Oct 4, 2017 11:21:09 AM

But the cluster is nowhere to be found in the aws console. It seems like it's not spinning up at all.
Can you point me in the right direction for debugging this?

@vasion Could you show me the command you executed?
Also, could you check that your terminal is using the same identity as the one you used to login aws console? By default EMR will only show the cluster information to the person who created it.

Here is the command.
sbt 'sparkCreateCluster' sparkMonitor
The account in aws is the same as for the credentials. I see other clusters my colleagues have created. Btw the Cluster terminated without error appears very fast, idk if this is a clue.
Here is the relevant part of my sbt
libraryDependencies ++= Seq(
"com.typesafe.scala-logging" %% "scala-logging" % "3.7.2" % "provided",
"org.apache.spark" %% "spark-sql" % "2.2.0" % "provided",
"org.apache.spark" %% "spark-streaming" % "2.2.0" % "provided",
"org.apache.spark" %% "spark-mllib" % "2.2.0" % "provided",
"org.apache.hadoop" % "hadoop-aws" % "2.8.1" % "provided",
"com.amazonaws" % "aws-java-sdk" % "1.11.194" % "provided"
"org.scalatest" %% "scalatest" % "3.0.3" % "provided",
"org.scalamock" %% "scalamock-scalatest-support" % "3.6.0" % "provided"
)
//EMR setup for command line clusters
val username = System.getProperty("user.name")
sparkAwsRegion := "us-east-1"
sparkJobFlowInstancesConfig := sparkJobFlowInstancesConfig.value.withEc2KeyName("xxxxxx")
sparkSecurityGroupIds := Some(Seq("sg-xxxxxxx"))
sparkS3JarFolder := s"s3://xxxxxxxxx/$username/"
sparkInstanceCount := 3
sparkClusterName := s"SBTCluster$username"
sparkEmrRelease := "emr-5.8.0"
sparkInstanceType := "m3.xlarge"
//comment away for on-demand cluster
//sparkInstanceBidPrice := Some("0.10")
import com.amazonaws.services.elasticmapreduce.model.Application
val applications = Seq("Spark", "Ganglia", "Hadoop").map(a =>new Application().withName(a))
sparkRunJobFlowRequest := sparkRunJobFlowRequest.value.withApplications(applications:_*)
import com.amazonaws.services.elasticmapreduce.model.Tag
sparkRunJobFlowRequest := sparkRunJobFlowRequest.value.withTags(new Tag("Name", s"SBTCluster-$username"))
sparkRunJobFlowRequest := sparkRunJobFlowRequest.value.withLogUri(s"s3://xxxxxxxxxx/$username/")

@vasion Could you try to add this to your build.sbt:
sparkRunJobFlowRequest := sparkRunJobFlowRequest.value.withVisibleToAllUsers(true)

Yay. I can see it. And there are errors. I will debug tomorrow and write back.

@vasion If you can see it after adding withVisibleToAllUsers, it should be the identity problem, maybe you can check if your AWS_ACCESS_KEY_ID is owned by the IAM User you used to log in AWS web console.

withVisibleToAllUsers allowed my to see the cluster. The reason it was failing was that the security group I was specifying was in another region. Thanks for your help. I really appreciate it.


just a suggest

it would be exetremly useful and pretty if there was two method for creating hover menu
first one is already there
second one would be something like ramotion's circlemenu for specific situations where there's no need for a full screen menu
the circle menu is currently not supporting overlay and can only be used in an activity so if you can implement something like that to use in overlay and service mode that would be so nice
i already appreciate your hard work and i'm going to implement this beautiful library into one of my big projects
regards

Hi @pourya0111 I'm not quite sure what you mean.
Currently, Hover can be deployed within an Activity or it can be deployed on its own.  Is there a 3rd type of deployment that you want?

ok look @matthew-carroll did you checked ramotions example?i mean some kind of floating shortcut that where the user touches it it will expand in a smal area with some buttons to perform some action instead of creating a fullscreen activity just like now
if you didnt get it yet tell me upload some image or gif


⚠ Bofrost.at has degraded performance

In 92f03f1, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 899 ms

Resolved: Bofrost.at performance has improved in 8e26f36.


Update the answer to show clarity

The original sentence did not answer the question directly. I added clarity to the answer.

Learn Build status updates of commit 279751c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

WindowsServerDocs/identity/ad-fs/overview/AD-FS-FAQ.yml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@robinharwood, @Xelu86
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#assign-reviewer: @robinharwood

#assign-reviewer: @Xelu86

Thank you for submitting this issue.  Unfortunately, due to high volumes I was unable to respond to this in a timely manner.  At this point, I am going to close this due to it's age and the possibility that it may have been addressed.  If this is still a problem, please consider submitting a new issue.  Thank you.
#please-close


⚠ Bofrost.fr has degraded performance

In e0e165b, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1966 ms

Resolved: Bofrost.fr performance has improved in e8743c6 after 9 minutes.


Migrate to AndroidX

The minSDK version changed with 21
The Library version updated with 3.0.0
Added JitPack Support to publish

I don't understand the need for the minSdk change. I can understand if you want to change to androidX thou.
But, sadly as stated in the main page, this project has been shelved. Roughhike isn't working on it anymore, neither am i.
I saw you changed the github link on the changelog, so might as well just host it yourself and try people to upgrade to your version.


Speech Recognition

Hi, I am TRIDIB BAG. I'm a GSSoC22 participant.
I want to make a Speech Recognition using HTML, CSS, JS and wanted to add in this repo .
Can @swapnilsparsh you please assign it to me?

@swapnilsparsh Remove the tags as it is already exits
https://github.com/khushi-purwar/WebDev-ProjectKart/pull/491


SetGroupPermissions not working at all

SetGroupPermissions is not working at all. Every combination or Rights will end up with all permissions removed.
Digging into the code I discovered that the problem is in the JSON request, which is malformed: all rights should be under the key permissions in the JSON object.
Tested with v2 and v3 (latest versions): both of them have this issue

Fixed in #447


Unable to connect

Unable to get connectoin to discord (debug logging enabled). After setting log credentials, login shows successful. But can not connect to discord.
Desktop (please complete the following information):

Teamspeak 3 Version: 3.5.5
Plugin Version <IP_ADDRESS>

Teamspeak log:```
20.11.2020 11:09:24	TeamCord	Info	Waiting for established connection to discord...
20.11.2020 11:09:24	TeamCord	Info	Client disconnected
20.11.2020 11:09:24	TeamCord	Debug	Updating icon of tray icon
20.11.2020 11:09:24	TeamCord	Debug	Connection changed -> Type: Discord Connected: False
20.11.2020 11:09:24	TeamCord	Debug	Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
20.11.2020 11:09:24	TeamCord	Debug	Freeing memory: 177919312
20.11.2020 11:09:24	TeamCord	Warning	Unexpected character encountered while parsing value: W. Path '', line 0, position 0.
20.11.2020 11:09:24	TeamCord	Debug	Freeing memory: 176352064
20.11.2020 11:09:24	TeamCord	Warning	Unexpected character encountered while parsing value: W. Path '', line 0, position 0.
20.11.2020 11:09:24	TeamCord	Debug	Freeing memory: 177928912
20.11.2020 11:09:25	TeamCord	Info	Client disconnected
20.11.2020 11:09:25	TeamCord	Debug	Updating icon of tray icon
20.11.2020 11:09:25	TeamCord	Debug	Connection changed -> Type: Discord Connected: False
20.11.2020 11:09:27	TeamCord	Info	Client disconnected
20.11.2020 11:09:27	TeamCord	Debug	Updating icon of tray icon
20.11.2020 11:09:27	TeamCord	Debug	Connection changed -> Type: Discord Connected: False
20.11.2020 11:09:31	TeamCord	Info	Client disconnected
20.11.2020 11:09:31	TeamCord	Debug	Updating icon of tray icon
20.11.2020 11:09:31	TeamCord	Debug	Connection changed -> Type: Discord Connected: False
20.11.2020 11:09:40	TeamCord	Info	Client disconnected

Did you restart Teamspeak after entering the discord credentials? If yes, please attach a full ts3 log file.


To maintain data integrity, provide appropriate data types for each column and create appropriate connections between the tables, such as foreign key constraints.

Definition of done:
As a developer, I have to maintain data integrity, provide appropriate data types for each column and create appropriate connections between the tables, such as foreign key constraints.

handeled By spring mongoDb Connectiond

This is an important improvement as it ensures data integrity through the use of appropriate data types and foreign key constraints, leading to a more reliable and consistent database. Well done on implementing these crucial measures!

This feature improves the data in the tables looks in a better way. This also makes the user to enter the proper data.

Maintaining data integrity is crucial for any database system. By providing appropriate data types for each column and establishing appropriate connections between tables using foreign key constraints, we can ensure data consistency and reliability.


do...while loop can create a scenario where multiple and rapid API requests happen

According to chatgpt, getRunnerWithLabels method in github.ts can end up in a rapid loop causing lots of API requests.
You can see the relevant part of the conversation at the bottom:
https://chatgpt.com/share/66e9a38a-e2e0-8012-99e8-6b60a1023201
Rapid loop code illustration:
async getRunnerWithLabels(labels: string[]) {
  const octokit = github.getOctokit(this.config.githubToken);
  var done = false;
  do {
    // Makes an API request
    const runners = await octokit.rest.actions.listSelfHostedRunnersForRepo({ ... });
    done = !Boolean(runners.data.total_count);

    // Attempts to find a matching runner
    const matches = _.filter(runners.data.runners, searchLabels);
    return matches.length > 0 ? matches[0] : null;

    // No delay here, so the loop continues rapidly
  } while (done);
  return null;
}

Impact
High API Request Rate: This loop can cause the action to make multiple API requests per second to GitHub.
Rate Limit Exceeded: GitHub has API rate limits, even for authenticated requests. Excessive requests can lead to throttling.
Unnecessary Load: The rapid requests are unnecessary and can be reduced by introducing a delay.
Conclusion
The high rate of API requests to GitHub is caused by the lack of delay in the do...while loop within the getRunnerWithLabels method in github.ts. By introducing a delay in this loop, you can control the rate of API requests and prevent exceeding GitHub's API rate limits.
Chatgpt recommends using a delay like:
async getRunnerWithLabels(labels: string[]) {
  const octokit = github.getOctokit(this.config.githubToken);
  var done = false;
  do {
    try {
      const runners = await octokit.rest.actions.listSelfHostedRunnersForRepo(
        {
          owner: github.context.repo.owner,
          repo: github.context.repo.repo,
        }
      );
      done = !Boolean(runners.data.total_count);

      const searchLabels = {
        labels: labels.map(function (label) {
          return { name: label };
        }),
      };

      const matches = _.filter(runners.data.runners, searchLabels);
      if (matches.length > 0) {
        return matches[0];
      } else {
        // Introduce a delay before the next iteration
        await new Promise((resolve) => setTimeout(resolve, 1000)); // 1-second delay
      }
    } catch (error) {
      core.error(`Failed to list github runners: ${error}`);
      throw error;
    }
  } while (!done);
  return null;
}

Ah I see. Is there value in having this timeout be customizable using the same parameter discussed here ?

I am working on adding a gh_api_retry_delay param for the other two calls. We should be able to incorporate this into almost all GH API calls. I'll review the other calls to make sure we don't end up in this situation again.

Ah I see. Is there value in having this timeout be customizable using the same parameter discussed here ?

Yes, I think that would be great!

Ok I reviewed the code and the do-while loop inside of getRunnerWithLabels is not needed. It was leftover code before adding the wait and retry logic to the polling function. I am testing my changes right now and if all goes well I'll be pushing a new release later this evening.

https://github.com/NextChapterSoftware/ec2-action-builder/pull/33 was merged to main

Release 1.8 is out with this change
I tested it with my setup and it works as expected. Let me know if you face any issues otherwise please close this GitHub issue

We're no longer hitting github token limits.  Thank you for this!


xfreerdp/wfreerdp crash in random conditions

I build xfreerdp/wfreerdp (many GIT versions, from 2012-9 till now, I git clone every 1-2 weeks) in ubuntu 12.04.2 LTS and windows 7 sp1 with visual studio 2010 pro. Both versions encounter crash in random conditions. But the debug output is similar: SSL read/write error. I think the problem may be the interaction with OpenSSL.
Build environment as following:
ubuntu 12.04.2 LTS x86 desktop
su -
apt-get purge libfreerdp1 (remove all system built-in freerdp libs)
apt-get install cmake build-essential libssl-dev libx11-dev libxext-dev libxinerama-dev libxcursor-dev libxdamage-dev libxv-dev libxkbfile-dev libasound2-dev libcups2-dev libxml2 libxml2-dev libxrandr-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libavutil-dev libavcodec-dev
cmake .
make
make install
xfreerdp /u:xxx /p:xxx /v:xxx (use simplest arguments)
RDP host is windows 7 sp1 or windows 2008 r2, and xfreerdp crashes occassionally, and the debug message is:
SSL read/write error.
BTW, freerdp officially released by ubuntu (1.0.1) works fine and never has crash.

Working on current master 3c7cc555a5a5f02366918be7eb935bb1f22115ef


RD-7042 Add client.execution_groups.set_concurrency

Allows changing concurrency for a group

needs cloudify-cosmo/cloudify-common#1245


passing values to theme from scss

Infinite Calendar is a cool widget. We are trying to use it in our project. However, the problem is we can't hard code the colors in the custom theme. I wonder if there is a way to set the values in the theme from regular style sheet. We are using SCSS.
I tried couple of options like sass-extractor to read the scss file and extract them as JSON, but they seem to work on 'node' environment only. Also, I'm not sure if that is the right approach.  Please let me know an ideal way of doing this.
Thanks in advance.

Does this mean you can't customize the theme?

You can certainly customize the theme, there are a number of built-in customizations you can apply directly in JavaScript by passing a theme prop, see https://github.com/clauderic/react-infinite-calendar/blob/master/src/utils/defaultTheme.js for all possible customizations.
If you'd like more control, you can either fork the styles.css files that comes bundled with the npm package, or overwrite the styles yourself, as you normally would using css selectors.
Example:
.Cal__Day__root {
  background-color: red;
}


Can I supress errors or warnings?

Hi,
I run a powershell script that has to import a pssession first (to get access to the Add-MailboxPermission Command).
It does import it but it also returns a little warning:

Warning: The names of a few imported commands on modul "tmp_4wm2ycxh.e5r" contains not approved verbs....

So I don't care about the warning but then the script cancels out into the "error" function and doesn't get to the actual Add-MailboxPermission command.
How can I solve this problem?
Great Project btw.!

You can disable that warning when you call Import-Module by using the -DisableNameChecking switch.

Here is another example of an error you could suppress or not suppress errors.  The basic idea is you get error data from a try/catch and pass it back in a JSON string.
the powershell:
https://github.com/BenjaminMichael/Node-Powershell-Electron-Intermediate-Demo/blob/master/scripts/get-ADUser.ps1
and instead of using a "then" statement in this example I am using the .on output event listener:
ps.on('output', output =>{
    let data = JSON.parse(output);
    console.log("PowerShell returning data: " + output);
    evaluatePSOutput(data);
});

here is whre the error handling happens (or if no error, do other stuff)
const evaluatePSOutput = (data) => {
    switch(data[0].Result){
        case "Get-ADUser Remove Error":
            DOM.resetMyRemoveForm(); //error occurred, reset form
            $('#redMessageBar').html(data[0].Error.Message); //report the error to DOM or you could not
            return;
        break;

//do other stuff ...

Thank you @BenjaminMichael I understand it now 👍
Good point with your second example.


Need help: Adapt "Secure Remote Authentication" from Jsch

Hi,
I asked on of our developer to to help me, to get SSH working with a passphrase, with a local-ssh agent, because Ansible uses the system SSH.
Because of the passphrase, it is not possibile to submit the key just with a few lines somewhere in the code , because if we use the "Secure Remote Authentication", it is hidden from the outside of the JAVA bubble.
We need a "wrapper", to get the secret and feed the ssh-add command.  The Jsch has some lines, to access the "secret". The question is now: how to adapt the code for the Ansible plugin ...
If we can get some hints, how to implement it in the correct way, it would be awesome :-)

hi,
my boss asked me: if we can sponsor this feature request and pay for it. It seems, it would be easier than give this problem to our non JAVA developer :-)
cu denny


Created pattern.cpp

Printing the diagonal and sides of a Diamond

go through the updated readme file to know ur mistakes and raise another pr


feat(notification): rtl style

i cant login to vercel due to the sanctions!
please inspect my pr deployment issue.


Beautify roadmap md

@dholbach and I plan to add a progress bar and change the bullets to checkmarks. Checked/finished items will be in grey.

Looks like progressbars can't easily be done: https://github.com/squidfunk/mkdocs-material/issues/862 - AFAIUI we'd need to turn https://github.com/facelessuser/pymdown-extensions/blob/master/docs/src/scss/extensions/_progressbar.scss into CSS for this to work? :shrug:


Allow hook into Jest setup files

Some projects like to use https://github.com/airbnb/enzyme which requires a gloabl jest configuration:
const { configure } = require('enzyme');
const Adapter = require('enzyme-adapter-react-16');

configure({ adapter: new Adapter() });

A clean way to add this configuration is through Jest's setupFiles configuration property: https://github.com/Availity/availity-workflow/blob/master/packages/workflow-plugin-react/test.js#L18
Maybe a convention based approach could work where each workflow plugin can detect a jestSetup.js file at the root of the project and include if found:
setupFiles: ['raf/polyfill', '<rootDir>/jestSetup.js'],

Having the flag --runInBand is recommend by VS Code to prevent creating a worker pool of child processes.
function unit() {
  const argv = process.argv.slice(2);
  const jestConfig = JSON.stringify(create());
  argv.push(`--config=${jestConfig}`);
  argv.push('--env=jsdom');
  argv.push('--runInBand');

  jest.run(argv);

  return Promise.resolve();
}

Probably also want to give access to setupTestFrameworkScriptFile for react at least (angular currently does this to set up angular and angular-mocks)


Fix for mingw, if support "-gcodeview" add -gcodeview

if support "-gcodeview" add  -gcodeview, -Wl,--pdb=
I found this solution here https://github.com/bombela/backward-cpp/issues/176#issuecomment-1382442652
if compiler don't support -gcodeview is old version with msvcr90

tab everywhere now :)
indentation the same as the rest of the code,
or I don't understand :Can you clean up the indentation?


[Alert] Avoid caching charts when sending as text

Hi all,
I have set up an alert to send a chart as text. However, the values in the chart, which is the content of the alert, sometimes are cached. It’s sending the chart value of the previous alert.
Is this an expected behavior? Ideally, whenever the alert is triggered, I would like to get the real-time value of the chart. Is there a way to guarantee to get the real-time value for every single alert?
After this PR, I believe we could already bust the cache when alerting the screenshot of the dashboard. I'm looking for a similar feature that will allow the user to bust cache when sending a chart as text when alerting.
CC the contributor of the mentioned PR, @hughhhh @betodealmeida .
Hope someone could help me look into this. Thanks 🙏

@chonyy that PR from @hughhhh does sound like it did exactly what you want... busting the cache for charts in dashboards on alerts (however they're sent) if I'm interpreting correctly. Are you still facing this issue, or is this resolved by now so we can close out the fairly stale bug report (which might be more of a feature request anyway)?


Incorrect Error Transition Configuration for Login Flow

Cas Configuration:

CAS v5.1.5
cas.pm.authn.enabled=true

Use Case:
When Authentication service raises AccountPasswordMustChangeException, CAS maps the error to view - CasWebflowConstants.VIEW_ID_MUST_CHANGE_PASSWORD . At this state, if PasswordChangeAction returns false or raises exception, CAS incorrectly shows Account Disabled page instead of 'CasWebflowConstants.VIEW_ID_MUST_CHANGE_PASSWORD' with error message.
Cause:
PasswordManagementWebflowConfigurer configures 3 views for Error event. Hence, whenever action returns error event, the flow shows AccountDisabled view.

Thanks for reporting the issue. Sounds like something that needs fixing. Please consider filing a pull requests to fix the problem.

yeah, just found it! Pull request on its way soon!


Keyboard theme needs help

At the moment the keyboard theme has a couple problems:

[ ] Applied to not just the default theme.
[ ] Not togglable.

At the moment the keyboard theme has a couple problems:
* [ ]  Applied to not just the default theme.

* [ ]  Not togglable.

I can try and whip up the styling later. Made a keyboard theme that allows full color customization already, so should be able to adapt that rather quickly

PR #4 Contains the styling I came up with as well as the simplified method for handling keyboard theming

Thanks for the contribution @Tormak9970. Closing this one out as it's fixed. More keyboard changes are coming down the pike in #5


Fix unmanaged string being incorrectly parsed as ANSI in SDL

SDL_TEXTINPUTEVENT.text is incorrectly parsed as ANSI instead of UTF-8, leading to incorrect non-ascii text inputs.
Before:

After:

"Funny" thing is, this will not (and seemingly did not, unless I had several strokes) manifest on unix as Marshal.PtrToStringAnsi is really PtrToStringInWhateverCodepageYouHappenToBeOn, and on unix it's usually utf-8.
Anyway, seems correct as far as I can tell.


Upgrade binding to fix bug

Fix #30518

Error:      	Not equal:
expected: 201
actual  : 500
Test:       	TestAPICreateAndDeleteUser
Messages:   	Request: POST /api/v1/admin/users?token=f666b394cc0438ee3394d60d55a3d5a69a75b0ab

Sounds related

https://gitea.com/go-chi/binding/pulls/17

Upgrade chi binding in a55c51051e661125dec4583ba22801d7a2821a20


fix(nhost-js): use correct URL for functions requests

Codecov Report

Merging #1666 (0131886) into main (340c014) will decrease coverage by 0.05%.
The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main    #1666      +/-   ##
==========================================
- Coverage   86.97%   86.92%   -0.05%
==========================================
  Files          82       82
  Lines        8911     8916       +5
  Branches      515      515
==========================================
  Hits         7750     7750
- Misses       1161     1166       +5

Impacted Files
Coverage Δ

packages/nhost-js/src/clients/functions/index.ts
54.01% <0.00%> (-2.05%)
:arrow_down:

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


shared "lib" vuex store between multiple vue apps

Hi guys, im interested in migrating an existing project that has lots of shared business logic into NX workspaces.
these are 4 vue apps that share the same Vuex store and are just seperated by theme data.
i want to extract all UI components (these components also heavily use vuex getters) and vuex store into libs and each app will be it's own entity.
im trying to understand how to go about and execute this approach, or maybe it's just wrong?
thanks :)

I would say that composing Vuex modules would be the way to go, i.e. you can create either a plain typescript library or a vue library that would contain vuex related information for some given slice of state and the components that are related. For example, say you had an app that displayed all the info from https://jsonplaceholder.typicode.com/. You could have six different libraries (posts, comments, albums, photos, todos, users), all exporting a module like so:
// libs/comments/src/lib/comments.ts
export const commentsModule = {
  state: { comments: [] },
  mutations: {
    setComments(state, payload) {
      state.comments = payload;
    },
  },
  actions: {
    async fetchComments({ state, commit }) {
      const comments = await fetch(
        'https://jsonplaceholder.typicode.com/comments'
      ).then((res) => res.json());
      commit('setComments', comments);
    },
  },
  getters: {
    comments(state) {
      return state.comments;
    },
  },
}

and then compose your store inside your app with these modules
// apps/my-app/src/store/index.ts
import { createStore } from 'vuex';
import { postsModule } from '@proj/posts';
import { commentsModule } from '@proj/comments';
import { albumsModule } from '@proj/albums';
// ...

export default createStore({
  modules: {
    posts: postsModule,
    comments: commentsModule,
    albums: albumsModule,
    // ...
  },
});

I haven't used modules but I did a quick POC (with the example above) and it worked out well. I read through this documentation here. In your case, maybe you don't need modules and can export the entire store object from a library to share across your apps if they are all the same, just depends on the circumstance.

thank you very much for the quick and extensive answer.
ill try to implement this.


Refactor Rav Request

Problem statement
Currently, the Rav Request system is not stable, any failure causes problems in the whole system.
The refactor between tap-core and tap-agent seems necessary to improve reliability, readability and maintainability.

this error is related
2024-09-19T20:15:10.486623Z DEBUG indexer_tap_agent::agent::sender_account: Total fee greater than the trigger value. Triggering RAV request, total_fee:<PHONE_NUMBER>616669893, trigger_value:<PHONE_NUMBER>000000000                                                                                at tap-agent/src/agent/sender_account.rs:578                                                                                in ractor::actor::Actor with id: "0.1", name: "0xDDE4cfFd3D9052A9cb618fC05a1Cd02be1f2F467"                                                                                2024-09-19T20:15:10.486641Z ERROR indexer_tap_agent::agent::sender_allocation: Can't trigger rav request until Instant { tv_sec: 1262165, tv_nsec: 167912880 } (backoff)  at tap-agent/src/agent/sender_allocation.rs:264                                                                                in ractor::actor::Actor with id: "0.35", name: "0xDDE4cfFd3D9052A9cb618fC05a1Cd02be1f2F467:0xdE477aFB87B72E6CA7447d6B35254771088521Ce"

It seems the error indicates that too many RAV requestes are being requested at once and there's an enforced backoff to slow  things down


chagrining, fleshlike

This pull request was generated by the 'mq' tool
[test]
flake rate: 0.4
logical conflict every: 100
sleep for: 300s
[pullrequest]
requests per hour: 30
deps=[c,f]

/trunk merge


Fix after xxxx callbacks deprecation

Remove deprecations.
Deprecate the behavior of AR::Dirty inside of after_(create|update|save) callbacks by sgrif · Pull Request #25337 · rails/rails

@komagata Good catch. After merging this Pull Request, what version of ActiveModel will this library supports? No need to think about backward-compatibility to the old versions?

@r7kamura These methods need grater than activerecord 5.1.0.
It will brake backward-compatibility.
I will try to add codes(and tests) to this PR, If i get the time.

@komagata Thank you in advance for your work. Hopefully we want to support both 4.x and 5.x, because many users of this library are still using Rails 4.


fix data augmentation error. Added new test.

Added reinitialization in the training process. Added best model backup during training.

👍👍👍

Refined code for logic clarification. Optimize best version backup efficiency with only deep copy the state_dict instead of the entire network.