79495881

Date: 2025-03-09 12:06:51
Score: 1.5
Natty:
Report link

I had this issue when using Place Autocomplete GET request which i used to use for my clients than it appears is no more available for new users

This product or feature is in Legacy status and cannot be enabled for new usage. For more information about the Legacy stage and how to migrate from Legacy to newer services...

Request should be send as POST request for now

Migration

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Abdullah Tahan

79495878

Date: 2025-03-09 12:04:51
Score: 1
Natty:
Report link

It seems that closing table tag needs to be full tag and not shortcut. The following fixes the problem

<table id="table" class="table table-striped" style="width:95%"></table>

instead of

<table id="table" class="table table-striped" style="width:95%" />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user69166

79495864

Date: 2025-03-09 11:55:48
Score: 1
Natty:
Report link

In settings.json add a general cursor color setting that works across all themes by adding this outside of the theme-specific settings:

"workbench.colorCustomizations": {
  "editorCursor.foreground": "#ffff00",
  "editorCursor.background": "#ffff00"
},

This will change your cursor color to bright yellow..

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sandun Madhushan

79495862

Date: 2025-03-09 11:51:47
Score: 0.5
Natty:
Report link

After recreating projects from scratch, that worked just fine, I eventually decided to fire up Wireshark just to see if the events were really getting sent out or not. That's when I remembered I had an nginx running locally to handle the certs and ports. Sure enough, it was buffering the events.

I added the following and everything now works fine:

proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_buffering off;
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Steve Maring

79495858

Date: 2025-03-09 11:47:47
Score: 3
Natty:
Report link

Use syscall.UTF16ToString with a converted []uint16 slice for simplicity, or unicode/utf16.Decode for flexibility. Both will let you print the string to the console.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dhurkesh B

79495852

Date: 2025-03-09 11:36:45
Score: 2
Natty:
Report link

It worked for me with another package issue installing dependencies. Thanks a lot

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: David Delgado Déniz

79495851

Date: 2025-03-09 11:35:45
Score: 1
Natty:
Report link

MQTT should also be a good alternative. It has been designed for IoT devices and thus has low overhead.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: queeg

79495839

Date: 2025-03-09 11:25:43
Score: 0.5
Natty:
Report link

Got the workaround from here: https://github.com/diesel-rs/diesel/issues/89#issuecomment-429547936

#[derive(Identifiable, Queryable)]
#[table_name = "product_category"]
pub struct ProductCategory {
    id: i32,
    name: String,
}

pub struct DummyProductCategory(ProductCategory);

#[derive(Queryable, Identifiable, Associations)]
#[belongs_to(ProductCategory, foreign_key="upper_category_id")]
#[belongs_to(DummyProductCategory, foreign_key="lower_category_id")]
#[table_name = "product_category_rollup"]
pub struct ProductCategoryRollup {
    id: i32,
    upper_category_id: i32,
    lower_category_id: i32,
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ligo George

79495834

Date: 2025-03-09 11:22:43
Score: 2.5
Natty:
Report link

Using Firefox ESR in Debian 12, I was able to visit an HSTS-blocked site by opening it in a "New Private Window." Seems to work in Chrome v134.0.6998.35 as well.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jason Stewart

79495827

Date: 2025-03-09 11:19:42
Score: 2
Natty:
Report link

You can't transfer Wi-Fi over a hotspot on iPhones natively, but this answer states:

You can do this with USB or Bluetooth tethering on jailbroken iOS devices using an app such as MyWi.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Kiryl Famin

79495817

Date: 2025-03-09 11:10:40
Score: 1.5
Natty:
Report link

This is the third time I try to upgrade to kotlin 2 and the hilt metadata problem is a stopper. Thank you for looking into it.

Where is my mistake?

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    alias(libs.plugins.android.application) apply false
    alias(libs.plugins.kotlin.android) apply false
    alias(libs.plugins.compose.compiler) apply false
    alias(libs.plugins.dagger.hilt.android) apply false
    alias(libs.plugins.devtools.ksp) apply false
}
plugins {
    alias(libs.plugins.android.application)
    alias(libs.plugins.kotlin.android)
    alias(libs.plugins.compose.compiler)
    alias(libs.plugins.dagger.hilt.android)
    alias(libs.plugins.devtools.ksp)
}

android {
    namespace = "com.....myapplication"
    compileSdk = 35

    defaultConfig {
        applicationId = "com.....myapplication"
        minSdk = 31
        targetSdk = 35
        versionCode = 1
        versionName = "1.0"

        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            isMinifyEnabled = false
            proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
        }
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }

    kotlinOptions {
        jvmTarget = "17"
    }
}

dependencies {

    implementation(libs.androidx.core.ktx)
    implementation(libs.androidx.activity.compose)

    implementation(libs.material)
    implementation(libs.compose.material)

    implementation(libs.dagger.hilt.android)
    ksp(libs.dagger.hilt.android.compiler)
    ksp(libs.jetbrains.kotlinx.metadata.jvm)

    debugImplementation(libs.androidx.ui.tooling.preview)
    debugImplementation(libs.androidx.ui.tooling)

    testImplementation(libs.junit)

    androidTestImplementation(libs.androidx.junit)
    androidTestImplementation(libs.androidx.espresso.core)
}
[versions]
agp = "8.9.0"
ksp = "2.1.10-1.0.29"
kotlin = "2.1.10"
coreKtx = "1.15.0"
activityCompose = "1.10.1"
material = "1.12.0"
composeMaterial = "1.3.1"
uiTooling = "1.7.8"

daggerHilt = "2.51.1"
kotlinXMetadata="0.5.0"

junit = "4.13.2"
junitVersion = "1.2.1"
espressoCore = "3.6.1"

[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
compose-material = { group = "androidx.compose.material3", name = "material3", version.ref = "composeMaterial" }
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling", version.ref = "uiTooling" }
androidx-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }

dagger-hilt-android = { group = "com.google.dagger", name = "hilt-android", version.ref = "daggerHilt" }
dagger-hilt-android-compiler = { group = "com.google.dagger", name = "hilt-android-compiler", version.ref = "daggerHilt" }
jetbrains-kotlinx-metadata-jvm ={ group = "org.jetbrains.kotlinx", name = "kotlinx-metadata-jvm", version.ref="kotlinXMetadata"}

junit = { group = "junit", name = "junit", version.ref = "junit" }
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }


[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
dagger-hilt-android = { id = "com.google.dagger.hilt.android", version.ref = "daggerHilt" }
devtools-ksp = { id = "com.google.devtools.ksp", version.ref = "ksp"}
Android Studio Meerkat | 2024.3.1
Build #AI-243.22562.218.2431.13114758, built on February 25, 2025
Runtime version: 21.0.5+-12932927-b750.29 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.3.1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Registry:
  ide.experimental.ui=true
  i18n.locale=
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Cvetelin Andreev

79495812

Date: 2025-03-09 11:08:39
Score: 1
Natty:
Report link
data = pd.read_csv(
    'Log_jeden_den.log',
 sep=r'\s+(?=(?:[^"]*"[^"]*")*[^"]*$)(?=(?:[^\[]*\[[^\]]*\])*[^\]]*$)',
    engine='python',
    na_values='-',
    header=None,
    usecols=[0, 3, 4, 5, 6, 7, 8],
    names=['ip', 'time', 'request', 'status', 'size', 'referer', 'user_agent'],
    converters={'time': parse_datetime,
                'request': parse_str,
                'status': parse_int,
                'size': parse_int,
                'referer': parse_str,
                'user_agent': parse_str})

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mootez Zemmel

79495811

Date: 2025-03-09 11:08:39
Score: 3.5
Natty:
Report link

Bro what is the problem exactly u tackled to make this work

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Robin Joseph

79495805

Date: 2025-03-09 11:06:39
Score: 2.5
Natty:
Report link

You can simply copy the debug.keystore file from the ./android folder on your old device and replace the same file in the same location on your new device.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Bratyslav Morhunov

79495802

Date: 2025-03-09 11:04:38
Score: 0.5
Natty:
Report link
OptionalClientModel = create_model(
    "OptionalClientModel",
    **{k: (v.annotation | None, v) for k, v in ClientModel.model_fields.items()})

This should suit your needs. No need to iterate over the annotations yourself.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: lord_haffi

79495796

Date: 2025-03-09 10:58:37
Score: 1.5
Natty:
Report link

The gomock Framework (now maintained by Uber) does this, so yes - it's safe.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: eik

79495794

Date: 2025-03-09 10:56:37
Score: 2.5
Natty:
Report link

Actually, Burp's Montoya API provides everything needed. One just has to implement the following methods of the 3 interfaces HttpHandler, ProxyRequestHandler, and ProxyResponseHandler:

sketch

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: upe

79495793

Date: 2025-03-09 10:54:36
Score: 1
Natty:
Report link

It is better to look at the deleted messages on the queue. The messages in flight is just a snapshot at a certain time. If the message was deleted already because the task did not take long to complete, then there would be no message in flight. I assume your task did not take long to finish ( 1 second maybe). And what are the odds that the messages in flight metric is updated at exactly that time?

So in order to be sure just check the deleted messages on the queue or as a way of testing it, add a sleep of approximately 60 seconds to every task. This will make the task take longer and allows you to see that it is in flight.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Hadronymous

79495786

Date: 2025-03-09 10:52:35
Score: 1
Natty:
Report link

The error is coming from Kusto service not being able to download the blob, either the Kusto managed identity does not have permissions on the storage account or the storage account is not part of the private network (sounds like this is the issue given the answer @hello provided)

How does LightIngest works:

  1. The tool first lists the blobs in the container given the permissions either in the -source cmd arg or some other cmd arg (i.e. here connectToStorageWithUserAuth), here its using user prompt authentication, so given the user running the tool has permissions to list the container the tool will be able to list the blobs.
  2. The tool issue queued ingest (given you are using the suggested "ingest-" service URL), with the constructed URL based on the -source and other cmd args, (i.e. here - ingestWithManagedIdentity), here the resulted blob urls are of structure: "https://storage.blob.core.windows.net/container/blob.csv.gz;managed_identity=system"
  3. The tools poll the ingestion result (unless disabled).

See LightIngest managed identity docs and the code

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @hello
  • Low reputation (0.5):
Posted by: Ohad Bitton

79495785

Date: 2025-03-09 10:52:35
Score: 2.5
Natty:
Report link

It is 3 years topic, but I need that functionality also.
So I've found this extension: https://marketplace.visualstudio.com/items?itemName=daucloud.dark-theme-image-view&ssr=false#overview

Basically it does the job - the chessboard background is replaced by a white background for png files.

I am not sure about safety of using it though.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eldar V

79495775

Date: 2025-03-09 10:44:34
Score: 0.5
Natty:
Report link

How did you create the virtual environment? Did you activate it once it is created?
Sometimes, we can miss activating the environment and installing the necessary dependencies on it.

I personally use uv for creating and managing virtual environments:

$ uv venv
$ source .venv/bin/activate
$ (venv) pip install python-gnupg==0.5.4

If you don't use uv, you can always follow this tutorial venv — Creation of virtual environments, you'll get the same result.

I've just run that snippet of code and it worked perfectly fine within my virtual environment. Make sure you activate and install the correct gnupg python dependency.

Regarding to the formatter of the result. What you're printing is a byte-formatted string.
In case you want a more human-readable output you can always do the following:

if encrypted_data.ok:
    print("Data encrypted successfully.")
    encrypted_str: str = bytes(encrypted_data.data).decode(encoding="utf-8")
    with open(file=out_file, mode="w") as encrypted_file:
        encrypted_file.write(encrypted_str)
    print(encrypted_str)

I've just casted the encrypted_data.data to bytes() and decoded it in UTF-8.

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Whitelisted phrase (-1): it worked
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How did you
  • Low reputation (1):
Posted by: fqlenos

79495770

Date: 2025-03-09 10:38:33
Score: 1
Natty:
Report link

I use the Snap-SPARQL Plugin (in Protégé). It worked for me, even though it allows restricted use of some of the functions.

Reasons:
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arjun Kapoor

79495768

Date: 2025-03-09 10:34:32
Score: 0.5
Natty:
Report link

The only solution I have found is to have a global Input.input.addEventListener() call (rather than adding an event listener per context menu) and through it call a global callback that is updated by the context menus.

// Weak map mapping to Input listeners of submenus reliably.
// The keys are the submenu lists themselves, not the submenu representing items.
const submenuInputPressedListeners = new WeakMap<HTMLDivElement, Function>();

// Globalized input action listener
Input.input.addEventListener("inputPressed", function(): void
{
    currentInputPressedListener?.();
});

(Updated with either currentInputPressedListener = input_onInputPressed; or currentInputPressedListener = null;, instead of Input.input.addEventListener or removeEventListener)

Now am I doing this to test navigation input on submenus from outer context menus:

// Check input on submenu
submenuInputPressedListeners.get(submenus[submenus.length - 1])();
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Matheus Dias de Souza

79495766

Date: 2025-03-09 10:32:32
Score: 1
Natty:
Report link

Alternative:

<Box onSubmit={extendedFormSubmit} component="form">

const extendedFormSubmit = (event: FormEvent<HTMLFormElement>) => {
  event.preventDefault();
  event.stopPropagation();
  form.handleSubmit(onSubmit)();
};

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Artem Zakharchuk

79495765

Date: 2025-03-09 10:31:31
Score: 1.5
Natty:
Report link

thanks Alon. That worked for me too.


pip install ipython==8.33
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sergios Panos

79495761

Date: 2025-03-09 10:30:31
Score: 1.5
Natty:
Report link
  1. I've ran your code and test it in multiple screen sizes, and it doesn't represent the problem in the images, you're setting the flex-direction property of the .text-content element to column, I really cannot think of a way it will result in a row.
  2. Also, there's no second button, there is only one anchor tag but its text wraps.

(The second button isn‘t necessary anymore. :))

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: HARCHICHE XX

79495752

Date: 2025-03-09 10:22:30
Score: 1
Natty:
Report link

# Menyimpan diagram sebagai gambar agar bisa diunduh

# Buat ulang diagram dalam ukuran besar untuk kualitas lebih baik

plt.figure(figsize=(20, 15))

nx.draw(G, pos, with_labels=True, node_color=node_colors, edge_color="gray", node_size=4000, font_size=10, font_weight="bold", arrowsize=12)

# Tambahkan legenda

plt.legend(handles=patches, loc="lower right", fontsize=12)

plt.title("Diagram Alur Kerangka Berpikir Penelitian", fontsize=16, fontweight="bold")

# Simpan gambar ke file untuk diunduh

diagram_path = "/mnt/data/kerangka_berpikir_penelitian.png"

plt.savefig(diagram_path, dpi=300, bbox_inches="tight")

# Berikan tautan untuk mengunduh

diagram_path

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Regina Khofifah

79495740

Date: 2025-03-09 10:12:28
Score: 0.5
Natty:
Report link

The Go runtime cannot perceive the internal execution logic of C functions, and the memory management on the Go side is isolated from that on the C side. Therefore, calling in_c_foo via CGO does not have any special impact on the Go runtime. CGO is merely an FFI implementation, with both sides sharing the same process address space. When writing C code, you can think of the Go runtime as an independent CSP thread pool running within the same process—while sharing process resources, their logic remains isolated. However, you still need to be aware of three risks:

  1. If the C function spawns new threads, the Go scheduler will not be aware of them, which may lead to resource contention or leaks.

  2. While a C function is executing, the current M (OS thread) becomes locked, preventing it from running other Goroutines.

  3. When passing pointers to the Go heap, if the C function uses such a pointer asynchronously, it might result in a dangling pointer due to the shrinkage of the Go heap.

Therefore, it is crucial to rigorously scrutinize the passing and usage of pointer objects to avoid situations where both C and Go concurrently reference the same pointer object in different threads.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: kyung8in

79495738

Date: 2025-03-09 10:11:27
Score: 4
Natty: 5
Report link

yeah that's a good trick thanks for having shared the insight!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: beabor

79495737

Date: 2025-03-09 10:11:27
Score: 2.5
Natty:
Report link

Two steps-

  1. Change your id to int example-----"id": "5" to "id": 5,
  2. Use stable json-server version install it using npm install -g [email protected]
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: aishwarya pathak

79495732

Date: 2025-03-09 10:07:26
Score: 1
Natty:
Report link

Solution(not sure if it is an optimal):

If you are very closer to a conference deadline, then use(based on) qpdf to post-process your final PDF. The post-processed file does not give the Error 1010.

$ qpdf my_file.pdf my_file_new.pdf

Ubuntu 18.04.6 LTS, qpdf version 8.0.2

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: goldfinch

79495726

Date: 2025-03-09 10:03:25
Score: 2
Natty:
Report link

Not really.your problem but if you have a transcription error in the names of your properties and their references in @Value annotations you will often get an error about a dependency injection failure when you try to run the code.

The grimness of the message makes it seem as if something more fundamental is broken.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Value
  • Low reputation (0.5):
Posted by: Matthew V Carey

79495718

Date: 2025-03-09 09:54:23
Score: 2.5
Natty:
Report link

This doesn't have a solution. It's fundamentally broken software. Virtual environments are merely presumed to work but they don't, and running your python interpreter in the V.E. doesn't help in the slightest. I wish there was an answer.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Steve McLean

79495717

Date: 2025-03-09 09:53:23
Score: 0.5
Natty:
Report link

You can access it from the remote users

import { useRemoteUsers, useRemoteVideoTracks, useRemoteAudioTracks } from "agora-rtc-react";

function App() {
const remoteUsers = useRemoteUsers();
const { videoTracks } = useRemoteVideoTracks(
// Remove the local user's screen-sharing video track from the 
subscription list
remoteUsers.filter(user => user.uid !== appConfig.ShareScreenUID),
);
const { audioTracks } = useRemoteAudioTracks(
// Remove the local user's screen-sharing audio track from the 
subscription list
remoteUsers.filter(user => user.uid !== appConfig.ShareScreenUID),
);

return <></>;
}

https://github.com/AgoraIO-Extensions/agora-rtc-react/blob/main/packages/agora-rtc-react/docs/hooks/useLocalScreenTrack.en-US.mdx

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jokanola

79495701

Date: 2025-03-09 09:42:21
Score: 1.5
Natty:
Report link

An alternative i have been doing is you can actually use the below in my github action as a step , configure your role in AWS account role for github action permission (https://aws.amazon.com/blogs/security/use-iam-roles-to-connect-github-actions-to-actions-in-aws/)

      - name: Configure AWS Credentials
        # if: ${{ env.ACCOUNT == 'XXXX' }}
        uses: aws-actions/[email protected]
        with:
          aws-region: ${{ env.REGION }}
          role-to-assume: arn:aws:iam::xxxx:role/github-action-XXXX
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Miths

79495692

Date: 2025-03-09 09:32:19
Score: 3
Natty:
Report link

Insane that I can't comment because of lack of reputation. I just wanted to make a comment to say that you spelled auth wrong in your answer. You wrote "aithToken". I can't blame you because I didn't notice either and I just spent an hour trying to troubleshoot why it wasn't working, then I noticed that. Friendly FYI to anyone else who comes across this.

_aithToken=fake ---> _authToken=fake
Reasons:
  • RegEx Blacklisted phrase (1): can't comment
  • RegEx Blacklisted phrase (1.5): reputation
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bridging Shores

79495682

Date: 2025-03-09 09:28:18
Score: 2
Natty:
Report link

In search of how to work with SQLAlchemy in conjunction with SQLModel, find this thread that can be help. (not tested yet by myself)

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: FARZIN FARZBOOD

79495669

Date: 2025-03-09 09:17:16
Score: 2.5
Natty:
Report link

Just to give an update. I did get e response on email. And after I sent them the screenshots they seem to have started the process again and it passed. And communication have continued over email. Which is good.

There just wasn't any indication about any human being involved that could be communicated with.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mike

79495657

Date: 2025-03-09 09:10:14
Score: 4.5
Natty: 4
Report link

didn't work with me my dropdown is sumoselect

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did
  • Low reputation (1):
Posted by: user29947838

79495652

Date: 2025-03-09 09:08:14
Score: 2.5
Natty:
Report link

As of March 2025, the answer is you can't. because mysql plugin mysqlx is disabled by default on AWS RDS. You could check by using this command myssql> show plugins;

mysqlx-plugins

Unless you could activate the plugins with console or https://dev.mysql.com/doc/refman/8.4/en/rewriter-query-rewrite-plugin.html.

Reference:

https://stackoverflow.com/questions/65981814/mysqlx-plugin-unreachable-on-amazon-rds-mysql-8-0#:~:text=According%20the%20Amazon%20RDS%20user,far%20as%20I%20can%20tell.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ygautomo

79495651

Date: 2025-03-09 09:07:13
Score: 1.5
Natty:
Report link

I recommend this article: Especially section Race Condition: The page.waitForNavigation() must be run before page.reload() or page.goto() and concurrently.

// ❌ Problematic approach
await page.click('.link');
await page.waitForNavigation(); // May miss navigation

// ✅ Correct approach
await Promise.all([
    page.waitForNavigation(),
    page.click('.link')
]);
Reasons:
  • Blacklisted phrase (1): this article
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user2224575

79495625

Date: 2025-03-09 08:41:09
Score: 2.5
Natty:
Report link
    $user = DB::table('users')->where('id', 1)->lockForUpdate()->first();

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Abdullah Al Shahed

79495624

Date: 2025-03-09 08:41:09
Score: 1.5
Natty:
Report link

A simple if statement

I am converting the comments by @Anonymous and the code they link to to this answer. If your float is >= 0, cast to long first, and if within the unsigned int range, cast further to int. Otherwise the result is 0.

private static int convertFloatToUnsignedInt(float f) {
    if (f >= 0) {
        long asLong = (long) f;
        // Within range of unsigned int?
        if (asLong < 0x1_0000_0000L) {
            return (int) asLong;
        }
    }
    return 0;
}

Let’s try it with your example float values:

    float[] exampleFloats = { 0.0f, -0.1f, -1.5f, Float.NaN, 1.7f, 3e+9f, 1e+12f };
    for (float exampleFloat : exampleFloats) {
        int asInt = convertFloatToUnsignedInt(exampleFloat);
        System.out.format(Locale.ENGLISH, "%14.1f -> %10s or %11d%n",
                exampleFloat, Integer.toUnsignedString(asInt), asInt);
    }

Output is

           0.0 ->          0 or           0
          -0.1 ->          0 or           0
          -1.5 ->          0 or           0
           NaN ->          0 or           0
           1.7 ->          1 or           1
  3000000000.0 -> 3000000000 or -1294967296
999999995904.0 ->          0 or           0

The output shows the float value, the unsigned int value converted to and the signed value of the same int.

double to unsigned long

… but what about double to long?

For the case of converting double to unsigned long using the same criteria, you may convert via BigDecimal:

private static final double MAX_UNSIGNED_LONG_PLUS_ONE
        = 2.0 *(((double) Long.MAX_VALUE) + 1);

private static long convertDoubleToUnsignedLong(double d) {
    if (d >= 0 && d < MAX_UNSIGNED_LONG_PLUS_ONE) {
        return new BigDecimal(d).longValue();
    }
    return 0;
}

Trying this out too:

    double[] exampleDoubles = { 0.0, -1.5, Double.NaN, 1e+19, 1e+20 };
    for (double exampleDouble : exampleDoubles) {
        long asLobg = convertDoubleToUnsignedLong(exampleDouble);
        System.out.format(Locale.ENGLISH, "%23.1f -> %20s or %20d%n",
                exampleDouble, Long.toUnsignedString(asLobg), asLobg);
    }

Output:

                    0.0 ->                    0 or                    0
                   -1.5 ->                    0 or                    0
                    NaN ->                    0 or                    0
 10000000000000000000.0 -> 10000000000000000000 or -8446744073709551616
100000000000000000000.0 ->                    0 or                    0

The two conversion methods are not 100 % consistent. You may be able to streamline them a bit for more consistent code.

See the code run online

Repeating the link by @Anonymous the code is running online here. In the above I have made very minor adjustments to their code.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @Anonymous
  • User mentioned (0): @Anonymous
  • Low reputation (1):
Posted by: Ema Persaud

79495619

Date: 2025-03-09 08:38:08
Score: 1
Natty:
Report link
/static/images/yourImage.png

Paste your image here , and use it in the Markdown div .
Note : Maybe you will need to re-build the Front-End

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mazen Ahmed

79495611

Date: 2025-03-09 08:25:06
Score: 5.5
Natty: 4.5
Report link

You can embed videos. There is a way: here https://www.youtube.com/watch?v=HIgMsF7naJI

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Peter Magenheim

79495605

Date: 2025-03-09 08:23:05
Score: 8.5 🚩
Natty: 4.5
Report link

Were you able to disable dual apps successfully with adb,I need help to disable

Dual apps and speed boost in my hyperOs 1.9.0

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (2.5): I need help
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kan-Wars

79495598

Date: 2025-03-09 08:21:04
Score: 2
Natty:
Report link

I accidently created app folder (empty) on the same level as src/ Deleting app folder fixed the issue.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Kailash Uniyal

79495593

Date: 2025-03-09 08:15:02
Score: 7 🚩
Natty: 6.5
Report link

Any update on this? I am also looking for a solution here.

Reasons:
  • Blacklisted phrase (1): update on this
  • Blacklisted phrase (2): I am also looking
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: saurabh singh

79495591

Date: 2025-03-09 08:11:01
Score: 0.5
Natty:
Report link

ListTile's title text uses TextTheme.bodyLarge or TextTheme.titleMedium by default. But you only customized TextTheme.bodyMedium. To customize all the Texts in the app, you should set all the properties in TextTheme.

You can find the default text style for ListTile here.
ListTile.titleTextStyle
ListTile.subtitleTextStyle

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Leo

79495589

Date: 2025-03-09 08:10:01
Score: 5
Natty:
Report link

I have managed to make good progress with this. I switched to using a simple Microsoft Basic Optical Mouse:

// Microsoft Corp. Basic Optical Mouse 
#define USB_VENDOR_ID       0x045e      /* USB vendor ID used by the device */ 
#define USB_PRODUCT_ID      0x0084      /* USB product ID used by the device */ 

and the following code now works for the former mouse:

int main(void)
{
  libusb_device **devs;
  int r;
  int numread;
  ssize_t cnt;
  int counter = 0;
  
  // connect SIGINT to function sigint_handler() //
  if (signal(SIGINT, sigint_handler) == SIG_ERR)
    {
      printf("ERROR: Cannot Connect to SIGINT!");
    }

  // Block SIGALRM in the main thread //
  sigset_t sigset;
  sigemptyset(&sigset);
  sigaddset(&sigset, SIGALRM);
  pthread_sigmask(SIG_BLOCK, &sigset, NULL);
  
  r = libusb_init(&ctx);
  //  r = libusb_init_context(/*ctx=*/NULL, /*options=*/NULL, /*num_options=*/0);  

  if (r < 0)
    return r;

  //  libusb_set_option(ctx, LIBUSB_LOG_LEVEL_WARNING);
  
  libusb_set_debug(ctx, 3); // debug level 3 //

  cnt = libusb_get_device_list(ctx, &devs); // returns device list //
  if (cnt < 0)
    {
      libusb_exit(NULL);
      return (int) cnt;
    }
  
  print_devs(devs);

  libusb_free_device_list(devs, 1);

  // open device //
  handle = libusb_open_device_with_vid_pid(ctx, USB_VENDOR_ID, USB_PRODUCT_ID);

  if (!handle)
    {
      perror("device not found");
      return 1;
    }

  // set auto detach/attach kernel driver //
  r = libusb_set_auto_detach_kernel_driver(handle, 1); // enable = 1 //
  
  printf("auto_detach result = %d\n", r);
  
  // claim interface //
  r = libusb_claim_interface(handle, 0);

  if (r < 0)
    {
      fprintf(stderr, "usb_claim_interface error %d\n", r);
      return 2;
    }
  
  printf("Interface claimed\n");

  printf("Resetting Device\n");

  r = libusb_reset_device(handle);

  if (r < 0)
    {
      printf("ERROR %d resetting device!\n");
    }
  
  printf("*** Device Descriptor ***\n");

  r = libusb_get_descriptor(handle, LIBUSB_DT_DEVICE, 0, desc_buffer, 1024);

  dump_descriptor(r, desc_buffer, r);

  //////////////////////////////////////////////////////
  
  // allocate transfer of data IN (IN to host PC from USB-device)
  transfer_in = libusb_alloc_transfer(1);

  if (transfer_in == NULL)
    {
      printf("ERROR allocating usb transfer.\n");
    }

  // Note: in_buffer is where input data is written //
  //  libusb_fill_bulk_transfer(transfer_in, handle, USB_ENDPOINT_IN, in_buffer, LEN_IN_BUFFER, callback_in, NULL, 0); // NULL for no user data //
  libusb_fill_interrupt_transfer(transfer_in, handle, USB_ENDPOINT_IN, in_buffer, 8, callback_in, NULL, 0); // NULL for no user data //

  // submit next transfer //
  r = libusb_submit_transfer(transfer_in);

  if (r < 0)
    {
      printf("submit transter result = %d\n", r);
    }

  while (exitprogram == 0)
    {
      printf("exitprogram = %d\n", exitprogram);
      
      // waiting //
      //      r = libusb_handle_events_completed(ctx, NULL);
      r = libusb_handle_events(ctx);
      if (r < 0)
    {
      printf("ERROR at events handling\n");
      break;
    }
    }

  printf("exitprogram = %d\n", exitprogram);
  
  if (transfer_in)
    {
      r = libusb_cancel_transfer(transfer_in);
      if (r == 0)
    {
      printf("transfer_in successfully cancelled.\n");
    }
      else
    {
      printf("ERROR cancelling transfer\n");
    }
    }

    //////////////////////////////////////////////////////

  // if you DONT release the interface, communication halts //

  // release interface //
  r = libusb_release_interface(handle, 0);

  if (r < 0)
    {
      fprintf(stderr, "usb_release_interface error %d\n", r);
    }
  
  printf("Interface released\n");

  // close device usb handle //
  
  libusb_close(handle);
  
  libusb_exit(ctx); 

}



and in my callback function callback_in(), I dump the libusb_tranfer, i.e. transfer->status and the raw bytes received.

For the Microsoft mouse it all works well, and I get the following output, based on the mouse movement and buttons pressed:

...

LIBUSB_TRANSFER_COMPLETED
transfer flags = %b
transfer actual length = 8
0: transfer data = 4
1: transfer data = 0
2: transfer data = 255
3: transfer data = 0
4: transfer data = 4
5: transfer data = 0
6: transfer data = 255
7: transfer data = 0
exitprogram = 0
LIBUSB_TRANSFER_COMPLETED
transfer flags = %b
transfer actual length = 8
0: transfer data = 4
1: transfer data = 0
2: transfer data = 255
3: transfer data = 0
4: transfer data = 0
5: transfer data = 0
6: transfer data = 0
7: transfer data = 0
exitprogram = 0

...

The buffer size I use is 8, which is equal to the value of the maximum packet size of the USB Device descriptor, and in this case it works.

I am NOT sure what size of transfer to specify, but 8 works in this case.

When using difference mice, e.g. Logitech G5 Laser, or wireless Logitech mini mouse, instead of getting LIBUSB_TRANSFER_COMPLETED I get LIBUSB_TRANSFER_OVERFLOW, even if I use a HUGE buffer of 1024 bytes...

I looked up the USB HID document, but I am not sure HOW to send the proper control packet to configure other mice. On this webpage, https://www.usbmadesimple.co.uk/ums_5.htm it is explaned that you must send "an HID class report descriptor, which in this case informs the appropriate driver to expect to receive a 4 byte report of mouse events on its interrupt IN endpoint."

Any help of sending the proper HID class report descriptor would be much appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help of sending the proper HID class report descriptor would be much appreciated
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Christos

79495587

Date: 2025-03-09 08:08:00
Score: 1
Natty:
Report link

Run in cmd npm run dev or npm run production

after compiling make sure public/build/assets/ file is exist

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Abdullah Al Shahed

79495585

Date: 2025-03-09 08:08:00
Score: 4.5
Natty: 6
Report link

Many thanks it helped me right now !!!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: TED TEDDY

79495582

Date: 2025-03-09 08:04:59
Score: 2.5
Natty:
Report link

Disabling the phone confirmation (whether you are using it or not) will work, and a proper error response will be returned when the email is already used.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Bilal Tariq

79495574

Date: 2025-03-09 07:57:58
Score: 1
Natty:
Report link

Old question but if anyone is interested - you can stop the tab navigation from breaking your slides by setting the slide's CSS visibility to hidden unless it is the current slide. tabIndex -1 didn't work for me. I am using Swiper in a React project and I have a state variable 'isVisible' that controls css transitions and such. Simply adding a conditional class making the slide visible if isVisible is true or invisible if isVisible is false stopped the errant tab navigation and did not have any unfortunate side effects.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: FinalGirl321

79495570

Date: 2025-03-09 07:56:58
Score: 1.5
Natty:
Report link

I’m guessing the issue may be that the -filter parameter works differently than you’re expecting. The .zip works because it matches all zip files but when you add that extra character, it is not reading it like you and I. For this, probably using regular expressions would help.

how about trying:

$filesToMove = Get-ChildItem -Path $sourceFolder -File -Filter “*.zip” | Where-Object { $_.Name -match “1\.zip$” }

Let me know how that works for you.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Anthony Miranda

79495566

Date: 2025-03-09 07:53:57
Score: 1.5
Natty:
Report link

(F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/) (F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/) http://ter.af.code.rubik.fill.ir (hak,filtring)  (F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/) (F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/)  (hak,filtring)  (F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/) (F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/) http://ter.af.code.rubik.fill.ir(....Fil3.4.3.3ter....) u/h.1.3.4.6.8.n/.a.5.6.8.9/ (/C.h.m.a.f.2.3.5.6.7h.a.b.ai)/) *Haker.filtringh_0_1_2_3_4_5_filter,am) (/filter.anlain.filter.com) //(1.2.4.5.6#m.m.f.i.i/[f.l.])// (yftt14k/) (/rest_122334_filteri.com) (hak,filtring)  (F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/) (F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/)  (hak,filtring)  (F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/) (F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/) http://ter.af.code.rubik.fill.ir (hak,filtring)  (F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/) (F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/)  (hak,filtring)  (F./h.d.g.h.h/.4.6.7.8) (/C.h.o.a.f.2.3.5.6.7h.a.d.g)/)‌.‌[User+CVars=0B572C0A1C0B280C1815100D002A1C0D0D10171E44495749+CVars=0B572C0A1C0B2A11181D160E2A0E100D1A1144495749🔐 ‌‌‎‎‎‎‎‌‎‎‎‎‎‎‎8888555‌.‌[User+CVars=0B572C0A1C0B280C1815100D002A1C0D0D10171E44495749+CVars=0B572C0A1C0B2A11181D160E2A0E100D1A1144495749🔐 ‌‌‎‎‎‎‎‌‎‎‎‎‎‎‎8888555 رهبر را فحش میدی

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Saeed Nazari

79495561

Date: 2025-03-09 07:48:57
Score: 1
Natty:
Report link

It was due to a running backup process. Unfortunately, I forgot to check that. As soon as it was finished, the disk space was reclaimed.

Thanks to @den-crane who pointed it out in this comment on Github issues.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @den-crane
  • Self-answer (0.5):
  • High reputation (-2):
Posted by: today

79495556

Date: 2025-03-09 07:40:56
Score: 3.5
Natty:
Report link

Even if you are using lucid react native icons, don't use it, switch to expo/vector icons

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aditya Gaikwad

79495552

Date: 2025-03-09 07:32:55
Score: 1.5
Natty:
Report link

If pseudo-elements were valid selectors within :has(), the following code will lead to style cycles (loops) in CSS:

.item::before {
content: "";
} /* will render the ::before pseudo-element... */

.item:has(::before)::before {
content: none;
} /* will eliminate the ::before pseudo-element... */
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MicroMatrix

79495530

Date: 2025-03-09 06:56:50
Score: 3
Natty:
Report link

You could try using Flex if you want to code in python. If you prefer to shift to flutter you could try converting your Pygame code to Flutter Flame.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mastermindsap

79495522

Date: 2025-03-09 06:46:48
Score: 4.5
Natty: 5
Report link

The Above stated Steps helped me to resolve that warning now warning is not coming but will this react-native-sqlite-storage works in ios devices ??? that is my Doubt here

Reasons:
  • Blacklisted phrase (1): ???
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: raviteja illuri

79495520

Date: 2025-03-09 06:42:47
Score: 2
Natty:
Report link

for me it was the ufw rules. just disable it:

sudo ufw disable
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ali Forouzan

79495514

Date: 2025-03-09 06:37:46
Score: 2
Natty:
Report link

From official react-router documentation: https://api.reactrouter.com/v7/modules/react_router_dom.html

react-router-dom: This package simply re-exports everything from react-router to smooth the upgrade path for v6 applications. Once upgraded you can change all of your imports and remove it from your dependencies:

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shivay

79495512

Date: 2025-03-09 06:34:45
Score: 3.5
Natty:
Report link

Make sure the _netrc is the role of 600(chmod +x 600 _netrc )

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: fireyang

79495507

Date: 2025-03-09 06:28:44
Score: 4
Natty: 4.5
Report link

On line, on other websites, I have seen that equation as

a +b * exp (-2×(x-mu)**2)/(sigma**2))

Is the formula elsewhere incorrect? Or is it evaluating for a "different b" value of the same Gaussian curve peak of value "b"?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: RACookPE1978

79495472

Date: 2025-03-09 05:46:38
Score: 1
Natty:
Report link

Use @SpringBootTest(classes = SecurityAppConfig.class)

By default, @TestPropertySource is designed to load .properties files, not .yml files.

or you can replace .yml to .properties file.

please refer - https://github.com/spring-projects/spring-boot/issues/33434

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Birudeo Garande

79495468

Date: 2025-03-09 05:41:37
Score: 2
Natty:
Report link

Hello could you share the code snippet of the program that is causing unexpected behaviour. It would help others to understand the problem in a more proper way.
But as far I understand you need to listen to the purchase status, here is the example code from the documentation:

void _listenToPurchaseUpdated(List<PurchaseDetails> purchaseDetailsList) {
  purchaseDetailsList.forEach((PurchaseDetails purchaseDetails) async {
    if (purchaseDetails.status == PurchaseStatus.pending) {
      _showPendingUI();
    } else {
      if (purchaseDetails.status == PurchaseStatus.error) {
        _handleError(purchaseDetails.error!);
      } else if (purchaseDetails.status == PurchaseStatus.purchased ||
                 purchaseDetails.status == PurchaseStatus.restored) {
        bool valid = await _verifyPurchase(purchaseDetails);
        if (valid) {
          _deliverProduct(purchaseDetails);
        } else {
          _handleInvalidPurchase(purchaseDetails);
        }
      }
      if (purchaseDetails.pendingCompletePurchase) {
        await InAppPurchase.instance
            .completePurchase(purchaseDetails);
      }
    }
  });
}

(Refer: https://github.com/flutter/packages/tree/main/packages/in_app_purchase/in_app_purchase#listening-to-purchase-updates)

Reasons:
  • RegEx Blacklisted phrase (2.5): could you share the code
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mastermindsap

79495467

Date: 2025-03-09 05:41:37
Score: 1
Natty:
Report link

You are trying to do the following:

git remote add origin https://github.com/stefanovic80/physicsComplementsITISstudents

The remote is not actually set up right and should be this:

git remote add origin https://github.com/stefanovic80/physicsComplementsITISstudents.git

You are missing a ".git" at the end.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Asi Godi

79495455

Date: 2025-03-09 05:24:35
Score: 2
Natty:
Report link
CREATE VIRTUAL TABLE addresses_search_fts USING fts5(ADDRESS_LABEL, tokenize="unicode61 tokenchars '\x2d'")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: AussieAndy

79495451

Date: 2025-03-09 05:20:34
Score: 1.5
Natty:
Report link

The error was resolved by replacing the relevant code with the code below.

!my_env/bin/python -m pip install -e /kaggle/working/sweagent/. --no-index \
--find-links=/kaggle/input/setuptools-75-8-2/ \
--find-links=/kaggle/input/packages-for-sweagent/packages

Using the code below and looking at the details, I found that the problem was caused by the setuptools installation, so I added the setuptools wheel file.

pip install  -e /kaggle/working/sweagent/. --no-index -vvv

https://www.kaggle.com/code/ooooooooooooooooo/notebook336e888d96

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Filler text (0.5): ooooooooooooooooo
  • Low reputation (1):
Posted by: Ryo

79495433

Date: 2025-03-09 05:07:31
Score: 2.5
Natty:
Report link

For this purpose you can create a new custom user operation listener by extending the AbstractUserOperationEventListener class [1]. Inside the doPreAddUser method you can call the external API and do the validation.

[1] https://github.com/wso2/carbon-kernel/blob/a286224351c7d2ab0875a91fe51eaf3b61a312d2/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/common/AbstractUserOperationEventListener.java#L57

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Asha

79495432

Date: 2025-03-09 05:06:31
Score: 1.5
Natty:
Report link

It turns out I didn't use the correct CMD to start the server, replaced with

CMD ["mvn", "exec:java", "-Dexec.mainClass={mymainclass}"]

then it just worked the same way as localhost.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: YT.Lu

79495411

Date: 2025-03-09 04:45:28
Score: 1
Natty:
Report link

Why bother writing your own declaration files? Why not declare a new Request interface that extends Express's Request interface?

Something like this: ts playground

This way you can let the typescript compiler generate the declaration file for you (using either "declaration"="true" in the tsconfig file or with the --declaration flag at the tsc CLI; link).

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why
  • Low reputation (0.5):
Posted by: beefsupreme

79495410

Date: 2025-03-09 04:44:28
Score: 3.5
Natty:
Report link

https://docs.telethon.dev/en/stable/basic/quick-start.html
This can help you
there is a tutorial for creating application that can send messages from your personal account

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ENUM

79495407

Date: 2025-03-09 04:40:27
Score: 0.5
Natty:
Report link

I had the same problem . It was showing esp 32 fatal error. exit status 2. then it was suggesting the troubleshooting html page. Though I had my drivers installed and other set up was done too. Later I tried with new esp 32 and the problem was gone. So, if all the necessary set up is done in your pc and also the data cable is operational and still this error,

there is a high chance that your esp 32 is somehow damaged and it won't work further.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Low reputation (1):
Posted by: JEET SARKAR

79495404

Date: 2025-03-09 04:38:27
Score: 1.5
Natty:
Report link

I solved this problem by running vscode as administrator

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Benlu Wang

79495390

Date: 2025-03-09 04:13:23
Score: 2.5
Natty:
Report link

enter image description here

just like this (server page component fetching and passing the promise itself, then in a client component use the use react hook

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ebrahim Ramadan

79495365

Date: 2025-03-09 03:37:17
Score: 1
Natty:
Report link

Here's how I deal with such situations.

First, I create a "CSV" entry with the "primary keys" (which I also use for sorting) then, I list all the records.

foo.files=f1,f2
foo.files.f1.name=foo.txt
foo.files.f1.expire=200
foo.files.f2.name=foo2.txt
foo.files.f2.expire=10
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Victor CRETU

79495344

Date: 2025-03-09 03:12:13
Score: 4.5
Natty:
Report link
import { client } from '@/sanity/lib/client';
import { urlFor } from '@/sanity/lib/image';
import { MDXComponents } from '@/components/mdx/MDXComponents';
import Image from 'next/image';
import CarbonAds from '@/components/carbonAds';
import { Metadata } from 'next';

export interface FullBlog {
  currentSlug: string;
  title: string;
  content: string;
  coverImage?: any;
  date: string;
}

const estimateReadingTime = (content: string): number => {
  const wordsPerMinute = 200;
  const wordCount = content.split(/\s+/).length;
  return Math.ceil(wordCount / wordsPerMinute);
};

function formatDate(dateString: string): string {
  const date = new Date(dateString);
  const options: Intl.DateTimeFormatOptions = {
    year: 'numeric',
    month: 'long',
    day: 'numeric',
  };
  return date.toLocaleDateString(undefined, options);
}

async function getBlogPostContent(slug: string): Promise<FullBlog | null> {
  const query = `*[_type == "post" && slug.current == $slug][0] {
    "currentSlug": slug.current,
    title,
    date,
    coverImage,
    content
  }`;

  try {
    const post = await client.fetch(query, { slug });
    return post || null;
  } catch (error) {
    console.error("Error fetching blog post:", error);
    return null;
  }
}

export async function generateMetadata(props: {
  params: Promise<{ slug: string }>
}): Promise<Metadata> {
  const params = await props.params;
  const { slug } = params;
  const post = await getBlogPostContent(slug);

  if (!post) {
    return {
      title: 'Post Not Found',
    };
  }

  return {
    title: post.title,
    description: `Read more about ${post.title} on Manish Tamang's blog.`,
  };
}

export default async function BlogPost(props: {
  params: Promise<{ slug: string }>
}) {
  const params = await props.params;
  const { slug } = params;
  const post = await getBlogPostContent(slug);

  if (!post) {
    return (
      <div className="text-center py-10 text-gray-500 text-lg">
        Post not found or error loading.
      </div>
    );
  }

  const formattedDate = formatDate(post.date);
  const readingTime = estimateReadingTime(post.content);

  return (
    <article className="container mx-auto py-12 px-6 max-w-3xl">
      <h1 className="text-4xl font-bold mb-2 font-peachi">{post.title}</h1>
      <div className="flex items-center justify-between mb-4">
        <div className="flex items-center space-x-2">
          <Image
            src="/profile.png"
            alt="Manish Tamang"
            width={30}
            height={30}
            className="rounded-full"
          />
          <span className="text-gray-500 text-sm">Manish Tamang</span>
        </div>
        <span className="text-gray-500 text-sm">
          {formattedDate} - {readingTime} min read
        </span>
      </div>
      <hr className="mb-8 border-gray-200 dark:border-gray-700" />
      {/* Uncomment and adjust if you want to include the cover image */}
      {/* {post.coverImage && (
        <Image
          width={100}
          height={100}
          src={urlFor(post.coverImage).url()}
          alt={post.title}
          className="w-full h-auto mb-6 rounded-[8px]"
        />
      )} */}
      <div className="prose dark:prose-invert max-w-none leading-relaxed font-geist">
        <CarbonAds className="fixed bottom-4 left-20 w-1/4" />
        <MDXComponents content={post.content} />
      </div>
    </article>
  );
}

My code is giving the same error

.next/types/app/blogs/[slug]/page.ts:34:29
Type error: Type '{ params: { slug: string; }; }' does not satisfy the constraint 'PageProps'.
  Types of property 'params' are incompatible.
    Type '{ slug: string; }' is missing the following properties from type 'Promise<any>': then, catch, finally, [Symbol.toStringTag]

  32 |
  33 | // Check the prop type of the entry function
> 34 | checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()
     |                             ^
  35 |
  36 | // Check the arguments and return type of the generateMetadata function
  37 | if ('generateMetadata' in entry) {
Static worker exited with code: 1 and signal: null

Please help me to fix this

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): help me to fix
  • RegEx Blacklisted phrase (3): Please help me to fix this
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Manish Tamang

79495343

Date: 2025-03-09 03:12:13
Score: 1
Natty:
Report link

Update for 2025:

Widget build(BuildContext context) {
    return PopScope(
      canPop: false, // this prevent the pop
      child: Scaffold(
        appBar: AppBar(
          title: Text("My App"),
        ),
       ),
    );
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Emerson Paduan

79495341

Date: 2025-03-09 03:10:12
Score: 0.5
Natty:
Report link

I encountered this error when I had the same function name declared twice in Metal files.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: M-P

79495331

Date: 2025-03-09 02:53:09
Score: 1
Natty:
Report link

excelButton = driver.FindElement(By.XPath("//div[contains(@class,'exportLabel') and contains(text(),'XLS (1000 max)')]"));

    System.Threading.Thread.Sleep(5000);

    excelButton.Click();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: doan tranxuan

79495324

Date: 2025-03-09 02:44:08
Score: 0.5
Natty:
Report link

Here is an update from 3/2025. I used qt 6.8.2 and ported a simple c++ (no qml) application from Ubuntu 20 to Android. Qtcreator created the cmake based project and generated an android manifest pretty effortlessly. However, there were some bugs that had to be worked around (off the top of my head), where the issue did not occur (or apply) on the Desktop version.

Despite the issues, the port itself should be considered reasonably straight forward and fast, for me who's never done an Android app before. Most advice I read online suggested to do the graphical presentation in QML, which I shall explore. Last but not least, I do not mean to convey misinformation, so please do forgive me if my findings are due to misunderstanding or ignorance.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mike L

79495321

Date: 2025-03-09 02:41:07
Score: 2
Natty:
Report link

New wrinkle

$str = "name: [Joe Blow1]
        name: [Joe Blow2]
        name: [Joe Blow3]";

current pattern returns: Joe Blow1

I need it to return: Joe Blow3

So, the last one that matches the pattern.
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: YappyDog

79495320

Date: 2025-03-09 02:37:06
Score: 0.5
Natty:
Report link
use itertools::{Itertools, Position};

fn main() {
    let a = vec!["Some", "Text"];
    for (position, item) in a.iter().with_position() {
        match position {
            Position::First | Position::Only => print!("{}", item),
            _ => print!(", {}", item),
        }
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: xuiqzy

79495315

Date: 2025-03-09 02:31:05
Score: 1
Natty:
Report link
def binarysearch(a,n,index):
  mid=int(len(a)/2)
  if(n==a[mid]):
    return (mid+index+1)
  elif(n>a[mid]):
    index=index+mid
    return binarysearch(a[(mid+1):],n,index)
  elif(n<a[mid]):
    return binarysearch(a[0:mid],n,index)

This worked well

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: maths and chess

79495302

Date: 2025-03-09 02:11:02
Score: 3.5
Natty:
Report link

I tried your first option, name: \[(.+?)]

It worked perfectly. Thank you very much.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): It worked
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: YappyDog

79495289

Date: 2025-03-09 01:49:58
Score: 4.5
Natty: 4.5
Report link

The FFMpegKit and mobile-ffmpeg stopped their support, read here for more.
https://tanersener.medium.com/whats-next-for-mobileffmpeg-44d2fac6f09b

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Venkatesh Paithireddy

79495288

Date: 2025-03-09 01:48:58
Score: 2
Natty:
Report link

Thank for your reply but you should try with the URL that I provide in my example it is not that simple, I tried with so many ways. But this way it doesn't work.

The url show the first page with a button on it, when you press the button it should lead you to another page and here is my problem it still blocked on target="_blank" but when you try on Safari it works, like I cannot reproduce the same behavior. Let me know if you find a way to go to the next page after pressing the button on the first page

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sonycsl

79495269

Date: 2025-03-09 01:20:54
Score: 0.5
Natty:
Report link

Use onShouldStartLoadWithRequest

<View style={styles.container}>
      <WebView 
        source={{ uri: url }}
        style={styles.webview}
        onShouldStartLoadWithRequest={handleNavigation} // Intercept links
      />
    </View>

react-native-webview not handling target="_blank"

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mateen Ali

79495267

Date: 2025-03-09 01:18:54
Score: 3
Natty:
Report link

React uses batch updates to prevent this.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Shashika Silva

79495260

Date: 2025-03-09 01:11:52
Score: 4
Natty: 5
Report link

Not an answer, more of an observation. I am on the same chapter trying to learn Rust.

Am correct that the compiler creates two storage locations x_0 and x_1 to prevent unintended memory errors? And both are named "x" in the code?

Doesn't this make intended variable changes errors MORE likely and very hard to find because I now have two real memory locations the code calls the same thing and changes depending on where they are in the code. I could have a "Let" 1000 lines of code before the second "Let" and have no clue what is going on. It makes scope problems very difficult to diagnose.

It seems to me to encourage poor programming habits and reduce clarity. In short, what is the point of shadow variables except to be a lazy programmer?

Reasons:
  • Blacklisted phrase (1): Not an answer
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Andrew Logan

79495241

Date: 2025-03-09 00:44:48
Score: 2.5
Natty:
Report link

I solved the problem. i was searching related questions and this one solved my problem "next build" failing due to useContext error

Reasons:
  • Whitelisted phrase (-2): I solved
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: samsa

79495239

Date: 2025-03-09 00:42:48
Score: 3.5
Natty:
Report link
I'm getting the following error when I'm using playwright . does it only works with a puppeteer ? pls help .    Error while handling browser contexts: Error: browserContext.newPage: Protocol error 
(Target.createTarget): Not supported
    at main (xyz.js:68:42) {name: 'Error', stack: 'browserContext.newPage: Protocol error (Target.createTarget): Not supported', message: 'browserContext.newPage: Protocol error (Target.createTarget): Not supported'}

openAndConnectToVsCodeUsingCdp.ts:78
arg1 =
Error: browserContext.newPage: Protocol error (Target.createTarget): Not supported
    at main (xyz.js:68:42) {name: 'Error', stack: 'browserContext.newPage: Protocol error (Target.createTarget): Not supported', message: 'browserContext.newPage: Protocol error (Target.createTarget): Not supported'}
main @ xyz.ts:78:13
◀ await ▶
processTicksAndRejections @ internal/process/task_queues:105:5
◀ await ▶
processTicksAndRejections @ internal/process/task_queues:105:5
◀ await ▶
<anonymous> @ xyz.ts:100
<anonymous> @ internal/modules/cjs/loader:1723:14
<anonymous> @ internal/modules/cjs/loader:1888:10
<anonymous> @ internal/modules/cjs/loader:1458:32
<anonymous> @ internal/modules/cjs/loader:1275:12
traceSync @ diagnostics_channel:322:14
wrapModuleLoad @ internal/modules/cjs/loader:234:24
executeUserEntryPoint @ internal/modules/run_main:151:5
<anonymous> @ internal/main/run_main_module:33:47
Error: browserContext.newPage: Protocol error (Target.createTarget): Not supported
    at main (xyz.js:68:42) {name: 'Error', stack: 'browserContext.newPage: Protocol error (Target.createTarget): Not supported', message: 'browserContext.newPage: Protocol error (Target.createTarget): Not supported'}
import { chromium, ChromiumBrowser } from 'playwright';
import { spawn } from 'child_process';
import fetch from 'node-fetch';
import { delay } from '../../utils/delay';

function spawnVSCode(port: number) {
  return spawn(
    '/Applications/Visual Studio Code.app/Contents/MacOS/Electron',
    [
      `--remote-debugging-port=${port}`,
      '--user-data-dir=/tmp/foo', // Use temporary data dir to get welcome screen
      '--enable-logging',
    ],
    {
      detached: true,
      env: process.env,
      stdio: ['pipe', 'pipe', 'pipe']
    }
  );
}

async function main() {
  const port = 29378;
  const proc = spawnVSCode(port);

  // Wait for VSCode to start
  await delay(2000);

  // Get the WebSocket endpoint
  const response = await fetch(`http://127.0.0.1:${port}/json/list`);
  const endpoints = await response.json() as any[];
  const endpoint = endpoints.find(p => !p.title.match(/^sharedProcess/));

  if (!endpoint) {
    throw new Error('Could not find VSCode debug endpoint');
  }

  // Connect to the browser using CDP
  const browser = await chromium.connectOverCDP({
    endpointURL: endpoint.webSocketDebuggerUrl,
    slowMo: 50
  }) as ChromiumBrowser;

  let page;
  try {
    // Get all browser contexts
    const contexts = browser.contexts();
    console.log(`Found ${contexts.length} browser contexts`);

    if (contexts.length === 0) {
      // If no contexts exist, create a new one
      console.log('No contexts found, creating new context');
      const newContext = await browser.newContext();
      page = await newContext.newPage();
    } else {
      // Try to get page from existing contexts
      for (const context of contexts) {
        try {
          const pages = context.pages();
          if (pages.length > 0) {
            page = pages[0];
            console.log('Found existing page');
            break;
          }
        } catch (e) {
          console.log('Error accessing pages in context:', e);
          continue;
        }
      }

      // If still no page found, create new one in first context
      if (!page) {
        console.log('No pages found in existing contexts, creating new page');
        page = await contexts[0].newPage();
      }
    }
  } catch (e) {
    console.error('Error while handling browser contexts:', e);
    throw e;
  }

  if (!page) {
    throw new Error('Failed to get or create a page');
  }

  // Click new file button
  await page.click('[href="command:workbench.action.files.newUntitledFile"]');

  // Type some text
  await page.type('.monaco-editor', 'Hello! I am automating Visual Studio Code with Playwright!\n');
  await page.type('.monaco-editor', 'This is a super cool way of generating foolproof demos.');

  // Clean up after 1 second
  setTimeout(() => {
    proc.kill();
    process.exit(0);
  }, 1000);
}

main().catch(console.error);
Reasons:
  • RegEx Blacklisted phrase (3): pls help
  • RegEx Blacklisted phrase (1): I'm getting the following error
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kcp

79495230

Date: 2025-03-09 00:33:46
Score: 3.5
Natty:
Report link

look, the menu just the way i've just posted is working, but with a "bad solution" using setTimeout, seems to me just a poor approach

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Igor Galvao Bezerra

79495217

Date: 2025-03-09 00:16:43
Score: 2
Natty:
Report link

Because rustc can't find the linker, you can either:

  1. install a linker that can be found by rustc (On debian `apt install build-essential` installs the linker)

  2. Point to an existing linker e.g.,:

    rustc -C linker=target_toolchain_linker my_rustfile.rs
    

References:

  1. https://github.com/rust-lang/cargo/issues/1109
  2. How do I fix the Rust error "linker 'cc' not found" for Debian on Windows 10?
Reasons:
  • Blacklisted phrase (1): How do I
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: A. K.

79495188

Date: 2025-03-08 23:44:38
Score: 1
Natty:
Report link

I also spend some time on this, trying to get the apple payment session to work with php, and although this question is old let me write it here for others

You can generete RSA 2048 key using openssl

openssl req -new -newkey rsa:2048 -nodes -keyout private.key -out request.csr

you also need save your private key, as you will need it

Then once you submit to apple you will get certificate apple.cer file, that you can convert it to pem format for use with CURL

openssl x509 -inform der -in apple.cer -out merchant_idX.pem

And then use the private key and the converted certificate to make the request to apple to get the session

curl_setopt($ch, CURLOPT_SSLKEY, '../ShoreThangKeyX.key');

curl_setopt($ch, CURLOPT_SSLCERT, '../merchant_idX.pem');

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mitko Radev

79495187

Date: 2025-03-08 23:44:38
Score: 0.5
Natty:
Report link

Too late, but if helps someone.

jQuery("#grid").jqGrid("progressBar", {method:"show", loadtype : "enable"});

To hide it change method from show to hide and call again.
loadtype can be "enable" and "block". "block" will make it modal.

#grid is your div id.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Azghanvi

79495185

Date: 2025-03-08 23:39:37
Score: 0.5
Natty:
Report link

As others pointed out, your compiler probably will throw warnings.

To give you a straight answer, what is happening is that you are defining a symbol associated witht the array name "array" of one element, then the program places the initializer values starting from address &a[0] independently from the associated array size.

Which means sizeof(array) should still return 1 and any operation of accessing elements of array in index greater than 0 will generate compiler warnings.

Probably, if you were to define another int variable after the array with an assigned value, the second element of the array initializer will be replaced in memory by the former.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Matteo Vittorio Ricciutelli

79495180

Date: 2025-03-08 23:32:36
Score: 3.5
Natty:
Report link

From official documentation https://argocd-image-updater.readthedocs.io/en/stable/basics/update-strategies/

argocd-image-updater.argoproj.io/myimage.allow-tags: regexp:^[0-9a-f]{7}$

That means it must start with regexp:…

Also take a look at regexp syntax, cause ^ means input beginning, and $ input ending, with this changes, your annotation would be:

argocd-image-updater.argoproj.io/rtm.allow-tags: regexp:.*SNAPSHOT.*

Can you provide update strategy? It will helps to fully understand the situation.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you provide
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: ifurs