79172454

Date: 2024-11-09 09:34:07
Score: 1.5
Natty:
Report link

Try to change the ApplicationPool Identity used to LocalSystem

I hope this helps.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Kenlly Acosta

79172453

Date: 2024-11-09 09:34:07
Score: 3.5
Natty:
Report link

Guys I'm running serverless twilio and i've placed IDENTITY in my .env file, then restarted npm

npm restart

I'm still getting the same error:

twilio token:chat --chat-service-sid ISxxxxxx 
--profile pocket-postgrad 
--identity $IDENTITY -l debug

» twilio-cli encountered an unexpected error. To report this issue, execute the command with the "-l debug" flag, then copy the output to a new issue here: "https://github.com/twilio-labs/plugin-token/issues"
[DEBUG] identity is required to be specified in options
[DEBUG] Error: identity is required to be specified in options

I've been at this a while. I have to say, tbf, i'm not a huge fan of the Twilio docs.

Reasons:
  • RegEx Blacklisted phrase (1): I'm still getting the same error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): getting the same error
  • Low reputation (1):
Posted by: Dara B dBee

79172446

Date: 2024-11-09 09:30:06
Score: 5.5
Natty:
Report link
  1. Is it possible for an AWS Athena database to exist in one AWS account and its data files to live on another AWS Account?

A). Yes it is possible

  1. How do you know where an AWS Athena table data file lives? And does an S3 output bucket exist?

A. Go to the AWS Glue data catalog, go to a specific Table, and check "Location", which provides information on a file location.

  1. Is there a better approach to finding this problem's root cause other than the trial and error approach?

A. Run the query directly in the Athena console to check for errors. This step can often reveal if permissions or configurations are missing.

The other way is to check CloudTrail Logs and enable Verbose logging in AWS Wrangler to check the issues.

Please let me know any other information.

Reasons:
  • Blacklisted phrase (1): How do you
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is it
  • Low reputation (1):
Posted by: Srinimf

79172445

Date: 2024-11-09 09:29:06
Score: 3.5
Natty:
Report link

the crappy management of powershell profile with onedrive is the reason why I abandoned powershell profile and onedrive altogether, these caused so much waste of time :-O

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

79172437

Date: 2024-11-09 09:20:02
Score: 9.5 🚩
Natty: 5.5
Report link

I’m also encountering this error. Have you resolved it? If so, could you show me how?

Reasons:
  • RegEx Blacklisted phrase (2.5): could you show me how
  • RegEx Blacklisted phrase (1.5): resolved it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Huy Kỳ Hà

79172431

Date: 2024-11-09 09:17:01
Score: 1
Natty:
Report link

You can make discount code using Shopify API like

  1. Set Up a 10% Discount for Orders Over $50
  2. Product-Specific Discounts
  3. Customer-Based Discounts

Step 1: Set Up a New Price Rule


    POST /admin/api/2023-04/price_rules.json
    {
      "price_rule": {
        "title": "15% Off on Orders Over $100",
        "target_type": "line_item",
        "target_selection": "all",
        "allocation_method": "across",
        "value_type": "percentage",
        "value": "-15.0",
        "customer_selection": "all",
        "starts_at": "2024-11-01T00:00:00Z",
        "prerequisite_subtotal_range": {
          "greater_than_or_equal_to": "100.00"
        }
      }
    }

Step 2:

Generate a Discount Code


    POST /admin/api/2023-04/price_rules/{price_rule_id}/discount_codes.json
    {
      "discount_code": {
        "code": "SAVE15"
      }
    }

you can make discount on other conditions as well as described here

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

79172422

Date: 2024-11-09 09:12:00
Score: 3
Natty:
Report link

just check it was up-to-date or else update the dependances and make sure the firebase on production not on the testing

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

79172412

Date: 2024-11-09 09:02:57
Score: 1.5
Natty:
Report link

This answer - text.splitWithDelimiters("\\d+\\.\\d{2} (DR|CR)",0) by @user85421 does the work, although I notice a couple of empty entries in the array, but that can be removed.

The suggestion by @dani-vta also works, but the only issue for my need is that the word (FEES) is not there for other lines, hence for my specific need I need to work with pattern matching with only the number, decimal & CR / DR.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • User mentioned (1): @user85421
  • User mentioned (0): @dani-vta
  • Self-answer (0.5):
Posted by: iCoder

79172410

Date: 2024-11-09 09:00:56
Score: 0.5
Natty:
Report link

Finally, I use this launch template:

#!/bin/bash
# Install AWS CLI v2
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
rm -rf awscliv2.zip aws

# Define the volume ID
VOLUME_ID=vol-09a5e06d571ee3f79

# Request a token for IMDSv2
TOKEN=$(curl -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 21600" -s "http://169.254.169.254/latest/api/token")

# Retrieve the instance ID using the token
INSTANCE_ID=$(curl -s -H "X-aws-ec2-metadata-token: $TOKEN" "http://169.254.169.254/latest/meta-data/instance-id")

if [ -z "$INSTANCE_ID" ]; then
    echo "Failed to retrieve instance ID. Exiting."
    exit 1
fi

echo "Instance ID: $INSTANCE_ID"

# Attempt to attach the volume
aws ec2 attach-volume --volume-id $VOLUME_ID --instance-id $INSTANCE_ID --device /dev/sdf

# Create mount directory
sudo mkdir -p /mnt/mydata

# Wait for the device to be recognized (important for auto-mounting)
sleep 10

# Mount the volume
sudo mount /dev/nvme1n1p1 /mnt/mydata

Thank you very much.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ปลาวาฬทราย

79172407

Date: 2024-11-09 08:58:56
Score: 0.5
Natty:
Report link

ox.plot.plot_footprints plots polygons and multipolygons whereas osm restaurant amenities are points. When one plots the latter with a straight geopandas.plot() all seems to work fine -- see working example below

    fig, ax = plt.subplots(figsize=(10,10),dpi=120)
    place = 'centrum, Rotterdam,Netherlands'

    amenity = ox.features.features_from_place(place, tags={'amenity':'restaurant'})
    roads = ox.graph.graph_from_address(place)
    buildings = ox.features_from_place(place, tags = {"building": True})


    ox.plot.plot_footprints(buildings, ax=ax,color='red',edge_color='green',edge_linewidth=1,show=False, close=False) 
    ox.plot.plot_graph(roads, ax=ax, node_color='#696969', node_size = 5, edge_color='#A9A9A9', show=False, close=False)  
    gdf.plot(amenity,ax=ax,color='blue')

    plt.show()
``
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: anon

79172376

Date: 2024-11-09 08:28:50
Score: 0.5
Natty:
Report link

Using @Transactional for multiple database operations as single transaction is of course doable but not so much for the external API calls. You would have to implement some custom logic for that - there would have to be endpoints to undo your last actions and you would have to implement calling them manually in try-catch block. For example, if the external API call creates an item then there would also have to be an endpoint to delete an item and so on.

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

79172375

Date: 2024-11-09 08:27:50
Score: 1
Natty:
Report link
  1. For security, scalability, and CDN (to distribute files quickly and efficiently).
  2. Use a token (e.g., JWT) passed in the URL or header to authenticate the download request without needing a database.
  3. Yes potientally, but it actually reduces bandwidth load on the main server by serving the files from a separate server or CDN
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: krystallix

79172373

Date: 2024-11-09 08:26:49
Score: 1.5
Natty:
Report link

To anyone still hitting this problem, it appears to be related to a combination of certain versions of VM, OS and Chrome : https://github.com/openlayers/openlayers/issues/12934

In a nutshell, under these conditions, the browser sends erroneous events where the mousedown event is attributed to the mouse, but the mouseup is attributed to some pen device. As a result, openlayers does not release the drag behaviour.

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

79172362

Date: 2024-11-09 08:15:48
Score: 3
Natty:
Report link

I updated Visual Studio 2018 to Visual Studio 2022 and the problem was solved. enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: ashkufaraz

79172350

Date: 2024-11-09 08:11:46
Score: 3
Natty:
Report link

try to change the columns names when you create tables avoiding keywords like username like i did 😅

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

79172333

Date: 2024-11-09 07:57:44
Score: 3.5
Natty:
Report link

I encounter the same issue despite follow the stucture suggested as below:

https://graph.microsoft.com/v1.0/sites/{*site id removed for privacy*}/drive/root:/testfile.docx

I still get a correct response with:

https://graph.microsoft.com/v1.0/sites/{*site id removed for privacy*}/drives

Please advise.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please advise
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user28208759

79172324

Date: 2024-11-09 07:49:43
Score: 4
Natty:
Report link

It may be that A-Frame doesn't work with React out of the box? Mira esta respuesta:

https://stackoverflow.com/a/45443685/27857856

Let us know if it solves your problem.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mario Moreno Capón

79172287

Date: 2024-11-09 07:34:40
Score: 0.5
Natty:
Report link

Including mime.types and clearing cache on docker did the thing.

events{
    worker_connections 1024;
}
http{
    include /etc/nginx/mime.types;
    server {
        listen 80;
        
        root /usr/share/nginx/html;

        location / {
            try_files $uri $uri/ /index.html;  
        }

        location /api/ {
            proxy_pass http://localhost:3000;  
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
        }
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rivi

79172285

Date: 2024-11-09 07:32:37
Score: 6.5 🚩
Natty: 5
Report link

I have the same problem here. I'm using UHD 4.7.0.0 install from UHD installer, boost 1.8.6, Visual Studio 2019.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tuấn Nguyễn Anh

79172284

Date: 2024-11-09 07:32:37
Score: 0.5
Natty:
Report link

This is because, on your local server, PHP may be set up to provide a more verbose output, while on the live server, it is not.

Consider using print_r() or var_dump() to handle complex objects, as echo and print are not designed for that purpose.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Om Prakash Swami

79172279

Date: 2024-11-09 07:28:36
Score: 3.5
Natty:
Report link

I solve it removing proxy enviroment variables in cli/cmd.

You can do it in current session:

set HTTP_PROXY=

set HTTPS_PROXY=

or for permanet remove:

setx HTTP_PROXY ""

setx HTTP_PROXY ""

Regards,

Reasons:
  • Blacklisted phrase (1): Regards
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28208516

79172271

Date: 2024-11-09 07:24:33
Score: 7.5 🚩
Natty:
Report link

The copilot on Android Studio doesn't show the option of different models, like you can do in VS Code where you can choose even Claude 3.5 now.

In Android Studio it doesn't even show what model is answering us in chat. What I'm missing? Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Cesar Ribera

79172270

Date: 2024-11-09 07:24:33
Score: 1.5
Natty:
Report link

need help!

I tried to modify #c.NotebookApp.notebook_dir = '' to set my target path in D:/, but I couldn’t locate this line in the jupyter_notebook_config.py file.

I deleted the file and regenerated it using jupyter notebook --generate-config in the command prompt, but the line still doesn’t appear.

Additionally, I have Anaconda installed at the system level.

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

79172242

Date: 2024-11-09 06:49:26
Score: 0.5
Natty:
Report link

After a lot back and forth - as Spring 5 + Hibernate 6.6 work differently than Spring 6 and Hibernate 6 - I finally was able to set up a small proof-of-concept application. And unfortunately I have to say that the EntityGraph works there as expected, no need for fetch-joins. I can see in the SQL statements created that it correctly inserts a LEFT JOIN and also that I don't get a proxy object for Person.picture. So I assume it is simply a bug in that latest Hibernate 5 version - which probably also will never get fixed. 😩

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

79172240

Date: 2024-11-09 06:48:25
Score: 0.5
Natty:
Report link

when you use infer with a constraint that is a union type containing multi character strings TypeScript seems to prioritize character by character matching rather than trying to match the complete union members

here is how we can do workaround by checking if the string starts with any of the union members :)

type StartsWith<T extends string, U extends string> = T extends `${infer P}${string}`
  ? P extends U
    ? P
    : never
  : never;


type Z = GetPrefix<'[[Text', '[[' | '<<'>; 
// "[["
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): when you use in
  • Low reputation (0.5):
Posted by: Milan Sachani

79172234

Date: 2024-11-09 06:40:22
Score: 6.5 🚩
Natty:
Report link

I have the same problem, I think I will remove flutter cli from my project and configure firebase manually

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Muhammet Emin Üstün

79172231

Date: 2024-11-09 06:36:21
Score: 1
Natty:
Report link

enter image description here

Here is a clear mention that these are alternatives, but neither were created nor maintained by the NVM team.
You have installed any of them
->nvm-windows
-nodist
-nvs
So install the correct application from NVM from here.

https://github.com/nvm-sh/nvm#installing-and-updating

This is the geniue try installation and you will be solved. Thankyou

Reasons:
  • Blacklisted phrase (1): Thankyou
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: krishnA tiwari

79172230

Date: 2024-11-09 06:35:21
Score: 2.5
Natty:
Report link

React Hook Form internally use event.preventDefault. So, adding e.preventDefault won't work.

React Hook Form Source Codes

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

79172227

Date: 2024-11-09 06:32:20
Score: 1
Natty:
Report link
  1. Download your python version from https://www.python.org/downloads/ Open a terminal tar -xzf python3.12.7.tgz

  2. cd Python-3.12.7

  3. Install dependencies sudo apt update sudo apt install build-essential libssl-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git

  4. Run the configuration script ./configure --enable-optimizations --prefix=/usr

  5. make -j $(nproc)

    sudo make altinstall

  6. Verify the installation Check that Python 3.12.7 is installed correctly: /usr/bin/python3.12 --version

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

79172220

Date: 2024-11-09 06:27:19
Score: 3.5
Natty:
Report link

change DPI for application properties desktop

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

79172215

Date: 2024-11-09 06:24:18
Score: 1
Natty:
Report link

It looks like you’re getting a warning about leftover semaphore objects, which can happen if processes aren't properly cleaned up. Try making sure all subprocesses are closed properly after use. You could also suppress the warning with python -W ignore, but that’s just a temporary fix. Check the GitHub repo for any troubleshooting steps or missing dependencies too. Hopefully, that helps!

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

79172213

Date: 2024-11-09 06:19:17
Score: 1.5
Natty:
Report link
Delete node_modules
yarn cache clean
yarn install 
cd ios
pod install --repo-update
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: samuel luswata

79172209

Date: 2024-11-09 06:16:17
Score: 2.5
Natty:
Report link

Solved it by modifying the CreateView this way:

def get_initial(self):
    member = self.kwargs['pk']    # << Here
    return {
        'member': member,
        }

With help from Mr. Roseman

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

79172207

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

There was no way of doing this running a conda custom env and a .py script from a crontab job could be done so i worked out a workaround that does a semi-automated job not perfect but works unlike the many suggestions people have tried to provide that said so.

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

79172204

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

in 2025

this is a simple package from airbnb to do that easily click outside pkg

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: mercury

79172199

Date: 2024-11-09 06:04:14
Score: 2
Natty:
Report link

I think instead of using == use === should resolve the value. If it does not work check the type of the environment variable and use appropriate conditions.

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

79172192

Date: 2024-11-09 05:57:13
Score: 1
Natty:
Report link

Unfortunately, this information isn’t included in the documentation. In test mode, OTP verification isn’t actually used. You can set the IP address to 0.0.0.0 to allow all IPs in test mode.

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

79172191

Date: 2024-11-09 05:56:12
Score: 2
Natty:
Report link
        #include <iostream>

        int main()
        {

            int x = 1;
            int number;
            int total = 0;

            while(x <= 5){
                std::cout << "Please enter a number " << std::endl ;
                std::cin >> number;
                total = total + number;
                x++;
            }

            std::cout << "Your total is " << total << std::endl;

            return 0;
        }

The part that I was forgetting was the enter a number please.

Reasons:
  • RegEx Blacklisted phrase (1): I was forgetting was the enter a number please
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: peabrain

79172190

Date: 2024-11-09 05:56:12
Score: 0.5
Natty:
Report link

Did you tried this:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
        <includes>
            <include>**/main/package/*.java</include>
        </includes>
        <excludes>
            <exclude>**/my/package/*.java</exclude>
        </excludes>
    </configuration>
</plugin>
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: Ardeshir Ayati

79172189

Date: 2024-11-09 05:54:12
Score: 1.5
Natty:
Report link

In the first response of 20, the JSON response should have: "_links":{"next":{"href": "[URL]".

This URL will return the next 20 responses (from 21 to 40)

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

79172177

Date: 2024-11-09 05:44:10
Score: 3.5
Natty:
Report link

Despite adding this access, the error still occurs!

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

79172160

Date: 2024-11-09 05:25:06
Score: 2.5
Natty:
Report link

When you attempt to join OtherEntity with the transient other field in MarkerEntity, JPA throws an error because it doesn't know how to handle this transient association Instead of using a @Transient field, you can define a relationship between MarkerEntity and OtherEntity using @ManyToOne. This allows JPA to handle the join naturally without needing a transient field.

@Entity @Table(name = "OTHER") public class OtherEntity implements Serializable { @Id private Long id; @Column(name = "code") private String code; // Add a default constructor for JPA public OtherEntity() {} public OtherEntity(Long id, String code) { this.id = id; this.code = code; } // Getters and Setters }

@Entity @Table(name = "MARKER") public class MarkerEntity implements Serializable { @Id private Long id; @Column(name = "OTHER_FIELD", insertable = false, updatable = false) private Long otherId; @ManyToOne @JoinColumn(name = "OTHER_FIELD", referencedColumnName = "id") private OtherEntity other; public MarkerEntity() {} public MarkerEntity(Long otherId, OtherEntity other) { this.otherId = otherId; this.other = other; } // Getters and Setters } With this relationship set up, your query can be simplified as follows

@Query("SELECT new MarkerEntity(m.other.id, m.other) FROM MarkerEntity m WHERE enter code herem.id = :id")? public List entities(@Param("id") Long id);

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Transient
  • User mentioned (0): @ManyToOne
  • User mentioned (0): @Entity
  • User mentioned (0): @Entity
  • User mentioned (0): @ManyToOne
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Bhavesh mahajan

79172157

Date: 2024-11-09 05:19:05
Score: 3
Natty:
Report link

if anyone hat this problem and did all the steps from build path. Just remove the module-info.java. Thats the problem

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: JUAN DIEGO DIAZ ACEVEDO

79172146

Date: 2024-11-09 05:05:03
Score: 1
Natty:
Report link

I solved this issue by setting the router to access point mode and disabling dhcp server mode. these settings were not available in the netis router so i had to use a tp-link router.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user2024

79172141

Date: 2024-11-09 04:59:02
Score: 2.5
Natty:
Report link
  1. Verify that SQL database authentication is enabled/allowed (the firewall is not blocking it) and that you have created a database login and user with the correct credentials.

  2. As @david-browne-microsoft said, if you intend to authenticate using a username and password, you need to remove trustServerCertificate.

  3. Also, if you go to the connection strings sections in the Azure Portal, you will find its connection string; this is also worth a shot

Reference:

Azure Connection Strings

SQL DB Login and User

Reasons:
  • No code block (0.5):
  • User mentioned (1): @david-browne-microsoft
  • Low reputation (1):
Posted by: chandanbsd

79172138

Date: 2024-11-09 04:58:02
Score: 1.5
Natty:
Report link

The issue here is that Gatsby doesn’t natively support TypeScript in local plugins. Gatsby expects plugin files like gatsby-node.js to be JavaScript, so it doesn't automatically handle .ts files in the plugins directory. However, you can solve this problem by compiling the TypeScript code to JavaScript before each Gatsby build or develop process manually or programmatically. package.json is where you specify root file for compiled plugin

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Bash Lord

79172136

Date: 2024-11-09 04:54:01
Score: 1.5
Natty:
Report link

For anyone that may come across this, as of 3.10 there is now the Py_IsNone() function which the docs state:

Test if an object is the None singleton, the same as x is None in Python.

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

79172126

Date: 2024-11-09 04:48:00
Score: 2
Natty:
Report link

can you do it?

Explanation of Changes Container Adjustments:

By using a div container rather than

, the HTML structure from Markdown (like bullet points or numbered lists) can be displayed correctly. Error Handling:

The try-catch block and network check if (!response.ok) help ensure robust error handling, displaying errors if the API call fails. Clearing Input and Disabling Submit Button:

After each successful query, the input field clears, and the submit button is disabled until new text is entered.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): can you
  • Low reputation (1):
Posted by: Zalfyan

79172124

Date: 2024-11-09 04:46:00
Score: 0.5
Natty:
Report link

This appears to be the under-documented long syntax.

In case others also like to have it more explicit (it's easy to miss that :z):

volumes:
  - source: my-app-media
    target: /app/media
    type: volume
    read_only: false
    bind:
      selinux: z

Reference.

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

79172122

Date: 2024-11-09 04:43:57
Score: 6 🚩
Natty: 5.5
Report link

@asimkon did you end up resolving this? I ran into the exact same problem.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @asimkon
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Sam S

79172115

Date: 2024-11-09 04:36:56
Score: 3
Natty:
Report link

Thanks for help, found the issue, it is due to the in window/mac file or folder name not case sensitive but in deployment it use Linux in which file name is case sensitive, i have changed file and folder name but it not tracked in git, we have to config git to get it tracked by using git config core.ignorecase false

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

79172111

Date: 2024-11-09 04:34:56
Score: 1.5
Natty:
Report link

Turns out, there is a way to trick the compiler into doing what I want

type StartsWith<T extends string, P extends string> =
    T extends `${P}${infer R}`
        ? T extends `${infer _P extends P}${R}`
            ? `Prefix: ${_P}, Rest: ${R}`
            : never
        : never;

type Starts = '[[' | '<<';

type Z = StartsWith<"[[Text", Starts>;
//   ^?type z = "Prefix: [[, Rest: Text"

type Y = StartsWith<"<<ABC", Starts>;
//   ^?type Y = "Prefix: <<, Rest: ABC"
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: thomasrea0113

79172098

Date: 2024-11-09 04:18:52
Score: 3.5
Natty:
Report link

Use AWS provider version 4.29.0 where the Support for ME-CENTRAL-1 is added you can checkout the release notes for 4.29.0

https://github.com/hashicorp/terraform-provider-aws/releases/tag/v4.29.0

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

79172095

Date: 2024-11-09 04:10:51
Score: 0.5
Natty:
Report link
#Requires AutoHotkey v2.0+ 
#SingleInstance Force

ar := [1, 2, 3]

i := 0
:*:ab:: {
  global i ; here
  Loop 3 {
    a := StrCompare(ar[i], "Hi")
    Send(a)
    i++
  }    
}

See https://www.autohotkey.com/docs/v2/Functions.htm#Locals

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

79172084

Date: 2024-11-09 03:57:48
Score: 1
Natty:
Report link

sorry u guys, i've just checked nextjs component docs again and see that Link of app router doesnt have locale props.

their docs makes me confused.

now the only way to change locale is use template string for the href like this:

href={`/${locale}${link}`}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Hao.Le

79172072

Date: 2024-11-09 03:47:46
Score: 0.5
Natty:
Report link

I am using MSSQL Server 2017 with a compatibility level of 140. What I am trying to say is, that I can manipulate JSON data inside it with ease.

From Comet1903's answer, I made some adjustments to his query to improve performance by avoiding comma-delimited values in relational databases (i.e., avoiding antipattern query) which is inspired by MatBailie's comment.

Here's my adjusted query:

SELECT  
    feature_data.user_id,
    feature_data.username,
    feature_data.email,
    feature_data.status,
    N'{"feature_data": [' + feature_data.feature_names + '"]}' feature_names
    --ADD HERE THE RECORDS THAT YOU DON'T WANT TO BE DUPLICATED ROWS, WHERE YOU NEED TO USE THE SAME APPROACH WITH feature_names
FROM(
SELECT 
    u.id AS user_id,
    u.username,
    u.email,
    u.status,
    STRING_AGG('"' + f.name, + '", ') feature_names
    --ADD HERE THE RECORDS THAT YOU DON'T WANT TO BE DUPLICATED ROWS, WHERE YOU NEED TO USE THE SAME APPROACH WITH feature_names
FROM @users u
LEFT JOIN @feature_user fu ON fu.user_id = u.id
LEFT JOIN @features f ON fu.feature_id = f.id
GROUP BY u.id, u.username, u.email, u.status) feature_data;

-- The below query is to check if the JSON data is valid, then 1 is equivalent to a valid format.
SELECT  
    ISJSON(N'{"feature_data": [' + feature_data.feature_names + '"]}') feature_names
    --ADD HERE THE RECORDS THAT YOU DON'T WANT TO BE DUPLICATED ROWS, WHERE YOU NEED TO USE THE SAME APPROACH WITH feature_names
FROM(
SELECT 
    STRING_AGG('"' + f.name, + '", ') feature_names
    --ADD HERE THE RECORDS THAT YOU DON'T WANT TO BE DUPLICATED ROWS, WHERE YOU NEED TO USE THE SAME APPROACH WITH feature_names
FROM @users u
LEFT JOIN @feature_user fu ON fu.user_id = u.id
LEFT JOIN @features f ON fu.feature_id = f.id
GROUP BY u.id, u.username, u.email, u.status) feature_data;

The output should be like this:

Output

I am embedding JSON data in relational databases, it is beneficial for me to handle the nested records in a single table and column.

Important Note:

JSON functions, first introduced in SQL Server 2016 (13.x), enable you to combine NoSQL and relational concepts in the same database. You can combine classic relational columns with columns that contain documents formatted as JSON text in the same table, parse and import JSON documents in relational structures, or format relational data to JSON text. To read more...

I am not familiar with the usage of Postgresql, so my answer is just a reference for your solution.

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DevQt_PH

79172068

Date: 2024-11-09 03:45:46
Score: 1.5
Natty:
Report link

To make it better, you can remove the use of ECS and use aws Batch instead, and aws batch will create an ECS in the background whenever it gets triggered and afterwards it will be automatically cleaned. Using AWS Batch can simplify your setup even further, especially if you're looking to reduce the operational overhead of managing ECS tasks. And you can configure it also to use spot instances. Configure AWS Batch to limit the max parallelism to 5 (or any desired number). And Jobs automatically scale up and down based on the queue size.

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

79172061

Date: 2024-11-09 03:36:44
Score: 0.5
Natty:
Report link

A faster version for Sequoia (which also determines the correct WiFi interface enX):

ipconfig getsummary "$(networksetup -listallhardwareports | awk '/Wi-Fi|AirPort/{getline; print $NF}')" | grep '  SSID : ' | awk -F ': ' '{print $2}'

Takes 46 ms vs. 3.8 s on my system.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: David P.

79172056

Date: 2024-11-09 03:32:42
Score: 2.5
Natty:
Report link

you have placed @trasactional on both handler class,so it will create a seperate transaction for both, so for example if exception occurs in teacherhandler then queries in teacherdao only will roll back and studenthandler trasaction will commmit successfully if it has completed without issue, to solve these(all queries will roll back if exception occur in either one), place @transaction on execute method in processor class and remove @transaction from studenthandler and teacherhandler class.so that both handler will be under single transaction.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @trasactional
  • User mentioned (0): @transaction
  • User mentioned (0): @transaction
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bhavesh mahajan

79172049

Date: 2024-11-09 03:24:41
Score: 0.5
Natty:
Report link

This SQLModel issue is still open. It hasn't be merged to the code base yet.

I recommend the following code:

select(Team).where(
            Team.heros == None,  # noqa E711 Comparison to `None` should be `cond is None`.
)
select(Team).where(
            Team.heros is None,  # This does not work as intended.
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mark Gerrior

79172046

Date: 2024-11-09 03:22:40
Score: 1.5
Natty:
Report link

Try adding useUTC: false to your mssql config options

const sqlConfig = {
  ....
options: {
  ...
  useUTC: false
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kenny Luong

79172040

Date: 2024-11-09 03:13:39
Score: 3
Natty:
Report link

Kubectl get pod pod-name -o yaml

will give you the output you need.

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

79172039

Date: 2024-11-09 03:13:39
Score: 1.5
Natty:
Report link

For Python 3.11, it's recommended to use PyTorch 2.1.0 and Torchtext 0.15.1. According to the official PyTorch documentation, these versions are fully compatible with Python 3.11 and should work smoothly together. You can find more details and confirm compatibility on the PyTorch installation page, where they provide a version selector tool. This tool allows you to select your Python version, operating system, and preferred compute platform, and it will show the compatible PyTorch and Torchtext versions along with installation instructions.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Christian Peña Granillo

79172036

Date: 2024-11-09 03:10:38
Score: 2
Natty:
Report link

Bro Use This, it may help 🤓🤓

collection_name.find({"tags": {"$all": ['tag1', 'tag2']}})

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

79172023

Date: 2024-11-09 02:55:35
Score: 3
Natty:
Report link

You start with "{", the paste the code, then end with "}".

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

79172015

Date: 2024-11-09 02:42:32
Score: 1.5
Natty:
Report link

The ETIMEDOUT error typically occurs when the connection to the AWS ElastiCache (Redis) cluster cannot be established within the specified timeout. Check the connectivity, security groups, make sure the host name is correct. Simple debug step: try to connect with cli command from the same security group, networking, and see wether you can connect or no.

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

79172014

Date: 2024-11-09 02:41:30
Score: 8.5 🚩
Natty: 4
Report link

@NinjaS

After running the script fix:

create file path to swirl lesson file

file_path <- file.edit(file.path(find.package("swirl"),"Courses","R_Programming","Logic","lesson.yaml"))

url of my edited lesson file

file_url <- "https://raw.githubusercontent.com/daniel-j-miller/swirl_courses/master/R_Programming/Logic/lesson.yaml"

download and save file

download.file(file_url, file_path)

I still get an error: Error in download.file(file_url, file_path) : invalid 'destfile' argument

Any suggestions?

Reasons:
  • RegEx Blacklisted phrase (2): Any suggestions?
  • RegEx Blacklisted phrase (1): I still get an error
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @NinjaS
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Michael Zee

79172005

Date: 2024-11-09 02:28:28
Score: 1
Natty:
Report link

Firefox Browser

  1. Open firefox browser.
  2. Type about:config in url textbox
  3. Search and enter the preference name as print.always_print_silent. Modify and set the boolean to true or enable it.
  4. Close and open again your firefox browser. If correct, this method will not enter into kiosk mode but it will skip print setting dialog box display and will print in one click. Use your ability as a website developer to print automatically by making a programming script.
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Mark Alvin

79171998

Date: 2024-11-09 02:22:27
Score: 1.5
Natty:
Report link

The type must be a subclass of GObject, so raw pointers or boxed structs don’t work.

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

79171996

Date: 2024-11-09 02:18:24
Score: 9 🚩
Natty: 5.5
Report link

I got the same problem and still not solve yet. Do you have any update about this?

Reasons:
  • Blacklisted phrase (1): I got the same problem
  • RegEx Blacklisted phrase (2.5): Do you have any
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pha HOEUN

79171995

Date: 2024-11-09 02:16:23
Score: 4.5
Natty:
Report link

I think this way is much faster than setting new value in a useStateenter image description here

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

79171994

Date: 2024-11-09 02:12:22
Score: 1.5
Natty:
Report link

I was able to update the wget command used by Yocto, with this line added to my local.conf.

FETCHCMD_wget = "/usr/bin/wget"

Yocto is now able to fetch the needed files.

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

79171988

Date: 2024-11-09 02:03:20
Score: 0.5
Natty:
Report link

try :

override fun show(manager: FragmentManager, tag: String?) {
    if (isAdded)
        return
    super.show(manager, tag)
}

My action is when the user clicks on an item, it shows the dialog. (If the user clicks too fast or uses 2 fingers to click on 2 items at the same time, it will cause this error).

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nguyễn Mạnh Cường

79171977

Date: 2024-11-09 01:52:18
Score: 2
Natty:
Report link

@brucewayne

The error you are seeing is a known issue with the AWS Toolkit for Azure DevOps extension and you can follow discussions: ECRPushImage warning in Azure Devops due to Node10 dependency

##[warning]Task 'Amazon ECR Push' version 1 (ECRPushImage@1) is dependent on a Node version (10) that is end-of-life. Contact the extension owner for an updated version of the task. Task maintainers should review Node upgrade guidance: https://aka.ms/node-runner-guidance

If this becomes a significant problem, consider using alternative tasks, such as Bash@3 or CmdLine@2. While this is been fixed.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @brucewayne
  • Low reputation (0.5):
Posted by: nacho

79171970

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

I was also on a long journey to find the answer to this question. In my case there was also filtering and paging involved. I distilled my experience in this article here.

Reasons:
  • Blacklisted phrase (1): this article
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ozmerg

79171956

Date: 2024-11-09 01:34:14
Score: 4.5
Natty:
Report link

=LET(x,FILTER(A2:C13,A2:A13=E1,""), IF(ISBLANK(x),"",x)) https://i.sstatic.net/9nSoj2sK.png

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: 공공이ˇ

79171941

Date: 2024-11-09 01:20:11
Score: 2
Natty:
Report link

I had same issue. I was using a custom QuickNode RPC and was able to add liquidity with the custom RPC endpoint, but was not showing up for some reason in my portfolio. I switch back to a standard RPC endpoint and it shows up.

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

79171940

Date: 2024-11-09 01:19:10
Score: 0.5
Natty:
Report link

After many toilsome hours, I have fixed it by altering the application.yml:

server:
  port: 9002

spring:
  kafka:
    consumer:
      auto-offset-reset: earliest
      bootstrap-servers: ${SPRING_KAFKA_BOOTSTRAP_SERVERS:localhost:29092} 
      group-id: order-consumer-group
      key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
      properties:
        spring.deserializer.value.delegate.class: org.springframework.kafka.support.serializer.JsonDeserializer
        spring.json.trusted.packages: com.Memorium.order_consumer.payload
        spring.json.value.default.type: com.Memorium.order_consumer.payload.Order

Just needed to change boot change bootstrap-servers to

bootstrap-servers: ${SPRING_KAFKA_BOOTSTRAP_SERVERS:localhost:29092}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Andrew Doan

79171938

Date: 2024-11-09 01:18:10
Score: 2.5
Natty:
Report link

Maybe you can add padding: 0 20px; to keep elements away from edges. And then in the .main_links use margin_right.

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

79171936

Date: 2024-11-09 01:16:09
Score: 3.5
Natty:
Report link

This was sooooper helpful. I ended up creating the default disabled MenuItem and initialized the product with "".

Thanks for a clean console :)

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: chris freckleton

79171923

Date: 2024-11-09 01:01:06
Score: 3
Natty:
Report link

Okay, so I had to go out for a while. When I came back, I booted up my computer and opened the project and now it runs just fine. I have no idea why I was getting the error before, I have no idea why it is now fixed. I can only assume there was some weirdness going on with VS Code. Thanks to anyone that responded.

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

79171899

Date: 2024-11-09 00:37:03
Score: 3.5
Natty:
Report link

I think the list you want is defined in a CommandType enum.

Alias | Function | Filter | Cmdlet | Script | ExternalScript | Application | Configuration

https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/CommandInfo.cs#L23

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

79171897

Date: 2024-11-09 00:35:02
Score: 3
Natty:
Report link

Tested chrome beta for v131 and it works as expected, and looks like it will be released in a few days on Nov 12, 2024 according to the schedule.

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

79171888

Date: 2024-11-09 00:26:00
Score: 3.5
Natty:
Report link

Maybe this helps: https://github.com/KyanJeuring/CSS-variable-in-rgba-function

This repository explains how to modify the aplha of an variable (using pure css).

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

79171880

Date: 2024-11-09 00:15:58
Score: 1.5
Natty:
Report link

If you're not running any tests in pipeline you should add "ignoreTests": true to the renovate.json

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

79171879

Date: 2024-11-09 00:15:58
Score: 0.5
Natty:
Report link

As of MUI 6, text input attributes are set as follows:

      <TextField
        slotProps={{
          htmlInput: { 'data-index': index },
        }} 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Distagon

79171869

Date: 2024-11-09 00:07:57
Score: 1.5
Natty:
Report link

To make it clear at first sight, in the following example, two conditions are put in a row, they are in the "fx" expression of each SQL task's output arrow. You need to double click each arrow.

enter image description here

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

79171862

Date: 2024-11-09 00:01:56
Score: 2
Natty:
Report link

Are you actually using find_one as opposed to find? As the name suggests, find_one will only return 1 or zero results.

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

79171848

Date: 2024-11-08 23:48:53
Score: 1.5
Natty:
Report link

You don't need any of that code if you just use spring-boot-starter-data-elasticsearch as a dependency and set up the properties according to the doc https://docs.spring.io/spring-boot/appendix/application-properties/index.html#appendix.application-properties.data

Look for the spring.elasticsearch properties. It will greatly simplify your configuration.

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

79171840

Date: 2024-11-08 23:39:51
Score: 4.5
Natty:
Report link

You can try:

type ZipObjectFunction = <T, K>(arr1: readonly T[], arr2: readonly K[]) => Object.fromEntries<Array<[T, K]>>

Will this solve the problem?

Reasons:
  • RegEx Blacklisted phrase (1.5): solve the problem?
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: KLASANGUI

79171827

Date: 2024-11-08 23:29:49
Score: 1
Natty:
Report link

That session id means there's currently no session running. Something seems to be canceling/finishing the session when the activity is paused.

You can change the log level like this:

adb shell cmd autofill set log_level verbose
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ahaan Ugale

79171825

Date: 2024-11-08 23:26:48
Score: 2
Natty:
Report link

i still wasn't able to solve this issue after installing everything. "docker-php-ext-enable imagick" shows no command found and the error "Call to undefined function Intervention\Image\Drivers\Gd\Decoders\imagecreatefromjpeg()" remains

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

79171813

Date: 2024-11-08 23:19:47
Score: 1.5
Natty:
Report link

I recommend using the tree /f command if you just wanted to see what dir /s/b did for you while in a powershell console:

C:\test>tree /f
C:.
├───a
├───anotherdir
│       somefile.txt
│       somefile2.txt
│       somefile3.txt
│
└───anotherdir2

If you are writing a script or something I like the answer @Bob gave:

(dir -r).FullName
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Bob
  • Low reputation (1):
Posted by: Michael Reynolds

79171802

Date: 2024-11-08 23:13:45
Score: 1.5
Natty:
Report link

What exact version of Tomcat is being used? We also saw this with Tomcat 9.0.93 and a Grails 4 application.

In our research we found a couple of potential changelog entries that were relevant:

  1. Correct regressions in the refactoring that added recycling of the coyote request and response to the HTTP/2 processing. (markt)
  2. Update: The system property org.apache.catalina.connector.RECYCLE_FACADES will now default to true if not specified, which will in turn set the default value for the discardFacades connector attribute, thus causing facade objects to be discarded by default. (remm)

https://tomcat.apache.org/tomcat-9.0-doc/changelog.html

The RECYCLE_FACADES system property might be able to mitigate this but I haven't tested it. We used Tomcat 9.0.86 and moved on for now.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: John Lear

79171790

Date: 2024-11-08 23:04:43
Score: 0.5
Natty:
Report link

You can update the base image in your Dockerfile to include a newer JDK.

For example, to build with Eclipse Temurin 21, change this line:

FROM maven:3.8.4-openjdk-11

to:

FROM maven:3-eclipse-temurin-21

See here for a list of available Maven base images: https://hub.docker.com/_/maven/tags

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

79171786

Date: 2024-11-08 23:02:43
Score: 1
Natty:
Report link

I had to use raw-loader.

import testVertexShader from "!!raw-loader!@/shaders/test/vertex.glsl";
import testFragmentShader from "!!raw-loader!@/shaders/test/fragment.glsl";

Found the solution in this great tutorial about shaders and react three fiber.

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

79171780

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

All I realized was that it's useful to use pre-built solutions. To fix my problem, I just used the "go_router" package:


final _rootNavigatorKey = GlobalKey<NavigatorState>();
final _shellNavigatorScheduleKey =
    GlobalKey<NavigatorState>(debugLabel: 'shellSchedule');
final _shellNavigatorEditKey =
    GlobalKey<NavigatorState>(debugLabel: 'shellEdit');
final _shellNavigatorSettingsKey =
    GlobalKey<NavigatorState>(debugLabel: 'shellSettings');

final goRouter = GoRouter(
  initialLocation: '/schedule',
  navigatorKey: _rootNavigatorKey,
  debugLogDiagnostics: true,
  routes: [
    StatefulShellRoute.indexedStack(
      builder: (context, state, navigationShell) {
        return ScaffoldWithNestedNavigation(navigationShell: navigationShell);
      },
      branches: [
        StatefulShellBranch(
          navigatorKey: _shellNavigatorScheduleKey,
          routes: [
            GoRoute(
              path: '/',
              builder: (context, state) => const ScheduleScreen(),
            ),
            GoRoute(
              path: '/schedule',
              pageBuilder: (context, state) => const NoTransitionPage(
                child: ScheduleScreen(),
              ),
              routes: [
                GoRoute(
                  path: 'lesson',
                  builder: (context, state) => const LessonScreen(),
                ),
              ],
            ),
          ],
        ),
        StatefulShellBranch(
          navigatorKey: _shellNavigatorEditKey,
          routes: [
            GoRoute(
              path: '/edit',
              pageBuilder: (context, state) => const NoTransitionPage(
                child: EditScreen(),
              ),
            ),
          ],
        ),
        StatefulShellBranch(
          navigatorKey: _shellNavigatorSettingsKey,
          routes: [
            GoRoute(
              path: '/settings',
              pageBuilder: (context, state) => const NoTransitionPage(
                child: SettingsScreen(),
              ),
              routes: [
                GoRoute(
                  path: 'appearance',
                  builder: (context, state) => const AppearanceScreen(),
                ),
                GoRoute(
                  path: 'notifications',
                  builder: (context, state) => const NotificationsScreen(),
                ),
                GoRoute(
                  path: 'qr',
                  builder: (context, state) => const QrScreen(),
                ),
              ],
            ),
          ],
        ),
      ],
    ),
  ],
);

Special thanks to the author of the article for the solution method

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

79171759

Date: 2024-11-08 22:42:38
Score: 1
Natty:
Report link

You are probably getting that exception because that package or that function of the package is not (yet) implemented on the platform you are using. Flutter packages or certain parts of a package may not be available on all platforms.

In this case, sms_advanced is only available on Android, iOS and in the browser. This is show on the website of the package here. This package also does not implement all of its functionality across each platforms yet as show here:

table

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

79171752

Date: 2024-11-08 22:38:37
Score: 0.5
Natty:
Report link

I'm not an expert but googling a bit I find this one:

If your proyect it's MVC try with:

return RedirectToAction("Index", "Home");

If your proyect it's Razor, try with:

return Redirect("~/");

and you might be redirected to the homepage.

Good luck

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

79171745

Date: 2024-11-08 22:31:33
Score: 12 🚩
Natty:
Report link

Im having the exact same issue in production in AWS but with grails 4. What instance type do you have? or did you resolve it? how?

Reasons:
  • RegEx Blacklisted phrase (3): did you resolve it
  • RegEx Blacklisted phrase (1.5): resolve it?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): having the exact same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hugoriar