79377068

Date: 2025-01-22 09:06:59
Score: 3
Natty:
Report link

The solution i found is to set the tab index onto the shadow root element then the next focus will be what comes inside

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

79377056

Date: 2025-01-22 09:02:58
Score: 1.5
Natty:
Report link

I have separated the subUser process into two parts:

  1. Fetching and processing the subUser data.
  2. Saving the subUser data.

For the first part, I am using a multi-threaded environment with a new transaction. This transaction is only used for fetching the data, so a rollback is not required.

In the second part, the process is completed within the original user process method. This ensures that if any error occurs, the transaction for both the subUser and the parent user is rolled back entirely.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Anant Doshi

79377041

Date: 2025-01-22 08:57:56
Score: 5
Natty:
Report link

Check out this link. I will provide the solution that works for me.

https://stackoverflow.com/a/79376813/19968871

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yug Jadvani

79377040

Date: 2025-01-22 08:56:55
Score: 8 🚩
Natty: 4.5
Report link

Hey any luck? I am getting the same issue.

Reasons:
  • Blacklisted phrase (1.5): any luck
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am getting the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bishal Niroula

79377039

Date: 2025-01-22 08:56:55
Score: 1.5
Natty:
Report link

You can use long_running_publisher in a separate thread so it process_data_events while main thread calculations https://github.com/pika/pika/blob/main/examples/long_running_publisher.py

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: SuddenWind

79377036

Date: 2025-01-22 08:56:55
Score: 3.5
Natty:
Report link

You only need to set the key for the mcuboot child image. From my example here:

set(mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE \"${CMAKE_CURRENT_SOURCE_DIR}/custom_key_dir/custom_priv.pem\")

I also had to set CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256 in an MCUboot overlay, but that is since I used ECDSA. For RSA you would have to set the same for RSA yes, but remember to set it in child_image/mcuboot.conf or similar to set it for the child image.

Does this fix the issue?

Reasons:
  • RegEx Blacklisted phrase (1.5): fix the issue?
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Sigurd Hellesvik

79377023

Date: 2025-01-22 08:49:53
Score: 1.5
Natty:
Report link
$.$merge([
    { "timestamp": timestamp },
    absoluteDeviationsX#$i{
        "absoluteDeviationsX" & $i: $
    }
])

See https://try.jsonata.org/EtmrHNM7U

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
Posted by: Andrew Coleman

79377014

Date: 2025-01-22 08:46:52
Score: 0.5
Natty:
Report link

Launch the Native Tools Command Prompt (accessible via the Start Menu). From here you can run:

> cmake --version
cmake version 3.29.5-msvc4

CMake suite maintained and supported by Kitware (kitware.com/cmake).

to determine the version.


However, the version of CMake distributed with Visual Studio has patches from Microsoft. You should either install upstream CMake for use outside of the Native Tools Command Prompt, or just use the Native Tools Command Prompt.

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

79377008

Date: 2025-01-22 08:45:51
Score: 5
Natty: 5.5
Report link

i using free serverless Zilliz cloud but via java sdk, has any solution?

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

79376995

Date: 2025-01-22 08:42:50
Score: 2.5
Natty:
Report link

You can use this annotation to mark field as optional:

+kubebuilder:validation:Optional

https://book.kubebuilder.io/reference/markers/crd-validation

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: werniq

79376988

Date: 2025-01-22 08:39:50
Score: 2.5
Natty:
Report link

I also wanted to include different files type in a component so that I can use them in a repository when calling the compponent.. That doesn't work: the files, even the yml ones are not imported, just the CI/CD configuration is working.

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

79376971

Date: 2025-01-22 08:33:48
Score: 1
Natty:
Report link

This is perfectly possible to provide as a non-async one-liner like this (TS):

function base64ToBlob(b64Data: string, contentType?: string) {
  return new Blob([Uint8Array.from(atob(b64Data), char => char.charCodeAt(0))], { type: contentType ?? "application/octet-stream" });
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fredrik Lysholm

79376969

Date: 2025-01-22 08:30:48
Score: 1
Natty:
Report link

Found a solution https://codesandbox.io/p/sandbox/festive-davinci-knwn5r

Had to de-structure the register function of react hook form and pass the ref and props separately

 const { ref, ...inputProps } = register(name);

 <Component inputRef={ref} {...inputProps} {...props} />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: LoneRanger

79376936

Date: 2025-01-22 08:17:43
Score: 5
Natty:
Report link

Check out this link. I will provide the solution that works for me.

https://stackoverflow.com/a/79376813/19968871

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yug Jadvani

79376935

Date: 2025-01-22 08:17:42
Score: 6.5 🚩
Natty:
Report link

Thanks @David, i will follow this operating way.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @David
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: m.wahbi

79376915

Date: 2025-01-22 08:11:41
Score: 1.5
Natty:
Report link

I finally got to the bottom of my problem. Looks like I used the wrong Enumeration:

Source.SetProperty("format", New GLib.Value(Gst.Constants.TIME_FORMAT))

It turns out that Gst.Constants.TIME_FORMAT is actually a time format string. What I needed was:

Source.SetProperty("format", New GLib.Value(3)) ' TimeFormat

This works regardless of whether I set a timestamp on the buffers I pass to the appsrc.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sails1000

79376911

Date: 2025-01-22 08:10:41
Score: 2
Natty:
Report link

trim_array() is there since PostgreSQL 14:

select (trim_array(array[1,2,3],1))[2:];
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): is there
  • Low reputation (0.5):
Posted by: Guillaume Outters

79376909

Date: 2025-01-22 08:09:40
Score: 3.5
Natty:
Report link

This is follow on question not the answer. I am looking for the similar issue, I have everything setup and no errors in the code. I doubles check the idl file exist and I am using the

import { UserGMarket } from "../target/types/user_g_market";

and the file exist and when I run cursor on it, giving me the same file, but when I run anchor test --skip-local-validator, its giving me this error

Error: target/idl/user_g_markets.json doesn't exist. Did you run `anchor build`?

and I run many times

anchor clean and anchor build

But facing the same issue. Here is my cargo.toml file

    [package]
name = "user-g-markets"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"

[lib]
crate-type = ["cdylib", "lib"]
name = "user_g_market"

[features]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []

[dependencies]
anchor-lang = "0.29.0"
anchor-spl = "0.29.0"

and here is my lib.rs file

#[program]
pub mod user_g_market {
    use super::*;

// Initialize a new market (can be called by any user)
pub fn initialize_market(
    ctx: Context<InitializeMarket>,
    id: u64,
    merkle_root: [u8; 32],
    end_time: i64,
) -> Result<()> {
    let market = &mut ctx.accounts.market;
    market.id = id;
    market.merkle_root = merkle_root;
    market.token_vault = ctx.accounts.token_vault.key();
    market.is_finalized = false;
    market.end_time = end_time;
    market.creator = *ctx.accounts.creator.key; // Store the creator's public key
    Ok(())
}

Image for making sure, you can see I have idl and type under the target folder

Reasons:
  • Blacklisted phrase (2): I am looking for
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (0.5):
Posted by: Sardar Ahmed Khan

79376908

Date: 2025-01-22 08:09:40
Score: 0.5
Natty:
Report link

Add dependency coil extension,

implementation("io.coil-kt.coil3:coil-gif:3.0.4")
val imageLoader = ImageLoader.Builder(context)
    .components {
        if (SDK_INT >= 28) {
            add(AnimatedImageDecoder.Factory())
        } else {
            add(GifDecoder.Factory())
        }
    }
    .build()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Santhosh Kumar

79376905

Date: 2025-01-22 08:07:40
Score: 3
Natty:
Report link

Xiaospy1 will assist you, he's the one that got my account back successfully after encountering his recovery service on "tiktok"

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

79376901

Date: 2025-01-22 08:06:40
Score: 2
Natty:
Report link

If you're using react you need to build the app for production before being deployed.

  1. npm run build

  2. Add this to the top of your package.json: "homepage": "https://.github.io/"

  3. npm run build

  4. npm install --save gh-pages

  5. Add these scripts to your json:

"scripts": { "predeploy": "npm run build", "deploy": "gh-pages -d build" }

  1. npm run deploy

  2. Have a look at your deployed app 👌

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Frase

79376900

Date: 2025-01-22 08:06:40
Score: 2
Natty:
Report link

There were indications that this was the cause of the network latency. The latency was about 10, 20 minutes, and even up to 1 hour. I eliminated the delays with the adjustments we made on the AWS side, the vpc and security group side, it dropped to around a few seconds and the problem was solved.

enter image description here

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

79376899

Date: 2025-01-22 08:05:39
Score: 2.5
Natty:
Report link

I think your API call is not correct, here is the document about video uploading, https://developers.dailymotion.com/guides/upload/, you should firstly upload your video to a server in order to have the video url in the response, then create a video object using the url that you get from previous upload reauest.

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

79376897

Date: 2025-01-22 08:04:39
Score: 3
Natty:
Report link

You can try to change the field type in the database to tinyint so that spring data can do the mapping directly

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

79376893

Date: 2025-01-22 08:02:37
Score: 7 🚩
Natty: 5.5
Report link

Yeah i have the same problem im using Microsoft visual studio and if anyone has answer for it

Reasons:
  • Blacklisted phrase (1): i have the same problem
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): i have the same problem
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29310516

79376890

Date: 2025-01-22 08:01:37
Score: 1
Natty:
Report link

I resolved this issue by changing the File Properties of the view. I updated the Build Action from "None" to "Content."

Reasons:
  • Whitelisted phrase (-2): I resolved
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: greg7780

79376887

Date: 2025-01-22 08:00:37
Score: 0.5
Natty:
Report link

You can use <item name="android:fitsSystemWindows">true</item> to ensure the content adjusts for the StatusBar and other system windows.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Chi Chen

79376883

Date: 2025-01-22 07:58:36
Score: 1.5
Natty:
Report link

This functionality is now working properly. Ensure not to initialize the NavManager in your App view, but initialize it inside of NavigationView.

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

79376882

Date: 2025-01-22 07:58:36
Score: 1
Natty:
Report link

Q1: The error means joomla is having trouble extracting a file from the Quix extension. This can happen for a few reasons. First, check if the folder permissions are correctly set for the /tmp folder. ensuring Apache has full access. The Quix file might also be corrupted, so try downloading it again.

Q2: Yes, it could solve the problem for example when the error caused by automatic updates. Just upload the ZIP file directly through Joomla’s "Install" option.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Kamyar Safari

79376878

Date: 2025-01-22 07:57:36
Score: 0.5
Natty:
Report link

You can use git branch -df branchname to force delete the branch.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: UC57

79376859

Date: 2025-01-22 07:43:33
Score: 1
Natty:
Report link

TextFormField( textAlign: TextAlign.start, textCapitalization: textCapitalization ?? TextCapitalization.none, readOnly: readOnly, initialValue: initialValue, focusNode: focusNode, controller: controller, keyboardType: keyboardType, textInputAction: textInputAction ?? TextInputAction.next, obscureText: isPassword ? !isPasswordVisible : false, validator: validator, autovalidateMode: autoValidateMode, textAlignVertical: TextAlignVertical.top, onTap: onTap, style: Theme.of(context) .textTheme .bodyLarge! .copyWith(fontSize: 16.fs(context)), inputFormatters: inputFormatters ?? [LengthLimitingTextInputFormatter(48)], decoration: InputDecoration( filled: true, constraints: BoxConstraints(minHeight: 48.h(context)), contentPadding: EdgeInsets.symmetric(vertical: 10, horizontal: 18), isDense: true, focusedBorder: isBorder ? OutlineInputBorder( borderRadius: BorderRadius.circular(8.r(context)), borderSide: const BorderSide(color: AppColors.primaryColor), ) : OutlineInputBorder( borderRadius: BorderRadius.circular(8.r(context)), borderSide: const BorderSide( color: AppColors.textFieldBorderColor), ), border: OutlineInputBorder( borderRadius: BorderRadius.circular(8.r(context)), borderSide: const BorderSide(color: AppColors.primaryColor), ), errorStyle: Theme.of(context).textTheme.bodySmall!.copyWith( color: Theme.of(context).colorScheme.error, fontSize: 12.fs(context)), enabledBorder: OutlineInputBorder( borderRadius: BorderRadius.circular(8.r(context)), borderSide: const BorderSide(color: AppColors.textFieldBorderColor), ), hintStyle: Theme.of(context).textTheme.bodyLarge!.copyWith( color: color ?? Theme.of(context).colorScheme.onPrimaryFixed, fontSize: 16.fs(context)), hintText: hintText, suffixIconConstraints: const BoxConstraints( minWidth: 20, minHeight: 20, maxHeight: 40, maxWidth: 40), suffixIcon: isPassword ? IconButton( padding: EdgeInsets.zero, onPressed: () { if (passwordFieldType != null) { context .read() .add(PasswordToggledEvent(passwordFieldType!)); } }, icon: Icon( isPasswordVisible ? Icons.visibility : Icons.visibility_off, color: Theme.of(context).colorScheme.onPrimaryFixed, ), ) : null, ), onChanged: onChanged, );

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

79376856

Date: 2025-01-22 07:41:32
Score: 1.5
Natty:
Report link

For me, the .gitignore is not being detected due to tab spaces in front of the files listed in the .gitignore file. Please ensure the content of the .gitignore file is formatted correctly.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: MUHAMMAD SHAHID RAFI C P

79376838

Date: 2025-01-22 07:32:30
Score: 2
Natty:
Report link

Have you tried turning up the retries for the health check? My thinking is that if it's determined that it's not a resource issue, host memory, cpu, external storage volumes, etc., then the cause of the container reboot is most likely failing the health check.

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Miguel Tu

79376835

Date: 2025-01-22 07:28:30
Score: 3
Natty:
Report link

You probably did not enable OpenMP in VS settings. Without enabling it, you are only using one thread

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Džiugas Bartašius

79376833

Date: 2025-01-22 07:27:29
Score: 1.5
Natty:
Report link

Your code should work fine. I didn't log in and all the home stats are hidden and ask to subscribe. Check if you can access it properly with the user you are logging in with.

Otherwise, you should be able to scrape the data with your code.

It is better to click on buttons using js rather than closing ad iframes.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shawn P

79376823

Date: 2025-01-22 07:22:27
Score: 8 🚩
Natty: 4
Report link

enter link description hereYes My name is aryan soni Please help me Android me html code start

(Html) (Tittle)This parlour is a very beautiful Palour(/tittle) enter code here`23900 ^ (/Html)

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): enter link description here
  • RegEx Blacklisted phrase (3): Please help me
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aryan Soni

79376817

Date: 2025-01-22 07:18:26
Score: 1.5
Natty:
Report link

sleuth was doing it !

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: naturzukunft

79376809

Date: 2025-01-22 07:15:26
Score: 1.5
Natty:
Report link

I was able to load the project in VS2022 and failed to load it in Rider IDE. The error was resolved after installing dot net SDK 8.

Steps: Verify if you have the correct Dot net SDK install (dotnet --list-sdks)

If not then install the correct SDK, verify the version, and try loading the project

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Nitin Ware

79376808

Date: 2025-01-22 07:15:26
Score: 3
Natty:
Report link

Use \r instread its a carriage return which moves the cursor back to start of line without adding a new line.

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

79376801

Date: 2025-01-22 07:12:25
Score: 2
Natty:
Report link

The issue is that MFA enforcement can differ from attaching policies directly to users and using assume role. I would create one policy that assumes the role and ensures MFA is present and a trust policy that ensures the role enforces MFA during assumption. MFA needs to be enforced on the trust policy and removed from the regular policy.

As discussed and confirmed by @Vincent Verbist.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Vincent
  • Low reputation (0.5):
Posted by: root69

79376800

Date: 2025-01-22 07:12:25
Score: 3.5
Natty:
Report link

'B': Means binary, 'H': means hexidecimal...

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

79376795

Date: 2025-01-22 07:10:24
Score: 0.5
Natty:
Report link

You can try to set:

spark.shuffle.mapOutput.minSizeForBroadcast=10m

References and Credits:

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

79376794

Date: 2025-01-22 07:09:24
Score: 3.5
Natty:
Report link

I got that working on my website https://onlinequicktool.com/markdown-previewer/

Check the source code from the browser

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

79376793

Date: 2025-01-22 07:08:24
Score: 0.5
Natty:
Report link

The same happened to me. Here is my thought: I think telegram caches the url somehow. In my case, I was sending a file from s3, at first it was not flagged public read access. Telegram gave an error, then I make it public then tried different changes when sending the same url. At the end, when I change the url (basically changing the file name), it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Low reputation (1):
Posted by: Khasanboy Mamasharipov

79376789

Date: 2025-01-22 07:07:24
Score: 3.5
Natty:
Report link

Got the same problem with JetBrains JDK installed, switched to another: enter image description here

Problem was solved for me.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Viktor Antipin

79376750

Date: 2025-01-22 06:50:20
Score: 2
Natty:
Report link

For people who don't know that much

nc/socat → Ngrok → Reverse Shell

nc -nvlp 4444

listening...

ngrok tcp 4444

👍

here is your ip 43.43.34.23:98234

Reverse shell

something something 43.43.34.23:98234

nc -nvlp 4444

👍

$hell

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

79376741

Date: 2025-01-22 06:47:19
Score: 0.5
Natty:
Report link

Very similar to your own suggestion I did it as follow:

private fun loadColor(intArray: Int): Int{
    val typedValue = TypedValue()
    context?.theme?.resolveAttribute(intArray, typedValue, true)
    return typedValue.data
}

Then, in my theme file I have:

<style name="Theme.MyAppName" parent="Theme.MaterialComponents.DayNight.NoActionBar">
    <item name="boxColor2OnPrimary">@color/new_grey</item>
</style>

@color/new_grey is a color set in the colors.xml file

I then added to my attrs.xml file the following:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <declare-styleable name="CustomAttributes">

        <attr name="boxColor2OnPrimary" format="color" />

    </declare-styleable>
</resources>

and finally when I want to get a color I simply do this:

val color = loadColor(boxColor2OnPrimary)

now you can make full use of your day / night theme

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Assay

79376737

Date: 2025-01-22 06:45:19
Score: 2
Natty:
Report link

I also had the same problem on docker running on wsl ubuntu, so the problem was of dns resolution and i created /etc/docker/daemon.json file and added in it "dns": ["8.8.8.8", "8.8.4.4"] and then restarted docker and the issue was resolved.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mashood Ali Khan

79376734

Date: 2025-01-22 06:45:18
Score: 0.5
Natty:
Report link

Regarding the vfio-pci advice: consider to post dmesg outputs that concern vfio, as explained in the original answer, and also consider posting verbose output from EAL initialisation. Without such information, it is very hard to guess about what might have gone wrong with the particular setup.

In what comes to build errors (which, by the way, make another question unrelated to the topic of the OP), it is hard to advise on third-party instructions that are not part of the upstream DPDK project: if those tutorials worked previously, consider reproducing them step-by-step, exactly as when they worked. Yes, vendor-specific tarballs may differ significantly from the upstream DPDK contents. So one shall make sure that all versions and sources from which the code comes, as well as command sequences used, follow those outlined in the tutorial.

Reasons:
  • Blacklisted phrase (1): another question
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user23509140

79376727

Date: 2025-01-22 06:42:17
Score: 7.5
Natty: 8
Report link

How do I move this picture to the top rightside of the header section ?

Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How do I
  • Low reputation (1):
Posted by: Venu

79376721

Date: 2025-01-22 06:40:16
Score: 3
Natty:
Report link

Application -> Settings Sync -> Keybindings (per Platform) was my solution as well next to popping up every time I started vscode.

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

79376715

Date: 2025-01-22 06:35:15
Score: 1
Natty:
Report link

Here is the answer, replace this line:

firestoreClient, err := app.Firestore(ctx)

With this line to set the database to something that's not default:

firestoreClient, err := firestore.NewClientWithDatabase(ctx, "guap-social", "guap-social", opt)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mabel Oza

79376714

Date: 2025-01-22 06:34:15
Score: 1.5
Natty:
Report link

Fetching dynamic website using Google Sheets or Apps Script

After spending time trying to scrape the site using apps script and google sheets and also following discussions like this and Stackoverflow posts like this it is safe to say that Google Sheets’ IMPORTXML and even Google App Script’s UrlFetchApp does not have the capability to render dynamically rendered websites.

To accomplish the goal, you would need to use other tools like Selenium WebDriver that has the capability to wait for the site to load up completely and then scrape it.

You may also try submitting the idea of fetching dynamic websites using apps script as a feature request here

References:

Google Sheets scraping

How to extract dynamic website data with Google Script?

Utilizing Selenium WebDriver for Dynamic Web Scraping in C#

Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: 4thAnd1

79376713

Date: 2025-01-22 06:34:14
Score: 5.5
Natty:
Report link

I am facing the exact same problem, just that our implementation is in Java instead of Python

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the exact same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Deepak Gupta

79376710

Date: 2025-01-22 06:32:14
Score: 3.5
Natty:
Report link

You can revive a proper answer reading this Blog about installing Appium and Appium inspector.

Link

Reasons:
  • Blacklisted phrase (1): this Blog
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Partik Chandra

79376692

Date: 2025-01-22 06:24:12
Score: 3
Natty:
Report link

extend-expect is removed. detail is here https://github.com/testing-library/jest-dom/releases/tag/v6.0.0

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
Posted by: Shen liang

79376690

Date: 2025-01-22 06:23:12
Score: 1
Natty:
Report link

With custom uri scheme disabled for an Android OAuth client (as recommended and as you should due to the security risks), Google's alternative is to use their SDK:

Use the Google Sign-In for Android SDK which delivers the OAuth 2.0 response directly to your app, eliminating the need for a redirect URI.

https://developers.google.com/identity/protocols/oauth2/native-app#alternative-to-using-custom-uri-schemes-on-android

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: akdombrowski

79376687

Date: 2025-01-22 06:22:11
Score: 0.5
Natty:
Report link

I opened VC++ in admin mode and ran the following command in VC++ terminal

cmake --build . --config Release --target INSTALL

It worked and installed DCMTK Thanks all for the support

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): It worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ron

79376683

Date: 2025-01-22 06:20:11
Score: 2
Natty:
Report link

Just to add what worked for me, text-align only seemed to work when i put it within a

paragraph tag within a

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

79376679

Date: 2025-01-22 06:19:11
Score: 2.5
Natty:
Report link

Use SETUP.EXE /MERGETASKS="!desktopicon"

This tells the installer not to create the desktop icon which then removes the check for a the desktopfolder constant in the current user context.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29308981

79376669

Date: 2025-01-22 06:13:09
Score: 3.5
Natty:
Report link

I just demolished the entire local directory and cloned it with git again.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ровшан Рустамов

79376666

Date: 2025-01-22 06:11:09
Score: 1.5
Natty:
Report link

For those seeking a new home in Chennai, flats for sale in Redhills are quickly gaining attention. Offering a wide variety of choices, from budget-friendly 2BHK units to expansive 3BHK flats, this area caters to a diverse range of preferences and financial plans. These flats for sale in Redhills are built with modern designs, high-quality construction, and a host of contemporary amenities that enhance the overall living experience. The locality enjoys excellent connectivity to key roads, public transportation, schools, and healthcare facilities, making it a convenient and practical choice for both families and investors. With its ideal mix of affordability, accessibility, and modern living, Redhills is becoming one of Chennai’s most desirable places to buy property.

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

79376665

Date: 2025-01-22 06:10:08
Score: 9 🚩
Natty: 4.5
Report link

I'm also facing similar issue where Allure results are not showing up in the allure-results folder inside my Docker container. I've set the -Dallure.results.directory=/app/allure-results property in the ENTRYPOINT command of my Dockerfile, but the folder remains empty after running the tests.

I've already tried mounting the allure-results folder as a volume to persist the results outside the container, but it doesn't seem to capture anything. Any help would be greatly appreciated.

P.S: I cannot go with the Allure Docker service container for this setup.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (3): Any help would be greatly appreciated
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm also facing similar issue
  • Low reputation (1):
Posted by: Santhosh

79376662

Date: 2025-01-22 06:09:07
Score: 3
Natty:
Report link

To fix this I just cleared npm_cache, just deleted everthing on folder "C:\Users\user\AppData\Local\npm-cache_npx"

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

79376659

Date: 2025-01-22 06:08:06
Score: 4
Natty: 4
Report link

just change your flutter_local_notifications: 17.2.1 package version

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

79376658

Date: 2025-01-22 06:07:06
Score: 1.5
Natty:
Report link

<a href={product/:_id}/> <a href={product/${product._id}}/

You Should be used to Template literals and the second bracket and you are all on the right track, just change the ".

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

79376654

Date: 2025-01-22 06:03:04
Score: 4.5
Natty: 4.5
Report link

If when I process the request UpdateCheckoutSession, it return same error, what is the reason.

And the transaction status is open.

Thanks, Michael

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Michael

79376643

Date: 2025-01-22 05:55:01
Score: 4.5
Natty: 7
Report link

(I need) "credit card" (info)with at least $80 on it please and thank you

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): I need
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kody Shakur

79376639

Date: 2025-01-22 05:52:00
Score: 3
Natty:
Report link

In React you don't usually access the DOM directly, you let React do that for you. Using React refs is a way to do it. You do not need to assign ids this way or use other query selectors.

This answer goes into details: https://stackoverflow.com/a/69260293/13637489

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eghizio

79376623

Date: 2025-01-22 05:39:58
Score: 2
Natty:
Report link

I tested my ADAM-6350 module using QModMaster, and all read and write operations worked correctly, confirming that the module is functioning as expected. However, when I try to perform the same read and write operations using the provided C program with the libmodbus library, it does not work as intended. Specifically, while the program successfully connects to the module and modbus_write_bit returns no errors when writing to a coil, subsequent calls to modbus_read_bits always return a value of 0, regardless of the value written. Could this issue be related to incorrect coil or register addresses, specific initialization requirements for the ADAM-6350, or differences in how QModMaster handles Modbus TCP compared to libmodbus? Are there specific steps to verify the correct Modbus configuration or address mappings for the ADAM-6350 when using a custom program? Additionally, could there be library-specific nuances or settings I need to adjust to ensure proper communication?

#include <modbus.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>

#define SERVER_IP "192.168.1.250"
#define SERVER_PORT 502
const uint16_t COIL_ADDRESS = 0x0001; // Address for a single coil

int main() {
    int rc;
    modbus_t *ctx;
    uint8_t coil_value;

    // Create Modbus context
    ctx = modbus_new_tcp(SERVER_IP, SERVER_PORT);
    if (ctx == NULL) {
        fprintf(stderr, "Unable to create Modbus context: %s\n", modbus_strerror(errno));
        return -1;
    }

    // Connect to Modbus server
    if (modbus_connect(ctx) == -1) {
        fprintf(stderr, "Unable to connect to Modbus server: %s\n", modbus_strerror(errno));
        modbus_free(ctx);
        return -1;
    }

    printf("Connected to Modbus server %s:%d\n", SERVER_IP, SERVER_PORT);

    // Write to a single coil
    printf("Writing to coil at address 0x%04X...\n", COIL_ADDRESS);
    rc = modbus_write_bit(ctx, COIL_ADDRESS, 1); // Turn the coil ON
    if (rc == -1) {
        fprintf(stderr, "Error writing to coil: %s\n", modbus_strerror(errno));
        modbus_close(ctx);
        modbus_free(ctx);
        return -1;
    }
    printf("Successfully wrote to coil at address 0x%04X.\n", COIL_ADDRESS);

    // Read the single coil
    printf("Reading coil at address 0x%04X...\n", COIL_ADDRESS);
    rc = modbus_read_bits(ctx, COIL_ADDRESS, 1, &coil_value);
    if (rc == -1) {
        fprintf(stderr, "Error reading coil: %s\n", modbus_strerror(errno));
        modbus_close(ctx);
        modbus_free(ctx);
        return -1;
    }
    printf("Read coil value at address 0x%04X: %d\n", COIL_ADDRESS, coil_value);

    // Close the connection
    modbus_close(ctx);
    modbus_free(ctx);

    return 0;
}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Akshaya S Rajagiri

79376615

Date: 2025-01-22 05:37:58
Score: 3.5
Natty:
Report link

I have recently faced same issue Resolution stepls

  1. Spring restart
  2. Restart IDE and try bundle exec rails console
  3. If you still getting same issue Restart your system
  4. Bundle install
  5. Bundle exec rails console
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): getting same issue
  • Low reputation (1):
Posted by: Shailesh Seth

79376613

Date: 2025-01-22 05:36:58
Score: 3.5
Natty:
Report link

i tried with smsbroadcastreceiver but in app its coming error for access denied

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

79376601

Date: 2025-01-22 05:24:56
Score: 2.5
Natty:
Report link

Question: Celery status command shows "No nodes replied within time constraint." How can I fix this?

Answer:

I faced this issue and resolved it by restarting the Celery service. Here's what worked for me:

  1. Restart the Celery Service:

    sudo service celery restart
    
  2. Check the Status Again:

    celery -A prototype.celeryapp:celery_app status
    

After this, the command showed the correct output with the workers online:

-> celery@az-sand-app-1: OK
-> celery@CeleryWorker-1: OK
2 nodes online.

This fixed the issue. Ensure your message broker is running and there are no network issues.

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (1): How can I fix this
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (1.5): How can I fix this?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: i-am-naveen-m-j

79376599

Date: 2025-01-22 05:21:55
Score: 2
Natty:
Report link

The issue was the phone was in silent mode. Weirdly, the sound generated by webaudio api is treated as "ring tones and alerts". So when you're in silent mode, unlike audio and video, there will be no sound playing from web audio api.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: shampoo

79376586

Date: 2025-01-22 05:17:54
Score: 1.5
Natty:
Report link

I had the same question. It was not possible to solve the problem using macros. A very close solution was obtained by using slices, in excel itself support.microsoft.com

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

79376578

Date: 2025-01-22 05:12:54
Score: 2
Natty:
Report link

also you can edit plist file with its property names like this:

plutil -replace items.0.assets.0.url -string "yourtext" yourfile.plist

enter image description here

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

79376572

Date: 2025-01-22 05:09:53
Score: 0.5
Natty:
Report link

My two cents to the answer by @Loudenvier

In some cases we will be using FindElement method of another IWebElement. Here is the implementation to add timeout to this method

public static IWebElement FindElement(this IWebElement element, By by, int timeoutInSeconds)
{
    if (timeoutInSeconds > 0)
    {
        var driver = GetDriverFromElement(element);
        var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(timeoutInSeconds));
        return wait.Until(drv => drv.FindElement(by));
    }
    return element.FindElement(by);
}
private static IWebDriver GetDriverFromElement(IWebElement element)
{
    var wrappedElement = element as IWrapsDriver;
    return wrappedElement?.WrappedDriver ?? throw new InvalidOperationException("Cannot get driver from the element.");
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Loudenvier
  • Low reputation (0.5):
Posted by: Extreme_Tough

79376569

Date: 2025-01-22 05:05:52
Score: 0.5
Natty:
Report link

Use didPopRoute to handle back button:

@override
Future<bool> didPopRoute() {
  bool shouldAllowBack = true; // Update condition if required
  if (shouldAllowBack) {
    return super.didPopRoute(); // allow back
  } else {
    // Add logic here if required
    return Future.value(true);  // back not allowed
  }
}

& It works fine with GoRouter.

Exact code:

@override
Future<bool> didPopRoute() {
  return Future.value(true);
}

Official Documentaion:
Flutter > widgets.dart > WidgetsBindingObserver > didPopRoute method

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: ankushlokhande

79376558

Date: 2025-01-22 04:55:51
Score: 2
Natty:
Report link

You can use something like this.

enter image description here

The demo link is here: https://codesandbox.io/p/sandbox/73zc22?file=%2Fsrc%2FApp.tsx%3A50%2C16

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Shabbir Hossain

79376550

Date: 2025-01-22 04:47:49
Score: 2.5
Natty:
Report link

select * from aTable where id > (select max(id) from aTable) - 10

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

79376547

Date: 2025-01-22 04:46:49
Score: 1.5
Natty:
Report link

Open setting.json file in vscode using Ctrl-P and then assign flutter sdk path

"dart.flutterSdkPath": path,
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nikunj Agrawal

79376528

Date: 2025-01-22 04:31:45
Score: 1.5
Natty:
Report link

Figured it out, there was another flag to add. Buried deep in the log file behind all the warnings there was one integer-conversion error, so adding an ignore flag to this solved the problem. Full command was: gem install sqlite3 -v 1.4.2 -- --with-cflags="--with-cflags=-g -O0 -std=c11 -Wno-error=implicit-function-declaration -Wno-error=incompatible-function-pointer-types -Wno-error=int-conversion"

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: FATCullen

79376522

Date: 2025-01-22 04:22:43
Score: 3
Natty:
Report link

Had you ever gotten an answer on this? I did far less research than you, but I have the issue where an empty project (Empty Views Activity) will take 10+ minutes to load the emulator alone, and still doesn't get to completion. I wondered if it is purely that the ladybug drop takes longer on everything due to the Gemini integration they attempted to launch.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: S Brem

79376521

Date: 2025-01-22 04:22:43
Score: 0.5
Natty:
Report link

You can try strcapture with regular expression:

dat = data.frame(A = c("M24656811 M24677722 GREEN,SMITH34/M/B",
                       "M24654999 DOE,JANE V37/F/W", "M24333107 DOE,JOHN24/M/B"))

# Using strcapture
pattern <- "^(\\w*) ?(M2\\d+) (\\w+,[^0-9 ]+) ?(.+)$"
result = strcapture(pattern, dat$A, 
                    proto = data.frame(A = character(),
                                       B = character(),
                                       C = character(),
                                       D = character()))
result

output

You can also use str_match:

result = str_match(dat$A, pattern)
result = as.data.frame(result[, -1])
colnames(result) <- c("A", "B", "C", "D")
result
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: nicholaspooran

79376515

Date: 2025-01-22 04:19:43
Score: 3
Natty:
Report link

You could run the install command with --force, but the safest way is to downgrade back to 18 until all the dependencies have been upgraded to 19.

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

79376514

Date: 2025-01-22 04:19:43
Score: 0.5
Natty:
Report link

here is my solution..

def cat_dog(str):
  l = len(str)
  l1 = len(str.replace('cat','#'))
  l2 = len(str.replace('dog','#'))
  t1 = (l-l1)
  t2 = (l-l2)
  if t1 == t2:
     return True
  return False  
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Manoj

79376504

Date: 2025-01-22 04:05:40
Score: 1
Natty:
Report link

In my case this solved the issue,

 DispatchQueue.main.async {            
       self.searchController.searchBar.searchTextField.textColor = .white // Your Color        
} 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shuvo Joseph

79376502

Date: 2025-01-22 04:02:40
Score: 1
Natty:
Report link

In my case this solved the issue,

 DispatchQueue.main.async {            
       self.searchController.searchBar.searchTextField.textColor = .red        
} 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shuvo Joseph

79376476

Date: 2025-01-22 03:41:36
Score: 0.5
Natty:
Report link

You can modify the column names in the output with the AS clause. For example, to shorten the column names and show them without quotes, run the following query:

    SELECT *
FROM SALES_DATA
PIVOT (
    SUM(SALES_AMOUNT) -- Aggregation function
    FOR PRODUCT IN ('PRODUCT_A', 'PRODUCT_B', 'PRODUCT_C')
) as p(data_s,PRODUCT_A, PRODUCT_B, PRODUCT_C);

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Sriga

79376470

Date: 2025-01-22 03:36:35
Score: 3
Natty:
Report link

This error also occurs when saving a .Rmd file in RStudio while a chunk is running.

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

79376466

Date: 2025-01-22 03:34:35
Score: 3
Natty:
Report link

You use "defer" for scripts that need to be executed after the HTML document is parsed, and "preload" when you want to load resources much earlier.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Obinna Obi-Akwari

79376451

Date: 2025-01-22 03:21:33
Score: 1
Natty:
Report link

In HQL, the column name is derived from the get method name by dropping the 'get' prefix, and changing the first letter of the remaining portion to lower case. Therefore, when the column is declared as '@Column(name = "Fullname") public String getFullname()', the HQL column name would be 'fullname'.

On the other hand, if the column is declared as '@Column(name = "Fullname") private String Fullname;', the member name is used as column name. Because of that, the HQL column name would be 'Fullname' and your query is going to be correct.

Please note that Java Naming Convention states that the variable names should start with the lower case letter. For this reason, using the latter declaration to force first letter of the column name to be in upper case is strongly discouraged.

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

79376446

Date: 2025-01-22 03:18:32
Score: 4
Natty:
Report link

Github about section

Click on the Gear icon in About section on code page and you can update the description

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: newCoder

79376439

Date: 2025-01-22 03:14:30
Score: 1.5
Natty:
Report link

Wrote the regex to include as much as I can with as little regex as possible. Hope this helps someone.

My Regex: https://regex101.com/r/PQVeh8/3

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sehab

79376431

Date: 2025-01-22 03:09:29
Score: 4
Natty: 4.5
Report link

This example seems to do the same: https://www.baeldung.com/jackson-nested-values

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
Posted by: S.Dan

79376430

Date: 2025-01-22 03:09:28
Score: 9 🚩
Natty: 4
Report link

Has anyone solved this problem? I also encountered data that was not available for 10 + minutes of loading, and it was a new project?

Reasons:
  • Blacklisted phrase (1): anyone solved
  • RegEx Blacklisted phrase (1.5): solved this problem?
  • RegEx Blacklisted phrase (3): Has anyone solved
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ealge

79376429

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

Well, it turns out there this tiny little dropdown on the bottom of the debugger

...

Use it to switch from hex to utf to base64

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

79376420

Date: 2025-01-22 02:55:25
Score: 1.5
Natty:
Report link

If you want to use a trained model for inference, the input data must conform to the format (including size) in which the model was originally trained. Basically, I think both of your proposed solutions, 1.a) and 1.b), can be tried and tested, and as you mentioned, the data must be processed by yourself first.

However, because you are performing inference on untrained data, and the data format is different from the model training data, I think the model performance will not be as expected.

Please refer to it, thanks.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: CNLiu

79376415

Date: 2025-01-22 02:53:25
Score: 1.5
Natty:
Report link

@Matt Whitlock's bash/sed scripts didn't work for me, so I took a crack at it myself. I used nested re.split to iterate over each (ANSI escape sequence / newline / word / contiguous whitespace). Colors don't add to printable_line_len, newlines reset printable_line_len, and each word / whitespac is prepended with a newline whenever it crosses MAX_LINE_LEN. If a word / whitespace is prepended with a newline, printable_line_len becomes equal to the length of that word / whitespace. Of course this only works for characters that take up one space, so I made it so that only non-whitespace ascii characters, " " and "\n" are allowed.

#!/usr/bin/env python3
import re
import sys
import string

MAX_LINE_LEN = 80
ANSI_ESCAPE_SEQUENCE = re.compile(r"\x1b\[[0-9;:]*?m")
ALL_ASCII_CHARS = {chr(i) for i in range(128)}
ALLOWED_CHARS = (ALL_ASCII_CHARS - set(string.whitespace)).union({" ", "\n"})

output = ""
printable_line_len = 0

for sequence_or_non_sequence in re.split(rf"({ANSI_ESCAPE_SEQUENCE.pattern})", sys.stdin.read()):
    for c in sequence_or_non_sequence:
        if c not in ALLOWED_CHARS:
            raise RuntimeError(f'character not allowed: "{c}"')
    if re.match(ANSI_ESCAPE_SEQUENCE, sequence_or_non_sequence):
        output += sequence_or_non_sequence
        continue
    for newline_or_word_or_whitespace in re.split(r"(\n|\b)", sequence_or_non_sequence):
        if newline_or_word_or_whitespace == "\n":
            output += "\n"
            printable_line_len = 0
        elif printable_line_len + len(newline_or_word_or_whitespace) > MAX_LINE_LEN:
            output += "\n" + newline_or_word_or_whitespace
            printable_line_len = len(newline_or_word_or_whitespace)
        else:
            output += newline_or_word_or_whitespace
            printable_line_len += len(newline_or_word_or_whitespace)

print(output)
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Matt
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: hydrated_showdown

79376406

Date: 2025-01-22 02:44:23
Score: 2
Natty:
Report link

C:\Users\Desktop\New folder\example-repo> goto floder and run below cmd

You can try package-json-merge npm module. To install it, use this command -

npm install -g package-json-merge

Then simply use below command to combine multiple package.json into a single one -

npx package-json-merge location of package1.json location of package2.json > packageN.json

ex: npx package-json-merge lib\shared\package.json apps\app2\package.json > packageN.json

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29306738