79333387

Date: 2025-01-06 14:45:02
Score: 2
Natty:
Report link

Just try to add

dotnet add package Serilog.Enrichers.Environment
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anton Zubarev

79333377

Date: 2025-01-06 14:40:01
Score: 1
Natty:
Report link

Postman is working by default with a cookie jar enabled, the HTTP client you are using, in Node.js, is not.

You can disable the cookie jar, for each request Postman, if you go to settings, scroll down though the settings, and enable Disable cookie jar, and I expect once you do that, the behavior is identical.

How do you enable cookies in Node.js?

You can wire a cookie jar to your HTTP requests in Node.js. There is no native support for this in Node.js.

This is portion of my code (TypeScript), where I enabled a cookie jar , provided by tough-cookie:

import {CookieJar} from "tough-cookie";

export type HttpFormData = { [key: string]: string; }

export interface IHttpClientOptions {
  baseUrl: string,
  timeout: number;
  userAgent: string;
}

export interface IFetchOptions {
    query?: HttpFormData;
    retryLimit?: number;
    body?: string;
    headers?: HeadersInit;
    followRedirects?: boolean;
}

export class HttpClient {

  private cookieJar: CookieJar;

  public constructor(private options: IHttpClientOptions) {
    this.cookieJar = new CookieJar();
  }

  public get(path: string, options?: IFetchOptions): Promise<Response> {
    return this._fetch('get', path, options);
  }

  public post(path: string, options?: IFetchOptions) {
    return this._fetch('post', path, options);
  }

  public postForm(path: string, formData: HttpFormData,  options?: IFetchOptions) {
    const encodedFormData = new URLSearchParams(formData).toString();
    return this._fetch('post', path, {...options, body: encodedFormData, headers: {'Content-Type': 'application/x-www-form-urlencoded'}});
  }

  public postJson(path: string, json: Object,  options?: IFetchOptions) {
    const encodedJson = JSON.stringify(json);
    return this._fetch('post', path, {...options, body: encodedJson, headers: {'Content-Type': 'application/json.'}});
  }

  private async _fetch(method: string, path: string, options?: IFetchOptions): Promise<Response> {

    if (!options) options = {};

    let url = `${this.options.baseUrl}/${path}`;
    if (options.query) {
        url += `?${new URLSearchParams(options.query)}`;
    }

    // Get cookies from Cookie JAR
    const cookies = await this.getCookies();

    const headers: HeadersInit = {
      ...options.headers,
      'Cookie': cookies // Assign cookies to HTTP request
    };

    const response = await fetch(url, {
      method,
      ...options,
      headers,
      body: options.body,
      redirect: options.followRedirects === false ? 'manual' : 'follow'
    });
    await this.registerCookies(response);
    return response;
  }

  private registerCookies(response: Response) {
    const cookie = response.headers.get('set-cookie');
    if (cookie) {
      // Store cookies in cookie-jar
      return this.cookieJar.setCookie(cookie, response.url);
    }
  }

  public getCookies(): Promise<string> {
    return this.cookieJar.getCookieString(this.options.baseUrl); // Get cookies for the request
  }

}
Reasons:
  • Blacklisted phrase (1): How do you
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Theo Borewit

79333360

Date: 2025-01-06 14:33:59
Score: 1.5
Natty:
Report link

For me: force updating Maven dependencies solved the problem. Maven was just installed, and the error didn't indicate anything related to dependencies. Steps to solve the problem on IntelliJ:

  1. Open pom.xml
  2. Click maven refresh button
  3. A message will appear that there is a problem with dependencies, do you want to force update them? click yes or similar button.
Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: ReemRashwan

79333356

Date: 2025-01-06 14:32:59
Score: 2
Natty:
Report link

After hours on it, I could get everything working as:

Note: Don't forget to restart your machine, as environments vars and editors may keep old values.

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

79333352

Date: 2025-01-06 14:30:58
Score: 0.5
Natty:
Report link

If anyone still struggling with it. Here is the URL for the request to get order from two dates. The issue is the url encode for filter parameter.

https://YOUR-PREST-WEBURL.com/api/orders?filter[date_add]=[2025-01-01%2C2025-01-06]&date=1&output_format=JSON

Below is an working exanple of the PHP cURL to get orders of today date.

// PrestaShop API endpoint (replace with your store's domain)
$prestashop_url = 'https://YOURSHOPURLHERE.com/api/';
// Your PrestaShop API key
$api_key = 'Your API Key';

// Get today's date in the format PrestaShop uses
$today = date('Y-m-d'); // As of today the date will be like '2025-01-06'
// Prepare the URL for fetching orders created today
$order_url = $prestashop_url . 'orders?filter[date_add]=[' . urlencode($today . ' 00:00:00') . ',' . urlencode($today . ' 23:59:59') . ']&date=1&output_format=JSON';

// cURL setup for fetching order IDs
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $order_url); // URL to the orders endpoint
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Return the response as a string
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Authorization: Basic ' . base64_encode($api_key . ':')
));

// Execute the cURL request
$response = curl_exec($ch);

// Check for errors
if (curl_errno($ch)) {
    echo 'Curl error: ' . curl_error($ch);
    exit;
}

// Close the cURL session
curl_close($ch);
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Techlyse Solutions

79333349

Date: 2025-01-06 14:29:58
Score: 3
Natty:
Report link

I think you are omitting the .js

so like

try

node hello.js

also exit repl if you haven't already

or you haven't saved your file? Happens to me a lot

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

79333337

Date: 2025-01-06 14:27:58
Score: 1
Natty:
Report link

You can remove last '/' and trailing string without using split function. Just modify the Regex a bit.

const url = 'https://example.com/';
console.log(url.replace(/^(?:https?:\/\/)?(?:www\.)?|\/.*$/i, ""));

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

79333333

Date: 2025-01-06 14:26:56
Score: 6 🚩
Natty:
Report link

Did you declare the production URI in your Google Cloud console?

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): Did you
  • Low reputation (1):
Posted by: DWBTed

79333305

Date: 2025-01-06 14:17:54
Score: 2
Natty:
Report link

Changing the value of Settings > Terminal > Integrated: Gpu Acceleration from "auto" into "off" is likely the fix for visual issues in VS Code which have been known about for a long time. Were this not to fix the issue, disabling image sharpening for your GPU (often an issue with Nvidia GPUs) in Control Panel > Manage 3D Settings is another potential fix.

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

79333299

Date: 2025-01-06 14:16:53
Score: 2.5
Natty:
Report link

For the people still searching for this question, now there is an active fork of Cocos2d-x called Axmol Engine, and in the wiki there is available a conversion guide:

https://github.com/axmolengine/axmol/wiki/SpriteKit-to-Axmol

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

79333289

Date: 2025-01-06 14:11:53
Score: 2.5
Natty:
Report link

The simplest solution to this is remove SingleChildScrollView and add Expanded widget to buildmenuitem just that's it.

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

79333256

Date: 2025-01-06 13:58:49
Score: 1
Natty:
Report link

[06/01, 6:40 pm] Varad Jadhao 2: 1 test Real number & Surface area and volume [06/01, 6:41 pm] Varad Jadhao 2: 2nd test polynomial & Pair of linear equation [06/01, 6:43 pm] Varad Jadhao 2: 3rd test Quadratic equation & Arithmetic progression [06/01, 6:44 pm] Varad Jadhao 2: 4th test Triangle & Coordinate geometry [06/01, 6:46 pm] Varad Jadhao 2: 5th test Introduction to trigonometry & some applications of trigonometry [06/01, 6:47 pm] Varad Jadhao 2: 6th test Circle & Area related to circle [06/01, 6:48 pm] Varad Jadhao 2: 7th test Statistics & Probability

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

79333254

Date: 2025-01-06 13:57:49
Score: 1.5
Natty:
Report link

Thanks! I managed to get the AST manipulated accordingly using a lua filter as follows

function Strong(el)
    return pandoc.Span(el.content, {["custom-style"] = "test"})
 end

This assigns a custom style to all bold elements.

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

79333250

Date: 2025-01-06 13:57:49
Score: 1.5
Natty:
Report link

Sorry guys i found the problem.

It's always that rubber duck debugging. i've to post things, after that i find the problem ;-) Thanks

@Service
@Profile({"!signatureTest & test"})
public class ReceiveActivityVerifier4Test implements SignatureVerifierFactory {
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: naturzukunft

79333244

Date: 2025-01-06 13:55:48
Score: 2
Natty:
Report link
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: alexisa

79333232

Date: 2025-01-06 13:52:47
Score: 1
Natty:
Report link

First- We need to install Git on our VM "sudo yum install git"

Second- Check is it install or not "git -v"

Third- Check the installed Path "which git"

Fourth- Add Path "Manage Jenkins -> global tool configuration -> Git -> Git Installations -> Path to Git executable."

Fifth- Save and restart http://xyz:8180/restart

enter image description here

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jai Nath Gupta

79333230

Date: 2025-01-06 13:52:47
Score: 3.5
Natty:
Report link

I had the exact same error.

pip3 install wtforms==2.3.0 worked form me

see github docs (installation requirements) here https://github.com/pallets-eco/flask-admin/blob/master/requirements-skip/tests-min.txt

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

79333223

Date: 2025-01-06 13:49:46
Score: 0.5
Natty:
Report link

For me cal -m works.
cal --version

cal from util-linux 2.40.2

cal -m

    January 2025    
Mo Tu We Th Fr Sa Su
       1  2  3  4  5
 6  7  8  9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31      
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Koronis Neilos

79333220

Date: 2025-01-06 13:49:45
Score: 5.5
Natty: 5.5
Report link

Any update here? Any way we can get the buffering percentage?

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

79333217

Date: 2025-01-06 13:48:44
Score: 3.5
Natty:
Report link

Is it supposed to works in 1.5 version because I'm trying and it does not.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is it
  • Low reputation (0.5):
Posted by: David Vander Elst

79333211

Date: 2025-01-06 13:45:43
Score: 4.5
Natty: 4
Report link

Have you got this issue fixed? I am getting same defect trying to play audio in dart flutter application via UDP: releaseBuffer: mUnreleased out of range, !(stepCount:8 <= mUnreleased:0 <= mFrameCount:4096)

Reasons:
  • RegEx Blacklisted phrase (1.5): fixed?
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nícolas Brinkhus

79333209

Date: 2025-01-06 13:44:42
Score: 3.5
Natty:
Report link

Does it hang if you try with -K rather than --become-method ?

ansible localhost -m command -a whoami -K
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: T.I

79333207

Date: 2025-01-06 13:44:42
Score: 1
Natty:
Report link

Roy Smith's suggestion worked for me https://github.com/microsoft/vscode-python/issues/24656 downgrading the python basically it's downgrading the python extension to version 2024.22.0 which fixed it and let's the discovery succeed again

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: padric

79333205

Date: 2025-01-06 13:43:41
Score: 4
Natty:
Report link

Restarting Mac resolved the issue

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

79333183

Date: 2025-01-06 13:31:39
Score: 0.5
Natty:
Report link

I updated my code this way; I think it's better than the previous version.

List<Model> findAndOperate({
  required double value,
  required Operations operations,
  required List<Model> mainList,
  required List<Model> selectedList,
}) {
  for (final item in mainList) {
    if (selectedList.contains(item)) {
      final itemIndex = mainList.indexOf(item);
      final changeItem = switch (operations) {
        Operations.PLUS => item.copyWith(price: item.price + value),
        Operations.MULTIPLICATION => item.copyWith(price: item.price * value)
      };
      mainList[itemIndex] = changeItem;
    }
  }
  return mainList;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kaan

79333181

Date: 2025-01-06 13:31:39
Score: 1
Natty:
Report link

After switching from Maven to Gradle, we had the same problem. We got the tests running again by navigating to Run | Edit Configurations then selecting this option:

Intellij Kotlin Run | Edit Configurations dialog

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

79333180

Date: 2025-01-06 13:30:38
Score: 1.5
Natty:
Report link

oblivisheee. I little a bit modified your compose config to build and start this docker service by itself, without requiring a surrealdb, a redis, a loki and a nats services. My compose config looks like:

services:
  assistant:
    image: ghcr.io/kiroshi-ai/kiroshi-ai-assistant:v1
    build:
      context: ./assistant
      context: .
      dockerfile: Dockerfile
      dockerfile_inline: |
        FROM debian:bookworm
    ports:
      - "3500:3500"
    depends_on:
      - surrealdb
      - redis
      - loki
      - nats

    command:
      - sleep
      - "3600"

    dns:
      - 8.8.8.8
      - 8.8.4.4
      - 1.1.1.1
      - 9.9.9.9
      - 168.63.129.16
      - 20.62.61.128
      - 20.98.195.77
      - 84.200.69.80
      - 8.26.56.26
      - 208.67.222.222
      - 10.254.254.254
    extra_hosts:
      - "host.docker.internal:host-gateway"
    networks:
      - default
      - db
      - logs
      - nats
      - nginx



networks:
  default:
    driver: bridge
  db:
    name: kiroshi-ai-db-network
  logs:
    name: kiroshi-ai-logs-network
  nats:
    name: kiroshi-ai-nats-cluster
  nginx:
    name: kiroshi-ai-nginx-network

So, in general, your compose service has access to the global network. I checked it the next way:

# ping amazon.com
PING amazon.com (205.251.242.103) 56(84) bytes of data.
64 bytes from s3-console-us-standard.console.aws.amazon.com (205.251.242.103): icmp_seq=1 ttl=230 time=202 ms
64 bytes from s3-console-us-standard.console.aws.amazon.com (205.251.242.103): icmp_seq=2 ttl=230 time=222 ms
64 bytes from s3-console-us-standard.console.aws.amazon.com (205.251.242.103): icmp_seq=3 ttl=230 time=245 ms
^C
--- amazon.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 202.095/223.137/245.254/17.635 ms

Try to reproduce, and if you still haven't access to the amazon.com from docker, check do you have access to amazon from the host system.

Reasons:
  • RegEx Blacklisted phrase (2.5): do you have a
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mchist

79333177

Date: 2025-01-06 13:29:37
Score: 5.5
Natty: 5
Report link

Looks like might be related to IJPL-8337, tried updating the IntelliJ?

https://youtrack.jetbrains.com/issue/IJPL-8337/IntelliJ-forgets-Tomcats-location-and-I-cannot-re-configure-it

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

79333171

Date: 2025-01-06 13:27:36
Score: 4
Natty:
Report link

I found the similar answer here Click Here

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

79333168

Date: 2025-01-06 13:26:35
Score: 2.5
Natty:
Report link

The dependency you are looking for does exist in your repo or it the corporate firewall might be blocking you from connecting to the repo to pull the artifact.

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

79333166

Date: 2025-01-06 13:26:35
Score: 2.5
Natty:
Report link

Start-Process -FilePath "C:\Users\pkriz\Downloads\WebDeploy_amd64_en-US.msi" -ArgumentList "/quiet /norestart"

the above should work with your Powershell admin mode

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

79333154

Date: 2025-01-06 13:22:34
Score: 1
Natty:
Report link

check your imports in "your repository",

import org.apache.catalina.User;

change it to :

import org..User

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: Mounir bkr

79333147

Date: 2025-01-06 13:18:34
Score: 0.5
Natty:
Report link

I had the same problem, but in my case I'm using Material for MKDocs to deploy the website.

To solve this, I noticed that the CNAME file was not created (or copied) on the branch that the Github Pages was configured, just moving the CNAME file to the docs folder (in case of MKDocs), but there is the possibility to change the pipeline to create it on the correct branch.

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

79333137

Date: 2025-01-06 13:14:33
Score: 2.5
Natty:
Report link

findAnomalies.php was removed in 2022. The wiki page for it still contains a script, but it no longer works.

In my case, I used AttachLatest:
Run

cd /path/to/your/wiki
maintenance/run AttachLatest

This will list what would be changed. If this shows some changes, run

maintenance/run AttachLatest --fix

If not, or it still doesn't work, you can reattach all pages via

maintenance/run AttachLatest --regenerate-all --fix
Reasons:
  • RegEx Blacklisted phrase (2): it still doesn't work
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Redjard

79333135

Date: 2025-01-06 13:13:32
Score: 4.5
Natty:
Report link

Try specifying the python interpreter inside your inventory/hosts file.

enter 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: T.I

79333132

Date: 2025-01-06 13:12:32
Score: 2
Natty:
Report link

Your application may have problems resolving file paths or network addresses when executing from a mapped drive on the network. This can happen due to the mapping or drive letter not being resolved accurately within the application

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: GAURAV KUMAR GUPTA

79333131

Date: 2025-01-06 13:12:31
Score: 4
Natty:
Report link

Try searching on vsix hub website

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

79333127

Date: 2025-01-06 13:11:31
Score: 2.5
Natty:
Report link

Use regex like shown in below snapshot...extra forward slash wherever it is single slash.

Regexpression

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

79333111

Date: 2025-01-06 13:04:29
Score: 3.5
Natty:
Report link

How to connect Wkcxvgvdnngcxdrrjnrfbjre vhdxmng not sure if ngani ano hahahah eme lang Ako sa harong Tano man I was ka doman ta truck

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Karen may L Dela peña

79333096

Date: 2025-01-06 13:00:27
Score: 9 🚩
Natty: 5.5
Report link

have you found a solution to this problem, I have the same problem and also modal does not open

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (2.5): have you found a solution to this 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: Coşkun Karakoç

79333095

Date: 2025-01-06 12:59:26
Score: 1.5
Natty:
Report link

The correct answer in the end for this question: The function was hanging due to not having enough resources to deploy.

It was a very simple function that was deployed on the lower end of resource groups.

If the deploys are taking very long time and failing try increasing it's resources.

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

79333089

Date: 2025-01-06 12:56:25
Score: 2
Natty:
Report link

https://blog.octalabs.com/enhancing-security-in-spring-boot-managing-multiple-jwt-issuers-b8d74e2c71c4

You can use the configurationProps to further reduce the individual issuer reference variable declarations

enter image description here

enter image description here

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Manohar

79333086

Date: 2025-01-06 12:55:25
Score: 2
Natty:
Report link

Without data we can't be very helpful.

However you can check the {ggtree} package.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
Posted by: mdag02

79333084

Date: 2025-01-06 12:55:25
Score: 1
Natty:
Report link
  1. Load the key-value pairs using the json module from the json file.
  2. Create a DataFrame using the key-value pairs, with orient="index" which means keys will be the index and the values will be the rows.
  3. Now simply create your plot from the dataframe.
import pandas as pd
import json
import matplotlib.pyplot as plt

with open('temp.json', 'r') as file:
    data_pairs = json.load(file)

dataframe = pd.DataFrame.from_dict(data_pairs, orient="index")

dataframe[:5].plot(legend=False, figsize=(3 , 3))
_ = plt.xticks(rotation=45)
dataframe[5:].plot(legend=False, figsize=(3 , 3))
_ = plt.xticks(rotation=45)

Plots

Graph For first 5 pairs

Graph For first 5 pairs

References:

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

79333069

Date: 2025-01-06 12:48:23
Score: 0.5
Natty:
Report link

Make sure you dont have VPN on else it will be picking the VPN ipaddress and you can use different ip address checker service to confirm the ip addresses are the same with the one digital ocean is showing

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sunny

79333060

Date: 2025-01-06 12:44:22
Score: 0.5
Natty:
Report link

You can try pattern validation using reactive forms for eg:- export const MNC = '^([0-9][0-9][0-9]|[0-9][0-9])$'; export const MCC = /^(001|999|[2-7][0-9]{2})$/; You can use above to match for these validations.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shivang Ghosh

79333055

Date: 2025-01-06 12:43:22
Score: 1
Natty:
Report link

I am facing the issue while running the docker image, attached the Dockerfile content here :

FROM eclipse-temurin:21 RUN apt-get update VOLUME /tmp EXPOSE 8080 ADD target/spring-boot-aws-exe.jar spring-boot-aws-exe.jar ENTRYPOINT [ "java", "-jar", "/spring-boot-aws-exe.jar " ]

The error while running the docker command from git bash: Unable to access jarfile

please see below command which I have run it from GIT bash **** MINGW64 ~/Downloads/springjpa (master) $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE springjpa latest dcb2d2eabe26 18 seconds ago 1.09GB eclipse-temurin 21 1f1cad73899c About an hour ago 863MB

**** MINGW64 ~/Downloads/springjpa (master) $ docker run -p 8080:8080 dcb2d2eabe26 Error: Unable to access jarfile /spring-boot-aws-exe.jar

****MINGW64 ~/Downloads/springjpa (master)

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

79333051

Date: 2025-01-06 12:41:21
Score: 1
Natty:
Report link

I was able to come up with my own answer. The code is below.

Notes:

  1. This only applies to number formatting but can easily be modified for any Styler format.
  2. pandas display options usually print the minimum number of rows and the maximum number of columns (no option display.min_columns).

I had some help from the thread StackOverflow: Merging Pandas styler object side by side.

from IPython.display import display, HTML

# Function
def style_with_truncation(df, formatter='{:.2f}', min_rows=10, max_columns=20):
    half_rows = min_rows // 2
    half_cols = max_columns // 2

    # Left half
    upper_left = df.iloc[:half_rows ,:half_cols].style.format(formatter=formatter)
    lower_left = df.iloc[-half_rows:,:half_cols].style.format(formatter=formatter)

    ellipsis_half_row_left = pd.DataFrame([['...'] * (half_cols)],
                                          index=['...'], columns=upper_left.data.columns)
    
    left_half = upper_left.concat(ellipsis_half_row_left.style).concat(lower_left)

    # Right half
    upper_right = df.iloc[:half_rows ,-half_cols:].style.format(formatter=formatter)
    lower_right = df.iloc[-half_rows:,-half_cols:].style.format(formatter=formatter)
    
    ellipsis_half_row_right = pd.DataFrame([['...'] * (half_cols)],
                                          index=['...'], columns=upper_right.data.columns)

    right_half = upper_right.concat(ellipsis_half_row_right.style).concat(lower_right)

    # Middle
    ellipsis_column = pd.DataFrame({'...' : ['...'] * (min_rows+1)}, columns=['...'])
    ellipsis_column = ellipsis_column.style
    
    # Set the Styler attribute to be shown side by side
    left_half.set_table_attributes("style='display:inline'")
    right_half.set_table_attributes("style='display:inline'")
    ellipsis_column.set_table_attributes("style='display:inline'")

    # Display the styler objects inline
    row_col_text = f"<p>{df.shape[0]:d} rows × {df.shape[1]:d} columns</p>"
    display(HTML(left_half._repr_html_() +
                 ellipsis_column.hide(axis="index")._repr_html_() +
                 right_half.hide(axis="index")._repr_html_()
                 + row_col_text))

# Example of a function call
min_rows = pd.options.display.min_rows
max_columns = pd.options.display.max_columns
style_with_truncation(df, formatter='{:.2f}', min_rows=min_rows, max_columns=max_columns)

Output: Successful truncation of a stylized DataFrame

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

79333043

Date: 2025-01-06 12:39:21
Score: 0.5
Natty:
Report link

Depending on the version and configuration of your H2 database AUTO_INCREMENT might not be supported.

See this answer for a variety of how to get the same effective result with a more modern syntax.

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

79333042

Date: 2025-01-06 12:38:20
Score: 3.5
Natty:
Report link

Adding both the file path you are editing and an entry for $DERIVED_FILE_DIR into your output files for the matching file path will fix this issue without modifying User Script Sandboxing.

The location where you add the entries for the above instructions.

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

79333039

Date: 2025-01-06 12:36:20
Score: 0.5
Natty:
Report link

I ended up with a LESS plugin. less-lib.js:

registerPlugin(
    {
        install: function (less, pluginManager, functions)
        {
            functions.add('rp', function (rpx)
            {
                return new tree.Dimension(rpx.value / 16, 'rem');
            });
        }
    }
)

Using:

@plugin "less-lib";
.my-class
{
    width: rp(20);
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Shtole

79333035

Date: 2025-01-06 12:35:19
Score: 4
Natty: 4.5
Report link

You may use my library https://github.com/filinvadim/wall-clock-ticker PR's are welcomed

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

79333032

Date: 2025-01-06 12:35:19
Score: 1.5
Natty:
Report link

I know this is old, but it is important to "inform" the django application of the presence of celery. You should therefore add

from .celery import app as celery_app

__all__ = ('celery_app',)

To your init.py file. In this case it sohuld be in proj/proj/init.py

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

79333027

Date: 2025-01-06 12:32:18
Score: 1.5
Natty:
Report link

Seems that reading the value of a JSON element with value null triggered the message; after handling the "Jsonelem_type_empty" case separately (and not accessing the element's value at all), the message disappeared.

Funny somehow, that the printed message refers to a datatype 0 - in Carl's findings here you can see that this type should have the value 64...

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

79333024

Date: 2025-01-06 12:32:18
Score: 1
Natty:
Report link

Comment: The answers did not work for me but in my case, the issue was that my page break was outside the print area. I fixed it like that

With Sheets("sheet2").PageSetup .PrintArea = "A1:BB1000" End With

Probably trivial for all you pros. And there might be a more elegant solution.

Reasons:
  • Blacklisted phrase (1): did not work
  • Whitelisted phrase (-2): I fixed
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: FloquetDeNeu

79333020

Date: 2025-01-06 12:31:18
Score: 0.5
Natty:
Report link
COPY <<'DASH' /etc/rc.local
    set -x
    printenv
DASH

RUN chmod +x /etc/rc.local
ENTRYPOINT dash -xc '/etc/rc.local && <the original entrypoint> $1' "$@"
CMD <the original cmd>

Explain:

  1. The file /etc/rc.local is a historical filename for putting scripts that will be executed by pre-systemd-era-daemon SysV init during the system boot: https://unix.stackexchange.com/questions/49626/purpose-and-typical-usage-of-etc-rc-local.

    Another similar path for this purpose is /etc/init.d/*: https://unix.stackexchange.com/questions/3537/etc-rc-d-vs-etc-init-d.

    Here we just take this filename for convention as in docker container there's no init/systemd daemon by default and the ENTRYPOINT is the pid 1.

  2. The original value of image ENTRYPOINT can be found in its Dockerfile or get overrided by compose.yaml.

  3. And setting a new ENTRYPOINT will reset the original CMD to empty string: https://docs.docker.com/reference/dockerfile/#understand-how-cmd-and-entrypoint-interact

    If CMD is defined from the base image, setting ENTRYPOINT will reset CMD to an empty value. In this scenario, CMD must be defined in the current image to have a value.

    so we have to copy the value of CMD from the Dockerfile of original image or compose.yaml if get overrided in it.

  4. dash -xc 'echo $1' arg is a way to pass shell arguments into sh -c: https://unix.stackexchange.com/questions/144514/add-arguments-to-bash-c/144519#144519, and this example shall run echo arg that can be verified by set -x.

  5. $@ is the value of all shell arguments except the first one like $argv[0] or $0 which is the value being passed to execv.

    In the shell env of entrypoint when a container is created, its $@ will be the value of Dockerfile CMD: https://docs.docker.com/reference/dockerfile/#understand-how-cmd-and-entrypoint-interact, so we could pass the value CMD from outer shell into the inner that created by sh -c 'echo $1' "$@".

    Double-quoting it "$@" will prevent shell IFS= word splitting for passing the whole Dockerfile CMD as a single argument into $1 in sh -c

Taking the offical docker image php as a example: We can find its original ENTRYPOINT is docker-php-entrypoint and original CMD is php-fpm, so we should fill them with:

ENTRYPOINT dash -xc '/etc/rc.local && docker-php-entrypoint $1' "$@"
CMD php-fpm

If the order of executing script before or after the entrypoint get started is not important for you, also try the much simpler post-start lifecycle hook in Docker Compose: docker-compose, run a script after container has started?

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

79333018

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

If you don't have an absolute need to reimplement the Java code in python, you may want to consider Jython. It makes it easy to call some code from a jar file. You will have to figure out how to extend the classpath and to call methods that were not supposed to be exposed to the outside world, but all in all, I wouldn't be surprised if it would require less lines of code than what you already posted.

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

79333017

Date: 2025-01-06 12:30:17
Score: 3
Natty:
Report link

Is this resolved? Don't you have issues related to the EntityManagerFactory interface conflict when deploying Spring Boot 3.x on WildFly?

issue: `Handler java.util.logging.ConsoleHandler is not defined 16:54:46,607 ERROR [org.springframework.boot.SpringApplication] (ServerService Thread Pool -- 92) Application run failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: EntityManagerFactory interface [interface org.hibernate.SessionFactory] seems to conflict with Spring's EntityManagerFactoryInfo mixin - consider resetting the 'entityManagerFactoryInterface' property to plain [jakarta.persistence.EntityManagerFactory] at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1806) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:954) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:625) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.SpringApplication.run(SpringApplication.java:335) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:174) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:154) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:96) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) at [email protected]//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:204) at [email protected]//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:187) at [email protected]//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) at [email protected]//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421) at [email protected]//io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:255) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:88) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:70) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at [email protected]//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at [email protected]//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) at java.base/java.lang.Thread.run(Thread.java:840) at [email protected]//org.jboss.threads.JBossThread.run(JBossThread.java:513) Caused by: java.lang.IllegalStateException: EntityManagerFactory interface [interface org.hibernate.SessionFactory] seems to conflict with Spring's EntityManagerFactoryInfo mixin - consider resetting the 'entityManagerFactoryInterface' property to plain [jakarta.persistence.EntityManagerFactory] at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.createEntityManagerFactoryProxy(AbstractEntityManagerFactoryBean.java:469) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:403) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:366) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1802) ... 36 more Caused by: java.lang.IllegalArgumentException: methods with same signature getSchemaManager() but incompatible return types: [interface org.hibernate.relational.SchemaManager, interface jakarta.persistence.SchemaManager] at java.base/java.lang.reflect.ProxyGenerator.checkReturnTypes(ProxyGenerator.java:311) at java.base/java.lang.reflect.ProxyGenerator.generateClassFile(ProxyGenerator.java:488) at java.base/java.lang.reflect.ProxyGenerator.generateProxyClass(ProxyGenerator.java:178) at java.base/java.lang.reflect.Proxy$ProxyBuilder.defineProxyClass(Proxy.java:558) at java.base/java.lang.reflect.Proxy$ProxyBuilder.build(Proxy.java:670) at java.base/java.lang.reflect.Proxy.lambda$getProxyConstructor$1(Proxy.java:440) at java.base/jdk.internal.loader.AbstractClassLoaderValue$Memoizer.get(AbstractClassLoaderValue.java:329) at java.base/jdk.internal.loader.AbstractClassLoaderValue.computeIfAbsent(AbstractClassLoaderValue.java:205) at java.base/java.lang.reflect.Proxy.getProxyConstructor(Proxy.java:438) at java.base/java.lang.reflect.Proxy.newProxyInstance(Proxy.java:1037) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.createEntityManagerFactoryProxy(AbstractEntityManagerFactoryBean.java:464) ... 40 more

16:54:46,608 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 92) MSC000001: Failed to start service jboss.deployment.unit."wildfly-0.0.1-SNAPSHOT.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.unit."wildfly-0.0.1-SNAPSHOT.war".undertow-deployment: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: EntityManagerFactory interface [interface org.hibernate.SessionFactory] seems to conflict with Spring's EntityManagerFactoryInfo mixin - consider resetting the 'entityManagerFactoryInterface' property to plain [jakarta.persistence.EntityManagerFactory] at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:73) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at [email protected]//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at [email protected]//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) at java.base/java.lang.Thread.run(Thread.java:840) at [email protected]//org.jboss.threads.JBossThread.run(JBossThread.java:513) Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: EntityManagerFactory interface [interface org.hibernate.SessionFactory] seems to conflict with Spring's EntityManagerFactoryInfo mixin - consider resetting the 'entityManagerFactoryInterface' property to plain [jakarta.persistence.EntityManagerFactory] at [email protected]//io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:257) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:88) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:70) ... 8 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: EntityManagerFactory interface [interface org.hibernate.SessionFactory] seems to conflict with Spring's EntityManagerFactoryInfo mixin - consider resetting the 'entityManagerFactoryInterface' property to plain [jakarta.persistence.EntityManagerFactory] at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1806) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:954) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:625) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.SpringApplication.run(SpringApplication.java:335) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:174) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:154) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:96) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) at [email protected]//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:204) at [email protected]//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:187) at [email protected]//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) at [email protected]//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421) at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421) at [email protected]//io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:255) ... 10 more Caused by: java.lang.IllegalStateException: EntityManagerFactory interface [interface org.hibernate.SessionFactory] seems to conflict with Spring's EntityManagerFactoryInfo mixin - consider resetting the 'entityManagerFactoryInterface' property to plain [jakarta.persistence.EntityManagerFactory] at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.createEntityManagerFactoryProxy(AbstractEntityManagerFactoryBean.java:469) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:403) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:366) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1802) ... 36 more Caused by: java.lang.IllegalArgumentException: methods with same signature getSchemaManager() but incompatible return types: [interface org.hibernate.relational.SchemaManager, interface jakarta.persistence.SchemaManager] at java.base/java.lang.reflect.ProxyGenerator.checkReturnTypes(ProxyGenerator.java:311) at java.base/java.lang.reflect.ProxyGenerator.generateClassFile(ProxyGenerator.java:488) at java.base/java.lang.reflect.ProxyGenerator.generateProxyClass(ProxyGenerator.java:178) at java.base/java.lang.reflect.Proxy$ProxyBuilder.defineProxyClass(Proxy.java:558) at java.base/java.lang.reflect.Proxy$ProxyBuilder.build(Proxy.java:670) at java.base/java.lang.reflect.Proxy.lambda$getProxyConstructor$1(Proxy.java:440) at java.base/jdk.internal.loader.AbstractClassLoaderValue$Memoizer.get(AbstractClassLoaderValue.java:329) at java.base/jdk.internal.loader.AbstractClassLoaderValue.computeIfAbsent(AbstractClassLoaderValue.java:205) at java.base/java.lang.reflect.Proxy.getProxyConstructor(Proxy.java:438) at java.base/java.lang.reflect.Proxy.newProxyInstance(Proxy.java:1037) at deployment.wildfly-0.0.1-SNAPSHOT.war//org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.createEntityManagerFactoryProxy(AbstractEntityManagerFactoryBean.java:464) ... 40 more

16:54:46,610 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "wildfly-0.0.1-SNAPSHOT.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit."wildfly-0.0.1-SNAPSHOT.war".undertow-deployment" => "java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: EntityManagerFactory interface [interface org.hibernate.SessionFactory] seems to conflict with Spring's EntityManagerFactoryInfo mixin - consider resetting the 'entityManagerFactoryInterface' property to plain [jakarta.persistence.EntityManagerFactory] Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: EntityManagerFactory interface [interface org.hibernate.SessionFactory] seems to conflict with Spring's EntityManagerFactoryInfo mixin - consider resetting the 'entityManagerFactoryInterface' property to plain [jakarta.persistence.EntityManagerFactory] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: EntityManagerFactory interface [interface org.hibernate.SessionFactory] seems to conflict with Spring's EntityManagerFactoryInfo mixin - consider resetting the 'entityManagerFactoryInterface' property to plain [jakarta.persistence.EntityManagerFactory] Caused by: java.lang.IllegalStateException: EntityManagerFactory interface [interface org.hibernate.SessionFactory] seems to conflict with Spring's EntityManagerFactoryInfo mixin - consider resetting the 'entityManagerFactoryInterface' property to plain [jakarta.persistence.EntityManagerFactory] Caused by: java.lang.IllegalArgumentException: methods with same signature getSchemaManager() but incompatible return types: [interface org.hibernate.relational.SchemaManager, interface jakarta.persistence.SchemaManager]"}} 16:54:46,641 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Preview 33.0.0.Final (WildFly Core 25.0.0.Final) started (with errors) in 21084ms - Started 541 of 775 services (2 services failed or missing dependencies, 326 services are lazy, passive or on-demand) - Server configuration file in use: standalone.xml - Minimum feature stability level: preview

`

Reasons:
  • RegEx Blacklisted phrase (1.5): resolved?
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is this
  • Low reputation (1):
Posted by: ashwani gupta

79333010

Date: 2025-01-06 12:29:17
Score: 0.5
Natty:
Report link

It's highly recommended that you switch to cssbundling-rails (and jsbundling-rails) for Bootstrap 5+ on Rails 8 with propshaft as your asset management library. I couldn't find a way to do it without these, although I personally needed SASS support for a different reason.

Some things are configured automatically with bin/rails css:install:sass so start there.

In Gemfile, add:

gem "jsbundling-rails"
gem "cssbundling-rails"

Then run bundle install.

I needed to create app/assets/stylesheets/application.sass.scss

@import "application.bootstrap";
@import "fontawesome";

app/assets/stylesheets/application.bootstrap.scss looks like this:

@import 'bootstrap/scss/bootstrap';
@import 'bootstrap-icons/font/bootstrap-icons';

Ensure you run bin/dev to start your RoR server, as rails server didn't seem to be sufficient anymore.

FontAwesome

For fontawesome support, app/assets/stylesheets/fontawesome.scss looks like this, as per this article: https://www.babar.im/blog/programming/ruby/how-to-use-fontawesome-5-6-with-rails-7-and-propshaft.html

$fa-font-path: "./webfonts";

@import "@fortawesome/fontawesome-free/scss/regular";
@import "@fortawesome/fontawesome-free/scss/brands";
@import "@fortawesome/fontawesome-free/scss/solid";
@import "@fortawesome/fontawesome-free/scss/fontawesome";

You'll also need to create the build:css:fontawesome build step in package.json and run that manually (as explained in the article)

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nigel Sheridan-Smith

79333008

Date: 2025-01-06 12:28:16
Score: 1
Natty:
Report link

It is possible to combine "count" and "for_each" in a terraform resource block

But you have to be "dynamic" about it

Here's an example of what I have in place (and working)

resource "azurerm_network_security_group" "nsg-001" {
count               = var.nsg-deploy.deploy ? 1 : 0

dynamic "security_rule" {
    for_each = local.nsg_001_ruleset_001
    content {}
}

Cheers

-=A=-

.

Reasons:
  • Blacklisted phrase (1): Cheers
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrew Haigh

79333006

Date: 2025-01-06 12:28:16
Score: 2
Natty:
Report link

if you have this version "face-api.js": "0.22.2", its require face-api.js version 0.22.2 requires TensorFlow.js version 1.x, but recent updates to TensorFlow.js (version 3.x or above) are not compatible with face-api.js. you have to use npm install @tensorflow/[email protected]

its working fine for me

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

79332998

Date: 2025-01-06 12:26:16
Score: 2
Natty:
Report link

1.Try adding ansible_python_interpreter=/usr/bin/python3 in your inventory file.

  1. If that doesnt help, specify the path to your venv as your python interpreter, ie:

ansible_python_interpreter=/path/to/venv

enter image description here

Lastly, if that doesn't resolve the problem, create a venv, install the desired packages and execute the playbook from INSIDE the venv. Some packages do not work on all ubuntu versions hence a venv is required.

Had a similar problem with the proxmoxer package. enter image description here

Once installed inside the venv and ran ansible from there it resolved the issue. enter image description here

PLaybook runs just fine:

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: T.I

79332995

Date: 2025-01-06 12:24:15
Score: 0.5
Natty:
Report link
<?php
$css_attrs = array(
    "width"         => "11px",
    "height"        => "11px",
    "border-radius" => "20px",
    "cursor"        => "help"
);
?>
<span style="<?php echo str_replace("=",":",http_build_query($css_attrs,"","; "));?>"></span>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nic Bug

79332983

Date: 2025-01-06 12:14:13
Score: 0.5
Natty:
Report link

From iOS 17 you can do it with scrollView and scrollTargetBehavior Here example

struct ContentView: View {
    var body: some View {
        ScrollView(.horizontal) {
            LazyHStack {
                ForEach(0..<10) { i in
                    RoundedRectangle(cornerRadius: 25)
                        .fill(Color(hue: Double(i) / 10, saturation: 1, brightness: 1).gradient)
                        .frame(width: 300, height: 100)
                }
            }
            .scrollTargetLayout()
        }
        .scrollTargetBehavior(.viewAligned)
        .safeAreaPadding(.horizontal, 40)
    }
}

For more information please go here: https://www.hackingwithswift.com/quick-start/swiftui/how-to-make-a-scrollview-snap-with-paging-or-between-child-views

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

79332978

Date: 2025-01-06 12:14:13
Score: 0.5
Natty:
Report link

For anyone interested, I managed to make it work by looping over tr_elements in the html source file

from selenium import webdriver
from selenium.webdriver.common.by import By

PATH = "C:\\Program Files (x86)\\chromedriver.exe"
cService = webdriver.ChromeService(executable_path= PATH)
driver = webdriver.Chrome(service = cService)
href_links = []
date = "1.5.2025"
driver.get("https://mydata.com")
tableID = driver.find_element(By.CLASS_NAME,"DetailTable")
tbody = tableID.find_element(By.TAG_NAME,"tbody")
tr_elements = [tbody.find_elements(By.TAG_NAME,"tr") for tbody in tbodies]

links = [[] for i in range(len(tr_elements))]

for i in range(len(links)):
    for tr_element in tr_elements[i]:
        td_elements = tr_element.find_elements(By.TAG_NAME,'td')
        temp = td_elements[1].find_element(By.TAG_NAME,"span").get_attribute("innerHTML")
        temp = temp.strip()
        if temp==date:
            temp_link = td_elements[5].find_element(By.TAG_NAME,'center')
            temp_link = temp_link.find_element(By.TAG_NAME,"a")
            links[i].append(temp_link)

This just picks apart each tr element into separate td elements and checks the date against the td containing the date and then returns the href value of the td element containing the href I need

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: weyronn12934

79332973

Date: 2025-01-06 12:11:13
Score: 0.5
Natty:
Report link

With Angular 18.2.8 the installation of [email protected] (currently latest) still fails. But I was able to install it successfully by using the latest @18 verion of PrimeNG.

npm install [email protected]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bernd

79332959

Date: 2025-01-06 12:05:10
Score: 7.5 🚩
Natty: 5.5
Report link

Try to install VCRedist. https://learn.microsoft.com/ru-ru/cpp/windows/latest-supported-vc-redist?view=msvc-170

If it won't help please provide logs from Event Viewer if you use windows

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • RegEx Blacklisted phrase (1.5): help please
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Владимир Фёдоров

79332957

Date: 2025-01-06 12:03:09
Score: 4
Natty:
Report link
Reasons:
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Rana safi

79332956

Date: 2025-01-06 12:03:09
Score: 3.5
Natty:
Report link

If anyone is still looking for the answer to this:

https://github.com/laravel/nova-issues/issues/3802#issuecomment-1088427155

try using License Key instead of Password to authenticate

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

79332943

Date: 2025-01-06 11:59:08
Score: 2
Natty:
Report link

The THEMEMODE cookie is being set without an expiration date, which causes it to behave like a session cookie. This means the cookie is deleted when the browser is closed.

Update the following code might work

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

79332941

Date: 2025-01-06 11:58:07
Score: 4
Natty:
Report link

As of 2025, use "Keyboard Shortcut Exporter" extension instead of "Keyboard Shortcut Explorer", as mentioned in @fastmultiplication's answer.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @fastmultiplication's
  • Single line (0.5):
  • Low reputation (1):
Posted by: Benjamin Berman

79332940

Date: 2025-01-06 11:58:06
Score: 11.5 🚩
Natty: 5.5
Report link

I have exactly the same issue. Did you find out anything helpful here?

Regards Marc

Reasons:
  • Blacklisted phrase (1): Regards
  • RegEx Blacklisted phrase (3): Did you find out
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have exactly the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Marc Niehus

79332922

Date: 2025-01-06 11:51:04
Score: 1
Natty:
Report link
  1. Search for .zshrc using command+shift+h+. in mac.
  2. Write export JAVA_HOME=/usr/local/Cellar/openjdk@17/17.0.8/libexec/openjdk.jdk/Contents/Home or your specified java version.
  3. Save the file
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Neha Durani

79332913

Date: 2025-01-06 11:46:02
Score: 5.5
Natty: 5.5
Report link

Would addCustomView worked for subgrids?

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

79332912

Date: 2025-01-06 11:46:01
Score: 3
Natty:
Report link

Thanks ghostdivider! Your answer worked for me!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jim

79332903

Date: 2025-01-06 11:43:01
Score: 3
Natty:
Report link

There can be a couple of reasons, both I was stuck doing the same. First being the permission and secondly, migrating the model, once created on the UI.

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

79332902

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

As @Cashiuus mentioned in the comments on the answer by @Liudvikas, open the logfile and navigate to the binary mentioned at the top-

The path should look like this:

C:\Users\ABC\AppData\Local\Package Cache\{5d57524f-af24-49a7-b90b-92138880481e}

Run the binary as administrator. It should uninstall properly now.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Cashiuus
  • User mentioned (0): @Liudvikas
  • Low reputation (1):
Posted by: Jatin Rathour

79332899

Date: 2025-01-06 11:41:00
Score: 2.5
Natty:
Report link

You can safely remove unwanted Schadcn components, you should look into the concerned component and the dependecies it uses, you could then trace the dependency to the package.json file and uninstall the dependecies through the terminal. That should do, I believe.

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

79332887

Date: 2025-01-06 11:37:59
Score: 3
Natty:
Report link

Fixed using disabledKeyboardNavigation flag

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

79332884

Date: 2025-01-06 11:35:59
Score: 0.5
Natty:
Report link

The simplest way is via a laptop or desktop PC, plug in the flipper via USB and you can flash Momentum Firmware via Chrome. Alternatively, installing Unleashed or RougeMaster can be done via downloading their respective firmware via Github Releases and and flashing via qFlipper (desktop app) or Flipper Labs (in browser).

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

79332878

Date: 2025-01-06 11:33:58
Score: 3
Natty:
Report link

click on deployment name hyperlink in your screenshot and go to the deployment detail page as below:

enter image description here

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

79332876

Date: 2025-01-06 11:32:58
Score: 2.5
Natty:
Report link

Alpine is a lightweight container; we don't need many libraries/packages in Ubuntu for node applications. If we go with Ubuntu and some other libraries get vulnerabilities, our application will also be in danger. For security best practices, we should consider Alpine.

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

79332872

Date: 2025-01-06 11:30:58
Score: 3.5
Natty:
Report link

Also looking for an answer (example) of how to do this.

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

79332868

Date: 2025-01-06 11:28:57
Score: 2.5
Natty:
Report link

From looking at Android's source code at:

https://android.googlesource.com/platform/packages/apps/Browser2/+/master/src/org/chromium/webview_shell/WebViewBrowserActivity.java

It appears that WebView settings are necessary but not sufficient:

    private void loadUrl(String url) {
        // Request read access if necessary
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
                && "file".equals(Uri.parse(url).getScheme())
                && PackageManager.PERMISSION_DENIED
                        == checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE)) {
            requestPermissionsForPage(new FilePermissionRequest(url));
        }
        // If it is file:// and we don't have permission, they'll get the "Webpage not available"
        // "net::ERR_ACCESS_DENIED" page. When we get permission, FilePermissionRequest.grant()
        // will reload.
        mWebView.loadUrl(url);
        mWebView.requestFocus();
    }

Did you include in your AndroidManifest.xml the following?

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: ususer

79332864

Date: 2025-01-06 11:27:57
Score: 1
Natty:
Report link
  1. The break; statements are missing in the switch cases. This means that the code would continue to the next case, which in fact is not needed.

  2. I'm pretty sure you can avoid the inner loop. You're checking every Item in mainList with every Item in selectedList

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Wessel van der zijl

79332860

Date: 2025-01-06 11:26:56
Score: 1.5
Natty:
Report link

Blockquote

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Сергей Васильцев

79332853

Date: 2025-01-06 11:22:55
Score: 2
Natty:
Report link

def embed_screenshot_to_receipt(screenshot_path, pdf_path): """Embeds the screenshot to the bot receipt""" pdf = PDF() pdf.add_watermark_image_to_pdf(image_path=screenshot_path, source_path=pdf_path, output_path=pdf_path)

Using pdf.add_watermark_image_to_pdf

This method you can embed screenshot in pdf

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

79332833

Date: 2025-01-06 11:09:53
Score: 1
Natty:
Report link

You have a missing dependency SubscriberRequest about your form request. Just follow below code.

public function subscribe(SubscriberRequest $request) 
{
    // for only validated request data
    dd($request->validated());
    // for all form request data
    dd($request->all());
    // ...
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Md. Abdul Majid

79332819

Date: 2025-01-06 11:03:52
Score: 2
Natty:
Report link

Solutions for tailwind CSS conflicts in micro frontends.

  1. Add important: true in remote CSS config so it will priority over host CSS.

  2. Using POSTCSS prefix.

npm i postcss postcss-prefix-selector autoprefixer

Add postcss prefix in the config as shown in the picture

wrap remote component with this selector.

Add remote parent unique selector

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

79332814

Date: 2025-01-06 11:02:51
Score: 2
Natty:
Report link

We seem to find that the problem is with the fact that events (unfortunately we have been naive to enable all events) are enabled on the server and the server is trying to send the events to the clients. And hence the presence of org.apache.ignite.internal.util.nio.GridNioServer$WriteRequestImpl

We are now trying go avoid usage of Ignite Events (we wanted to leverage the expiry event), disable all the events and have our own custom mechanism to determine the expiry.

We are still experimenting.

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

79332810

Date: 2025-01-06 11:01:51
Score: 1
Natty:
Report link

to avoid the error in console just assign a handler for the 'error' event, like this:

spawn('ffmpeg').on('error', () => {})
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: rejetto

79332797

Date: 2025-01-06 10:54:50
Score: 2
Natty:
Report link

you are using an powershell task, might just read the file and then filter the line by key name?

- task: PowerShell@2
    displayName: Run gradle sonar
    inputs:
        targetType: 'inline'
        pwsh: true
        workingDirectory: ${{ parameters.workingDirectory }}
        script: |
            $searchText = "VERSION_CODE"
            $filteredLine = Get-Content -Path 'gradle.properties' | Select-String -Pattern $searchText
                
            if ($filteredLine) {
                $splitLine = $filteredLine -split '='
                $version = $splitLine[1].Trim()
                $version
            }
            $GRADLE_COMMAND = "./gradlew sonar"
            $GRADLE_COMMAND += " ""-Dsonar.projectVersion=$(version)"""
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: qkfang

79332796

Date: 2025-01-06 10:54:50
Score: 2.5
Natty:
Report link

I specialize in Search Engine Optimization (SEO) and Google Ads Campaign Management. Below are some examples of the projects I’ve worked on:

موقع خدمات ويب

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

79332791

Date: 2025-01-06 10:51:48
Score: 4.5
Natty: 4
Report link

works fine now with this solution

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

79332790

Date: 2025-01-06 10:51:48
Score: 1.5
Natty:
Report link

Right now, Chart XY widget doesn't support this advanced functionality but you can configure dynamically colored lines using the new Vega chart widget.

https://www.palantir.com/docs/foundry/workshop/widgets-vega-chart

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

79332786

Date: 2025-01-06 10:50:47
Score: 1
Natty:
Report link

Firebase answered me with this reCAPTCHA SMS toll fraud protection which is only in preview right now https://cloud.google.com/identity-platform/docs/recaptcha-tfp for Firebase Auth and Google Cloud Identity Platform that will allow you to manage your own risk tolerance. Generally speaking, no carriers are expected to be blocked for projects using reCAPTCHA SMS toll fraud protection, so "error:39" messages should no longer occur.

I'm curious if anyone started implementing this.

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

79332782

Date: 2025-01-06 10:48:47
Score: 2.5
Natty:
Report link

You can try to check implementation of the function

func validBannerSizes(for adLoader: GADAdLoader) -> [NSValue]

It's part of GAMBannerAdLoaderDelegate This function is responsible for setting sizes of the ad which you want to request from GAM https://developers.google.com/admob/ios/api/reference/Protocols/GAMBannerAdLoaderDelegate#-validbannersizesforadloader:

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Viktor Drykin

79332781

Date: 2025-01-06 10:48:47
Score: 1.5
Natty:
Report link

I'm also facing this issue on android device only In IOS device it's working fine.So I use expo-image, like Image as ExpoImage and give the width and height and the issue resolved.Below is the example: import {Image as ExpoImage} from 'expo-image';

<ExpoImage
        source={require('../../assets/images/user.png')}
        style={{width: 50, height: 50}} contentFit="contain" />

You can adjust width and height according to your view and style.

Reasons:
  • Blacklisted phrase (1): also facing this
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rao Asad-Ullah Ahmad

79332770

Date: 2025-01-06 10:43:41
Score: 7.5 🚩
Natty: 6.5
Report link

i have same issue now how you're solved that issue for your case, i was tried too many methods but i can't resolved this issue , if anyone willing to help me for this issue ?

here i am using js and jquery toggle option ios does support toggle?

Reasons:
  • Blacklisted phrase (1): help me
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): i have same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: vinoth

79332769

Date: 2025-01-06 10:43:39
Score: 12.5 🚩
Natty:
Report link

It doesn't work for me, because when I install scikit-learn==1.5.2 "from keras.wrappers.scikit_learn import KerasClassifier" doesn't work but it works with scikit-learn==1.3.1 and if I install scikit-learn==1.3.1 this problem appears "'super' object has no attribute 'sklearn_tags'". Do you know how to solve this problem?

Reasons:
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (1.5): how to solve this problem?
  • RegEx Blacklisted phrase (2.5): Do you know how
  • RegEx Blacklisted phrase (2): doesn't work for me
  • RegEx Blacklisted phrase (2): know how to solve
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Daniela Guisao Marín