79723433

Date: 2025-08-02 14:54:55
Score: 1.5
Natty:
Report link

Dim sString As String

Dim arrString

Dim i As Integer

List1.Clear

List1.AddItem "Orignal string"

sString = "aaaa; bbb; ccccc ; ddd"

List1.AddItem sString

arrString = Split(sString, ";")

List1.AddItem "Split string"

For i = 0 To UBound(arrString)

List1.AddItem Trim(arrString(i))

Next

List1.AddItem "Back joined with " & Chr(34) & "," & Chr(34)

List1.AddItem (Join(arrString, ","))

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

79723429

Date: 2025-08-02 14:42:53
Score: 1.5
Natty:
Report link

As suggested here https://stackoverflow.com/a/73525890 you can let the database set the timestamp using the insertable and updatable Column options:

#[ORM\Column(insertable: false, updatable: false)]
private \DateTime $my_date;
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Salvador

79723426

Date: 2025-08-02 14:38:52
Score: 3
Natty:
Report link

Tried all of these answers, but none seemed to work for me. Switching to a different network did the trick though.

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

79723423

Date: 2025-08-02 14:36:51
Score: 3
Natty:
Report link

Maybe you use Virtual enviroment.

If you use this, see the install location.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ezequiel Menegás

79723415

Date: 2025-08-02 14:19:48
Score: 2
Natty:
Report link

Use a live distro which can boot from a cd or a USB stick.
Change the sudo rights for the root folder (/) back.
Then you should be able to use sudo as usual

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

79723407

Date: 2025-08-02 14:08:46
Score: 1
Natty:
Report link

$pass = substr(base64_encode(md5(str_shuffle(time()))),0,8);

Example output: N2UxYzZm

The original question only asked for letters and numbers, not special chars. So this approach takes the current time stamp, shuffles it and gets the first eight chars of the base64 encoded md5 hash from it. This should be pretty random, even if you knew the time stamp when the password was created it is still shuffled, just in case two people generate a password at the exact same timestamp. You can also shuffle the substring if you want or the md5 hash, as well. But for enough randomness, I guess it would do.

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

79723402

Date: 2025-08-02 13:55:44
Score: 2
Natty:
Report link

The problem was that I forgot to exclude my vitest.config.ts from tsconfig.build.json, as shown below.
enter image description here

It made vitest.config.ts get compiled into a vitest.config.js inside the dist folder:
enter image description here

Which made the extension think it should consider that file and locked it for some reason (I don't know why, to be honest).
Adding vitest.config.ts to exclude solved my problem.

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

79723395

Date: 2025-08-02 13:46:42
Score: 2
Natty:
Report link

PowerAutomate is limited to watch only one Folder unfortunately.
You can setup mutiple trigger flows for each folder and then trigger a common "main" flow to add to the Microsoft List

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

79723394

Date: 2025-08-02 13:44:41
Score: 2
Natty:
Report link

I had the same issue. Turns out strict mode, in React/NextJs , made the session generate twice, which was triggering the validation of set Session Id.

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

79723389

Date: 2025-08-02 13:32:38
Score: 1
Natty:
Report link

I had the same issue on ubuntu 22.04 LTS.

For me the issue is I was using the jupyter as a system service(so I could just visit the url directly any time).

If I just start a new instance from command line, this issue goes away.

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

79723376

Date: 2025-08-02 13:11:29
Score: 1.5
Natty:
Report link

There is an alternative ferrum_pdf that is not based on wkhtmltopdf, which has not been developed for a long time and creates a number of problems for installation on most modern repositories. It's like a sip of water in the desert. But it's perfect for creating PDFs and screenshots of static pages.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Viktor Ivliiev

79723367

Date: 2025-08-02 12:50:25
Score: 2
Natty:
Report link

Simply run this command : sudo npx expo start --tunnel

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sahil bakoru

79723362

Date: 2025-08-02 12:38:22
Score: 3.5
Natty:
Report link

I know this won't help if you've already deleted your menu, but I created this plugin after making the same mistake myself: https://wordpress.org/plugins/menu-backup-restore/advanced/

Now, every time I save a menu, it automatically creates a backup. I can restore any previous version whenever I need to.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): this plugin
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Matu

79723357

Date: 2025-08-02 12:34:21
Score: 3
Natty:
Report link

Finally i've managed to solve this by hiding the stack navigator header once and for all. Then i implemented the content of the drawer header based on the current route, hence showing a back button inside the [userid] route

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

79723338

Date: 2025-08-02 11:57:14
Score: 1
Natty:
Report link

If you're getting this error during YOLOv5 training:

tensorflow.python.framework.errors_impl.FailedPreconditionError: runs\train\<name> is not a directory

and you're using a folder path that contains non-ASCII characters, it's caused by TensorBoard (TensorFlow) failing to write logs in Unicode paths on Windows.

You can fix it by disabling TensorBoard logging in YOLOv5:

  1. Open yolov5/utils/loggers/__init__.py

  2. Find this line:

self.tb = SummaryWriter(str(s))
  1. Replace it with:
self.tb = None 

This disables TensorBoard logging and prevents the crash.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ASH

79723334

Date: 2025-08-02 11:44:11
Score: 1
Natty:
Report link

Looks like this, right?

enter image description here

To make a child `div` scrollable is to give it a fixed or constrained height. To achieve it, apply `

overflow: auto 
or
overflow-y: scroll

Here's an example CSS:

.layout-container {
  display: flex;
  height: 100vh; /* => Fill the full screen */
}

.sidebar-scrollable {
  width: 250px; 
  height: 100%;  /* => Fill the parent height */
  overflow-y: auto; /* => Enable vertical scrolling */
  padding: 10px;
  box-sizing: border-box;
  background-color: #f9f9f9;
}

.main-content {
  flex: 1;
  padding: 20px;
}

Hopefully, this will help

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

79723314

Date: 2025-08-02 11:13:04
Score: 1
Natty:
Report link

The issue is likely caused by gdal2tiles.py producing too much output, which fills up the Python subprocess output buffers and causes it to hang silently. Even with a timeout set, the process won’t exit if those buffers are full. To fix this, remove capture_output=True from your subprocess.run call so the output flows directly to the terminal and doesn't get stuck. This usually resolves the deadlock when running GDAL tools inside a Docker container.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Abhay Jain

79723312

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

In my case, changed wordpress fpm alpine version into fpm version solved this problem.

alpine version has some drawbacks(of course it's faster and lighter)

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

79723305

Date: 2025-08-02 10:57:00
Score: 0.5
Natty:
Report link

Found it: right click on MyInterface - find usages advanced - select scope current file and find "usages of members"

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: me.at.coding

79723303

Date: 2025-08-02 10:56:00
Score: 0.5
Natty:
Report link

FYI I would convert to float16 (2x smaller, almost no loss).

But best practical answer (keeps float32 precision at read time, shrinks disk by ~4x, gives millisecond random row fetch):

  1. quantize to float8

    • 1 byte per value instead of 4 bytes -> 500gb -> 125gb

    • benchmarks (Naamán Huerga-Pérez et al.) shows smaller than 0.3 quality loss.

  2. Store as a single memory-mapped binary file

    • one line gives you any subset of rows in ~1-2 ms with no servers no polars.

If you later want even smaller, combine light pca drop to 384 dims + float8 -> 60~GB total. thats the simplest, fastest route to both goals.

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

79723290

Date: 2025-08-02 10:44:58
Score: 2.5
Natty:
Report link

Your code works fine with me TF2.12.0 however it does not print anything. Use tf.print instead of print if you want print statements in your tf.function.

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

79723283

Date: 2025-08-02 10:35:55
Score: 3
Natty:
Report link

For max_seq_length error use 'max_length' instead

in new version they changed it to max_length

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

79723277

Date: 2025-08-02 10:23:52
Score: 4.5
Natty:
Report link

ctrl + enter works on windows.

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

79723276

Date: 2025-08-02 10:22:52
Score: 1.5
Natty:
Report link

The issue is with how you're setting the context.fillStyle. You're using a template string inside single quotes, which doesn't interpolate the variables. This makes the color string invalid, so the canvas defaults to black.

Incorrect: context.fillStyle = 'rgba(${myColour[0]}, ${myColour[1]}, ${myColour[2]}, ${myColour[3]})';

This literally sets the string "rgba(${myColour[0]}, ...)" which is not a valid CSS color.

Fix: Use backticks instead of single quotes to enable string interpolation:

context.fillStyle = `rgba(${myColour[0]}, ${myColour[1]}, ${myColour[2]}, ${myColour[3] ?? 1})`;

You can also use destructuring:

const [r, g, b, a = 1] = myColour;

context.fillStyle = `rgba(${r}, ${g}, ${b}, ${a})`;

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

79723273

Date: 2025-08-02 10:19:51
Score: 2
Natty:
Report link

Change:

mkdir -p $deploydir

to

mkdir -p '$deploydir'

This solution worked for my case.

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

79723267

Date: 2025-08-02 10:13:50
Score: 1.5
Natty:
Report link

Restrict your workspace to just the folder you actually care about. Change your devcontainer.json so that VS Code’s workspace is /workspace (location of the ode), not /.

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

79723265

Date: 2025-08-02 10:08:49
Score: 3
Natty:
Report link

React is case sensitive. You have import { Navbar } from "./components/navbar";. The N on Nav should be capitalized.

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

79723256

Date: 2025-08-02 09:43:43
Score: 1
Natty:
Report link

It's easily feasible, but it depends if you are using a specific framework. In brief :

  1. If You use a simple Java Application, you create a simple Java Application on NETBEANS IDE and you just need to copy and paste all the code you wrote previously to the NETBEANS IDE.

    enter image description here

  My previous code in Vs code :

enter image description here

After simple copy -paste operations in NETBEANS IDE :

enter image description here

Then you can create any GUI components (Jpanels, Jframes, etc..) and include them in your orginal code.

enter image description here

For example in the above screenshot, the Chat.java file corresponds to a Jpanel I just created through the NETBEANS IDE, and by writing some code I easily integrate it with the original code.

2. Similarly, If you are building a Maven or Gradle Java project, you just need to repeat the same process but choosing a different option when you create a project on the NETBEANS IDE :

For example for a Maven project :

enter image description here

For example for a Gradle project:

enter image description here

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

79723254

Date: 2025-08-02 09:41:43
Score: 2
Natty:
Report link

Dim myName As String

Dim outputstring() As String, OutArray() As Variant

Dim VarObj As Variant, K As Integer

myName = "Gur, singh, Mac, Math, Eng"

List1.Clear

outputstring = Split(myName, ",")

For K = LBound(outputstring) To UBound(outputstring)

List1.AddItem Trim(outputstring(K))

Next K

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

79723253

Date: 2025-08-02 09:40:43
Score: 1.5
Natty:
Report link

This is for DITA XML content. The specification states the element with the conref attribute gets replaced completely with the target element, so its current text is fully ignored in the published output. You can probably place the symbols before the data element.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Radu Coravu

79723247

Date: 2025-08-02 09:30:40
Score: 1
Natty:
Report link

I believe the problem to be propagation of changes for Private DNS.

Give it 15-20 minutes to stabilise and retry.

I encountered this error after a destroy and (impatient) redeploy. I am using private endpoints, and running terraform from inside the vnet.

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

79723244

Date: 2025-08-02 09:25:39
Score: 0.5
Natty:
Report link

A process can be terminated in ways other than signals, normal exits (exit()), or unhandled exceptions. Here are some additional mechanisms:

✅ 1. Killed by the Kernel (OOM Killer)

If the system runs out of memory, the Out-Of-Memory (OOM) killer may forcibly terminate a process: No signal from user space is sent manually.
The process is terminated by the kernel to free up memory.
💡 Detectable in logs via dmesg or system logs.

✅ 2. Killed by Parent Process Using ptrace or process_vm_writev

A parent or debugger can manipulate or terminate a child using ptrace:

Inject code or overwrite memory.
Can simulate a crash or exit by corrupting the instruction pointer.

✅ 3. Segmentation Fault or Illegal Instruction

If a process accesses invalid memory or executes an illegal instruction, it will terminate.
Although this results in a signal (e.g., SIGSEGV, SIGILL), it’s not from an external source—it's due to internal program behavior.
✅ 4. abort() or assert() Failures

abort() triggers abnormal termination and generates a core dump.
Common in libraries when internal errors are unrecoverable.
✅ 5. Kernel Panic or Hardware Failure

A system crash, hardware fault (e.g., CPU, memory failure), or disk corruption could kill processes without going through the usual exit routines.
✅ 6. Container or CGroup Restrictions

If a process exceeds CPU, memory, or I/O quotas in a container or control group, it may be killed.
These terminations are managed by the kernel or container runtime (e.g., Docker, Kubernetes).
✅ 7. Filesystem or I/O Errors

A blocked I/O operation, unmounted filesystem, or disk error might cause a process to be forcibly terminated by the kernel.
✅ 8. Dynamic Library Failures (e.g., dlopen/dlsym)

Failure in shared library loading or mislinked symbols during dynamic loading might crash the process.
✅ 9. Overwriting the Stack or Heap (Undefined Behavior)

A bug like buffer overflow may corrupt memory, leading to an unpredictable crash without an explicit signal or exit.
✅ 10. System Calls Returning Irrecoverable Errors

Some system calls (e.g., execve, fork) may result in fatal errors if misused or constrained by resource limits.

Conclusion:

Even when not terminated by an explicit exit(), signal, or exception, a process can still be terminated via:

  1. Kernel interventions

  2. Resource limits

  3. Internal bugs or memory corruption

  4. Debugger or parent manipulation

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

79723231

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

had same problem, Its happening because of unavailability of the python version
Here that worked for me.

  1. create a virtual env using python 3.10

  2. search for this file on Google "fasttext‑0.9.2‑cp310‑cp310‑win_amd64.whl"

  3. pip install <location to the wheel file>

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

79723217

Date: 2025-08-02 08:38:29
Score: 0.5
Natty:
Report link

I fixed it by creating a separate keychain for building the app, imported the developer certificate into it. In my script that i run remotely, i unlock this keychain and voila the build now runs just like it does when i run it from the mac directly

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Bas Velden

79723214

Date: 2025-08-02 08:32:26
Score: 6
Natty: 5
Report link

this article solved my problem that the two way in the artical

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: huynhanh48

79723209

Date: 2025-08-02 08:18:24
Score: 3
Natty:
Report link

The issue is that iOS development has a fundamental limitation: you cannot build and code-sign iOS apps from Windows, even remotely.

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

79723208

Date: 2025-08-02 08:17:23
Score: 2
Natty:
Report link

https://www.npmjs.com/package/react-native-dream-toast
A beautiful, customizable, and lightweight toast notification system for React Native. Supports theming, queueing, global config, icons, and full TypeScript support.
Use this for better an beautiful toasts

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

79723206

Date: 2025-08-02 08:15:22
Score: 1
Natty:
Report link

You can not directly run a .exe as administrator via shell() in R because it doesn't elevate privileges.

Use PowerShell to prompt UAC

shell('powershell Start-Process "C:\\Path\\To\\your.exe" -Verb RunAs')

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

79723189

Date: 2025-08-02 07:42:15
Score: 1.5
Natty:
Report link

I had the same issue, Though in my case i had earlier initialised a git repository but after a while it started behaving that way(Compressing for hours), re initializing git solved the issue but ended up loosing my track

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

79723188

Date: 2025-08-02 07:41:15
Score: 0.5
Natty:
Report link

Use

            PreparedStatement.RETURN_GENERATED_KEYS
            PreparedStatement.getGeneratedKeys();

may help get primary keys after executeBatch(), return whole data is not supposed.

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

79723180

Date: 2025-08-02 07:12:09
Score: 4
Natty:
Report link

to just www.Example.com.I have changed my internal links

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

79723177

Date: 2025-08-02 07:00:06
Score: 3
Natty:
Report link

None of the proposed solution work. It keeps creating a subfolder, or even worth, a 1Kb archive for each folders

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

79723176

Date: 2025-08-02 06:55:05
Score: 4
Natty:
Report link

the javascript looks fine but the html doesn't look right for a javascript function call.

also the purpose of functions is to write once and call many times, so using

<body onload="printBtn();"> defeats that purpose; so how do we call it again???
Reasons:
  • Blacklisted phrase (1): ???
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: cloudmichael

79723174

Date: 2025-08-02 06:52:04
Score: 1.5
Natty:
Report link

This is an old question but I have not seen an answer anywhere that does not use Xarray (which is overkill for this simple example). Since I recently made such a function using pandas and base Python alone, I thought I would share it here. It's pretty lengthy to handle all foreseeable cases, but please let me know if you find an edge case that Claude Code and I haven't anticipated.

import pandas as pd
from typing import Union, Optional
import calendar


def custom_year_averages(
    data: pd.Series,
    start_month: int,
    end_month: int,
    years: Optional[Union[int, list, range]] = None
) -> pd.Series:
    """
    Compute weighted averages over custom year periods that may straddle calendar years.
    
    Parameters
    ----------
    data : pd.Series
        Time series data with DatetimeIndex. Can be daily or monthly frequency.
    start_month : int
        Starting month of the custom year (1-12).
    end_month : int
        Ending month of the custom year (1-12).
    years : int, list, range, or None
        Year(s) for which to compute averages. If None, computes for all available years.
        For straddling periods (e.g., Apr-Mar), year refers to the year of the end month.
    
    Returns
    -------
    pd.Series
        Series index by year, with weighted averages as values.
        
    Examples
    --------
    .. jupyter-execute::
    
        import pandas as pd
        import numpy as np
        
        # Create sample monthly data
        dates = pd.date_range('2020-01-01', '2023-12-31', freq='M')
        values = np.arange(len(dates))  # Sequential values for clarity
        ts = pd.Series(values, index=dates, name='monthly_values')
        
        # Example 1: Single year (int)
        # Compute Jan-Mar average for 2021 only
        avg_single = custom_year_averages(ts, 1, 3, years=2021)
        print("Single year (2021):")
        print(avg_single)
        print()
        
        # Example 2: List of specific years
        # Compute Apr-Mar averages for selected years
        avg_list = custom_year_averages(ts, 4, 3, years=[2021, 2023])
        print("Specific years [2021, 2023]:")
        print(avg_list)
        print()
        
        # Example 3: Range of years
        # Compute Oct-Sep averages for consecutive years
        avg_range = custom_year_averages(ts, 10, 9, years=range(2021, 2024))
        print("Range of years (2021-2023):")
        print(avg_range)
        print()
        
        # Example 4: All available years (None - default)
        # Compute Jan-Dec averages for all years in data
        avg_all = custom_year_averages(ts, 1, 12, years=None)
        print("All available years (None):")
        print(avg_all)
        print()
        
        # Example 5: Straddling periods with different year specifications
        # Apr-Mar periods: year refers to the March year
        avg_straddle = custom_year_averages(ts, 4, 3, years=range(2021, 2024))
        print("Straddling periods (Apr-Mar), years 2021-2023:")
        print(avg_straddle)
    
    .. jupyter-execute::
    
        # Daily data example with uneven spacing
        daily_dates = pd.to_datetime([
            '2021-01-01', '2021-01-05', '2021-01-20',
            '2021-02-01', '2021-02-15', '2021-02-28',
            '2021-03-05', '2021-03-25', '2021-03-31'
        ])
        daily_values = [10, 15, 20, 25, 30, 35, 40, 45, 50]
        daily_ts = pd.Series(daily_values, index=daily_dates, name='daily_data')
        
        # Compute weighted average (accounts for uneven spacing)
        daily_avg = custom_year_averages(daily_ts, 1, 3, years=2021)
        print("Daily data with uneven spacing (Jan-Mar 2021):")
        print(f"Weighted average: {daily_avg.iloc[0]:.2f}")
        print(f"Simple mean: {daily_ts.mean():.2f}")
        print("(Note: weighted average accounts for time intervals between observations)")
    """
    if not isinstance(data.index, pd.DatetimeIndex):
        raise ValueError("Data must have a DatetimeIndex")
    
    if not (1 <= start_month <= 12 and 1 <= end_month <= 12):
        raise ValueError("Months must be between 1 and 12")
    
    # Determine if the period straddles calendar years
    straddles_year = start_month > end_month
    
    # Get available years from data
    data_years = sorted(data.index.year.unique())
    
    if years is None:
        if straddles_year:
            # For straddling periods, we need data from both years
            years = [y for y in data_years if y > min(data_years)]
        else:
            years = data_years
    elif isinstance(years, int):
        years = [years]
    
    results = {}
    
    for year in years:
        if straddles_year:
            # Period spans two calendar years (e.g., Apr 2020 to Mar 2021)
            start_date = pd.Timestamp(year=year-1, month=start_month, day=1)
            end_date = pd.Timestamp(year=year, month=end_month, day=calendar.monthrange(year, end_month)[1])
        else:
            # Period within single calendar year
            start_date = pd.Timestamp(year=year, month=start_month, day=1)
            end_date = pd.Timestamp(year=year, month=end_month, day=calendar.monthrange(year, end_month)[1])
        
        # Filter data for this period
        mask = (data.index >= start_date) & (data.index <= end_date)
        period_data = data[mask]
        
        if len(period_data) == 0:
            continue
            
        # Calculate weighted average
        weighted_avg = _calculate_weighted_average(period_data, start_date, end_date)
        
        # Use the ending year as the index (standard for fiscal years)
        results[year] = weighted_avg
    
    # Return results only for years that have data
    return pd.Series(list(results.values()), index=list(results.keys()), name=data.name or 'weighted_average')


def _calculate_weighted_average(
    data: pd.Series, 
    period_start: pd.Timestamp, 
    period_end: pd.Timestamp
) -> float:
    """
    Calculate weighted average where weights are based on time intervals.
    
    For monthly data, each month gets equal weight regardless of days.
    For other frequencies, weights are based on time intervals.
    """
    if len(data) == 0:
        return np.nan
    
    if len(data) == 1:
        return data.iloc[0]
    
    # Sort data by index
    data = data.sort_index()
    timestamps = data.index.to_series()
    
    # Check if this looks like monthly data (all timestamps are month-ends)
    is_monthly = all(
        ts.day == calendar.monthrange(ts.year, ts.month)[1] 
        for ts in timestamps
    )
    
    if is_monthly:
        # For monthly data, give each month equal weight
        return data.mean()
    
    # For non-monthly data, use time-interval weighting
    intervals = []
    
    for i, ts in enumerate(timestamps):
        if i == 0:
            # First observation: from period start to midpoint with next
            if len(timestamps) > 1:
                interval_end = ts + (timestamps.iloc[i+1] - ts) / 2
            else:
                interval_end = period_end
            interval_start = period_start
        elif i == len(timestamps) - 1:
            # Last observation: from midpoint with previous to period end
            interval_start = timestamps.iloc[i-1] + (ts - timestamps.iloc[i-1]) / 2
            interval_end = period_end
        else:
            # Middle observations: from midpoint with previous to midpoint with next
            interval_start = timestamps.iloc[i-1] + (ts - timestamps.iloc[i-1]) / 2
            interval_end = ts + (timestamps.iloc[i+1] - ts) / 2
        
        # Ensure intervals don't extend beyond the period
        interval_start = max(interval_start, period_start)
        interval_end = min(interval_end, period_end)
        
        interval_duration = (interval_end - interval_start).total_seconds()
        intervals.append(max(interval_duration, 0))  # Ensure non-negative
    
    weights = np.array(intervals)
    
    # Handle case where all weights are zero
    if weights.sum() == 0:
        return data.mean()
    
    # Calculate weighted average
    weighted_sum = (data.values * weights).sum()
    total_weight = weights.sum()
    
    return weighted_sum / total_weight
Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: CommonClimate

79723172

Date: 2025-08-02 06:50:03
Score: 0.5
Natty:
Report link

Consistent Hashing

Sticky Sessions

Sticky sessions can use consistent hashing as a strategy, but they don’t have to. Typically, sticky sessions use a map or hashMap of session ID -> worker.

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

79723171

Date: 2025-08-02 06:48:03
Score: 1
Natty:
Report link

(Sorry if this post is useless, but in case it does help somebody I wanted to post.)

The answer put me on the right path. I wanted to resize the RectTransform of an image so that the size of the RT was close to the size of the rendered image (so only the image area was noticed by OnPointerClick). This StackOverflow post helped me size the width of the RT to the image, and I used a cross-multiply and divide to change the height when needed.

//getting the image
Image img = selectionRectTran.img;

//the initial/base size of the RT, resetting to it here
img.GetComponent<RectTransform>().sizeDelta = initialWidthHeightForSelectionImg;

float width = 0f;
float height = initialWidthHeightForSelectionImg.y; //default height


width = RectTranUtils.GetDesiredWidth(img); //from https://stackoverflow.com/questions/65385248/unity-get-the-actual-rendered-sprite-height-in-image-ui
width = Mathf.Clamp(width, 0f, img.GetComponent<RectTransform>().sizeDelta.x);

Debug.Log($"width diff: {Mathf.Abs(width - initialWidthHeightForSelectionImg.x)}");

//if the image is as wide as possible (ie, basically 0 diff between width between width and the default width)
//and the sprite - in pixels - is wider than it is tall, so there's some unwanted bounding box space on top and below the image
if (Mathf.Abs(width - initialWidthHeightForSelectionImg.x) < GameManager.TinyAmount 
    && img.sprite.texture.width > img.sprite.texture.height)
{
    //h = width * height of image in pixels / width of image in pixels
    height = width * img.sprite.texture.height / img.sprite.texture.width;
}

img.GetComponent<RectTransform>().sizeDelta = new Vector2(width, height);
        
Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Smerf

79723170

Date: 2025-08-02 06:46:02
Score: 2
Natty:
Report link

Great video solution , I still facing some problem
I have changed my splash-icon.png in ./assets/images/splash-icon.png
(deleted the default splash screen of react-native with expo) but still my app is showing the default splash screen,

i have cleared the cache : npx expo start -c
still the problem persist

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

79723168

Date: 2025-08-02 06:45:02
Score: 1
Natty:
Report link

I resolved the issue by moving the controller class declaration to the top of the controller file. It seems the previous structure was affecting how the framework recognized the controller. After the change, everything started working as expected.

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

79723154

Date: 2025-08-02 06:01:53
Score: 1
Natty:
Report link

As the error suggests, using the + operator for concatenation is only valid if both sides are strings. Python uses string formatting instead of concatenation when mixing strings and variables. In modern Python (3.6+), your example can be simplified using f-strings:

name = "Alice"
age = 25
message = f"My name is {name} and I am {age} years old."
print(message)

This format is easier to read, and avoids the TypeError. Prior to Python 3.6, you would have needed to use the % operator and sprintf-style formatting:

name = "Alice"
age = 25
message = "My name is %s and I am %d years old." % (name, age)
print(message)

In addition to the official Python docs linked above, there is also a good tutorial at Real Python that discusses these techniques in more detail.

Reasons:
  • Blacklisted phrase (1.5): a good tutorial
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Math Rules

79723152

Date: 2025-08-02 06:01:53
Score: 0.5
Natty:
Report link

✅ 1. Use socket.reconnectStrategy

In the modern node‑redis client (v4 and later), you don’t use the old retry_strategy option. Instead, you configure reconnection using the socket.reconnectStrategy option when creating a client:

js

CopyEdit

import{ createClient } from 'redis'; const client = createClient({ socket: { reconnectStrategy: (retries, cause) => { if (retries >= MAX_ATTEMPTS) { return new Error('Too many reconnect attempts'); } // Return a delay in ms before next retry return calculateDelay(retries); } } }); client.on('error', err => console.error('Redis error', err)); await client.connect();

This gives full control—you can stop after a fixed number or vary delay. npm+12Redis+12Stack Overflow+12Stack OverflowUNPKG+4Redis Documentation+4Snyk+4


📦 Legacy support: node-redis-retry-strategy package

If you're using legacy clients expecting retry_strategy, or you need a drop‑in function:

Example:

js

CopyEdit

constredis = require('redis'); const retryStrategy = require('node-redis-retry-strategy'); const client = redis.createClient({ host: '127.0.0.1', port: 6379, retry_strategy: retryStrategy({ number_of_retry_attempts: 7, delay_of_retry_attempts: 1000, wait_time: 600000 }) });

This is helpful if you’re migrating older code or using compatibility layers. UNPKGSnyk


🧠 Why migrations matter: how defaults changed


✅ Summary Table

ScenarioHow to set retry countExample behaviorNew node‑redis (v4+)Use socket.reconnectStrategyYour custom function handles limits and delayLegacy code expecting retry_strategyUse node-redis-retry-strategy packageConfigure with number_of_retry_attempts etc.


A friendly example of humanized explanation:

Imagine Redis connection drops. You want it to try reconnecting a few times—say 5 attempts—with increasing wait times. In modern node‑redis, you hand it a little function:

js

CopyEdit

reconnectStrategy: (retries, err) => { if (retries >= 5) return new Error('Reached retry limit'); return retries * 500 + Math.random() * 100; }

That way, if Redis goes offline, your app will give it up after the 5th try. Before then, it’s patiently trying again with a touch of randomness (jitter).

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vyvymangaa

79723147

Date: 2025-08-02 05:51:51
Score: 2
Natty:
Report link

from docx2pdf import convert

# Convert the Word document to PDF

pdf_path = "/mnt/data/Theoretical_and_Conceptual_Framework_Formatted.pdf"

convert("/mnt/data/Theoretical_and_Conceptual_Framework_Formatted.docx", pdf_path)

pdf_path

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

79723144

Date: 2025-08-02 05:44:49
Score: 1
Natty:
Report link

Top 5 đồ dùng học tập không thể thiếu cho học sinh mỗi năm học mới

Mỗi dịp năm học mới đến, việc chuẩn bị đầy đủ đồ dùng học tập là điều vô cùng quan trọng để học sinh bước vào một hành trình học tập hiệu quả và tự tin. Dưới đây là danh sách những món đồ học sinh nào cũng nên có trong cặp sách của mình.

1. Bút viết – Công cụ không thể thiếu

Bút bi, bút máy, bút chì là những vật dụng quen thuộc trong mỗi giờ học. Việc chọn bút phù hợp với tay cầm, mực đều và không lem sẽ giúp nét chữ đẹp hơn, viết lâu không bị mỏi tay. Những thương hiệu như Thiên Long, Pentel hay Deli luôn được phụ huynh tin tưởng lựa chọn.

2. Tập vở – Bạn đồng hành mỗi ngày

Tập vở nên được chọn theo từng môn học, có dòng kẻ rõ ràng, giấy trắng, dày và không thấm mực. Việc phân loại vở theo từng môn giúp học sinh ghi chép gọn gàng và dễ dàng ôn tập khi cần.

3. Thước, compa và bộ dụng cụ học toán

Đối với học sinh cấp 2, cấp 3, bộ thước kẻ, eke, compa là những đồ dùng học tập cần thiết. Các sản phẩm nên có độ chính xác cao, làm từ nhựa tốt, không dễ gãy và không có cạnh sắc nhọn.

4. Balo và hộp bút

Một chiếc balo nhẹ, chống gù, nhiều ngăn sẽ giúp các em mang theo đầy đủ sách vở mà vẫn bảo vệ cột sống tốt. Hộp bút giúp sắp xếp dụng cụ viết một cách gọn gàng, tránh thất lạc.

5. Đồ dùng sáng tạo: Màu vẽ, giấy thủ công

Không chỉ phục vụ học tập, những món như màu nước, bút highlight, giấy màu… còn giúp học sinh phát triển tư duy sáng tạo, đặc biệt quan trọng ở bậc tiểu học và mầm non.


🎒 Mua đồ dùng học tập chất lượng ở đâu?

Hiện nay, các bậc phụ huynh có thể dễ dàng mua đồ dùng học tập học sinh chính hãng, an toàn và giá cả hợp lý tại Tên website của bạn – nơi cung cấp đầy đủ các sản phẩm từ bút viết, vở, balo, hộp bút đến đồ dùng mỹ thuật. Các sản phẩm đều được chọn lọc kỹ càng, phù hợp với từng độ tuổi và cấp học.


Kết luận

Chuẩn bị đầy đủ đồ dùng học tập không chỉ giúp học sinh học tốt mà còn rèn luyện tính ngăn nắp, chủ động. Đầu tư vào những món đồ học tập chất lượng là cách thiết thực để đồng hành cùng con trên chặng đường học vấn.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tùng Phung

79723142

Date: 2025-08-02 05:43:49
Score: 1
Natty:
Report link

1. Check Your Redirect URIEnsure the redirect URI you specify in your code exactly matches (character by character) the one registered in your Instagram App settings.

The URI must use https (not http). Instagram does not allow non-HTTPS redirect URIs for security reasons.

Avoid using localhost unless it’s explicitly allowed in your app settings.

2. Validate Instagram App Configuration

Make sure you are using the correct Instagram App ID, not a Facebook App ID.

Double-check your Instagram Developer Dashboard that:

The redirect URI is whitelisted under “Valid OAuth Redirect URIs”.

Your app is in “Live” or “Development” mode as needed and the test users are assigned if in “Development”.

3. Initiate the OAuth Flow Correctly

When the user clicks “Login with Instagram”, redirect them to the Instagram OAuth endpoint (example URL structure):

[

https://api.instagram.com/oauth/authorize

?client_id=YOUR_APP_ID

&redirect_uri=YOUR_REGISTERED_URL

&scope=user_profile,user_media

&response_type=code

]

Use window.location.href = authUrl; in your front-end code to perform the redirect.

4. Handling the Redirect

After the user logs in on Instagram and authorizes, Instagram will redirect to your URI with a code parameter:

[ YOUR_REGISTERED_URL?code=AUTHORIZATION_CODE ]

Capture this authorization code from the URL.

5. Exchange Code for Access Token

In your backend, POST to https://api.instagram.com/oauth/access_token including:

client_id

client_secret

grant_type (set to authorization_code)

redirect_uri (same one)

codee (the one from Instagram)

Make sure the backend endpoint is reachable and working properly.

6. Common Pitfalls

Invalid redirect_uri: This is the most frequent error. Triple-check the matching and HTTPS requirement.

Wrong environment: If the app is not Live, only registered test users can log in.

Cache/cookies: Sometimes, browser caching or cookies can cause old values (clear them if issues persist).

App Secret/PKCE: Instagram Basic Display does NOT support PKCE, and requires you to send the app secret in the token request.

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

79723136

Date: 2025-08-02 05:33:47
Score: 2
Natty:
Report link

Get-MailboxStatistics -Database 'Mailbox Database 123' |

Where-Object {$_.TotalItemSize.Value.ToMB() -le 5} |

Sort-Object TotalItemSize -Descending |

Select-Object DisplayName,TotalItemSize

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

79723134

Date: 2025-08-02 05:32:46
Score: 1
Natty:
Report link

You don’t need a domain, but having one gives you credibility and makes registration easier.

technically you can register an app for OAuth2 with most providers like Google without owning a custom domain. But it's often smoother with a domain, because:

So, you can go domain-free... it just means you might have to live with a few restrictions or workarounds.

Will app registration work for others using your app?

It depends on the provider and how you register:

Apps like Thunderbird do this: they register themselves as a trusted application with providers like Google, then walk users through OAuth login. Each user gets their own token, and the app doesn’t need to know your password.

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

79723124

Date: 2025-08-02 04:51:38
Score: 1.5
Natty:
Report link

In your gradle.properties, add this:

android.aapt2Version=8.6.1-11315950
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jithesh Kumar

79723121

Date: 2025-08-02 04:39:36
Score: 2
Natty:
Report link

Turns out I forgot to import hdf5plugin in the separate ipynb that I used to read in the h5 file. It works now.

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

79723120

Date: 2025-08-02 04:37:35
Score: 2
Natty:
Report link

You use libx264rgb, however mileage may vary depending on how you plan to play it (for instance if I watch it in mpv it looks correct, but in chromium the colors looked very much wrong). libaom-av1, libvpx-vp9 and libx265 also support this via the gbrp pixel format.

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

79723112

Date: 2025-08-02 04:06:29
Score: 4
Natty:
Report link

ok, apparently this is just a bug

https://github.com/golang/go/issues/71497?issue=golang%7Cgo%7C74835

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Dave Butler

79723080

Date: 2025-08-02 02:43:11
Score: 0.5
Natty:
Report link

You can add a named range for each section, and use the Named ranges sidebar as a clickable jump pad.

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

79723072

Date: 2025-08-02 02:09:05
Score: 1
Natty:
Report link

So, this issue will appear any time your package.json's dependencies field is in an invalid state. Mordy's comment is one way to get this to happen, Raja Uzair Zia's answer is another way, and one more is if external tooling directly edits the package.json file. (Expo is especially bad about this. If you try to npx expo install any invalid package, it'll happily break your package.json trying to install it.)

A fix is to go into your package.json and ensure that all packages A) exist on npm with the exact name seen in your package.json, and B) have valid names and version numbers.

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

79723054

Date: 2025-08-02 01:08:54
Score: 2.5
Natty:
Report link

This usually means there's a naming conflict in your environment most likely you have a file or folder named google.py or a directory named google/ in your current working directory or Python path which conflicts with the actual google package

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

79723052

Date: 2025-08-02 01:02:52
Score: 3
Natty:
Report link

I just realized that I was totally mistaken, because Talend Global Variables are Global just wihin the Talend job where they are set, not within the Talend Project. Daaaaaahhh But I think it still can be done with the help of the repository context groups variables.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: António Manuel Paraíso Pinto

79723051

Date: 2025-08-02 00:58:51
Score: 2
Natty:
Report link

I solved this problem for my employer who is heavy into protobuf and wanted to use it for file formats.

https://medium.com/@unclepaul84/efficiently-reading-and-writing-very-large-protobuf-files-local-disk-and-s3-approaches-a289c8855606

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Whitelisted phrase (-2): I solved
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
Posted by: unclepaul84

79723047

Date: 2025-08-02 00:49:49
Score: 2.5
Natty:
Report link

I fix the problem by adding a line to index.css

@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));

if you want to read more: how-i-fixed-tailwind-css-v4-dark-mode-not-working-in-a-vite-react-project

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

79723040

Date: 2025-08-02 00:05:41
Score: 2
Natty:
Report link

Made a PDF Filler that works with Claude Desktop, Cursor, or any MCP, and open sourced it on Github here: https://github.com/silverstein/pdf-filler-simple/
Claude featured it as one of its first desktop extensions, and the github repo has some additional features.

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

79723039

Date: 2025-08-02 00:03:41
Score: 0.5
Natty:
Report link

Login as others have said. This command works fine for me.

podman push localhost/<image_name>:<tag> docker.io/<username>/<image_name>:<tag>

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

79723032

Date: 2025-08-01 23:49:38
Score: 1.5
Natty:
Report link

Yes, you will effectively need a topic per aggregation (if you have more than one partition). How you do this setup, is up to you and there is different tradeoffs as you mentioned already. If you will be able to get ordering is questionable for any solution I can think of?

If you are comfortable with switching from .NET to Java (using Kafka Streams), it might be the option with least manual toil. -- When Kafka Streams repartitions the input data using different aggregation-keys, it would also use multiple (shuffle/repartition) topics, and would introduce unorder. But you don't need to touch your upstream application which writes into the input topic, and Kafka Streams does a lot of heavy lifting for you.

You could also stick with .NET, and mimic what Kafka Streams does, but it of course much more work. And the un-order when writing into the aggregation topics is the same problem.

But frankly, I am not sure if your business logic really requires strict ordering, so the above two options might actually just work for you?

If ordering is really crucial, it might be possible to improve it, by actually having one input topic per aggregation. But it seems to be difficult to guarantee that the upstream application is writing into all input topics in the same order? And if possible to achieve this, it of course requires changes to your upstream application.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solution I can think of?
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Matthias J. Sax

79723028

Date: 2025-08-01 23:43:36
Score: 3.5
Natty:
Report link

Yep, there is typer-shell now: https://github.com/FergusFettes/typer-shell

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

79723024

Date: 2025-08-01 23:29:34
Score: 1.5
Natty:
Report link

Use Unique Bundle Identifiers per Scheme

Modify the Info.plist entry for CFBundleIdentifier to use a variable (e.g.(BUNDLE_IDENTIFIER)):

Set a Custom BUNDLE_IDENTIFIER in Build Settings

Go to your Build Configurations (or each scheme's associated configuration like Debug, Release, Mock) and add different Scheme and BUNDLE_IDENTIFIER

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

79723010

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

If you can structure your code so that the classes which contain this file system code can take a construct-only property saying which path to access, which defaults to the hardcoded one, then you can instantiate those classes with a test directory when running the code in a unit test.

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

79723009

Date: 2025-08-01 22:38:23
Score: 0.5
Natty:
Report link

You’re running into a classic SPA problem—history navigation (navigate(-n)) in React Router is async, so if you immediately try to do a “replace” after going back, it’ll probably happen too soon and mess up your navigation stack.

I’ve hit this myself, and yeah, stuff like timeouts and session storage might seem to work, but they’re hacky and break easily, especially in production or different browsers.


Here’s what’s actually reliable:

Let React Router’s location tell you when the navigation is done, then do your replace.
This way you don’t need to guess, wait, or stash state anywhere weird.

Drop-in Hook (for React Router v6/v7):

import { useNavigate, useLocation } from "react-router-dom";
import { useState, useEffect } from "react";

// Usage: const backAndReplace = useAtomicBackReplace();
//        backAndReplace(-3, "/new-route");
function useAtomicBackReplace() {
  const navigate = useNavigate();
  const location = useLocation();
  const [pending, setPending] = useState(null);

  function backAndReplace(steps, to) {
    setPending({ steps, to, from: location.pathname });
    navigate(steps);
  }

  useEffect(() => {
    if (pending && location.pathname !== pending.from) {
      navigate(pending.to, { replace: true });
      setPending(null);
    }
  }, [location, pending, navigate]);

  return backAndReplace;
}

How do you use it?
Just call backAndReplace(-3, "/your-new-route") wherever you’d normally want to do the navigation+replace.


Why bother with this instead of a setTimeout?

Because:

Browsers and environments differ in timing, so setTimeouts can fail randomly.

Session storage is overkill for something that’s just local UI navigation.

This “listens” for the navigation to finish, so you don’t need to guess.

Real-world usage:



const backAndReplace = useAtomicBackReplace();
// Example: Go back 3 steps, then replace that entry
backAndReplace(-3, "/new-route");
Reasons:
  • Blacklisted phrase (1): How do you
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Saravanan Nandhan

79723006

Date: 2025-08-01 22:26:20
Score: 3
Natty:
Report link

you need compile the project first to work outyou need compile the project first to work out

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

79722996

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

Yes, user-uploaded SVG files can indeed pose an XSS (Cross-Site Scripting) risk because SVG files can include executable JavaScript code. While you could sanitize SVG files using regular expression (regex) functions, this approach can be error-prone and might not catch all vulnerabilities.

The recommended best practice is to use specialized and up-to-date sanitization libraries:

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

79722994

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

TL,DR; It has become impossible. Avoid to cause any circumstances where IntelliJ IDEA wants to ask for more refactoring in a modal dialog.

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

79722977

Date: 2025-08-01 21:43:09
Score: 0.5
Natty:
Report link

Assuming it is 2 dimensional:

np.random.default_rng().permuted(Xtrain, axis=1)

np.random.default_rng().permuted(np.arange(9).reshape((3,3)), axis=1)
Out[6]: 
array([[0, 2, 1],
       [3, 4, 5],
       [8, 6, 7]])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: omsrisagar

79722974

Date: 2025-08-01 21:39:08
Score: 1
Natty:
Report link

I use gclip and pclip from:

https://sourceforge.net/projects/unxutils/

Windows programs. Put them in a directory in your path and:

command | gclip # to load clipboard

pclip | command # to access clipboard

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

79722967

Date: 2025-08-01 21:30:06
Score: 2.5
Natty:
Report link

I think cygwin already does that. When I run my "Cygwin64 Terminal" that brings up mintty the path already has the Windows path in it.

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

79722952

Date: 2025-08-01 21:10:02
Score: 1.5
Natty:
Report link

1. Check pubspec.yaml

  assets:
    - assets/videos/disclaimer.mp4

make sure you have the correct path for your video player inside the assets folder.

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

79722951

Date: 2025-08-01 21:06:01
Score: 0.5
Natty:
Report link

Trouble shooting the infinite loop

  1. Configuration files have been addressed.

  2. The fact that an infinite loop can cause this issue has also been addressed.

  3. Increasing access to memory when there's a code error causing the consumption will result in disruptions for other users, if you're hosted on a shared server.

Here's a potential cause for your infinite loop, especially if you're using object oriented PHP.

Say you have two classes, one extends the other.

In your __construct of your child class, you may accidentally type something like this:

public function \__construct($myInitalizingInput){  
    self::\__construct($myInitalizingInput)  
}  

Notice the self:: ?

It should be parent::

Entering self on accident will result in fork bomb-like conditions.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mornig Star

79722949

Date: 2025-08-01 21:04:58
Score: 13.5
Natty: 6
Report link

Do you find any solution? i have the same question, since the max scene model limitation, i need to know if is posible to save and load the models

Reasons:
  • Blacklisted phrase (1): i have the same question
  • Blacklisted phrase (0.5): i need
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2.5): Do you find any
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): i have the same question
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Daniel Gómez

79722935

Date: 2025-08-01 20:39:53
Score: 5.5
Natty: 6.5
Report link

What about be the best trigger to use in this case? Purchase? or as soon as the hashed email OR phone are available?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: BackY

79722934

Date: 2025-08-01 20:38:52
Score: 1
Natty:
Report link

While SaaS providers’ private clouds may look similar to internal IT infrastructure at a high level (i.e., both are private, dedicated environments), they are fundamentally different in design philosophy, operational maturity, and customer-facing reliability. SaaS private clouds are engineered with cloud-native principles, extreme resilience, and service-level guarantees — far beyond what traditional internal IT usually provides.

So yes, both are "private" in terms of access, but SaaS providers' private clouds are purpose-built to serve external customers at scale, with enterprise-grade resilience and automation, unlike traditional internal IT.

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

79722923

Date: 2025-08-01 20:21:49
Score: 1.5
Natty:
Report link

For SageMath 'threejs' views of Graphics objects (as of mid-2025), the output cell is enclosed in an <iframe> element which seems to have a hard-coded height attribute. None of the methods previously posted here to increase the height worked for me for such output cells. So here are two workarounds for this fixed height, both of which did work in my case:

  1. Call the .show() method for the Graphics object that is using the 'threejs' viewer with the online=True option. Then in the resulting output cell, click the small circle-i info icon in the bottom right, and select the "Save as HTML" option. Save the resulting HTML to a local file, and then open that directly in a new window/tab in your browser via a file:///... URL. The graphics will re-render in that new window/tab, taking up your full browser window.

  2. Or, if you prefer not to open a separate window/mess with file:///... URLs, you can instead open the Developer Tools for your browser (e.g., in Firefox under the "More Tools" submenu of the main menu), and then select the (DOM) Inspector for your Developer Tools. Navigate to the <iframe> element of the graphics output cell in question (e.g., using the click-to-select button, and/or by moving within the tree until that element is selected). Then add a height: 100vh attribute to the element with the live CSS editor for the element (for example in the Firefox Developer Tools, this is just a text box to the right of the DOM display with the header "element {" that you can type directly into). Note this method only persists until the next time you re-run that cell.

Of course, I'd prefer some way of just setting that threejs viewer iframe height within the Sage Jupyter notebook itself -- if anybody knows of one, please post.

Reasons:
  • Blacklisted phrase (1): anybody know
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (2.5): please post
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Glen Whitney

79722922

Date: 2025-08-01 20:19:48
Score: 1
Natty:
Report link

Sometimes the FastReport folks reintroduce a bug that makes PDFs huge when you set AllowHTMLTags to true in order to use HTML tags in your TfrxMemoView objects, such as <b></b> for bold, or <i></i> for italics.

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

79722915

Date: 2025-08-01 20:05:45
Score: 1
Natty:
Report link

could someone please solve this issue. I am literally wasting hours on this issue and unable to fix it.

here is what i know about this problem. it's very weird stay with me for a second. so if I add the supa base related dependencies and then sync my project and run my code, it still runs. but if I add the use of those dependencies as in create a client. it stops. here is the crazy part. if I keep the imports and remove the code, the error persists and finally when I remove the import the error doesn't go away so now I have to remove the dependencies sync the project again, and then the app runs again. i don't even have the slightest clue about how to even begin solving this problem. it just simply says source must no be null. superbase << supanothelpfull

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

79722913

Date: 2025-08-01 20:01:44
Score: 2.5
Natty:
Report link

Found a solution using regex filtering: $.store.book[?(@.isbn =~ //)]

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Dmitry E.

79722907

Date: 2025-08-01 19:52:43
Score: 2
Natty:
Report link

You're running into a limitation of the free FPDI parser, which can't handle modern PDF compression (e.g., PDFs using object streams or compressed xref tables). The easiest and PHP-native way to handle this without relying on exec() is to use libmergepdf with the TcpdiDriver.

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

79722900

Date: 2025-08-01 19:35:39
Score: 0.5
Natty:
Report link

You can use multiple comma-delimited child selectors:

$.commits[*]['added', 'removed'][*]
Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tomas Petricek

79722893

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

Amazing solution, I used a simple variation of this solution like below:

- uses: actions/github-script@v6
  id: meta
  env:
    input_ctx: ${{ toJSON(inputs) }}
  with:
    script: |
        // Get input args
        const inputs = process.env?.input_ctx ?? {};
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: PULKIT KAPOOR

79722892

Date: 2025-08-01 19:25:36
Score: 5
Natty:
Report link

I am having the same issue with this package.json:

{
  "name": "wanderbuddies",
  "version": "1.0.0",
  "main": "index.ts",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@react-native-async-storage/async-storage": "2.1.2",
    "@react-native-community/datetimepicker": "8.4.1",
    "@react-native-picker/picker": "^2.11.1",
    "@react-navigation/bottom-tabs": "^7.4.4",
    "@react-navigation/native": "^7.1.16",
    "@react-navigation/stack": "^7.4.4",
    "@types/react-native-vector-icons": "^6.4.18",
    "axios": "^1.11.0",
    "expo": "~53.0.20",
    "expo-av": "~15.1.7",
    "expo-clipboard": "~7.1.5",
    "expo-document-picker": "~13.1.6",
    "expo-file-system": "~18.1.11",
    "expo-image": "~2.4.0",
    "expo-image-picker": "~16.1.4",
    "expo-intent-launcher": "~12.1.5",
    "expo-sharing": "~13.1.5",
    "expo-status-bar": "~2.2.3",
    "expo-web-browser": "~14.2.0",
    "react": "19.0.0",
    "react-native": "0.79.5",
    "react-native-date-picker": "^5.0.13",
    "react-native-gesture-handler": "^2.27.2",
    "react-native-image-picker": "^8.2.1",
    "react-native-paper": "^5.14.5",
    "react-native-safe-area-context": "5.4.0",
    "react-native-screens": "~4.11.1",
    "react-native-vector-icons": "^10.3.0",
    "react-native-webview": "13.13.5"
  },
  "devDependencies": {
    "@babel/core": "^7.25.2",
    "@types/react": "~19.0.10",
    "typescript": "~5.8.3"
  },
  "private": true
}

Has someone solved it yet?

Reasons:
  • RegEx Blacklisted phrase (1.5): solved it yet?
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I am having the same issue
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Mazhar Ali

79722890

Date: 2025-08-01 19:23:35
Score: 1.5
Natty:
Report link

You Can Use onnxruntime Package To Run Onnx Model Directly Into Your Flutter App Rather Than Converting It Into Tflite Then Doing it.

Reasons:
  • Whitelisted phrase (-1.5): You Can Use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nikhil Wankhede

79722885

Date: 2025-08-01 19:13:32
Score: 1
Natty:
Report link

I dont think it can be done with 5 swaps and remain stable. 5 swaps and unstable, yes.

The reason I say this is swapping for non-contiguous elements is required for 5 swaps but in so doing, that defeats stability. Insertion Sort or Bubble Sort will guarantee stability but you are making sure that no contiguous element is not compared.

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

79722884

Date: 2025-08-01 19:13:32
Score: 2.5
Natty:
Report link

I've concluded that it is just not possible to modify query parameters with a proxy integration. One part of AWS docs says that it's possible, but all examples provided are for non-proxy integrations. My testing has confirmed that it's not possible.

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

79722883

Date: 2025-08-01 19:11:32
Score: 3
Natty:
Report link

We had same issue after changing ownership of the MQ Domain service account. After removing/adding the same AD groups, everything worked. I think the error is not exactly related to read the group membership, but finding the account in the correct groups.

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

79722867

Date: 2025-08-01 18:52:27
Score: 1.5
Natty:
Report link

Note that this answer might not have been an option at the time of this question.

Give your cell a range name:

enter image description here

With your cell selected click From Table/Range on the Data menu.

enter image description here

Power Query opens with the parameter in a query with the type automatically detected.

enter image description here

Right-click the parameter value and select drill down.

enter image description here

The query now returns a number and can be used in M-code.

enter image description here

There is a problem if your parameter is text. Power Query will try to be helpful and promote it to a column header.

enter image description here

You'll have to delete that from the resulting query and change the type to text.

enter image description here

Here is what it looks like after deleting the Promoted Headers and Changed Type steps, and adding the new Changed Type and Drill Down steps. I used the GUI and am showing the Advanced Editor for reference.

enter image description here

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

79722847

Date: 2025-08-01 18:17:19
Score: 4
Natty:
Report link

Any updates? I'm seeing the same behavior.

enter image description here

Reasons:
  • RegEx Blacklisted phrase (0.5): Any updates
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: mariomenjr

79722844

Date: 2025-08-01 18:14:18
Score: 0.5
Natty:
Report link

JavaFX WebView is kinda stuck in the past when it comes to WebGL support, which is exactly what MapLibre needs. That's why it works fine when you open the HTML directly in Chrome but WebView just gives you a blank screen.

A couple ways you could go with this:

You could try using CDN links instead of local files - sometimes WebView gets weird with those relative paths. Something like:

HTML

<link href="https://cdn.jsdelivr.net/npm/maplibre-gl/dist/maplibre-gl.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/maplibre-gl/dist/maplibre-gl.js"></script>

Honestly though? For a school project, I'd probably just ditch WebView entirely and grab GMapsFX or JxMaps. Saved me a ton of headaches when I was working on something similar.

in my understating try using logging to help understand what is actually failing , my advice would be to ditch webView for now cause of compatibility issue this does not answer your question but might help you move in right direction for this

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: hardiky118

79722842

Date: 2025-08-01 18:10:18
Score: 0.5
Natty:
Report link

The latest version definitely supports clicking on screenshots:

>>> import pyautogui
>>> button7location = pyautogui.locateOnScreen('calc7key.png', confidence=0.9)
>>> button7location
Box(left=1416, top=562, width=50, height=41)

Documentation here

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

79722833

Date: 2025-08-01 17:58:16
Score: 0.5
Natty:
Report link

Several years later, a simpler solution using geom_function() and only ggplot2 (version 3.5.2).

The approach is again the same as in this answer

# add variable to split by combination of year and generation
fantasy_df$yearxgen <- paste(fantasy_df$centralYear, fantasy_df$generation, sep = 'x')
# turn generation into a facto
fantasy_df$generation <- as.factor(fantasy_df$generation)

# initialize plot
gp <- ggplot()
# loop over combined variable, limit data to one combination of year and
# generation, plot scaled density with those params
for (i in unique(fantasy_df$yearxgen)){
  gp <- gp + geom_function(data = fantasy_df[fantasy_df$yearxgen == i,], 
                           fun = function(x, mu, sigma, lambda) lambda * dnorm(x, mu, sigma), 
                           args = list(mu = fantasy_df[fantasy_df$yearxgen == i,'mu'], 
                                       sigma = fantasy_df[fantasy_df$yearxgen == i,'sigma'], 
                                       lambda = fantasy_df[fantasy_df$yearxgen == i,'lambda']), 
                           xlim = c(0,400), aes(color = generation))
}
# split by variable
gp <- gp + facet_grid(centralYear ~ .)
# show plot
print(gp)
ggsave('figure.png')

enter image description here

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