79615398

Date: 2025-05-10 10:50:35
Score: 1
Natty:
Report link

If you are getting the variable from execute_command output, you can do the same with OUTPUT_STRIP_TRAILING_WHITESPACE:

execute_process(
    COMMAND git describe --tags
    OUTPUT_VARIABLE VERSION
    OUTPUT_STRIP_TRAILING_WHITESPACE
)
add_compile_definitions(VERSION="${VERSION}")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Daniel G

79615389

Date: 2025-05-10 10:35:31
Score: 5.5
Natty:
Report link

You can find the solution for both Android and iOS in this video. https://www.youtube.com/watch?v=1d5Dtc1UL1c

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this video
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: sumeyyeyeg

79615388

Date: 2025-05-10 10:35:31
Score: 2.5
Natty:
Report link

/y : Suppresses prompting to confirm you want to overwrite an existing destination file.
This works in Windows 10 CMD also.

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

79615360

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

To add :hover and :active styles to dynamically injected buttons in your Tampermonkey script, you need to inject CSS into the page, because element.style only supports inline styles and does not support pseudo-classes like :hover or :active.

Here’s how you can inject a tag into the page using JavaScript, and define your button styles there:

Add a unique class to your buttons, e.g. .my-tampermonkey-button. Inject a block with CSS rules, including :hover and :active.

https://code.livegap.com/?st=a50pc81142l

This way, your buttons will respond to :hover and :active, and you still get per-button styling via element.style if needed.

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

79615352

Date: 2025-05-10 09:53:22
Score: 3
Natty:
Report link

reinstall, if the problem persists and there is no tmp folder in data folder, create it (it helped me with mariadb)

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

79615342

Date: 2025-05-10 09:40:18
Score: 3.5
Natty:
Report link

Same problem here. I had a folder named queue and for some reason py-nats was importing it. Rename queue to queues and the problem was gone. Thanks Абдурахмон!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1): Same problem
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ricardo Lenzi

79615339

Date: 2025-05-10 09:32:16
Score: 2
Natty:
Report link

(Ivan) The problem does not occur when using .net framework 4.8 & .net framework 6. It fails using .net 8 & .net 9.

(Charles) I am using Linux Mint 22.1 Cinnamon version 6.4.8. Bottles version 51.21.

(Ralf) I am relatively new to Linux & Bottles and so I will have to look into the logging facility you mentioned.

Thank's for your replies.

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

79615336

Date: 2025-05-10 09:31:16
Score: 3
Natty:
Report link

Check This https://rnfirebase.io/auth/usage

yarn add @react-native-firebase/app

yarn add @react-native-firebase/auth

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

79615335

Date: 2025-05-10 09:31:16
Score: 1
Natty:
Report link

Number of variables: 20

Number of clauses: 93

Initial assignments: [ True False True False True False False True False True False False False True False False True False False True]

Initial energy (unsatisfied clauses): 28

Iteration 1, Energy: 25

Iteration 201, Energy: 8

Iteration 401, Energy: 2

Iteration 601, Energy: 0

Solution found!

Final assignments: [ True False False True False False False True False False False True False False False True False False False True]

Final energy (unsatisfied clauses): 0

Schedule:

Course C1 at Time T1 in Room R1

Course C2 at Time T2 in Room R1

Course C3 at Time T1 in Room R2

Course C4 at Time T2 in Room R2

Course C5 at Time T2 in Room R2

Solution verified: Valid schedule!

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

79615332

Date: 2025-05-10 09:30:16
Score: 1.5
Natty:
Report link

To create a social media strategy that works, start by setting clear, measurable goals aligned with your business objectives. Know your target audience—understand their demographics, interests, and preferred platforms. Choose the right social media channels based on where your audience is most active. Develop a content plan with a mix of engaging, valuable, and brand-aligned posts. Schedule content consistently using a content calendar. Monitor performance with analytics tools to track engagement, reach, and conversions. Adjust your strategy based on data insights and feedback. Engage with your audience regularly to build relationships and trust. Stay updated on trends to remain relevant.

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

79615331

Date: 2025-05-10 09:29:15
Score: 1
Natty:
Report link
sudo ethtool --offload eth0 rx off tx off
Cannot get device udp-fragmentation-offload settings: Operation not supported
Cannot get device udp-fragmentation-offload settings: Operation not supported
Actual changes:
rx-checksumming: off
tx-checksumming: off
    tx-checksum-ip-generic: off
tcp-segmentation-offload: off
    tx-tcp-segmentation: off [requested on]
    tx-tcp6-segmentation: off [requested on]
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30498722

79615330

Date: 2025-05-10 09:28:15
Score: 0.5
Natty:
Report link

Pandas warns during concat because it's changing how it handles object columns containing only True and False values they were previously treated as booleans automatically, but this is being deprecated. You can fix this by either using df.infer_objects() which won't handle NaN values well or explicitly converting with df[col].astype('boolean') (better when you have True, False, and NaN). For non-numeric data like image thumbnails, size mainly impacts memory usage rather than operation performance.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: serkancicek

79615294

Date: 2025-05-10 08:27:03
Score: 2
Natty:
Report link

High-income earners often face more complex tax obligations, such as additional rate taxes, dividend income, and investment reporting. At Tax4UK, we specialize in helping professionals earning over £100,000 manage their SA100 Self Assessment tax returns. Our expert advisors will identify all applicable reliefs and deductions while ensuring your return is 100% compliant. We also advise on payments on account and how to plan for next year’s liability.

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

79615286

Date: 2025-05-10 08:14:59
Score: 1.5
Natty:
Report link

It turns out that the issue was that you cannot use .getChild().copy() to move things from one document to another; that method only works to copy elements within the same document. Rather, I have to use .getParagraphs()[].copy() to copy paragraphs and .getTables()[].copy() to copy tables from one document to another.

A very unhelpful and unintuitive error message, but it's sorted now.

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

79615285

Date: 2025-05-10 08:12:59
Score: 2.5
Natty:
Report link

Got on the same trap.

Following the tutorial you can access the repo and see from where he imports the basicAuth function
Tutorial: https://medium.com/@a16n.dev/password-protecting-swagger-documentation-in-nestjs-53a5edf60fa0

import * as basicAuth from 'express-basic-auth';
Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: abordonado

79615276

Date: 2025-05-10 07:55:55
Score: 1.5
Natty:
Report link

Try
which pg_resetwal

It should give an o/p like so
/usr/lib/postgresql/15/bin/pg_resetwal

Change your user to su -l postgres, if not already

Execute command like so
/usr/lib/postgresql/15/bin/pg_resetwal <path to pg data>

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

79615274

Date: 2025-05-10 07:51:54
Score: 1
Natty:
Report link

Try replacing the call with an explicit find + deleteAll:

List<Embedding> embeddings = repository.findAllByFileName(fileName);
log.info("Deleting {} Embedding objects with fileName={}", embeddings.size(), fileName);
repository.deleteAll(embeddings);

Why?

Spring Data Redis retrieves IDs via the @Indexed field and then deletes by those IDs — if the index is broken, outdated, or Redis fails to deserialize the objects, the deletion may silently do nothing. An explicit finddeleteAll is easier to debug and log.

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: tsusahi

79615272

Date: 2025-05-10 07:48:53
Score: 1
Natty:
Report link

In NRF24_Write_8Bit_Register after i send my command function i need to read SPI1->DR to clear 0x00 value from it. but i didn't. Thats why i had to call read functions twice. This is the proper way to do it:

(NOTE: Thank you hcheung for your help. After reading your comment i got the answer.)

    void NRF24_Write_8Bit_Register(uint8_t NRF24_Register, uint8_t NRF24_Register_Bit, uint8_t NRF24_Set_Reset){
    
        uint8_t buffer_write = 0xFF;
        uint8_t buffer_read = 0;
    
        NRF24_Read_8Bit_Register(NRF24_Register, &buffer_write);
    
        if(NRF24_Set_Reset == 1){
            buffer_write |= NRF24_Register_Bit;
        }else{
            buffer_write &=~ NRF24_Register_Bit;
        }
    
        SysTick_Delay_uS(10);
    
        GPIO_ResetBits(GPIOA,GPIO_Pin_4);
    
        SPI_I2S_SendData(SPI1, (0x20 | NRF24_Register));
        buffer_read = SPI_I2S_ReceiveData(SPI1);
        while(!(SPI_I2S_GetFlagStatus(SPI1, SPI_I2S_FLAG_RXNE)));
        buffer_read = SPI_I2S_ReceiveData(SPI1);
    
        while(!(SPI_I2S_GetFlagStatus(SPI1, SPI_I2S_FLAG_TXE)));
        SPI_I2S_SendData(SPI1, buffer_write);
    
        while(!(SPI_I2S_GetFlagStatus(SPI1, SPI_I2S_FLAG_RXNE)));
        buffer_read = SPI_I2S_ReceiveData(SPI1);
    
        while(SPI_I2S_GetFlagStatus(SPI1,SPI_I2S_FLAG_BSY));
        GPIO_SetBits(GPIOA,GPIO_Pin_4);
    
        SysTick_Delay_uS(20);
    }
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): i need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Clyde Xander

79615270

Date: 2025-05-10 07:42:52
Score: 0.5
Natty:
Report link

You can also mock just ReactiveMongoDatabaseFactory. It won't try to connect to the db, but rest of the functionalities stay intact:


@MockBean
ReactiveMongoDatabaseFactory mongoDatabaseFactory
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: IncogVito

79615268

Date: 2025-05-10 07:40:51
Score: 0.5
Natty:
Report link

The reason that you get the 401 error is most probably because your session has timed out. As with all API:s, the session token that you get is only valid for a certain period of time.

In the Appylar REST documentation overview under section 5, it says:

The session token that was created and returned calling the POST /api/v1/session/ endpoint, will expire after a while. From there on, the API will respond with an HTTP 401 for all requests. When that happens, the SDK must make sure to automatically renew the session by calling the POST /api/v1/session/ endpoint again.

In other words, you have to refresh the session in your sdk when you get the 401 error.

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

79615262

Date: 2025-05-10 07:33:49
Score: 1
Natty:
Report link

Ensure your tsconfig.json file has:

{
  "compilerOptions": {
    "jsx": "react",
    "module": "ESNext",
    "target": "ESNext",
    "moduleResolution": "Node",
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": true,
    "strict": true
  },
  "include": ["src"]

}

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

79615253

Date: 2025-05-10 07:21:46
Score: 3
Natty:
Report link

first give Linearlayout Orientation than also provide code from where u move imageview.

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

79615250

Date: 2025-05-10 07:19:45
Score: 1
Natty:
Report link

For java 24:

It Resolve My Problem:

<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.18.38</version>
    <scope>provided</scope>
</dependency>

Then Reload maven file it will fix it...

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

79615244

Date: 2025-05-10 07:11:43
Score: 2.5
Natty:
Report link

[email protected] Thanks for contributing an answer to Stack Overflow!

Please be sure to answer the question. Provide details and share your research! But avoid …

Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30497993

79615240

Date: 2025-05-10 07:09:42
Score: 1.5
Natty:
Report link

I got the full color string into a string field as follows, after a long stugle ...:

                    var fBackColor =Convert.ToString (MyDialog.Color.ToArgb());

                    rgbColor = Color.FromArgb(Convert.ToInt32(fBackColor)).ToString();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: bee

79615235

Date: 2025-05-10 07:05:41
Score: 2
Natty:
Report link

Can you please try "scripts": { "test": "mocha" } in package.json file and then run the only command as

'npm test'

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): Can you please
  • Low reputation (1):
Posted by: Jagpreet Singh

79615233

Date: 2025-05-10 07:03:41
Score: 0.5
Natty:
Report link

As @Slaw already suspected in the question comments while I composed this answer, its fundamentally a sequencing problem, hidden by a bit of compiler syntactic sugar.

JLS 14.20.3.2 states that this:

   /* task creation if option 1 */
   try (/* option 1 or 2 resource statement here */) {
        var taskFuture = taskExecutor.submit(() -> {
            task.run();
            return true;
        });
        var result = taskFuture.get(30_000, TimeUnit.MILLISECONDS);
        System.out.println("Got result: " + result);
    } catch (Exception e) {
        System.out.println("Caught exception: " + e);
        throw new RuntimeException(e);
    } /* finally if option 1 */

is fundamentally treated as this:

   /* task creation if option 1 */
   try{
        try (/* option 1 or 2 resource statement here */){
            var taskFuture = taskExecutor.submit(() -> {
                task.run();
                return true;
            });
            var result = taskFuture.get(30_000, TimeUnit.MILLISECONDS);
            System.out.println("Got result: " + result);
        }
    } catch (Exception e) {
        System.out.println("Caught exception: " + e);
        throw new RuntimeException(e);
    }  /* finally if option 1 */

Which already hints at the problem.

* my JVM's implementation (in `java.util.concurrent.ExecutorService`) waits for 1 day for tasks to bail before giving up, however, that time isn't specced.
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Slaw
  • Low reputation (1):
Posted by: Jannik S.

79615229

Date: 2025-05-10 06:58:40
Score: 3.5
Natty:
Report link
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/socket.h>

#define PORT 7000    // Replace with your desired port 7XXX
#define MAXLINE 1024

void handle_client(int connfd) {
    char buffer[MAXLINE];
    int n;

    // Read message from client
    n = read(connfd, buffer, sizeof(buffer) - 1);
    if (n < 0) {
        perror("Read error");
        close(connfd);
        return;
    }
    buffer[n] = '\0'; // Null-terminate the message

    // Print received message
    printf("Received from client: %s\n", buffer);

    // Echo the message back to the client
    write(connfd, buffer, strlen(buffer));

    close(connfd);
}

int main() {
    int listenfd, connfd;
    struct sockaddr_in servaddr, cliaddr;
    socklen_t len;
    pid_t childpid;

    // Create server socket
    listenfd = socket(AF_INET, SOCK_STREAM, 0);
    if (listenfd < 0) {
        perror("Socket creation failed");
        exit(1);
    }

    memset(&servaddr, 0, sizeof(servaddr));
    servaddr.sin_family = AF_INET;
    servaddr.sin_addr.s_addr = INADDR_ANY;  // Listen on all available interfaces
    servaddr.sin_port = htons(PORT);

    // Bind the socket to the address and port
    if (bind(listenfd, (struct sockaddr *)&servaddr, sizeof(servaddr)) < 0) {
        perror("Bind failed");
        exit(1);
    }

    // Listen for incoming connections
    if (listen(listenfd, 10) < 0) {
        perror("Listen failed");
        exit(1);
    }

    printf("Server started on port %d\n", PORT);

    // Main loop to accept and handle clients
    for (;;) {
        len = sizeof(cliaddr);
        connfd = accept(listenfd, (struct sockaddr *)&cliaddr, &len);
        if (connfd < 0) {
            perror("Accept failed");
            continue;
        }

        if ((childpid = fork()) == 0) {
            close(listenfd);  // Child doesn't need the listening socket
            handle_client(connfd);
            exit(0);  // Child process terminates here
        }

        close(connfd);  // Parent closes the connection socket
        while (waitpid(-1, NULL, WNOHANG) > 0);  // Clean up any terminated child processes
    }

    return 0;
}

------------------------------------------------------------------

#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>

#define PORT 7000   // Replace with the same port used in the server
#define MAXLINE 1024

int main() {
    int sockfd;
    struct sockaddr_in servaddr;
    char send_buffer[MAXLINE] = "Hello from ITxxxxxxxx";
    char recv_buffer[MAXLINE];
    int n;

    // Create socket
    sockfd = socket(AF_INET, SOCK_STREAM, 0);
    if (sockfd < 0) {
        perror("Socket creation failed");
        exit(1);
    }

    memset(&servaddr, 0, sizeof(servaddr));
    servaddr.sin_family = AF_INET;
    servaddr.sin_port = htons(PORT);
    if (inet_pton(AF_INET, "127.0.0.1", &servaddr.sin_addr) <= 0) {  // Assuming server is on localhost
        perror("Invalid address or address not supported");
        close(sockfd);
        exit(1);
    }

    // Connect to server
    if (connect(sockfd, (struct sockaddr *)&servaddr, sizeof(servaddr)) < 0) {
        perror("Connection failed");
        close(sockfd);
        exit(1);
    }

    // Send message to the server
    write(sockfd, send_buffer, strlen(send_buffer));

    // Receive the echo from server
    n = read(sockfd, recv_buffer, MAXLINE);
    if (n < 0) {
        perror("Read error");
        close(sockfd);
        exit(1);
    }
    recv_buffer[n] = '\0';

    // Print the echo response
    printf("Received from server: %s\n", recv_buffer);

    close(sockfd);
    return 0;
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • No latin characters (3):
  • Filler text (0.5): ------------------------------------------------------------------
  • Low reputation (1):
Posted by: user30497920

79615228

Date: 2025-05-10 06:55:38
Score: 7 🚩
Natty:
Report link

Did u find the problem and figure out the answer bro

Reasons:
  • RegEx Blacklisted phrase (3): Did u find the problem
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did
  • Low reputation (1):
Posted by: Prasanna Kumaran

79615215

Date: 2025-05-10 06:40:35
Score: 2.5
Natty:
Report link

According to this answer and this article, the pyvenv.cfg file is essential for running a virtual environment, and it appears that the venv can't function without it.

Reasons:
  • Blacklisted phrase (1): this article
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: OH Yucheol

79615212

Date: 2025-05-10 06:38:34
Score: 3.5
Natty:
Report link

You should wrap the filament view with a react native view place a hight to the view and should render. That was my issue around 3 days.

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

79615209

Date: 2025-05-10 06:34:33
Score: 3
Natty:
Report link

Interestingly two years later, we still have this problem with iPhone Xs iOS 18.4.1 and Flutter version 3.32.0-0.2.pre. Somehow set FLTEnableWideGamut to FALSE, fix the problem. Our issue was taking photo using iPhone/iPad's camera will showing image as green dominated color. Anyone can explain why?

Anyway, add a message here in case someone else have similar problem.

Reasons:
  • Blacklisted phrase (0.5): why?
  • Has code block (-0.5):
  • Me too answer (2.5): have similar problem
  • Contains question mark (0.5):
Posted by: River2202

79615208

Date: 2025-05-10 06:33:33
Score: 2
Natty:
Report link

add this to your docker-compose.yml

 env_file: ./.env

and add your ENVs in that file

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

79615207

Date: 2025-05-10 06:31:32
Score: 1
Natty:
Report link

I also got this error, I resolved it by opening Visual Studio Code with Run as administrator privilages (in Windows).

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

79615206

Date: 2025-05-10 06:31:32
Score: 1.5
Natty:
Report link

how about:

class TestDivFunction(unittest.TestCase):

    def test_division(self):
        self.assertEqual(div(10, 2), 5)
        self.assertEqual(div(-10, 2), -5)
        self.assertEqual(div(0, 1), 0)

    def test_division_by_zero(self):
        self.assertTrue(math.isnan(div(10, 0)))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): how
  • Low reputation (1):
Posted by: muab

79615198

Date: 2025-05-10 06:12:28
Score: 3
Natty:
Report link

I encountered the same error while installing Ghost 5.

After troubleshooting, I found the root cause: I had initially installed Ghost-CLI using pnpm. By default, pnpm (and Yarn) places global bin and node_modules in user-level paths (e.g., ~/.local), whereas npm does not have this issue (npm uses system-level paths).

To resolve it, I uninstalled Ghost-CLI and reinstalled it globally with npm, which fixed the problem.

Hopefully, this solution helps others facing the same issue.

Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (1):
Posted by: AvinZ

79615197

Date: 2025-05-10 06:11:28
Score: 3.5
Natty:
Report link

This an iTerm2 bug and has likely been fixed in https://github.com/gnachman/iTerm2/commit/223eacd424db38e0a5b7c93b48bcde06af1bafbd.

You can track this in:

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

79615193

Date: 2025-05-10 05:59:26
Score: 5
Natty: 4.5
Report link

Please try to install txfonts: https://ctan.org/pkg/newtx

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

79615192

Date: 2025-05-10 05:54:24
Score: 3
Natty:
Report link

I originally wanted to have everything packed together in one place, so I extracted SQL Developer into the Oracle 21c product directory. However, that approach caused some issues. When I instead extracted it to a different folder, the problem was resolved.

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

79615183

Date: 2025-05-10 05:48:22
Score: 1.5
Natty:
Report link

I have a solution for this.

Write a bash script for MacOS on your Windows Machine that goes into your python project, installs dependencies, including PyInstaller, and then compile.

You can ship your project with the bash script and the Mac User just has to run the script as an executable. Essentially automatically compiling on their machine.

Though there could be some problems where the user may have to manually download Hombrew or Python3, because MacOS is funny like that.

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

79615172

Date: 2025-05-10 05:32:18
Score: 0.5
Natty:
Report link

Problem is solved. Turns out i was pulling all the images for lookup.

     allImages = await ctx.Images.AsNoTracking().ToListAsync(token);
      allImages = await ctx.Images
            .AsNoTracking()
            .Select(img => new Fatalix_Project_Image 
            { 
                Id = img.Id, 
                OriginalFileName = img.OriginalFileName 
            })
            .ToListAsync(token);

This was more than enough. It was loading more than 20 mbs of image data everytime i swap to a project display page. The imagedata should never be loaded.

In this sense i was hoping cancellation token would save me the trouble but turns out it does not.

Currently blazor page is functioning perfectly, as each image is loaded through a controller instead of a linq query.

    [HttpGet("{id}")]
    public async Task<IActionResult> GetImage(int id)
    {
        var image = await _context.Images.FindAsync(id);
        if (image == null || image.ImageData == null)
            return NotFound();

        var contentType = "image/jpeg";
        if (image.OriginalFileName.EndsWith(".png")) contentType = "image/png";
        else if (image.OriginalFileName.EndsWith(".gif")) contentType = "image/gif";

        return File(image.ImageData, contentType);
    }

A rookie mistake, but still took me 14 days to find the source of the problem. Thanks.

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

79615167

Date: 2025-05-10 05:18:15
Score: 2
Natty:
Report link

[2025] Edit the minimum ios version in the podfile then run pod install.

Changing platform :ios, '12.0' to platform :ios, '13.0' then running pod install fixed it for me.

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

79615160

Date: 2025-05-10 05:07:14
Score: 1
Natty:
Report link

background-size:cover and background-position:fixed don't work together .. just use cover. position:fixed is giving the element absolute positioning, which you probably don't want in this instance.

lastly, I suggest changing body height: 1500px; to height:100vh -- unless you want need it to be that specific height.

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

79615156

Date: 2025-05-10 04:54:11
Score: 1.5
Natty:
Report link
let random_int (start: int, end_: int) =
    let random = Random()
    seq { start .. end_ } |> Seq.map (fun _ -> random.Next(start, end_))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: guano_code

79615149

Date: 2025-05-10 04:37:07
Score: 1.5
Natty:
Report link

I found this on AlexisGrant.com:

How to find a book’s word count: Go to that book's page (on Amazon) and scroll down to "Inside This Book." Under that heading, click "Text Stats." (It’ll be a blue link.) A new window will pop up. Under “Number of,” you’ll see "words." That’s your number!

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

79615147

Date: 2025-05-10 04:35:07
Score: 2.5
Natty:
Report link

Check to make sure you're not using Link to wrap a component with a useEffect(). In my case I had a CustomButton that had a useEffect, which was causing a full reload.

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

79615146

Date: 2025-05-10 04:35:07
Score: 1
Natty:
Report link

This may sound dumb, but I got tricked by this today. I had put in some new config var key:value pairs, then went to another page, and went back later to make sure I had the key names correct, and the pairs were gone.

Later after doing one on the command-line to try that, I noticed that the pairs are sorted. Basically, my new ones were buried in the list of other key:value pairs after the page was reloaded, where I expected them to be at the bottom!

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

79615143

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

Are you running the notebook interactively or with a Service Principal?

You will get the error

## Not In PBI Synapse Platform ##

when running a notebook using Service Principal and you are using Sempy. Also some properties of notebookutils.runtime.context will return None, like WorkspaceName and UserName.

I wrote about this a blog post which you will find here: Who's Calling? Understanding Execution Context in Microsoft Fabric

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

79615135

Date: 2025-05-10 04:06:01
Score: 1.5
Natty:
Report link

Try this: In the "Import" tab, disable texture compression by unchecking the "Lossless" or similar settings. You can always convert your spritesheet to PNG websites like https://image.online-convert.com/convert-to-png

And this video is good: https://www.youtube.com/watch?v=GPYBNdYuSD8

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this video
  • Whitelisted phrase (-2): Try this:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Squishy

79615133

Date: 2025-05-10 04:05:01
Score: 1.5
Natty:
Report link

You're passing an org.json.JSONObject directly to RestTemplate, which doesn't automatically convert it into a proper JSON request body. It just sends it as an object, which becomes null in deserialization.Postman automatically sets the correct Content-Type and sends the JSON string. In code, unless you use the right body object and headers, Spring might not serialize it to the proper format, resulting in null values being received by the API.Use a Map<String, String> or create a POJO for the request body, and ensure the correct headers are set.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arjit singh kushwaha

79615132

Date: 2025-05-10 04:04:01
Score: 1.5
Natty:
Report link

The Circuit Breaker pattern is used to prevent an application from performing an operation that is likely to fail. It monitors the number of recent failures and determines when to “break” the circuit, stopping requests for a certain period. This prevents the system from being overwhelmed with failed requests and allows time for the underlying issue to be resolved.

See below: https://medium.com/@Abdelrahman_Rezk/circuit-breaker-pattern-a-comprehensive-guide-with-nest-js-application-41300462d579

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nguyễn Viết Đại

79615130

Date: 2025-05-10 04:03:00
Score: 0.5
Natty:
Report link

Let RecyclerView handle views ,you only handle data and then notice recyclerview data are changed.

adapterNotCheckedList = RecyclerViewListAdapter(clickListener = { view: View, listItem: Any, position: Int ->
    //Here, besides visibility i want to move it to the top everytime unCheckedList gets smaller.
    checkedList.add(unCheckedList.removeAt(position))
    // you need get adapter.
    topAdapter.notifyItemRemoved(position)
    bottomAdapter.notifyItemInserted(checkedList.lastIndex)
})

if unchecked list is too large ,you will only see top recyclerview.

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: 卡尔斯路西法

79615122

Date: 2025-05-10 03:49:56
Score: 7.5 🚩
Natty: 6.5
Report link

Centering Caption Text -- Kenneth's 5/9/2023 answer does get the caption text to display below the thumbnail image, but for me, at least, it is left-justified. I have searched and found several solutions to center the caption text, but all of them apoparently applied to earlier versions of NextGen Gallery. I am running version 3.59.12 and none of the solutions I found did the job. Caption text remains left-justified. Any solutions to center it using a later version?

Reasons:
  • Blacklisted phrase (1.5): Any solution
  • RegEx Blacklisted phrase (2): Any solutions to center it using a later version?
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user2887237

79615105

Date: 2025-05-10 03:19:50
Score: 2
Natty:
Report link

Try the root user, and then you will have a message like:

Please login as the user "cloud-user" rather than the user "root"

Then you know the user.

In my case, it was cloud-user.

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

79615104

Date: 2025-05-10 03:17:49
Score: 1
Natty:
Report link

Initializes a new instance of the class

Gets format info

The filename of the archive file .

is null . The caller does not have the required permission to access . The is empty, contains only white spaces, or contains invalid characters . Access to file is denied . The specified exceeds the system-defined maximum length. For example, on Windows based platforms, paths must be less than 248 characters, and file names must be less than 260 characters . File at contains a colon (:) in the middle of the string . An I/0 error occurred while opening the file . Information about archive format or null if a format was not detected .

Gets format info

The stream of the archive file .

is null .

is not seekable Information about archive format or null if format was not detected .

Represents information about the archive format

Gets the class that represents the archive file

Gets the archive format

<member name="M Aspose Zip ArchiveInfo ArchiveFormatInfo .ToStrin

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

79615103

Date: 2025-05-10 03:10:47
Score: 1
Natty:
Report link

use @types lib to help typescript recognize definition of turndown

npm i --save-dev @types/turndown
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Honwhy Wang

79615102

Date: 2025-05-10 03:08:46
Score: 7 🚩
Natty: 5
Report link

Now Metadata::from_account_info() isn't available. Do you know how to do that in newest versions? Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Do you know how
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Francisco Rappazzini

79615101

Date: 2025-05-10 03:06:45
Score: 2
Natty:
Report link

What worked for me was opening the solution explorer and selecting "Reload with Dependencies" on my projects there.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Matthew McCord

79615096

Date: 2025-05-10 02:59:43
Score: 1
Natty:
Report link

2025 and using tf_keras instead of tf.keras.Sequential works !!

# Create model
import tf_keras
callback = tf_keras.callbacks.EarlyStopping(monitor="val_loss", patience=3)

model_1 = tf_keras.Sequential([
    use_layer,
    tf_keras.layers.Dense(1, activation="sigmoid")
])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Johny Payeras

79615094

Date: 2025-05-10 02:52:42
Score: 1.5
Natty:
Report link

Enums do not require annotation in the enhanced client mapper in aws sdk2

you can just do

@Data
@DynamoDBBean
@NoArgsConstructor
public class SomeModelClass {
  ...
  private SomeEnum someEnum
  ...
}

(Lombok @Data annotation)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Data
  • Low reputation (0.5):
Posted by: Jake O

79615088

Date: 2025-05-10 02:37:39
Score: 2
Natty:
Report link

{ "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1", "title": "One or more validation errors occurred.", "status": 400, "traceId": "00-78bd11a5cea5244998ade80c059479d0-8cb569e070ca0047-00", "errors": { "$": [ "'a' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0." ] } }

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: สรุจ ลิมปจีระวงษ์

79615074

Date: 2025-05-10 02:14:34
Score: 1
Natty:
Report link

Saving the context fixed the issue:

Button("Add") {
    let newModel = MyModel(name: "Example")
    modelContext.insert(newModel)
    try? modelContext.save() // Added this line.
    selectedModel = newModel
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: MohAliBou

79615072

Date: 2025-05-10 02:10:33
Score: 1.5
Natty:
Report link

Most trades on Binance or Coinbase don’t go directly on the blockchain. When you deposit crypto into the exchange, it goes into their wallet, and your account balance updates inside their system, not on-chain. When you buy or sell, it’s just numbers changing in the exchange’s database — no blockchain transaction happens at that point. Only when you withdraw your crypto to your own wallet does the exchange send it on-chain, and that’s when it appears on the blockchain. This system keeps trading fast and cheap, but it also means you have to trust the exchange to hold your funds safely. That’s why audits and proof of reserves are so important.

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

79615061

Date: 2025-05-10 01:47:29
Score: 1.5
Natty:
Report link

After doing further research, it seems that mockito 5.17.0 uses bytebuddy 1.15.11 that supports up to Java 23

Caused by: java.lang.IllegalArgumentException: Java 24 (68) is not supported by the current version of Byte Buddy which officially supports Java 23 (67) - update Byte Buddy or set net.bytebuddy.experimental as a VM property

bytebuddy only supports Java 25 ( including Java 24 ) from 1.17.5. The current workaround is to configure net.bytebuddy.experimental as suggested by this link also - https://github.com/raphw/byte-buddy/issues/1396

<pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <argLine>-Dnet.bytebuddy.experimental=true -javaagent:${mockito.core.jar} </argLine>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user20745683

79615054

Date: 2025-05-10 01:29:26
Score: 1
Natty:
Report link

In aggregate initialization, you know that you are always initializing the first member of a union, anonymous or not, while a structured binding does not know which anonymous union member is active, and so there is no way for a structured binding to know which anonymous union member to bind to.

If structured bindings were to always bind to the first anonymous union member, and that member were not active, it would lead to undefined behavior in C++ (even if type punning would work in C).

Anonymous unions do not have a union object which can be bound to in structured bindings, since the anonymous union members become members of the containing scope.

In contrast, a named union member can be bound by a structured binding, because then the union member object is the binding, and whichever union member is active can be accessed through the union object.

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

79615050

Date: 2025-05-10 01:22:24
Score: 1.5
Natty:
Report link

On a Mac, to copy text as plain text in Visual Studio Code:

  1. Install the "Copy Plain Text" extension.

  2. Use the shortcut "Ctrl + Option + C" to copy in plain text.

  3. Paste the copied text as usual using "Cmd + V".

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Manyam Nandeesh Reddy

79615042

Date: 2025-05-10 01:17:22
Score: 1
Natty:
Report link

Add a class name to the button before appendChild, and add all the static styling in the CSS file.

JS:

button.className = 'lobby-button';

CSS:

.lobby-button:hover {
 background-color: light-blue;
}

In case you need to add styling only using JS, other solutions are available here

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

79615041

Date: 2025-05-10 01:16:22
Score: 1.5
Natty:
Report link

The answer is in Message "error: resource android:attr/lStar not found".

Add the following code to app/android/build.gradle file solves the problem.

subprojects {
    afterEvaluate { project ->
        if (project.plugins.hasPlugin("com.android.application") ||
                project.plugins.hasPlugin("com.android.library")) {
            project.android {
                compileSdkVersion 34
                buildToolsVersion "34.0.0"
            }
        }
    }
}
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Peter Thompson

79615040

Date: 2025-05-10 01:16:22
Score: 3.5
Natty:
Report link

I see when I navigate via url www.mysite.com/pricing/ it's working. but when I click on nav pricing, it is serving as www.mysite.com/pricing without forward slash. I put "/pricing/" in the nav. Still unsure why redirects happen.

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

79615033

Date: 2025-05-10 00:55:18
Score: 1.5
Natty:
Report link

Run flllow commands to upgrade all other dependacies

npx expo install --fix && npm start -- --reset-cache

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

79615032

Date: 2025-05-10 00:52:17
Score: 11.5 🚩
Natty: 6.5
Report link

Were you able to solve this? I am having a very similar issue and cannot find a solution anywhere.

Reasons:
  • Blacklisted phrase (1): you able to solve
  • RegEx Blacklisted phrase (1.5): solve this?
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am having a very similar issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jared Elmoman555 Backofen

79615030

Date: 2025-05-10 00:51:16
Score: 4.5
Natty:
Report link

Do we seriously not have a solution for this?

I am just trying to do this myself and it is super annoying.

Even more annoying to argue with the AI LLMs who give me stupid 'solutions' to this which do not work :-(

EDIT update: Here is the link to a Youtube video with two ways of doing this.

https://www.youtube.com/watch?v=9BlxoOqEdtU&ab_channel=LeonRenner

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): Here is the link
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: user3556070

79615028

Date: 2025-05-10 00:44:14
Score: 3.5
Natty:
Report link

In my case the VPN was the cause, disable it and try again

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

79615023

Date: 2025-05-10 00:39:13
Score: 0.5
Natty:
Report link

What makes you think there's an issue with the state? With RocksDB, state that has been deleted can take some time to actually be compacted and freed. By default, I believe compaction begins somewhere around 400MB.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • High reputation (-2):
Posted by: David Anderson

79614983

Date: 2025-05-09 23:28:56
Score: 1
Natty:
Report link

OP raised this question on the Futureverse discussion forum at https://github.com/futureverse/future/discussions/777, where much more progress were made. See that for more details.

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

79614979

Date: 2025-05-09 23:26:56
Score: 0.5
Natty:
Report link

You posted this around 2025-04-14. There was a regression in future 1.40.0 (released on 2025-04-10) that might explain this. I've fixed this regression in future 1.49.0 (release on 2025-05-09). See https://future.futureverse.org/news/index.html for more details on what has been updated and fixed.

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

79614977

Date: 2025-05-09 23:20:54
Score: 1
Natty:
Report link

The main mistake is to use a public GUI instead of the player's GUI. the path to the local GUI is accessible via game.Players.LocalPlayer.PlayerGUI

local gui = game.Players.LocalPlayer.PlayerGui
local button = gui. -- Enter your path to button

button.MouseButton1Click:Connect(function()
    button.Text = "Clicked"
    wait(1)
    button.text = "CLICK ME"
end)
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Jeremy - Spaceflight Simulator

79614971

Date: 2025-05-09 23:10:51
Score: 4
Natty: 4
Report link

I would like you to give me the code for this snapchat account @gh.nouhaila

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

79614966

Date: 2025-05-09 23:02:49
Score: 2.5
Natty:
Report link

I used this for expire field in postgresql

ALTER TABLE sec_sessioninfo ALTER COLUMN expire_at SET DEFAULT CURRENT_TIMESTAMP + INTERVAL '1 HOUR'

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

79614952

Date: 2025-05-09 22:42:44
Score: 1
Natty:
Report link

I ran into this same problem and was able to resolve it by approaching the problem from a different angle. Instead of calling toast.custom() I call toast() and change the style of the normal toasts to not interfere with the custom content I want to display. This leaves the default animations in place.

First I added a custom class to all toasts via the toastOptions prop on the always-present <Toaster /> element.

<Toaster
  toastOptions={{
    className: 'react-hot-toast'
  }}
/>

I then targeted that custom class with CSS selectors to override the style of the default toast. In my case this required removing the margins and padding of the original toast and it's child element.

.react-hot-toast, .react-hot-toast > * {
  margin: 0 !important;
  padding: 0 !important;
}

Depending on the style of the content you want to display you may also need to set the background-color, border-radius, or other properties that conflict with the style of your custom JSX.

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

79614948

Date: 2025-05-09 22:37:43
Score: 5
Natty:
Report link

Is there a way to import the tables from mysql to solr without specifying field i.e. somehow I just specify the tables I want to import and solor creates those tables and imports all the fields.

Reasons:
  • Blacklisted phrase (1): Is there a way
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (1):
Posted by: user2043759

79614947

Date: 2025-05-09 22:36:42
Score: 2.5
Natty:
Report link

You would need to create Python Function App, please see the example below:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue-trigger?tabs=python-v2%2Cisolated-process%2Cnodejs-v4%2Cextensionv5&pivots=programming-language-python

For Python triggers and bindings are not supported to run as web job, instead you would need to create function app.

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

79614937

Date: 2025-05-09 22:21:38
Score: 1
Natty:
Report link

For anyone stumbling on this question after years, I tried Nyerguds' answer above, and while it did work for many programs such as Discord, it did not work out for pasting transparent pictures in Adobe Photoshop 2024 (25.12.3).

However, I did notice Photoshop will successfully paste transparent pictures copied from Google Chrome (but not Firefox).

For this reason, I have tried to investigate this by debugging the clipboard state, and while I don't have Nyerguds' intrinsic knowledge to really understand about what's going on internally in terms of format, here's a version that should work as a starting point for pasting transparent pictures in Photoshop.

You need to add a "Format17" entry to the DataObject (also known as DIBV5), and the data must use the BITMAPV5HEADER with the bV5AlphaMask value set to to 0xFF000000 for Photoshop to acknowledge it as being a transparent picture.

The code below assumes you are already using Nyerguds' answer.

// byte[] dibData is the first 13 lines of the `public static Byte[] ConvertToDib(Image image)` code from Nyerguds's answer.

private static byte[] ToDibV5(byte[] dibData, int imageWidth, int imageHeight)
{
    const uint dataStartPos = 0x7C;
    var result = new byte[dataStartPos + dibData.Length];
    
    // Lines with IGNORED means the value of 0 is used.
    
    // https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-bitmapv5header
    // 4 DWORD biSize;
    ArrayUtils.WriteIntToByteArray(result, 0x00, 4, true, dataStartPos);
    // 4 LONG  biWidth;
    ArrayUtils.WriteIntToByteArray(result, 0x04, 4, true, (uint)imageWidth);
    // 4 LONG  biHeight;
    ArrayUtils.WriteIntToByteArray(result, 0x08, 4, true, (uint)imageHeight);
    // 2 WORD  biPlanes;
    ArrayUtils.WriteIntToByteArray(result, 0x0C, 2, true, 0x01);
    // 2 WORD  biBitCount;
    ArrayUtils.WriteIntToByteArray(result, 0x0E, 2, true, 0x20);
    // IGNORED -- 4 DWORD biCompression;
    // IGNORED -- 4 DWORD biSizeImage;
    // IGNORED -- 4 LONG  biXPelsPerMeter;
    // IGNORED -- 4 LONG  biYPelsPerMeter;
    // IGNORED -- 4 DWORD biClrUsed;
    // IGNORED -- 4 DWORD biClrImportant;
    // IGNORED -- 4 DWORD        bV5Size;
    // IGNORED -- 4 LONG         bV5Width;
    // IGNORED -- 4 LONG         bV5Height;
    // IGNORED -- 2 WORD         bV5Planes;
    // IGNORED -- 2 WORD         bV5BitCount;
    // IGNORED -- 4 DWORD        bV5Compression;
    // IGNORED -- 4 DWORD        bV5SizeImage;
    // IGNORED -- 4 LONG         bV5XPelsPerMeter;
    // IGNORED -- 4 LONG         bV5YPelsPerMeter;
    // IGNORED -- 4 DWORD        bV5ClrUsed;
    // IGNORED -- 4 DWORD        bV5ClrImportant;
    // IGNORED -- 4 DWORD        bV5RedMask;
    // IGNORED -- 4 DWORD        bV5GreenMask;
    // IGNORED -- 4 DWORD        bV5BlueMask;
    // 4 DWORD        bV5AlphaMask;
    ArrayUtils.WriteIntToByteArray(result, 0x34, 4, true, 0xFF000000); // MUST BE SET for alpha to work in Photoshop.
    // IGNORED - 4 DWORD        bV5CSType;
    // ArrayUtils.WriteIntToByteArray(fullImage, 0x38, 4, true, 0x57696E20); // Google Chrome sets this to LCS_WINDOWS_COLOR_SPACE(0x57696E20)
    // CIEXYZTRIPLE bV5Endpoints;
    // IGNORED - 4 DWORD        bV5GammaRed;
    // IGNORED - 4 DWORD        bV5GammaGreen;
    // IGNORED - 4 DWORD        bV5GammaBlue;
    // IGNORED - 4 DWORD        bV5Intent;
    // ArrayUtils.WriteIntToByteArray(fullImage, 0x6C, 4, true, 0x04); // Google Chrome sets this to LCS_GM_IMAGES(0x04)
    // IGNORED - 4 DWORD        bV5ProfileData;
    // IGNORED - 4 DWORD        bV5ProfileSize;
    // IGNORED - 4 DWORD        bV5Reserved;
    
    Array.Copy(dibData, 0, result, dataStartPos, dibData.Length);
    
    return result;
}

// Then, add this in your existing DataObject.
data.SetData("Format17", false, dibv5Data);

// If by any chance you are using SetClipboardData in user32.dll, use `(uint)17` instead of `"Format17"`.
Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: HVR

79614917

Date: 2025-05-09 22:02:33
Score: 1.5
Natty:
Report link

https://youtu.be/yKzntXzwCRQ?si=c1R8EZOuLszSWjNV

Div-idy

Lately I’ve been experimenting with a no-code AI tool called Div-Idy that lets you build playable video games just by describing them in plain English. And yeah—I was skeptical too, but it actually works.

So far I’ve built:

What’s crazy is it gives you the HTML/JS/CSS code instantly, and you can edit it if you want—or just hit play. You don’t need to install anything, and it works in your browser.

It’s not Unreal or Unity obviously, but for fast 2D games, game jam ideas, or learning, it’s surprisingly powerful. And it’s 100% free to try right now.

If you’re like me and have a ton of game ideas but not enough time (or code experience) to build them, it might be worth checking out:
🔗 https://div-idy.com?s=stack

Curious if anyone else has tried it. Would love to see what others come up with.

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: AshtonK

79614910

Date: 2025-05-09 21:56:31
Score: 5.5
Natty: 5.5
Report link

I have run in to the same problem I want to search multiple entities using the keyword like amazon and macy.com let you search the products database and different attributes like size, color etc are stored in different tables. I ran into a video on FTS in MYSql and it can accomplish what I want and integrates well with java as I'm using spring boot jpa for my implementation but I'm concerned about the performance. I want to follow up on the authors of this question and want to know is solr a better solution, if so can I keep my data in MYSQL database and somehow link it to solr and only use solr for search purposes.How do I do that as I don't fine much information on it on internet. Is solr better? is it easy to search solr using JPA or Java? and what about the author of this question what did you end up using and how is it working for you?

Reasons:
  • Blacklisted phrase (1): How do I
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user2043759

79614908

Date: 2025-05-09 21:51:30
Score: 1
Natty:
Report link

in trigger.yml

  call_az_terra:
    needs: parse_and_call
    uses: ./.github/workflows/az_terra.yml
    with:
      environment: ${{ needs.parse_and_call.outputs.environment }}
    secrets:
      AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}

az_terra.yml (reusable workflow)

on:
  workflow_call:
    inputs:
      environment:
        required: true
        type: string
    secrets:
      AZURE_CREDENTIALS:
        required: true

The solution was provided by Benjamin W.

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

79614885

Date: 2025-05-09 21:34:25
Score: 4
Natty:
Report link

In order to help you, we need a bit more information than that. Are we talking about a database running on your local machine or remote? What are the connection parameters you are using? What is the exact error you are getting?

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

79614884

Date: 2025-05-09 21:32:25
Score: 1
Natty:
Report link

The img_grey approach works for me after fixing the data type to 8-bit integers:

img = Image.fromarray(255*data.astype(np.uint8), 'L')

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: algoristo

79614881

Date: 2025-05-09 21:29:24
Score: 0.5
Natty:
Report link

It seems like you are experiencing intermittent timeouts which could be caused by cold starts or concurrency saturation. There could be delays caused by cold starts if there are bursts of requests and despite setting the maxInstances to 30. Try setting the minInstances to 1 so that there is always a warm instance ready to handle requests.

Additionally, consider increasing your concurrency if a large number of requests comes beyond your concurrency limit as some requests may be queued.

You can also take a look at this Google Cloud Community discussion for helpful insights.

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

79614878

Date: 2025-05-09 21:24:22
Score: 1
Natty:
Report link

As far as I know, the android documentation specifies to use the assets directory or a res/raw/ for raw files.

So, you could create the assets directory in ...\main

C:\Users\(me)\AndroidStudioProjects\(android studio project name)\app\src\main\assets

Check the official documentation: https://developer.android.com/guide/topics/resources/providing-resources

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

79614875

Date: 2025-05-09 21:22:22
Score: 4
Natty:
Report link

System was old, the key was not long enough, had to create a new key.

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

79614871

Date: 2025-05-09 21:17:20
Score: 11 🚩
Natty: 6.5
Report link

Did you figure it out ? I have the same problem

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): Did you figure it out
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Anis Attouani

79614869

Date: 2025-05-09 21:16:19
Score: 1.5
Natty:
Report link

There seems to be an issue with forwarding ref in versions 2.0.0 and 2.1.0. It's a bug; they probably forgot to use ForwardRef when exporting the RigidBody Component. You can downgrade to 1.5.0, and your code will probably work :). Let's hope they'll fix it fast.

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

79614866

Date: 2025-05-09 21:12:19
Score: 3.5
Natty:
Report link

This problem was known by JetBrains and has been solved in version 2025.1.

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

79614848

Date: 2025-05-09 20:53:14
Score: 3
Natty:
Report link

Instead of to_timestamp try date_format

https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.date_format.html?highlight=date_format#pyspark.sql.functions.date_format

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

79614846

Date: 2025-05-09 20:51:14
Score: 0.5
Natty:
Report link

Starting from 2025-05-08 Postgres 18 support virtual generated columns.

PostgreSQL 18 introduces virtual generated columns that compute the column values just-in-time during query execution, instead of having to store them. This is now the default option for generated columns. Additionally, stored generated columns can now be logically replicated.

https://www.postgresql.org/about/news/postgresql-18-beta-1-released-3070/

Reasons:
  • No code block (0.5):
Posted by: Paul Verschoor

79614812

Date: 2025-05-09 20:19:07
Score: 1
Natty:
Report link

InputLabelProps was deprecated in material UI v6 and is getting removed in v7. This is what is working for me in v6.4.10:

<TextField label="ML Features" slotProps={{inputLabel: { shrink: true } }} />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Daniel Alfonsetti

79614811

Date: 2025-05-09 20:18:06
Score: 4
Natty:
Report link

You can now select bash as the default terminal:
enter image description here

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

79614806

Date: 2025-05-09 20:16:05
Score: 3.5
Natty:
Report link

I don't think there is a readily available intermediate lockfile API that can be used at this moment. We were facing the same problem, and I have been researching for the same solution.rules_python has an experimental lock API, but again, it doesn't generate the intermediate uv.lockfile. On the other hand, rules_uv performs the pyproject.toml to requirements.txt translation you mentioned.

Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ruicong Xie

79614796

Date: 2025-05-09 20:07:03
Score: 3.5
Natty:
Report link

I found that this npm package does what I need. It detects similar characters and performs replacements so I can then test strings.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Matthew