79206938

Date: 2024-11-20 11:17:19
Score: 1
Natty:
Report link

If you want to get the bundle id of the apps installed in your iPhone which is connected to a Mac OS system, then simply

  1. Open terminal
  2. If you have installed Homebrew, get ideviceinstaller using below command

brew install ideviceinstaller

  1. Connect your iPhone to Mac and run the command

ideviceinstaller -l

This will list all the installed apps on the connected iOS device along with their bundle IDs

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

79206931

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

I have a somewhat similar problem.

I would like to remove weekends from the calendar.

I can't find a way to do this.

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

79206924

Date: 2024-11-20 11:13:18
Score: 1.5
Natty:
Report link

Use deploy tokens, they give read-only access to the repo and registry. Go to your project, Settings > Repository > Deploy tokens https://docs.gitlab.com/ee/user/project/deploy_tokens/index.html

As for the earlier answers about Private and Group tokens: According to GitLab documentation and opened issues, Project Access Tokens and Group Tokens have a breach, such as the holder can access any internal repository

From https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html#create-a-project-access-token

Project access tokens are treated as internal users. If an internal user creates a project access token, that token is able to access all projects that have visibility level set to Internal.

From https://gitlab.com/gitlab-org/gitlab/-/issues/413028

One of the consequences of this is that if we share a single read-only project access token with an external user, they can access any internal project in our Gitlab server instance, which we believe is an evident security hole.

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

79206922

Date: 2024-11-20 11:13:18
Score: 2
Natty:
Report link

The line newNode->next = NULL; is safe and does not cause undefined behavior until u miss these points given below: 1)The memory allocation succeeds. 2)Other threads cannot access newNode during initialization.

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

79206911

Date: 2024-11-20 11:10:17
Score: 3
Natty:
Report link

Sounds to me like UnreachableException is what you're looking for.

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

79206910

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

You can change the temporal unit via the QgsMeshLayerDataProvider, which has a setTemporalUnit method. Documentation

from qgis.core import QgsProject, Qgis

layer_name = 'TIN Mesh'
mesh_layer = QgsProject.instance().mapLayersByName('TIN Mesh')[0]
mesh_layer.dataProvider().setTemporalUnit(Qgis.TemporalUnit.Seconds)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: juto96

79206906

Date: 2024-11-20 11:09:17
Score: 3
Natty:
Report link

I am answering my own question for people who would face the same issue in future. It is not related about IdentityServer4 configurations or axa-fr/react-oidc library.

Error caused from calling app.UseIdentityServer() in wrong order. I can't tell why this happens but if you call anything before app.UseIdentityServer() it causes this kind of weird problem.

var app = builder.Build();
app.UseIdentityServer(); ->Call this first. 
app.UseStaticFiles();
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): face the same issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: MonkeyDLuffy

79206904

Date: 2024-11-20 11:08:16
Score: 7.5 🚩
Natty: 4.5
Report link

Im running 2 vm's, both on 443 with ssl certificates on each vm. The host machine is 192.168.1.50 I want to run nginx as a reverse proxy that forwards requests to the vm's depending on the url called. So if someone types https://bbb.bbb.com/es3 nginx needs to forward the request to 192.168.1.51 But if someone types https://aaa.aaa.com then nginx needs to forward the request to 192.168.1.52

each VM has the corresponding ssl certificate already installed, so no need to configure certs on nginx.

Any help with config would be appreciated

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help with config would be appreciated
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Low reputation (1):
Posted by: ecallaw

79206903

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

To check the confidence score for each individual character recognized by PaddleOCR, you can modify the decode() function in the BaseRecLabelDecode class. This class is located in your virtual environment at:

venv/lib/python3.9/site-packages/paddleocr/ppocr/postprocess/rec_postprocess.py

By default, the OCR returns the mean confidence score for all characters in the detected text within a bounding box. Updating the decode() function will allow you to access the confidence score of each character individually after the recognition process is completed.

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

79206899

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

As it has been said, the run doesn't hang, it wait for an agent to be free.

Usually when it stuck for too long, there will be a probleme in the agent machine, try to check logs.

You can use tags in order to match between the run and the agent capable to run it.

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

79206896

Date: 2024-11-20 11:06:16
Score: 1.5
Natty:
Report link

for hiding can use

dt.Columns["ColumnName"].ColumnMapping = MappingType.Hidden;

for showing

dt.Columns["ColumnName"].ColumnMapping = MappingType.Element;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Prins Alvino

79206891

Date: 2024-11-20 11:04:15
Score: 1
Natty:
Report link

0

Hit same issue 1 week ago, thought I would update with my findings.

Found that MS had released an update to the package https://github.com/microsoft/azure-pipelines-tasks/commit/bcbc0c9f3367ce02cbb916695b0aae75cf41d4f2

This now expects a new parameter enableXmlTransform, setting this to false works.

- task: FileTransform@2
  displayName: "Transform Json"
  inputs:
      folderPath: '$(System.DefaultWorkingDirectory)/**/'
      enableXmlTransform: false
      jsonTargetFiles: '**/angular.json'
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28393544

79206890

Date: 2024-11-20 11:04:15
Score: 3.5
Natty:
Report link

sum(last_60m, inc_value_change) = 10 + 5 + 15 + (-3) + 2 = 29

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

79206889

Date: 2024-11-20 11:03:15
Score: 3
Natty:
Report link

In my case, the valid solution did not work. This was the version of spring-data-jpa dependency that did not match the right one to be used with Spring version 6.1.

Hoping it will help someone else.

Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: AnthonyAtVIF

79206888

Date: 2024-11-20 11:02:15
Score: 1
Natty:
Report link

It was due to some extra params being passed in the request after removing those it worked fine.

curl -X GET -G \ --url 'https://api.mindbodyonline.com/public/v6/client/clients' \ -H 'Accept: application/json' \ -H 'siteId: -99' \ -H 'authorization: auth token' \ -H 'API-Key: apikey' \ -d 'request.includeInactive=false' \ -d 'request.isProspect=false' \
-d 'request.lastModifiedDate=2024-11-01T00%3A00%3A00Z' \ -d 'request.limit=1000'

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Omer

79206883

Date: 2024-11-20 11:01:14
Score: 11.5 🚩
Natty: 6
Report link

Was it resolved? Any solution? I am facing the same issue. Pls reply.

Reasons:
  • Blacklisted phrase (1.5): Any solution
  • RegEx Blacklisted phrase (1.5): resolved?
  • RegEx Blacklisted phrase (2): Any solution?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Was it
  • Low reputation (0.5):
Posted by: NIKHIL CHAURASIA

79206878

Date: 2024-11-20 10:59:13
Score: 3
Natty:
Report link

When this happened to me the ngrok binary was being removed automatically as it was falsely seen as a security threat.

MacOS Sonama 14.7, M1.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): When this
  • Low reputation (1):
Posted by: BlueMoonie

79206876

Date: 2024-11-20 10:58:13
Score: 1.5
Natty:
Report link

#include

typedef struct { typedef struct { int x, y, z;
}poi; poi pi;

}point;

int main(){

point pt;
pt.pi.x= 5;
std::cout << pt.pi.x << std::endl;

}

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

79206874

Date: 2024-11-20 10:57:12
Score: 2
Natty:
Report link

Use axios for timeout instead of fetch api.

The Fetch API usually has a default timeout that varies across browsers.

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

79206865

Date: 2024-11-20 10:55:12
Score: 2.5
Natty:
Report link

For who want to using "--user-data-dir=" and "--profile-directory=".

  1. "--user-data-dir=<Path_to_directory_on_your device>": this path must be exist, if it not exist, create it.

2."--profile-directory=<Name_Of_Folder>" :Any name you want to name: Defaul/Profile1/Profile3,... ,this folder will be created automatic when chrome instance is created.

Here is my example code using java. It's similar for python.

    ChromeOptions options = new ChromeOptions();
    userDataDir = "/home/myuser/userDataDir";
    try {
        File file = new File(userDataDir);
        if (!file.exists()) {
            Files.createDirectory(
                    Paths.get(userDataDir));
        }
    } catch (IOException e) {
        throw new RuntimeException(e);
    }

    createdUserDataDir = "--user-data-dir=" + userDataDir;
    createdProfileDir = "--profile-directory=" + "profileName";
    chromeOptions.addArguments(createdUserDataDir);
    chromeOptions.addArguments(createdProfileDir);

    WebDriver driver = new ChromeDriver(chromeOptions);
    driver.get("https:www.facebook.com")

Anyway, I customized "--user-data-dir=" and "--profile-directory=" to use different profiles on each instance of chrome, but this not solved the issue: maximum of attemps, try again later. Anyone worked out to pass this issue, please help bro.

Reasons:
  • RegEx Blacklisted phrase (3): please help
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: xnt4ever

79206862

Date: 2024-11-20 10:55:12
Score: 2
Natty:
Report link

you can have a look at this other question: How to define a LaTeX macro in a Markdown cell of a Jupyter Notebook? (and its answer).

To be more generic: a notebook executes all the LaTeX commands in the same LaTeX environment.

It implies that you can write

[In one cell]: This is a Marco definition: $\def\Qc{Q^N_i}$ and use it in a formula of the same cell $\Qc=3$.

And you can later

[in another cell] Use it again $A=3\times \Qc$.

It will be visible as: enter image description here

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

79206858

Date: 2024-11-20 10:54:12
Score: 1
Natty:
Report link

If anyone bumps into this issue:

In .NET 9 there is now a built in feature for this:

What's new in ASP.NET Core 9.0 Static asset delivery optimization

See also: ASP.NET Core Blazor static files Static asset delivery in server-side Blazor apps

this also works for WASM.

Short version:

Adding Assets

<link rel="stylesheet" href="@Assets["bootstrap/bootstrap.min.css"]" />
<link rel="stylesheet" href="@Assets["app.css"]" />
<link rel="stylesheet" href="@Assets["BlazorSample.styles.css"]" />

Replacing middleware:

+app.MapStaticAssets();
-app.UseStaticFiles();
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: S Mxller

79206857

Date: 2024-11-20 10:53:11
Score: 0.5
Natty:
Report link

This is a known bug in jetpack compose material library, and it has been finally fixed and released in

androidx.compose.material3:material3-*:1.4.0-alpha03

See release notes

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

79206855

Date: 2024-11-20 10:53:11
Score: 5.5
Natty: 8
Report link

HELLO WORLD MY NAME IS ALESIA I AM FROM USA.I NEED 200 DOLLARS TO GO BACK TO NAVODARI🥰🥰🥰

Reasons:
  • Blacklisted phrase (0.5): I NEED
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alesia

79206846

Date: 2024-11-20 10:51:10
Score: 1
Natty:
Report link

Try:

rm -rf node_modules package-lock.json

npm audit fix --force

npm install

npm dedupe

It worked for some people on github, but not for me. Ig happened after i upgraded to expo 52.

Reasons:
  • Whitelisted phrase (-1): It worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: שלו כהן

79206845

Date: 2024-11-20 10:51:10
Score: 1.5
Natty:
Report link

The error "Cursor window allocation of 2097152 bytes failed" indicates that Firestore's internal SQLite operations are attempting to allocate a large cursor window but failing due to memory constraints. This issue arises because Firestore uses SQLite under the hood to store and manage data locally (cache).

The crash might be due to:

Large Query Results: A single Firestore query fetching a large dataset. Memory Usage Constraints: The device running out of available memory for this operation. Internal Firestore Bug: Potential inefficiencies in the way Firestore handles local data in its SQLite database.

Suggested Solutions: Optimize Queries: Ensure Firestore queries are well-optimized to limit the amount of data being fetched. Use pagination for large datasets:

FirebaseFirestore.getInstance().collection("yourCollection")
    .orderBy("field")
    .limit(50) // Fetch data in batches
    .get()

Disable Local Persistence (if feasible): If local persistence is not critical for your app, consider disabling it. This avoids SQLite operations altogether:

FirebaseFirestoreSettings settings = new FirebaseFirestoreSettings.Builder()
    .setPersistenceEnabled(false)
    .build();
FirebaseFirestore.getInstance().setFirestoreSettings(settings);

this consider as general guidelines also if have additional information please provide us with

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide us
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ayman omara

79206844

Date: 2024-11-20 10:50:09
Score: 8.5 🚩
Natty: 5.5
Report link

Have you found an answer for this?

Reasons:
  • RegEx Blacklisted phrase (2.5): Have you found an answer for this
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andrew Haine

79206843

Date: 2024-11-20 10:50:08
Score: 3
Natty:
Report link

Changing System.Data.SqlClient to newer Microsoft.Data.SqlClient resolved the issue.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Aditya Bokade

79206838

Date: 2024-11-20 10:48:08
Score: 3.5
Natty:
Report link

just try out Daemondark solution if you have tried everything and it's still not working

It worked for me after adding in my index.html

i tried and it helped fixed my problem

Reasons:
  • Blacklisted phrase (1): ve tried everything
  • Blacklisted phrase (2): still not working
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Michael

79206835

Date: 2024-11-20 10:48:08
Score: 1
Natty:
Report link

Dayjs doesn't support DST. There's a GitHub issue regarding this, which has been opened since 2020: https://github.com/iamkun/dayjs/issues/1271.

I migrated my app to use Luxon because DST is important for us. Check out the timezones docs for Luxon here: https://github.com/moment/luxon/blob/master/docs/zones.md

Side note: there's a noticeable difference in bundle size between the two libraries. I'm using Luxon on server-side so bundle size is not as important as it is on client-side. You might as well check other options for date libraries (date-fns, moment.js) but first check if they support DST.

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

79206834

Date: 2024-11-20 10:48:08
Score: 0.5
Natty:
Report link

After thorough investigation, I realized that the issue wasn’t directly related to navigation but rather to a style that impacts scroll behavior in the MudBlazor library. Specifically, the following CSS is predefined in MudBlazor:

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

This smooth scroll behavior can cause a visible "jump" effect for users. The solution was to override this style as follows:

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: auto !important;
    }
}

With this adjustment, the issue was completely resolved. I also noticed that the default Blazor templates exhibit similar behavior, so it might be worth reviewing and tweaking this style if you encounter the same problem.

I hope this solution helps others dealing with a similar issue. Thanks to everyone for your suggestions and insights!

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

79206824

Date: 2024-11-20 10:43:07
Score: 3
Natty:
Report link

Yes, but reduction_percent and reduction_amount only is reflected when the discount comes from a catalog rule.

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

79206822

Date: 2024-11-20 10:42:06
Score: 1
Natty:
Report link

The issue is that you have parsed the json in the template, what you want is:

##velocity template

#set($output=$input.json('$.output'))

#set($context.responseOverride.status=$input.path('$.output.statusCode')

https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#input-variable-reference

The .json function of the input object will convert it to a json string istead of an object internally in VTL

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: A. van Loon

79206820

Date: 2024-11-20 10:41:06
Score: 2
Natty:
Report link

You could always use the switches

-bsp0 Show no progress

-bso0 Show no output - except Errors

-bse0 Show no errors (You'll have to be confident in your exception handling to use that one)

-bd Show no progress bar

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

79206811

Date: 2024-11-20 10:39:06
Score: 2
Natty:
Report link

Try this in your pipeline and execute

npm cache clean --force rm -rf ~/.npm

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: venkata ramesh

79206804

Date: 2024-11-20 10:36:05
Score: 0.5
Natty:
Report link

A good practice would be to have a control over the jobs you launch. I mean, you can generate unique IDs for the jobs and then you can check their status and what to do with them. Practical example in python: I want to load data from a csv. I create a unique job_id using the hashlib library

import hashlib
file_name = ‘data.csv’
job_id = hashlib.sha256(file_name.encode()).hexdigest()

Next, I'll launch the job

from google.cloud import bigquery

client = bigquery.Client()
job_config = bigquery.LoadJobConfig(...)
uri = ‘gs://your_bucket/data.csv’

job = client.load_table_from_uri(
    uri,
    ‘your_dataset.your_table’,
    job_config=job_config,
    job_id=job_id
)

If I want to check what state it is in, I can use the following command from the bq console (https://cloud.google.com/bigquery/docs/reference/bq-cli-reference?hl=es-419#bq_show):

bq show --job <PROJECT_ID>:<JOB_ID>

With this we will verify in which state is the job and therefore, if you want to run it again or wait for it to finish (with error or not) so you don't get the duplicity you are talking about.

I hope this is useful for you!

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: var0hub

79206797

Date: 2024-11-20 10:34:04
Score: 0.5
Natty:
Report link
when you have stop the your Ec2 Ubuntu server and start again you public ip was changed in that case you follow the steps
 1.step you can check your 8080 port allow in your virtual server security 
   group 
 2.Step Check your ec2 server memory(RAM) and cpu load 
 
 3.step Edit your jenkins.model.JenkinsLocationConfiguration.xml file and 
    put the new public ip your ec2 server 
 $$sudo nano /var/lib/jenkins/jenkins.model.JenkinsLocationConfiguration.xml
 -----------------------------------------------------
  ?xml version='1.1' encoding='UTF-8'?>
 <jenkins.model.JenkinsLocationConfiguration>
  <jenkinsUrl>http://new_ip:8080/</jenkinsUrl>
</jenkins.model.JenkinsLocationConfiguration>
-----------------------------------------------------
and save this file and restart jenkins service`enter code here`
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28393846

79206793

Date: 2024-11-20 10:32:03
Score: 4
Natty:
Report link

As a solution, we had to use osdfs (Legacy)

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):
Posted by: skyho

79206783

Date: 2024-11-20 10:29:03
Score: 2
Natty:
Report link

Docker container made by the image is a isolated space which depend on our host OS Kernal using docker. so they wanted to make it much smaller and lighter as they can, to do that they drop many things even GUI(which even us drop on purpose some times in VMs to save some specs) and it does only have some libraries (I coudn't even run "systemctl"). this is how they make it lighter and hope you find the answer ..

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

79206782

Date: 2024-11-20 10:28:02
Score: 3.5
Natty:
Report link

Most likely it is related to the hosting (or server) configuration. Some hosting (like Vercel) does not support sockets. https://vercel.com/guides/do-vercel-serverless-functions-support-websocket-connections

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Денис Ящук

79206781

Date: 2024-11-20 10:28:02
Score: 1.5
Natty:
Report link

You can smooth the input over time for slightly less precision but less jitter. Using Cinemachine will do that automatically for you. Just have an empty gameobject that takes the actual mouse movements and a virtual camera with smooth follow.

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

79206760

Date: 2024-11-20 10:24:01
Score: 0.5
Natty:
Report link

I tried following options:

  1. Retrieving the seed via reflection as stated in the linked answer does not work for me (yielding a java.lang.reflect.InaccessibleObjectException)
  2. Creating a new prng with the same seed and progressing it to the same state
  3. Serializing, (saving & loading), de-serializing the same object

For me, the 1st option seems to be the most problematic, relying on implementation specifics. The 2nd option is not elegant in that it wastes computing time. The 3rd option seems to be the closest to my requirements.

Following I attach my test source-code for anyone running into the same requirements:

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.Field;
import java.util.Random;
import java.util.concurrent.atomic.AtomicLong;

public class PrngSaveLoadTest {

    public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException, IOException, ClassNotFoundException {
        long initialSeed = 4;
        final Random prng1 = new Random(initialSeed);
        int amountOfSteps = 0;
        // Generate arbitrary amount of random numbers
        for (int i = 1; i <= 21; i++) {
            prng1.nextInt();
            amountOfSteps++;
        }
        // TODO: Save state
        // TODO: Load state later, continuing with the same random numbers as if it were the same random number generator

        // Option 1: Use reflection to get internal seed of prng1 - does not work, throws exception
        //final Random prngRestoredBySeed = new Random(getSeed(prng1));
        //System.out.println("Should be identical: " + prng1.nextInt() + " =!= " + prngRestoredBySeed.nextInt());

        // Option 2: Progress the second prng instance the same amount of numbers - works
        final Random prngRestoredByProgress = new Random(initialSeed);
        progressPrng(prngRestoredByProgress, amountOfSteps);
        System.out.println("Should be identical: " + prng1.nextInt() + " =!= " + prngRestoredByProgress.nextInt());

        // Option 3: Serialize, save, load, deserialize the prng instance
        byte[] serializedPrng = serializePrng(prng1);
        Random prngRestoredBySerialization = deserializePrng(serializedPrng);
        System.out.println("Should be identical: " + prng1.nextInt() + " =!= " + prngRestoredBySerialization.nextInt());

    }

    /**
     * See https://stackoverflow.com/a/29278559/1877010
     */
    private static long getSeed(Random prng) throws NoSuchFieldException, IllegalAccessException {
        long theSeed;
        try {
            Field field = Random.class.getDeclaredField("seed");
            field.setAccessible(true);
            AtomicLong scrambledSeed = (AtomicLong) field.get(prng);   //this needs to be XOR'd with 0x5DEECE66DL
            theSeed = scrambledSeed.get();
            return (theSeed ^ 0x5DEECE66DL);
        } catch (Exception e) {
            //handle exception
            throw e;
        }
    }

    private static void progressPrng(Random prng, long amountOfSteps) {
        for (long i = 1; i <= amountOfSteps; i++) {
            prng.nextInt();
        }
    }

    private static byte[] serializePrng(Random prng) throws IOException {
        try (ByteArrayOutputStream baos = new ByteArrayOutputStream(128);
             ObjectOutputStream oos = new ObjectOutputStream(baos)) {
            oos.writeObject(prng);
            return baos.toByteArray();
        }
    }

    private static Random deserializePrng(byte[] serializedPrng) throws IOException, ClassNotFoundException {
        try (ByteArrayInputStream bais = new ByteArrayInputStream(serializedPrng);
             ObjectInputStream in = new ObjectInputStream(bais)) {
            // Method for deserialization of object
            return ((Random) in.readObject());
        }
    }
}
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: DaHoC

79206755

Date: 2024-11-20 10:23:01
Score: 2.5
Natty:
Report link

You can always click on the sidebar button on the top right that Says Add Editor on the Right and then choose the file you want to show on the editor from the side bar file explorer.

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

79206750

Date: 2024-11-20 10:22:01
Score: 0.5
Natty:
Report link

[20/11, 3:36 pm] 👨‍👨‍👦: From a manual testing perspective, I consistently take ownership of all assigned tickets without rejecting any. For each ticket, I actively collaborate with the relevant developers and stakeholders to gather the required knowledge through effective knowledge transfer (KT). I then create a well-structured test plan, initiate the testing process, and ensure its completion within the agreed timeline, demonstrating my reliability and commitment to delivering quality results. [20/11, 3:40 pm] 👨‍👨‍👦: From an automation perspective, I take ownership of every assigned automation ticket and begin by analyzing the requirements. If reusable methods are needed, I prioritize developing them first to ensure efficiency. I then proceed with the automation work, maintaining a strong focus on quality by comparing actual and expected results at each step. I ensure the completion of automation tasks within the stipulated timelines. If additional time is required, I willingly dedicate extra hours, including weekends, to meet deadlines. I also seek peer reviews from my senior team members to gain feedback on my code and approach, and I incorporate their suggestions by thoroughly analyzing and reworking as needed. This reflects my commitment to delivering high-quality automation solutions.

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

79206748

Date: 2024-11-20 10:21:00
Score: 1.5
Natty:
Report link

There are no known issues with this. My guess is that you are not doing something that would make the wait set stop triggering.

For example, this read condition triggers whenever there is unread (and "alive") data in the reader. If you don't read what's present, it'll keep triggering forever.

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

79206733

Date: 2024-11-20 10:18:00
Score: 1.5
Natty:
Report link

Got the same error message.

The file to be compiled is included more than once in project file?

Unload project, locate the file name in the project file (multiple places?), compare to similar type of file to find out what to keep and what to remove, remove the duplicate in the project file.

Clean and recompile.

Solved my issue.

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

79206730

Date: 2024-11-20 10:18:00
Score: 3
Natty:
Report link

Do you have the HasApiTokens trait in your User model?

I would also say try to explicitly use the sanctum guard then share response.

public function getMe(Request $request): JsonResponse
{
 // Explicitly use sanctum guard
 $user = auth('sanctum')->user();

 // Die and dump user to see what you're getting back on login
 dd($user);

 return ApiResponse::success('', ['user' => $user]);
}
Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have the
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Kyle Mabaso

79206723

Date: 2024-11-20 10:15:59
Score: 1
Natty:
Report link

Hit same issue 1 week ago, thought I would update with my findings.

Found that MS had released an update to the package https://github.com/microsoft/azure-pipelines-tasks/commit/bcbc0c9f3367ce02cbb916695b0aae75cf41d4f2

This now expects a new parameter enableXmlTransform, setting this to false works.

- task: FileTransform@2
  displayName: "Transform Json"
  inputs:
      folderPath: '$(System.DefaultWorkingDirectory)/**/'
      enableXmlTransform: false
      jsonTargetFiles: '**/angular.json'
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28393544

79206721

Date: 2024-11-20 10:15:58
Score: 5.5
Natty:
Report link

Yes it worked, but still when I then go on whatsapp, i see my conversation with the phone number and not the display name. I only see this once I click on the profile. Any idea how to solve this?

Reasons:
  • Blacklisted phrase (1): how to solve
  • Whitelisted phrase (-1): it worked
  • RegEx Blacklisted phrase (1.5): how to solve this?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: xabieririzar

79206720

Date: 2024-11-20 10:14:58
Score: 2
Natty:
Report link

To reuse a custom function based on QGIS processing tools in another script, define it as a standalone Python function within that script. Make sure to import the necessary QGIS processing modules and ensure that the function parameters match the input requirements. You can then call this function wherever needed in your new script.

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

79206710

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

If you're always inserting a string there, it might be better to use a computed_field. Something along this, maybe?

class MyModel(BaseModel):
    input: str

    @computed_field
    def x(self) -> int:
        return len(self.input)

I think it's very counterintuitive if you see the model with the int declaration while it would raise type errors if you put an integer inside a JSON at that place.

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

79206706

Date: 2024-11-20 10:10:57
Score: 1
Natty:
Report link

This trouble can be the result of the INLIGNING of the function that's by default. Try to create your function with a WITH clause that contains INLINE = OFF and Test it.

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

79206704

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

If you add "X-Requested-With": "XMLHttpRequest" to your ajax request header the storePreviousURL() method will skip storing the url, and your redirect()->back() should start work as you expect again.

Read more here: https://codeigniter.com/user_guide/general/ajax.html

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

79206702

Date: 2024-11-20 10:08:56
Score: 2.5
Natty:
Report link

The error occurs because cy.get() is trying to find the element immediately. To fix this, use cy.get() with {timeout: 0} to avoid waiting for the element, and then check its length. If it doesn’t exist, proceed with the next action.

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

79206697

Date: 2024-11-20 10:07:56
Score: 0.5
Natty:
Report link

I wasn't able to resolve the issue, but I found a workaround:

  1. do mvn clean install to download all dependencies required to build the project

  2. do mvnd -nsu -o clean install to run mvnd in offline mode

  3. if you get errors indicating that some dependencies are missing, for example:

[ERROR] dependency: org.mockito:mockito-core:jar:1.9.5 (provided)
[ERROR]     Cannot access public (https://nexus-ci.com/repository/public/) in offline mode and the artifact org.mockito:mockito-core:jar:1.9.5 has not been downloaded from it before.

just download required dependency: mvn dependency:get -DgroupId=org.mockito -DartifactId=mockito-core -Dversion=1.9.5

and do mvnd -nsu -o clean install again

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

79206694

Date: 2024-11-20 10:06:56
Score: 2.5
Natty:
Report link

Can you try adding the wallet by setting NODE_EXTRA_CA_CERTS. https://github.com/oracle/node-oracledb/issues/1593

Reasons:
  • Whitelisted phrase (-2): Can you try
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Sudeep Reguna

79206693

Date: 2024-11-20 10:06:56
Score: 3
Natty:
Report link

Hard to tell without seeing your code. It seems you execute your function inside the QGIS python console but if not you have to add the processing path to your python path. Such as : "/path/to/qgis/processing/share/qgis/python/plugins"

Kanash

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

79206688

Date: 2024-11-20 10:05:55
Score: 0.5
Natty:
Report link

This URL s helpfull - [[1]: https://github.com/spring-projects/spring-boot/issues/12979][1] What helped me is adding @Import(CustomExceptionHandler.class)

@WebMvcTest
@Import(CustomExceptionHandler.class)
public class SampleControllerTest {
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mahesh Revaskar

79206666

Date: 2024-11-20 10:01:54
Score: 1
Natty:
Report link

AttributeError: type object 'Pinecone' has no attribute 'from_existing_index'.

This happenes when there are two Pinecones that you installed when importing from langchain.vectorstore and also pinecone itself. so I the method so called 'from_existing_index' only exist in Pinecone from langchain. so when import from langchain ... use this:: 'from langchain.vectorstores import Pinecode as Pi' and then use Pi when you are trying to access the attribute 'from_existing_index'

I hope you understood it.

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

79206651

Date: 2024-11-20 09:56:53
Score: 1.5
Natty:
Report link

You are missing:

Add-Type -AssemblyName PresentationFramework

At the top of your script.

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

79206647

Date: 2024-11-20 09:54:52
Score: 2.5
Natty:
Report link

If you want to avoid MultiBinding, or if, for example you are on UWP or WinUI where MultiBinding is not supported, you could also use ContentControl as container control and set there the other IsEnabled binding.

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

79206623

Date: 2024-11-20 09:50:51
Score: 0.5
Natty:
Report link

So I finally figured it out, I think but basically it came down to a styling problem in my code.

I'm using react and I had done the following in my layout.tsx

return (
    <SidebarProvider>
      {/* menu sidebar */}
      <AppSidebar />
      <div className="flex flex-col flex-1">
        {/* header */}
        <AppHeader />

        {/* main content */}
        <main className="flex-1">{children}</main>

        {/* footer */}
        <Footer />
      </div>
    </SidebarProvider>`

For whatever reason, I'm not a css expert, but it looks like the flex-1 in the <main> was conflicting with the parent div. All is to say that the parent div was already manaing the container size and after removing className="flex-1" from <main> all was working and no more recurring resizing.

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

79206619

Date: 2024-11-20 09:49:51
Score: 0.5
Natty:
Report link

For me the best solution was to replace Reformat code with Reformat File... Normally when you want to format the code, you hit CTRL+ALT+L. I removed CTRL+ALT+L from Reformat Code and assign it to Reformat File:

enter image description here

And when I hit CTRL+ALT+R, intellijIDEA shows me Reformat File dialog:

enter image description here

Which I can select only changes uncommited to VCS

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

79206616

Date: 2024-11-20 09:49:51
Score: 1
Natty:
Report link

It makes sense because Enemy Dead State should only ever deactivate the SpriteRenderer if you wish so.

Solution 1

From here, check if EnemyDead animation is set to loop. If it is - uncheck it. It should not be looping.

Solution 2

Separate into two states:

AnyState -> EnemyDying -> EnemyDead (Has Exit Time = true)

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

79206615

Date: 2024-11-20 09:48:50
Score: 1
Natty:
Report link

If your node version is 22, try dropping to 20; it worked for me. Node versions higher than 20 will also throw this.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arunkumar R

79206605

Date: 2024-11-20 09:45:50
Score: 0.5
Natty:
Report link

I found a solution how to configure yGuard to exclude the one method in a class:

            ...
            "rename"("logfile" to "${projectDir}/build/${rootProject.name}_renamelog.xml") {
                "keep" {
                    "class"(
                        "name" to "my.x.y.ProcessUtil",
                    )
                    "method"(
                        "name" to "boolean doProcess()",
                        "class" to "my.x.y.ProcessUtil"
                    )
                }

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

79206604

Date: 2024-11-20 09:45:49
Score: 6.5 🚩
Natty:
Report link

I have the same question as Download all excel files from a webpage to R dataframes But with the url-page https://www.swissgrid.ch/de/home/customers/topics/energy-data-ch.html the xlsx-files are not found with the proposed solution cod

Reasons:
  • Blacklisted phrase (1): I have the same question
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same question
  • Single line (0.5):
  • Low reputation (1):
Posted by: Venom

79206597

Date: 2024-11-20 09:43:48
Score: 1.5
Natty:
Report link

Trivial, but I had the same issue and fixed it by restarting my expo app. I was editing the paths while running the app.

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

79206592

Date: 2024-11-20 09:43:48
Score: 3
Natty:
Report link

In my case, i had to delete load balancer and and also VPC along with its associated security group.

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

79206579

Date: 2024-11-20 09:40:48
Score: 3.5
Natty:
Report link

You can try to go here : https://reshax.com/forum/4-tutorials/ . You can find many different tutorial how to start..

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

79206569

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

May use the '{:.2f}'.format() approach in Jinja2.

{{'{:.2f}'.format(value|float)}}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sanaulla Haq

79206535

Date: 2024-11-20 09:29:44
Score: 1
Natty:
Report link

Creating one child process per website can quickly overwhelm your system, leading to resource exhaustion. Instead, consider: • Using a Task Queue System: Leverage a queue (e.g., BullMQ) to manage and distribute scraping jobs. You can process tasks concurrently with a controlled level of concurrency to avoid overloading the system. • Pooling Child Processes: Use a process pool (libraries like generic-pool can help). Create a limited number of child processes and reuse them to handle scraping tasks in a more resource-efficient manner.

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

79206534

Date: 2024-11-20 09:29:44
Score: 2.5
Natty:
Report link

Put this code by jquery into your work: $('[data-toggle="tooltip"]').popover({ html: true, trigger: 'hover', //Change to 'click' if you want to get clicked event placement: 'left', });

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Mr. Jupiter

79206521

Date: 2024-11-20 09:26:43
Score: 1
Natty:
Report link
def printHex(n):
    if n > 15:
        printHex(n // 16)
    nn = n % 16
    if nn == 10:
      print("A", end="")
    elif nn == 11:
      print("B", end="")
    elif nn == 12:
      print("C", end="")
    elif nn == 13:
      print("D", end="")
    elif nn == 14:
      print("E", end="")
    elif nn == 15:
      print("F", end="")
    else:
      print(nn, end="")
    
n = int(input())
printHex(n)
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: evgen

79206520

Date: 2024-11-20 09:26:43
Score: 0.5
Natty:
Report link

The following did the trick in the application.yml

spring:
  r2dbc:
    url: tbd
    username: tbd
    password: tbd

and then in the Docker file re-define:

services:
  app:
    image: 'docker.io/library/postgresql-r2dbc:0.0.1-SNAPSHOT'
    depends_on:
      db:
        condition: service_healthy
    environment:
      - 'SPRING_R2DBC_URL=r2dbc:postgresql://db:5432/postgres'
      - 'SPRING_R2DBC_USERNAME=postgres'
      - 'SPRING_R2DBC_PASSWORD=secret'
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Zoltan Altfatter

79206509

Date: 2024-11-20 09:22:43
Score: 1
Natty:
Report link

Same here.

Angular 18.2.12.

Angular language service 19.0.2 (latest) downgraded to 16.1.8

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

79206499

Date: 2024-11-20 09:19:42
Score: 1
Natty:
Report link

Simply Create A Page that contains a dropdown with different set of screen sizes and An Iframe. Assuming you have a set of screen sizes on your dropdown list, on selection change of your dropdown use those width and height values in your iframe tag.

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

79206497

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

The error ocure cause the Ambiguity in where the update operation must target a single record. When combining AND with OR could match multiple records so get error to solve this I get the origin data and apply condition on it after that update the data

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

79206489

Date: 2024-11-20 09:16:41
Score: 3
Natty:
Report link

At my side (Windows 10/11, Vector MakeSupport, cygwin/bash) creating a "tmp" dir as follows helped to solve the make invocation: "MakeSupport\cygwin_root\tmp"

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

79206484

Date: 2024-11-20 09:15:40
Score: 2.5
Natty:
Report link

change your pipelineServiceClientConfig's auth [username], i guess this 'admin' is airflow default user account, this default account maybe has some role error, i meet this same error as your, lasted i create a new account at airflow web ui,magical,it's success;

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

79206482

Date: 2024-11-20 09:15:40
Score: 2.5
Natty:
Report link

Two things to try out:

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

79206481

Date: 2024-11-20 09:14:40
Score: 1
Natty:
Report link
for element in soup.descendants:

means that you will iterate through all elements recursively. And text between brackets is children of "a" element, so it gets your paragraph twice. If you want to avoid this behavior, you could try to use

for element in soup.children:

instead

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

79206475

Date: 2024-11-20 09:13:40
Score: 0.5
Natty:
Report link

Nowadays, __gcov_flush() as proposed by Zan Lynx does not longer exist.

Use __gcov_dump() instead.

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

79206473

Date: 2024-11-20 09:12:39
Score: 4.5
Natty: 5
Report link

I think this website should help https://www.rebasedata.com/convert-bak-to-csv-online

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

79206472

Date: 2024-11-20 09:12:39
Score: 1.5
Natty:
Report link

The problem is indeed the Docker image eclipse-temurin:21-jre-jammy. clj-async-profiler requires JDK to work. Using e.g. eclipse-temurin:21-jdk-noble should work.

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

79206467

Date: 2024-11-20 09:10:38
Score: 1
Natty:
Report link

It may not be exact answer to you question, we don't know what code is inside controller but few things worth checking:

Type of response that comes from ReportController and what headers there are. eg, taken from domPDF we are using in our project: `

public function stream(string $filename = 'document.pdf'): Response
{
    $output = $this->output();

    return new Response($output, 200, [
        'Content-Type' => 'application/pdf',
        'Content-Disposition' => 'inline; filename="'.$filename.'"',
    ]);
}`

Another solution can be response()->download() or response()->streamDownload() Documented here:

https://laravel.com/docs/10.x/responses#file-downloads

And if the file comes from the API, you might need this too:

https://www.npmjs.com/package/js-file-download

Lastly, I'm not sure if it's possible to download file same time using useForm helper(haven't tested it myself), so you might need to fallback for router.post() of axios/fetch requests.

Cheers.

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Paweł Górowicz

79206465

Date: 2024-11-20 09:09:38
Score: 12.5
Natty: 8.5
Report link

Did you get the answer how to solve this error??

Reasons:
  • Blacklisted phrase (1): how to solve this error
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (3): Did you get the answer
  • RegEx Blacklisted phrase (1.5): how to solve this error??
  • 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: Sarthak Kulkarni

79206454

Date: 2024-11-20 09:06:37
Score: 2.5
Natty:
Report link

The problem is still there, but I was able to work around it by linking directly to the View with NavigationLink without using navigationDestination.

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

79206452

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

[https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setUsbDataSignalingEnabled(boolean)]

This api can be used to disable usb functions other than charging for Android 11+ but requires additional permission and need device or profile owner privileges.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rehan P Zavi

79206441

Date: 2024-11-20 09:02:35
Score: 4
Natty:
Report link

The API to get project users at https://aps.autodesk.com/en/docs/acc/v1/reference/http/admin-projectsprojectId-users-GET/ supports both 2LO and 3LO access tokens

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

79206437

Date: 2024-11-20 09:00:34
Score: 2.5
Natty:
Report link

To retrieve the Android app's label name (application name) using its package name, you can utilize the aapt tool (part of Android SDK) and subprocess in Python. The process involves extracting the app's APK from the device and then reading its manifest for the label.

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

79206436

Date: 2024-11-20 09:00:34
Score: 6 🚩
Natty: 4.5
Report link

I facing a similar issue and I can't add background mode to the entitlement file via the property list and able to add via source code. how do you manage to add background mode on the entitlement file also background mode is not visible in the Apple developer account portal

Reasons:
  • Blacklisted phrase (1): how do you
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I facing a similar issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: yadu dataspot

79206428

Date: 2024-11-20 08:58:33
Score: 1.5
Natty:
Report link

solved by this command:

pip install moviepy==1.0.3 numpy>=1.18.1 imageio>=2.5.0 decorator>=4.3.0 tqdm>=4.0.0 Pillow>=7.0.0 scipy>=1.3.0 pydub>=0.23.0 audiofile>=0.0.0 opencv-python>=4.5
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Manveer Singh

79206417

Date: 2024-11-20 08:56:32
Score: 6
Natty: 7
Report link

@Shane may you post/link your solution? Would be useful

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @Shane
  • Low reputation (1):
Posted by: doomgrave

79206415

Date: 2024-11-20 08:55:32
Score: 1.5
Natty:
Report link

For completeness sake you can also add --hidden-import=chromadb.utils.embedding_functions.onnx_mini_lm_l6_v2.ONNXMiniLM_L6_V2. A user on Chroma discord confirmed this is working for them.

Ref: https://discord.com/channels/1073293645303795742/1308289061634707496

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

79206411

Date: 2024-11-20 08:53:31
Score: 0.5
Natty:
Report link

You probably should use the ID of the airport, like "JFK" or "LGA": https://en.wikipedia.org/wiki/List_of_airports_in_New_York_(state)

Check what values you have in the flights_airport table, the id column.

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

79206407

Date: 2024-11-20 08:50:30
Score: 1.5
Natty:
Report link

Like you can see in the error: "40D714598C7F0000:error:06800097:asn1 encoding routines:(unknown function):string too long:crypto/asn1/a_mbstr.c:106:maxsize=64". According to RFC3280, the CN cannot be longer than 64 bits.

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

79206400

Date: 2024-11-20 08:46:29
Score: 1.5
Natty:
Report link

It seems the origin_id column in the flights_flight table references the primary key of the flights_airport table. The value 'New York' in flights_flight.origin_id does not correspond to any valid id in the flights_airport table. So, ensure your foreign key relationship code in your modles.py, or check your data in your flights_flight table, maybe delete the row where flights_flight.origin_id = 'New York'

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

79206367

Date: 2024-11-20 08:34:26
Score: 1.5
Natty:
Report link

When you are using literal `` than just do a new line literally and that it. Example: (I'm using "" in the example because it's show my answer as code temple, lol. Just use literal instead in your code)

const testStr = " Hello,

World! ";

console.log(testStr);

/* Hello,

World! */

If you still don't see new line, than just add this in your css file (check in the browser inspect what the tag has those text value and add it there):

div .chart-text{ white-space: pre-line; or use white-space: pre-wrap; }

And if you can also use the regular "" with \n That can also works: "Last: \n" + lastValue

Let me know if it help you

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When you are
  • Low reputation (1):
Posted by: iman

79206354

Date: 2024-11-20 08:27:24
Score: 1.5
Natty:
Report link

macOS stores FindMy cache data in an unencrypted format at the following path on macOS 10 (Catalina), macOS 11 (Big Sur), macOS 12 (Monterey), and macOS 13 (Ventura):

$HOME/Library/Caches/com.apple.findmy.fmipcore/Items.data

This unencrypted cache has been verified on official Mac hardware (Intel/ARM), and Docker-OSX, but the docker VM approach may run into icloud issues.

If you just need 3rd Party API access (not within iOS), AirPinpoint supports both AirTags and third-party MFI trackers with a REST API

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