79443823

Date: 2025-02-16 19:52:35
Score: 2
Natty:
Report link

From my experience, this is likely due to the RDS proxy requesting more database connections than the database can service at the moment, either due to CPU limitations, or a max connection limit.

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

79443819

Date: 2025-02-16 19:48:34
Score: 1
Natty:
Report link

The original question is how to do a modulus of a very large number, but the detailed problem shows the modulus of a small number with a small exponent (which results in a very large number). These need a very different solution.

The suggested solution (function BigMod) solves the problem for modulus of a relatively small exponential number, but it can't handle one "very large number".

Excel can not store accurate numeric values of more than 15 digits (16 characters when you include the positive or negative sign) These big numbers can also cause formula errors, so you're better off calculating the modulus in another way. (the formula OP gave also gives inaccurate results for these 15 digit numbers, this might have to do with float numbers, but I won't go into detail about this)

Because of this I will show you how to solve a Modulus of a very large number (that is not an exponential number) with formulas and with a function (bottom of my answer)

OP his 2^288 example will be stored as number 497323236409787000000000000000000000000000000000000000000000000000000000000000000000000

This is an incorrect value, such a big number should be stored as a string: "497323236409786642155382248146820840100456150797347717440463976893159497012533375533056" (How you get such a big number as a string is a whole separate topic)

When you have your accurate very big number, you then have to go through the number/string from left to right, calculating modulus each time and then add the next part to it.

First possible formula solution, calculating modulus of the first chunk and adding the rest of the string back to it each time:

(note: Americans need to replace the semicolon for a comma)
A1 = "497323236409786642155382248146820840100456150797347717440463976893159497012533375533056"
(very large number)
B1 = 10
(length of the substring)
C1 = 2017
(modulus number)
A2 = MOD(LEFT(A1 ;$B$1);$C$1) & RIGHT(A1 ;LEN(A1 )-$B$1)
A3 = MOD(LEFT(A2 ;$B$1);$C$1) & RIGHT(A2 ;LEN(A2 )-$B$1)
A4 = MOD(LEFT(A3 ;$B$1);$C$1) & RIGHT(A3 ;LEN(A3 )-$B$1)
A5 = MOD(LEFT(A4 ;$B$1);$C$1) & RIGHT(A4 ;LEN(A4 )-$B$1)
A6 = MOD(LEFT(A5 ;$B$1);$C$1) & RIGHT(A5 ;LEN(A5 )-$B$1)
A7 = MOD(LEFT(A6 ;$B$1);$C$1) & RIGHT(A6 ;LEN(A6 )-$B$1)
A8 = MOD(LEFT(A7 ;$B$1);$C$1) & RIGHT(A7 ;LEN(A7 )-$B$1)
A9 = MOD(LEFT(A8 ;$B$1);$C$1) & RIGHT(A8 ;LEN(A8 )-$B$1)
A10= MOD(LEFT(A9 ;$B$1);$C$1) & RIGHT(A9 ;LEN(A9 )-$B$1)
A11= MOD(LEFT(A10;$B$1);$C$1) & RIGHT(A10;LEN(A10)-$B$1)
A12= MOD(LEFT(A11;$B$1);$C$1) & RIGHT(A11;LEN(A11)-$B$1)
A13= MOD(LEFT(A12;$B$1);$C$1) & RIGHT(A12;LEN(A12)-$B$1)
(remaining string is less than 10 characters, so we can do our final MOD now)
A14= MOD(A13;$C$1)
   = 891

Second possible formula solution, calculating the modulus of the first chunk and then keep taking the previous modulus result and adding the next chunk to it:

A2 = MOD( LEFT($A$1;$B$1);$C$1) & MID($A$1;($B$1*1)+1;$B$1)
A3 = MOD(A2;$C$1) & MID($A$1;($B$1*2)+1;$B$1)
A4 = MOD(A3;$C$1) & MID($A$1;($B$1*3)+1;$B$1)
A5 = MOD(A4;$C$1) & MID($A$1;($B$1*4)+1;$B$1)
A6 = MOD(A5;$C$1) & MID($A$1;($B$1*5)+1;$B$1)
A7 = MOD(A6;$C$1) & MID($A$1;($B$1*6)+1;$B$1)
A8 = MOD(A7;$C$1) & MID($A$1;($B$1*7)+1;$B$1)
A9 = MOD(A8;$C$1) & MID($A$1;($B$1*8)+1;$B$1)
A10= MOD(A9;$C$1)
   = 891
(with substrings of length 10 it will be done here)

If you know the maximum amount of steps you'll need, then you can combine this into 1 cell:

A2 = 
MOD(
 MOD(
  MOD(
   MOD(
    MOD(
     MOD(
      MOD(
       MOD(
        MOD(
         LEFT($A$1;$B$1)
        ;$C$1) & MID($A$1;($B$1*1)+1;$B$1)
       ;$C$1) & MID($A$1;($B$1*2)+1;$B$1)
      ;$C$1) & MID($A$1;($B$1*3)+1;$B$1)
     ;$C$1) & MID($A$1;($B$1*4)+1;$B$1)
    ;$C$1) & MID($A$1;($B$1*5)+1;$B$1)
   ;$C$1) & MID($A$1;($B$1*6)+1;$B$1)
  ;$C$1) & MID($A$1;($B$1*7)+1;$B$1)
 ;$C$1) & MID($A$1;($B$1*8)+1;$B$1)
;$C$1)
   = 891

Important note: these formulas can start throwing errors when your chunks are too big.

Now that you understand the process, I will put this into a function. This will go through the number character by character to keep it simple and to avoid errors caused by too big numbers. It also accepts both strings and numbers

Public Function BigNrMod(ByVal number As Variant, ByVal modulus As Double) As Double
    Dim remainder As Double
    remainder = 0
    Dim i As Integer
    For i = 1 To Len(number) ' Loop through each character
        'modulus of string to number (remainder & next character)
        remainder = CDbl(remainder & Mid(number, i, 1)) Mod modulus
        ' Alternatively modulus of sum (10x remainder + value of the next character)
        ' remainder = (remainder * 10 + Val(Mid(number, i, 1))) Mod modulus
    Next i
    BigNrMod = remainder
End Function

Here's also the ExponentialNumber function, but with the use of Mod instead of the formula:

Public Function ExpNrMod(ByVal number As Double, ByVal exponent As Integer, ByVal modulus As Double) As Double
    Dim tmp As Integer
    tmp = 1
    Dim i As Integer
    For i = 1 To exponent
        tmp = (tmp * number) Mod modulus
    Next i
    ExpNrMod = tmp
End Function
Reasons:
  • Blacklisted phrase (1): how to solve
  • Long answer (-1):
  • Has code block (-0.5):
  • Filler text (0.5): 000000000000000000000000000000000000000000000000000000000000000000000000
  • Low reputation (1):
Posted by: Nathan Haaren

79443815

Date: 2025-02-16 19:45:33
Score: 0.5
Natty:
Report link

at first glance, it looks like you need to change

$query = "SELECT user_id, firstname FROM users WHERE email = $1";

to

$query = "SELECT user_id, firstname FROM users WHERE email = $2";
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: slattman

79443807

Date: 2025-02-16 19:39:32
Score: 1
Natty:
Report link

I come across this old topic. My way to ignore '\n' is:

#include <string.h>
#include <stdio.h>
#define MAX_LENGTH 512

char *line, *tok;
FILE *file;

  fgets(line, MAX_LENGTH, file);
  tok = strchr(line, '\n');
  if (tok) *tok = '\0';
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Carlo Nervi

79443803

Date: 2025-02-16 19:36:31
Score: 2
Natty:
Report link

Most likely the SAP runtime is not installed, corrupted or the installed version does not match the one used in the application.

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

79443795

Date: 2025-02-16 19:27:29
Score: 0.5
Natty:
Report link

Following Tom Sharpe's suggestion from comments, I was able to build upon Creating Datavalidation with custom Formula to achieve both of my requirements:

var criteria = SpreadsheetApp.DataValidationCriteria.DATE_ON_OR_BEFORE;
var args = ["=TODAY()"];
var val = SpreadsheetApp.newDataValidation().withCriteria(criteria,args);

This gives me both dynamic check that uses "today()" as date, and date picker for input.

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

79443790

Date: 2025-02-16 19:23:27
Score: 6 đŸš©
Natty:
Report link

Mine is working fine. I still use flutter 3.24.5 Could you provide the flutter doctor result?

Have you try to clean the gradle?

./gradlew clean
./gradlew --stop
./gradlew build
Reasons:
  • RegEx Blacklisted phrase (2.5): Could you provide
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: anonymous cat

79443784

Date: 2025-02-16 19:18:26
Score: 3
Natty:
Report link

so if it was a command like find . -newer "1 week ago" -a -not -newer "3 days ago"

The newer command is just saying to look for files newer then 7 days ago and not to find file newer then 3 days ago, so then the find -newer command must have a date or time specified to look for files that are newer then that date or time.?/

$ find / -newer /tmp/file -print

in this example though theres no time or date specified. is that because it is referencing to

$ touch -mt 09301300 /tmp/file

which has a date and time specified in the file... /tmp/file.

does the find -newer command always need a reference file?

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

79443778

Date: 2025-02-16 19:17:26
Score: 2.5
Natty:
Report link

So here is the thing:

  1. I was generating the checksum correctly but not hashing it properly. So here I've explained it how it should be done.
  2. Minio right now (16.02.2025) has some internal issue with checksum for the entire object as I've explained here. Meaning that AWS S3 works just fine with this code.

And make sure to watch my YouTube video about this: https://youtu.be/Pgl_NmbxPUo.

Reasons:
  • Blacklisted phrase (1): youtu.be
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mohammad Jawad Barati

79443777

Date: 2025-02-16 19:16:26
Score: 0.5
Natty:
Report link

If you are using <Stack.Screen ...> (in 2025), this may solve your issue

Scenario - Inside the directory where you app.tsx (or) app directory is located, suppose you have sub-directories, which are for different groups / sub tasks for your app (ex - app/auth/otp-handling.tsx). Each such directory will have its own _layout.tsx, in which we typically have the settings for the header, which is local to the directory. Lets say you are developing / testing the otp-handling.tsx, so to do that you may have imported that component directly into your app.tsx (the mistake which I had done). And the header styles were not applied, despite mentioning then clearly in the Stack.Screen in _layout.tsx. Here when you import a component which is under a subdir with its own _layout.tsx, into app.tsx, it (otp-handling.tsx, say) would follow the _layout.tsx of the app directory (outer one). Hence instead of importing it, use 'useRouter' from expo-router and do router.push('/auth/otp-handling'), it will work, as the otp-handling.tsx will now follow _layout.tsx of the auth directory.

Note - do that router.push in a useEffect, in a set timeout (1000ms) Believe me, it works!

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Chirag G. Shetty

79443773

Date: 2025-02-16 19:15:25
Score: 2
Natty:
Report link

export const useProductsStore = defineStore("products", () => { const products = ref<TProduct[] | undefined>();

async function setProducts() { if (products.value !== undefined) return; // if it’s not necessary to block script execution here, use “then” instead of “await“ products.value = ( await fetchData( "https://dummyjson.com/products?limit=5" ) ).products; }

return { products, }; });

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Pierre CÎté

79443762

Date: 2025-02-16 19:04:23
Score: 1.5
Natty:
Report link

The issue is in the timing. dynamicLoader is defined as ViewChild and because of that is available only after the AfterViewInit lifecycle hook and undefined during OnInit. Just switch ngOnInit to ngAfterViewInit and you should be good to go.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Igor AugustyƄski

79443747

Date: 2025-02-16 18:56:21
Score: 1
Natty:
Report link

Use a proper date-time object for your creation time

To store your creation time in an instance field in an object, use Instant, not String. Strings are for presentation to users, for storage if your storage doesn’t support date-time types and for data exchange.

For example:

    OffsetDateTime creationDateTime = ZonedDateTime.of(
                    2025, 2, 16, 23, 35, 0, 0,
                    ZoneId.of("Asia/Yekaterinburg"))
            .toOffsetDateTime();
    System.out.println(creationDateTime);

    Instant creationTime = creationDateTime.toInstant();
    System.out.println(creationTime);

Output:

2025-02-16T23:35+05:00
2025-02-16T18:35:00Z

The Instant already prints in the format you asked for, only it will also print a fraction of second if a non-zero fraction exists.

If against my recommendation you insist on a string, I suggest this formatter:

private static final DateTimeFormatter formatter
        = new DateTimeFormatterBuilder()
                .append(DateTimeFormatter.ISO_LOCAL_DATE)
                .appendLiteral('T')
                .appendPattern("HH:mm:ssX")
                .toFormatter(Locale.ROOT);

It’s wordier than yours but has the advantage of reusing the built-in DateTimeFormatter.ISO_LOCAL_DATE. Now convert to UTC and format:

    String utcString = creationDateTime.withOffsetSameInstant(ZoneOffset.UTC)
            .format(formatter);
    System.out.println(utcString);

Output is the same as before:

2025-02-16T18:35:00Z

You are not adding a time zone

An OffsetDateTime has an offset from UTC, hence the class name. In java.time parlance a time zone is a IANA time zone and comprises past, present and future UTC offsets used in a particular place, the zone, such as Asia/Yekaterinburg in my code example above. So UTC is not a time zone, and an OffsetDateTime cannot have a time zone in this sense (this is what we have the ZonedDateTime class for).

Converting to UTC

Do I need to set timezone using withOffsetSameInstant(ZoneOffset.of("UTC")))); or I can skip it?

First, ZoneOffset.of("UTC") throws an exception. Instead use the built-in constant ZoneOffset.UTC. Then the answer to your question is, it depends on the result you want, of course. Your result will typically differ depending on whether you convert it to UTC or not.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Hosna LĂłpez

79443745

Date: 2025-02-16 18:55:21
Score: 1.5
Natty:
Report link

Power Automate Desktop uses its own Python env, not the system one, which is causing the issue. The packages you are installing are being installed in system's python environment. To resolve the issue, you will have to install the required packages directly in PAD's python installation. So locate and activate that enviroment and do pip install azure-storage-blob.

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

79443744

Date: 2025-02-16 18:55:21
Score: 2
Natty:
Report link

Yes, Device Bound Session Credentials (DBSC) is an industry effort to better bind cookies to the browsing context on the device.

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

79443725

Date: 2025-02-16 18:42:18
Score: 1.5
Natty:
Report link

I get wht's going wrong. Today I realize that the KKS variable include the quotation marks itself, thatÂŽs why the query_sql don't work. What I do is to get rid of the quotation marks with this:

KKS = Mid(KKS,2, Len(KKS -2)

Now it's working, thanks all for your help.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mario Cordeiro

79443719

Date: 2025-02-16 18:35:17
Score: 0.5
Natty:
Report link

Removing the encryption-related options in the device's fstab should be the easiest way to disable encryption without complicated, bug-prone edits to source code.

You can see examples of an fstab entry for userdata here.

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

79443711

Date: 2025-02-16 18:30:15
Score: 3
Natty:
Report link

SHOW tasks will show only 2 states ‘started’ or ‘suspended’. To view the past executions of task Realtime(without latency) task data of previous 7 days: https://docs.snowflake.com/en/sql-reference/functions/task_history

Task data for last 1 year with 45 minute latency: https://docs.snowflake.com/en/sql-reference/account-usage/task_history

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

79443709

Date: 2025-02-16 18:30:15
Score: 5.5
Natty: 6.5
Report link

Any update on this? IÂŽm interested..

Reasons:
  • Blacklisted phrase (1): update on this
  • Low length (2):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pablo Aschieri

79443701

Date: 2025-02-16 18:27:14
Score: 1
Natty:
Report link

This Microsoft MVP Access blog seems to answer my question in that there does not seem to be a programmatic way to forget/clear the connection cache.

Even so, here are three options for others to pursue, though I encourage others to read the blog first.

  1. The conditional MS Access policy time out needs to be expanded. Although the security team isn't really budging on this, I still think this is the first solution to explore for anyone else facing my problem.

  2. Using a SQL authenticated account. This is not best practice in my opinion. You can create a dedicated SQL Server authenticated account (or several) and share this with account and the password with users. The obvious risks are outlined more clearly in the MS blog.

  3. Create a custom library to pass the refresh token. The way I might do this is use a .NET (with COM) approach and build something using the MSAL library. Then integrate this into VBA and update the connection string to use the token using the SQL_COPT_SS_ACCESS_TOKEN attribute.

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

79443694

Date: 2025-02-16 18:23:13
Score: 2.5
Natty:
Report link

I think the best approach here would be to use the ignoreErrors option https://docs.sentry.io/platforms/javascript/configuration/filtering/

Sentry.init({
  ignoreErrors: [
    "Can't find variable: gmo"
  ],
});
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kenyon Kowal

79443687

Date: 2025-02-16 18:16:11
Score: 1
Natty:
Report link

I had the same ussue, updating permissions solved it.

Click create new app, choose source Git and digital ocean will ask you to update git permissions

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

79443661

Date: 2025-02-16 18:00:07
Score: 1
Natty:
Report link

# Subject: Internal script counter with VARIABLE.

# Example: time of file download, and so on.

now=$(date +'%s')sec;

echo ""

echo "[INF] Running script..."

echo ""

# The sleep timer command contains by default the running time in a probative form which by a comparison between the output and itself if the output is correct and the output time was printed correctly.

# Timmer command, Input: 5 seconds.

sleep 5s

InfTimExe=$(TZ='UTC' date --date now-$now +"%Hhours:%Mmins.%Ssecs")

# Output: 5 seconds.

echo "[INF] Internal run time of the script: $InfTimExe"

echo ""

exit

Code/JPG

Execution/JPG

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

79443658

Date: 2025-02-16 17:58:07
Score: 3
Natty:
Report link

Your direction == "North" or "South" or "East" or "West" isn't actually doing what you think it is. (There was a reply about this, but it didn't explain fully what was going on.) Every string, in logic, is equivalent to True. So this actually means direction == True or True or True or True. This collapses down to direction == True, which is always false. Instead, you should do direction == "North" or direction == "South" or direction == "East" or direction == "West". Python is like English, but it doesn't have all the properties of it. I'm a beginner at Python, can do most basic things, but I don't understand a lot of what these answers are, and I'm glad to help if any more problems are in my expertise. Feel free to edit my typos or anything else. Please don't edit the answer, though, unless it is a vital caveat that I missed.

Reasons:
  • RegEx Blacklisted phrase (2): I'm a beginner
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: required_banana

79443652

Date: 2025-02-16 17:54:05
Score: 1
Natty:
Report link

If you are using Norton Antivirus, try disabling the "Safe Web" feature

Only disabling Firewall is not enough!

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Jilco Tigchelaar

79443651

Date: 2025-02-16 17:53:05
Score: 2
Natty:
Report link

open app.config.ts and flow these steps:

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

79443648

Date: 2025-02-16 17:51:04
Score: 0.5
Natty:
Report link

The problem is that standard input is not always a pipe, and splice(2) requires at least one side to be a pipe.

$ ./test < test.c
splice: Invalid argument
(exit: 1)
$ cat test.c | ./test
$ ./test
(exit: 1)

In the first case, standard input is a file, which cannot be spliced. In the second case, it is a pipe. In the third case, it's a character device i.e. my terminal.

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

79443647

Date: 2025-02-16 17:50:04
Score: 2.5
Natty:
Report link

Thanks to this i got the answer!

All HTTPS connections outside of browser fail with "SSL certificate problem: unable to get local issuer certificate"

If you are using Norton Antivirus, try disabling the "Safe Web" feature

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Jilco Tigchelaar

79443646

Date: 2025-02-16 17:48:04
Score: 1
Natty:
Report link
@import "tailwindcss";

@theme {
}

@keyframes asd {
    0% {
        opacity: 1;
    }
    10%,
    100% {
        opacity: 0;
    }
    50%,
    100% {
        width: 0;
        margin: 0;
    }
  }

#main {
  width: 450px;
  height: 200px;
  border: solid 1px black;
  margin: 100px;
  display: flex;
  justify-content: center;
}

#one {
  width: 200px;
  height: 200px;
  border: solid 1px red;
}

#second {
  position: static;
  visibility: visible;
  width: 200px;
  height: 200px;
  border: solid 1px blue;
}

#main:hover {
  animation-duration: 1s;
  animation-name: make-small;
  animation-fill-mode: forwards;
}

#main > *{
  margin: 0 auto;
  }

#main:hover #second {
  animation-duration: 1s;
  animation-name: asd;
  animation-fill-mode: forwards;
}

done: https://play.tailwindcss.com/JniN5UninR?file=css

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

79443641

Date: 2025-02-16 17:42:02
Score: 1
Natty:
Report link

For PHP 8.4.3

For PHP 8.4.3 on Debian 12 "bookworm", the OS of the official docker image, add the following to your Dockerfile:

RUN apt-get install -y libgmp-dev && \
docker-php-ext-install -j$(nproc) gmp
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mel Te

79443635

Date: 2025-02-16 17:39:01
Score: 3.5
Natty:
Report link

I always put the string into a local Access table and use DoCmd.TransferText...

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

79443629

Date: 2025-02-16 17:35:00
Score: 0.5
Natty:
Report link

The solution was to close the pipe handles after creating the process.

So

  if (!CreateProcess( 
    NULL,
    filename, //TODO: check unicode?
    NULL,
    NULL,
    TRUE,
    0,
    NULL,
    NULL,
    &si,
    pi)
  ) {
    printf("Could not create process\n");
    return NULL;
  }
CloseHandle(g_hChildStd_OUT_Wr); 
CloseHandle(g_hChildStd_IN_Rd);

I guess because then only the child holds a handle to the resources, not the parent.

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

79443628

Date: 2025-02-16 17:35:00
Score: 0.5
Natty:
Report link

r=polar.base_scalar(0) or r,theta=polar.base_scalars() should be added before definition of the metric g=....

Please note that the definition of x and y x,y=symbols(...) should be moved before their use in relation_dict = {....

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

79443610

Date: 2025-02-16 17:25:58
Score: 0.5
Natty:
Report link

For those who are looking for RSA (asymmetric keys), You can set the key id while constructing the security credentials (below snippet shows an example).

var accessTokenDescription = new SecurityTokenDescriptor
{
    Issuer = "https://example.in",
    IssuedAt = DateTime.UtcNow,
    NotBefore = DateTime.UtcNow,
    Expires = DateTime.UtcNow.AddSeconds(accessTokenExpiry),
    SigningCredentials = new SigningCredentials(new RsaSecurityKey(rsa)
    {
        KeyId = "hello-world"
    }, SecurityAlgorithms.RsaSsaPssSha256)
};

When the token is generated, it will have kid in the JWT header like below:

Decoded JWT showing the kid in header

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

79443600

Date: 2025-02-16 17:17:56
Score: 2
Natty:
Report link

I find this happens most often when I switch windows. If I toggle preview on and off (⌘K then v) - it usually resolves itself.

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

79443598

Date: 2025-02-16 17:17:56
Score: 2.5
Natty:
Report link

Feel free to check isolated_box library. This box is build on top on Hive with the same API but different init and is multi-isolate.

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

79443593

Date: 2025-02-16 17:13:56
Score: 1
Natty:
Report link
  1. I am not going to ruin performance and productivity by forcing any WASM project to work via an API. Performance is awful.
  2. Databases like DynamoDB can be accessed directly from WASM
  3. When running WASM in a container on the server, it is pointless to create an API to access SQL Server in this scenario.
  4. Blazor SSR is not at all helpful!

Give us SQL Server access from client/server WASM.

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

79443591

Date: 2025-02-16 17:13:56
Score: 0.5
Natty:
Report link

If you are using <Stack.Screen ...> (in 2025), this may solve your issue

Scenario - Inside the directory where you app.tsx (or) app directory is located, suppose you have sub-directories, which are for different groups / sub tasks for your app (ex - app/auth/otp-handling.tsx). Each such directory will have its own _layout.tsx, in which we typically have the settings for the header, which is local to the directory. Lets say you are developing / testing the otp-handling.tsx, so to do that you may have imported that component directly into your app.tsx (the mistake which I had done). And the header styles were not applied, despite mentioning then clearly in the Stack.Screen in _layout.tsx. Here when you import a component which is under a subdir with its own _layout.tsx, into app.tsx, it (otp-handling.tsx, say) would follow the _layout.tsx of the app directory (outer one). Hence instead of importing it, use 'useRouter' from expo-router and do router.push('/auth/otp-handling'), it will work, as the otp-handling.tsx will now follow _layout.tsx of the auth directory. Believe me, it works!

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Chirag G. Shetty

79443572

Date: 2025-02-16 17:02:54
Score: 2.5
Natty:
Report link

Found at: Settings>Editor>UI Tools>Editor View Mode: Resource: Code

Screenshot: Android Studio XML as code setting

Windows 10 and recent Android Studio version: Android Studio Ladybug Feature Drop | 2024.2.2

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

79443571

Date: 2025-02-16 17:02:54
Score: 2.5
Natty:
Report link

it seems to be a bug because I was also looking for a solution and I saw that on other sites there are people who have had this problem just recently. I don't usually use stackoverflow, so forgive me for the not very detailed answer (maybe someone can add some more details). The solution that a user on reddit seems to have used, is to do the configuration only on the platforms that interest you. In my case only ios and android.

flutterfire configure --platforms=android,ios

I hope I helped you!

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • No code block (0.5):
  • Low reputation (1):
Posted by: Claudio

79443568

Date: 2025-02-16 16:59:53
Score: 2.5
Natty:
Report link

I got the same error I am able to fix it the issue was in the website folder I created the file init.py file incorrectly first i created like these init.py and when I tried to run main.py I am getting error
ImportError: cannot import name 'create_app' from 'website' (unknown location)

second I renamed the file with two underscores init.py and when I tried to rerun the main.py my issue was solved PS C:\Users\dgr_g\daily-task\flask-web-aaplication> & C:/Users/dgr_g/AppData/Local/Programs/Python/Python313/python.exe c:/Users/dgr_g/daily-task/flask-web-aaplication/main.py

Reasons:
  • Blacklisted phrase (1.5): m getting error
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: d.gou

79443565

Date: 2025-02-16 16:58:52
Score: 3.5
Natty:
Report link

It's pip issue, updating it should help https://github.com/pygobject/pycairo/issues/384

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

79443564

Date: 2025-02-16 16:57:51
Score: 10.5 đŸš©
Natty: 5
Report link

Facing the similar issue. Did you got the solution for this issue ?

Reasons:
  • RegEx Blacklisted phrase (3): Did you got the solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): Facing the similar issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Shouvik Das

79443556

Date: 2025-02-16 16:51:50
Score: 1
Natty:
Report link

# Subject: Internal script counter with FILE.TXT.

# Example: time of file download, and so on.

now=$(date +'%s')sec;

echo ""

echo ""

# The sleep timer command contains by default the running time in a probative form which by a comparison between the output and itself if the output is correct and the output time was printed correctly.

# Timmer command, Input: 5 seconds.

sleep 5s

InfTimExe=$(TZ='UTC' date --date now-$now +"%Hhours:%Mmins.%Ssecs")

echo "$InfTimExe" >> Date.txt

unset -v InfTimExe

# Output: 5 seconds.

echo "[INF] Internal run time of the script:"

echo ""

cat Date.txt

rm Date.txt

echo ""

echo ""

exit

Code/JPG

Execution/JPG

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

79443555

Date: 2025-02-16 16:51:50
Score: 2.5
Natty:
Report link

I believe it's simpler. When you create your Firestore database, you probably assign it a name. Try recreating it without specifying a name—Firestore will automatically create one with the (default) name. That should work. Give it a try!

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

79443526

Date: 2025-02-16 16:33:46
Score: 1
Natty:
Report link

I changed bcrypt package to bcryptjs and it worked 🚀.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Daniel Valencia

79443525

Date: 2025-02-16 16:33:46
Score: 1
Natty:
Report link

I substantively use the AnthonyC solution by means of a small function that prunes the stratified terms from the model:

library(survival)
library(survminer)

  colon <- within(colon, {
  sex <- factor(sex, labels = c("female", "male"))
  differ <- factor(differ, labels = c("well", "moderate", "poor"))
  extent <- factor(extent, labels = c("submuc.", "muscle", "serosa", "contig."))})


stratamodel <- coxph(Surv(time, status) ~ sex + strata(rx) + adhere + 
differ + extent + node4,
                 data = colon )

prun<-function(model) {
    if (any(grepl("strata", names(attr(model$terms, "dataClasses"))))) {attr(model$terms, "dataClasses")<-attr(model$terms, "dataClasses")[-which(grepl("strata", names(attr(model$terms, "dataClasses"))))]}
    model
    }

windows(8,8);ggforest(prun(stratamodel), data=colon, main="Stratified model")

enter image description here

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

79443522

Date: 2025-02-16 16:30:46
Score: 0.5
Natty:
Report link

What you can do is:

  1. Get the version of your NDK by going to C:\Users\<your_user>\AppData\Local\Android\Sdk\ndk
  2. Mention the same version in <project_directory>\android\local.properties file by changingndk.dir value to the version you get in step 1. If ndk.dir is absent, add ndk.dir=<your_version> to the file.
  3. Set the version of flutter.ndkVersion to the same version in <flutter_dir>\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy file.
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): What you can
  • Low reputation (0.5):
Posted by: Saarthak Gupta

79443520

Date: 2025-02-16 16:29:45
Score: 0.5
Natty:
Report link

Java is a Stable Language for many years.

  1. There is nothing that Java Do not have and any other language have.
  2. If you think Java doesn't have this, means you don't know.
  3. And if Java doesn't have something it must be a reason. For example Java doesn't have pointers doesn't mean it is bad than C++, It has a reason, you do not need it in Java.
  4. First understand how JDK,JRE, and JVM works. Java is not just a syntax that you can compare.
  5. No matter what anyone say WORA, WORE, Security, In-bult features of JVM, combination of being Compiled, Interpreted, and JITC these are unmatched to any programming language.
  6. In java now, if you know how to work you do not have to even write the code much there are tools for everything. (Where in Python or any language you have to write the code, you cannot just generate pre written logic like in java. So Java might have 6000 line but among them only 50 lines were manually written but in Python you have to write all the 6000 line, I personally wont like it all, Why i am unnecessary write the code to save the data in Database every time, if my code can do it on its own in 10 lines using generating pre-written logic?)

I will answer all the other question as it will come as an comments.

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

79443516

Date: 2025-02-16 16:29:45
Score: 3
Natty:
Report link

Hide your wp-login then add

rewrite /wp-login.php $scheme://$remote_addr/wp-login.php permanent; in your nginx conf file

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

79443509

Date: 2025-02-16 16:26:45
Score: 2.5
Natty:
Report link

I have used angular v18, and I have moved files from the dist > browser folder to the main dist folder and it has resolved the error related to the 404 mainfest file.

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

79443508

Date: 2025-02-16 16:26:45
Score: 1
Natty:
Report link

this might be a bit comprehensive:

y::z
z::y
!a::Send("{U+00E4}")  ; Alt + a → Ă€
!+A::Send("{U+00C4}") ; Alt + Shift + A → Ä
!o::Send("{U+00F6}")  ; Alt + o → ö
!+O::Send("{U+00D6}") ; Alt + Shift + O → Ö
!u::Send("{U+00FC}")  ; Alt + u → ĂŒ
!+U::Send("{U+00DC}") ; Alt + Shift + U → Ü
!s::Send("{U+00DF}")  ; Alt + s → ß
!e::Send("{U+20AC}")  ; Alt + e → €

!=::Send("{U+2260}")  ; ≠
!.::Send("{U+2192}")  ; →
+::Send("{U+005D}")   ; ]
*::Send("{U+007D}")   ; }
+2::Send("{U+0040}")  ; @
+3::Send("{U+0023}")  ; #
+6::Send("{U+005E}")  ; ^
+7::Send("{U+0026}")  ; &
+8::Send("{U+002A}")  ; *
+9::Send("{U+0028}")  ; (
+0::Send("{U+0029}")  ; )

ß::Send("{U+002D}")   ; -
+ß::Send("{U+005F}")  ; _
ÂŽ::Send("{U+003D}")   ; =
+ÂŽ::Send("{U+002B}")  ; +
ö::Send("{U+003B}")   ; ;
+ö::Send("{U+003A}")  ; :
Ă€::Send("{U+0027}")   ; '
+Ă€::Send("{U+0022}")  ; "
ĂŒ::Send("{U+005B}")   ; [
+ĂŒ::Send("{U+007B}")  ; {
^::Send("{U+0060}")   ; `
+°::Send("{U+007E}")  ; ~
#::Send("{U+005C}")   ; \
+'::Send("{U+007C}")  ; |
-::Send("{U+002F}")   ; /
+-::Send("{U+003F}")  ; ?
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Papa Analytica

79443494

Date: 2025-02-16 16:18:43
Score: 0.5
Natty:
Report link
bottomNavigationBar: Container(
          padding: EdgeInsets.symmetric(
              horizontal: 10, vertical: 30), // Reduce padding
          decoration: BoxDecoration(),
          child: ConvexAppBar(
            backgroundColor: Colors.white,
            cornerRadius: 5,
            color: AppColors.black,
            activeColor: AppColors.primary2,
            style: TabStyle.fixedCircle,
            shadowColor: Colors.grey.shade400,
            items: [
              TabItem(title: 'Home', icon: Icons.list),
              TabItem(title: 'Home', icon: Icons.list),
              TabItem(
                icon: Container(
                  padding: EdgeInsets.all(5),
                  decoration: BoxDecoration(
                    color: AppColors.primary2,
                    shape: BoxShape.circle,
                  ),
                  child:
                      SvgPicture.asset('assets/icons/home_center_flower.svg'),
                ),
              ),
              TabItem(title: 'Home', icon: Icons.list),
              TabItem(title: 'Home', icon: Icons.list),
            ],
            initialActiveIndex: 1,
            onTap: (int i) => print('click index=$i'),
          ),
        )

use convex_bottom_bar: ^3.2.0 from pub.dev https://pub.dev/packages/convex_bottom_bar

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

79443493

Date: 2025-02-16 16:17:42
Score: 6.5 đŸš©
Natty: 4.5
Report link

I was able to reproduced the jiggle both in Debian 12.x and CentOS 9 running your demo program with Java 23.0.2. In Debian the jiggle always happens. In CentOS the jiggle happens once or twice in a row, then a couple of times everything works ok, but then the jiggle comes back, and so on. I changed the visual effects setting and nothing changed. I removed the alert.initOwner() and nothing changed. Have you found a solution to this problem?

Reasons:
  • RegEx Blacklisted phrase (2.5): Have you found a solution to this problem
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eduardo Ostertag

79443486

Date: 2025-02-16 16:12:41
Score: 1.5
Natty:
Report link

I found that I was connecting to the wrong database. My Prisma CLI was connecting find and pulling environment variables from my .env file, however my Next.Js app was pulling database connection parameters from my .env.local file. I needed to double check exactly which database I was connecting to.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Joss Bird

79443477

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

Old thread, but in case anyone stumbles across this...

Diagnostics should only be use in Analyzers (not Generators).

Reason: With a Generator, you need to cache Diagnostic info during parsing as part of an ImmutableArray. This needs to get passed to your RegisterSourceOutput handler (SourceProductionContext is required to report the Diagnostic).

The reason you should NOT do this is because that diagnostic info invariably relies on Symbol locations, which are highly variant. Thus, you are constantly breaking the cache-flow that relies on immutable data to remain relatively stable.

The means means your Generator will be really slow.

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

79443470

Date: 2025-02-16 16:03:39
Score: 2
Natty:
Report link

As a side note, I got this exact same error because I crossed the threshold of 6000 characters available for all embeds and fields for a single message. I wasn't aware of that limit, so didn't look for it, but instead paid attention to the limits per embed and field. Very confusing error to return for my specific problem.

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

79443469

Date: 2025-02-16 16:03:38
Score: 8.5 đŸš©
Natty:
Report link

I'm facing the same problem, I need to update relations but the integer "id" field is required for this and I didn't get it from anywhere , in my case I have "users" collection that have a many-to-one relationship with "position" collection my update graphql looks like this:

mutation AssignUserToPosition($id: ID!, 
$data:UsersPermissionsUserInput!) {
updateUsersPermissionsUser(id: $id, data: $data) {
  data {
    documentId
  }
}}

when I pass this for variables:

{
  id: "asdfghjkdsjkgjdvgskl",
  data: { position: "laskfjfpgiewjgwp" }
}

I found it like this in strapi v5 documentation this article

So please it's Urgent If anyone knows a solution or can give us a hint of how to preceed with this.

Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): m facing the same problem
  • Blacklisted phrase (1): anyone knows
  • RegEx Blacklisted phrase (2): Urgent
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing the same problem
  • Low reputation (1):
Posted by: Assia Nour

79443451

Date: 2025-02-16 15:51:35
Score: 1
Natty:
Report link

MongoDB does not natively support the relational model and its typical relationships like JOINs, which are commonly used in SQL-based databases and handled by ORMs (Object-Relational Mappers). MongoDB is a NoSQL database, and it uses a document-oriented model instead, where data is stored in JSON-like documents.

In MongoDB, relationships are typically managed in a different way, like by embedding documents or using manual references between them, but it doesn't have the automatic relationship management features that ORMs provide for relational databases.

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

79443448

Date: 2025-02-16 15:50:35
Score: 1.5
Natty:
Report link

getMonth() method returns the month as a zero-based index. Hence it is 0 for 12 as a month.

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

79443447

Date: 2025-02-16 15:49:34
Score: 1.5
Natty:
Report link

Because the architects of Unix decided that file I/O was best done with per-process arrays inside the kernel, exposing the integer indices as part of the ABI. And that C, Unix's main language, uses zero-based indices for arrays. And that standard I/O, redirect-able and pipeline-able, was best accomplished with three file descriptors, the first three, and assigning them (arbitrarily) in order as input, output, and error. And naming them thus, and providing predefined constants thereof, and utility programs (like the shell) that set all new executing processes up that way...

A Unix process doesn't have to use the standard I/O, it's free to move things around and use them any which way, but that's what every one that's created with the standard tools for doing so will wake up with, and that almost every program that already exists expects to find when it wakes up.

TL/DR? Because that's how Unix works.

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

79443439

Date: 2025-02-16 15:46:34
Score: 3.5
Natty:
Report link

I know this is an old question, but I found this today - https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/dd4dc725-021b-4c8c-a44a-49b3235836b7

No actual object has objectGUID equal to the NULL GUID. The root object has parent equal to the NULL GUID.

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

79443429

Date: 2025-02-16 15:36:32
Score: 1.5
Natty:
Report link

Use gg_season() instead of ggseason().

Explanation:

As can be observed from the book question, it says autoplot(), gg_season(), gg_subseries(), gg_lag(),ACF() |> autoplot().

Whereas your question shows the use of ggseason() which can handle ts objects easily but aus_retail is not a ts object , it is tsibble which requires gg_season() R code showing that aus_retail is not a ts object

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Narayana Srikanth Reddy

79443428

Date: 2025-02-16 15:36:31
Score: 4
Natty:
Report link

Found this which looks good (quite new, still in development) https://github.com/fontanf/packingsolver

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

79443423

Date: 2025-02-16 15:32:30
Score: 0.5
Natty:
Report link

Virtual threads offer the exact same thing as coroutines. It is just in a different format. And Structured concurrency is on the way for them as well. The Virtual Threads solve the color problem, meaning that any function in Java can be either Async or Sync depending on the Thread, and no code needs to be changed. However for a coroutine, you need to have the suspend keyword on the function. This divides the whole Kotlin ecosystem into two colors - suspend and non suspend. No such thing happens with Virtual Threads.

Many people say they did it due to backward compatibility. Actually, they did it as this is the superior approach and due to backward compatibility.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ВасОл Đ•ĐłĐŸĐČ

79443421

Date: 2025-02-16 15:32:30
Score: 0.5
Natty:
Report link

Is there a specific reason why you are loading configs using an async function?

You might want to consider using environment variables with the resolve keyword, which allows you to inject secrets at runtime without fetching them manually in your application code.

AWS Secrets Manager supports referencing secrets directly in environment variables. You can define them in your serverless.yml like this:

provider:
  stage: ${opt:stage, "your-stage"}
  environment:
    DB_NAME: '{{resolve:secretsmanager:youraccount-${self:provider.stage}:SecretString:dbName}}'
    DB_PASS: '{{resolve:secretsmanager:youraccount-${self:provider.stage}:SecretString:dbPass}}'

If you are not using multiple stages, you can simplify this further by removing the stage reference from the secret path.

With this approach, your NestJS app can simply access these values through process.env without any additional async calls, something like this:

const DB_NAME = process.env.DB_NAME
const DB_PASS = process.env.DB_PASS
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (0.5):
Posted by: Peca021

79443410

Date: 2025-02-16 15:21:28
Score: 3
Natty:
Report link

Hadry mene lmoi mn chmnl dvvhgi mbl mn bi or rhnbo fvgju mn kanha shrama yuvajshrama Bhvavn shrama shrama Gajananan sharma mblof 5000

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

79443409

Date: 2025-02-16 15:21:28
Score: 1.5
Natty:
Report link

E/error: com.android.volley.NoConnectionError: java.net.ConnectException: failed to connect to /127.0.0.1 (port 4567) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused) This is the server part:

Spark.post("/up", new Route() { public Object handle(Request req, Response res) { System.out.println(req.queryParams()); return "its something"; } });

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

79443405

Date: 2025-02-16 15:20:28
Score: 0.5
Natty:
Report link

If anyone counter this issue again, the reason for me was the view option was set to false on the fortify config:

// config/fortify.php

<?php

use Laravel\Fortify\Features;

return [
//...

 'views' => true,

//...
];
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: EL MAHDI Bouzkoura

79443404

Date: 2025-02-16 15:20:28
Score: 2
Natty:
Report link

This question is old, but I wanted to share something, for anyone who is still learning jQuery and can't get this to work:

You might wanna check which quotes you used...Single quotes must be around the data, so the concatenated parts must be in double quotes.

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

79443402

Date: 2025-02-16 15:19:28
Score: 2.5
Natty:
Report link

You can simulate EOF with CTRL+D (for *nix) or CTRL+Z (for Windows) from command line. In widows, when you are ready to complete the input 1.press the Enter key 2.then press Ctrl+Z 3.then Enter to complete the input.

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

79443397

Date: 2025-02-16 15:17:27
Score: 0.5
Natty:
Report link

In Laravel 11, u should register the provider via bootstrap/providers.php :

<?php

return [
    App\Providers\AppServiceProvider::class,
    App\Providers\FortifyServiceProvider::class,
];

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: EL MAHDI Bouzkoura

79443394

Date: 2025-02-16 15:15:27
Score: 1
Natty:
Report link

The answer given by @A.Mohammed_Eshaan has been deleted. It was, however, the corect answer: Place static content in a folder named public at the root level of the project and use the root url to access it. e.g. if you have a file named hello_world.txt in the /public folder omit the public folder name and access as follows async fecth('/hello_world.txt').

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

79443390

Date: 2025-02-16 15:14:26
Score: 2
Natty:
Report link

This is sample module activity plugin that shows an button only that alert('Hello World')

Hello World Plugin

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

79443389

Date: 2025-02-16 15:10:26
Score: 1.5
Natty:
Report link

Confirmed that nowPlayingInfo needs to contain:

nowPlayingInfo[MPNowPlayingInfoPropertyMediaType] = MPNowPlayingInfoMediaType.audio.rawValue
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: bruno617

79443384

Date: 2025-02-16 15:07:25
Score: 0.5
Natty:
Report link

With the introduction of the QUERY_ALL_PACKAGES permission, figuring out the native library path of other apps seems to have become disabled by default, as the information is actively being filtered, see https://developer.android.com/training/package-visibility

When an app targets Android 11 (API level 30) or higher and queries for information about the other apps that are installed on a device, the system filters this information by default.

However, any app with the QUERY_ALL_PACKAGES permission can indeed use getPackageManager().getInstalledPackages() for example, to query all apps and can then use the method mentioned above, getApplicationInfo().nativeLibraryDir, to figure out the path.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ruben P. Grady

79443381

Date: 2025-02-16 15:05:24
Score: 1
Natty:
Report link

ailwind CSS follows a mobile‑first approach. This means that the unprefixed classes (like flex-row) apply to all screen sizes by default, and breakpoint‑prefixed classes (like md:flex-col) only take effect when the viewport is at least the specified minimum width (768px for md). In your code, flex-row is always active on screens smaller than 768px, and only when the viewport is 768px or larger does md:flex-col override it.

If your intention is to have a column layout on smaller screens and switch to a row layout on larger ones, reverse the order of your classes like so:

...

This way, by default (on mobile) you get flex-col and then md:flex-row kicks in on larger screens.

Also, ensure your Tailwind configuration hasn’t been modified from the default breakpoints if you expect the standard behavior.

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

79443378

Date: 2025-02-16 15:04:24
Score: 0.5
Natty:
Report link

My question is, how do I update PDO to use the latest sqlite3 version?

You have to update the PDO extension, and specifically the sqlite3 driver extension of PDO with the updated libraries.

PDO is part of core, you can find the source code here: https://github.com/php/php-src/?tab=readme-ov-file#building-php-source-code

SQLite3 is already mentioned in the prerequisites before make.

Reasons:
  • Blacklisted phrase (1): how do I
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: hakre

79443376

Date: 2025-02-16 15:02:24
Score: 1.5
Natty:
Report link

It seems that there is no issue with the links, they work perfectly fine. I tested this on multiple different browsers, including Firefox on other machines, everything works perfectly fine.

Despite what other answers/comments claim, this works fine in Firefox and Chrome. You don't need to change settings or use an absolute path.

My issue seems to have been some settings or plugins in my browser that I have changed. Haven't figure out what those are yet, but the image links work normally.

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

79443363

Date: 2025-02-16 14:56:22
Score: 1.5
Natty:
Report link

You can fetch football leagues by date using the API's specific endpoint with a date parameter. Check the documentation for the correct query format and required permissions. If you enjoy football-related content, you might also like FC Mobile Simulation Game. Hope this helps

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

79443342

Date: 2025-02-16 14:45:19
Score: 9.5 đŸš©
Natty:
Report link

O problema que vocĂȘ estĂĄ enfrentando parece estar relacionado Ă  forma como vocĂȘ estĂĄ tentando extrair uma ArrayList<String> de um HashMap<String, Object>. A dificuldade pode estar na maneira como o conteĂșdo do HashMap estĂĄ sendo interpretado ou convertido.

Aqui estão algumas possíveis razÔes e soluçÔes:

  1. Tipo de Dados no HashMap:

    • O HashMap estĂĄ declarado como HashMap<String, Object>, o que significa que o valor associado a qualquer chave Ă© do tipo Object. Quando vocĂȘ tenta extrair uma ArrayList<String>, o Java pode nĂŁo estar conseguindo fazer o cast automaticamente para ArrayList<String> porque o valor Ă© tratado como um Object.
    • Solução: Faça um cast explĂ­cito para ArrayList<String> ao extrair o valor. Por exemplo:
      ArrayList<String> test = (ArrayList<String>) mappings.get("role");
      
  2. Verificação de Nulo:

    • Antes de fazer o cast, verifique se o valor nĂŁo Ă© nulo para evitar NullPointerException.
    • Solução:
      if (mappings.get("role") != null) {
          ArrayList<String> test = (ArrayList<String>) mappings.get("role");
      }
      
  3. Tipo Real do Objeto:

    • O valor associado Ă  chave "role" pode nĂŁo ser realmente uma ArrayList<String>, mas sim outro tipo de lista ou coleção. Isso causaria uma ClassCastException.
    • Solução: Verifique o tipo real do objeto antes de fazer o cast:
      Object role = mappings.get("role");
      if (role instanceof ArrayList) {
          ArrayList<?> test = (ArrayList<?>) role;
          // Se vocĂȘ precisar garantir que Ă© uma lista de Strings, pode fazer um cast adicional ou verificar o tipo dos elementos.
      }
      
  4. Problemas com o DRL (Drools Rule Language):

    • Se vocĂȘ estĂĄ usando Drools, pode haver uma incompatibilidade na forma como o DRL interpreta os tipos de dados. Certifique-se de que o DRL estĂĄ corretamente configurado para lidar com ArrayList e HashMap.
    • Solução: Verifique a sintaxe e as importaçÔes no arquivo .drl para garantir que todos os tipos de dados estĂŁo corretamente referenciados.
  5. Exemplo Completo:

    • Aqui estĂĄ um exemplo completo de como vocĂȘ poderia extrair e verificar a ArrayList<String>:
      if (mappings != null && mappings.containsKey("role")) {
          Object role = mappings.get("role");
          if (role instanceof ArrayList) {
              ArrayList<?> tempList = (ArrayList<?>) role;
              if (!tempList.isEmpty() && tempList.get(0) instanceof String) {
                  ArrayList<String> test = (ArrayList<String>) tempList;
                  // Agora vocĂȘ pode usar `test` como uma ArrayList<String>
              }
          }
      }
      

Resumindo, o problema provavelmente estå relacionado ao cast de tipos ou à verificação de tipos. Certifique-se de que o valor no HashMap é realmente uma ArrayList<String> e faça o cast e as verificaçÔes necessårias para evitar erros.

Reasons:
  • Blacklisted phrase (3): vocĂȘ
  • Blacklisted phrase (1): estĂĄ
  • Blacklisted phrase (1): de Dados
  • Blacklisted phrase (1): de dados
  • Blacklisted phrase (1): porque
  • Blacklisted phrase (1): nĂŁo
  • Blacklisted phrase (2): Solução
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Matheuzin SA

79443336

Date: 2025-02-16 14:44:18
Score: 1
Natty:
Report link

I used this information, but I made a small change when I needed to use notNull.

The notNull method didn't work in this case:

price: 
  decimal("price", {
    precision: 10,
    scale: 2,
  }).notNull() as unknown as PgDoublePrecisionBuilderInitial<"price">

So I changed it to:

price: (
  decimal("price", {
    precision: 10,
    scale: 2,
  }) as unknown as PgDoublePrecisionBuilderInitial<"price">
).notNull()
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bernardo Gomes

79443334

Date: 2025-02-16 14:41:17
Score: 3
Natty:
Report link

Hello dear i think you are opening the app in local please open your app as a development mode then the this error will be solved

npx expo install expo-dev-client

eas build --profile development --platform android

Reasons:
  • RegEx Blacklisted phrase (1): i think you are opening the app in local please
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Muhammad Maaz Khan

79443320

Date: 2025-02-16 14:35:16
Score: 2.5
Natty:
Report link

delete the ios folder, maybe copy any special config you did there first. then recreate the folder through flutter create -i swift -i

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

79443318

Date: 2025-02-16 14:35:16
Score: 2
Natty:
Report link

def sort_decimals(numbers: List[float]) -> List[float]: return sorted(numbers) print(sort_decimals(['104.900209904', '238.501860857', '9.59893298149', '362.470027924', '419.737339973']))

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

79443317

Date: 2025-02-16 14:35:16
Score: 1
Natty:
Report link

For people who reads this stackoverflow question:

There is now a new release of string-grouper: 0.7 which fixes several deprecations warnings and is less prone to Cython build error like the one above as it uses a recent version of sparse_dot_topn package and not the specific dependency sparse_dot_topn_for_blocks.

So:

pip install --upgrade string_grouper

NB: I'm a contributor of this release.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Guillaume

79443315

Date: 2025-02-16 14:34:16
Score: 1.5
Natty:
Report link

This is not necessarily an answer to your problem, it is just a mention that I have a very similar situation, I am using Python 3.12.9, and I have tried even Python 3.13.2, but quite the same problems I had. I am wondering if the possible installation in a SnadBox would be a possible solution to this problem.

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

79443305

Date: 2025-02-16 14:30:15
Score: 0.5
Natty:
Report link

The OP also does not mention the DPDK release/version in use. The driver in question was patched not so long ago, precisely with regard to the queue stop functionality. So it is worthwhile rebuilding DPDK v24.11 from source to check whether the issue is still there. And, of course, debug printouts will make it easier to rule out any other discrepancies, should such be present.

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

79443301

Date: 2025-02-16 14:29:15
Score: 0.5
Natty:
Report link

I want to clarify that I am not an expert in node.js and much less in electron, I am making this application for personal use and as I learn about the use of javascript focused on the backend with node.js, it is possible that I am not applying community conventions or best practices.

I have managed to get the solution in the following way:

await app.whenReady();
this.ipcController = new IpcController(
    this.windowManager,
    this.backendController,
    this.appConfig
);

this.mainWindow = await this.windowManager.createMainWindow();

this.ipcController.setMainWindow(this.mainWindow);

The new method in ipcController is:

setMainWindow(window) {
    this.windowManager.mainWindow = window;
}

With this order and logic, both the content handlers and those associated with interactions of the created window work correctly.

I think the answer I found only works for event control of rendered content so it is not a general solution.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Francisco IA Lover

79443289

Date: 2025-02-16 14:24:13
Score: 0.5
Natty:
Report link

Here's how I ended up getting this to work...

int? switchValue = 0;  // initial segmented control value
...
onValueChanged: (int? newValue) {
  setState(() { switchValue = newValue; }); }
...
// inside ListView.builder...
  itemCount: snapshot.data!.length,
  builder: (context, index) {
    if (switchValue == 0) { // 0 = "show Active only"
      switch (snapshot.data![index]['archived']) {
        case false:
          return ListTile(...  // build full listTile
        default:
          return SizedBox.shrink(); // zero-size/empty
    } else { // switchValue is 1, so "show all"
      return ListTile(...
    }

Seemed like the simplest solution. Thanks to the answers above, though - I learned all about the .where functionality, and about SizedBox.shrink(), which I'd never seen before.

Now if I can just figure out a way to smoothly animate the transition between Active only / Show all (instead of the abrupt change), I'll be rolling.

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

79443288

Date: 2025-02-16 14:24:13
Score: 5.5
Natty: 5
Report link

I want to thank you for your link

Reasons:
  • Blacklisted phrase (0.5): thank you
  • RegEx Blacklisted phrase (1): I want
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zuiio

79443287

Date: 2025-02-16 14:22:12
Score: 1.5
Natty:
Report link

You need to use different names for Traefik routers, middlewares and services - otherwise you are overwriting existing ones across Docker services.

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

79443276

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

There is a package called tsc-alias include it along side scripts in package.json npx tsc && tsc-alias this would resolve the paths so that we can run it with node. I believe this is much easier and cleaner

 "scripts": {
  "build": "npx tsc && tsc-alias"
 }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Muhammed Sirajudeen

79443273

Date: 2025-02-16 14:12:10
Score: 3
Natty:
Report link

use this tool made using rust gui based tool having good features

https://github.com/Divyamsirswal/asm2hex

.asm -> .bin -> .hex

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

79443268

Date: 2025-02-16 14:05:09
Score: 5
Natty: 6.5
Report link

I found this blog, and it have a solution,

Adding request headers to image requests using a service worker

Reasons:
  • Blacklisted phrase (1): this blog
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Islam alqutami

79443261

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

good day bosses, i have tried all that was written above but did not work so what solved it for me was the scrollControlDisabledMaxHeightRatio parameter of the showModalBottomSheet function. its set to 9/16 by default, I then change it to 8/10, like this:

            showModalBottomSheet(
                        scrollControlDisabledMaxHeightRatio: 8 / 10,
                        enableDrag: false,
                        context: context,
                        builder: (context) => SingleChildScrollView(
                            child: Padding(
                          padding: EdgeInsets.only(
                            bottom:MediaQuery.of(context).viewInsets.bottom),
                          child: YourWidget(),
                        )),
                      );
Reasons:
  • Blacklisted phrase (1): did not work
  • Blacklisted phrase (1): good day
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Olasiyan Daniel

79443260

Date: 2025-02-16 14:01:08
Score: 2
Natty:
Report link

Thanks everybody! I finally decided to merge the Director and the Identity User and go with the Roles instead of making another class for an entity which is ultimately an Application User. I know this solution is sort of not the exact thing I wanted at the very first place, but it makes everything simple and clean.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): solution is
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rohhab

79443252

Date: 2025-02-16 13:54:06
Score: 2.5
Natty:
Report link

That standard arrangement looks like this, extended as neccessary to cover your grid size.

Will elaborate calculation give you anything significantly better?

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: ravenspoint

79443246

Date: 2025-02-16 13:52:06
Score: 0.5
Natty:
Report link

I'm glad I could help you. Sorry if I'm replying after a day. I'll reply with another answer here because it's too long in the comments.

So printf \0 is used to tell bash that the command is finished, a bit like saying ; in programming languages, to mean that the instruction is finished. This happens if you're in bash, while in the MariaDB terminal it returns lines with \n.

While for $NAMELIST it's a Bash problem, not a dialog problem.

For this you need to use options[@], because it allows you to pass each separate element since it's an array.

If you pass it as a string, Bash interprets it as a single value, even if there are spaces.

To give you a practical example to help you understand the concept, I once came across a database with phone numbers.

The problem was that some numbers started with 0, and the computer if you assigned that number as an integer, the 0 cut it, and consequently the number was very wrong.

Example:

Int number = 055333333 —> 55333333

String number = 055333333 —> 055333333

In this case I had to use a string to solve the problem, rightly the 0 in front of a number without a comma, it's as if it wasn't there.

This is an example in reverse, but it's to make you understand how sometimes you have to interpret things differently on the PC.

Sorry for my English. If you have other questions don't hesitate to ask, for now bye bye and good continuation with the script

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

79443244

Date: 2025-02-16 13:50:06
Score: 1
Natty:
Report link

It seems Android Studio build's log doesn't show the specific errors. By checking the xcode I can see a build issue:

enter image description here

Which the issue is with room's config for IOS. By adding the following line in framework block inside cocoapods block, the build is successfull:

kotlin {
    cocoapods {
        summary = "Some description for the Shared Module"
        homepage = "Link to the Shared Module homepage"
        version = "1.0"
        ios.deploymentTarget = "16.2"
        podfile = project.file("../iosApp/Podfile")
        framework {
            baseName = "ComposeApp"
            isStatic = false
            transitiveExport = false // This is default.
            linkerOpts.add("-lsqlite3") // I had to add this line
        }
    }
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: mohammad fakhraee