79400853

Date: 2025-01-30 18:18:42
Score: 0.5
Natty:
Report link

Nevertheless @ThomA has a point - at least one of your queries seems to return what you expect, maybe some comments would be helpful (well, at least this exercise was interesting for myself).

How does SQL Server handle decimal precision when the SUM() function is called?

As the docs say, if the input was DECIMAL then the output precision is always 38.

Does that mean I'm getting overflow somewhere in the scale so it's defaulting to (38,6)?

Yes, in some cases it may fallback to (38,6). In the docs you mentioned above it's the third scenario for multiplication and division cases.

Calculations

Let's say we are computing sum(qty*price) / sum(qty) with no explicit conversions.

When you multiply qty * price both of type (24,10) the output type will be

p = p1 + p2 + 1 = 24 + 24 + 1 = 49
s = s1 + s2 = 10 + 10 = 20
integral part = p - s = 49 - 20 = 29

Precision cannot be greater than 38, so in the final type it will be 38, not 49. The integral part here is 29 which is less than 32, thus it's the first scenario for multiplication and division and scale becomes

s = min(s, 38-(p-s)) = min(20, 38-(49-20) = min(20, 9) = 9

so the outcome of multiplication goes as (38,9). Even if it had precision less than 38, the SUM function would raise it to 38 anyways.

The divisor is sum(qty) where qty is of type (24,10) but the SUM(qty) output will be:

p = 38
s = original s

which is (38,10). So we are dividing (38,9) / (38,10). The output type of this equation will be:

p = p1 - s1 + s2 + max(6, s1 + p2 + 1) = 38 - 9 + 10 + max(6, 9 + 38 + 1) = 39 + 48 = 87
s = max(6, s1 + p2 + 1) = max(6, 9 + 38 + 1) = 48
integral part = 87 - 48 = 39

the integral part is 39 (> 32), and the scale is 48 (> 6), thus it's the third scenario, scale is set as 6 with no options and we get (38, 6). So, yes, there may occur some rounding if there is not enough space for storing the integral part; or the arithmetic overflow error will be raised. But explicit casting may prevent unexpected scale loss.

Here is db fiddle with some formula variations.

ps And thanks to @ThomA - I did not know about sys.dm_exec_describe_first_result_set.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @ThomA
  • User mentioned (0): @ThomA
  • Looks like a comment (1):
  • High reputation (-1):
Posted by: IVNSTN

79400850

Date: 2025-01-30 18:15:41
Score: 0.5
Natty:
Report link

I ran into the same issue. If stylelint-scss asks you to use list.nth, make sure every SCSS file that calls list.nth includes @use "sass:list";. If after making the change it still throws errors try restarting your development server and clearing the cache for good measure.

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

79400849

Date: 2025-01-30 18:15:41
Score: 1
Natty:
Report link

Yes, this is all very nice, except the original question was about month names for a specific calendar. Many of the ‘other’ calendars for specific cultures (.Net term for not the primary calendar of the culture) which are typically observed for religious reasons, have different month names. For example, on the Persian calendar the romanised month name for month 9 is Dey, whereas on the Hijri calendar it’s Ramadan. If you use ar-sa, as you suggest, you’ll just get the Arabic month name from the UmAlQura calendar. I know the same is true for Israel too, the primary calendar is Gregorian based with month names that differ from the Hebrew calendar. If I find the answer, I’ll post it here.

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

79400846

Date: 2025-01-30 18:14:41
Score: 3.5
Natty:
Report link

Did you set the capability on the client? options = ChromeOptions() options.set_capability('se:recordVideo', True)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Derek Leggett

79400841

Date: 2025-01-30 18:12:40
Score: 1.5
Natty:
Report link

The run-time size of the array can be obtained using sizeof arr. This will result in the same value as i * sizeof *arr, and it could very result in the same code.

If not, how do you know at runtime how much to decrement the stack pointer once the array goes out of scope?

The size of the array is not needed to reset for this. A stack frame can be removed by simply restored the stack pointer to its previous value.

Reasons:
  • Blacklisted phrase (1): how do you
  • RegEx Blacklisted phrase (2.5): do you know a
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: ikegami

79400837

Date: 2025-01-30 18:11:40
Score: 1.5
Natty:
Report link

I have something related. Two Pizero2s A and B talking over LAN. They autostart a pair of python programs that pub/sub to each other.
If the power goes off to A and is then restarted (same ip/port), the subscriber on B does not see the newly revived publisher. As a test, when both running normally, I ssh in to A and sudo bootstrap. The connection is made and B gets the later messages. Something in the boot closedown seems to do something (signal?) to clean up the subscribe socket. I see the comment about port reuse and will investigate more.

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

79400822

Date: 2025-01-30 18:07:38
Score: 2
Natty:
Report link

I'm now pretty sure this isn't possible using only Plotly.NET as all it does is generate the HTML for the iframe as Joe pointed out.

The way the Python version works is by communicating with the Jupyter engine and send messages around (I haven't fully understood these layers though)

The way to do this I believe is:

With a bit of luck I might be able to find the code to serialize that data/layout in Plotly.NET too

(btw, I'm a big fan of LINQPad @joe and I've hacked around in it quite a lot)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @joe
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: vlad2048

79400815

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

I have changed jpeg to png and problem solved.

 img.Image? decodedImage = decodeYUV420SP(inputImage);
 List<int> encodedBytes = img.encodePng(decodedImage);

previous was like that => img.encodeJpg(decodedImage, quality: 100);

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

79400806

Date: 2025-01-30 18:02:37
Score: 0.5
Natty:
Report link

The Newton method is a numerical method, but your f(x) and g(x) as they are remain symbolic. You need to evaluate them. With the following changes, the code ran in my computer. But since I don't see and expected output I cannot attest it runs as you expected.

# Compute the determinant of the matrix A
    det1 = A.det()
    ddet=diff(det1,x)
    
    # Defining Function
    def f(xvalue):
        return  det1.subs({x  : xvalue})

    # Defining derivative of function
    def g(xvalue):
        return ddet.subs({x : xvalue})
Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: J Suay

79400805

Date: 2025-01-30 18:02:37
Score: 2.5
Natty:
Report link

If you have a custom constructor, Lombok might not generate the builder method unless you specify @Builder on the constructor itself. Try rebuilding the Project: After making changes, clean and rebuild your project to ensure that Lombok's annotations are processed correctly.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Builder
  • Low reputation (0.5):
Posted by: Nagmat

79400802

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

What I found after a lot of digging around is that my nginx configuration was not taking into account the load balancer as a pool.

In my http block I needed to use upstream to identify the backend server addresses that are used for load balancing:

    upstream mauticWeb {
    least_conn;
    server ${MAUTIC_WEB_URL}:9000;
    }

and in my http --> server block wherever I needed to reach the backend php-fpm server I needed to use the upstream config.

server{
    ...
    location ~ ^(.+\.php)(.*)$ {
       ...
       fastcgi_keep_conn on;
       fastcgi_pass mauticWeb;
       ...
    }
    ...
}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What I
  • Low reputation (0.5):
Posted by: Adam Wheeler

79400801

Date: 2025-01-30 18:01:37
Score: 2
Natty:
Report link

Not able to reproduce your issue. Not sure but i think you made mistake while defining precision of price and qty coloumn. I did this mistake while i was trying to reproduce your issue and it was giving me unexpected result but when i correct it then it start giving me result in DECIMAL(38,12) 237.50507826

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

79400800

Date: 2025-01-30 18:00:36
Score: 0.5
Natty:
Report link

I found all the submitted answers to hard to follow. Here's my answer. What I used to get the changelist to which a workspace is synced was:

  1. From a command window, navigate to the root directory of your depot
  2. Then run p4 changes -m1 @clientname

@clientname is the name of your workspace.

The Perforce docs say:

The p4 changes command, when invoked with @clientname as a revision specifier, shows the highest changelist associated with file revisions in your workspace. Typically this is the same as the last changelist that was submitted before you did a p4 sync.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @clientname
  • User mentioned (0): @clientname
  • Low reputation (0.5):
Posted by: rebecca73

79400793

Date: 2025-01-30 17:58:36
Score: 2.5
Natty:
Report link

use {%include "template.html"%} instead of {%extends "template.html%}

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

79400786

Date: 2025-01-30 17:55:35
Score: 1.5
Natty:
Report link

The black window is a console window started when the startup project has OutputType of Exe. To avoid this, change the OutputType to WinExe.

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

79400784

Date: 2025-01-30 17:54:35
Score: 1
Natty:
Report link

There is not a standard definition of a flat file, but the closest thing to a definition I have found suggests:

My hunch is the flat comes from lack of structure, and the fact than only one table is stored per file (so 2D)

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

79400783

Date: 2025-01-30 17:54:35
Score: 3.5
Natty:
Report link

I've the same problem with the client. The first message is transmitted to the server, then the server doesn't get the next message. I have to restart the client to restart a new connection, and the client send only the first message once again.

Is it possible to send multiple messages in the same session ?

Code of the server:

import socket
import json

BROKER_IP = "192.168.4.1"
PORT = 8080

serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
serversocket.bind((BROKER_IP, PORT))
serversocket.listen(10)


while True:
    print("Ready for incomming data...")
    connection, address = serversocket.accept()
    buf = connection.recv(1024) 
    if len(buf) > 0:
        raw_data = json.loads( buf.decode('utf-8') )
        print("Reception of data:", raw_data)
        ##
        connection.send("accepted".encode("utf-8"))
        
    else:
        print("No data...")

Code of the client:

import socket
import time


def run_client():
    # create a socket object
    client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

    server_ip = "192.168.4.1"  # replace with the server's IP address
    server_port = 8080  # replace with the server's port number
    # establish connection with server
    print("Establish connection with server...")
    client.connect((server_ip, server_port))

    while True:
        print("try to connect...")
        # input message and send it to the server
        msg = '{"msg": "Hello"}'
        client.sendall(msg.encode("utf-8")[:1024])
        print("Message sent...")

        # receive message from the server
        response = client.recv(1024)
        response = response.decode("utf-8")
        print("Response: ", response)
        time.sleep(5)


run_client()
Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): 've the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Julien CORON

79400780

Date: 2025-01-30 17:53:34
Score: 8 🚩
Natty: 4.5
Report link

I am facing similar issue. But in my case, I want to use logbook, but setting up logger on a global label using logbook is not solving the issue. Any idea for this?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am facing similar issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Rupal

79400778

Date: 2025-01-30 17:53:33
Score: 3
Natty:
Report link

maybe some dependancies incompatibile for spring parent version 3.4.x , try with 3.3.x versions again

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

79400766

Date: 2025-01-30 17:48:32
Score: 3
Natty:
Report link

You Don't have doing all of that, just add " --win-dir-chooser --win-console " in your jpackage command line.

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

79400765

Date: 2025-01-30 17:47:30
Score: 9.5 🚩
Natty:
Report link

Did you find a solution? I've been having the same problem for days. Every time I open the application it closes automatically.

Reasons:
  • RegEx Blacklisted phrase (3): Did you find a solution
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): having the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find a solution
  • Low reputation (1):
Posted by: kakawuate

79400763

Date: 2025-01-30 17:47:30
Score: 0.5
Natty:
Report link

I reviewed the code in jgit and came up with this. I have also written a couple of posts on this on my blog, and a C99 implementation on github.

Histogram diff algorithm

Compare files A and B via histogram diff algorithm:

A range is a sequence of zero or more consecutive lines in a file. A region is a range of file A together with a range of file B. A matching region is one with the same number of lines in the A and B ranges, with each line in the A range matching the corresponding line in the B range.

Begin with a region comprising all of file A and file B.

The idea is to find the "best" matching region within the current region, then recursively do the same with the regions before and after the matching region. The best matching region is the longest one with the lowest low count of A lines.

Eventually, the region under consideration will have no matching lines, and is therefore a difference.

In the following, consider only lines in the current region. That is, "lines in A" mean lines in the A range of the current region, unless otherwise noted, and similarly for B.

For each line in A, count how many times that line occurs in A.

Set lowcount initially to 65 (in jgit; somewhat arbitrary to limit time in pathological cases; I use 512).

Start finding matching regions with the first line in B, and process the B lines as follows.

Find_best_matching_region:

Take each line in A (from low to high line number) that matches the current line from B. If there is no matching line, or the occurrence count of this A line exceeds lowcount, go to the next line in B.

If no line in B matches any line in A, or all the A lines have counts over lowcount, the region is a difference, and we're done with the current region.

Having a matching line in A and B, widen the match by finding the longest matching region containing the original match. Note the line in A (of the matching region) that has the fewest occurrence count, and call this count the region lowcount. If this matching region is the first one, note its length and region lowcount, and call it the best matching region (so far). If it's not the first matching region found, then if it has more lines OR lower region lowcount than the current best matching region, this becomes the new best matching region. Keep the lowest region lowcount in lowcount. Skip any remaining matching lines in A that fall within the matching region just found. If any more lines in A (after the matching region) match the B line, repeat the process. Skip the remaining B lines in the matching region and go to Find_best_matching_region to continue with the B line that follows the current matching region.

After all B lines have been considered, the best matching region is used to split the original region into before-and-after regions, and the process continues until all the differences have been found.

Pseudocode:

push region(all of file A and file B) on region stack.

While region stack is non-empty:
    pop region stack to current_region
    for each B line, find all matching A lines
                        and count how many times this line occurs in A
    best_match = find_best_matching_region_in(current_region)
    if best_match is empty region:
        append current_region to diff_list
    else:
        after_match = lines in current_region after best_match
        if after_match non-empty: push after_match on region stack
        before_match = lines in current_region before best_match
        if before_match non-empty: push before_match on region stack

def find_best_matching_region_in(current_region):
    set best_match as an empty region
    set lowcount = 65 // arbitrary limit
    set i to first B line
    set nexti to i+1
    for (i = first B line; i <= last B line; i = nexti):
        nexti = i + 1
        if no line in A matches line i in B: continue
        find first line in A matching line i in B
        if count of A occurrences > lowcount: continue
        set j to this matching A line
        loop:   // consider each matching A line
            set current_match to region(j in A, i in B)
            widen current_match to include consecutive matching lines
                    j-1 and i-1, j+1 and i+1, etc.
                    to largest matching region inside current_region
            set region_lowcount to lowest occurrence count of
                    any line of A in current_match
            // Compare current_match to best_match
            if best_match is empty
                OR current_match is longer than best_match
                OR region_lowcount is less than lowcount:
                    set best_match to current_match and
                    set lowcount to region_lowcount
            set nexti to B line following current_match
            if another line in A (within current region) matches i in B:
                set j to that line in A
            else:
                break loop
        end loop    // loop on A lines matching i in B
    return best_match
Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: raygard

79400758

Date: 2025-01-30 17:45:29
Score: 3
Natty:
Report link

Has the same issue, There is not "https_url" parameter in the credential created under the service credentials

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

79400756

Date: 2025-01-30 17:44:29
Score: 2.5
Natty:
Report link

I gave up the idea of mapping the external database into the TYPO3 system. As the external database does not work with 'uid' the DBAL data mapping is not functioning properly. There seems to be no way as the 'uid' column is absolutely needed. All other columns can be mapped, but this one not.

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

79400755

Date: 2025-01-30 17:44:29
Score: 0.5
Natty:
Report link
table.columns.add('id', sql.BigInt(), {nullable: false, primary: true, identity: true})

// your loop
newRow++
table.rows.add(newRow,...)

The unique solution that I found was adding a counter to my process, don't waste your time

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

79400754

Date: 2025-01-30 17:44:29
Score: 0.5
Natty:
Report link

The problem is that the code is declaring a function inside another function which you cannot do.

void main() 
{    // <---Start of function main()

void print_inpt_square() // <--- trying to start a new function within main()
{

Try adding a closing '}' before declaring print_inpt_square()

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

79400751

Date: 2025-01-30 17:42:28
Score: 1
Natty:
Report link

opengl image

Late answer but,you don't need to "weight angle",weighting is a naive mathematical mindset toward this problem since vectors whose both direction and amplitude but we only care about direction.What you really want here is just add up all normal vectors that share the same vertice,the operation ends up merging total directions into one single vector.Things you need to concern is specify which vertice is shared and have calculations done on that particular set before moving to another one,you also don't want to recalculate processed vertices so a indicator buffer is required for marking and skiping processed ones.

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

79400741

Date: 2025-01-30 17:38:27
Score: 2.5
Natty:
Report link

I am experiencing similar issue and I entered information on AppStoreConnect for new app, and when I trying to validate my this new app (never submitted yet), and giving me same error. The App name you entered is already being used. If you have trademark rights to this name and would like it released for your use, submit a claim' How to resolve this issue step by step please. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dex Raj

79400734

Date: 2025-01-30 17:36:27
Score: 3.5
Natty:
Report link

create-react-app is deprecated : https://github.com/reactjs/react.dev/pull/5487
Follow https://vite.dev/guide/ for recommended alternative.

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

79400727

Date: 2025-01-30 17:34:26
Score: 2.5
Natty:
Report link

One other thing to look at is to compare UserName with NormalizedUserName. We had those two not match and produce the same error.

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

79400725

Date: 2025-01-30 17:32:26
Score: 3.5
Natty:
Report link

Laravel 11 requires PHP 8.2 +. Check your version

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

79400710

Date: 2025-01-30 17:26:24
Score: 2.5
Natty:
Report link

You could check this similar issue in the Sonar community forum that has the proper answer. https://community.sonarsource.com/t/how-to-integrate-pmd-rule-sets-in-sonar-cloud-and-view-the-analysis-report/95558

Link to the documentation : https://docs.sonarsource.com/sonarqube-cloud/enriching/external-analyzer-reports/

It's a matter of setting a property pointing to the PMD reports.

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

79400703

Date: 2025-01-30 17:23:23
Score: 1.5
Natty:
Report link

Use Regular Expression in Notepad++:

Regex-01: /(?<=^G379)(.*)F(.*)/gm

enter image description here

Regex-02: ^(G379.*)F(.*)

enter image description here

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

79400700

Date: 2025-01-30 17:22:23
Score: 0.5
Natty:
Report link

The issue is with

await admin.messaging().sendToDevice(sentTo, payload);

Yes but it is because you haven't initialised admin, only imported it.

Add admin.initializeApp() at the top and you should be fine. Fingers Crossed!

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

79400689

Date: 2025-01-30 17:19:21
Score: 12 🚩
Natty:
Report link

i am having the exact same issue. Were you able to figure this out

Reasons:
  • RegEx Blacklisted phrase (3): Were you able to figure this out
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i am having the exact same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: user16367115

79400672

Date: 2025-01-30 17:11:19
Score: 3
Natty:
Report link

Yes, the trick from answer to a similar question does it:

There is no way to globally disable this option. However, you can:

before

after

...

Thanks for the hint!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Adalbert Hanßen

79400670

Date: 2025-01-30 17:10:19
Score: 0.5
Natty:
Report link

Thanks. Including a CRS on the layer does not work and results in tile errors. It seems that Leaflet will not allow two CRSs unlike OpenLayers. I tried a different approach by recreating the map as below which seems to work. The transformation function is not needed since whilst the map is in 27700 Leaflet still works in 3857 for markers, lines etc.

        <!DOCTYPE html>
        <html>
        <head>
        <title>OS Leaflet Demo Leaflet Dual Coordinate Systems</title>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
        <script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.6.2/proj4.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/proj4leaflet/1.0.2/proj4leaflet.min.js"></script>
        <style>
            #toggleButton {
                position: absolute;
                top: 10px;
                right: 10px;
                z-index: 1000;
                background-color: white;
                border: 2px solid black;
                padding: 10px;
                cursor: pointer;
                font-size: 16px;
                box-shadow: 0 0 3px rgba(0,0,0,0.4);
            }
        </style>
        </head>
        <body>
        <div id="map" style="width: 100%; height: 600px;"></div>
        <div id="toggleButton">Switch CRS</div>
        <script>
            var map, currentCRS = 'EPSG:3857';
    
            // Define the EPSG:27700 projection
            proj4.defs("EPSG:27700", "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs");
    
            // Define the EPSG:27700 (British National Grid) projection using proj4
            const crs27700 = new L.Proj.CRS('EPSG:27700', '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +towgs84=446.448,-125.157,542.06,0.15,0.247,0.842,-20.489 +units=m +no_defs', {
            resolutions: [ 896.0, 448.0, 224.0, 112.0, 56.0, 28.0, 14.0, 7.0, 3.5, 1.75 ],
            origin: [ -238375.0, 1376256.0 ],
             bounds: L.bounds([0, 0], [700000, 1300000])
        });
            
            function createMap(center, zoom) {
                if (currentCRS === 'EPSG:3857') {
                    zoom = zoom + 7;
                    map = L.map('map').setView(center, zoom);
                    L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
                        maxZoom: 19,
                        attribution: '&copy; OpenStreetMap contributors'
                    }).addTo(map);
                } else {
                    map.options.crs = crs27700; 
                    map = L.map('map', {
                        center: center,
                        zoom: zoom -7,
                        maxZoom: 19,
                        crs: crs27700
                    });
                    L.tileLayer(
                        "https://api.os.uk/maps/raster/v1/zxy/Leisure_27700/{z}/{x}/{y}.png?key=API_KEY",
                        {
                            maxZoom: 10,
                            attribution: '&copy; Ordnance Survey'
                        }
                    ).addTo(map);
                }
            }
    
            function transformCoordinates(latlng, fromCRS, toCRS) {
                console.log('Transforming coordinates:', latlng, 'from', fromCRS, 'to', toCRS);
                var point = proj4(fromCRS, toCRS, [latlng.lng, latlng.lat]);
                console.log('Transformed coordinates:', point);
                if (isFinite(point[0]) && isFinite(point[1])) {
                    return L.latLng(point[1], point[0]);
                } else {
                    console.error('Transformed coordinates are not finite:', point);
                    return null;
                }
            }
    
            document.getElementById('toggleButton').addEventListener('click', function() {
                var center, zoom;
    
                if (currentCRS === 'EPSG:3857') {
                    center = map.getCenter();
                    zoom = map.getZoom();
                    map.remove();
                    currentCRS = 'EPSG:27700';
                    center27700 = center;
                    //var center27700 = transformCoordinates(center, 'EPSG:4326', 'EPSG:27700');
                    //var center27700 = transformCoordinates(center, 'EPSG:4326', 'EPSG:4326');
                    if (center27700) {
                        createMap(center27700, zoom);
                    } else {
                        console.error('Failed to transform coordinates to EPSG:27700');
                    }
                } else {
                    center = map.getCenter();
                    zoom = map.getZoom();
                    map.remove();
                    currentCRS = 'EPSG:3857';
                    center3857 = center;
                    //var center3857 = transformCoordinates(center, 'EPSG:27700', 'EPSG:4326');
                    if (center3857) {
                        createMap(center3857, zoom);
                    } else {
                        console.error('Failed to transform coordinates to EPSG:4326');
                    }
                }
            });
    
            // Initialize the map in EPSG:3857
            createMap([51.505, -0.09], 8);
        </script>
        </body>
        </html>
    
    
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ALD2355

79400669

Date: 2025-01-30 17:10:19
Score: 0.5
Natty:
Report link

Found the issue! It was a type error in my Course.php model:

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Course extends Model
{
    use HasFactory;

    protected $fillable = [
        'classdescr',
        'classmeetinginfo',
        'associatedclass',
        'classattributes',
        'prereqs',
        'description',
        'instructor',
        'reqsfulfilled',
        'quartersoffered',
        'gradingpercent',
        'difficulty',
        'hrsperwk',
        'subject',
    ];

    protected $casts = [
        'classdescr' => 'json',
        'classmeetinginfo' => 'json',
        'associatedclass' => 'json',
        'classattributes' => 'json',
        'prereqs' => 'json',
        'reqsfulfilled' => 'json',
        'quartersoffered' => 'json',
        'gradingpercent' => 'json',
        'difficulty' => 'float', // was 'decimal'
        'hrsperwk' => 'integer', 
    ];
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: JBell

79400662

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

If you work with Excel this formula should return the intended result. Please don't share sensitive data such as names of real people in your files, screenshots or else.

=CHOOSECOLS(TAKE(SORTBY(A2:N13,N2:N13,-1),4),1,2,14)

enter image description here

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

79400658

Date: 2025-01-30 17:04:17
Score: 4
Natty:
Report link

Zustand adheres on the client. So you should use useEffect or something like this to actually set this. What is the problem?

And one thing more. You have persist middleware for zustand store but You want on every remount set new data. Does it make much sense?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: magma

79400645

Date: 2025-01-30 17:00:16
Score: 1
Natty:
Report link

Retrieving data cell by cell can be very slow. If you need detailed access to cell properties, use this method. However, for batch operations, it's much faster to use DataTables:

WorkBook wb = WorkBook.Load(file.FileFullPath);
WorkSheet ws = wb.DefaultWorkSheet;

DataTable dt = ws.ToDataTable(true);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user3367781

79400641

Date: 2025-01-30 16:59:15
Score: 0.5
Natty:
Report link

Ok so the model is working fine now with high accuracy as much as 96% with further improvement if trained for more epochs and very low loss too as low as 0.15. This is achieved by following steps:

  1. Freezing initial layers about 80-90% for e.g, in EfficientNetB5 I froze first 400 layers and made the last 20 layers trainable.
  2. Reducing the additional layers in Sequential model and using only 4 additional layers:

layers.GlobalAveragePooling2D(), layers.Dense(1024, activation='relu'), layers.Dropout(0.5), layers.Dense(len(class_labels), activation='softmax')

  1. Increasing the initial learning_rate to 0.0005 and number of epochs to 50.
  2. Increased the number of images in the dataset by combining 2 dataset from kaggle as the initial has less images.

By following these steps although model started with low accuracy in initial epochs it gradually reached satisfactory accuracy and this time the loss was also low from the start approx. 1 as compared to 100(absurdly high) previously.

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

79400634

Date: 2025-01-30 16:54:14
Score: 3.5
Natty:
Report link

there can be many ways to check the issue but generally it sounds like You need to set up that VPN host in the capacitor.config.ts file. https://capacitorjs.com/docs/guides/live-reload#using-with-framework-clis

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

79400630

Date: 2025-01-30 16:53:14
Score: 2
Natty:
Report link

Try using a full URL path without #. If your Angular app is using a hash (#) in the URL, some frameworks may not capture query parameters correctly.

For example, https://web.vetaar-anchor.com/ActionAuth

Go to Google Cloud Console > APIs & Services > Credentials and verify that your redirect URI is correctly set to match the format.

Test your authorization url manually using a browser: https://web.vetaar-anchor.com/ActionAuth?client_id=GOOGLE_CLIENT_ID&redirect_uri=REDIRECT_URI&state=STATE_STRING&scope=REQUESTED_SCOPES&response_type=code&user_locale=LOCALE

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

79400623

Date: 2025-01-30 16:51:14
Score: 2.5
Natty:
Report link
  1. Open Device Manager (Android Studio)
  2. Open in Explorer
  3. find data/data/com.YouRNAPP/files/
  4. delete *.realm , *.realm.lock , *.realm.note
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 郝景新

79400614

Date: 2025-01-30 16:47:12
Score: 2
Natty:
Report link

android {

packaging {
    resources.excludes.add("META-INF/*")
}

}

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

79400607

Date: 2025-01-30 16:45:12
Score: 0.5
Natty:
Report link

"resources" can only be used as a child of a parent HTTP request.

What you're looking for is not supported yet, see https://github.com/gatling/gatling/issues/3783

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Stéphane LANDELLE

79400601

Date: 2025-01-30 16:43:11
Score: 1.5
Natty:
Report link

this is my first contribution but I hope it helps.

I was experiencing the same error and was able to fix it by upgrading to Flutter 3.27.3 and Dart 3.6.1

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jilber Izaguirre Castillo

79400585

Date: 2025-01-30 16:38:10
Score: 0.5
Natty:
Report link

Instead of percent, try using value and setting it to 0.33, 0.66 etc

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

79400584

Date: 2025-01-30 16:38:10
Score: 2
Natty:
Report link

According the Firefox docs, you can set devtools.console.stdout.chrome = true in about:config.

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

79400569

Date: 2025-01-30 16:35:09
Score: 3
Natty:
Report link

use project.dataset.__TABLES__ instead

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Bardia

79400568

Date: 2025-01-30 16:35:08
Score: 8.5 🚩
Natty: 5
Report link

I am also facing the same issue after updating to selenium version 4.19.1. Updated java version too to ensure the configs are fine. Still not working.

Reasons:
  • Blacklisted phrase (1): I am also facing the same issue
  • Blacklisted phrase (2): Still not working
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Akshata Kurahatti

79400564

Date: 2025-01-30 16:33:07
Score: 0.5
Natty:
Report link

With some help from @Rory (many thanks), I think I can now explain this behaviour.

The key things to understand are:

This explains why, in this unique case of a 2D reference with an omitted column_num, a #REF! error is returned, whereas the equivalent call on a literal array (or an in-memory cell range) succeeds because the "array form" supports this.

Examples:

=INDEX(A1:B2, 0) : fails (reference form; col_num is required for a 2D reference)

=INDEX(A1:B2, 0, ) : succeeds (reference form; the comma means that col_num is present, even though 'missing')

=INDEX({1, 2; 3, 4}, 0) : succeeds (array form; col_num is optional for a 2D array)

=INDEX(INDEX(A1:B2, 0, 0), 0) : fails (a _reference_ is passed to the outer INDEX() call)

=INDEX(SQRT(INDEX(A1:B2, 0, 0)), 0) : succeeds (an _array_ is passed to the outer INDEX() call)

This last example is the "range of cells" case: the inner INDEX() function returns a reference, which is processed by the SQRT() function, returning an array ("range of cells"), which then calls the "array form" of the outer INDEX() function.

I still do not understand why this difference is necessary; I can see no reason why the "reference form" should not behave identically to the array form in this regard. Presumably there is a reason, which I would love to hear if anyone knows it!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): anyone knows
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Rory
  • User mentioned (0): @Rory
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Neil T

79400560

Date: 2025-01-30 16:32:07
Score: 4.5
Natty: 5.5
Report link

So up to now have you got the right way to configure Clion to work with the source code?Even if I configure the CMakefile.txt to include the source file I download, I still can't make it work by clicking certain function to get to its source file.All the time it will direct me to header file.However, in IDEA's Java code, if I click it it will direct me to specific function and I can see everything.If you have find the way to make it, Please show it out, I search the web and don't find a solution.Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Please show
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: L ZH

79400558

Date: 2025-01-30 16:32:06
Score: 1
Natty:
Report link

Another alternative could be this formula. For range 'Series Data'!Q1:Q1000000 the result was returned in ~ 1 second in my sample sheet.

=LET(_rng,WRAPROWS('Series Data'!Q1:Q120,20),
_avrg,BYROW(_rng,LAMBDA(r,AVERAGE(r))),
_stdev,BYROW(_rng,LAMBDA(r,STDEV(r))), 
_res,IFNA(EXPAND(HSTACK(_avrg,_stdev),,4),""),
VSTACK("",TOCOL(_res)))

Average and Stdev

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

79400553

Date: 2025-01-30 16:29:06
Score: 0.5
Natty:
Report link

For anyone who stumbles onto this in the future, I fixed this by adding the following dependency to my webapp/external tomcat project:

com.fasterxml.jackson.core jackson-databind

The original project only defined jackson-core and jackson-annotations as dependencies.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: jfaulk919

79400548

Date: 2025-01-30 16:27:05
Score: 3.5
Natty:
Report link

You can check this issue on Github : https://github.com/googleanalytics/google-tag-manager-ios-sdk/issues/40

Same error as : How to configure Google Tag Manager in React Native iOS

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

79400540

Date: 2025-01-30 16:24:04
Score: 8.5
Natty: 7
Report link

I've the same problem. AT+ROLE always is 0, never saved.

Any help?

Reasons:
  • Blacklisted phrase (1): Any help
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): 've the same problem
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Ricard Lluent

79400537

Date: 2025-01-30 16:24:04
Score: 1
Natty:
Report link
j=input("Enter the first string")
b=input("Enter the second string")
if len(j)<len(b):
    b+='c'*(len(b)-len(j))
if len(b)<len(j):
    j+='c'*(len(b)-len(j))

If Vignesh tries this, the Python output terminal problem makes the short word equal to the length of the long word with a fixed letter, so they have the samelength

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

79400535

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

Django managers are classes that manage the database query operations on a particular model. Django model manager

Proxy models allow you to create a new model that inherits from an existing model but does not create a new database table. proxy model

Let me give you an example:

class Book(models.Model):
    title = models.CharField(max_length=100)
    author = models.CharField(max_length=100)
    published_date = models.DateField()
    is_downloadable = models.BooleanField(default=True)

If this is your model

manager:

class BookMnanger(models.Manager):
    def by_link(self):
        return self.filter(is_downloadable=True)

and you new manager:

class Book(models.Model):
    title = models.CharField(max_length=100)
    author = models.CharField(max_length=100)
    published_date = models.DateField()
    is_downloadable = models.BooleanField(default=True)
    # you new manager
    downloading = BookMnanger()

now, your new custom manager can work as below:

my_books = Book.downloading.all()
print(my_books)

but the proxy:

class BookProxy(Book):
    class Meta:
        proxy = True

    def special_method(self):
        return f"{self.title} by {self.author}, published on {self.published_date}"

and your proxy can work like this:

book = BookProxy.objects.first() 
print(book.special_method()) 

proxies are the way to change behavior of your model but, managers will change your specific queries

I can give you more link about them, if you need?

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

79400533

Date: 2025-01-30 16:21:02
Score: 4.5
Natty:
Report link

You can check this issue on Github : https://github.com/googleanalytics/google-tag-manager-ios-sdk/issues/40

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

79400530

Date: 2025-01-30 16:21:02
Score: 3.5
Natty:
Report link

letra mas grande -> Ctrl Shift + letra mas pequeña -> Ctrl Shift -

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

79400526

Date: 2025-01-30 16:20:02
Score: 3
Natty:
Report link

Not sure if this is useful to you, but you can now get a Fido keys that can act as a PIV Smartcard, Oath HOTP/TOTP device as well as operating as a standard Fido2 key.

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

79400520

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

in my case, I had a comment in my package.json (the syntax of my package.json was not correct)

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

79400515

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

just put it in the options:

 options: {
    scales : {
        /////// <- this part is for y range, alternatively you could set x range
         yAxes: [{
          ticks: {
            min: -200, 
            max: 10000
          }
        }]
        
        
        ///////
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mahdi Ahmadifard

79400508

Date: 2025-01-30 16:11:59
Score: 6
Natty: 7
Report link

i followed the steps and im getting "Unable to validate SQL Server Reporting Services Report Server installation. Please check that it is correctly installed on the local machine." any advice on how to resolve this?

Reasons:
  • RegEx Blacklisted phrase (1.5): how to resolve this?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anas Sul

79400497

Date: 2025-01-30 16:06:57
Score: 3.5
Natty:
Report link

I got the similar error, with expo 50 and yarn install each time one dependency is mentioned as an error and when deleting it from package.json the issue isn't solved. I tried clearing the cache, deleting node modal, yarn lock, restarting Vs code, and any possible solution mentioned on the web. By chance I installed "expo doctor" to check if it mentions any issue or not. but then I could install yarn. also, I installed other dependencies and the error message forced me to delete them. for anyone who might face the similar issue, I added this command to the sample of errors I faced

https://registry.yarnpkg.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.7.2.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "EBUSY: resource busy or locked, open 'YOUR LOCAL FILE\Yarn\Cache\v6\npm-@fortawesome-fontawesome-common-types-6.7.2-7123d74b0c1e726794aed1184795dbce12186470-integrity\node_modules\@fortawesome\fontawesome-common-types\LICENSE.txt'"

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): face the similar issue
  • Low reputation (1):
Posted by: Marya Zahraei

79400488

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

For me, restarting php-fpm service along with apache worked on RHEL 9. sudo systemctl restart php-fpm sudo systemctl restart httpd

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

79400484

Date: 2025-01-30 16:02:56
Score: 3
Natty:
Report link

If someone still needs it-- following Solve conda-libmamba-solver (libarchive.so.19) error after updating conda to 23.11.0 without reinstalling conda?

sudo apt-get install libarchive13 conda install mamba -c conda-forge --force-reinstall -y

Worked for me :)

Reasons:
  • Whitelisted phrase (-1): Worked for me
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: jean

79400475

Date: 2025-01-30 16:00:55
Score: 3
Natty:
Report link

Thank you @NoNam4, In my case I had to set "access_token_url" instead of "token_url" or "token_endpoint", after it required setting "jwks_uri"

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @NoNam4
Posted by: tulsluper

79400471

Date: 2025-01-30 15:58:54
Score: 2
Natty:
Report link

As @F.Hauri and @Cyrus suggested, you would need an another command running. Since, I am using a Python CLI, the title doesn't go away until it returns to it's shell.

In Python, you would do:

os.system("echo -en '\033]0;My new title\007'")

Thank you @F.Hauri and @Cyrus for answering this!

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

79400467

Date: 2025-01-30 15:58:54
Score: 1
Natty:
Report link

It is probably your older version of Excel. In Excel 365, your first code works perfectly.

enter image description here

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

79400464

Date: 2025-01-30 15:57:54
Score: 1.5
Natty:
Report link

I'm getting this on Sentry today and couldn't find how to resolve it. Hopefully I'll come and give you update

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

79400463

Date: 2025-01-30 15:57:54
Score: 2.5
Natty:
Report link

Adding my answer in case anyone is as stupid as I am:

I accidentally opened the parent folder in vscode, so vscode did not see the project as a salesforce project.

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

79400457

Date: 2025-01-30 15:55:54
Score: 1.5
Natty:
Report link

Just sqlcmd -S .\sqlexpress will also work. But make sure you have capital "S", just as Tao mention above.

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

79400455

Date: 2025-01-30 15:55:54
Score: 0.5
Natty:
Report link

This css is worked for me.

.MuiCollapse-vertical {
  transition: none !important;
}
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sohan Jangid

79400443

Date: 2025-01-30 15:52:53
Score: 1.5
Natty:
Report link

Just simple as this:

val applicationName = requireContext().packageName
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: The_Long_Distance_Runner

79400439

Date: 2025-01-30 15:49:52
Score: 1
Natty:
Report link

Right now it's:

rails routes | grep /preexisting/url
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Viktor Ivliiev

79400436

Date: 2025-01-30 15:49:50
Score: 7 🚩
Natty:
Report link

I too facing this issue. Recently, we have upgraded Spring Boot version from 2.2.2.RELEASE to 2.7.18. Hence, the Spring Batch version is upgraded from 4.2.x to 4.3.10.

What before worked is not working after this upgradation in Spring Batch 4.3.10. Hence, I downgraded the batch to 4.2.5.RELEASE to confirm. It's working without any change in my Spring Batch read and write method.

Exception that i'm facing in Spring batch 4.3.10

org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.IllegalStateException: Already value [org.springframework.jdbc.datasource.ConnectionHolder@69d7cd50] for key [net.ttddyy.dsproxy.support.ProxyDataSource@12330130] bound to thread
at org.springframework.orm.hibernate5.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:600)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.startTransaction(AbstractPlatformTransactionManager.java:400)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:595)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:382)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:707)
at com.wesea.frameworkdesign.base.model.dao.CompanyDAO$$EnhancerBySpringCGLIB$$e793a2c3.findCompanyByName(<generated>)
at com.wesea.appointment.service.batch.BatchService.createTruckCompany(BatchService.java:97)
at com.wesea.appointment.service.batch.TruckingCompanyDetailsWriter.write(TruckingCompanyDetailsWriter.java:103)
at org.springframework.batch.core.step.item.SimpleChunkProcessor.writeItems(SimpleChunkProcessor.java:193)
at org.springframework.batch.core.step.item.SimpleChunkProcessor.doWrite(SimpleChunkProcessor.java:159)
at org.springframework.batch.core.step.item.SimpleChunkProcessor.write(SimpleChunkProcessor.java:294)
at org.springframework.batch.core.step.item.SimpleChunkProcessor.process(SimpleChunkProcessor.java:217)
at org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:77)
at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:407)
at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCal

What I found in the version 4.3.10 is, HibernateTransactionManager's sessionHolder seems to be null. At the same time, if i check the same in 4.2.5 version, it's not null and TransactionStaus is ACTIVE

HibernateTransactionManager in 4.3.10

HibernateTransactionManager in 4.2.5

So it return's existing Trancation as below. Could you please help me on this ? I red the document enter link description here for 4.3.10 and do needful. but no luck. Thanks

Returning Existing Transaction

enter image description here

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (0.5): enter link description here
  • Blacklisted phrase (1): no luck
  • RegEx Blacklisted phrase (3): Could you please help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Rajes Waran

79400434

Date: 2025-01-30 15:48:50
Score: 0.5
Natty:
Report link

One extra use case for expect.stringContaining is that it can be used in nested matchers:

it("tests with nested stringContaining", () => {
  const o = {
    x: "testerama"
  };

  expect(o).toMatchObject({
    x: expect.stringContaining("test")
  });
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: CatSkald

79400429

Date: 2025-01-30 15:47:49
Score: 1
Natty:
Report link

In your Python program file, write code to prompt the user for three prices of vehicles and then compute and display the average price of the three vehicles. To do this do the following: a. Add a comment at the top of the file that states the following: i. Part 1 – Compute average price of three vehicles b. Prompt the user for car price 1 and store it in a variable called price1. c. Convert the price1 variable to a float. Note: When the user enters the price, you may assume they will enter it without a $. For example, a car price of $12,345.67, would be entered as 12345.67 at the prompt – no commas or dollar sign. d. Save and execute the program and verify this works correctly. e. Prompt the user for car price 2 and store it in a variable called price2. f. Convert the price2 variable to a float. g. Save and execute the program and verify this works correctly. h. Prompt the user for car price 3 and store it in a variable called price3. i. j. Convert the price3 variable to a float. Save and execute the program and verify this works correctly. 1 of 3 k. Sum up price1, price2, and price3 and divide the result by 3 and store it in a variable called average_price. l. Print out the average price. Make sure you print out the average price with a dollar sign. m. Save and execute the program and verify this works correctly.

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

79400428

Date: 2025-01-30 15:47:49
Score: 3
Natty:
Report link

In the current version of streamlit (1.41) you need to hack the css like in this case to change the texts of the widgets: https://discuss.streamlit.io/t/how-to-change-text-language-in-a-widgets/35931

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

79400412

Date: 2025-01-30 15:43:48
Score: 0.5
Natty:
Report link

First lets use a newer version of MathJax, if possible to iron out any old bugs. See the suggested way to setup MathJax via HTML here.

I also found I had to set automargin to true so the Y axis didn't get cut off, but you may not need this.

So our final .qmd file looks something like this:

---
format:
  html:
    embed-resources: true
---

```{python}
import plotly.express as px
from IPython.display import HTML, display

display(
    HTML(
        # NOTE: See new HTML code below
        '<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-svg.js"></script>'
    )
)

fig = px.line(
    x=[0, 1, 2, 3, 4],
    y=[1, 2, 4, 8, 16],
)
fig.update_layout(yaxis_title="$2^x$", xaxis_title="$x$")
# NOTE: See new automargin option below
fig.update_yaxes(automargin=True)
fig.show()
```

Results in: enter image description here

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

79400410

Date: 2025-01-30 15:43:48
Score: 1
Natty:
Report link

Removing the email directory at

/Users/username/.fastlane/spaceship/{email}/

and then running it twice did the job.

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

79400409

Date: 2025-01-30 15:43:48
Score: 1.5
Natty:
Report link

Try setting this in your gpg-agent.conf.

default-cache-ttl 2592000
max-cache-ttl 2592000
    
allow-loopback-pinentry
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Christian Arvin

79400403

Date: 2025-01-30 15:41:48
Score: 1
Natty:
Report link

You're right, I got confused and missed that "small" detail, but now I've fixed it. If it can be helpful, I'll also share the template that retrieves the data from the service.

Thanks All

**Alert: Spazio Libero Critico nel Database MSSQL**

@php
$message_parts = explode(';', $alert->faults[1]['service_message']);
$percentuale_spazio_libero = isset($message_parts[5]) ? round($message_parts[5], 2) : 'N/A';
@endphp

Nome del Database: {{ isset($message_parts[0]) ? $message_parts[0] : 'N/A' }}

Tipo di File: {{ isset($message_parts[1]) ? $message_parts[1] : 'N/A' }}

Spazio Allocato: {{ isset($message_parts[2]) ? $message_parts[2] : 'N/A' }} MB

Spazio Utilizzato: {{ isset($message_parts[3]) ? $message_parts[3] : 'N/A' }} MB

Spazio Libero: {{ isset($message_parts[4]) ? $message_parts[4] : 'N/A' }} MB

Percentuale di Spazio Libero: {{ $percentuale_spazio_libero }}%

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

79400397

Date: 2025-01-30 15:39:47
Score: 0.5
Natty:
Report link

Actually there is a way!

I've also wanted to get that information. I searched every possible documentation available of WhatsApp API but it seemed like it was not possible... Until today when I found this.

I hope it helps you

messaging_limit_tier enum {TIER_50, TIER_250, TIER_1K, TIER_10K, TIER_100K, TIER_UNLIMITED}

https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account-to-number-current-status/#

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Willy Jáuregui Vera

79400396

Date: 2025-01-30 15:37:46
Score: 0.5
Natty:
Report link

Record from the car microphone has the details on how to implement voice input in cars. In the sample flows on the page you linked, you as the developer are responsible for beginning to record audio when the user taps the button, as well as for processing the audio and updating the UI (e.g. showing the toast in the final screenshot).

The only UI/functionality that is handled for you is showing the indicator that audio input is being capture.

Reasons:
  • No code block (0.5):
Posted by: Ben Sagmoe

79400388

Date: 2025-01-30 15:35:46
Score: 0.5
Natty:
Report link

It appears like I've found a solution.

Somewhere, I found a list of queries to run to track this down. One of these was SELECT * FROM pg_largeobject_metadata WHERE lomowner = OID;

So if I loop-through all large objects and reassign ownership it sort this for me!

DO $$ 
DECLARE 
    lo_id OID;
BEGIN
    FOR lo_id IN 
        SELECT oid FROM pg_largeobject_metadata WHERE lomowner = 21338
    LOOP
        EXECUTE format('ALTER LARGE OBJECT %s OWNER TO postgres;', lo_id);
    END LOOP;
END $$;
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: fluffy_mart

79400386

Date: 2025-01-30 15:34:45
Score: 3
Natty:
Report link

It's an old question but these mibs might help...

KMCOMMON covers 1.3.6.1.4.1.1347.42 and KYOCERA covers 1.3.6.1.4.1.1347.43

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

79400384

Date: 2025-01-30 15:33:45
Score: 2
Natty:
Report link

I did in fact find it through the registry. It took a bit because once I found the key to it in HKEY_CLASSES_ROOT I did not see it in HKEY_CLASSES_ROOT > CLSID. So I did a search for the key in the Registry search and found it in HKEY_CLASSES_ROOT > Wow6432Node > CLSID. From there I was able to create a wrapper DLL, place that in my bin directory and then add a reference to it.

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

79400381

Date: 2025-01-30 15:32:45
Score: 2
Natty:
Report link

Reading the doc I was able to install:

npm install @yzfe/svgicon @yzfe/vue-svgicon --save
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: fraaanz

79400371

Date: 2025-01-30 15:28:44
Score: 3.5
Natty:
Report link

Your Binding for Itemssource is called "Expenses". Your Property in the Viewmodel is called "_expenses". They have to be equal.

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

79400370

Date: 2025-01-30 15:28:44
Score: 3
Natty:
Report link

Similar issue. Need to convert:

enter code here
<xd:xdiff xsi:schemaLocation="http://xmlns.oracle.com/xdb/xdiff.xsd http://xmlns.oracle.com/xdb/xdiff.xsd" xmlns:xd="http://xmlns.oracle.com/xdb/xdiff.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <?oracle-xmldiff operations-in-docorder="true" output-model="snapshot" diff-algorithm="global"?>
  <xd:update-node xd:node-type="text" xd:xpath="/shiporder[1]/item[1]/Date[1]/text()[1]">
    <xd:content>2025-10-08T17:10:21.000Z</xd:content>
  </xd:update-node>
  <xd:update-node xd:node-type="text" xd:xpath="/shiporder[1]/item[1]/Ref[1]/text()[1]">
    <xd:content>ABCD00207511700</xd:content>
  </xd:update-node>
  <xd:update-node xd:node-type="text" xd:xpath="/shiporder[1]/item[1]/country[1]/text()[1]">
    <xd:content>Norway</xd:content>
  </xd:update-node>
</xd:xdiff>

the above one to:

enter code here
    <Date>2025-10-08T17:10:21.000Z</Date>
    <Ref>ABCD00207511700</Ref>
    <country>Norway</country>

Can someone tell how to do it. The code snippets given in the answers do not work for my problem statement.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can someone tell how
  • RegEx Blacklisted phrase (1): Similar issue
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Preethi

79400366

Date: 2025-01-30 15:26:43
Score: 0.5
Natty:
Report link

With your data assigned to df, you can do the following to get to your desired structure:

library(tidyverse)
df %>% ungroup() %>%
  pivot_wider(values_from = n, names_from = matt_ne) %>% 
  column_to_rownames("health_pa")

Created on 2025-01-30 with reprex v2.1.1

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

79400352

Date: 2025-01-30 15:22:43
Score: 0.5
Natty:
Report link

It's impossible to reproduce accurately without the rest of the code, but it seems to me it's a CSS issue - try removing padding-right: 80px; from your .slider-container.

(when I recreated your code in HTML there is indeed overflow, and removing this padding solved the problem)

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

79400346

Date: 2025-01-30 15:21:42
Score: 1
Natty:
Report link

Add Some Code

flutter_launcher_icons:
android: "launcher_icon"
ios: true
image_path: "assets/logos/splash_logo.png"
min_sdk_android: 21
adaptive_icon_background: "#ffffff"
adaptive_icon_foreground: "assets/logos/splash_logo.png"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mahabub Alam Shawon

79400342

Date: 2025-01-30 15:19:42
Score: 3.5
Natty:
Report link

For me, the issue was caused by disabling Widget Status. Once I re-enabled it, the error was gone.

Widget Status

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

79400338

Date: 2025-01-30 15:17:41
Score: 3.5
Natty:
Report link

Worked for me :D Exactly what I was looking for.

Thank you very much for writing the answer down after you found a solution.

You are the man.

Best regards

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Whitelisted phrase (-1): Worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Romano

79400334

Date: 2025-01-30 15:17:41
Score: 3.5
Natty:
Report link

After some more thinking, I think this is the best solution. enter image description here

This eliminates a data entry from having sub categorisations without a main categorisation.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jackanap3s