79647804

Date: 2025-06-01 18:17:26
Score: 0.5
Natty:
Report link

Your WordPress site stores important settings in its database. When you reinstalled WordPress, new default data was created, overwriting the connections (pointers) to your old settings—but the old settings are often still there.

Here's how you can try to restore everything:

Create a Backup!

Back up all your files and the database now before you proceed.

Check Your Database Connection

Make sure the database credentials in your wp-config.php file are correct.

Activate Theme & Plugins

Log in to your WordPress admin, reactivate your theme (e.g., WoodMart) and your plugins. Some plugins might automatically retrieve their old settings, others might not.

Save Permalinks

Go to Settings > Permalinks and save them twice. This ensures your links function correctly.

Review Theme Settings

Sometimes theme settings get overwritten. If you have a backup, you might be able to restore these in the database (only do this if you know what you're doing).

Verify Data

WooCommerce orders, users, and products should still be present, as they're often stored in specific database tables.

Check Your Media

Look in your uploads folder to see if your images are still there.

Conduct a Security Check

After recovery, you should scan your site with a security plugin and change all passwords.

In short: Your database is still there, but WordPress created new connections. You now need to reactivate your theme, plugins, and links, and check if everything is running correctly.

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

79647803

Date: 2025-06-01 18:17:26
Score: 1.5
Natty:
Report link

Apparently this solved the issue...

-- Create a policy that allows authenticated users to read their own data
CREATE POLICY "Users can read their own profile" ON app_users
FOR SELECT 
TO authenticated 
USING (auth_id = auth.uid());
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: victor garcia exposito

79647802

Date: 2025-06-01 18:16:26
Score: 1.5
Natty:
Report link

Please upgrade Flutter to 3.32.1

Ref: https://github.com/flutter/flutter/issues/168849

Reasons:
  • Probably link only (1):
  • Low length (2):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Michał Dobi Dobrzański

79647798

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

Not sure this is a clean solution, but at least it is working.

Step one

make sure the annotation processing module has access to the com.sun.tools.javac.tree package by adding a add-exports command to JDK. In maven this is done by adding the following section in the maven-compiler-plugin config section:

<compilerArgs>
   <arg>--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
</compilerArgs>

If you are using an other build system, you can for sure find a way to pass this parameter to javac.

Step two

Make sure that the annotation processor "opens" the neccesary modules on runtime. To do this, I followed the same approach that lombok does here. Please note that I had to also copy much of the permit package.

Step three

Once acess to com.sun.tools.javac.tree is ensured, you can cast the public interface types from com.sun.source.tree to their actual implementation from com.sun.tools.javac.tree and gain access to the write operations. Strangely, this is not done through setters, but access to public fields. Not super consistent to java standards, but at least it is possible :)

For example, I casted LiteralTree -> JCTree.JCLiteral and swap my booleans (was the goal of my POC) like that:

if (tree instanceof JCTree.JCLiteral casted && casted.getKind() == Tree.Kind.BOOLEAN_LITERAL) {
    casted.value = Objects.equals(casted.value, 1)? 0 : 1;
}

Huge thanks to @slaw for pointing out the lombok code responsible for opening the packages. You should definately get the credit for this solution. Feel free to copy-paste this in its entirety or parts of it and I will mark it as accepted answer.

Opinion alert

Finally, I just wanted to note that am surprised that the public API "normaly" available to annotation processors do not allow AST modifications. They only provide read-access (probably useful for compile-time validations) and the ability to generate new files, but not to modify existing ones.

So, heavily hacking java9 modules and gain access to private packages seems to be the only way to go at the moment. This is at least what lombok does, and the only solution I found. I find this sad.

If AST modifications should not be allowed (for security or whatever), then there should be no "backdoor" to do so, and thus, lombok should not exist at all. Of course, this would be a massive hit to java's usability and popularity.

If on the other hand, AST modifications should be allowed (count my vote here), then there should be a clear, open, and documented API to do so. One should not need to hack their way through, by using sun.misc.Unsafe to open private packages. This is simply a messy and sad way to do things.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @slaw
  • Self-answer (0.5):
Posted by: Alkis Mavridis

79647792

Date: 2025-06-01 18:04:23
Score: 1.5
Natty:
Report link

Replace Stimulsoft.Reports.Engine with Stimulsoft.Reports.Engine.NetCore.

Source

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

79647787

Date: 2025-06-01 17:50:20
Score: 2.5
Natty:
Report link

It's not making sense to use and open new tab. we usually using to don't reload page so for new window/tap pages tag is good, use it

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

79647782

Date: 2025-06-01 17:45:18
Score: 1
Natty:
Report link

I was receiving this issue when running on iOS platform and tried flutter clean as recommended by people here but nothing worked for me except for deleting the podfile.lock and running pod install.

If you want a complete set of commands, copy/paste this into terminal:

cd ios
rm Podfile.lock
pod install
cd ..
flutter pub get
Reasons:
  • Blacklisted phrase (1): but nothing work
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mohammed Fareed

79647780

Date: 2025-06-01 17:45:18
Score: 3
Natty:
Report link

add libname with:

g++ -o -l picohttp -L

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

79647770

Date: 2025-06-01 17:31:15
Score: 1
Natty:
Report link

No, it is impossible to safely and universally “delete” cyclic links from the Enum objects themselves without violating their performance and structure, because:

Enum objects and related methaclasses (Enumtype) by definition have complex and cyclic internal connections (see their Source Code).

Changing the Enum inlands on the fly is a bad idea: this will lead to bugs and unexpected behavior.

The best and correct path:

Serialize enum objects as lines (Myenum.value.name or Myenum.value.value) and in decering to restore them along these lines (see the examples below).

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

79647767

Date: 2025-06-01 17:26:13
Score: 1.5
Natty:
Report link

It turned out to be very simple:

all I needed to do was to first group the controls and charts by selecting them all and doing Arrange > Group then add (again) the score card that I needed not be affected by the controls which would not be included in the previous grouping

after that selecting anything on the controls on the dashboard will not affect my out-of-group score card last added.

source: https://cloud.google.com/looker/docs/studio/apply-controls-to-specific-charts

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Francisco Cortes

79647766

Date: 2025-06-01 17:25:13
Score: 4
Natty:
Report link

You need to set the access control allow origin header in the API gateway. 'Options' request must have the conditions set for CORS.

Follow this article https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors-console.html

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Vashishtha Srivastava

79647764

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

It looks like your application cannot connect to the database server using JDBC. Because either you have wrong JDBC URL connection string, or have problems with the database driver, or you database is not running, or the connection cannot be established due to blocking network.

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

79647762

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

If you want to do a bunch in a day without Selenium go for Netnut proxies and the product is called Unblocker. you surely would be able to parse thousands in a day using REquests.

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

79647744

Date: 2025-06-01 16:56:06
Score: 2.5
Natty:
Report link

in your package.json, '@rstfx-ui/reset-dropdown-menu'is not present. Instead '@radix-ui/react-dismissable-layer' is present

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

79647742

Date: 2025-06-01 16:55:06
Score: 2
Natty:
Report link

I remember that earlier we used to get Filepaths in the input type file html tag. But I think the browser does not allow us to do that anymore. I dont think this will be possible to get filepaths

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

79647739

Date: 2025-06-01 16:51:00
Score: 7 🚩
Natty:
Report link

Try this video. It helped me sort this problem.

https://www.google.com/search?q=android+studio+error+metadata.bin+(The+system+cannot+find+the+file+specified)&rlz=1C1VDKB_enZA1099ZA1099&oq=android+studio+error+metadata.bin+(The+system+cannot+find+the+file+specified)&gs_lcrp=EgZjaHJvbWUyBggAEEUYOdIBCjEyMzc1ajBqMTWoAgiwAgE&sourceid=chrome&ie=UTF-8#fpstate=ive&vld=cid:2c2ecb63,vid:RCilI7QKmvY,st:0

Reasons:
  • Blacklisted phrase (2): Try this video
  • Blacklisted phrase (1): this video
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Paul Hinrichsen

79647737

Date: 2025-06-01 16:45:58
Score: 5.5
Natty:
Report link

Could you share to us what the library do you use that you have success to drive SSD1309?
maybe .c and .h library.

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you share
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mochamad Ari Bagus Nugroho

79647734

Date: 2025-06-01 16:40:57
Score: 1
Natty:
Report link

As Antd comes with different input types meaning different classNames. Check the input className using inspect, then add global css such as:
Inspect-Image

.ant-input-number-input::placeholder {
  color: #666 !important;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sara

79647718

Date: 2025-06-01 16:23:53
Score: 1.5
Natty:
Report link

add this to page

<style>
trix-editor {
    min-height: 300px !important;
}
</style>
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ihsan

79647714

Date: 2025-06-01 16:17:51
Score: 2
Natty:
Report link

I finally achieved what I wanted to do.
After clicking a button to choose the level, the composable AdditionScreen is called. I then compare the level value with the difficulty value from data. If it matches, nothing to do. If not, I call the updateGameDifficulty(level) function to update the difficulty, num1 and num2.

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

79647713

Date: 2025-06-01 16:16:51
Score: 1.5
Natty:
Report link

The above solution .carousel-dark has been deprecated in Bootstrap 5.3

I have used the following solution. Added:

data-bs-theme="dark"

to the carousel element

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

79647700

Date: 2025-06-01 16:03:48
Score: 3
Natty:
Report link

import CV from "../Assets/File/CV.pdf";

Download CV
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Md Mehedi Hasan

79647697

Date: 2025-06-01 16:00:47
Score: 4.5
Natty: 5
Report link

Here is a more complete list of the strange characters: https://www.i18nqa.com/debug/utf8-debug.html

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

79647692

Date: 2025-06-01 15:54:45
Score: 1.5
Natty:
Report link

You can use Hibernate Filter with Spring Boot JPA but you have to enable it. I think you are missing the code to enable it.
Refer to Using Hibernate Filter with Spring Boot JPA and How can I activate hibernate filter in Spring Boot (This one contains Git repo as an example too).

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

79647689

Date: 2025-06-01 15:50:44
Score: 0.5
Natty:
Report link

I managed to find a solution. I replaced flashcardSetRepository.delete(flashcardSet) with

flashcardSet.getUser().getFlashcardSets().remove(flashcardSet);

Full code:

@Transactional
public void deleteFlashcardSet(Long userId, Long flashcardSetId) {

    FlashcardSet flashcardSet = flashcardSetRepository.findById(flashcardSetId)
            .orElseThrow(() -> new ResourceNotFoundException("Flashcard set not found"));

    if(!flashcardSet.getUser().getUserId().equals(userId)){
        throw new UnauthorizedException("User does not have permission to delete this flashcard set");
    }

    flashcardSet.getUser().getFlashcardSets().remove(flashcardSet);
}

Now I don't have to use entityManager.clear() or direct query.

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

79647687

Date: 2025-06-01 15:50:44
Score: 1.5
Natty:
Report link

You just need to check if the device is touch-sensitive.

const isMobileDevice = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hùng Đỗ

79647682

Date: 2025-06-01 15:44:42
Score: 4
Natty:
Report link

I am become the following error when i compile for android. for linux desktop i have no errors

Error: Gradle task assembleDebug failed with exit code 1

Reasons:
  • RegEx Blacklisted phrase (1): i have no error
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Stefan

79647681

Date: 2025-06-01 15:42:41
Score: 7 🚩
Natty:
Report link

Unfortunately, such a flag is already set. Perhaps the problem is bad proxy certificates. Is there any way to make Chrome trust such proxies?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Cawendish Jag

79647677

Date: 2025-06-01 15:37:39
Score: 12
Natty: 7
Report link

I added the above codes in cart.twig in OpenCart 4.0.2.3, but it doesn't work. Can someone help me with a code for version 4?

Thanks in advance

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (3): Can someone help me
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: uracort

79647675

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

Your PHP function connect_course_history($student_id, $course_code, $numberofdays) is declared to accept three arguments. However, when WordPress calls an AJAX action, it doesn't automatically pass $_POST or $_GET variables as direct function arguments.

<?php

add_action('wp_ajax_connect_course_history', 'connect_course_history_callback');

add_action('wp_ajax_nopriv_connect_course_history', 'connect_course_history_callback');


function connect_course_history_callback() {
    global $wpdb;

    // IMPORTANT: Retrieve data from $_POST
    
    $student_id   = isset($_POST['student_id']) ? sanitize_text_field($_POST['student_id']) : '';
    $course_code  = isset($_POST['course_code']) ? sanitize_text_field($_POST['course_code']) : '';
    $numberofdays = isset($_POST['numberofdays']) ? intval($_POST['numberofdays']) : 30; 

    
    if (empty($student_id) || empty($course_code)) {
        echo "<p>Error: Missing Student ID or Course Code.</p>";
        wp_die(); // Always use wp_die() or die() at the end of AJAX callbacks
    }

        $sql = $wpdb->prepare("CALL sp_connect_course_history(%s, %s, %d);", $student_id, $course_code, $numberofdays);

    $wpdb->query($sql); 
    
    $course_history = $wpdb->get_results($sql);
    
    if ($wpdb->last_error) {
        error_log("Database Error in connect_course_history: " . $wpdb->last_error);
        echo "<p>Database error: Could not retrieve course history.</p>";
        wp_die();
    }

    if (empty($course_history)) {
        echo "<p>No course history found for this student or course.</p>";
        wp_die();
    }

    
    $output = "<table><thead><tr><th>DATE</th><th>Grade</th></tr></thead><tbody>";

    foreach ($course_history as $course) {
        $output .= "<tr>";
        $output .= "<td>" . esc_html($course->DATE) . "</td>"; 
        $output .= "<td>" . esc_html($course->grade) . "</td>";
        $output .= "</tr>";
    }

    $output .= "</tbody></table>";

    echo $output; 
    wp_die();    
}
?>

Your JavaScript is mostly fine, as it correctly sends the data. The problem was on the PHP side.

function courseGradeHistory(student_id_param) { 
  
  if (typeof jQuery === 'undefined') {
    console.error('jQuery is not defined. Please ensure jQuery is loaded before this script.');
    return;
  }

  var course_code = document.getElementById("course_code").value;
  var $resultsContainer = jQuery('#studentCourseSchedule'); 
  var student_id = student_id_param || document.getElementById("student_id").value; 

  console.log("Course Code: " + course_code);
  console.log("Student ID: " + student_id);

  if (!student_id || !course_code) {
    alert("Please provide both Student ID and Course Code.");
    return;
  }

  alert("Loading Course History for Student ID: " + student_id + " and Course Code: " + course_code);

  $resultsContainer.html('<p>Loading Courses...</p>');

  
  jQuery.ajax({ 
    url: ajaxurl, 
    type: 'POST',
    data: {
      action: 'connect_course_history', 
      student_id: student_id,
      course_code: course_code,
      numberofdays: 30 
    },
    success: function(data) {
      $resultsContainer.html(data);
      console.log("AJAX Success:", data); 
    },
    error: function(xhr, status, error) {
      $resultsContainer.html('<p>Error loading courses. Please try again.</p>');
      console.error('AJAX Error:', status, error, xhr.responseText); 
    }
  });
}
Reasons:
  • RegEx Blacklisted phrase (2.5): Please provide
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: bulbul islam

79647674

Date: 2025-06-01 15:31:38
Score: 1
Natty:
Report link

I came here looking for this:

import util from 'util'

// Customize the log depth
util.inspect.defaultOptions.depth = 5;

Maybe others will find it useful too

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

79647673

Date: 2025-06-01 15:31:38
Score: 3.5
Natty:
Report link

Someone had the same issue with a very similar torch version (2.2.1), and the fix seems to be to upgrade to torch>=2.3: https://github.com/pytorch/pytorch/issues/126632#issuecomment-2119140224

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Valérian Rey

79647670

Date: 2025-06-01 15:26:37
Score: 0.5
Natty:
Report link

You can do this in v5 with

    someAction: assign(({ event, context, self }) => {
      const state = self.getSnapshot().value;
      console.log('someAction', state);

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

79647666

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

The wrong syntax in HQL query. Change the query code to

@Query(value="FROM Chat as c where (first_user = :userId or second_user = :lastId)")
    Page<Chat> findNextUserChats(
            @Param("userId") long id,
            @Param("lastId") long lastId,
            @Param("lastUpdatedAt") String lastUpdatedAt,
            Pageable pageable);
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: SOLoose

79647661

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

Instead of using a router, just use a state variable in the parent component (VideoPageTabs) to track whether to show the TagList or the new component (ComponentA). Pass a callback from the parent to TagList so it can tell the parent when a list item is clicked. On click, the parent flips the state variable to swap out TagList with ComponentA. This approach keeps everything in the same page/tab and doesn’t need URL changes (no routing).

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

79647657

Date: 2025-06-01 15:09:32
Score: 1
Natty:
Report link

Have you enabled Stacking in the visualization options? You must set it to the value "Normal"

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

79647642

Date: 2025-06-01 14:50:27
Score: 2
Natty:
Report link

the controller returns code 204

this is not important, because a controller can return any value, but a transaction failed. In this case any changes to the database will be rolled back.

This means that you should test the actual values passed through the controller as a parameter. Because missing incorrect value nothing will be deleted.

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

79647628

Date: 2025-06-01 14:35:23
Score: 0.5
Natty:
Report link

Spark created multiple base directories and delta directories in hdfs. If you copy the hdfs directory for table. Then have to pick the latest base directory (base directories are numbers) and then all delta directories.

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

79647611

Date: 2025-06-01 14:20:19
Score: 0.5
Natty:
Report link

Some ideas:

  1. Did you try logging the requests and see if they're duplicated as a whole? -> that would point to some server/deployment misconfiguration. If it's just the events, most likely it's your code. You said that no duplicate requests are hitting the server. But would Laravel logs show any duplicates?
  2. Did you try logging the stack trace in the event constructor? That would clarify what triggers these events down the stack and if it's the same flow. Given it's all processed synchronously that should help.
  3. Do you have any switches that disable any events where !app->environment('production') or similar? Have you tried running the app on your local with the APP_ENV=Prod .env settings to imitate prod?
  4. Clockwork is a good tool to trace your API requests and figure out what events are being launched, that might shed some light on the request.

Good luck!

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Whitelisted phrase (-2): Did you try
  • RegEx Blacklisted phrase (2.5): Do you have any
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Lukasz Zagroba

79647609

Date: 2025-06-01 14:20:19
Score: 1.5
Natty:
Report link

You could use

@Config(sdk = [31])

from Robolectric

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

79647604

Date: 2025-06-01 14:15:17
Score: 1.5
Natty:
Report link

not sure if it´s the same with next.js, but in vite for example the path needs to be edited. the font is stored in public, but somehow the path in the font-face needs to be written without public.

from:
path: "../../public/fonts/GlacialIndifference-Regular.otf"

to:
path: "../../fonts/GlacialIndifference-Regular.otf"

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

79647592

Date: 2025-06-01 14:00:13
Score: 0.5
Natty:
Report link

Is you wanted to output string:

>>> list(str(1234))
['1', '2', '3', '4']

If you want to output integers:

>>> map(int, str(1234))
[1, 2, 3, 4]

If you want to use no prebuilt methods (output int)

>>> [int(i) for i in str(1234)]

[1, 2, 3, 4]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chase Miller

79647589

Date: 2025-06-01 13:58:12
Score: 1
Natty:
Report link

Sort in difference. This data is very useful for the students Mini

sort(machines.begin(), machines.end(), [](const pair<int, int>& a, const pair<int, int>& b) {
    return (a.second - a.first) > (b.second - b.first);});

Input = {(6,7), (3,9), (8,6)}

Output = {(3,9),(6,7),(8,6)}

Sort vector of pairs by second element ascending

vector<pair<int,int>> v = {{1, 3}, {2, 2}, {3, 1}};
sort(v.begin(), v.end(), [](const pair<int,int>& a, const pair<int,int>& b) {
    return a.second < b.second;
});

Input:
[(1,3), (2,2), (3,1)]

Output:
[(3,1), (2,2), (1,3)]

Sort vector of pairs by first ascending, then second descending

vector<pair<int,int>> v = {{1, 2}, {1, 3}, {2, 1}};
sort(v.begin(), v.end(), [](const pair<int,int>& a, const pair<int,int>& b) {
    if (a.first != b.first)
        return a.first < b.first;
    return a.second > b.second;
});

Input:
[(1,2), (1,3), (2,1)]

Output:
[(1,3), (1,2), (2,1)]

Sort vector of integers by absolute value descending

vector<int> v = {-10, 5, -3, 8};
sort(v.begin(), v.end(), [](int a, int b) {
    return abs(a) > abs(b);
});

Input:
[-10, 5, -3, 8]

Output:
[-10, 8, 5, -3]

Filter a vector to remove even numbers

vector<int> v = {1, 2, 3, 4, 5};
v.erase(remove_if(v.begin(), v.end(), [](int x) {
    return x % 2 == 0;
}), v.end());

Input:
[1, 2, 3, 4, 5]

Output:
[1, 3, 5]

Square each element in vector

vector<int> v = {1, 2, 3};
transform(v.begin(), v.end(), v.begin(), [](int x) {
    return x * x;
});

Input:
[1, 2, 3]

Output:
[1, 4, 9]

Sort strings by length ascending

vector<string> v = {"apple", "dog", "banana"};
sort(v.begin(), v.end(), [](const string& a, const string& b) {
    return a.size() < b.size();
});

Input:
["apple", "dog", "banana"]

Output:
["dog", "apple", "banana"]

Min heap of pairs by second element

auto cmp = [](const pair<int,int>& a, const pair<int,int>& b) {
    return a.second > b.second;
};
priority_queue<pair<int,int>, vector<pair<int,int>>, decltype(cmp)> pq(cmp);

pq.push({1, 20});
pq.push({2, 10});
pq.push({3, 30});

while (!pq.empty()) {
    cout << "(" << pq.top().first << "," << pq.top().second << ") ";
    pq.pop();
}

Input:
Pairs pushed: (1,20), (2,10), (3,30)

Output:
(2,10) (1,20) (3,30)

Sort points by distance from origin ascending

vector<pair<int,int>> points = {{1,2}, {3,4}, {0,1}};
sort(points.begin(), points.end(), [](const pair<int,int>& a, const pair<int,int>& b) {
    return (a.first*a.first + a.second*a.second) < (b.first*b.first + b.second*b.second);
});

Input:
[(1,2), (3,4), (0,1)]

Output:
[(0,1), (1,2), (3,4)]

Sort strings ignoring case

vector<string> v = {"Apple", "banana", "apricot"};
sort(v.begin(), v.end(), [](const string& a, const string& b) {
    string la = a, lb = b;
    transform(la.begin(), la.end(), la.begin(), ::tolower);
    transform(lb.begin(), lb.end(), lb.begin(), ::tolower);
    return la < lb;
});

Input:
["Apple", "banana", "apricot"]

Output:
["Apple", "apricot", "banana"]

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

79647571

Date: 2025-06-01 13:35:08
Score: 2
Natty:
Report link

Eben. You were sold a lie. Fix the error. A + B ≠ V2K, DEW. The RNC is becoming something that only a monster would attempt. Repeat. A monster.

Trying to get by. But need help.

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

79647563

Date: 2025-06-01 13:27:06
Score: 1
Natty:
Report link

I found that the key binding needed updating -- search for editor.action.copyLinesDownAction and verify it's the correct key binding. Mine was CTRL+Shift+Alt+Down.

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

79647561

Date: 2025-06-01 13:24:05
Score: 1.5
Natty:
Report link

It was a Python build issue. I figured it out — some C-extension modules (like for pickle) were not properly built, which caused the internal server error. After rebuilding the environment properly, the issue was resolved. Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-2): I figured it out
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Adnan

79647559

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

I think this is related to php.ini configuration. I've never used herd before. In laragon you can just simply click at the php menu. then you'll see php.ini. click that and it will open a notepad

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

79647557

Date: 2025-06-01 13:17:04
Score: 2.5
Natty:
Report link

Blazor doesn’t relay messages sent within shadow elements. There’s a hack but you need to manually edit blazor.web.js and change e.target to e.composedPath().find(_=>true)

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

79647552

Date: 2025-06-01 13:10:02
Score: 3.5
Natty:
Report link

doesn't work in venv on pi5

Eddy

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eddy Sels

79647542

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

try to make an assets folder outside of public /assets/fonts

and call

@font-face {
  font-family: "Font-name";
  src: url("path/font.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lycawn

79647538

Date: 2025-06-01 12:58:59
Score: 3
Natty:
Report link

<meta http-equiv="Content-Security-Policy" content="default-src * 'self' data: gap: ws: https://cdn.jsdelivr.net https://cdnjs.cloudflare.com 'unsafe-inline' 'unsafe-eval'; style-src * 'self' 'unsafe-inline'; media-src *">

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

79647537

Date: 2025-06-01 12:57:59
Score: 3.5
Natty:
Report link

Use name for your cache: @Cacheable("ConcurrentMapData")

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

79647536

Date: 2025-06-01 12:55:58
Score: 1.5
Natty:
Report link

I think your SPI configuration might be incorrect. It would be great if you could show how you implemented MX_SPI1_Init(). Please ensure that you have:

Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lihan

79647535

Date: 2025-06-01 12:46:56
Score: 2
Natty:
Report link

Try to use another tag

I dont how to use link from google drive but try to upload video on Youtube and will have link like - https://www.youtube.com/watch?v=Q8nhQSp__3s. You just need id from this video it will be Q8nhQSp__3s. copy it and put in iframe.

<iframe width="420" height="315"
src="https://www.youtube.com/embed/Q8nhQSp__3s">
</iframe>

More about that look in w3schools

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this video
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: fawf

79647519

Date: 2025-06-01 12:31:52
Score: 4
Natty:
Report link

I think it was the first test test

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Михаевич Игорь

79647516

Date: 2025-06-01 12:29:51
Score: 4
Natty: 4.5
Report link

Bandwidth ruler for android can do the job . It can limit tethering speed as well.

https://play.google.com/store/apps/details?id=com.bwr.free

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

79647506

Date: 2025-06-01 12:15:48
Score: 0.5
Natty:
Report link

0/1 Knapsack Problem solved Mini

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n, W;
    cout << "Enter number of items and knapsack capacity: ";
    cin >> n >> W;

    vector<int> weights(n), values(n);
    cout << "Enter weight and value of each item:\n";
    for (int i = 0; i < n; i++) {
        cin >> weights[i] >> values[i];
    }

    // dp[w] = maximum value achievable with capacity w
    vector<int> dp(W + 1, 0);

    // Process each item
    for (int i = 0; i < n; i++) {
        // Traverse backwards to avoid reuse of same item multiple times
        for (int w = W; w >= weights[i]; w--) {
            dp[w] = max(dp[w], dp[w - weights[i]] + values[i]);
        }
    }

    cout << "Maximum value achievable: " << dp[W] << "\n";

    return 0;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30687883

79647496

Date: 2025-06-01 12:04:45
Score: 1
Natty:
Report link

You might have outdated dependencies. Try clearing your cache and reinstalling the app:

npm cache clean —force

Then:

npm install

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

79647485

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

Usually this is how I decide in such scenarios:

Now for your scenario, I think there is something wrong in terms of UX vs Security in your flow. I would never auto-complete a password field. If password was an example and you won't really pass it to the next page, then I would go with Context or Zustand only if the other data (which should be passed) is non-sensitive.

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

79647484

Date: 2025-06-01 11:49:42
Score: 3
Natty:
Report link

Can you try writeConcern "majority" + readConcern "snapshot", so that find() reads a consistent state?

Reasons:
  • Whitelisted phrase (-2): Can you try
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (0.5):
Posted by: FranckPachot

79647472

Date: 2025-06-01 11:40:40
Score: 5
Natty: 6.5
Report link

hillllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Filler text (0.5): llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
  • Low entropy (1):
  • Low reputation (1):
Posted by: kalhara Jayathissa

79647461

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

UPDATE

I've found the solution.

  1. open laravel herd
  2. go to PHP menu
  3. right click on php version
  4. select "open php.ini directory"
  5. edit your php.ini
  6. uncomment and set your sys_temp_dir
// before
;sys_temp_dir = "/tmp"

// after
sys_temp_dir = "C:\Users\<YOUR_USERNAME>\AppData\Local\Temp"

Different operating system may have different temp folder paths too.

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

79647459

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

The issue may come from the fact that you do not have the required permissions on the entire SharePoint: https://company.sharepoint.com

Try the following:

FixedBaseURL = "https://company.sharepoint.com/sites/Finace/Reports"

RelativePath = "Q1_Report.xlsx"

This way the Oauth protocol will only try to authenticate at FixedBaseURL level.

Reasons:
  • Whitelisted phrase (-1): Try the following
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Leyth

79647435

Date: 2025-06-01 10:54:30
Score: 2
Natty:
Report link

Great question! While setuptools and the build module provide the basic functionality for creating distribution artifacts (sdist and wheel), more modern build backends like hatchling (used by Hatch) and flit-core (used by Flit) offer several advantages, including better user experience, enhanced features, and improved performance. Here’s a breakdown of their added value:


1. Simplified Configuration & Better Defaults


2. Built-in Features (Beyond Just Building)

Hatchling (Hatch)

Flit


3. Performance & Modern Tooling


4. Advanced Build-Time Features


5. CI/CD & Dev Tooling Integration


6. Documentation & Extras


When to Stick with setuptools?


Recommendation

Would you like a deeper dive into any of these features?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: liam

79647433

Date: 2025-06-01 10:53:30
Score: 2.5
Natty:
Report link

Technically speaking the following partial specialization will do the trick:

template <typename T>
class B<B<T> *> : public B<T> {};

but I cannot say if that makes any sense. Just remember Liskov's substitution principle: Is B<B<T> *> a B<T>??? Can it replace B<T> and still keep the program to be correct?

Reasons:
  • Blacklisted phrase (1): ???
  • Blacklisted phrase (0.5): I cannot
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Tomek

79647431

Date: 2025-06-01 10:51:29
Score: 1.5
Natty:
Report link

Here is the implementation in Clang.

https://github.com/llvm/llvm-project/blob/88aa5cbbda67857891a740dd8326f6f45f4eb6fd/clang/lib/CodeGen/CGDeclCXX.cpp#L958

    Fn = CreateGlobalInitOrCleanUpFunction(
        FTy,
        llvm::Twine("_GLOBAL__sub_I_", getTransformedFileName(getModule())),
        FI);
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: hailinzeng

79647429

Date: 2025-06-01 10:49:29
Score: 2
Natty:
Report link

I'm leaving this comment so it can be helpful to others who may encounter the same issue later on.
When creating a function in SQL Developer, a common cause of compilation errors can be related to language settings.
Switching from your local language to English can help resolve these compilation issues.
To do this, navigate to your user directory on the C drive and go to:
AppData\Roaming\SQL Developer\<your version>
There, open the product.conf file with Notepad and add the following lines if you're using a local language:
AddVMOption -Duser.language=en 
AddVMOption -Duser.country=US 
After this step, SQL Developer will launch with the English interface.
Additionally, you should check your language settings under Preferences → Database → NLS.
Once you've done that, you should be able to create your function using CREATE OR REPLACE FUNCTION without any issues.

Kind regards :)

Reasons:
  • Blacklisted phrase (1): regards
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ÇINAR TOPRAK

79647425

Date: 2025-06-01 10:44:27
Score: 1.5
Natty:
Report link

local all postgres peer

Just change above to below line

local all postgres md5

and restart the postgresql service

sudo service postgresql restart

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

79647421

Date: 2025-06-01 10:43:27
Score: 1
Natty:
Report link

JPA Structure was a part of the "JPA Buddy" plugin. When the plugin became a JetBrains pruduct, we merged or eliminated features that duplicated existing IDEA's functionality. Thereby, the "JPA Structure" toolwindow was merged with the "Persistence" one. Now you can find most of the old features there.

Link to doc: https://www.jetbrains.com/help/idea/jpa-buddy-entity-designer.html#jpa-structure

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

79647411

Date: 2025-06-01 10:34:24
Score: 1
Natty:
Report link

[ function createMouseEvent(e,t){const n=t.changedTouches[0],c=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,detail:t.detail,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:0,buttons:1});t.target.dispatchEvent(c)}document.addEventListener("touchstart",(e=>{createMouseEvent("mousedown",e)})),document.addEventListener("touchmove",(e=>{createMouseEvent("mousemove",e)})),document.addEventListener("touchend",(e=>{createMouseEvent("mouseup",e)}));

4,531 visits · 6 online

1

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

79647410

Date: 2025-06-01 10:33:24
Score: 0.5
Natty:
Report link

I'm seeing this problem, running on Debian Linux, trying to download ORAS from oras.land

With go 1.24.3 installed from the golang website go mod tidy hangs indefinitely, but with go 1.19 from Debian Linux it completes in a reasonable amount of time (About 5 seconds). All other factors are the same.

I thought it could have been my PC (wifi for example) so I transferred my code into a Debian 12 VM in my proxmox cluster (Wired to my router at gigabit) and experienced the exact same issue. I have a 400Mbit/s symmetric fibre to the premis internet link, with considerable monitoring and other systems using it, so it's not an internet outage.

The issue is 100% repeatable.

This looks a lot like a bug in go's downloader, but there doesn't appear to be a lot of debugging available.

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

79647403

Date: 2025-06-01 10:23:21
Score: 3
Natty:
Report link

broo it will work first

1. use to check the link if it is a only image link as only image is supported

2.make implementation of both compiler and glide of that version

3. in Manifest use permission of internet

casually follow this seteps i had also suffer very much for this . and literaaly on my time even placeholder is going wrong and not showing and i thinks that glide is not working .

Reasons:
  • RegEx Blacklisted phrase (1): check the link
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: vaibhav

79647394

Date: 2025-06-01 10:05:16
Score: 0.5
Natty:
Report link

from moviepy.editor import VideoFileClip, concatenate_videoclips, TextClip, CompositeVideoClip from moviepy.video.fx import resize

Reload video clips after environment reset

clip1 = VideoFileClip("/mnt/data/VID20250601114023.mp4").subclip(0, 5) clip2 = VideoFileClip("/mnt/data/VID20250601114725.mp4").subclip(0, 5) clip3 = VideoFileClip("/mnt/data/VID20250601114859.mp4").subclip(0, 5)

Resize to vertical 9:16 (Instagram)

clips = [resize.resize(clip, height=1920).crop(width=1080, x_center=clip.w / 2) for clip in [clip1, clip2, clip3]]

Text content and timing

text_data = [ ("Jesús ens va ensenyar a compartir...", 0), ("...i no mirar només per nosaltres", 2.5), ("Hi ha qui passa gana...", 5), ("...mentre altres llencem el pa", 7.5), ("Foc de fe 🔥 és actuar, no només creure", 10), ("La meva comunitat cristiana", 12.5), ("Jesús ens va ensenyar a compartir el pa", 15) ]

Concatenate video clips

final_video = concatenate_videoclips(clips)

Generate overlay texts

text_clips = [ TextClip(text, fontsize=70, color='white', font='Arial-Bold') .set_position('center') .set_duration(2.5) .set_start(start) for text, start in text_data ]

Merge video and text

final = CompositeVideoClip([final_video, *text_clips])

Export final Instagram-ready video

output_path = "/mnt/data/Foc_de_fe_INSTAGRAM_FINAL.mp4" final

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jose Santiago Roberto Vegas

79647377

Date: 2025-06-01 09:30:08
Score: 1
Natty:
Report link

npx tailwindcss init -p fails because Tailwind v4 moved the CLI out of the main package.

You have two options:

  1. (Recommended ⭐️) Install @tailwindcss/cli and the command will work again or simply follow the new v4 one-liner @import "tailwindcss" workflow, like this:
npm install -D tailwindcss @tailwindcss/cli postcss autoprefixer

And then add the new @import "tailwindcss" in the first line your main css file, like this:

/* src/styles.css  — or app.css, globals.css, input.css, etc. */
@import "tailwindcss";
  1. (Not recommended 🤷) Pin to tailwindcss@3 and the command will work again, like this:
npm install -D tailwindcss@3 postcss autoprefixer
npx tailwindcss init -p

## Why?

Starting with Tailwind CSS v4 (January 2025) the CLI that used to live inside the tailwindcss package was split out into a dedicated package called @tailwindcss/cli.

Because the binary is no longer bundled, npx tailwindcss init -p can’t find anything to execute and npm shows the cryptic error.

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: t4dhg

79647375

Date: 2025-06-01 09:29:07
Score: 1
Natty:
Report link

If someone landed here because of recursive population in Strapi v5 I recommend to use strapi-plugin-populate-all. It does the same job but better.

GET /api/articles?populate=all
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jan Fässler

79647372

Date: 2025-06-01 09:29:07
Score: 0.5
Natty:
Report link

Try this command to create react native cli project: npx @react-native-community/cli init ProjectName

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Shaikh Faizan

79647370

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

So, the final answer is:

tcpdump -l ... | grep --line-buffered ... | tee dest_file

That works.

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

79647360

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

Solved turning off "Occurrences Highlight" in VS Code preferences.

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

79647359

Date: 2025-06-01 09:09:03
Score: 0.5
Natty:
Report link

Why doesn't the background color change with the color variable value?

Tailwind generates classnames at compile time, so you can't use arbitrary classname in runtime. This is also a very bad practicie. If you need to change background color often, you should not use a class for each of them.

Instead, use inline styling:

<div className="w-20 h-20 mx-auto mb-4" style={{backgroundColor: color}}>{color}</div>
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why do
Posted by: Jurakin

79647349

Date: 2025-06-01 08:51:58
Score: 2
Natty:
Report link
print("unedited text", end="", flush=True)
print("\rEdited text", flush=True)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Joshua Hall

79647345

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

Found the problem, all i had to do was pass port parameter in the initialization of my server

from mcp.server.fastmcp import FastMCP

mcp = FastMCP("Linux", port = 8082)

This would start the port on the desired address

INFO:     Started server process [29007]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8083 (Press CTRL+C to quit)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Vivek

79647337

Date: 2025-06-01 08:33:54
Score: 1
Natty:
Report link

Using showCloseButton={false} is the clean, recommended way to hide the top-right close icon without breaking modal accessibility or functionality.

<DialogContent showCloseButton={false}>
    ...
</DialogContent>

This is the best way to hide ("X") button in the top-right corner

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

79647334

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

I have faced this problem recently, you can try the following 2 methods :- Method 1:-

  1. make sure you are exiting out of the previous server or stopping the previous server by pressing CTRL+C.
  2. Now restart the server by 'node index.js' or 'nodemon index.js' Method 2:- 1.If above method is not working you can Try closing the terminal and again opening it 2.Now start the server ,Most prbably your issue will get resolve.
Reasons:
  • Whitelisted phrase (-1): try the following
  • No code block (0.5):
  • Low reputation (1):
Posted by: Saawal Sharma

79647332

Date: 2025-06-01 08:25:53
Score: 3
Natty:
Report link

Unfortunately doing so(using Date.ToText) for changing culture in PowerQuery makes the developer switch to Import mode and can not continue in DirectQuery storage mode!!

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

79647330

Date: 2025-06-01 08:20:51
Score: 3.5
Natty:
Report link

I am using Android Studio Android Studio Meerkat Feature Drop | 2024.3.2 Patch 1.

Was getting error when tried to run KMP/KMM Project from Android studio while same could able to run from xcode.

Error was -

build/ios/Debug-iphonesimulator/null.app

Process spawn via launchd failed.

Process finished with exit code 0

Below answer helped me

Can't reproduce, please provide screenshots step by step what you are doing.

  1. image.png

  2. restart AS

  3. Switch to my config image1.png

  4. run it image2.png

Referred -

https://youtrack.jetbrains.com/issue/KTIJ-30024/Null-app-when-launching-ios-with-custom-scheme#focus=Comments-27-9840653.0-0

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: swapnil jadhav

79647329

Date: 2025-06-01 08:18:51
Score: 3.5
Natty:
Report link

I am using Android Studio Android Studio Meerkat Feature Drop | 2024.3.2 Patch 1.

Was getting error when tried to run KMP/KMM Project from Android studio while same could able to run from xcode.

Error was -

build/ios/Debug-iphonesimulator/null.app

Process spawn via launchd failed.

Process finished with exit code 0

Below answer helped me

Can't reproduce, please provide screenshots step by step what you are doing.

  1. image.png

  2. restart AS

  3. Switch to my config image1.png

  4. run it image2.png

Referred -

https://youtrack.jetbrains.com/issue/KTIJ-30024/Null-app-when-launching-ios-with-custom-scheme#focus=Comments-27-9840653.0-0

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: swapnil jadhav

79647321

Date: 2025-06-01 08:01:47
Score: 0.5
Natty:
Report link
To configure GitHub Copilot to authenticate using a personal GitHub.com account instead of a GitHub Enterprise (GHE) account, you generally need to remove any GHE specific authentication settings and ensure you are signed in with your GitHub.com account in your IDE. 
Here's a breakdown of how to achieve this in different IDEs:
1. VS Code:
Remove the authProvider setting:
1. Open your VS Code settings (File > Preferences > Settings or Code > Preferences > Settings on macOS).
2. Search for "copilot" and locate "GitHub > Copilot: Advanced".
3. Click on "Edit in settings.json".
4. Inside the github.copilot.advanced section, remove the line that specifies "authProvider": "github-enterprise".
5. Save the settings.json file.
6. Sign out and sign in with your GitHub.com account:
   * Click on your account icon in the bottom left of VS Code.
   * Sign out of any existing GitHub account.
   * Sign in with your personal GitHub.com account.

2. JetBrains IDEs (IntelliJ IDEA, PyCharm, etc.):
Remove the Authentication Provider setting:
1. Open your IDE settings (File > Settings on Windows/Linux, or > Preferences on macOS).
2. Navigate to "Languages & Frameworks" > "GitHub Copilot".
3. Remove any value entered in the "Authentication Provider" field.
4. Click "OK" to save the changes.

Sign out and sign in with your GitHub.com account:
1. Go to Tools > GitHub Copilot > Logout from GitHub.
2. Go to Tools > GitHub Copilot > Login to GitHub.
3. Follow the prompts to sign in with your GitHub.com account.

3. Xcode:
Remove the Auth provider URL:
1. Open the "GitHub Copilot for Xcode" application.
2. Click the "Advanced" tab.
3. Remove any value in the "Auth provider URL" field.

Sign in with your GitHub.com account:
Follow the instructions in Signing in to GitHub Copilot within Xcode to sign in with your GitHub.com account. 
Reasons:
  • Blacklisted phrase (1): how to achieve
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: EDRIS AMIR

79647320

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

Great question! Using another animation purely as a reference (without copying or reusing assets directly) is generally acceptable and common in the creative process. Just make sure your final animation is your original work and not a direct replica.

By the way, if you're into game-style characters like in fighting games, check out some cool ideas and character inspiration at Shadow Fight 2 Characters. It might spark some creativity for your next animation!

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

79647318

Date: 2025-06-01 07:57:46
Score: 5
Natty:
Report link

I resently got this problem but i tried everything i deleted the github shit on credential manager set chrome as default browser and reinstalled VS code but still get the error message when trying to login. Does someone know what to do???

2025-06-01 09:48:54.472 [info] [certificates] Removed 11 expired certificates
2025-06-01 09:49:29.241 [error] [default] github.copilot.signIn: TokenResultError [CopilotAuthError]: Timed out waiting for authentication provider to register
    at getSessionHelper (c:\Users\jaja\.vscode\extensions\github.copilot-1.326.0\extension\src\session.ts:84:42)
    at signInCommand (c:\Users\jaja\.vscode\extensions\github.copilot-1.326.0\extension\src\auth.ts:24:5)
    at c:\Users\Mac\.vscode\extensions\github.copilot-1.326.0\extension\src\telemetry.ts:23:13
    at Wb.h (file:///c:/Users/Mac/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:41516) {
  result: {
    reason: 'NotSignedIn',
    message: 'Timed out waiting for authentication provider to register'
  },
  vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ],
  [cause]: undefined
}
Reasons:
  • Blacklisted phrase (1): ???
  • RegEx Blacklisted phrase (2): Does someone know
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Mac

79647310

Date: 2025-06-01 07:49:43
Score: 1
Natty:
Report link

One way to disable bounces for specific ScrollView is to access the underlying UIScrollView from a SwiftUI hierarchy.

check this link, and this link

struct UIKitPeeker: UIViewRepresentable {
    let callback: (UIScrollView?) -> Void

    func makeUIView(context: Context) -> MyView {
        let view =  MyView()
        view.callback = callback
        return view
    }

    func updateUIView(_ view: MyView, context: Context) { }

    class MyView: UIView {
        var callback: (UIScrollView?) -> () = { _ in }

        override func didMoveToWindow() {
            super.didMoveToWindow()

            var targetView: UIView? = self
            while if let currentView = targetView {
                if currentView is UIScrollView {
                    break
                } else {
                    currentView = currentView.superView
                }
            }
            callback(targetView as? UIScrollView)
        }
    }
}

To use it:

struct ContentView: View {
    var body: some View {
        ScrollView {
            VStack(spacing: 8) {
                Foreach(0..<100, id: \.self) { i in
                    Text("Scroll bounces disabled \(i)")
                }
            }
            .background {
                UIKitPeeker { scrollView in
                    scrollView?.bounces = false
                }
            }
        }
    }
}
Reasons:
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): check this link
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: M_Khater

79647305

Date: 2025-06-01 07:43:41
Score: 5
Natty: 5.5
Report link

Thanks for your sharing. Is the Python code you provided above confirmed to be functional? Without using the ZhiJinPower app, can this Python code continuously connect directly to and read data from the MPPT controller?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Wes Wu

79647299

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

You are asking for a formatter which generates unuseful 'whitespaces' in your code!!!

But the expert recommendation is to avoid useless 'whitespacing' as much as possible, and that is what the formatters out there follows while formatting your code.

But if there's a formatter like that, which u want, and that is a BIG IFFFF, that's gotta be a hell of a development mistake...

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

79647293

Date: 2025-06-01 07:29:37
Score: 5
Natty: 6.5
Report link

for next js 15 all the steps are mentioned in this article

https://tarunnayaka.me/Blog/68348f2ccdf34b578f3bdd8e/how-to-deploy-a-nextjs-15-app-to-azure-app-service-easy-deployment-guide

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tarun Nayaka

79647291

Date: 2025-06-01 07:23:36
Score: 0.5
Natty:
Report link

Prettier intentionally avoids formatting styles that involve alignment for aesthetic purposes, such as aligning = signs or colons, because its philosophy emphasizes consistency over visual alignment, which can be fragile and harder to maintain.

However, there are other tools and workarounds that can achieve what you're asking for:

✅ Option 1: align-yaml or align-js via custom scripts These are not official tools, but small CLI scripts or packages that parse and align JavaScript objects or variable declarations.

You could write a simple script or use a small utility like:

cli-align

columnify

align-code (not well-maintained but a starting point)

✅ Option 2: Use ESLint with custom rule or plugin Some ESLint plugins support alignment features. For example:

eslint-plugin-align-import

eslint-plugin-sort-destructure-keys

But aligning = in variable declarations isn’t supported out of the box. You could:

Write a custom ESLint rule

Use eslint --fix with tailored rules to preprocess code, then reformat with Prettier

✅ Option 3: Editor Macros / Align Plugins For manual or semi-automated formatting:

VSCode:

Extension: "Align"

Shortcut: Select lines → Ctrl+Shift+P → "Align" → Choose =

Sublime Text:

Plugin: AlignTab or built-in Find > Replace using regex

✅ Option 4: Use ast-grep or code mods For power users, tools like ast-grep or jscodeshift let you match and rewrite code structurally — useful for automating style changes like aligning assignments

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

79647286

Date: 2025-06-01 07:16:34
Score: 1
Natty:
Report link

Here is the tool and approaches that can help:

ESLint + plugin or manual rules While ESLint is mainly for linting, some plugins can help with alignment, like:

eslint-plugin-align-assignments This plugin aligns = and : in variable declarations and object literals.

Install:

npm install --save-dev eslint eslint-plugin-align-assignments

Add to your .eslintrc.js:

module.exports = {
  plugins: ['align-assignments'],
  rules: {
    'align-assignments/align-assignments': ['error', { requiresOnly: false }],
  },
};

Then run:

npx eslint --fix yourfile.js
Reasons:
  • Blacklisted phrase (1): This plugin
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mazin Ali

79647285

Date: 2025-06-01 07:15:33
Score: 1.5
Natty:
Report link
// PropertyChanged Event Handler
    private void thirdLevel_PropertyChanged(object? sender, PropertyChangedEventArgs e)
    {
        // other relevant updates on thirdLevel object's PropertyChanged Event
        ...

        // *** Update StartTime value of subsequent Items in the Collection ***
        if (e.PropertyName == "Duration")
        {
            var index = ThirdLevels.IndexOf(sender as ThirdLevelViewModel);
            for (int i = index + 1; i < ThirdLevels.Count...
        }
    }

It's super easy, any problem?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Lamp

79647283

Date: 2025-06-01 07:11:32
Score: 2
Natty:
Report link

Please disregard the error related to dotnet1; setting useLegacyV2RuntimeActivationPolicy = true is the key.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: JORGE ADRIAN VARGAS GRANDA

79647277

Date: 2025-06-01 07:06:31
Score: 3.5
Natty:
Report link

one's and two's compliment of a positive number is its binary equivalent .

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

79647275

Date: 2025-06-01 06:59:28
Score: 4
Natty: 4.5
Report link

Timer Countdown with progress bar C#

header 1 header 2
cell 1 cell 2
cell 3 cell 4
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ai developer

79647255

Date: 2025-06-01 06:31:21
Score: 1
Natty:
Report link

tf.keras.preprocessing.text.Tokenizer is deprecated in recent versions of TensorFlow. The recommended alternative is to use TextVectorization from tf.keras.layers

USE: from tensorflow.keras.layers import TextVectorization

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