79195309

Date: 2024-11-16 14:17:46
Score: 3
Natty:
Report link

add this to your pyproject.toml sentry-sdk = "<2.18.0"

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

79195290

Date: 2024-11-16 14:04:43
Score: 4.5
Natty:
Report link
Traceback (most recent call last):

_tkinter.TclError: Can't find a usable init.tcl in the following directories:

This probably means that Tcl wasn't installed properly.

I am facing same error. If any knows, share the solution. I have also used in latest version of python, PyCharm and FreeSimpleGUI 5.1.1 Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (1): I am facing same error
  • Has code block (-0.5):
  • Me too answer (2.5): I am facing same error
  • Low reputation (1):
Posted by: Pawan Bhatt

79195283

Date: 2024-11-16 14:00:42
Score: 0.5
Natty:
Report link

You are right that both mechanisms handle Dart errors but there is difference is here :

Its used for catch errors occurring within the UI and Flutter's own error boundaries, like it Handles uncaught synchronous errors originating in the Flutter framework, and The FlutterErrorDetails object provides context specific to Flutter (e.g., widget library issues).

Its used catch all unhandled asynchronous errors, even if they are not related to Flutter (like some exceptions from other plugin or dependencies), also any isolate's event loop, not just the UI thread, so It’s like "global safety net" for any uncaught errors across your app, whether it come from UI tasks or background operations.

Non of above method is directly not able to handles errors thrown from native Java or Swift code, to catch those, you'd need to use platform-specific mechanisms (like uncaughtExceptionHandler in Android or NSSetUncaughtExceptionHandler in iOS) or something like that as per your exact requirement and pass them to Dart using platform channels approach will be recomended.

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

79195282

Date: 2024-11-16 14:00:42
Score: 3
Natty:
Report link

I found out that in Xcode 16+ using canCollapseFromWindowResize with canCollapse did the trick and you cannot hide the sidebar anymore by dragging it on macOS.

        NavigationSplitView {
            Text("sidebar")
            .toolbar(removing: .sidebarToggle)
        } detail: {
            Text("detail")
        }
        .introspect(.navigationSplitView, on: .macOS(.v13,.v14,.v15)) { splitview in
            if let delegate = splitview.delegate as? NSSplitViewController {
                delegate.splitViewItems.first?.canCollapse = false
                delegate.splitViewItems.first?.canCollapseFromWindowResize = false
            }
        }

I don't really understant why @yu-zhao got down voted because that solution worked until the newest version of macos and xcode.

Reasons:
  • RegEx Blacklisted phrase (2): down vote
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @yu-zhao
  • Low reputation (1):
Posted by: magic_sk

79195276

Date: 2024-11-16 13:55:41
Score: 2
Natty:
Report link

Your gradle files are corrupted Enter this path to solve this problem user/{user}/.gradle/wrapper/dists And delete your Gerdle folder so that Android Studio downloads the Gerdle files again to solve the problem

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

79195270

Date: 2024-11-16 13:53:40
Score: 3.5
Natty:
Report link

It seems this is fixed starting from Tycho 3.0.x: https://github.com/eclipse-tycho/tycho/pull/2011/commits/fdd9a7f09667106783048d61898d5d0091437975

replaceTypeWithExtension needs to be set to true then.

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

79195269

Date: 2024-11-16 13:53:40
Score: 3
Natty:
Report link

I faced the same issue. And easily could resolve it once i close the VScode and restart it.

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

79195257

Date: 2024-11-16 13:45:38
Score: 1.5
Natty:
Report link

it is solved. you can close.

the isue is about java and defining the way

flutter config --jdk-dir /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/home

and put you definition

Reasons:
  • Whitelisted phrase (-1): it is solved
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Cesar Goulart

79195233

Date: 2024-11-16 13:30:34
Score: 1.5
Natty:
Report link

What seems to have fixed the issue is running pnpm install and then rerunning the command for adding the tailwind pnpm run qwik add tailwind

Weird thing is that when project was initialized, I was told by the CLI that it will install all the dependencies.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Chain Truth

79195230

Date: 2024-11-16 13:27:33
Score: 1.5
Natty:
Report link

Self answer!

The issue was resolved by downgrading Kafka to version 3.8.x. According to the release notes for Kafka 3.9.0, the SystemTime class was changed to a singleton, and instead of creating an instance with new SystemTime();, it was modified to obtain the instance by calling the SystemTime.getSystemTime(); method.

However, the latest version of Kafka Connect JDBC(v10.8.0) initializes the field with time = new SystemTime();, which caused the error.

I have created an issue on the Kafka Connect JDBC GitHub.

Here are the relevant links:

https://issues.apache.org/jira/browse/KAFKA-16879

https://github.com/apache/kafka/pull/16266

https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/utils/SystemTime.java

https://github.com/confluentinc/kafka-connect-jdbc/blob/master/src/main/java/io/confluent/connect/jdbc/source/JdbcSourceTask.java

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

79195219

Date: 2024-11-16 13:20:32
Score: 2.5
Natty:
Report link

if you have mainform ,contain same pages ,each page contain subform you need to get path of (text) in the subform to use it in Query,get this

[Forms]![MainForm]![Child].[Form]![Text]

thanks to all

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gavan Badea

79195214

Date: 2024-11-16 13:15:31
Score: 1.5
Natty:
Report link
{
 "compilerOptions": {
"types": [
  // ... your other types
  "node"
],

}, }

This fixed the issue for me

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

79195213

Date: 2024-11-16 13:15:31
Score: 1
Natty:
Report link

I'm going to start with the obvious: Python 2.7 has been dead for 4 years now ([Python]: Sunsetting Python 2). Make sure that you clearly mention the reason for sticking to it, otherwise many users might see it as an XY Problem. I saw in a comment from another question that you are working with [Gwyddion]: Gwyddion which indeed doesn't support Python 3.

Now, since Python 2 is no longer supported, packages, tools, ... don't have to support it (some still might, but most will not - as time goes by).
VirtualEnv that is shipped by PyCharm doesn't. Check [SO]: pycharm does not connect to console with python3.8 (@CristiFati's answer) for a similar situation.

Alternatives:

I. Create the Python 2.7 virtual environment manually and "import" it in PyCharm

I'll be explaining the theoretical process with practical examples. There will be scattered snippets from a Cmd console (starting below):

[cfati@CFATI-5510-0:e:\Work\Dev\StackExchange\StackOverflow\q079004210]> sopr.bat
### Set shorter prompt to better fit when pasted in StackOverflow (or other) pages ###

[prompt]> :: === Start ===
[prompt]> dir /b
code00.py

[prompt]>
  1. Prerequisites:

    There are multiple variants here, so I'll focus on the one I use most. You'll have to have:

    1. A Python 2.7 instance that will be used as a base for creating the VEnv. I'll be referring to it as (like it was a Nix environment variable) ${PY2}

    2. A Python instance with VirtualEnv ([PyPA.VirtualEnv]: Installation - also check [SO]: Python3.7 venv does not Create Virtual Environment Directory (@CristiFati's answer)) installed. This can be the same as the previous one, but I recommend using a n up to date Python 3 version (${PY3}), as there are some prerequisites as well ([PyPI]: pip, and modern Python versions come with it inside). Might be helpful:

  2. Create the VEnv

    Step(s) detailed in [SO]: Create Windows Python virtualenv with a specific version of Python (@CristiFati's answer).
    Typically: "${PY3}" -m virtualenv -p "${PY2}" ${VENV2} where ${VENV2} is the location where you want your VEnv to be created at. Activate it afterwards:

    [prompt]> :: === Create VEnv ===
    [prompt]> "c:\Install\pc064\Python\Python\03.10\python.exe" -m virtualenv -p "c:\Install\pc064\Python\Python\02.07\python.exe" ".\py_0207_pc064_venv"
    created virtual environment CPython2.7.18.final.0-64 in 8051ms
      creator CPython2Windows(dest=E:\Work\Dev\StackExchange\StackOverflow\q079004210\py_0207_pc064_venv, clear=False, no_vcs_ignore=False, global=False)
      seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\cfati\AppData\Local\pypa\virtualenv)
        added seed packages: pip==20.3.4, setuptools==44.1.1, wheel==0.37.1
      activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
    
    [prompt]>
    (py_0207_pc064_venv) [prompt]> dir /b
    code00.py
    py_0207_pc064_venv
    
    [prompt]>
    [prompt]> ".\py_0207_pc064_venv\Scripts\python.exe"
    Python 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> ^Z
    
    
    [prompt]> :: Activate VEnv
    [prompt]> ".\py_0207_pc064_venv\Scripts\activate.bat"
    
    (py_0207_pc064_venv) [prompt]>
    (py_0207_pc064_venv) [prompt]> :: Check for PIP
    (py_0207_pc064_venv) [prompt]> python.exe -m pip > /nul
    e:\Work\Dev\StackExchange\StackOverflow\q079004210\py_0207_pc064_venv\Scripts\python.exe: No module named pip
    (py_0207_pc064_venv) [prompt]>
    (py_0207_pc064_venv) [prompt]> :: @TODO - cfati: Check previous command (error message if PIP not installed, OK otherwise)
    (py_0207_pc064_venv) [prompt]> (py_0207_pc064_venv) [prompt]> echo %ERRORLEVEL%
    (py_0207_pc064_venv) [prompt]> 1
    
  3. Install PIP in the VEnv

    This is an optional step that has to be executed only if PIP is not already there (check the @TODO at the end of the last snippet). Usually it's not required, but exemplifying it anyway (you need PIP to be able to install packages in your VEnv).
    Check [AskUbuntu]: How can I find an older version of pip that works with Python 2.7?:

    (py_0207_pc064_venv) [prompt]> :: === Get (v2.7 compatible) PIP (if not already there) ===
    (py_0207_pc064_venv) [prompt]> curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output ".\get-pip.py"
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 1863k  100 1863k    0     0  3912k      0 --:--:-- --:--:-- --:--:-- 3956k
    
    (py_0207_pc064_venv) [prompt]>
    (py_0207_pc064_venv) [prompt]> dir /b
    code00.py
    get-pip.py
    py_0207_pc064_venv
    
    (py_0207_pc064_venv) [prompt]>
    (py_0207_pc064_venv) [prompt]> :: Check for PIP
    (py_0207_pc064_venv) [prompt]> python.exe -m pip > /nul
    
    (py_0207_pc064_venv) [prompt]> echo %ERRORLEVEL%
    0
    

    Now, you should have an usable Python 2.7 VEnv.

  4. Import the new VEnv in PyCharm

    Steps (PyCharm related ones) are identical to the ones from [SO]: How to install Python using the "embeddable zip file" (@CristiFati's answer)

    After the above steps and PyCharm finishes indexing the files, your new VEnv is ready to use:

    img00

  5. Test the new VEnv from Pycharm

    code00.py:

    #!/usr/bin/env python
    
    import sys
    
    
    def main(*argv):
        print "Py2.7 specifics:", range(7)
    
    
    if __name__ == "__main__":
        print(
            "Python {:s} {:03d}bit on {:s}\n".format(
                " ".join(elem.strip() for elem in sys.version.split("\n")),
                64 if sys.maxsize > 0x100000000 else 32,
                sys.platform,
            )
        )
        rc = main(*sys.argv[1:])
        print("\nDone.\n")
        sys.exit(rc)
    

    Output (PyCharm console):

    E:\Work\Dev\StackExchange\StackOverflow\q079004210\py_0207_pc064_venv\Scripts\python.exe E:\Work\Dev\StackExchange\StackOverflow\q079004210\code00.py 
    Python 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)] 064bit on win32
    
    Py2.7 specifics: [0, 1, 2, 3, 4, 5, 6]
    
    Done.
    
    
    Process finished with exit code 0
    

    Also attaching a screenshot:

    img01


II. Downgrade your PyCharm installation to a version that is still Python 2.7 compatible

[JetBrains]: Other Versions contains a list of them. For example, v2019.3 should be OK, but you'll have to see it for yourself.
Needless to say that it won't have the features an upper-to-date version has.


III. Modify your PyCharm installation to support Python 2.7

Only mentioning this as a purely theoretical variant, I don't even need to start enumerating the reasons why not to do it. I did it once though: [SO]: Run / Debug a Django application's UnitTests from the mouse right click context menu in PyCharm Community Edition? (@CristiFati's answer).

Reasons:
  • Blacklisted phrase (1): another question
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (1): StackOverflow
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @TODO
  • High reputation (-2):
Posted by: CristiFati

79195204

Date: 2024-11-16 13:11:30
Score: 2.5
Natty:
Report link

In Visual Studio 2022, when you publish a website, .gz files are often created as part of the compression step to optimize content delivery for web servers that support Gzip compression. To prevent the creation of .gz files during publishing, you can modify your project settings.

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

79195202

Date: 2024-11-16 13:10:30
Score: 2
Natty:
Report link

Alright the fault was on my side I forgot and did not notice there was another function app in my azure portal that had the old code and when I looked at its invocations it was mostly the first one to run and then the new one did not because of it.

Moral of this story, please check all of your function apps to make sure that there is not some old dusted version of it that will make you problems like to me.

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

79195191

Date: 2024-11-16 13:05:26
Score: 8.5 🚩
Natty:
Report link

Did you ever solve this? Identical setup with identical problem... and I've tried those links..

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever solve this
  • RegEx Blacklisted phrase (1.5): solve this?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: user28330840

79195190

Date: 2024-11-16 13:05:26
Score: 4.5
Natty:
Report link

im new to HA and struggling to get my head around everything. How to make the bar colors change based on the values? I want the NordPool electricity price data chart to show the high price bars red, middle orange, low green etc, but I want them to be set depending on the max price of the particular day, lets say, the max shown price of the cart today is 50 EUR, so the 80%-100% of the max price will show up red, 60%-80% orange etc. Currently I have them set as 0-10 EUR = blue 10-20 green etc. But that's not convenient if all the hourly prices of the day are, lets say in a range of 0-10 - then all the bars are shown in blue.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (1.5): im new
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kaspars

79195177

Date: 2024-11-16 12:59:24
Score: 3
Natty:
Report link

Hey there!

Your code seems mostly correct, but the issue lies in how PHP PDO works with lastInsertId(). This method only returns the ID of the last inserted record and not after an UPDATE query. Since your logic includes an UPDATE query right after the INSERT, calling $db->lastInsertId() at that point will not reflect the inserted ID anymore.

To fix this, simply move the call to $db->lastInsertId() directly after the INSERT query, and it should work as expected.

Best regards,
t045t

Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: t045t

79195174

Date: 2024-11-16 12:58:24
Score: 3.5
Natty:
Report link

I had faced this problem, and after removing top(n), the issue was resolved.

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

79195172

Date: 2024-11-16 12:58:24
Score: 0.5
Natty:
Report link

I suggest this should do the trick:

import * as mongoose from "@typegoose/typegoose";
import { getModelForClass } from "@typegoose/typegoose";
...
const typegoose = mongoose.mongoose;
...
describe("MembershipService", () => {
  beforeAll(async () => {
    if (!process.env.MONGODB_URL_TEST) {
      throw new Error("MONGODB_URL_TEST is not set");
    }
    const uniqueUri = `${process.env.MONGODB_URL_TEST}-MembershipService`;

    await typegoose.connect(uniqueUri, {
      useNewUrlParser: true,
      useUnifiedTopology: true,
    });
    console.log("MembershipService start", typegoose.connection.name);
    ...
    MemberModel = getModelForClass(MembershipMember);
  });

  afterAll(async () => {
    console.log("MembershipService end", typegoose.connection.name);
    await typegoose.connection.close();
    await typegoose.disconnect();
  });
});
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tarasko

79195167

Date: 2024-11-16 12:55:23
Score: 0.5
Natty:
Report link

The partition_depth_histogram in Snowflake's SYSTEM$CLUSTERING_INFORMATION function can be a bit confusing. I tried to break down your questions with examples:

1. Why is it always 17 buckets?

The number of buckets in the partition_depth_histogram is not always 17. It's actually a combination of two factors:

Fixed Buckets (0-16): The first 17 buckets (numbered from "00000" to "00016") represent a fixed range from 0 to 16 overlap depth with increments of 1. This provides detailed information about micro-partitions with very low overlap.

Dynamic Buckets (Larger than 16): For overlap depths exceeding 16, the buckets increase in size based on a doubling scheme. This means the next bucket would be "00032" (twice the size of the previous bucket) and so on. This approach efficiently represents the distribution of overlap depth for a wider range of values.

2. What is the relation between micro-partitions and buckets in the histogram?

The partition_depth_histogram doesn't directly map micro-partitions to specific buckets. Instead, it shows the number of micro-partitions that fall within a certain overlap depth range.

Bucket Value: Each bucket represents a specific overlap depth range. Value in the Bucket: The value associated with a bucket (e.g., 98 in "00032") indicates the number of micro-partitions in that specific overlap depth range.

3.What do the numbers in the histogram mean?

The numbers in the histogram represent the count of micro-partitions within a specific overlap depth range.

In your example:

There are 0 micro-partitions with an overlap depth of 0 ("00000"). There are 3 micro-partitions with an overlap depth between 2 and 3 ("00002"). There are 98 micro-partitions with an overlap depth between 32 and 64 ("00032"). There are 698 micro-partitions with an overlap depth exceeding 128 ("00128").

Please Note:

The provided example also shows a high average_depth (64.07) compared to the total number of micro-partitions (1156). This suggests that a significant portion of the data is accessed by multiple queries, potentially leading to good query performance due to data sharing.

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

79195158

Date: 2024-11-16 12:47:22
Score: 2
Natty:
Report link

have a try to add sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) before client.bind(("", 8000))

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

79195157

Date: 2024-11-16 12:44:21
Score: 1
Natty:
Report link

A previous answer (no longer available apparently due to AI plagiarism) made me realize that I can simply recreate the connection once I've retrieved the token with the unauthorized connection.

That way, the AccessTokenProvider function - that is only executed once starting a connection - is run again for the new one, now with the token.

This is an option that works fine so far for me (since I have no other ongoing calls than getting the token before going authorized). I do not know if this is the intended solution, so if someone knows how to set a token on running connections or there are other ways to accomplish this, please let me know in a better answer.

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Ray

79195148

Date: 2024-11-16 12:38:20
Score: 3.5
Natty:
Report link

I came across the need to use GraphViz in Lambda. Successfully did it: https://schemaviz.surge.sh/ There is a working Lambda layer on github: https://github.com/Nummulith/SchemaViz I'm happy to answer any questions or receive feedback.

Reasons:
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: nummulith

79195140

Date: 2024-11-16 12:29:19
Score: 1.5
Natty:
Report link

If your configuratoins are in different packages, use @ComponentScan on application like this:

@SpringBootApplication
@ComponentScan(basePackages = {"hu.infokristaly"})
public class ForrasUploadSoapServerApplication {
    private static ApplicationContext applicationContext;

    public static void main(String[] args) {
       SpringApplication.run(ForrasUploadSoapServerApplication.class, args);
    }

}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @ComponentScan
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Papp Zoltán

79195129

Date: 2024-11-16 12:25:18
Score: 3.5
Natty:
Report link

This is how you get days in milliseconds, simply.

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

79195123

Date: 2024-11-16 12:20:17
Score: 0.5
Natty:
Report link

Overlap Depth in Snowflake refers to the number of times a specific micro-partition is referenced by different queries or jobs. In simpler terms, it measures the degree of data sharing among concurrent queries.

Average Depth is a metric that calculates the average overlap depth across all micro-partitions in a table. It provides a measure of the overall data sharing efficiency within a table.

Why Overlap Depth Matters:

Query Performance: Higher overlap depth can lead to improved query performance, as data is already cached in memory and can be reused by multiple queries.

Resource Utilisation: Efficient data sharing can reduce the need for additional data transfers and processing, optimising resource utilisation.

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

79195097

Date: 2024-11-16 12:01:12
Score: 1.5
Natty:
Report link

I just add geom_subtile() and geom_subrect() function in package ggalign to subdivide rectangles with shared borders into a grid.

library(reshape2)
library(ggplot2)
m <- matrix(
    c("SNV", "SNV", NA, NA, "INDEL", "SNV", "INDEL", "SNV", "SNV/INDEL"),
    3, 3
)

ggplot(
    tidyr::separate_longer_delim(melt(m), value, delim = "/"),
    aes(Var1, Var2, fill = value)
) +
    geom_subtile(color = "yellow", linewidth = 2) +
    xlab("Patient") +
    ylab("Gene")

enter image description here

If you want to draw the oncoplot, ggalign provide more advanced function to do this, it can do everything ComplexHeatmap can, and even more!

The oncoplot vignette is here: https://yunuuuu.github.io/ggalign/dev/articles/oncoplot.html

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

79195093

Date: 2024-11-16 12:00:12
Score: 1
Natty:
Report link

If somebody see access denied about Windows\Fonts Folder these days(Now 2024-11-16), Project -> Add -> manifest add and Set manifest like this

<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
    <requestedExecutionLevel level="highestAvailable" uiAccess="false" />
  </requestedPrivileges>
  
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: LightAndLiberty

79195074

Date: 2024-11-16 11:46:09
Score: 1
Natty:
Report link

Not sure if this is how its supposed to be done but I do this:

var window = await Electron.WindowManager.CreateWindowAsync(new BrowserWindowOptions() { Title = "test123" });
window.OnPageTitleUpdated += (title) => window.SetTitle("test123");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jorre Vedder

79195072

Date: 2024-11-16 11:44:08
Score: 2
Natty:
Report link

Upgrade the Operating System

Advocate for upgrading the operating system to Windows 10 or later. Since Windows 8 has reached the end of its lifecycle, it's not only unsupported by modern .NET versions but also poses security risks.

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

79195062

Date: 2024-11-16 11:39:07
Score: 3.5
Natty:
Report link

There's an OpenSource port of WebForms to .NET 8 here: github.com/simonegli8/WebFormsForCore.

With this Library you can run existing WebForms projects directly in .NET 8.

Here's a Video Tutorial on how to convert the sample WebForms site to .NET 8.

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

79195057

Date: 2024-11-16 11:38:07
Score: 1.5
Natty:
Report link

For now, QEMU supports only 3 CPU architectures (AMD, IBM POWER and IBM S390x), as properly hinted in comment So for Intel and other(?) architectures, support doesn't exist yet - one can find it in QEMU documentation about Confidential Guest Support

Hence, in order to "fix" this, someone has to write new code for QEMU, and that also depends whether Intel and others have documentation and allow it to be open source.

For Intel, it is most likely TDX extension technology.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: silpol

79195053

Date: 2024-11-16 11:37:07
Score: 5.5
Natty: 7.5
Report link

Can anybody reproduse this? you just need a /home/sound0.wav file...

https://discuss.ai.google.dev/t/10-memory-error-i-need-your-help/49620

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Can anybody
  • Low reputation (1):
Posted by: jon1enforce

79195046

Date: 2024-11-16 11:31:05
Score: 1.5
Natty:
Report link

So, apparently this is a sql problem not django

you can't have an alias in the were statement.

probably the alias won't be evaluated in the where part of the query execution.

So, the db can't use a column it doesn't have and as a result they forbid it

does it mean the alias sql will be evaluated more than once? No, depending on the database optimization engine but most probably no, the only insufficient here is writing the same sql more than once but has no effect on the performance

also, if you don't care about the match value returned

use qs.alias() to prevent it from being written there as well

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: mohamed naser

79195038

Date: 2024-11-16 11:24:03
Score: 1.5
Natty:
Report link

Helllo,

You can achieve this report logic in power BI Report by following these below steps.

Firstly, you need to build calculated columns to get the data based on years and department.

And then add the slicer like gender and ethnicity and try to filter based on slicers like male and Female.

Once data start filtering based on slicers take a line chart or bar chart and add those calculated columns for change variance as per years and departments.

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

79195037

Date: 2024-11-16 11:23:03
Score: 2.5
Natty:
Report link

constructor(props) { super(props);

this.onFileDrop = this.onFileDrop.bind(this);

}

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

79195036

Date: 2024-11-16 11:23:03
Score: 2.5
Natty:
Report link

I'm sorry to hear that you are facing the issue I was able to resolve it. I made a video with a step-by-step process on how to resolve it. https://www.youtube.com/watch?v=hhmDotJ8WE0&t=16s.

I hope it helps you fix it.

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Whitelisted phrase (-1): hope it helps
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ifeanyichukwu obeta

79195032

Date: 2024-11-16 11:22:02
Score: 0.5
Natty:
Report link

You are attempting to read an Excel file in the xlsx format. openpyxl is your go-to module, not xlrd and here is why, straight from the xlrd github page:

python-excel.org/ itself starts with openpyxl: The recommended package for reading and writing Excel 2010 files (ie: .xlsx)

Reasons:
  • No code block (0.5):
Posted by: OCa

79195028

Date: 2024-11-16 11:19:02
Score: 2
Natty:
Report link

No.

Searching for Youtube TV channels is not available on YouTube API.

https://issuetracker.google.com/issues/209382351

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

79195018

Date: 2024-11-16 11:12:00
Score: 2.5
Natty:
Report link

(NOBRIDGE) ERROR Error: Exception in HostFunction: Unable to convert string to floating point value: "large"

This error is located at: in RNSScreen (created by Animated(Anonymous)) in Animated(Anonymous) (created by InnerScreen) in Suspender (created by Freeze) in Suspense (created by Freeze) in Freeze (created by DelayedFreeze) in DelayedFreeze (created by InnerScreen) in InnerScreen (created by Screen) in Screen (created by SceneView) in SceneView (created by NativeStackViewInner) in Suspender (created by Freeze) in Suspense (created by Freeze) in Freeze (created by DelayedFreeze) in DelayedFreeze (created by ScreenStack) in RNSScreenStack (created by ScreenStack) in ScreenStack (created by NativeStackViewInner) in NativeStackViewInner (created by NativeStackView) in RCTView (created by View) in View (created by SafeAreaProviderCompat) in SafeAreaProviderCompat (created by NativeStackView) in NativeStackView (created by NativeStackNavigator) in PreventRemoveProvider (created by NavigationContent) in NavigationContent in Unknown (created by NativeStackNavigator) in NativeStackNavigator in Unknown (created by ThemeProvider) in ThemeProvider (created by PaperProvider) in RCTView (created by View) in View (created by Portal.Host) in Portal.Host (created by PaperProvider) in RCTView (created by View) in View (created by SafeAreaInsetsContext) in SafeAreaProviderCompat (created by PaperProvider) in PaperProvider (created by ThemeProvider) in ThemeProvider (created by RootLayout) in RootLayout in Unknown (created by Route()) in Suspense (created by Route()) in Route (created by Route()) in Route() (created by ContextNavigator) in RNCSafeAreaProvider (created by SafeAreaProvider) in SafeAreaProvider (created by wrapper) in wrapper (created by ContextNavigator) in EnsureSingleNavigator in BaseNavigationContainer in ThemeProvider in NavigationContainerInner (created by ContextNavigator) in ContextNavigator (created by ExpoRoot) in ExpoRoot (created by App) in App (created by ErrorOverlay) in ErrorToastContainer (created by ErrorOverlay) in ErrorOverlay (created by withDevTools(ErrorOverlay)) in withDevTools(ErrorOverlay) in RCTView (created by View) in View (created by AppContainer) in RCTView (created by View) in View (created by AppContainer) in AppContainer in main(RootComponent)

I am getting this error again and again when trying to run my expo on android device, after updating to expo 52

Reasons:
  • Blacklisted phrase (1): I am getting this error
  • RegEx Blacklisted phrase (1): I am getting this error
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: SPIDER

79195008

Date: 2024-11-16 11:08:59
Score: 0.5
Natty:
Report link

My answer would be logically same as to @Dale's.

you can create a common table which has same logic and then create 3 temporary tables.

Regarding performance, you can create index on CommonData table on customerId and country as they are in filtering condition.

example:

CREATE TABLE #CommonData (
-- Column definitions
);

INSERT INTO #CommonData
SELECT 
    C.*, 
    O.*, 
    OT.*
FROM Customers C
LEFT JOIN Orders O ON C.CustomerID = O.CustomerID
LEFT JOIN OtherTables OT ON C.SomeID = OT.SomeID
WHERE C.Active = 1 AND O.OrderStatus = 'Completed';

SELECT * FROM #CommonData WHERE CustomerID > 80;
SELECT * FROM #CommonData WHERE CustomerID = 1;
SELECT * FROM #CommonData WHERE Country = 'Mexico';
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Dale's
  • Low reputation (0.5):
Posted by: samhita

79195002

Date: 2024-11-16 11:06:58
Score: 0.5
Natty:
Report link

from reportlab.lib.pagesizes import letter from reportlab.pdfgen import canvas from PIL import Image

def create_pdf_with_images(pdf_filename, image_paths): # Create a canvas object to generate the PDF c = canvas.Canvas(pdf_filename, pagesize=letter)

# Add a title to the document
c.setFont("Helvetica-Bold", 16)
c.drawString(100, 750, "Basic Elements of Computing")

# Adding an introduction or explanation
c.setFont("Helvetica", 12)
c.drawString(100, 730, "This document explains the basic elements of computing with illustrations.")

# Define the starting position for images and text
y_position = 700

for image_path in image_paths:
    # Add a brief description
    c.setFont("Helvetica", 10)
    c.drawString(100, y_position - 20, f"Image: {image_path}")
    
    # Add the image (resize it if necessary)
    img = Image.open(image_path)
    img_width, img_height = img.size
    aspect_ratio = img_height / float(img_width)
    img_width = 200  # Width of the image in the PDF
    img_height = img_width * aspect_ratio  # Maintain the aspect ratio
    
    # Draw the image onto the canvas
    c.drawImage(image_path, 100, y_position - 150, width=img_width, height=img_height)
    
    # Update y_position for the next image
    y_position -= img_height + 100

# Save the PDF
c.save()

Example usage

image_paths = ['image1.jpg', 'image2.png', 'image3.jpg'] # Provide the paths of your images create_pdf_with_images("Computing_Elements.pdf", image_paths)

Reasons:
  • Blacklisted phrase (1): This document
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohamed touil

79194999

Date: 2024-11-16 11:05:58
Score: 0.5
Natty:
Report link

A more structured way (wordpress way) of doing the web hook basing on @oscar's amazing answer, would be to utilize a plug that can help manage web hooks such as Bit Integrations.

First a modification need to be done to the following path as @oscar mentioned.

plugins/elementor-pro/modules/forms/submissions/actions/save-to-database.php

the modification is by simply adding the following line

$record->set('submission_id', $this->submission_id);

exactly after

$this->submission_id = Query::get_instance()->add_submission( [
            'main_meta_id' => 0,
            'post_id' => $post_id,
            'referer' => remove_query_arg(
                [ 'preview_id', 'preview_nonce', 'preview' ],
                $meta['page_url']['value']
            ),
            'referer_title' => $meta['page_title']['value'],
            'element_id' => $element_id,
            'form_name' => $form_name,
            'campaign_id' => 0,
            'user_id' => get_current_user_id(),
            'user_ip' => $meta['remote_ip']['value'],
            'user_agent' => $meta['user_agent']['value'],
            'actions_count' => $actions_count,
            'actions_succeeded_count' => 0,
            'meta' => wp_json_encode( [
                // TODO: Should be removed if there is an ability to edit "global widgets"
                'edit_post_id' => $record->get_form_settings( 'edit_post_id' ),
            ] ),
        ], $record->get_field( null ) );

now instead of calling the hook customly through function.php n the theme which could risk in breaking the theme if was edited incorrectly. We shall use the bit integration plugin. After installing the plugin, we go to the plugin code files to allow it to read the added piece of data which is the submission id.

First we go to this file

plugins/bit-integrations/includes/Triggers/Elementor/t ElementorHelper.php

we modify the following functions :

public static function extractRecordData($record)
    {
        return [
            'id'           => $record->get_form_settings('id'),
            'form_post_id' => $record->get_form_settings('form_post_id'),
            'edit_post_id' => $record->get_form_settings('edit_post_id'),
            'submission_id' => $record->get('submission_id'),
            'fields'       => $record->get('fields'),
            'files'        => $record->get('files'),
        ];
    }

and scroll down a bit to modify the second function that handles the retrieved data and passes it to the UI to be seen by the user while setting up the hook in bit integrations plugin.

public static function setFields($formData)
    {
        $allFields = [
            ['name' => 'id', 'type' => 'text', 'label' => wp_sprintf(__('Form Id (%s)', 'bit-integrations'), $formData['id']), 'value' => $formData['id']],
            ['name' => 'form_post_id', 'type' => 'text', 'label' => wp_sprintf(__('Form Post Id (%s)', 'bit-integrations'), $formData['form_post_id']), 'value' => $formData['form_post_id']],
            ['name' => 'edit_post_id', 'type' => 'text', 'label' => wp_sprintf(__('Edit Post Id (%s)', 'bit-integrations'), $formData['edit_post_id']), 'value' => $formData['edit_post_id']],
            ['name' => 'submission_id', 'type' => 'text', 'label' => wp_sprintf(__('Submission Id (%s)', 'bit-integrations'), $formData['submission_id']), 'value' => $formData['submission_id']],
        ];

//... rest of the code

To understand where those functions are called we can check the controller PHP file as follows:

plugins/bit-integrations/includes/Triggers/Elementor/t ElementorController.php

public static function handle_elementor_submit($record)
    {
        $recordData = ElementorHelper::extractRecordData($record);
        $formData = ElementorHelper::setFields($recordData);
        $reOrganizeId = $recordData['id'] . $recordData['form_post_id'];

        if (get_option('btcbi_elementor_test') !== false) {
            update_option('btcbi_elementor_test', [
                'formData'   => $formData,
                'primaryKey' => [(object) ['key' => 'id', 'value' => $recordData['id']]]
            ]);
        }

        $flows = ElementorHelper::fetchFlows($recordData['id'], $reOrganizeId);
        if (!$flows) {
            return;
        }

        foreach ($flows as $flow) {
            $flowDetails = static::parseFlowDetails($flow->flow_details);

            if (!isset($flowDetails->primaryKey) && ($flow->triggered_entity_id == $recordData['id'] || $flow->triggered_entity_id == $reOrganizeId)) {
                $data = ElementorHelper::prepareDataForFlow($record);
                Flow::execute('Elementor', $flow->triggered_entity_id, $data, [$flow]);

                continue;
            }

            if (\is_array($flowDetails->primaryKey) && ElementorHelper::isPrimaryKeysMatch($recordData, $flowDetails)) {
                $data = array_column($formData, 'value', 'name');
                Flow::execute('Elementor', $flow->triggered_entity_id, $data, [$flow]);
            }
        }

        return ['type' => 'success'];
    }

Example of the hooked data: enter image description here

voilla, works like a charm.

special thanks to @oscar for his insight and ope it saved someone's time.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @oscar's
  • User mentioned (0): @oscar
  • User mentioned (0): @oscar
  • Low reputation (0.5):
Posted by: Osama Hussein

79194991

Date: 2024-11-16 11:00:57
Score: 0.5
Natty:
Report link

I had the same problem, apparently the config didn't recognize the before password so I had to create a new one on the terminal

sudo -u postgres psql

ALTER USER username WITH PASSWORD 'your new password(the quotes remain)';

not only that, because I was using pg Admin and for it to connect I had to close then open so I can input the new password after that everything just started working.

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

79194985

Date: 2024-11-16 10:57:56
Score: 0.5
Natty:
Report link

The best option depends on your use case, but generally, the most robust and maintainable solution is relocating resource files (Option 5) if they don’t need to be executable Python code. Here's why:

Why Relocate Resource Files? Prevents Compilation Automatically: Non-.py files won’t be compiled by pip or Python. Clear Separation: Separates resource files (e.g., configuration, templates, data) from your executable code, making your package easier to maintain. Cross-Platform Friendly: Avoids potential issues with different systems interpreting .py files as executable Python code. Simplifies Packaging: Removes the need for extra configuration in MANIFEST.in or setup.py.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Vanisha

79194969

Date: 2024-11-16 10:47:54
Score: 0.5
Natty:
Report link

This is a bug in the Linux glibc swprintf implementation which in some cases does not write null terminator into the last position of output buffer.

https://sourceware.org/bugzilla/show_bug.cgi?id=27857

This bug was recently fixed in the new glibc version 2.37. So after upgrading system library to new version, the provided example start working correctly.

As a workaround for older glibc versions (pre-2.37), it is possible to explicitly add null terminator. For example following code adds null terminator conditionally only when compiling for glibc and only when compiling for old version affected by that bug:

#include <iostream> 
#include <string> 
#include <cwchar> 

int main()
{

    wchar_t wide[5];

    std::swprintf(wide, sizeof wide/sizeof *wide, L"%ls", L"111111111");
#if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 37))
    wide[(sizeof wide/sizeof *wide)-1] = L'\0';
#endif

    std::wcout << wide;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Pali

79194967

Date: 2024-11-16 10:46:52
Score: 8.5 🚩
Natty:
Report link

Could you please share if this was achieved ?

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you please share
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ELK begineer

79194966

Date: 2024-11-16 10:45:51
Score: 0.5
Natty:
Report link

I have the project (lerna + rollup) with yarn. And for imports of icons i use url plugin import url from '@rollup/plugin-url';, e.g. rollup config looks like

import {defineConfig} from 'rollup';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import typescript from '@rollup/plugin-typescript';
import {terser} from 'rollup-plugin-terser';
import url from '@rollup/plugin-url';

import * as fs from 'fs';
import path from 'path';

const PACKAGE_NAME = process.cwd();
const packageJson = JSON.parse(fs.readFileSync(path.join(PACKAGE_NAME, 'package.json'), 'utf-8'));

const includePaths = ['**/*.woff', '**/*.woff2', '**/*.svg', '**/*.png'];

export default defineConfig({
  input: 'src/index.ts',
  output: [
    {
      file: packageJson.main,
      format: 'cjs',
      sourcemap: false,
      name: packageJson.name,
    },
    {
      file: packageJson.module,
      format: 'es',
      sourcemap: false,
      name: packageJson.name,
    },
  ],
  plugins: [
...
    url({
      fileName: '[name][extname]',
      include: includePaths,
      limit: 0,
    }),
  ],
});

You can see more detailed information my repo

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

79194961

Date: 2024-11-16 10:39:50
Score: 3
Natty:
Report link

You may need to add a Appdelegate.swift file if you want to switch your project from SwiftUI to UIKit. You need to create a new file named AppDelegate.swift which conforms to UIResponder, UIApplicationDelegate. Like: @main class AppDelegate: UIResponder, UIApplicationDelegate{ var window:UIWindow? // your code }

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @main
  • Low reputation (1):
Posted by: Talha Asif

79194959

Date: 2024-11-16 10:38:50
Score: 3
Natty:
Report link

Use like this fabric.Image.fromURL(e.target.result).then( function(img) {

}

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

79194957

Date: 2024-11-16 10:38:50
Score: 0.5
Natty:
Report link

Some slowness can be expected as Xcode attaches extra processes to your app/device for debugging, though here's a couple things to try.

  1. Release/debug build configuration

Try setting your build config from the Product menu > Option+click Run and set the build configuration to Release and see if that helps.

  1. Instruments

Instruments is a developer tool a part of Xcode that lets you test your app for memory leaks etc. You access it from the Xcode menu > Open Developer Tools > Instruments. It's probably beyond the scope of this answer but check out this Hacking With Swift article https://www.hackingwithswift.com/read/30/3/what-can-instruments-tell-us

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

79194956

Date: 2024-11-16 10:38:50
Score: 3
Natty:
Report link

Exact same issue happened to me. Updated expo go on IOS, updated expo sdk to 52, but in my case app crashes immediately after splash screen

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

79194953

Date: 2024-11-16 10:37:49
Score: 2
Natty:
Report link

I'm jumping for joy))) here is a working config that gives what I need!

const initialOptions = {
  "client-id": clientId,
  "disable-funding": "credit,card",
  "enable-funding": "blik,p24",
  intent: "capture",
  currency: "PLN",
  locale: "pl_PL",
};
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bogdan Kozhoma

79194939

Date: 2024-11-16 10:30:48
Score: 0.5
Natty:
Report link

I was fiddling around this recently and came up with this piece of solution, although I'm still working on a way to make these persist (maybe with a daemon of sorts?).

Google Chrome and friends and forks have this file called "Local State." I have no idea what exactly that file is responsible for as a whole, knowing there seems to be some sensitive data in there as well, but this block particularly got my interest;

{
  browser: {
    "enabled_labs_experiments": [
      "enable-parallel-downloading@1",
      "ozone-platform-hint@1",
      "wayland-text-input-v3@1"
    ],
    "first_run_finished": true,
    "last_whats_new_version": 131
  }
}

The .browser.enabled_labs_experiments is the path you're looking for here. You can set the flags and their values according to the chrome://flags page.

For example, in the block above, the following flags are set respectively;

Keep in mind that this is an array variable. For example, if you want to replicate the flags I have enabled here on Linux using jq, (assuming your profile is stored in $HOME/.config/google-chrome);

jq '.browser.enabled_labs_experiments = [ "enable-parallel-downloading@1", "ozone-platform-hint@1", "wayland-text-input-v3@1" ]' $HOME/.config/google-chrome/Local\ State > $HOME/.config/google-chrome/localstate.new
mv $HOME/.config/google-chrome/localstate.new $HOME/.config/google-chrome/Local\ State

The new "Local State" file will look drastically different than the original one you had before you launch Chrome. That's normal since it's a JSON file and jq prettifies its output for better human readability. Once you launch Chrome, your new flags will be picked up and the "Local State" file will be modified by Chrome to be in the same format as before.

Other pieces here include;

Side note: I'm not a Google employee but a computer engineering student who fiddles around Linux and similar a lot.

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

79194937

Date: 2024-11-16 10:29:47
Score: 4.5
Natty:
Report link

Has anyone succeeded in obtaining a refresh token using Android .NET (i.e. former Xamarin)?

Asking for offline access and thereby getting into 'HasResolution == true' will inevitable fail.

Passing an IntentSenderRequest to ActivityResultLauncher.Launch() is failing with an error message: 'cannot cast IntentSenderRequest to Intent'

I almost about to give up on this and continue using the deprecated GoogleSignInClient API.

Please help!

Reasons:
  • RegEx Blacklisted phrase (3): Please help
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Thomas

79194931

Date: 2024-11-16 10:24:46
Score: 2
Natty:
Report link

if you are using IJ simple select the maven option on the right bar then use the refresh arrows, this will be solved . it worked perfectly on my side

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Deovolente Mtavangu

79194920

Date: 2024-11-16 10:17:43
Score: 14 🚩
Natty:
Report link

I have the same issue. Did you fix it?

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (3): Did you fix it
  • RegEx Blacklisted phrase (1.5): fix it?
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ahmed_mahmoud_aly

79194918

Date: 2024-11-16 10:16:40
Score: 7 🚩
Natty:
Report link

On which website did you find the animals API? I clicked the link https://freetestapi.com/api/v1/animals? in Chrome browser, and there was an error...

Reasons:
  • RegEx Blacklisted phrase (3): did you find the
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aman KUmar

79194908

Date: 2024-11-16 10:12:36
Score: 6 🚩
Natty:
Report link

Can we implement the same using expo-web-browser?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can we
  • Low reputation (1):
Posted by: Muninder Kaur

79194906

Date: 2024-11-16 10:11:36
Score: 1.5
Natty:
Report link

I got the same error and noticed that I added __() translate function in a config file called menu.php.

Laravel was not showing this is as issue until I cleared the cache. So, I went to the error line and commented the exception code and it shows the that is trying to some something with translate class.

So, I removed the translate function and it fixed the issue.

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

79194905

Date: 2024-11-16 10:10:35
Score: 0.5
Natty:
Report link

Could be a scope problem here. The 'this' can be bind, but I think when you try it with an arrow function it can resolve the issue.

webservice_returnResult('api/sample/GetById', Id).done((result) => {
    Name = result.Name;
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: arvie

79194904

Date: 2024-11-16 10:10:35
Score: 1.5
Natty:
Report link

A green screen is a background used in video production that is replaced with other images or videos using chroma keying. The green color is removed, allowing for digital backgrounds to be inserted. It's commonly used in movies, TV, and live streaming. Green is preferred because it doesn’t match human skin tones, making it easier to separate the subject from the background. Read nmore..!

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

79194898

Date: 2024-11-16 10:06:34
Score: 0.5
Natty:
Report link

Sending Email on Form Submit Using MailApp

I tried your code modified and added a solution, I created an Installable Trigger event on which on every form submit it will send the attachment along with the body content.

Code.gs on Spreadsheet

function onFormSubmit(e) {
  var responses = e.values;

  // Email subject file and body
  var email = responses[1]; // Assuming the email is on the first response
  var fileItem = responses[2]; // Assuming the file is the second response
  var subject = "New File Uploaded";
  var body = "A new file has been xuploaded.\n\n";

  if (fileItem) {
    body += responses
    MailApp.sendEmail(email, subject, body);
    Logger.log("File sent successfully!");
  }
}

Sample Output:

Sample Output

Sample Form:

Sample form

How to Install a Trigger Event:

In your form click the View in Sheets.

Sample 3

Click Extension > Apps Script.

Appscript

Click on Triggers.

Sample 5

New Trigger then add the function to change the event type to On form Submit.

Trigger Event

References:

Installable Triggers

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

79194889

Date: 2024-11-16 09:58:32
Score: 1.5
Natty:
Report link

Still 2024 and select multiple is still not working. I am using Blazor and .Net core 8. I had to make one from scratch and I share it for anyone who has the same problem. This is a very basic design, so you can modify to suit your needs.

<div class="dropdown">
    <button class="dropdown-toggle mr-4" data-toggle="dropdown" type="button" @onclick="() => show = !show "
    aria-haspopup="true" aria-expanded="false">
        @Tip
    </button>
    @if (ListLabels != null){
        <div class="dropdown-menu @(show? "show":"")">
            <div class="form-group row">
                @for (int i = 0; i < ListLabels.Length; i++){
                    <div class="@GetCol(NumCols)">
                        <label class="form-check-label">
                            <input class="form-check-input"
                            type="checkbox"
                            checked="@list_values[i]"
                            @bind-value="list_values[i]">
                            @ListLabels[i]
                        </label>
                    </div>
                }
            </div>
        </div>
    }
</div>

@code 
{
    [Parameter]
    public string Tip { get; set; } = string.Empty;

    [Parameter]
    public int NumCols { get; set; } = 1;

    [Parameter]
    public string[] ListLabels { get; set; }

    bool[] list_values = null;
    [Parameter]
    public bool[] ListValues
    {
        get => list_values;
        set
        {
            list_values = value;
        }
    }

    bool show = false;

    string GetCol(int value)
    {
        switch (value){
            case 1: return "col-12";
            case 2: return "col-6";
            case 3: return "col-4";
            case 4: return "col-3";
            case 6: return "col-2";
            case 12: return "col-1";
            default: return "col-12";
        }
    }

    protected override void OnParametersSet()
    {
        if (ListLabels != null){
            if (list_values == null || list_values.Length != ListLabels.Length){
                list_values = new bool[ListLabels.Length];
            }
        }
    }
}

To use it is very simple

<InputMultiSelector ListLabels="list_labels" ListValues="list_checks" Tip="Choose your pizza" NumCols="3"/>
@code 
{
    bool[] list_checks = new bool[6] { false, true, true, false, false, true };
    string[] list_labels = new string[6] { "cheese", "tomatoes", "mozarella", "mushrooms", "pepperoni", "onions" };
}
Reasons:
  • Blacklisted phrase (2): still not working
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mario

79194882

Date: 2024-11-16 09:54:32
Score: 1.5
Natty:
Report link

Try this tool https://anym3u8player.com/yt/

  1. Go to https://anym3u8player.com/yt/. 2 Drop your YouTube livestream URL into the box. 3 Go to “Fetch hlsManifestUrl” button a click. 4 Your M3U8 link appears, ready for action.
Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mark Ikinya

79194877

Date: 2024-11-16 09:49:31
Score: 2
Natty:
Report link

I had the same problem with signing and just didn't realise that you do not only have to deactivate the options for iCloud and Push Notifications under Signing & Capabilities but rather delete them by clicking the trash right next to them. Took me way too long to figure this out.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Julian

79194873

Date: 2024-11-16 09:47:30
Score: 4
Natty:
Report link

as Simon Mourier Commented the solution was to add <UseWPF>true</UseWPF> to .csproj project file

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
    <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
    <UseWPF>true</UseWPF>

Was related to How can I reference WindowsBase in .Net5?

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Eliy Arlev

79194868

Date: 2024-11-16 09:43:29
Score: 1.5
Natty:
Report link

Had flickering when animating scale in Firefox, do not know how, but adding z: 1 fixed it

animate={{
  z: 1,
  scale: 1.35,
}}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sayid

79194866

Date: 2024-11-16 09:43:29
Score: 3
Natty:
Report link

if you use setting up webpack from scratch - npx storybook@latest add @storybook/addon-webpack5-compiler-babel or npx storybook@latest add @storybook/addon-webpack5-compiler-swc

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

79194853

Date: 2024-11-16 09:35:24
Score: 6 🚩
Natty:
Report link

can you put the anchor through a URL shortener?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): can you
  • Low reputation (1):
Posted by: Snow

79194847

Date: 2024-11-16 09:33:24
Score: 2.5
Natty:
Report link

System.setProperty("javax.net.ssl.trustStore", "C:\Program Files\Java\jdk-18.0.2.1\lib\security\cacerts"); System.setProperty("javax.net.ssl.trustStorePassword", "changeit"); i added these lines in my method it is now working fine

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

79194845

Date: 2024-11-16 09:31:23
Score: 2
Natty:
Report link

To replace domain-to-IP mapping without using etc/hosts in Windows, you can:

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: mehmet t. akalin

79194828

Date: 2024-11-16 09:16:18
Score: 10 🚩
Natty:
Report link

Have you found a solution? I have the same problem.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (2.5): Have you found a solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Thomas Pienkny

79194816

Date: 2024-11-16 09:07:15
Score: 3
Natty:
Report link

Update your Expo configuration from "output": "static" to "output": "single" in app.json file. Then start the development server again.(npx expo start)

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

79194812

Date: 2024-11-16 09:05:15
Score: 2
Natty:
Report link

Old question, but in case anyone is wondering onAnimationFinish only fires when loop is specifically set to false with loop={false}.

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

79194807

Date: 2024-11-16 09:03:14
Score: 2.5
Natty:
Report link

I suggest closing the pool at the very end of the provided sample. The CloseThreadpoolCleanupGroupMembers function waits for all the cleanup group members to terminate before releasing them. If you close the pool beforehand, as described, the callback function may never be invoked.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Varga Zoltán

79194804

Date: 2024-11-16 09:02:14
Score: 3
Natty:
Report link

This can be used with navigation.getParent to refer to this navigator in a child navigator.

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

79194799

Date: 2024-11-16 09:00:13
Score: 1.5
Natty:
Report link

Use javascript, `

let message = document.querySelector(".message");
if(message.innerText.length < 75){
    message.style.padding = "8px 75px 8px 8px";
}
else{
    message.style.padding = "8px 8px 8px 8px"
}

`

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

79194796

Date: 2024-11-16 08:57:12
Score: 4
Natty:
Report link

you have to use @SpringBootTest annotation in your test class. more infos see here https://spring.io/guides/gs/testing-web

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @SpringBootTest
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: sge

79194792

Date: 2024-11-16 08:54:12
Score: 1
Natty:
Report link

load the dict as a variable "data" then extract the values for the key "values"

iterate over the resulting list to get each dict and getthe value for the key "token"

values = data["values"]

for item in values:
    print(item["token"])

which provides:

35013
35025
35012
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Codingeologist

79194790

Date: 2024-11-16 08:54:12
Score: 2
Natty:
Report link

The error occurs due to mismatched or outdated Firebase dependencies. To fix this issue, run the following command to upgrade all dependencies, including Firebase packages, to their latest major versions:

flutter pub upgrade --major-versions

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

79194784

Date: 2024-11-16 08:50:11
Score: 2
Natty:
Report link

Error message you are seeing indicates that Jupyter Notebook is unable to write to a specific file due to a "Permission Denied" error. This can happen for a few reasons, such as permission settings on your system or potential conflicts with other processes. Make sure you have appropriate permissions to write to the directory C:\Users\48608\AppData\Roaming\jupyter\runtime

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: mehmet t. akalin

79194776

Date: 2024-11-16 08:43:10
Score: 1
Natty:
Report link

I ran into this problem too with Mapbox (max 25 waypoints).

I was implemented an algorithm which is responsible for pumping waypoints into navigation engine in periodic manner like a moving snake.

It works mostly, but really hard to track and maintain which waypoints are in the "completed" or in the "remaining" set of waypoints. Since my users can deviate from planned road.

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

79194774

Date: 2024-11-16 08:42:07
Score: 9 🚩
Natty:
Report link

@Harald K, Is there any way to configure the listener in OSGI ? we have developed plugins using osgi and are facing the same issue as above.

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Contains question mark (0.5):
  • User mentioned (1): @Harald
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: architect

79194773

Date: 2024-11-16 08:42:07
Score: 0.5
Natty:
Report link

I'm assuming that "bookmarking" a post is not a problem for you. The underlying question is how to structure so that you can show the bookmarked activities for a user?

Regarding how to "bookmark" a post, same as the recommendation from @Robot-43, you can add it as a reaction to the post.

Regarding how to structure so that you can have a page that lists all the bookmarked posts, here is my suggestion:

You can get all reactions of a userId and filter it by kind https://getstream.io/activity-feeds/docs/dotnet-csharp/reactions_introduction/#retrieving-reactions

You can read reactions and filter them based on their user_id or activity_id values. Further filtering can be done with the kind parameter (e.g. retrieve all likes by one user, retrieve all comments for one activity, etc.).

Request an API to get all the reactions filtering by the user's ID, and the "bookmark" reaction kind, now you get a list of activityIds with that reaction.

Next make a request to the batch activity get API, and send the list of activityIds in the request. https://getstream.io/activity-feeds/docs/dotnet-csharp/add_many_activities/#batch-get-activities-by-id

You can also find the batch enriched activity get in the source code probably, even if it's not documented in the website (if enriched activities is what you are using)

And then, you'll have your page :)

in batch activities get, you can send 100 activityIds at a time.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Robot-43
  • Low reputation (0.5):
Posted by: Sina Sarshar Pour

79194726

Date: 2024-11-16 08:14:01
Score: 2
Natty:
Report link

I know it might be late, but I hope my answer helps someone.

Check if you are using https instead of http?

In my case replacing http with https helped solving the error!

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

79194719

Date: 2024-11-16 08:06:59
Score: 2
Natty:
Report link

I'm also facing this issue. the 'messages' webhook doesn't work at all. this has worked in the past but my app was not active for a few months and now it stopped working. I'm trying to understand if I now need the whatsapp_business_messaging permission for this. It's unclear if this is a Meta bug or a change in policy

Reasons:
  • Blacklisted phrase (1): also facing this
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Gabi Mor

79194710

Date: 2024-11-16 07:56:57
Score: 1
Natty:
Report link

try to execute the application with sudo -E applicationName this command will keep the current environment variables associated with graphics to run a Gui Application in linux desktop

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

79194697

Date: 2024-11-16 07:42:55
Score: 2.5
Natty:
Report link

implementation ("net.minecraftforge:mergetool:0.2.3.3") { force = true }has something error implementation fg.deobf("net.minecraftforge:mergetool:0.2.3.3:forge") { force = true } is true

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

79194688

Date: 2024-11-16 07:37:54
Score: 2
Natty:
Report link

output of pylance - python extension

First I meet an error with pylance can't start because vscode version required 1.91.0 by my only 1.90.0. So I update my vscode version to the latest 1.95.3 and it work as expected.

Please make sure you choose pylance - microsoft as language server

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

79194687

Date: 2024-11-16 07:36:53
Score: 4
Natty:
Report link

The same problem... And it’s not clear how to solve it. There are no more options in the documentation

Reasons:
  • Blacklisted phrase (1): how to solve
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: StAlKeRxXl

79194683

Date: 2024-11-16 07:33:52
Score: 4.5
Natty:
Report link

I had a similar problem. Ubuntu system, neovim of v0.4 I followed this article to update my neovim

https://medium.com/@leonardormlins/easiest-way-to-update-neovim-on-ubuntu-a283c66d5322

This upgraded my neovim to v0.7 and my init.lua was sourced.

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Pradeep Rajvanshi

79194676

Date: 2024-11-16 07:27:51
Score: 0.5
Natty:
Report link

I had the same problem as you, what has helped me is not running the pub upgrade command on the console. I go to the flutter packages official (pub.dev), searched the auth and its related packages and installed them by adding their latest version under dependencies in pub.yaml file.

firebase_auth: ^5.3.3 firebase_core: ^3.8.0 firebase_storage: ^12.3.6 cloud_firestore: ^5.5.0

I hope, this would help at you end.

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

79194671

Date: 2024-11-16 07:22:50
Score: 3.5
Natty:
Report link

Simply copy and paste using 'Values and Source Formatting (E) option.'

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

79194658

Date: 2024-11-16 07:14:48
Score: 2
Natty:
Report link

1 - Check disk space. Most of the time is caused for lower disk space. Clean up logs and free space.

2 - Restart the Mysql server (after cleaning space)

2 - downgrade your php version to 7.4

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

79194656

Date: 2024-11-16 07:11:47
Score: 1
Natty:
Report link

iam using base image as azul/prime:17 ill get error

configure: error: You should retry --with-os-type=SUBDIR The command '/bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr wget ca-certificates ; ddist() { local f="$1"; shift; local distFile="$1"; shift; local mvnFile="${1:-}"; local success=; local distUrl=; for distUrl in "https://www.apache.org/dyn/closer.cgi?action=download&filename=$distFile" "https://www-us.apache.org/dist/$distFile" "https://www.apache.org/dist/$distFile" "https://archive.apache.org/dist/$distFile" ${mvnFile:+"https://repo1.maven.org/maven2/org/apache/tomcat/tomcat/$mvnFile"} ; do if wget -O "$f" "$distUrl" && [ -s "$f" ]; then success=1; break; fi; done; [ -n "$success" ]; }; ddist 'tomcat.tar.gz' "tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/apache-tomcat-$TOMCAT_VERSION.tar.gz" "$TOMCAT_VERSION/tomcat-$TOMCAT_VERSION.tar.gz"; echo "$TOMCAT_SHA512 tomcat.tar.gz" | sha512sum --strict --check -; ddist 'tomcat.tar.gz.asc' "tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/apache-tomcat-$TOMCAT_VERSION.tar.gz.asc" "$TOMCAT_VERSION/tomcat-$TOMCAT_VERSION.tar.gz.asc"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify tomcat.tar.gz.asc tomcat.tar.gz; tar -xf tomcat.tar.gz --strip-components=1; rm bin/.bat; rm tomcat.tar.gz*; command -v gpgconf && gpgconf --kill all || :; rm -rf "$GNUPGHOME"; mv webapps webapps.dist; mkdir webapps; nativeBuildDir="$(mktemp -d)"; tar -xf bin/tomcat-native.tar.gz -C "$nativeBuildDir" --strip-components=1; apt-get install -y --no-install-recommends dpkg-dev gcc libapr1-dev libssl-dev make ; ( export CATALINA_HOME="$PWD"; cd "$nativeBuildDir/native"; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; aprConfig="$(command -v apr-1-config)"; ./configure --build="$gnuArch" --libdir="$TOMCAT_NATIVE_LIBDIR" --prefix="$CATALINA_HOME" --with-apr="$aprConfig" --with-java-home="$JAVA_HOME" --with-ssl=yes; make -j "$(nproc)"; make install; ); rm -rf "$nativeBuildDir"; rm bin/tomcat-native.tar.gz; apt-mark auto '.' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; find "$TOMCAT_NATIVE_LIBDIR" -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/; find ./bin/ -name '*.sh' -exec sed -ri 's|^#!/bin/sh$|#!/usr/bin/env bash|' '{}' +; chmod -R +rX .; chmod 777 logs temp work' returned a non-zero code: 1

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

79194651

Date: 2024-11-16 07:04:46
Score: 1.5
Natty:
Report link

I've added node-options="--openssl-legacy-provider" into the .npmrc file, which I got from comment.

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

79194647

Date: 2024-11-16 07:01:46
Score: 1.5
Natty:
Report link

Check if the Form is Actually Being Submitted

Add a name attribute to the submit button to make sure it gets submitted, even if the browser requires it.

{{ __('Submit') }}

Ensure the Form Method is Correct

Your form uses the correct POST method, but make sure the corresponding controller method (store) is set up to handle POST requests:

Route::post('/sales/store', [SalesController::class, 'store'])->name('sales.store');

Final Check:

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

79194640

Date: 2024-11-16 06:51:44
Score: 1
Natty:
Report link

add this before calling functions that consists of geocoder to ensure the specific constructor is intialized.

google.maps.importLibrary("geocoding").then(() => { 
    //Call your function here 
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aliff Aizuddin