79699840

Date: 2025-07-13 08:38:53
Score: 2.5
Natty:
Report link

It could be due to heavy processing, an infinite loop, or memory overload. Try checking your code for loops or large data handling. Run the script via terminal to see errors, and monitor CPU/RAM usage in Task Manager. Also, make sure antivirus isn’t blocking Python. Share your script snippet for more help!

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

79699839

Date: 2025-07-13 08:37:53
Score: 2.5
Natty:
Report link

Using Google's libphonenumber library in C#, you can quickly and scalablely verify a large number of phone numbers.

If you want you can visit our site : https://bcellphonelist.com/

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

79699838

Date: 2025-07-13 08:37:53
Score: 0.5
Natty:
Report link

As per this open GitHub issue, the only discovered workaround for this issue is by disabling Chromium Sandbox.
So, we have to run VS Code with is command:

code --disable-chromium-sandbox

I hope we can find a better fix than disabling some security features like this.

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

79699827

Date: 2025-07-13 08:13:48
Score: 2
Natty:
Report link

I found a possible cause for this error, please check you Environment Variable "__PSLockdownPolicy" it should be a int not string,It is defined as

8        SystemEnforcementMode.Audit
4        SystemEnforcementMode.Enforce
other int value  SystemEnforcementMode.None
Reasons:
  • RegEx Blacklisted phrase (1): I found a possible cause for this error, please
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user15281044

79699825

Date: 2025-07-13 08:12:47
Score: 2
Natty:
Report link

In general, you should make sure to do only one operation at a time. All operations are asynchronous and you should wait for completion before you start the next operation. That is why all Android BLE libraries queue operations.

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

79699821

Date: 2025-07-13 08:05:45
Score: 2.5
Natty:
Report link

jQuery advantages : Simplifies DOM manipulation Cross-browser is compatibility Easy AJAX handling Lightweight and fast to implement Large plugin ecosystem Great for quick, small projects or legacy support.

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

79699817

Date: 2025-07-13 07:54:43
Score: 2.5
Natty:
Report link

For some reason, Adding 'MINIO_DOMAIN' to minio service's env config settings solved the issues.

Not sure why though?

minio:
    image: minio/minio
    networks:
      flink_network:
        aliases:
          - warehouse.minio
    container_name: minio
    ports:
      - "9000:9000"
      - "9001:9001"
    environment:
      - MINIO_ROOT_USER=minioadmin
      - MINIO_ROOT_PASSWORD=minioadmin
      - MINIO_DOMAIN=minio
    volumes:
      - minio-data:/data
    command: server /data --console-address ":9001"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 5s
      timeout: 3s
      start_period: 10s
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mandar Kulkarni

79699816

Date: 2025-07-13 07:53:43
Score: 1
Natty:
Report link

Add this to your application.properties file:

spring.jpa.database-platform=com.pivotal.gemfirexd.hibernate.GemFireXDDialect

OR if you're using application.yml:

spring:
      jpa:
        database-platform: com.pivotal.gemfirexd.hibernate.GemFireXDDialect
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: P100K

79699813

Date: 2025-07-13 07:47:42
Score: 2.5
Natty:
Report link

I have similar question. So I tried the solutions of both LangSmith and local callback from the notebook here.

1. Using LangChain's Built-in Callbacks (e.g., LangChainTracer for LangSmith)

LangChain has deep integration with LangSmith, their platform for debugging, testing, evaluating, and monitoring LLM applications. If you set up LangSmith, all your LLM calls (including those from ChatGoogleGenerativeAI) will be automatically logged and available for analysis in the LangSmith UI.

2. Custom Callback Handlers for Local Collection/Logging

If you don't want to use LangSmith or need more granular control over where and how the data is collected, you can implement a custom BaseCallbackHandler. This allows you to define what happens at different stages of the LLM call (e.g., when a call starts, ends, or streams a chunk).

Reasons:
  • Blacklisted phrase (1): I have similar
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have similar question
  • High reputation (-1):
Posted by: johnklee

79699806

Date: 2025-07-13 07:41:39
Score: 6
Natty: 4
Report link

jQuery now has major contender. The Juris.js enhance() API.
Refer to this article for reference. It's a relatively new solution to DOM manipulation and progressive enhancement.
https://medium.com/@resti.guay/jquery-vs-juris-js-enhance-api-technical-comparison-and-benefits-d94b63c63bf6

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: resti

79699801

Date: 2025-07-13 07:32:37
Score: 1
Natty:
Report link

I developed my own express functionality. Its not so hard to do. At some point I will put it in Github. It consists of a web server and three components:

  1. Pipeline - for processing request/response

  2. Middleware - for dividing steps in request/response processing

  3. Routing - for connecting urls to views

Because I rolled my own I have full control of my code.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Herman Van Der Blom

79699792

Date: 2025-07-13 07:11:31
Score: 0.5
Natty:
Report link

Next code will work a little bit faster

return HttpContext.Current.Request.Headers["X-Forwarded-For"].Split(new char[] { ',' }, 2).FirstOrDefault();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Dmitry Shashurov

79699788

Date: 2025-07-13 07:05:29
Score: 1.5
Natty:
Report link

I was trying to fire an alert using the below line but was not sure how to fetch the new value. Your suggestion it really worked.. Thanks a ton...!!!!

apex.message.alert("The value changed from " + model.getValue(selectedRecords[0], "<column name")+ " to " + $v(this.triggeringElement));
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Manohar Venkatesh Mishra

79699770

Date: 2025-07-13 06:30:21
Score: 1
Natty:
Report link

If you perceive errors such as 'outdated servlet api' consider Tomcat 10 switched from JavaEE to JakartaEE. If your webapp is incompatible, switch to Tomcat 9.

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

79699762

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

When Tomcat deploys a webapp but fails, this will be written to the logfile but the application is not deployed. If after that a client tries to access the application obviously that ends in a 404 result.Now the question is whether you are using lazy loading, which means some servlets or the whole application get deployed only when the first request comes in.

Any way, you need to resolve these fatal issues as neither Tomat nor the webapp will be able to work without help. Check the logfile to find out the reason.

One simple reason could be that the webapp requires some other resource that has not been deployed as e.g. a DB connection pool.

And to come back to your question: I am not aware there is an option to turn this off. But you can either change your web.xml or use annotations to pre-load your servlets, which would give you the error messages not upon first requet but right at application deployment.

Also read: When exactly a web container initialize a servlet?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): When To
  • High reputation (-1):
Posted by: queeg

79699760

Date: 2025-07-13 05:58:15
Score: 1.5
Natty:
Report link

Get the list of commit hash(es) for the commits you wish to merge using the git log.

git log <branch-name>

Then add run the below command for all the commit hashes to pick all the commits you wish to pick.

git cherry-pick <commit-hash>

then use

git push origin <target-branch>

You can also use this refrence link:

https://betterstack.com/community/questions/how-to-merge-specific-commit/

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

79699753

Date: 2025-07-13 05:46:11
Score: 1
Natty:
Report link

You can update the cookies of aiohttp with cookies from playwright via:

for cookie in storage['cookies']:
    jar.update_cookies({
        cookie['name']: cookie
    })
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mozillazg

79699752

Date: 2025-07-13 05:36:09
Score: 0.5
Natty:
Report link

Delta G^\circ = -nFE^\circ_{\text{cell}}, \quad F = 96500 \, \text{C/mol}

✅ Solution:

\Delta G^\circ = -2 \times 96500 \times 1.05 = -202650 \, \text{J} = -202.65 \, \text{kJ}

Reasons:
  • Whitelisted phrase (-2): Solution:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Adity Joshi

79699743

Date: 2025-07-13 05:12:02
Score: 9.5
Natty:
Report link

Strange! this one of our old functions that we had and working in our Windows server but now we moved to linux I got this error, Do you know how can I get the error message return by this event, my code still failing and would like to catch the error message? Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): how can I
  • RegEx Blacklisted phrase (1): I get the error
  • RegEx Blacklisted phrase (2.5): Do you know how
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ROCHDI

79699738

Date: 2025-07-13 05:04:00
Score: 0.5
Natty:
Report link

You’re definitely on the right path, and your intuition about the peaks between 5–10 and 35–40 is spot on. I ran your dataset through KDE using scipy.stats.gaussian_kde, and it works beautifully with a tighter bandwidth.

Here's the idea:

I'm using the following code:

import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import gaussian_kde
from scipy.signal import find_peaks

# Data
a = np.array([68, 63, 20, 55, 1, 21, 55, 58, 14, 4, 40, 54, 33, 71, 36, 38, 9, 51, 89, 40, 13, 98, 46, 12, 21, 26, 40, 59, 17, 0, 5, 25, 19, 49, 91, 55, 39, 82, 57, 28, 54, 58, 65, 2, 39, 42, 65, 1, 93, 8, 26, 69, 88, 32, 15, 10, 95, 11, 2, 44, 66, 98, 18, 21, 25, 17, 41, 74, 12, 4, 33, 93, 65, 33, 25, 76, 84, 1, 63, 74, 3, 39, 9, 40, 7, 81, 55, 78, 7, 5, 99, 37, 7, 82, 54, 16, 22, 24, 23, 3])

# Fit KDE using scipy
kde = gaussian_kde(a, bw_method=0.2)
x = np.linspace(0, 100, 1000)
y = kde(x)

# Find all peaks
peaks, properties = find_peaks(y, prominence=0.0005)  # Adjust as needed

# Sort peaks by height (y value)
top_two_indices = peaks[np.argsort(y[peaks])[-2:]]
top_two_indices = top_two_indices[np.argsort(x[top_two_indices])]  # left to right

# Plot
plt.figure(figsize=(14, 7))
plt.plot(x, y, label='KDE', color='steelblue')
plt.fill_between(x, y, alpha=0.3)

# Annotate top 2 peaks
for i, peak in enumerate(top_two_indices, 1):
    plt.plot(x[peak], y[peak], 'ro')
    plt.text(x[peak], y[peak] + 0.0005,
             f'Peak {i}\n({x[peak]:.1f}, {y[peak]:.3f})',
             ha='center', color='red')

plt.title("Top 2 Peaks in KDE")
plt.xlabel("a")
plt.ylabel("Density")
plt.xticks(np.arange(0, 101, 5))
plt.grid(True, linestyle='--', alpha=0.5)
plt.tight_layout()
plt.show()

Which displays

enter image description here

A few important notes:

  1. Prominence matters: I used prominence=0.0005 in find_peaks() — this helps ignore tiny local bumps and just focus on meaningful peaks. You can tweak it if your data changes.

  2. Bandwidth is everything: The choice of bandwidth (bw_method=0.2 in this case) controls the smoothness of the KDE. If it's too high, peaks will be smoothed out. Too low, and you’ll get noisy fluctuations.

  3. Automatic bandwidth selection: If you don’t want to hard-code bw_method, you can automatically select the optimal bandwidth using cross-validation. Libraries like sklearn.model_selection.GridSearchCV with KernelDensity from sklearn.neighbors let you fit multiple models with different bandwidths and choose the one that best fits the data statistically.

But honestly — for this particular dataset, manually setting bw_method=0.2 works great and reveals exactly the two main peaks you're after (one around ~7, the other near ~38). But for production-level or general-purpose analysis, incorporating automatic bandwidth selection via cross-validation can make your approach more adaptive and robust.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shinde Aditya

79699737

Date: 2025-07-13 05:03:00
Score: 1
Natty:
Report link

KNI is the way to go if you introduce overhead due to kernel crossings and requires loading the rte_kni module, which might not be ideal for pure performance testing.

On the other hand, TAP PMD is a purely user space solution, emulating a TUN/TAP device without kernel involvement. This means lower latency and no dependency on kernel modules, making it great for scenarios where you want to avoid kernel overhead entirely. However, since it bypasses the kernel, you lose compatibility with standard networking tools that rely on kernel interfaces.

Shortly for your case (testing without hardware) TAP PMD is likely the simpler option unless you specifically need kernel support.

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

79699730

Date: 2025-07-13 04:34:54
Score: 2
Natty:
Report link

For everybody still looking as of 2025 I just worked out a way to do it reliably:


        public static float Round(this float value, float step = 1f)
        {
            if (step <= 0) throw new System.ArgumentException("Step must be greater than zero.");

            float remainder = (value = Mathf.Ceil(value / 0.001f) * 0.001f) % step;
            float halfStep = step / 2f;

            return
                remainder >= halfStep ? value + step - remainder :
                remainder < -halfStep ? value - step - remainder :
                value - remainder;
        }

        public static string[] GetLines(this PdfDocument document, int page, char wordSeperator = ' ', float tolerance = 0.01f)
        {
            var lines = new List<string>();

            if (page > 0 && document.NumberOfPages >= page)
            {
                var wordGroups = document.GetPage(page)
                    .GetWords()
                    .GroupBy(w => ((float)(w.BoundingBox.Top + w.BoundingBox.Bottom) * 0.5f).Round(tolerance));

                foreach (var group in wordGroups.OrderByDescending(g => g.Key)) // top to bottom
                {
                    var line = string.Join(wordSeperator, group.OrderBy(w => w.BoundingBox.Left));

                    if (line.NotEmpty()) lines.Add(line);
                }
            }

            return [.. lines];
        }

Enjoy. Also take a look at the Cutulu SDK by @narrenschlag on GitHub and leave a star if you liked this. :)

~ Max, der Narr

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @narrenschlag
  • Low reputation (1):
Posted by: Narrenschlag

79699726

Date: 2025-07-13 04:24:52
Score: 1
Natty:
Report link

Try this :

s = " Swarnendu Pal is a good boy "
s.replace(" ", "")

this will effectively remove any space

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: MOHSH

79699725

Date: 2025-07-13 04:17:51
Score: 3
Natty:
Report link

Thankyou to @pmf, that is the filter I was after (with a caveat). The problem I was having relates to the jq error: jq: error (at Security.json:12490): Cannot iterate over null (null) . I think the issue in question was not just how to manage an array within jq, but how it handles iterating over an array when handling nulls and you don't explicitly state the length of the array, eg: jq '.Event[].EventData.Data[] |= (select(.content != null))' Security.json throws the error.

I have found that explicitly declaring the length of the array to jq when handling the top-level array, eg: jq '.Event[0- ( .Event | length)] <further jq> or jq '.Event[0-N] <further jq> (for an array with N+1 variables) results in successful execution. I would speculate that jq's mode of iteration when the length of the array is not specified results in it checking index N+1 and returning null, then handing that down the pipe and throwing an error when it looks for null (null). I don't know if this is intentional behaviour for jq or a bug.

I've included the complete bash script (with filters) below for other people that want help with an error similar to this:


Filtering Nulls from the array

The code that works for me:

jq '.Event[0- ( .Event | length)].EventData.Data[] |= (select(.content != null))' Security.json

and this (although not dynamic):

jq '.Event[0-152].EventData.Data[] |= (select(.content != null))' Security.json

The code that doesn't work for me:

jq '.Event[].EventData.Data[] |= (select(.content != null))' Security.json

Reformatting data within .Data[] into "Name": "Variable" without removing nulls

The code that works for me:

jq '.Event[0- ( .Event | length)].EventData.Data[] |= {(.Name): .content}' Security.json | less

and this (although not dynamic):

jq '.Event[0-152].EventData.Data[] |= {(.Name): .content}' Security.json

The code that doesn't work for me:

jq '.Event[].EventData.Data[] |= {(.Name): .content}' Security.json
Reasons:
  • Blacklisted phrase (1): Thankyou
  • Whitelisted phrase (-1): works for me
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @pmf
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user31024636

79699717

Date: 2025-07-13 03:47:45
Score: 0.5
Natty:
Report link

The problem for me was that my powershell scripts were not saved with the "UTF8 with BOM" encoding. I was getting the error when only using the UTF8 encoding. I fought a hard battle to figure this out.

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

79699716

Date: 2025-07-13 03:43:44
Score: 4
Natty:
Report link

How about this? You identify peaks by getting numbers that have a smaller number after and before it (only after or before for first and last), then take the 2 highest from these peaks?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How
Posted by: SpicyCatGames

79699705

Date: 2025-07-13 02:32:31
Score: 2.5
Natty:
Report link

for simple mistake like me.

declare const router = userouter() before anything in scropt tag

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

79699700

Date: 2025-07-13 02:22:29
Score: 0.5
Natty:
Report link

If you encounter a Permission denied (public key) issue when trying to git pull, regardless of the fact that you have set your keys correctly, you should just try to pull a specific remote:

$ git pull origin
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: superqwerty

79699698

Date: 2025-07-13 02:21:28
Score: 1.5
Natty:
Report link

Don't forget to add it to "devDependencies". Tested on Expo v53

Source: https://github.com/expo/examples/blob/master/with-pdf/package.json#L20-L21

package.json
  "devDependencies": {
    ...
    "@config-plugins/react-native-blob-util": "^0.0.0",
    "@config-plugins/react-native-pdf": "^0.0.0"
  },
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ahmeti

79699687

Date: 2025-07-13 01:42:20
Score: 0.5
Natty:
Report link

//@version=6

// (C) yaseenm237

library("MyLibrary")

// Declare an array to store historical data points (features).

// Each data point is an array of floats representing features.

var historicalFeatures = array.new<array<float>>(0)

// Declare an array to store the corresponding labels (1: long, -1: short, 0: neutral).

var historicalLabels = array.new<int>(0)

// @function getClassificationVote: Determines the majority vote from a given array of labels (e.g., from nearest neighbors).

// It takes an array of labels (typically from the 'k' nearest historical data points) and returns the most frequent label.

// @param labelsArray array<int>: An array containing the labels (1 for long, -1 for short, 0 for neutral) of the nearest neighbors.

// @returns int: The predicted classification: 1 for long, -1 for short, or 0 for neutral if there's a tie or no clear majority.

export function getClassificationVote(labelsArray) {

int longCount = 0

int shortCount = 0

int neutralCount = 0

// Count the occurrences of each label (long, short, neutral) within the provided labelsArray.

for i = 0 to array.size(labelsArray) - 1

    int label = array.get(labelsArray, i)

    if label == 1

        longCount += 1

    else if label == -1

        shortCount += 1

    else

        neutralCount += 1

// Determine the majority vote based on the counts.

// If longCount is strictly greater than both shortCount and neutralCount, it's a long prediction.

if longCount \> shortCount and longCount \> neutralCount

    1

// If shortCount is strictly greater than both longCount and neutralCount, it's a short prediction.

else if shortCount \> longCount and shortCount \> neutralCount

    -1

// If neutralCount is strictly greater than both longCount and shortCount, it's a neutral prediction.

else if neutralCount \> longCount and neutralCount \> shortCount

    0

// Handle tie-breaking scenarios:

// If there's a tie between long and short, or any other tie, or no clear majority, default to neutral (0).

// This conservative approach avoids making a biased prediction when the model is uncertain.

else

    0

}

// @function calculateEuclideanDistance: Calculates the Euclidean distance between two data points.

// @param point1 array<float>: The first data point.

// @param point2 array<float>: The second data point.

// @returns float: The Euclidean distance between the two points.

export function calculateEuclideanDistance(point1, point2) {

float sumSquaredDifferences = 0.0

int size1 = array.size(point1)

int size2 = array.size(point2)

int minSize = math.min(size1, size2)

for i = 0 to minSize - 1

    float diff = array.get(point1, i) - array.get(point2, i)

    sumSquaredDifferences += diff \* diff

math.sqrt(sumSquaredDifferences)

}

// @function findNearestNeighbors: Finds the indices of the 'k' nearest neighbors to a new data point.

// @param newPoint array<float>: The data point for which to find neighbors.

// @param historicalFeatures array<array<float>>: The array of historical data points (features).

// @param historicalLabels array<int>: The array of historical labels (used for indexing, not distance).

// @param k int: The number of nearest neighbors to find.

// @returns array<int>: An array containing the indices of the k nearest neighbors in the historical data.

export function findNearestNeighbors(newPoint, historicalFeatures, historicalLabels, k) {

// Array to store pairs of \[distance, index\]

var distancesWithIndices = array.new\<array\<float\>\>(0)

// Calculate distances to all historical data points and store with their indices

for i = 0 to array.size(historicalFeatures) - 1

    array\<float\> historicalPoint = array.get(historicalFeatures, i)

    float dist = calculateEuclideanDistance(newPoint, historicalPoint)

    array.push(distancesWithIndices, array.new\<float\>(\[dist, float(i)\]))

// Sort the array based on distances (the first element of each inner array)

array.sort(distancesWithIndices, direction.asc)

// Get the indices of the k nearest neighbors

var nearestNeighborIndices = array.new\<int\>(0)

for i = 0 to math.min(k, array.size(distancesWithIndices)) - 1

    array\<float\> distanceAndIndex = array.get(distancesWithIndices, i)

    int index = int(array.get(distanceAndIndex, 1))

    array.push(nearestNeighborIndices, index)

nearestNeighborIndices

}

// @function getNeighborLabels: Retrieves the labels of the nearest neighbors given their indices.

// @param nearestNeighborIndices array<int>: An array of indices of the nearest neighbors.

// @param historicalLabels array<int>: The array of historical labels.

// @returns array<int>: An array containing the labels of the nearest neighbors.

export function getNeighborLabels(nearestNeighborIndices, historicalLabels) {

// Initialize an empty array to store the neighbor labels.

var neighborLabels = array.new\<int\>(0)

// Iterate through the array of nearest neighbor indices.

for i = 0 to array.size(nearestNeighborIndices) - 1

    // Get the index of the current nearest neighbor.

    int neighborIndex = array.get(nearestNeighborIndices, i)

    // Access the corresponding label from the historicalLabels array using the index.

    int neighborLabel = array.get(historicalLabels, neighborIndex)

    // Add the retrieved label to the array of neighbor labels.

    array.push(neighborLabels, neighborLabel)

// Return the array containing the labels of the nearest neighbors.

neighborLabels

}

// @function performKNNClassification: Performs K-Nearest Neighbors classification for a new data point.

// @param newPoint array<float>: The data point to classify.

// @param historicalFeatures array<array<float>>: The historical data points (features).

// @param historicalLabels array<int>: The historical labels.

// @param k int: The number of neighbors to consider.

// @returns int: The predicted classification (1 for long, -1 for short, 0 for neutral).

export function performKNNClassification(newPoint, historicalFeatures, historicalLabels, k) {

// Find the indices of the k nearest neighbors.

array\<int\> nearestNeighborIndices = findNearestNeighbors(newPoint, historicalFeatures, historicalLabels, k)

// Get the labels of the nearest neighbors.

array\<int\> neighborLabels = getNeighborLabels(nearestNeighborIndices, historicalLabels)

// Get the classification vote from the neighbor labels.

int predic

tedClassification = getClassificationVote(neighborLabels)

// Return the predicted classification.

predictedClassification

}

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @function
  • User mentioned (0): @param
  • User mentioned (0): @returns
  • User mentioned (0): @function
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @returns
  • User mentioned (0): @function
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @returns
  • User mentioned (0): @function
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @returns
  • User mentioned (0): @function
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @param
  • User mentioned (0): @returns
  • Low reputation (1):
Posted by: Mohammed Yaseen

79699683

Date: 2025-07-13 01:10:14
Score: 2
Natty:
Report link

Ok I did have a mistake in my code. I had an extra hyphen looking like this: `"Content--Type image/png"`

Of course initially I had the Content-Type set to text/log. Now all is good. Only thing I will work on solving is that the text portion isn't going through but the attachment is going through and every single byte matches precisely with the original and includes the infamous carriage return. Gotta get these headers right!

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

79699673

Date: 2025-07-13 00:26:04
Score: 1.5
Natty:
Report link

OK, OK, I've found it elsewhere... it would be a class (that I have to include in my code), like this:

public class WindowDimension
{
public int Width { get; set; }
public int Height { get; set; }
}

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

79699672

Date: 2025-07-13 00:23:03
Score: 0.5
Natty:
Report link

You have good insights. But, you cannot directly link to chrome://tracing , due to Chrome's security restrictions. chrome:// URLs are not accessible via normal HTML <a> links

Reference:
https://issues.chromium.org/issues/41431413

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

79699670

Date: 2025-07-13 00:18:02
Score: 2
Natty:
Report link

Bună ziua,

Contul meu a fost dezactivat, dar cred că este o greșeală. Am avut un alt cont mai mic care a fost dezactivat pentru o încălcare, dar nu am făcut nimic greșit cu acest cont principal.

Vă rog să analizați situația – acest cont este important pentru mine și nu a încălcat regulile comunității.

Mulțumesc!

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

79699668

Date: 2025-07-13 00:13:01
Score: 1
Natty:
Report link

While del can make an object eligible for garbage collection by reducing its reference count, it does not force the garbage collector to run immediately and reclaim the memory.

Besides, calling clear() on a container can indeed make the objects it previously held eligible for garbage collection, provided they are not referenced by any other part of the program.

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

79699664

Date: 2025-07-12 23:56:58
Score: 2
Natty:
Report link

for new Delphi versions that are based on FMX starting from Delphi Berlin, Sydney, Rio, Tokyo, Alexandria and Athena you will need new components to handle RTL issues.

I recommend two tools skia4delphi (skia4delphi.org) and RTLFixerForFMX (fmxRTL).

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

79699661

Date: 2025-07-12 23:51:57
Score: 3
Natty:
Report link

Erreur d’installation - 0x800b010c il ya une erreur de messe ajourErreur d’installation - 0x800b010c

comment je recuperé l,error dit moi

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

79699648

Date: 2025-07-12 23:19:50
Score: 1.5
Natty:
Report link

What worked for me was

Sudo dpkg-reconfigure apparmor

Followed by

Sudo snap refresh

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Matt Ryan

79699643

Date: 2025-07-12 23:04:47
Score: 1
Natty:
Report link

This is en EXTREMELY annoying problem in Excel/VBA

If you do a msgbox with range("A1").validation.property if will throw an error for all of the properties except a few. application and creator are useless because I don't think they change. IMEMode will return a 0 but I don't think you wanna mess with that. A few of the others will return nothing but won't throw an error.

If you use an if statement like:

If range("a1").validation.ErrorTitle <> "" Then

You can apply an error title to your validation cells to see which ones have error validation and which ones don't. Hope that's helpful. Took me a few hours to figure this out. Would have been helpful if validation.value returned "false" if a user hadn't applied data validation. Bravo Micro$oft.

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

79699642

Date: 2025-07-12 23:02:46
Score: 3.5
Natty:
Report link

You could do it via image editing and an application that can export directly to dxf like inkscape.

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

79699640

Date: 2025-07-12 23:01:45
Score: 8.5
Natty: 4.5
Report link

Hy i have the same problem on an old installation; no buttos for upload,..

        $tableColumns['dateiname'] = array(
            'display_text' => 'datei',
            'maxlen'   => 100,
            'perms' => 'EVCTAXQSHOF',
            'file_upload' => array(
                'upload_fun' => array(&$this, 'handleUpload'), 
                'delete_fun' => array(&$this, 'handleDeleteFile')),
            'table_fun' => array(&$this, 'formatLinkDownload'), 
            'view_fun' => array(&$this, 'formatLinkDownload')
);

function formatLinkDownload($col,$val,$row,$instanceName,$rowNum)
    {
        $html = '';
        if (!empty($val))
        {
            $html = '<a target="_blank" href="'.htmlspecialchars($val).'">test</a>';
        }
        return $html;
    }


i tried with you code snipsets a little bit but my fiel is rendered as type="text"
can you show the                 'upload_fun' => array(&$this, 'handleUpload'), 
                'delete_fun' => array(&$this, 'handleDeleteFile')),
funktions?


Thanks
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): i have the same problem
  • RegEx Blacklisted phrase (2.5): can you show
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): i have the same problem
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user31027931

79699636

Date: 2025-07-12 22:56:44
Score: 1.5
Natty:
Report link

Firefox for Android does not support the bookmarks and history APIs (yet, maybe some day), not even as optional permissions.

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

79699635

Date: 2025-07-12 22:56:44
Score: 0.5
Natty:
Report link

In my case updating Android studio to the latest version resolved the issue. Thinking it has something to do with the IDE itself not having proper support for recent Android platforms.

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

79699628

Date: 2025-07-12 22:41:41
Score: 2.5
Natty:
Report link

With seaborn you can use FacetGrid()

to plot multiple histograms on the same grid

https://seaborn.pydata.org/generated/seaborn.FacetGrid.html

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

79699624

Date: 2025-07-12 22:26:38
Score: 2.5
Natty:
Report link

I did the same installation(tf 2.10, python 3.8, CUDA 11.8,cudnn 8.6) it could also detect the gpu, but when i was training it was not using gpu. Later on, by using nvidia-smi this command I gotta know my pc is not using gpu. 1 epoch went like 11 hrs.

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

79699619

Date: 2025-07-12 22:16:36
Score: 3.5
Natty:
Report link

Nope, re-opening the doc does not work. UIdoc still open while the Terminate code executes, and it seems that stops Notes from doing the Encrypt.

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

79699616

Date: 2025-07-12 22:05:33
Score: 0.5
Natty:
Report link

*** Update ***

Since Angular 18 and Material 3:

this.matDialog
  .open(YourDialogComponent, {
    minWidth: 0, maxWidth: '100%', width: '80vw', // Need to set the width this way
  });
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gustavo López Frutos

79699614

Date: 2025-07-12 21:56:31
Score: 7
Natty: 4
Report link

([0-9]+([.][0-9]+)?|[0-9]+.d0|.d[0-9])

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: adob

79699600

Date: 2025-07-12 21:33:25
Score: 3
Natty:
Report link

Número de teléfono: +52 33 1973 9441 (integrado como parámetro)URLs de seguridad: android.com/lock y android.com/findValidación automática de requisitos de seguridad2. Información del dispositivoModelo y fabricante del dispositivoVersión del sistema operativoEstado de conexión a InternetDetección de dispositivo físico vs emuladorParche de seguridad (Android)3. Panel de Control de SeguridadWidget completo para mostrar estado de seguridadAcciones rápidas para bloqueo remotoValidación en tiempo real del estado del dispositivo📱 Parámetros integrados:// Parámetros de seguridad configurados

static const String defaultPhoneNumber = '+52 33 1973 9441';

static const String androidLockUrl = 'https://android.com/lock';

static const String androidFindUrl = 'https://android.com/find';🛡️ Funcionalidades de seguridad:Bloqueo remoto// Obtener URL de bloqueo con número integrado

String lockUrl = DeviceSecurityService.getRemoteLockUrl();

// Resultado: https://android.com/lock?phone=%2B52%2033%201973%209441Validación de seguridad// Validar requisitos de seguridad automáticamente

SecurityValidationResult validation = await DeviceSecurityService.validateSecurityRequirements();

validation.printReport();Información del dispositivo// Obtener información completa del dispositivo

DeviceSecurityInfo deviceInfo = await DeviceSecurityService.getDeviceSecurityInfo();🔧 Dependencias necesarias:Agrega estas dependencias a tu pubspec.yaml:dependencies:

device_info_plus: ^10.1.0

connectivity_plus: ^6.0.1

url_launcher: ^6.2.5 # Para abrir URLs de seguridad📊 Panel de Control incluido:El código incluye un widget completo SecurityControlPanel que muestra:✅ Estado de seguridad del dispositivo📱 Información detallada del dispositivo🔒 Botones de acción para bloqueo remoto⚠️ Advertencias de seguridad🚀 Uso en tu aplicación:// En tu main.dart, ahora se valida automáticamente

void main() async {

WidgetsFlutterBinding.ensureInitialized();

// Validación automática de seguridad

final securityValidation = await DeviceSecurityService.validateSecurityRequirements();

securityValidation.printReport();

await FirebaseSetup.initialize();

runApp(MyApp());

}

// Para mostrar el panel de seguridad

Navigator.push(pagos-digitales?utm_source=g&utm_campaign=21336551222&utm_term=181920021338&utm_content=chatbot whatsapp&utm_medium=ppc&hsa_acc=3028901478&hsa_cam=21336551222&hsa_grp=181920021338&hsa_ad=757803005029&hsa_src=g&hsa_tgt=kwd-631813536627&hsa_kw=chatbot whatsapp&hsa_mt=b&hsa_net=adwords&hsa_ver=3&gad_source=1&gad_campaignid=21336551222&gbraid=0AAAAACp5hIdayGTm8FWvK5J4V9xQpyKwK&gclid=EAIaIQobChMIxuXu0564jgMVHkp_AB3WpzSOEAMYAyAEEgKzMvD_BwE

Reasons:
  • Blacklisted phrase (2): código
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: LARA OSCAR GONZALEZ

79699598

Date: 2025-07-12 21:31:25
Score: 4.5
Natty: 4.5
Report link

Use map and area tags to slice image.

https://www.w3schools.com/html/html_images_imagemap.asp

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

79699593

Date: 2025-07-12 21:24:23
Score: 0.5
Natty:
Report link

In my case enabling location and internet still not enough. but after enabling location you should find something called "location services", then "location accuracy" it should be on.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: صلي علي محمد - Atef Farouk

79699592

Date: 2025-07-12 21:23:22
Score: 1
Natty:
Report link

Wrll it totally depends on your requirement. Both have their own pros and cons.

External API or SDK

Pros:

  1. Just need integration, no need to handle complex logic.

  2. You don't need any backend resources where messages and user data be stored (most of the time)

Cons:

  1. You are limited to features provided by external API or SDK.

  2. You need to pay hefty amount, and agree to their policies.

Your own implementation

Pros:

  1. You have full control.

  2. No need to pay hefty amounts.

Cons:

  1. You need to handle everything, from user to chats and backend.

  2. You still need to pay some amount for resources.

  3. Security issues may rise, as already built solutions are industry tested.

You can decide based on above what suits you better.

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

79699589

Date: 2025-07-12 21:19:21
Score: 2.5
Natty:
Report link

Use findById like this, This returns whole object not a proxy like getOne/getReferenceById

repository.findById(id).orElseThrow(() -> new ResourceNotFoundException("any message"));

Thank You !

Reasons:
  • Blacklisted phrase (0.5): Thank You
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jatin Raikwar

79699585

Date: 2025-07-12 21:12:20
Score: 2
Natty:
Report link

How about you create a data table that includes the vectors (such as Nitrogen_Concentration) as columns? You would then point the model (such as nls) to the data, with the data parameter in the model function.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How
  • Low reputation (0.5):
Posted by: ahorn

79699582

Date: 2025-07-12 21:07:19
Score: 2.5
Natty:
Report link

This is a Windows-only limitation for now, due to missing support for MSVC's ABI for these classes. It's being tracked by https://github.com/swiftlang/swift/issues/80202

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

79699581

Date: 2025-07-12 21:06:18
Score: 1.5
Natty:
Report link

react-hook-form Yup resolver is not working #11342

https://github.com/orgs/react-hook-form/discussions/11342

Finally got it to work:

useForm({
  // ...
  resolver: yupResolver(schema),
})
// ...
await trigger()
// Important Note: given time/ticks to make formState.errors working with yup schema
await sleep(0);
formState.errors // is ok with yup schema

// with util
export const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fritz Lin

79699578

Date: 2025-07-12 20:50:15
Score: 0.5
Natty:
Report link

Instead of using the TreeViewItem class of objects I ended up just creating the following class:

using System.Collections.ObjectModel;

namespace Custom_XML_Editor.Models
{
    public class TreeNode
    {
        public string Header
        {
            get; 
            set;
        }
        public ObservableCollection<TreeNode> Children
        {
            get; 
            set;
        }
        public TreeNode(string header)
        {
            Header   = header;
            Children = new();
        }
    }
}

Then modifying the XAML:

<UserControl x:Class="Custom_XML_Editor.Views.XMLTreeView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Custom_XML_Editor.Views"
             xmlns:models="clr-namespace:Custom_XML_Editor.Models"
             mc:Ignorable="d" 
             d:DesignHeight="450" 
             d:DesignWidth="800">
    <Grid>
        <TreeView ItemsSource="{Binding Root}"
                  Grid.Row="1">
            <TreeView.ItemTemplate>
                <HierarchicalDataTemplate DataType="{x:Type models:TreeNode}"                 
                                          ItemsSource="{Binding Children}">
                    <TextBlock Text="{Binding Header}"/>
                </HierarchicalDataTemplate>
            </TreeView.ItemTemplate>
        </TreeView>
    </Grid>
</UserControl>

It seems silly that using the TreeViewItems class is.... impossible(?) to add items to a TreeView pragmatically from a ViewModel, but a generic class you throw together in 20 seconds works just fine.

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

79699576

Date: 2025-07-12 20:47:14
Score: 5
Natty:
Report link

Sajjad Ali game carrom pool coin seller don key seller don ab deal kaisa chal raha hai sajjad game carrom pool coin seller don bhai sir bolo sir fast

Reasons:
  • RegEx Blacklisted phrase (2): bhai
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: randy pradana

79699569

Date: 2025-07-12 20:39:12
Score: 5.5
Natty: 6
Report link

u gon get hacked lmaoooooooooo

Reasons:
  • Blacklisted phrase (0.5): lmao
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Filler text (0.5): oooooooooo
  • Low reputation (1):
Posted by: trolr

79699563

Date: 2025-07-12 20:29:10
Score: 2
Natty:
Report link

If it helps anyone I've just run into the same problem.

I had wrongly used context.Routes.MapRoute instead of

context.MapRoute in the Area Registration.

Changed the offending line of code and works with no further changes.

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

79699555

Date: 2025-07-12 20:18:07
Score: 0.5
Natty:
Report link

I had the same issue. I realized that I had to set the version I want to use in ghcup menu. I did this by hitting the 's' key after which I see double check marks next to the chosen version.enter image description here

Reasons:
  • Whitelisted phrase (-1): I had the same
  • RegEx Blacklisted phrase (1): I want
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Priyatham

79699551

Date: 2025-07-12 20:12:06
Score: 2.5
Natty:
Report link

I am running Linux. I had JAVA_HOME working well over a year ago, but during the last few months, the published formulas have all resulted in tracebacks. This is a sign of an unstable, unusable OS.

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

79699547

Date: 2025-07-12 20:07:04
Score: 2.5
Natty:
Report link

This is coming 3.5 years after the question was posed. I can't readily find when certain classes were introduced, so I can't tell if this is relvant to Qt 6.2. However, Qt 6.5 LTS, 6.8LTS, & 6.9 all have the QColorDialog class which probably will give the functionality you're seeking.

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

79699541

Date: 2025-07-12 20:00:03
Score: 0.5
Natty:
Report link
  1. you should check GitHub Reflog / Deleted Branches
    navigate here https://github.com/<your-username>/<your-repo>/branches

  2. You can also see GitHub commits view to restore previous commit

    Free advice: Always Pull or Backup Before Replacing

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

79699538

Date: 2025-07-12 19:56:02
Score: 1.5
Natty:
Report link

from PIL import Image, ImageDraw

# Load the group photo

group_img = Image.open("group_photo.jpg")

# Coordinates to draw the rectangle around the identified person

# (left, top, right, bottom) — adjust if needed

highlight_coords = (620, 300, 680, 380)

# Draw a red rectangle

draw = ImageDraw.Draw(group_img)

draw.rectangle(highlight_coords, outline="red", width=5)

# Save or show the result

group_img.show() # or use group_img.save("highlighted_group.jpg")

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

79699515

Date: 2025-07-12 19:18:53
Score: 0.5
Natty:
Report link

If anyone ever finds this, the answer was to use the WriterT.tell<W, M>() variant of the tell method - then it's possible to use Eff<RT>. I.e.

public static Eff<RT, bool> doThingWithRuntime<RT>() 
   where RT: struct => 
        liftEff(rt => true);

public static WriterT<StringM, Eff<RT>, string> SayHelloWorld<RT>() 
   where RT: struct => 
        from _1 in WriterT.tell<StringM, Eff<RT>>("world")
        from _2 in doThingWithRuntime<RT>() // now compiles
        from _3 in WriterT.tell<StringM, Eff<RT>>("!")
        select "hello";
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Andy Charalambous

79699498

Date: 2025-07-12 18:58:48
Score: 0.5
Natty:
Report link

I managed to upload the folder in the following way:

I did not find a way to upload a folder or extract a compressed file from the DataPower UI.

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

79699497

Date: 2025-07-12 18:50:46
Score: 1
Natty:
Report link

There appears to be a label written on the new disk, which is the name from the original disk:

$ sudo e2label /dev/sdb
data-4

Editing the filesystem label to match the disk label solved the problem:

$ sudo e2label /dev/sdb data-5
$ sudo mount LABEL=data-5 /mnt/data
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Gary Aitken

79699492

Date: 2025-07-12 18:34:43
Score: 2.5
Natty:
Report link

this ZXing.Net can create QRCodes using whatever data you give it. it also can create other barcodes

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

79699488

Date: 2025-07-12 18:30:42
Score: 5
Natty: 5
Report link

Can use this approach wokrks fine

https://medium.com/@shubham9032/loading-dynamic-images-in-live-activities-with-push-to-start-tokens-in-ios-9273c0235905
https://medium.com/@shubham9032/loading-dynamic-images-in-live-activities-with-push-to-start-tokens-in-ios-9273c0235905

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Starts with a question (0.5): Can u
  • Low reputation (0.5):
Posted by: shubh14896

79699484

Date: 2025-07-12 18:27:40
Score: 2.5
Natty:
Report link

What i just is that you need to separate the Create and Drop commands.
First try to Drop the table using
await db.execAsync(`DROP TABLE IF EXISTS users;`);
Then run the remaining to create the Table. It seems that Drop command is not working well inside this block of code.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): What i
  • Low reputation (1):
Posted by: Abdul Rafay

79699474

Date: 2025-07-12 18:02:35
Score: 3.5
Natty:
Report link

The archive file you gave is unreadable.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Украинец

79699471

Date: 2025-07-12 17:53:32
Score: 4.5
Natty:
Report link

Sii Cómo te sientes

Por favor Siii

Reasons:
  • Blacklisted phrase (1): Cómo
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Guadalupe Mara del Carmen Riva

79699463

Date: 2025-07-12 17:41:29
Score: 3
Natty:
Report link

I don't have a log library. I'm uploading with PHP 7.3. When I try to upload a 2MB image, it takes 5-10 seconds.

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

79699460

Date: 2025-07-12 17:36:28
Score: 1
Natty:
Report link

I needed to delete the extension, and import it once agaon, and it worked.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): it worked
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Szelek

79699459

Date: 2025-07-12 17:33:27
Score: 2
Natty:
Report link

First thing you need to do is set "chrome" as your mobile default browser and then try to open link in Telegram.
Sometime there are links which only allowed to open inside Telegram so they will no move to Chrome as it is External Browser.

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

79699456

Date: 2025-07-12 17:28:25
Score: 6.5
Natty: 5.5
Report link

السلام عليكم ورحمة الله وبركاته ياخوي كيف سويت ايموجيات بالجوال اتمنى الرد باسرع وقت او بجلدك

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Iii Ii

79699455

Date: 2025-07-12 17:25:24
Score: 0.5
Natty:
Report link

I just wanted to add a last, hacky option that might be useful if you can't/don't want to use CSS/JS:

<label for="not-my-input">
<input name="different-input" type="text" />
</label>

In essence, you add a "for" that doesn't exist.

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

79699451

Date: 2025-07-12 17:17:23
Score: 0.5
Natty:
Report link

./test.py
This is Linux syntax; Windows does not use /, but \

#!/usr/bin/env python
Again, Linux. As far as I know, it is ignored in Windows. Anyway, I would remove it.

All my (main) programs are called a.py (in different directories), in Windows, I start them just typing a (+Enter).

Because of the extension .py (file associations), Windows knows it should be opened by Python. Python makes the necessary steps during the installation, I suppose something went wrong.

Googled, not tested:
assoc .py=Python.File
ftype Python.File="C:\Path\To\python.exe" "%1" %*

Otherwise, uninstall and reinstall Python.

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

79699443

Date: 2025-07-12 17:05:20
Score: 0.5
Natty:
Report link

What is happening is that 120 and 77 are integers. When the operator/(int,int) function is performed, the return type is int. You either need to have a floating point type value (120.0 & 77.0) or you can typecast one of the values. The C-style typecasting is available and simple, by placing the type to be casted as in parenthesis.

float num = (float)120/77;

However, in C++, static_cast<T>(T) is preferred. Also, I would recommend using double instead of float.

double num = static_cast<double>(120) / 77;

Typically, casting is done for variables and not hard-coded values.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What is
  • Low reputation (1):
Posted by: Matthew Osborne

79699430

Date: 2025-07-12 16:40:14
Score: 0.5
Natty:
Report link

in some other situations you need to use the same folder path if you you specify ./backup in dump use it in restore. Even though your path will become like this ./backup/dbname

mongodump --uri='...' --out=./backup

mongorestore --uri='...' --dir=./backup

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

79699412

Date: 2025-07-12 16:12:09
Score: 3.5
Natty:
Report link

Thanks, the exporting task is solved. Both ways quarto or rmarkdown works fine. But the loop challenge is still on.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Maciej B.

79699410

Date: 2025-07-12 16:12:09
Score: 0.5
Natty:
Report link

Update _updateFilterText so that it also updates futureRecipe when the filter changes.

void _updateFilterText(String val) {
  print(val);
  setState(() {
    mealTypeFilter = val;
    futureRecipe = RecipeDataService().getRecipes(mealTypeFilter);
  });
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ManojK

79699406

Date: 2025-07-12 16:09:08
Score: 4
Natty:
Report link
Reasons:
  • Blacklisted phrase (1): but not working
  • RegEx Blacklisted phrase (3): not working for me
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
Posted by: Nor.Z

79699390

Date: 2025-07-12 15:35:00
Score: 4.5
Natty: 4
Report link

i lwk dont know NGGER NGGER NGGERNGGER

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

79699388

Date: 2025-07-12 15:28:59
Score: 1.5
Natty:
Report link

enter image description hereThe above solution using a separator and terminator works well, but if you want to try another approach, you can do it without using the separator.

    func test(items: Any...) {
        for item in items {
            print(item, terminator: " ")
        }
        print()
    }
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arjun

79699387

Date: 2025-07-12 15:28:59
Score: 2.5
Natty:
Report link

If you already know the schema, you could create the duckdb table with an explicit schema rather than having it inferred, or cast the columns on the select?

  CREATE  TABLE temp_data (); 
  INSERT INTO temp_data SELECT * FROM read_json_auto('${path}');


CREATE OR REPLACE TABLE temp_data AS
  SELECT cast(x as a), cast(y as b) FROM read_json_auto('${path}');
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: efromvt

79699373

Date: 2025-07-12 15:05:54
Score: 5
Natty:
Report link

Hi i have a similar issue. However, when querying the bucket i get denied

arn:aws:s3:::bucketname/AWSLogs/111111111/CloudTrail/ap-south-1/2025/07/09/111111111_CloudTrail_ap-south-1_20250709T1405Z_zwwNmrzBpawBJ0my.json.gz

Pretty much any prefix in AP.north or south. The bucket policy is lightly different.

            },
            "Action": "s3:*",
            "Resource": "arn:aws:s3:::cloudtrailcentralizedbucket",
            "Condition": {
                "StringLike": {
                    "s3:prefix": [
                        "AWSLogs/111111111/*",
                        "AWSLogs/111111111/CloudTrail/*",
                        "AWSLogs/111111111/CloudTrail/ap-northeast-2/*",
                        "AWSLogs/111111111/CloudTrail/ap-northeast-3/*",
                        "AWSLogs/111111111/CloudTrail/ap-southeast-1/*",
                        "AWSLogs/111111111/CloudTrail/ap-northeast-1/*"
                    ]
                }
Reasons:
  • RegEx Blacklisted phrase (2): Hi i have a
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): i have a similar issue
  • Filler text (0.5): 111111111
  • Filler text (0): 111111111
  • Low reputation (1):
Posted by: D' go

79699368

Date: 2025-07-12 15:00:52
Score: 1.5
Natty:
Report link

I encounter the similar problem.

I found the reason is the driver struct list is defined in miner.h which is included by many c files.

So, I resolve this problem by two steps:

  1. mask the following line in miner.h

    /* Use DRIVER_PARSE_COMMANDS to generate extern device_drv prototypes*/

    //DRIVER_PARSE_COMMANDS(DRIVER_PROTOTYPE)

  2. add the masked line in the beginning of cgminer.c, after miner.h is included

    DRIVER_PARSE_COMMANDS(DRIVER_PROTOTYPE)

It's done.

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

79699367

Date: 2025-07-12 14:58:52
Score: 0.5
Natty:
Report link

Favicon is cached by the browser. When you do a hard reload, it fetches it again. Its reasonable to suspect (as the error suggests) that your Favicon is indeed too large . After the first error, it does not fetch it again, flagging that it does not have a favicon..

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

79699364

Date: 2025-07-12 14:53:51
Score: 1.5
Natty:
Report link

I'm not 100% sure, but I believe you need to have pandoc in PATH.

I had this problem, I installed pandoc and now I can see the equations:

enter image description here

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

79699363

Date: 2025-07-12 14:53:51
Score: 3.5
Natty:
Report link

Right-click on the root project folder in the file list (see image). Select "Repair IDE on File". On pop-up, choose "more" and then "Rescan project indexes". Done.

enter image description here

enter image description here

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

79699358

Date: 2025-07-12 14:45:49
Score: 3.5
Natty:
Report link

In mongodb use the earlier version of node and copy the connection string it works

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

79699350

Date: 2025-07-12 14:27:45
Score: 2
Natty:
Report link

Here's a letter requesting assistance for building a house:

To Whom It May Concern,

I am writing to humbly request assistance to build a safe and secure home for my family. My name is Kavishka, and I live in Sri Lanka with my mother and sister. We have been facing significant challenges since my father passed away when we were young. My mother has been working tirelessly to provide for us, but our financial situation remains precarious.

We currently reside in a small, dilapidated house that is not suitable for living, especially during rainy days. The house leaks, and water enters, making it difficult for us to stay inside. Despite our mother's best efforts, we cannot afford to build a new house with our limited income.

I am reaching out in the hope that kind-hearted individuals or organizations can provide assistance to help us build a safe and secure home. Any contribution, big or small, would bring us closer to achieving our dream of having a decent place to live.

For those willing to contribute, the account details are as follows:

Account Name: J.K.D Jayaweera

Account Number: 109068082073

Bank Name: NSB

I would like to express my deepest gratitude to anyone who considers helping us. Your kindness and generosity would bring immense joy and relief to my family.

Thank you for taking the time to read our story and consider our request.

gmail [email protected]

Sincerely,

Kavishka

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (1): help us
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kavishka Jayaveera

79699349

Date: 2025-07-12 14:26:44
Score: 0.5
Natty:
Report link

Certainly! Here are the CloudWatch Logs Insights queries for your scenarios:


fields @timestamp, @message
| filter @message like /ClinicID: 7667/
| sort @timestamp desc
| limit 20


fields @timestamp, @message
| filter @message like /ClinicID: 7667/ and @message like /username: simran\+test@example\.com/
| sort @timestamp desc
| limit 20


fields @timestamp, @message
| filter @message like /username: simran\+test@example\.com/
| sort @timestamp desc
| limit 20

For more tips on managing and querying your Python logs in AWS CloudWatch, check out this guide:
👉 Centralize Your Python Logs Like a Pro with AWS CloudWatch Logs

Reasons:
  • Blacklisted phrase (1): this guide
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: WAEX

79699341

Date: 2025-07-12 14:19:43
Score: 2
Natty:
Report link

This work for me: https://github.com/evanw/esbuild/issues/1626#issuecomment-1554236574

<script type="module">
    import { Buffer } from "buffer";
    window.Buffer = Buffer;
  </script>
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: d3roch4

79699340

Date: 2025-07-12 14:18:43
Score: 2
Natty:
Report link

This work for me: https://github.com/evanw/esbuild/issues/1626#issuecomment-1554236574

<script type="module">
    import { Buffer } from "buffer";
    window.Buffer = Buffer;
  </script>
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: d3roch4

79699339

Date: 2025-07-12 14:17:42
Score: 0.5
Natty:
Report link

🎵 Purchase This Beat

Basic Lease – ₹299

Use in your songs/videos (non-exclusive)

MP3 file included

Beat remains available for other buyers

Royalty: 20% of revenue or profit earned using this beat must be paid to me

Credit Required: “Beat by Hanit Kamboj”

---

Premium Lease – ₹499

Use in your songs/videos (non-exclusive)

MP3 + WAV files included

Beat remains available for other buyers

Credit Required: “Beat by Hanit Kamboj”

Semi-Exclusive – ₹1,999

Only you can use this beat

MP3 + WAV + Project files (if needed) included

Beat will not be sold to anyone else

Credit Required: “Beat by Hanit Kamboj”

---

Exclusive Rights – ₹2,999

Only you can use this beat

MP3 + WAV + Project files (if needed) included

Beat will not be sold to anyone else

No royalty or credit required

Payment Details:

UPI ID: hanitkamboj@fam

After Payment:

Send the payment screenshot to:

WhatsApp: +91 9317099814

Instagram: @hanit._kamboj

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hanit Kamboj

79699330

Date: 2025-07-12 13:55:38
Score: 3
Natty:
Report link

adding /Users/testuser/.m2/repository in .m2/settings.xml resolved this.

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

79699326

Date: 2025-07-12 13:52:37
Score: 3.5
Natty:
Report link

I'm facing the same issue, and it's been quite a headache. The error originates within the application itself but doesn't always bubble up to the server logs.

To properly diagnose the problem, I recommend enabling full application logging and thoroughly checking all available logs (including framework-specific or custom logs). You may also want to monitor incoming requests and their responses to catch any silent failures or unexpected behavior.

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Low reputation (0.5):
Posted by: Julien Rajerison