79744640

Date: 2025-08-24 01:47:52
Score: 1.5
Natty:
Report link
AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
int mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,
        android.os.Process.myUid(), context.getPackageName());
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Samarth

79744622

Date: 2025-08-24 00:25:37
Score: 0.5
Natty:
Report link

Are you using Next.js? If so, the AuthUpdater component needs to be marked as a client component using "use client", since you're using a hook from it (i.e. useAppDispatch()). Hooks can only be used in client components.

"use client"
...
export const AuthUpdater = () => {
  const dispatch = useAppDispatch();
  ...
};

I ran into this same issue myself and had a little trouble identifying the error.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: robwhess

79744619

Date: 2025-08-23 23:56:31
Score: 4.5
Natty:
Report link

I change folder "recipes" to "recipe"

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

79744614

Date: 2025-08-23 23:41:28
Score: 1.5
Natty:
Report link

The solution for me in Google Colab was:

1- change to GPUT4 (because Nvidia requeried for cuda())

2- !pip install shap==0.48.0

3- !pip install numpy==1.26.4

Finally, I got the same plot (with colors) of original notebook.

Possible: I think the problem is the last version 2.3.2 (Really, with alll versions >=2....) of numpy with shap 0.48.0

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

79744606

Date: 2025-08-23 23:14:21
Score: 1
Natty:
Report link

From TailwindCSS v4, a new CSS-first configuration was introduced, so tailwind.config.js is no longer needed and can be deleted.

So your new configuration looks something like this: global.css

@import "tailwindcss";

@source ./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue};

@theme {
  /* ... */
}

The @config was created so that anyone migrating from v3 to v4 would have the option to get their app running quickly with minimal changes, but many breaking changes have occurred in the meantime, which you should review:

Other related:

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: rozsazoltan

79744585

Date: 2025-08-23 22:09:08
Score: 3
Natty:
Report link

The PureCloudPlatformClientV2 is about 199MB in size. By comparison, botocore is 22MB. By the time you add in some other libraries you have an unzipped package that exceeds 250MB - the limit set per https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#function-configuration-deployment-and-execution

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

79744548

Date: 2025-08-23 20:31:50
Score: 1
Natty:
Report link

Just added the pre-build-command example given by tarleb and worked! It seems that the newer version of sphinx-action fixed the implementation.

- name: Build HTML  
  uses: ammaraskar/[email protected] #sphinx-action@master  
  # installing pandoc by pre-build-command  
  with:  
    pre-build-command: \>-  
      apt-get update && apt-get install -y pandoc

Thanks a lot!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Daniel Clavijo

79744546

Date: 2025-08-23 20:21:48
Score: 1
Natty:
Report link

The Twig format_date filter which is related to the format_datetime filter has a note explaining we need to install 2 dependencies to use it:

composer require twig/intl-extra
composer require twig/extra-bundle

After installing it, the filter works fine. I've opened a PR to update the filter documentation

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

79744541

Date: 2025-08-23 20:08:45
Score: 0.5
Natty:
Report link

The key here, is I am using a specialized audio source in my project, which is Blackhole virtual mixer, and the general use constructor TranslationRecognizer(...) is not capable of handling a more complex MediaStream that is not just the built-in microphone for example.

So, in order to setup and audioConfig with a non-standard audio source, such as Blackhole loopback audio, a MediaStream you need to you use the factory.

TranslationRecognizer.fromConfig(speechTranslationConfig, AutoDetectLanguageConfig, AudioConfig). 

Gemini 2.5

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

79744539

Date: 2025-08-23 19:54:42
Score: 4
Natty:
Report link

Did you ever find a better solution for this problem?

I ended up creating an artificial module :hiltbridge which implements both :domain and :data and only contains one di file, the RepositoryModule binding the interface (from domain) with the implementation (from data).

:app implements this :hildbridge module instead of :data

It is still not an ideal solution, but I prefer it this way rather than :app implementing the whole :data module

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever find a
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: Gio

79744533

Date: 2025-08-23 19:47:40
Score: 0.5
Natty:
Report link

## Understanding the CSSStyleSheet.insertRule() Polyfill for IE 5-8

This polyfill addresses a critical compatibility issue with Internet Explorer versions 5-8, which had different implementations of CSS rule insertion compared to modern browsers.

### Key Points Explained:

**1. Selector and Rule Separation**

The polyfill handles the fact that IE 5-8's `addRule()` method expects separate parameters for the selector and rules, while modern `insertRule()` expects a single string like `"h1 { color: white }"`

**2. Argument Processing**

```javascript

selectorAndRule.substring(closeBracketPos)

```

This extracts the CSS rules (everything after the closing `}`) from the combined string.

**3. Insert Index Handling**

The `arguments[3]` represents the insertion index. In IE, this becomes the third parameter to `addRule()`, allowing you to specify where in the stylesheet the rule should be inserted.

**4. Bracket Parsing Logic**

The complex bracket parsing (`openBracketPos`, `closeBracketPos`) handles edge cases like:

- Escaped characters in CSS strings

- Nested brackets in CSS values

- Malformed CSS syntax

### Why This Matters:

Modern browsers use:

```javascript

stylesheet.insertRule("h1 { color: white }", 0);

```

IE 5-8 requires:

```javascript

stylesheet.addRule("h1", "color: white", 0);

```

This polyfill bridges that gap, allowing you to write modern code that works across all browsers.

### Usage Example:

```javascript

// This works in all browsers with the polyfill

stylesheet.insertRule("h1 { color: red; font-size: 20px }", 0);

```

The polyfill is essential for maintaining cross-browser compatibility in legacy applications that still need to support older IE versions.

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

79744520

Date: 2025-08-23 19:30:35
Score: 3.5
Natty:
Report link

Just delete the previous build files under android/build and rebuild it

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

79744513

Date: 2025-08-23 19:20:33
Score: 2.5
Natty:
Report link

Unoficial so far, but there is https://github.com/fschulze/lektor-rst -- it's pretty robust, and has been used for BeeWare (a Python project)'s website for a long time before the transitioned to Markdown: https://web.archive.org/web/20241223100350/https://beeware.org/ -- so even though it's unofficial it's been battle-tested.

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

79744512

Date: 2025-08-23 19:19:33
Score: 1
Natty:
Report link

From My understanding, "virtual" keyword in inheritance says to the compiler like
If this base class appears again and again for multiple times in inheritance, than keep only one copy instead of creating duplicates.

For example, suppose you are studying in university and there are two or more departments are ready to give you their separate graduation certificates because you excel in all of them. But you actually need only one common certificate from the university no matter how many separate departments you excel in.

we can think Virtual inheritance as "Share on copy" rule.

In your example, since there is no diamond problem, writing "virtual" doesn’t change the behaviour.

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

79744505

Date: 2025-08-23 19:05:29
Score: 1
Natty:
Report link

You can use the vuetify defaults options in your config:

import { createVuetify } from 'vuetify'

export default createVuetify({
  defaults: {
    VBtn: { variant: 'outlined' },
  },
})
Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: vvjns

79744497

Date: 2025-08-23 18:52:26
Score: 2
Natty:
Report link

use onSquareClick instead of onPieceClick.

Also go through the docs for any other information

https://react-chessboard.vercel.app/?path=/docs/how-to-use-basic-examples--docs

 <Chessboard 
       id="click-test"
        position={position}
        onSquareClick={onSquareClick}
      />
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Smart Technology

79744495

Date: 2025-08-23 18:50:26
Score: 0.5
Natty:
Report link

This is tedious, but finally I got this to work as described. It is a pity that Microsoft does not add a function to do this in a more straightforward and intuitive way, maybe on the [Format Picture] dialog box.

I would add that the default [Properties] in the [Format Graphic] dialog is "Move, but don't size with cells" - I changed this to "Move and size with cells" - since I was using symbols in the header row. On the other hand, if (say) a picture of a person in a directory spreadsheet was important, it may be best to expand the cell to fit the picture (presumably sized at the outset to some standard size).

Also, I notice that when an image or icon is selected, the [Alignment] tab on the [Home] ribbon is dimmed-out. It would be nice to be able to align left, centre or right. For example.

I also tried this with:

I dragged the selected icon to the desired cell, then snapped the edges to of the icon to the cell borders - while holding down the [Alt] key. This left me with a distorted icon ratio.

Then, in the (right-click) {Format Graphic] dialog box (expand [Size]) I de-selected "Lock aspect ration" then manually changed the width (or height, as appropriate). However, before I did that, I calculated the height to width ratio of the original icon, and used that ratio to determine the appropiate width (or height) to enter.

Having done that, there appears to be no way to centre the resized icon within the cell. It defaults to left alignment when, I suspect most folks would prefer it to default to centre alignment. The only way is to manually move the icon using repeated [right arrow] clicks. This is, again, tedious.

Surely the Microsoft office team could embed a function to automate this in the [Format Graphic] / [Size and Properties…] - it seems both lead to [Format Graphic].

~~

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

79744484

Date: 2025-08-23 18:29:21
Score: 3
Natty:
Report link

There was a kotlinconf talk that built this https://2025.kotlinconf.com/talks/800713/, check it out.

Reasons:
  • Blacklisted phrase (0.5): check it out
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: efemoney

79744478

Date: 2025-08-23 18:22:19
Score: 1
Natty:
Report link

You are forced to compile the class with javac to get the headers.
The command consists of three parts.
-h is the directory where the headers go.
-d is the directory where classes go.
Finally comes the source file.

So new javah built inside javac works like this:
javac.exe -h C:/output/file_headers -d C:/output/classes C:/src/HelloC.java

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

79744452

Date: 2025-08-23 17:17:04
Score: 4
Natty:
Report link

yes, you could use subprocess in python

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: حسین کرمی

79744443

Date: 2025-08-23 16:56:00
Score: 1
Natty:
Report link

For those using cookies like me:

Click on cookies:

ss

Then add your jwt:

enter image description here


How to get the jwt token
function verifyToken(req, res, next) {
    console.log(req.cookies) // log it here
    const token = req.cookies.jwt
    const decoded = jwt.verify(token, JWT_SECRET)
    ...
    next()
}

Click on ⓘ then cookies:

enter image description here

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

79744435

Date: 2025-08-23 16:43:57
Score: 1.5
Natty:
Report link

Run this command in the terminal before starting the session

tmux set -g mouse on

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

79744434

Date: 2025-08-23 16:42:57
Score: 2.5
Natty:
Report link

Open the edit configurations and check modify options.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mahesh Shivaji Mane.

79744431

Date: 2025-08-23 16:38:56
Score: 2
Natty:
Report link

My personal choose is MVC. Reason: you don't get any benephits paying with code complexety and maintainability.

Here is article about performance testing:
https://medium.com/@flexcainfo/springboot-choosing-between-mvc-and-reactive-for-your-next-project-7436fb4db877

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: alexey28

79744426

Date: 2025-08-23 16:32:54
Score: 1
Natty:
Report link

:has() is widely available since 2023

const label = document.querySelector('label:has(input)')
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Nermin

79744420

Date: 2025-08-23 16:24:52
Score: 2.5
Natty:
Report link

Request URL

https://applicant.myintealth.app/s/sfsites/aura?r=20&aura.ApexAction.execute=1

Request Method

POST

Status Code

200 OK

Remote Address

95.101.22.184:443

Referrer Policy

origin-when-cross-origin

Response Headers

Request Headers

Network Log Row Name: aura?r=20&aura.ApexAction.execute=1/s/sfsites

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Zelalem Forever

79744407

Date: 2025-08-23 16:13:49
Score: 3.5
Natty:
Report link

I think the file ".ycm_extra_config.py" should be ".ycm_extra_conf.py".

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

79744399

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

I'm not sure if it's a problem that I have session_start(); in two places—in index.php and login.php. If I remove it from one of these files, logging in on the site doesn't work, so I guess it has to stay.

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

79744391

Date: 2025-08-23 15:55:45
Score: 2
Natty:
Report link
SESSION_DRIVER=database

Should be = cookie

not database

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

79744384

Date: 2025-08-23 15:49:43
Score: 1
Natty:
Report link

I got this error "Protocol Error 0x0F: Insufficient Encryption" in bleak when I tried to detect services with their provided service_explorer.py-script when the device was not paired correctly.

So I used windows-bluetooth to connect to the bluetooth device and entered the provided pin from the device to connect.

After that running the service_explorer.py again and the "Insufficiant Encryption"-Error was gone.

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

79744382

Date: 2025-08-23 15:44:42
Score: 3
Natty:
Report link

Using PowerShell on Windows generated same error, using Command Prompt was fine. Make sure you use Command Prompt instead of PowerShell when running this on Windows.

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

79744379

Date: 2025-08-23 15:39:40
Score: 4
Natty: 5
Report link

I ran into the same issue and tried all the suggested solutions, but nothing worked—until I simply restart. That did the trick. You guys should definitely give that a shot.

Reasons:
  • Blacklisted phrase (1): but nothing work
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gokul nath

79744376

Date: 2025-08-23 15:38:40
Score: 2
Natty:
Report link

VERY LATE ADDITION here, but in Virtual Studio code, check your MSFT C/C++ extension settings. I had the same issue which got resolved when changing my C_Cpp > Default : Compiler args. It was originally on the C++03 version, change it to a version that has the std::array

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

79744368

Date: 2025-08-23 15:25:37
Score: 2
Natty:
Report link

You can do this with Server-side rendering (SSR). I don't know what kind of tools/build chain you are using with react, but Vite supports SSR for example, Next.js does as well. The question is rather generic, but this answer should put you in the right direction.

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

79744365

Date: 2025-08-23 15:23:36
Score: 1
Natty:
Report link

I have only one submodule, so I did

git submodule foreach git checkout <SHA>

and everything were reverted successfully

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

79744352

Date: 2025-08-23 15:08:32
Score: 2.5
Natty:
Report link

Also, check if the "UserName" and "NormalizedUserName" columns contain the values you expect; those are what you need for login. For me, it somehow became the name instead of the email address.

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

79744351

Date: 2025-08-23 15:07:32
Score: 2.5
Natty:
Report link

This is how you can do the Caesar cipher simply. In this code, if you enter a number greater than 26, it won’t cause any errors. For example, if you enter the word ‘Apple’ and a shift value of 123, the code will automatically wrap around the alphabet and perform the shifts correctly and the out put would be 'tiiex'.

If you run into any errors, please let me know.

try:
    word = input("Enter a word: ")
    shift = int(input("Enter the number of times that you want to shift: "))
    letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m",
               "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]

    cipherText = ""

    for char in word.lower():
        if char in letters:
            index = letters.index(char)
            newIndex = (index + shift) % 26
            cipherText += letters[newIndex]
        else:
            cipherText += char

    print("Encrypted word:", cipherText)
except ValueError:
    print("Please enter a valid input.")
Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tej

79744340

Date: 2025-08-23 14:53:28
Score: 2
Natty:
Report link

Use a small controlled dataset with known expected results. Validate each join/aggregation step separately using COUNT()/SUM().
Tool: https://www.db-fiddle.com
Tips & sample queries → Search @PythonCodeWithYogendra SQL Testing.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @PythonCodeWithYogendra
  • Low reputation (1):
Posted by: Yogendra Singh

79744337

Date: 2025-08-23 14:52:28
Score: 3.5
Natty:
Report link

I build internet speed test for checking actual internet speed.
Demo: https://mamedul.github.io/ispeedtest

Codes git: https://github.com/mamedul/ispeedtest

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

79744328

Date: 2025-08-23 14:29:22
Score: 1.5
Natty:
Report link

Delete the stray ~ folder in site-packages, run pip cache purge, then install the correct PyAudio wheel for Python 3.11 from Gohlke’s site using python -m pip install <whl> instead of pip install pyaudio

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

79744280

Date: 2025-08-23 13:23:09
Score: 1.5
Natty:
Report link
gsutil -m cp -R /home/$USER gs://BUCKET_NAME

use multiprocessing gsutil

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

79744276

Date: 2025-08-23 13:17:07
Score: 3
Natty:
Report link
header 1 header 2
Start game moaz watching the film
Run with police win game
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Body Zaki

79744231

Date: 2025-08-23 12:47:01
Score: 3
Natty:
Report link

It might be too late, but if you have already set android:inputType="textMultiLine" and it still doesn't work, try setting android:maxLines to some number, and it should be fixed.

Reasons:
  • RegEx Blacklisted phrase (2): it still doesn't work
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Amir

79744228

Date: 2025-08-23 12:43:00
Score: 2
Natty:
Report link

Go to Source Control Settings > Views and check "Repositories" and "Changes"

Image VSCode-1

Select in "Repositories" list all repos you need via "CTRL" or "SHIFT" and click

Image VSCode-3

Go to Source Control Settings and hide "Repositories"

Finally you have all desired repositories in "Changes" view.

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

79744203

Date: 2025-08-23 12:04:51
Score: 5
Natty: 5
Report link

here I answer deep about in my website https://www5star.health.blog/2025/08/19/aeo-vs-seo-how-to-rank-in-googles-ai-powered-search/

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

79744201

Date: 2025-08-23 12:00:50
Score: 1.5
Natty:
Report link

You don’t have to add a network_security_config.xml unless your app needs custom rules (like allowing cleartext HTTP traffic, trusting custom CAs, or disabling certificate pinning for debug builds).
By default, on API 28+ (Android 9 and up), cleartext (HTTP) traffic is blocked unless you explicitly enable it via network_security_config. If your app only uses HTTPS and doesn’t need special exceptions, you’re fine without that file.

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

79744196

Date: 2025-08-23 11:52:48
Score: 4
Natty:
Report link

This usually happens if you have msys2 installation on Win7 and upgrade the packages to a version compatible only with win10+. The new OS has additional exports in its kernel and some libraries; these exports were not in place on Win7, so loader will fail.

While the question here is clearly about Cygwin rather than Msys2, similar solutions may apply - keep your runtime libraries in a version which still supports Win7, if you want to continue using that OS.

Details for Msys2 are here:
Is it possible to install MSYS2 on Windows 7?

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: mefistotelis

79744177

Date: 2025-08-23 11:06:37
Score: 2.5
Natty:
Report link

you can store token inside redis or backend (on memory) and you just need to store session id and send backend session in frontend . so you don't need store large jwt token in cookie or other storages .

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

79744174

Date: 2025-08-23 11:00:36
Score: 4
Natty:
Report link

7

I was referring to the same test example at https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-test.html#62f6e1cb facing the same error. As far as I understand you can run tests for android only from terminal: "Currently, you cannot run common Compose Multiplatform tests using android (local) test configurations, so gutter icons in Android Studio, for example, won't be helpful."

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): facing the same error
  • Low reputation (1):
Posted by: ghafar nosrati

79744166

Date: 2025-08-23 10:42:32
Score: 2.5
Natty:
Report link

Unfortunately I don't have a solution for this, but I'm experiencing the same issue right now and it appears to be a known issue with the API at this time.
https://github.com/LibraryOfCongress/api.congress.gov/issues

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

79744160

Date: 2025-08-23 10:22:28
Score: 2.5
Natty:
Report link

Install latest version of nodejs-(LTS) in your system
you might have running older version of node

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

79744156

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

Looks like this issue comes from Astro’s internal Vite. In the meantime, you can just run npm update vite to bump the version manually.

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

79744140

Date: 2025-08-23 09:45:19
Score: 1
Natty:
Report link
#!/bin/sh
if [ "$var1" != "${var1%mtu *}" ]; then
    echo "Matches, do something"
fi

If the pattern doesn't match its value will be equal to the variable. If there's a match (even with % or #) it will return something else... and we're good to go :)

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

79744135

Date: 2025-08-23 09:34:17
Score: 0.5
Natty:
Report link

So, getting the elephant out the way first. "Append" means "Insert at the end [of something]" and "Prepend" means "Insert at the beginning [of something]".

Now that we know the difference between "append" and "prepend". I'd like to mention that <Element>.append() exists.

And also that the ".appendChild()" is, more specifically: <Node>.appendChild().

It makes more sense now to compare <Element>.append() with <Node>.appendChild() than <Element>.prepend() with <Node>.appendChild(), now that we know the difference between the words "prepend" and "append".

So, first. Note that one is a method of <Element> whilst the other is a method of <Node>. If you look at the linked MDN page of <Element> you'll see that an <Element> "is" a <Node> (but not all nodes are elements).

If you're reading this, you probably know what an element is, but what is a node? Well, a simple way to figure out that is to look at the types of nodes that exist. You can also find that information on MDN, but for your convience, a screenshot has been provided below:

Image of all Node Types

Most notably, however. Or rather, the only other node that I remember is the "text node". This is an example of a text node:

Example of a text node

I'm sure you've seen this before, it's an example of a child node, that isn't an element.

This distinction is important, since you may be iterating on <Element>.childNodes, and wondering why all of a sudden ".append() is not a function" when you've obviously used in a million times. The solution there would be to use <Element>.children or .appendChild().

Let's start talking about some of the differences.

TL;DR .append() is better than .appendChild() in practically every way.

For starters, you can directly append text nodes as strings:

- parent.appendChild('This is some text.'); // Error
+ parent.append('This is some text.'); // Totally fine.

You would need to create a text node:

+ parent.appendChild(document.createTextNode('This is some text.')); // Fine.

Also, .appendChild() returns the Node. Whereas, .append() simply returns undefined. Wait, this is actually inconvenient.

But, .appendChild() is also just much more stricter, take a look at the list of throw cases for this exception: Image of an extract of MDN

Versus (for .append())... Image of an extract of MDN - showcasing only one throw case

You can also .append() multiple nodes at once... whereas you can only .append[ASingleNode]Child() at a time.

Which means this will work:

// Move all pinned tasks to the top of the to-do list.
todoListElem.prepend(...todoListElem.childNodes.values().filter((taskElem) => taskElem.classList.includes('pin'));

Okay, but I why?

Well, it's quite simple. <Node>.appendChild() is old. It comes from the original, foundational, DOM API. And that API was designed to be very precise, low-level, or let's just say, it was a lot more "computer scientist" than "web developer". After all, those the were the people who created it. The generic idea was "This method will do one thing, and do it explicitly".

That's why .appendChild() is purposefully so strict.

.append(), is a modern "addition" - actually, the whole "Element" API is an "addition", that was built "on top" of the "Node". So, it contains everything from the past... and more (for backwards-compatiability, ensuring all old websites still work and whatnot).

This newer API, developed by web developers, just looked at how people (and themselves ig) were using the existing methods and just made life more convenient for everyone. So, now we don't have to manually create a text node.. every. single. time. The .append() does that for us internally.

One thing that is less convenient though, is the return value. If everything is supposed to be easier - why the hell would you return "undefined"? Method-chaining is awesome!

The reason is quite simple. Since you can append multiple elements, what should the return value be?

Okay, the natural conclusion is an array of nodes (included newly created nodes, e.g; String -> TextNode, return TextNode). But now, if there's one node, do we return just that one node and array... with just one node inside of it? There's pros and cons to both (I'd recommend the array).

Another issue is just performance, creating an array every single time you append, is too much - maybe not for your web project, but JavaScript (and the DOM API) is built for a wide variety of project types, and for some, performance is important (JS is already slow enough as it is - compared to other languages), and the DOM API is a very critical point. Simply put: undefined is the cheapest and fastest option.

And finally, you could say it's also to encourage best practices. While method-chaining is really useful sometimes, it can lead to unreadable code. The forceful removal that, makes your code a more straight-forward list of excutable tasks. Like:

// 1. Create and collect your nodes
const div = document.createElement('div');
const span = document.createElement('span');
const nodesToAdd = [div, span];

// 2. Configure them
nodesToAdd.forEach(node => node.classList.add('new'));

// 3. Perform the DOM operation
parent.append(...nodesToAdd);

// 4. ...

Which is a lot more nicer than...

parent.append(document.createElement('div'), document.createElement('span')).forEach(node => node.classList.add('new'));

Albeit, I'd say that a competent developer would learn to not do that anyways, and the programming language shouldn't be the one to enforce best practices. However, I don't think this is actually the case, since modern JS usually does what I prefer: a slight nudge / encouragement, like how: <Document>.getElementById('myElement') (old & strict method, heavily encourages you to use only one, unique ID in your HTML code). But modern JS gives you the option of document.querySelectorAll('#myElement');. Although, you could also argue that that is just an "unfortunate" consequence / a "negative" side-effect of using CSS selectors.

Anyways, I went on a little tangent - hope all your questions were answered.

Reasons:
  • Blacklisted phrase (0.5): why?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Looks like a comment (1):
Posted by: Tigerrrrr

79744131

Date: 2025-08-23 09:25:15
Score: 2
Natty:
Report link

This is called View Ttransition.
You have a tutorial here : View Transitions but be carefull, this don't work yet on firefox.
You need a litle Javascript to make the transition between pages.

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

79744128

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

https://camel.apache.org/components/languages/simple-language.html#\_loading_script_from_external_resource

It is simple component which provides the feature.

.setBody(simple("resource:classpath:file.txt"))

File must obviously be present at route compile time, not at its execution.

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

79744118

Date: 2025-08-23 08:54:08
Score: 5
Natty:
Report link

I used another package which is this one : https://pub.dev/packages/angur_html_to_pdf

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

79744116

Date: 2025-08-23 08:47:07
Score: 0.5
Natty:
Report link
Thanks all guys, who answered. For me the next code works fine:

public static async Task DragAndDrop(ILocator source, ILocator target, IPage page)
{
   var sourceBox = await source.BoundingBoxAsync();
   var targetBox = await target.BoundingBoxAsync();

   await page.Mouse.MoveAsync(sourceBox.X + sourceBox.Width / 2,     sourceBox.Y + sourceBox.Height / 2);
   await page.Mouse.DownAsync();
   await page.Mouse.MoveAsync(targetBox.X + targetBox.Width / 2, targetBox.Y + targetBox.Height / 2, new() { Steps = 20 });
   await page}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Андрей Быков

79744111

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

Instead of read -s -r -N 1 use read -e -s -r -N 1 call. Here only addition is the -s switch which tells read to use readline library for input and then only read will be able to understand arrow keys and other complex keystrokes.

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

79744108

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

For those looking for multiple staging areas in Git, git-cl provides this functionality.

Instead of repeatedly cycling through git add -p, you can organise changes by intent at the file level:

git cl add bugfixes solver.py utils.py        # Bug fixes
git cl add features analysis.py plotting.py   # New features  
git cl status                                 # See organised changes
git cl commit bugfixes -m "Fix convergence issues"

For scenarios involving many smaller commits from a large changeset, you can organise changes as you work (git cl add hotfix equations.py) then commit each logical group when ready. This solves the multiple staging area problem while working with Git's existing staging model

https://github.com/BHFock/git-cl

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

79744094

Date: 2025-08-23 07:56:56
Score: 1
Natty:
Report link

I just deleted my android folder and then created again by using "flutter create ." command and it worked for me

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

79744093

Date: 2025-08-23 07:54:56
Score: 3
Natty:
Report link

This page from ish should help. Remember that the popup keyboard has a carrot that is the CTRL key. So you can always press the ^ and C to stop any active ish process/program. https://ish.app/?ref=BetaPage

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

79744084

Date: 2025-08-23 07:42:52
Score: 4
Natty:
Report link

By combination of the solution from
https://stackoverflow.com/a/79700580/22944268
https://stackoverflow.com/a/79738017/22944268

i was able to get the answer the question "How to pass data from an MCP client to an MCP server in Java with Spring AI?"

i tried this implementation and it worked.

Thank you for everyone's contribution.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): it worked
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Alanta335

79744078

Date: 2025-08-23 07:34:50
Score: 7
Natty: 5
Report link

But, usestate doesn't work, it has no effect on the const. What could be the problem?

Reasons:
  • Blacklisted phrase (1): What could be
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Chris J

79744075

Date: 2025-08-23 07:33:49
Score: 11
Natty: 6.5
Report link

Please suggest a solution for why my gmail api shows a 500 internal server error when I push my code to production. In localhost, they show 200ok status, but when I push my code to the production branch so they show a 500 error. Can someone please help me?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (2.5): Please suggest a solution
  • RegEx Blacklisted phrase (3): please help me
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zeeshan

79744073

Date: 2025-08-23 07:24:47
Score: 1
Natty:
Report link

from moviepy.editor import *

# Create a simple solid background (red)

bg_clip = ColorClip(size=(720, 480), color=(200, 50, 50)).set_duration(5)

# Add a simple moving rectangle (just for random fun effect)

rect = ColorClip(size=(200, 100), color=(50, 200, 50)).set_duration(5)

rect = rect.set_position(lambda t: (50 + int(t*100), 200)) # moves horizontally

# Combine background + rectangle

final_clip = CompositeVideoClip([bg_clip, rect])

# Export random video

output_path = "/mnt/data/random_demo.mp4"

final_clip.write_videofile(output_path, fps=24)

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

79744069

Date: 2025-08-23 07:14:44
Score: 2
Natty:
Report link

The difference comes from how Ruby parses line breaks and arguments inside parentheses
in your second case:
puts(x
-y)
Ruby doesnt see this as (x-y)
it actually parses it as (x,-y)
to get expected -1:
puts(x-y)
or
puts(x\
-y)
this isn't a bug just rubys parsing rule

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

79744055

Date: 2025-08-23 06:52:40
Score: 1.5
Natty:
Report link

val comicConStuff = context.assets //or just assets if you are in the context

.open("CSV files/ComicCon.csv")

.bufferedReader()

.use { 

    it.readText() 

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

79744047

Date: 2025-08-23 06:35:37
Score: 0.5
Natty:
Report link

I found out myself, I had to comment out a line from the template:

dependencies {
    testImplementation(libs.junit)
    testImplementation(libs.opentest4j)

    // IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
    intellijPlatform {
        // create(providers.gradleProperty("platformType"), providers.gradleProperty("platformVersion"))

        // Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins.
        bundledPlugins(providers.gradleProperty("platformBundledPlugins").map { it.split(',') })

        // Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file for plugin from JetBrains Marketplace.
        plugins(providers.gradleProperty("platformPlugins").map { it.split(',') })

        // Module Dependencies. Uses `platformBundledModules` property from the gradle.properties file for bundled IntelliJ Platform modules.
        bundledModules(providers.gradleProperty("platformBundledModules").map { it.split(',') })

        testFramework(TestFrameworkType.Platform)

        webstorm("2025.2")
    }
}
Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: yhu420

79744040

Date: 2025-08-23 06:11:32
Score: 0.5
Natty:
Report link

Now you can directly use boxShadow property in React Native,

boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)",
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Mishen Thakshana

79744039

Date: 2025-08-23 06:11:32
Score: 1.5
Natty:
Report link

I know this was posted a while ago however I created my own sitemapdotnet library here which aims to be a replacement for the System.Web sitemap in NetFW. I hope this helps!

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: William Jones

79744025

Date: 2025-08-23 05:41:25
Score: 2.5
Natty:
Report link

Everything seems to be fine. And if you receive data on the terminal over UART the transmission seems to work. But it looks that the dataword from your string is not processed correctly. If you use a function in Microchip Studio with a pointer i prefer to work with the pointer and not switch to an other notation:

Please adapt your Terminal_SendString-function as following:

void Terminal_SendString(const char* str)
{
    while(*str != '\0')
    {
        USART0_Transmit(*str);
        str++;
    }
}

And check it out in your main:

Terminal_SendString("This is a test\n\r");

Also it is possible to send some single chars and try if they are transmitted correctly:

USART0_Transmit('T');
USART0_Transmit('e');
USART0_Transmit('s');
USART0_Transmit('t');
USART0_Transmit('\n');
USART0_Transmit('\r');

If the single transmission of a character does not work there maybe is a missconfiguration of the baudrate within UBRR?!

Please provide me some feedback in the comments if anything is unclear or does not work.

Reasons:
  • Blacklisted phrase (0.5): check it out
  • RegEx Blacklisted phrase (2.5): Please provide me some
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: sunriax

79744021

Date: 2025-08-23 05:22:21
Score: 2
Natty:
Report link

As of v0.16.22 KaTex does now support \boxed{}

https://katex.org/docs/supported.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Nickson Yap

79744020

Date: 2025-08-23 05:21:20
Score: 5.5
Natty: 5
Report link

Use the tool in the below video :
https://www.youtube.com/watch?v=ssMsU2DFtsk

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gyaneshwor Gaud

79744018

Date: 2025-08-23 05:17:19
Score: 1
Natty:
Report link

When tint is on, the text (or icon) is first turned into a mask, then filled with the tint color. The shadow is applied on this tinted version, not on your original text. That’s why it no longer looks pure black.

Opt out of tint for the text (e.g. with foregroundColor(.white) or symbolRenderingMode(.multicolor)) so the shadow always stays black.

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: AMIRKIAN

79744013

Date: 2025-08-23 05:00:14
Score: 15
Natty: 5.5
Report link

I have the same issue, were you able to figure it out?

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (3): were you able to figure it out
  • RegEx Blacklisted phrase (3): were you able
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rehan Ganapathy

79744009

Date: 2025-08-23 04:39:10
Score: 1
Natty:
Report link

The "AAAA..." pattern indicates you're getting null bytes in your buffer. The issue is that ReadAsync(buffer) doesn't guarantee reading the entire stream in one call.

Use CopyToAsync() with a MemoryStream instead:

    private async Task HandleFileSelected(InputFileChangeEventArgs e)
    {
        var file = e.File;
        fileName = file.Name;

        using var stream = file.OpenReadStream(maxAllowedSize: 10 * 1024 * 1024); // 10 MB limit
        using var memoryStream = new MemoryStream();
        await stream.CopyToAsync(memoryStream);

        var bytes = memoryStream.ToArray();
        base64String = Convert.ToBase64String(bytes);
    }

Working Sample for reference: https://github.com/Udhaya013/CodeLSC-Samples/blob/04922d3f913886c526f65f89e4805c255f9ca45f/Blazor-Image-To-Base64/ImageTObase64/Components/Pages/Home.razor#L22

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

79744005

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

Your application failed to establish tcp connection with your database. Is the database actually running? check if you can connect to the address and port using telnet command or database client of your choice

https://debugly.pages.dev?trace=H4sIANA8qWgCA-1aW2_bNhR...

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sangmin Lee

79743998

Date: 2025-08-23 03:32:57
Score: 3
Natty:
Report link

#include <studio.h>

main()

{

printf("Hello World");

printf("ok");

getch();

}

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

79743992

Date: 2025-08-23 03:14:52
Score: 5.5
Natty:
Report link

This is my current approach for the migration,
Hope this can be helpful for someone and feel free to give any suggestions!
hakudevtw/sample_nextjs-i18n-dual-router-migration

Reasons:
  • RegEx Blacklisted phrase (2): any suggestions
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Haku

79743991

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

# Convert the final artistic logo image to JPG format

from PIL import Image

# Load the artistic PNG

png_path = '/mnt/data/painting_with_roro_rrf_logo_artistic.png'

jpg_path = '/mnt/data/painting_with_roro_rrf_logo_artistic.jpg'

# Open and convert to RGB (JPG doesn't support alpha)

img = Image.open(png_path).convert("RGB")

img.save(jpg_path, "JPEG", quality=95)

jpg_path

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

79743984

Date: 2025-08-23 02:50:47
Score: 2.5
Natty:
Report link

No don't switch database, or trust LLM suggestions for something this complex. Something is incomplete with your rails upgrade. It's hard to tell without finding out more specific details. I help companies upgrade Rails apps, would be happy to discuss what may be wrong with the upgrade with you.

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

79743978

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

As @furas commented, it is not possible to diagnose why you keep getting stuck in a loop where the user is logged into the account and it tries to redirect to /home without seeing your code sample. But I would like to share a very simplified example of how I was able to implement some security to my website so that only users that are logged in can use certain pages.

https://github.com/code50/112825123/blob/main/cs50x/flask/finance/app.py

I used the @login_required decorator provided by the Flask-Login extension. It is used to protect routes (view functions) in a Flask application, ensuring that only authenticated users can access them.

As you can see, I have passed the @login_required decorator to all the routes except login, logout and register. Every time a user want to access a protected page, they will be redirected to the login page for authentication, which is rendered by the login view function. After a successful login, only then will this person access the home page.

Hopefully, this is helpful.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @furas
  • User mentioned (0): @login_required
  • User mentioned (0): @login_required
  • Low reputation (1):
Posted by: Dame Skytower

79743974

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

I wanted to share my experience with CapriRoutes because it might help anyone looking to set up VoIP or SMS services.

CapriRoutes offers both KYC and non-KYC options, multiple DID numbers for inbound and outbound, and really flexible routing. I initially wondered if KYC verification was necessary, but in my experience, going through it adds trust and reliability, especially if you’re reselling numbers or services to your own customers.

One thing I really appreciate is their API, which lets me integrate and even resell their services directly from my own platform. This makes it easy to offer voice, SMS, and DID management without building everything from scratch.

So yes, it’s not strictly mandatory to complete all verification steps, but the benefits—transparency, reliability, and professional credibility—are definitely worth it. As someone actively using and reselling their services, I can confidently recommend them.

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

79743972

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

I can understand that the OA wants to test the elements one at a time in the array, then append new elements to the array (to also test) when particular conditions are met.
i have not verified this in js, but most languages I have used allow you to add new elements to the end of the array at any step of a for loop.

I have used the same process for linearizing data trees into arrays.

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

79743964

Date: 2025-08-23 01:50:36
Score: 0.5
Natty:
Report link
enter image description hereimport pandas as pd
import pandas_ta as ta
import math
import matplotlib.pyplot as plt
import numpy as np

# Parameters
length = 14
k = 1.0
method = 'Atr'

# Data
data = pd.read_csv('data.csv')
close = data['Close']
high = data['High']
low = data['Low']
src = close

# --- Pivot Highs / Lows ---
def find_pivot_highs(data, length):
    pivot_highs = []
    for i in range(length, len(data) - length):
        if data[i] > max(data[i-length:i]) and data[i] > max(data[i+1:i+length+1]):
            pivot_highs.append(i)
    return pivot_highs

def find_pivot_lows(data, length):
    pivot_lows = []
    for i in range(length, len(data) - length):
        if data[i] < min(data[i-length:i]) and data[i] < min(data[i+1:i+length+1]):
            pivot_lows.append(i)
    return pivot_lows

ph = find_pivot_highs(high, length)
pl = find_pivot_lows(low, length)

# --- Slope Calculation ---
def calculate_slope(method='Atr', length=length, k=k):
    if method == 'Atr':
        return ta.atr(high, low, close, length) / length * k
    elif method == 'Stdev':
        return ta.stdev(src, length) / length * k
    else:
        # Default fallback if Linreg is not defined
        return pd.Series([0]*len(close), index=close.index)

slope = calculate_slope()

# --- Trendlines ---
slope_ph = [slope[i] if i in ph else 0 for i in range(len(close))]
slope_pl = [slope[i] if i in pl else 0 for i in range(len(close))]

upper = [0]*len(close)
lower = [0]*len(close)

for i in range(len(close)):
    if i in ph:
        upper[i] = src[i]
    elif i > 0:
        upper[i] = upper[i-1] - slope_ph[i]

    if i in pl:
        lower[i] = src[i]
    elif i > 0:
        lower[i] = lower[i-1] + slope_pl[i]

# --- Breakouts ---
upper_breakout = [close[i] > upper[i] for i in range(len(close))]
lower_breakout = [close[i] < lower[i] for i in range(len(close))]

# --- Trading strategy ---
trades = []
trade_type = None
entry_price = None
stop_loss = None
take_profit = None

for i in range(len(close)):
    if trade_type is None:
        if upper_breakout[i]:
            trade_type = 'Long'
            entry_price = close[i]
            stop_loss = entry_price - 0.02*entry_price
            take_profit = entry_price + 0.03*entry_price
        elif lower_breakout[i]:
            trade_type = 'Short'
            entry_price = close[i]
            stop_loss = entry_price + 0.02*entry_price
            take_profit = entry_price - 0.03*entry_price
    else:
        if trade_type == 'Long' and (close[i] <= stop_loss or close[i] >= take_profit):
            trades.append((entry_price, stop_loss, take_profit))
            trade_type = None
        elif trade_type == 'Short' and (close[i] >= stop_loss or close[i] <= take_profit):
            trades.append((entry_price, stop_loss, take_profit))
            trade_type = None

# --- Metrics ---
total_trades = len(trades)
positive_trades = sum(1 for t in trades if t[2] > t[0])
win_rate = positive_trades / total_trades if total_trades > 0 else 0

returns = np.array([(t[2]-t[0])/t[0] for t in trades])
cumulative_returns = returns.sum()
sharpe_ratio = (returns.mean() - 0.01) / (returns.std() + 1e-9) if len(returns)>1 else 0
sortino_ratio = (returns.mean() - 0.01) / (returns[returns<0].std() + 1e-9) if len(returns[returns<0])>0 else 0
profit_factor = sum([t[2]-t[0] for t in trades if t[2]>t[0]]) / max(abs(sum([t[2]-t[0] for t in trades if t[2]<t[0]])),1e-9)

print(f"Total Trades: {total_trades}")
print(f"Positive Trades: {positive_trades}")
print(f"Win Rate: {win_rate*100:.2f}%")
print(f"Cumulative Returns: {cumulative_returns*100:.2f}%")
print(f"Sharpe Ratio: {sharpe_ratio:.2f}")
print(f"Sortino Ratio: {sortino_ratio:.2f}")
print(f"Profit Factor: {profit_factor:.2f}")

# --- Plot ---
plt.figure(figsize=(12,6))
plt.plot(close, label='Close')
plt.plot(upper, label='Upper Trendline', color='#26a69a')
plt.plot(lower, label='Lower Trendline', color='#ef5350')

for i in range(len(close)):
    if upper_breakout[i]:
        plt.scatter(i, close[i], marker='^', color='r')
    if lower_breakout[i]:
        plt.scatter(i, close[i], marker='v', color='g')

plt.legend()
plt.show()
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohsen Atyyat

79743959

Date: 2025-08-23 01:35:32
Score: 5
Natty: 4
Report link

Have you solved this problem? I got exactly same error message of singularity warning when performing hmftest.

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

79743955

Date: 2025-08-23 01:11:27
Score: 2
Natty:
Report link

While Luca C.'s answer is specific on textarea element selection with :placeholder-shown and jQuery, I want to answer the more specific question Is there a way that I can select a textarea such that $('#id_of_textarea').val() in jQuery will be ''? combined with the following Is there an attribute for the text in a textarea?


While there is no attribute for the text in a textarea to select, if you refer to Attribute Selectors you have no other choice but to first add your own data-* attribute to the textarea element...

...but if you instead refer to specifically style the placeholder div element and text, you can simply use the ::placeholder pseudo-element like this:

textarea::placeholder {
  /* style properties */
}

thus these styling properties will apply only when the textarea has a placeholder text and has no "value" text

Reasons:
  • Blacklisted phrase (1): Is there a way
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jack

79743949

Date: 2025-08-23 00:50:23
Score: 3
Natty:
Report link

Receive SMS online instantly at receivesmsfree.org. Use our free temporary numbers to verify accounts on Gmail, Facebook, WhatsApp, Telegram, TikTok and more. Fast, simple, no registration required.

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

79743944

Date: 2025-08-23 00:40:20
Score: 1.5
Natty:
Report link

I want to comment in a PR and trigger a check on that PR (not on master)

I think all the other answers are missing this point. They all test things on your branch as opposed to main but they do not report these tests on the PR without creating a commit.

To report things on your branch you'll need to handle commit creation:

- name: Get PR info and set pending status
        id: pr
        uses: actions/github-script@v7
        with:
          script: |
            const { data: pr } = await github.rest.pulls.get({
              owner: context.repo.owner,
              repo: context.repo.repo,
              pull_number: context.issue.number
            });
            
            await github.rest.repos.createCommitStatus({
              owner: context.repo.owner,
              repo: context.repo.repo,
              sha: pr.head.sha,
              state: 'pending',
              target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
              description: 'Running integration tests...',
              context: 'Integration Tests'
            });
            
            core.setOutput('head_sha', pr.head.sha);
            core.setOutput('head_ref', pr.head.ref);

and then set the final status:

      - name: Set final status
        if: always()
        uses: actions/github-script@v7
        with:
          script: |
            const state = '${{ job.status }}' === 'success' ? 'success' : 'failure';
            
            await github.rest.repos.createCommitStatus({
              owner: context.repo.owner,
              repo: context.repo.repo,
              sha: '${{ steps.pr.outputs.head_sha }}',
              state: state,
              target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
              description: `Integration tests ${state}`,
              context: 'Integration Tests'
            });

wrote a sample repo for this with the CI workflow:

https://github.com/luccabb/git-ci-pr-comment-automation

You can test for yourself on PR2, if you comment '/bot tests', it triggers a ci job that fails due to the changes introduced by the PR

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

79743932

Date: 2025-08-23 00:02:13
Score: 1.5
Natty:
Report link

I understand that you have done App Review, but there is a feature called Business Asset User Profile Access. This feature allows you to read information about the user.

In your Meta app developer dashboard, you should navigate to App Review > Permissions and Features, and explicitly search for the Business Asset User Profile Access feature and enable advanced access.

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

79743929

Date: 2025-08-22 23:56:11
Score: 3.5
Natty:
Report link

Fellows!

Found the solution. Just had to update my node installation to x64.

Thanks anyway to everyone!

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

79743924

Date: 2025-08-22 23:43:09
Score: 0.5
Natty:
Report link

Regarding your third question, if the disk is full requests will simply fail. There doesn't appear to be a way to solve this with the available config knobs, you have to simply enable min_free on proxy_cache_path and hope and pray you never get a request flood (and have enough bandwidth to the backend server) to fill your disk before the cache manager kicks in.

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

79743917

Date: 2025-08-22 23:20:04
Score: 0.5
Natty:
Report link
function isAllX(string) {
//pass the function argument to the variable str
 const str = string

 for(let i = 0; i < str.length; i++){
     if (str[i] !== 'x' && str[i] !== 'X' ) {
         return false
     } 
 }
    return true
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: abdulkareem alabi

79743916

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

I’ve faced the same issue when experimenting with secure messaging on EMV cards. From my experience, not every CLA/INS combination supports secure messaging — it usually works only with specific post-issuance commands defined in EMV Book 3. If you try to wrap arbitrary commands (like GET DATA) with CLA=8C or 84, most cards will simply return 6E00 (Class not supported).

In short: secure messaging needs proper TLV structure and is only valid for a limited set of commands. If you want to see an analogy, it’s a bit like how secure communication in apps (for example, telegram mod apk) only works when the app itself supports encryption — you can’t just “force” it on every action

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

79743906

Date: 2025-08-22 22:48:58
Score: 3
Natty:
Report link

for the new android studio versions, you find it here:

do it after the gradle project done importing once, toggle the icon in pink and you're good to go enter image description here

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

79743905

Date: 2025-08-22 22:47:58
Score: 1.5
Natty:
Report link

The INSERT...RETURNING clause was added to MariaDB in version 10.5.0, released on December 3, 2019.

Example:

INSERT INTO mytable
  (foo, bar)
VALUES
  ('fooA', 'barA'),
  ('fooB', 'barB')
RETURNING id;
``
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Geoff

79743898

Date: 2025-08-22 22:23:52
Score: 2.5
Natty:
Report link

flutter utilizza reg.exe per localizzare windows 10 sdk.

Serve che la directory contenente reg.exe sia nella variabile di ambiente PATH.

Consiglio di trovare reg.exe nei file di sistema e copiarlo c:\windows

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

79743888

Date: 2025-08-22 22:03:49
Score: 3.5
Natty:
Report link

Use span links for long running tasks.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: John-Paul Cunliffe

79743882

Date: 2025-08-22 21:50:46
Score: 1.5
Natty:
Report link

Just in case you can't get the code working, here is a formula that will display the last row containing data in column D: =AGGREGATE(14,6,ROW(D:D)/(D:D<>""),1)

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