79645984

Date: 2025-05-30 19:19:22
Score: 0.5
Natty:
Report link

While it may not be possible with type families, here is a hacked up solution.

class CurryN num a b | num a -> b, b -> a where 
    curryNp :: b -> a

makeTuple :: forall num a1 a2. CurryN (ToPeano num) a1 (a2 -> a2) => a1 
makeTuple = curryNp @(ToPeano num) id
instance CurryingN  (Succ (Succ Zero)) (v1 -> v2 -> v3) ((v1, v2) -> v3) where
    curryNp =curry
... for all tuples
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ashok Kimmel

79645979

Date: 2025-05-30 19:16:21
Score: 1
Natty:
Report link
gcloud auth revoke --all
rm ~/.config/gcloud/application_default_credentials.json
gcloud auth application-default login
gcloud auth login
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tsvi Sabo

79645970

Date: 2025-05-30 19:10:19
Score: 3
Natty:
Report link
header 1 header 2
cell 1 cell 2
cell 3 cell 4
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user30679888

79645958

Date: 2025-05-30 18:53:14
Score: 2
Natty:
Report link

it's really working >> Go to windows>preferences>xml(wild web developer)(double click)>select download external resources like referenced DTD,XSD. Now check your xml file your error will be disappeared

.

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

79645957

Date: 2025-05-30 18:52:13
Score: 1.5
Natty:
Report link

You cannot do that.

Origin is mentioned to enforce CORS. You will need to out in all the origins (as a comma or colon separated string) and only then it can work.

Dynamic addition defeats the very idea of CORS protection.

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

79645956

Date: 2025-05-30 18:52:13
Score: 0.5
Natty:
Report link

They added an option, `--with-strip-program` for this, you can set it to your crosscompiler's stript.

I found that in my case that's not the whole thing, since it will still try to build a terminfo db, which needs 'tic'. there's a fallback for that too, where it should use the one from the build host. a path can also be specified. In my case the host was too old and so the ncurses version it had also failed badly.

It's likely a case of more of RTFM but I'll also set out to just disable 'progs'

basically there seem to be ways to add the database, even a premade one. they are just a bit too hard to figure out when not being a ncurses developer.

though they have to be applauded, their configure script at least really catches all the potential problems.

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

79645954

Date: 2025-05-30 18:49:13
Score: 1
Natty:
Report link

I know this is pretty old, but one thing you may be able to do is alias your older React dependency.

In your React 16 project's package.json,

"dependencies": {
  "react-16": "npm:[email protected]",
}

Now in your React 16 dependent app, you would replace all of your react imports/requires with react-16.

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

79645948

Date: 2025-05-30 18:46:12
Score: 1
Natty:
Report link

You're missing the horizontal scrollbar declaration, This is what helps define what orientation the scrollArea will take

<ScrollBar orientation="horizontal" />
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Peter Ola

79645947

Date: 2025-05-30 18:46:12
Score: 1
Natty:
Report link
`id = models.CharField(max_length=10, unique=True, editable=False)`
` def save(self, *args, **kwargs):
        if not self.id:
            self.id = get_random_string(6).upper()
        super().save(*args, **kwargs)`

You can make it simple through just overriding the default save method of models

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

79645944

Date: 2025-05-30 18:43:11
Score: 1.5
Natty:
Report link

No official material-icons yet exist for compose.material3 in Compose Multiplatform.

You need either to create the icons yourself in SVG or ImageVector or to use compose-icon library to have FontAwesome icons by example.

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

79645942

Date: 2025-05-30 18:41:10
Score: 1
Natty:
Report link

I was able to achieve a pruned DAG by following method.

Step 1: Obtain a topological ordering of the nodes in the DAG.

The Step 1 will give you the node number for a node id.

Step 2: Make an edge list with the node_id replaced with it's number obtained in step 1. The list will have each element of the form (src, dst).

Step 3: Sort the edge list by ascending order of the dst and if the dst is equal descending order of src.

Step 4: Iterate through the edge list and form a Graph. If the src and dst are in the Graph and there is a path from src to dst skip the edge, else add the edge to the Graph.

You will get a pruned graph.

I was able to get a pruned graph for my case, let me know if there is any edge case that invalidates the above method.

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

79645933

Date: 2025-05-30 18:27:06
Score: 0.5
Natty:
Report link

Assuming the system is defined by the matrices {A,B,C,D} you have

xn+1 = Axn + Bun

yn = Cxn + Dun

You can modify this to have additional outputs, in this case the state vector itself, without changing the system dynamics:

xn+1 = Axn + Bun

[ yn ; xn ] = [ C ; I ]xn + [ D ; 0 ]un

This will result in a vector output from the block [ yn ; xn ] and you can separate this using a Selector block, sending the portion of the vector for yn wherever you previously used that signal (e.g. feedback loop) and sending xn to wherever you want to have the full state measurement.

Let's assume

Then instead of putting A, B, C, D, and Ts into the Discrete State Space block, you'd put A, B, [ C ; eye(N) ], and [ D ; zeros(M,L) ] as in the following: Block Parameters: Discrete State-Space

Note that my dummy example uses N = 4, M = 3, L = 2, and Ts = 1

Then, to get yn add a selector block to get the elements 1:M like this: Selector for y

And similarly for xn, you want elements (M+1):(M+N) like this: Selector for x

Since you have not modified the system matrices {A,B,C,D} you're free to continue using them for analysis or design tasks as is.

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

79645924

Date: 2025-05-30 18:15:03
Score: 3.5
Natty:
Report link

Toggle fields will be helpful.

Please refer discussions in https://r4csr.org/tlf-assemble.html

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

79645920

Date: 2025-05-30 18:12:02
Score: 2.5
Natty:
Report link

Correct me if I'm wrong. You can access the custom CCP URL, but you can't access Connect because access to Amazon Connect is blocked from the custom CCP in S3.

If this is the case, in the "Approved Domains" section, add the URL of your S3 bucket or the domain from which you intend to connect to Amazon Connect.

Approved domains

You can find the reference at this link https://docs.aws.amazon.com/connect/latest/adminguide/app-integration.html

Reasons:
  • Blacklisted phrase (1): this link
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jorge Luis Salcedo Prado

79645919

Date: 2025-05-30 18:12:02
Score: 2.5
Natty:
Report link

Unlike Microsoft's poorly implemented shortcuts, Unix and Linux implement hard links and symbolic ("soft") links at the filesystem level. This means that the only way an application can distinguish between an "actual file" and a symbolic link to the actual file, is by requesting specific information from the filesystem.

If bash is looking for ~/.bashrc and finds something there (either a real file, or a symbolic link to a file...or even a symbolic link to a symbolic link to a symbolic link.... to a file... it will treat the symbolically linked file as if it were at the place where the symbolic link is it.

why?

BECAUSE THAT IS THE ENTIRE PURPOSE OF HAVING SYMBOLIC LINKS.

Reasons:
  • Blacklisted phrase (0.5): why?
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Aaron Kulkis

79645916

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

add

ChartRedraw(0); 

under the set integer function

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

79645915

Date: 2025-05-30 18:09:01
Score: 1
Natty:
Report link

I think you're asking if you can send a post request from information in a Google Sheet. This is possible, but not in the app itself. Instead, you need to access the information in another language (such as Python, explained below), and update the post request there.

  1. Access Google Sheets / Create a project and an API key which accesses your sheet

    1. https://developers.google.com/workspace/guides/configure-oauth-consent

    2. https://developers.google.com/workspace/sheets/api/quickstart/python

  2. Read the values within the cell with an API call to the sheet

    1. https://developers.google.com/workspace/sheets/api/guides/values
  3. Use your information to make a post request as you usually would

    1. Go to Postman

    2. Find a request you want to make

    3. On the very right side, click </>

    4. Navigate to (in this case) Python - Requests

    5. Copy + Paste the code there into your Python file

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

79645901

Date: 2025-05-30 17:57:59
Score: 2.5
Natty:
Report link

I had the issue when using numpy 1.26.0, but it went away when I upgraded to 1.26.4. I think you need to install 1.26.4 or later.

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

79645899

Date: 2025-05-30 17:56:58
Score: 2
Natty:
Report link

I mentioned in my original post that I thought that ps2pdf was a script that called gs. This turns out to be correct. ps2pdf is the generic script; there are 3 or 4 other scripts that get called if you want your output to be PostScript Level 2, for example. But on my system the script that actually does something is ps2pdfwr:

#!/bin/sh
# Convert PostScript to PDF without specifying CompatibilityLevel.

# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
    gs="$GS_EXECUTABLE"
fi
GS_EXECUTABLE="$gs"

OPTIONS="-P- -dSAFER"
while true
do
    case "$1" in
    -?*) OPTIONS="$OPTIONS $1" ;;
    *)  break ;;
    esac
    shift
done

if [ $# -lt 1 -o $# -gt 2 ]; then
    echo "Usage: `basename \"$0\"` [options...] (input.[e]ps|-) [output.pdf|-]" 1>&2
    exit 1
fi

infile="$1";

if [ $# -eq 1 ]
then
    case "${infile}" in
      -)        outfile=- ;;
      *.eps)    base=`basename "${infile}" .eps`; outfile="${base}.pdf" ;;
      *.ps)     base=`basename "${infile}" .ps`; outfile="${base}.pdf" ;;
      *)        base=`basename "${infile}"`; outfile="${base}.pdf" ;;
    esac
else
    outfile="$2"
fi

# We have to include the options twice because -I only takes effect if it
# appears before other options.
exec "$GS_EXECUTABLE" $OPTIONS -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS "$infile"

So, from my original post, this worked

$ ps2pdf testfile.ps

but this did NOT work

$ gs -sDEVICE=pdfwrite -o testfile.pdf testfile.ps

Based on my examination of the script ps2pdfwr above, I tried this, which DID work:

gs -P- -dSAFER -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr \

-sOutputFile=testfile.pdf testfile.ps

I don't understand which of the switches did the trick, but I guess I'm satisfied that gs can indeed substitute fonts if you give it the right switches.

KenS - Thanks for your comments. In researching this problem over the past few days I kept running into comments saying that you had to modify gs's Fontmap file to include any new font you wanted to use, and supply the full path to the modified Fontmap file as a switch to your gs command. That all actually seems to be unnecessary -- though I suppose it is possible that ghostscript modifies its Fontmap file as needed as the user specifies a new system font.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): did NOT work
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Paul Dulaney

79645898

Date: 2025-05-30 17:54:58
Score: 3.5
Natty:
Report link

fyi it wasn't enterprise but now it is

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

79645891

Date: 2025-05-30 17:48:56
Score: 2
Natty:
Report link

It sounds like upon initialization the bottom or minimal value allowable is set to 30 (or what ever you set it at) and during run-time one can only increase from there. A possible work around is to set the initial value to 1, and then immediately after initialization set the value to 30 as a default. After this point you should, based on the prior results, set it dynamically to anything above 1.

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

79645888

Date: 2025-05-30 17:46:55
Score: 0.5
Natty:
Report link

I found the solution... After attaching to the remote target and once all symbols are loaded, I need to pause the debugger, then set a breakpoint that can be hit from my program, click on run again, it'll hit the breakpoint, and all variables and source code will be shown. You can also set a breakpoint from the beginning before clicking on the green button of attaching to a debug session, then click on the green triangle to run/attach to remote process it will hit the breakpoint and source code will be shown as well as variables, call stack, etc.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-2): I found the solution
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ulises V.

79645884

Date: 2025-05-30 17:44:54
Score: 0.5
Natty:
Report link

It is quite surprising to me that (beyond the other two mandatory fields) "orderBy": "timestamp desc" works but "orderBy": "timestamp asc" does not, it only returns an empty response with the next page token!

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

79645880

Date: 2025-05-30 17:41:53
Score: 0.5
Natty:
Report link

The problem is in the response header.

When you are using Apache server as a proxy server, you are passing the JWT token in response headers. The problem with proxy servers is that extra care needs to be done to ensure that the proxy server is forwarding all your response headers from the backend server to frontend.

Usually, the proxy server sends its own set of response headers and not the headers from backend server. If you are to send the access token in response body, you would notice that your issue is resolved

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

79645875

Date: 2025-05-30 17:36:52
Score: 0.5
Natty:
Report link

Easiest way to get around this is avoid Terraforms type checking for the variable:

variable subnets {
    type = any
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: austinheiman

79645871

Date: 2025-05-30 17:33:51
Score: 1
Natty:
Report link

maybe add this for checking the stop level points

int stopLevelPoints = (int)MarketInfo(Symbol(), MODE_STOPLEVEL);
      if(stopLevelPoints==0){
        stopLevelPoints=(int)SymbolInfoInteger(_Symbol,SYMBOL_TRADE_STOPS_LEVEL);
        }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Forex Coder

79645870

Date: 2025-05-30 17:32:51
Score: 3.5
Natty:
Report link

FYI, I ended up using the proxy server with the double hop method, used Kerberos, and added the become settings on there and it's working now without admin rights. Thanks for the help all!

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

79645855

Date: 2025-05-30 17:23:49
Score: 2
Natty:
Report link

After setting your working directory:

hist1 <- hist(rnorm(1000),  xlab  = "x", ylab = "density", probability=T)

install.packages("sjPlot")

library(sjPlot)

save_plot("myhist.png", fig = hist1, width = 50, height = 25)

Base R:

hist2 <- hist(rnorm(1000),  xlab  = "x", ylab = "density", probability=T)


png(filename = "C:\\YourPath\\myhist2.png")
plot(hist2)
dev.off()

Is this suitable for you?

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

79645854

Date: 2025-05-30 17:22:48
Score: 5
Natty: 5
Report link

اريد نقاط بوت شدات ببجي مجانا او شدات ببجي مجانا 52184095743

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: مجهول مجهول

79645844

Date: 2025-05-30 17:10:44
Score: 3
Natty:
Report link

for us on iOS, the issue was when running on debug mode, and the debug mode was using different bundleId than what registered on firebase console

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

79645842

Date: 2025-05-30 17:08:44
Score: 2.5
Natty:
Report link

Although it may not be current for you, it may still be valuable to others.

Using iTerm2 (3.5.14), I was able to select the screen I wanted. The following steps were taken:

  1. Navigate to the profile and select the 'Screen' option:

enter image description here

2. Select the screen you prefer:

enter image description here

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

79645830

Date: 2025-05-30 16:58:41
Score: 0.5
Natty:
Report link

I tried to prepare picture out of your figma and use it. But cannot use uploaded url (:

This border will be used

.btn {
font-size:2em;
  padding: 1em .8em;
background: transparent;


  --border-image-source: url('https://i.sstatic.net/KPyjkaIG.png');
  border-image-source: url(https://tools.t2tc.ru/solt/img/border.png);
    border-image-slice: 10%;
    border-image-outset: 0;
    border-image-repeat: stretch;
    border-image-width: 30px;
}
<button class="btn">Connexion</button>

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

79645829

Date: 2025-05-30 16:58:41
Score: 1.5
Natty:
Report link

sadly this is known anti-pattern don't use it because you will couple all of your activities/ fragments .... instead use extension functions on them and use them whenever you really need them ... or make interface/abstract class with default implementation and implement them when ever you really know you are need them

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Abdelrahman Esam

79645825

Date: 2025-05-30 16:55:40
Score: 0.5
Natty:
Report link

Thanks for your inputs @juanpa.arrivillaga. If I understand you correctly, this will cause updates on all the Aggregator instances to be triggered for any Tracker instance update, not only for the grouped ones (which is what I want).

t1 = Tracker()
t2 = Tracker()
a1 = Aggregator([t1,t2])
t1.value = 32
t2.value = 55

t3 = Tracker()
t4 = Tracker()
a2 = Aggregator([t3,t4])
t3.value = 29 # will trigger updates on a1 and a2!
t4.value = 37 # # will trigger updates on a1 and a2!

The solution that worked for me was to do the following:

class Tracker():
    def __init__(self):
        self._value = None

    @property
    def value(self):
        return self._value

    @value.setter
    def value(self, value):
        self._value = value
        if hasattr(self,'aggregator_update') and callable(self.aggregator_update):
            self.aggregator_update()
class Aggregator():
    def __init__(self,trackers):
        self.trackers = trackers
        for t in self.trackers:
            t.aggregator_update = self.update
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: im-not-you

79645824

Date: 2025-05-30 16:53:40
Score: 1
Natty:
Report link

The issue was invalid metadata. One of the metadata values had a space in it.

//contrived example
var metadata = new Dictionary<string, string>();
metadata.Add("my-metadata", "no-worky "); // space at the end will cause the error

Trimming the metadata value fixed the MAC signature error.

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

79645816

Date: 2025-05-30 16:44:38
Score: 1.5
Natty:
Report link

Fixing Delphi 7 "Too Many Resources to Handle" Compilation Error

Issue

While working on a Delphi 7 project, you may encounter the "RLINK32: Too many resources to handle" error. This often happens when modifying project icons, adding resources, or due to issues in the uses clause.

Solution

After troubleshooting, I found that the issue in my case was related to the uses clause. If you're facing the same error, try these steps:

1. Check the uses Clause

2. Delete and Regenerate the .res File

3. Verify RLINK32.dll

4. Reduce Excessive Resources

5. Fix Manual Edits in .dfm

Conclusion

If none of these steps resolve your issue, consider testing on a clean Delphi installation. Also, shortening file paths or moving the project to a simpler directory can sometimes help avoid compilation failures.

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

79645810

Date: 2025-05-30 16:38:36
Score: 1
Natty:
Report link

@The manpage (appears best documentation for Bash traps) says:

trap [-lp] [[arg] sigspec ...] The command arg is to be read and executed when the shell receives signal(s) sigspec.

If arg is absent (and there is a single sigspec) or -, each specified signal is reset to its original disposition (the value it had upon entrance to the shell). If arg is the null string the signal specified by each sigspec is ignored by the shell and by the commands it invokes.

If arg is not present and -p has been supplied, then the trap commands associated with each sigspec are displayed.

The best I came with now is:

$ cat -n tst.sh
     1  #!/usr/bin/env bash
     2
     3  trap err_handler ERR
     4  trap debug_handler DEBUG
     5
     6  err_handler() {
     7          printf 'ERR trapped in %s, line %d\n' "${FUNCNAME[1]}" "$BASH_LINENO"
     8  }
     9
    10  debug_handler() {
    11          err_handler_aside=$(trap -p ERR)
    12          trap - ERR
    13
    14          printf 'DEBUG trapped in %s, line %d\n' "${FUNCNAME[1]}" "$BASH_LINENO"
    15
    16          false
    17
    18          $err_handler_aside
    19  }
    20
    21  false
    22  false

This works as the false in the debug_handler does not get trapped, but the handler will handle the second false in main again:

$ ./tst.sh
DEBUG trapped in main, line 21
DEBUG trapped in main, line 21
ERR trapped in main, line 21
DEBUG trapped in main, line 22
DEBUG trapped in main, line 22
ERR trapped in main, line 22

Thanks @EdMorton for tidying this up.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @EdMorton
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Albert Camu

79645806

Date: 2025-05-30 16:31:34
Score: 1.5
Natty:
Report link

It can be done using Matplotlib if you choose the 'side' option in the command fo the violin plot:

VA = axs.violinplot([Q1a, Q2a, Q3a, Q4a, TotalMarks_a], 
                    side='low', showextrema=False, showmeans=True)
VB = axs.violinplot([Q1b, Q2b, Q3b, Q4b, TotalMarks_b], 
                    side='high', showextrema=False, showmeans=True)

The full example is on https://github.com/iddoamit/PythonGraphGallery/tree/main/Asymmetric%20violin

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Iddo Amit's Lab

79645805

Date: 2025-05-30 16:31:34
Score: 2
Natty:
Report link

I really appreciate this exchange because I've been struggling to get a large fortran program compiled and running using homebrew versions of openmpi, gfortran and fftw3 (also HDF5).

ADR

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

79645793

Date: 2025-05-30 16:21:31
Score: 4
Natty:
Report link

I tried but not successfully using Text(Topic.VarChoice) , but using adaptive cards helped this out: https://adaptivecards.io/explorer/Input.ChoiceSet.html

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

79645780

Date: 2025-05-30 16:12:28
Score: 4.5
Natty:
Report link

Just remove phantom extension, then is works.

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

79645770

Date: 2025-05-30 16:01:25
Score: 2.5
Natty:
Report link

To help debug it I moved the declaration of the connection string to my Form1_Load sub and caught the exception. The actual error was that the connection string was already added, in this case from a machine.config file on the server.

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

79645758

Date: 2025-05-30 15:56:24
Score: 0.5
Natty:
Report link

Read comma Separated Integers Mini

#include <iostream>
#include <sstream>
#include <vector>
using namespace std;

int main() {
    string input;
    cout << "Enter comma separated integers: ";
    getline(cin, input);

    vector<int> numbers;
    stringstream ss(input);
    string token;

    while (getline(ss, token, ',')) {
        // Remove leading/trailing spaces if any
        size_t start = token.find_first_not_of(" \t");
        size_t end = token.find_last_not_of(" \t");
        if (start != string::npos && end != string::npos)
            token = token.substr(start, end - start + 1);

        // Convert to int and add to vector
        numbers.push_back(stoi(token));
    }

    // Print the numbers
    cout << "Numbers in the list: ";
    for (int num : numbers) {
        cout << num << " ";
    }
    cout << endl;

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

79645757

Date: 2025-05-30 15:56:23
Score: 6 🚩
Natty: 1.5
Report link

Is this issue fixed ?
I am getting the same error

for this

import torch
from transformers import (
    pipeline,
    BitsAndBytesConfig,
)

# 1) Build your 4-bit config.
bnb_config = BitsAndBytesConfig(
    load_in_4bit=True,
    llm_int8_enable_fp32_cpu_offload=True,   # keeps some weights in FP32 on CPU
    bnb_4bit_quant_type="nf4",              # or "fp4", "fp4-dq", etc.
    bnb_4bit_compute_dtype=torch.float16,    # compute in fp16 on GPU
)

# 2) Create the pipeline, passing quantization_config:
pipe = pipeline(
    "image-text-to-text",
    model="unsloth/gemma-3-27b-it-unsloth-bnb-4bit",
    cache_dir="/mnt/models/gemma3",
    trust_remote_code=True,
    device_map="auto",
    quantization_config=bnb_config,            # ← here’s the key
)

messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://…/candy.JPG"},
            {"type": "text",  "text": "What animal is on the candy?"}
        ]
    },
]

print(pipe(text=messages))
Reasons:
  • RegEx Blacklisted phrase (1.5): fixed ?
  • RegEx Blacklisted phrase (1): I am getting the same error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am getting the same error
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is this is
  • Low reputation (1):
Posted by: Zain Zia

79645756

Date: 2025-05-30 15:56:23
Score: 0.5
Natty:
Report link
  1. Anyway you need to find and note all the places where is editReferenceField used. Because you need to test all these places later;
  2. Then check and note all methods editReferenceField.???;
  3. Create the new functional component below and export all the props from p.2 window.editReferenceField = { someFunc: theFunc, otherFunc: theOtherFunc };
  4. One by one replace and test all components from p.1. If something wrong, use the class component to compare and note the difference, resolve them;
  5. Finally test all the places from p.1;
  6. Remove class component.

If it's impossible, then just don't touch it for now.

Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ideallifegenerator

79645752

Date: 2025-05-30 15:51:22
Score: 3
Natty:
Report link
    if (process.env.NODE_ENV === "production") {
  app.use(express.static(path.join(__dirname, "../frontend/dist")));

  app.get("*", (req, res) => {
    res.sendFile(path.join(__dirname, "../frontend", "dist", "index.html"));
  });
}

Do you guys think that here it might be the same issue as well?
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Mehtaab Aalam

79645750

Date: 2025-05-30 15:48:21
Score: 1.5
Natty:
Report link

Polymorphism is a coding term that describes the objects' ability to be perceived as the types of the interfaces their class implements or the parent class it extends.

You can look at it this way: All Card objects implement the InterfaceCard interface, BUT not all objects implementing the InterfaceCard interface are of the type Card.

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

79645747

Date: 2025-05-30 15:47:21
Score: 1
Natty:
Report link

As an alternative to @mplungian's solution, you could use semicolon separation:

 data:text/html,<script>fetch('https://www.example.com/')
    .then(r => r.text())
    .catch(e => console.log(e));
 location.href = 'https://www.example.com/'</script>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @mplungian's
Posted by: Khaled Ayed

79645744

Date: 2025-05-30 15:47:21
Score: 1
Natty:
Report link

AWS Amplify only lists repositories that you've explicitly granted it access to. If the repo is under a GitHub organization, you'll need to make sure Amplify has permission to access organization-level repositories. This is usually handled during the GitHub authorization step when connecting your account to Amplify.

Try disconnecting and reconnecting GitHub within Amplify, and when prompted, ensure you grant access to the specific organization where the repo is hosted. Also, double-check your role in the organization—depending on the settings, being a collaborator might not be enough to expose the repo through Amplify.

You can refer to AWS’s official documentation on this here:
https://docs.aws.amazon.com/amplify/latest/userguide/hosting-continuous-deploy.html#step-2-connect-repository

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

79645733

Date: 2025-05-30 15:39:19
Score: 0.5
Natty:
Report link

Here's how AI functionality can be integrated into a Three.js project:


🔹 1. AI for Object Behavior

Use AI logic to control 3D objects in a scene. For example:


🔹 2. AI for Scene Understanding

Integrate machine learning to:


🔹 3. AI for Animation Control

Use AI to:


🔹 4. Natural Language Interaction

Integrate NLP models (like GPT via API) to:


🔹 5. AI for Procedural Generation

Use AI/ML to:


Example Use Case

A virtual 3D assistant in a Three.js scene:


Summary

Three.js doesn't include AI by default, but you can combine it with AI libraries or APIs to:

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

79645721

Date: 2025-05-30 15:35:17
Score: 1
Natty:
Report link

I got the same issue. I was working with jsx file in next js 15.3.3 and added a tsx component in the app. Maybe because of that a ts.config file generated and the default import alias stoped working. I removed the ts config file, convert the tsx component into jsx, removed all tsx from app and lastly starting my app after deleting and reinstalling the node module folder with "npm i" . It worked .

Reasons:
  • Whitelisted phrase (-1): It worked
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Md Rajon

79645712

Date: 2025-05-30 15:29:16
Score: 1
Natty:
Report link

In my case, I was running the self-contained bundle.exe and I was missing the appsettings.json file. I was specifying the connection string in the command, but the bundle.exe still requires the file to be there even though it is not needed.

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

79645709

Date: 2025-05-30 15:27:15
Score: 2
Natty:
Report link

What if... instead of using Node you used Deno from the same creators of Node? You also don't need socket.io either.

They literally have a simple and complete guide on their web site at the link below:

Deno Chat application with WebSockets

Reasons:
  • Blacklisted phrase (1): the link below
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What if
  • High reputation (-1):
Posted by: suchislife

79645698

Date: 2025-05-30 15:14:12
Score: 1.5
Natty:
Report link

import numpy as np

M = np.array([[1,1,1], [1,1,4], [1,1,1]])

for row in M[0]:

print(row, sep=' ')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: NEEL MERJA

79645695

Date: 2025-05-30 15:14:12
Score: 1
Natty:
Report link

Assuming everything is up-to-date, try running

php artisan filament:clear

or

php artisan filament:optimize

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

79645688

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

Acumatica released the 25R1 version of Lot Attribute on Github.

To use Github version of LotAttribute user need to turn the LotAttribbute feature off on feature enable/Disable screen.

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

79645686

Date: 2025-05-30 15:04:10
Score: 3
Natty:
Report link

There is also a relatively new plugin for copilot instructions
https://plugins.jetbrains.com/plugin/27460-copilot-prompt

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

79645676

Date: 2025-05-30 14:58:08
Score: 2
Natty:
Report link

After many days of beating my head against the wall, I have determined this is just not possible. My solution was to create copies of all the objects as a mutable version, then spring injects the settings into a mutable object using setters, which works for both 2 and 3. The I copy settings from the mutable object to the immutable objects at startup

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

79645675

Date: 2025-05-30 14:58:08
Score: 1
Natty:
Report link

I almost tried the solutions above; however, what I did was clear the cache on https://wordpress.com/sites/settings/performance/animistic.co, load the page without loading the cache, make the upload, and it worked. No need to install any plugin.

PD: I was not able to upload files that I was able to upload in the past

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mauro Soto

79645664

Date: 2025-05-30 14:53:06
Score: 4
Natty:
Report link

I never tried it but just heard about https://tonybaloney.github.io/CSnakes/ and so I found your question 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: Frederic

79645663

Date: 2025-05-30 14:53:06
Score: 1
Natty:
Report link

According to the below, if you don't set an executor, requests are handled serially, i.e. one by one. That would make for a very slow web server.

executor: Allows you to configure the Executor which will be used to handle HTTP requests. By default com.sun.net.httpserver.HttpServer uses a single thread (a calling thread executor to be precise) executor to handle traffic which might be fine for local toy projects.

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

79645662

Date: 2025-05-30 14:53:06
Score: 3.5
Natty:
Report link

It was because of incorrect token value. Putting correct token value resolved the issue.

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

79645659

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

You can avoid any configuration and just add the command line arguments to your code temporarily, bit dirty but very practical:

import sys

if __name__ == "__main__":
   sys.argv = [__file__, 'first-arg', 'second-arg']
   print('arguments:', sys.argv)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: bterwijn

79645657

Date: 2025-05-30 14:50:05
Score: 3.5
Natty:
Report link

Might be because flatpak doesn't have access to the directory with the libraries.

Allowing read only permissions for these dri directories might resolve the issue: https://askubuntu.com/questions/1086529/how-to-give-a-flatpak-app-access-to-a-directory

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

79645646

Date: 2025-05-30 14:43:03
Score: 2
Natty:
Report link

There is really no clean solution for this? I seems like regullar need.

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

79645638

Date: 2025-05-30 14:38:01
Score: 2.5
Natty:
Report link

Instead of Python Tutor use memory_graph in for example the debugger of Visual Studio Code (or PyCharm, Cursor AI, ...). This is an example showing different "copies" of a nested list:

memory_graph in vscode debugger

'memory_graph' runs locally and thus does away with the many limitations of Python Tutor.

Visualization made using memory_graph, I'm the developer.

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

79645635

Date: 2025-05-30 14:37:00
Score: 1.5
Natty:
Report link

Anyone Wondering for Flutter/ios Projects-

chmod -R +x "/Users/{user name}/{flutter project path}/ios/Pods/Target Support Files"

Replace {username} and {flutter_project_path} with your actual Mac username and your Flutter project folder path.

Running this command recursively adds execute permission to all necessary scripts and will fix most permission denied issues during the build.

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

79645631

Date: 2025-05-30 14:34:59
Score: 4
Natty:
Report link

Yes, I am also facing the same problem. The reason I found is:

So, that behavior is expected :)

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the same problem
  • Low reputation (1):
Posted by: Rohit Verma

79645630

Date: 2025-05-30 14:33:59
Score: 2
Natty:
Report link

Find the processing rule in question and set the non-xml to be true there as well as the input processing of the mpgw to non-xml. The errors will go away.

The default processing for a lot of objects in the rule are assuming xml and that's why you're seeing that.

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

79645628

Date: 2025-05-30 14:32:58
Score: 3
Natty:
Report link

Row-level security in available in CockroachDB starting with version 25.2. If you know the PostgreSQL implementation, the DDL syntax is nearly identical.

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

79645627

Date: 2025-05-30 14:31:58
Score: 1.5
Natty:
Report link

I also faced this issue even though I did not use tick() in my code. The reason was very simple: I just forgot calling fixture.destroy() at the end of my test case. Maybe it will be helpful for someone.

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

79645624

Date: 2025-05-30 14:29:57
Score: 1
Natty:
Report link

The way to derive the Savitsky Golay filter is well explained in the article of 1964. Two arrays need to be generated based on the parameters: filter window withd and polynomial order. The first array contains the sums of powers of integers. The second array contains the powers of the indices representing the abscissa values of the signal samples. The first array needs to be inverted and multiplied with the second one. This is fairly simple to state but becomes an issue when the window width and polynomial order become big. For the degree this should not cause major problems because usually user keep the degree as low as possible. For the window width this can be a blocking issue. The implementation in scipy is very well studied so that the function works also for big window widths. Be very careful with using the convolute parameters published in the original paper. In some of the cases there are one or more typos in the tables.

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

79645622

Date: 2025-05-30 14:28:57
Score: 5.5
Natty: 5.5
Report link

You saved my life. I spent one too many hours with this issue. Your solution to change the MAX value to an actual number worked and I also changed the type from NVARCHAR to just VARCHAR.

Reasons:
  • Blacklisted phrase (1): You saved my life
  • Blacklisted phrase (2): You saved my
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hilda Perales

79645615

Date: 2025-05-30 14:25:55
Score: 2
Natty:
Report link

If you like to use a Subfolder of the Solution folder, try useing ..\publish.

the ..\ moves to Parent Folder. The original base is the project Folder.

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

79645612

Date: 2025-05-30 14:24:54
Score: 6.5 🚩
Natty:
Report link

And is there any way to tune early_stopping within auto_tune(), when the learner is a graphlearner?

Reasons:
  • Blacklisted phrase (1): is there any
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: franzi-r

79645596

Date: 2025-05-30 14:10:50
Score: 1.5
Natty:
Report link

Git 2.49, released in 2025-03-14 added support for this with the —revision in the clone command

https://git-scm.com/docs/git-clone#Documentation/git-clone.txt-code--revisionltrevgtcode

git clone —-revision=683c54c999c301c2cd6f715c411407c413b1d84e —-depth=1 https://github.com/gig/git.git
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: arslivinski

79645594

Date: 2025-05-30 14:10:50
Score: 2.5
Natty:
Report link

git fetch origin
git reset --hard origin/<your_branch_name>

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Dragan Stanisavljevic

79645590

Date: 2025-05-30 14:08:49
Score: 1.5
Natty:
Report link

doc agular v12 Here explain how to implement Asset configuration

{
    "glob": "**/*",
    "input": "src/assets/",
    "ignore": ["**/*.scss"],
    "output": "/assets/"
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: JESUS ANTONIO ROZO ZAPATA

79645582

Date: 2025-05-30 13:59:47
Score: 2
Natty:
Report link

I recently got this as well, the issue turned out to be an out-of-date frontend. I simply hard-reloaded the site (Shift+F5 or Ctrl+Shift+r) and the message went away, and actually found that the redeploy was already done.

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

79645566

Date: 2025-05-30 13:45:42
Score: 4
Natty:
Report link

I understood that I need to change question

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

79645554

Date: 2025-05-30 13:38:41
Score: 3
Natty:
Report link

Thank you to all who responded. I ended up just going back to Visual Studio 2015 and making the edits I needed there. The project rebuilt and deployed just fine.

There must be quite a big difference between VS2015 and VS2022 MVC design.

~~~Tracy

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: TLamb

79645552

Date: 2025-05-30 13:37:40
Score: 0.5
Natty:
Report link

Moviepy change the structure. For version 2.2.1 that I using following code works. Try importing it as below:

from moviepy.video.VideoClip import TextClip, ImageClip  
from moviepy.video.compositing import CompositeVideoClip
from moviepy.video.io.VideoFileClip import VideoFileClip
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Losbaltica

79645531

Date: 2025-05-30 13:24:36
Score: 0.5
Natty:
Report link

Seems like you are searching for "parallel reduction". Here is a recent post on this topic Parallel reduction with single wave
The best way is to calculate this sum per workgroup, beacuse you can control synchronization inside of workgroup inside of shader.

It will look like this: compute sum of all pairs and store them to one of elements in each pair, then compute sum of each pair of the results given by previous computation. you repeat like this untill you get the final single value.

Also Gpu sorting algorithm is made in simmilar way, but more complex, may be you would like to take a look. https://developer.nvidia.com/gpugems/gpugems2/part-vi-simulation-and-numerical-algorithms/chapter-46-improved-gpu-sorting

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

79645529

Date: 2025-05-30 13:24:36
Score: 0.5
Natty:
Report link

On an ARM machine it's possible to run with the "My Mac" device if you've not disabled this in the config for your app. This will run the app natively on macos using the iPadOS compatibility mode, and this typically has working Bluetooth LE without the need for a seperate Bluetooth dongle.

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

79645524

Date: 2025-05-30 13:22:35
Score: 0.5
Natty:
Report link

If the code is always going in the same place (or at some point that you can identify), you could write an edit macro to do the insert then in batch, run the edit macro against all the relevant members.

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

79645522

Date: 2025-05-30 13:22:35
Score: 1.5
Natty:
Report link

Great question. In my view, "purpose-built software" is an accurate and widely accepted term, especially in sectors where off-the-shelf solutions fall short. For instance, we’ve been working with a taxi dispatch solution – Mobility Infotech, which is specifically designed to handle the unique logistics and operational needs of taxi services. It goes beyond generic fleet management tools by offering features like real-time driver allocation, passenger booking integrations, and route optimization—clearly reflecting the value of specialized, purpose-built systems.

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

79645504

Date: 2025-05-30 13:08:31
Score: 3
Natty:
Report link
Just use sourceCallIdNumber instead of sourceCallerIdNumber
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Carter

79645495

Date: 2025-05-30 13:02:30
Score: 1.5
Natty:
Report link

👉 Try it out now: https://dartfreezed.tech/

💬 I’d love your feedback and suggestions!

🚀 Introducing dartfreezed.tech – Your AI-Powered Flutter Freezed Model Generator! ⚡

Tired of manually converting complex JSON into Dart models?

Say hello to dartfreezed.tech – a smart, lightning-fast tool that uses AI to generate Freezed and JsonSerializable Dart models from any JSON response in seconds!

✅ Powered by AI for intelligent field detection

✅ Clean, reliable Freezed models with built-in null safety

✅ Boosts productivity for Flutter developers

✅ Handles deeply nested and complex structures with ease

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

79645493

Date: 2025-05-30 12:58:29
Score: 2.5
Natty:
Report link

The CIE ΔE2000 formula is a modern metric for comparing two colors in the CIELAB color space, which improves on the earlier CIE76 formula by integrating new perceptual factors, resulting in more accurate color comparisons. The ΔE2000 color difference function consistent across 30 programming languages is available on the public domain, with examples for hex and RGB colors.

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

79645491

Date: 2025-05-30 12:57:28
Score: 0.5
Natty:
Report link

It's now (for two years actually) possible with enable_coverage_for_eval:

SimpleCov.start do
  enable_coverage_for_eval
end

See https://github.com/simplecov-ruby/simplecov/pull/1037

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

79645490

Date: 2025-05-30 12:57:28
Score: 1
Natty:
Report link

I finally cracked it, I can't answer why my previous jest test worked on Windows and not my Mac, but https://stackoverflow.com/a/62777134/6260882, specifically: 'axios is a function, not an object'. I was able to get my mocks to work like this:

jest.mock('axios', () => Object.assign(jest.fn(), {
  post: jest.fn(() => Promise.resolve({ data: sessionKey })),
  isAxiosError: jest.fn(),
}));

But I had problems being able to change the mocks on the fly because jest.mock is hoisted to the top. So I eventually decided to use AxiosMockAdapter since it had built in what I was trying to replicate.

test.spec.ts

import AxiosMockAdapter from 'axios-mock-adapter';
...
const mockedAxios = new AxiosMockAdapter(axios);
...
mockedAxios.onPost().reply(200, sessionKey);
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: jstokes

79645481

Date: 2025-05-30 12:49:26
Score: 1.5
Natty:
Report link

ASSET_URL=http://test.loc:81

I solved the problem by adding this to .env

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Дмитрий

79645475

Date: 2025-05-30 12:46:25
Score: 0.5
Natty:
Report link

Use this "alter query" if you want to add a new column with the mentioned scenario

ALTER TABLE Table_Name
  add COLUMN DateTime_Column_Name TIMESTAMP NULL 
  DEFAULT NULL 
  ON UPDATE CURRENT_TIMESTAMP;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gautam Kumar Sahu

79645470

Date: 2025-05-30 12:40:24
Score: 3
Natty:
Report link

I do not believe so. If you look at their documentation you see return utilized a number of times, but the only Cops with Return in their name are:

You might get some joy out of writing a custom cop https://docs.rubocop.org/rubocop/extensions.html#custom-cops

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

79645469

Date: 2025-05-30 12:40:24
Score: 0.5
Natty:
Report link

Game of two Stacks Mini

int twoStacks(int maxSum, vector<int> a, vector<int> b) {
    int n = (int)a.size(), m = (int)b.size();
    vector<long long> prefixA(n + 1, 0), prefixB(m + 1, 0);

    for (int i = 0; i < n; i++) prefixA[i + 1] = prefixA[i] + a[i];
    for (int i = 0; i < m; i++) prefixB[i + 1] = prefixB[i] + b[i];

    int maxCount = 0;
    int j = m;

    // Try taking elements from a, then from b
    for (int i = 0; i <= n; i++) {
        if (prefixA[i] > maxSum) break;
        while (j > 0 && prefixA[i] + prefixB[j] > maxSum) {
            j--;
        }
        if (j >= 0)
            maxCount = max(maxCount, i + j);
    }

    // Try taking elements from b, then from a
    j = n;
    for (int i = 0; i <= m; i++) {
        if (prefixB[i] > maxSum) break;
        while (j > 0 && prefixB[i] + prefixA[j] > maxSum) {
            j--;
        }
        if (j >= 0)
            maxCount = max(maxCount, i + j);
    }

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

79645466

Date: 2025-05-30 12:37:23
Score: 1.5
Natty:
Report link

The example of the dataset given in R cran i.e Produc dataset has the dimensions of 816 observations with 11 variables...i.e wht it runs without any error...

Therefore we must look for another test which takes into account the cross sectional dependence and has cross sections less than 10. One possible test is that proposed by Bai and Ng and CADF tests

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Khursheed Hussain Dar

79645464

Date: 2025-05-30 12:37:23
Score: 11
Natty: 7
Report link

Did you finally find the solution to decode RCCG to RGB?, If yes, can you share the code, or share the steps you have done it?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you share the code
  • RegEx Blacklisted phrase (3): Did you finally find the solution to
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: david mb

79645463

Date: 2025-05-30 12:37:23
Score: 1.5
Natty:
Report link
value = ((valueToConvert * 100).toInt() / 100f).toString()

x 100 / 100 for 2 decimals

x 1000 / 1000 for 3 and so on.

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

79645458

Date: 2025-05-30 12:26:20
Score: 1
Natty:
Report link

It appears that the only valid solution to this situation is to downgrade Eclipse to a lower version.

In my case, I tried debugging Java 1.6 code on Eclipse 2024-03 R, and I also tried applying solution presented in Eclipse Community forum: https://www.eclipse.org/forums/index.php/t/1112744/

However, nothing worked until I downgraded Eclipse to version 2020-12. I suppose other (a little bit newer) versions could also work, but this one is working for me.

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

79645454

Date: 2025-05-30 12:22:19
Score: 2
Natty:
Report link

How about converting the image to jpg or png ?

import io
from PIL import Image
import requests

url = 'https://www.gstatic.com/webp/gallery/1.webp'
res = requests.get(url)
content = io.BytesIO(res.content)

try:
    with Image.open(content) as img:
        img.save("output_image.png", "PNG")
except Exception as e:
    print(f"Error converting image: {e}")
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How
Posted by: Ahrimann Steiner