79541752

Date: 2025-03-28 14:55:37
Score: 2.5
Natty:
Report link

Try to visit Marketing Platform Home and then go to Administration section.

Administration section

3 years passed but maybe it'll help somehow/someone.

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

79541748

Date: 2025-03-28 14:53:37
Score: 3
Natty:
Report link

The seems to be a bug in version 3.0.5. I had to downgrade the version for it to work. I now using version 2.15.1 or 2.14.15. Try those.

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

79541744

Date: 2025-03-28 14:51:36
Score: 2
Natty:
Report link

So apparently, you need to do

sudo playwright install-deps
sudo playwright install

In sudo mode, i am not sure why it would be translated to a connection reset error though

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

79541740

Date: 2025-03-28 14:50:36
Score: 2
Natty:
Report link

As Craig said creating a .def solves the problem

LIBRARY MyDll
EXPORTS
    testBool1
    testBool2
    testBool3
    testBool4
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user30093107

79541738

Date: 2025-03-28 14:50:36
Score: 2.5
Natty:
Report link

Try disabling opcache by

opcache.enable=0

And if not working then,

codesign -v /opt/homebrew/Cellar/php/8.4.5_1/lib/php/20240924/opcache.so

Run this to verify signature of the opcache extension.

If not working clear safari cache.

If still not working try php 7.4 I hope it will be fine. And these should resolve the problem. Best of luck.

Reasons:
  • Blacklisted phrase (2): still not working
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nabil Bin Billal

79541735

Date: 2025-03-28 14:47:35
Score: 2
Natty:
Report link

In my case, restarting IIS, not just the website, proved to be the solution. Quick and easy.

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

79541730

Date: 2025-03-28 14:46:35
Score: 2
Natty:
Report link

I gave this a second try and this time I managed to adjust it to what I want. But now I would like to know if I can get the range rate, azimuth rate and elevation rate as well.

import spiceypy
import numpy as np
from datetime import datetime, timezone

# ######################################################################## #
# Based on code by Greg Miller ([email protected]) 2019               #
# Released as public domain                                                #
# https://astronomy.stackexchange.com/questions/33095/spice-alt-az-example #
# ######################################################################## #

spiceypy.furnsh('SPICE/Kernels/mk/metakernel.tm')

# Lat, Lon position of observer ------------------------------------------
'''
Here the coords are normal and in mytopo.tf they need to be:
    lon_mytypo = -lon_normal
    lat_mytypo = -(90-lat_normal)
'''
lat = np.radians(47.397490)
lon = np.radians(8.550440)
alt = 0.4995

# convert lat, lon to xyz ------------------------------------------------
obspos = spiceypy.georec(lon, lat, alt, 6378.1366, 1.0/298.25642)

# time of observation in UT ----------------------------------------------
et = spiceypy.datetime2et(datetime.now(timezone.utc))

# Get the xyz coordinates of the spacecraft relative to observer in MYTOPO frame (Correct for one-way light time and stellar aberration)
state_vector, light_time = spiceypy.spkcpo('JUICE', et, 'MYTOPO', 'OBSERVER', 'LT+S', obspos, 'EARTH', 'ITRF93')

# convert to polar coordinates
position = state_vector[0:3] # km
velocity = state_vector[3:6] # km/s

print(np.linalg.norm(velocity))

r, az, el = spiceypy.recazl(position, azccw=False, elplsz=True)

print(r, np.degrees(az), np.degrees(el))
Reasons:
  • Blacklisted phrase (1.5): I would like to know
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Akut Luna

79541728

Date: 2025-03-28 14:46:35
Score: 1
Natty:
Report link

I figured out the problem. The command worked fine when I ran it manually, and I eventually discovered that my automation script omitted the path to the cup file when passing the parameters.

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

79541723

Date: 2025-03-28 14:44:34
Score: 6.5 🚩
Natty: 5
Report link

Is that what are you looking for? https://uikit.plus/snippets/uikit-navigation-wrapping-67e689903549eccccc871a8b

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is that
  • Low reputation (0.5):
Posted by: Gordon Freeman

79541722

Date: 2025-03-28 14:43:33
Score: 1.5
Natty:
Report link

Today, one of my users encountered this error in docekr + Nuxt3. The auth secret configured by the environment variable was roughly: NUXT_AUTH_SECRET: "20250320". I asked him to try to add a letter to the number, and the error message disappeared. It seems that pure numbers cannot be used as the secret of jwt? I recorded it here and hope it will be helpful to everyone~

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 月上老狗

79541719

Date: 2025-03-28 14:42:33
Score: 0.5
Natty:
Report link

In this context GraphQL should be seen as a higher level protocol than HTTP. Standard HTTP mechanisms for evaluating availability still work, but may not provide the full picture, while still being valid. Still a non-2xx response code for HTTP is a valid indicator or error.

What you are asking is similar to trying to evaluate availability of HTTP just by relying on TCP metrics (lower level transport protocol).

There isn't a well established mechanism that is de-facto standardized. What makes it even tricky is that GraphQL can also work over other transports (WebSocket or MQTT).

If you are using a popular off the shelf GraphQL server likely it already has some metrics that it provides.

If you are using a custom implemented the following custom metrics could indicate issues:

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

79541703

Date: 2025-03-28 14:34:30
Score: 6.5 🚩
Natty: 4
Report link

is the spark support removed now https://github.com/alteryx/featuretools/releases/tag/v1.31.0

any plans to add the spark support in later versions ?

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): is the
  • Low reputation (1):
Posted by: Shashikant Deore

79541691

Date: 2025-03-28 14:31:29
Score: 2.5
Natty:
Report link

First, like I see others also said already, I don't think you should be keeping the token in the local storage.

I believe localStorage.removeItem should work, perhaps your name/path to the token ('accessToken') is incorrect.

I see it's a pretty old question, but hopefully that could help someone else. =)

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

79541684

Date: 2025-03-28 14:29:29
Score: 0.5
Natty:
Report link

Do the genes have to be strictly consecutive (i.e. adjacent) ? if not:

You can get the duplicated genes, then for each of them get all the rows that match it, then loop over them to add a suffix


import pandas as pd

df_genes_data = {"gene_id": ["g0", "g1", "g1", "g2", "g3", "g4", "g4", "g4"]}
df_genes = pd.DataFrame.from_dict(df_genes_data)
print(df_genes.to_string())

duplicated_genes = df_genes[df_genes["gene_id"].duplicated()]["gene_id"]
for gene in duplicated_genes:
    df_gene = df_genes[df_genes["gene_id"] == gene]
    for i, (idx, row) in enumerate(df_gene.iterrows()):
        df_genes.loc[idx, "gene_id"] = row["gene_id"] + f"_TE{i+1}"

print(df_genes)

out:

  gene_id
0      g0
1  g1_TE1
2  g1_TE2
3      g2
4      g3
5  g4_TE1
6  g4_TE2
7  g4_TE3

if they have to be strictly adjacent then the answer would change

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

79541682

Date: 2025-03-28 14:29:29
Score: 1.5
Natty:
Report link

no library will be good, so craft all encoding by hand or patch some library

Well... for this case, you need a deep knowledge of how ffmpeg works. I found a free book on Google search.

use library that allows such low level manipulation of key frames metadata

There is an example of how to parse MP4 file in Rust: dump-frames.rs

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Thor-x86_128

79541678

Date: 2025-03-28 14:27:28
Score: 1
Natty:
Report link

This is hole counting

Hole 1 = (0,0)(1,0)(2,0)(2,1)(2,2) all connected so one hole

Hole 2 = (1,3)

Hole 3 = (3,4)

In the second example the 3 zeroes is hole and (1,3) last is another hole

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: Kris Swat

79541673

Date: 2025-03-28 14:25:27
Score: 4
Natty:
Report link

After 2 days of searching, I didn't find any solution so, I just use react-hook-observer and threshold works as intended, I do not know whether or not it's react thing that threshold doesn't work but I couldn't find any answers online. So for now I am happy to share that everything works much better.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Zura Gabichvadze

79541666

Date: 2025-03-28 14:20:26
Score: 0.5
Natty:
Report link

By using the g++ -S main.cpp to generate main.s, we can see that _ZN4BaseD1Ev is an alias for _ZN4BaseD2Ev. I believe this is a compiler optimization: in the absence of virtual base classes, the complete object destructor can reuse the implementation of the base object destructor, that is, both share the same code.

.size   _ZN4BaseD2Ev, .-_ZN4BaseD2Ev
.weak   _ZN4BaseD1Ev
.set    _ZN4BaseD1Ev,_ZN4BaseD2Ev
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: xxllxx666

79541660

Date: 2025-03-28 14:19:26
Score: 0.5
Natty:
Report link

Super late to the party but I've been looking into this more deeply recently and I think there is a bit more to it then what I've seen in the answers and I think anyone else researching this subject might benefit.

1.) Key encryption does offer some theoretical security benefits when we are talking about large amounts of plain text data. It can be used to help mitigate exhaustion by rotating the key used to encrypt the data (DEK) and encrypting the DEK with the key encryption key (KEK) => envelope encryption. The encrypted DEK and data ciphertext are stored together. The idea here is that for very large data sets many DEKs will be used to avoid exhaustion and much fewer KEKs will be involved when designed correctly. This is useful for data at rest encryption (very common) and communication between endpoints with very large and sensitive traffic (more niche). AWS and google cloud services have APIs to support all this.

2.) The performance benefits can be realized even with symmetric encryption schemes. Some key derivation functions (KDF) used to generate symmetric keys can be very memory and processor intensive by design (ie certain Argon2 configurations). One could use keys derived from these type of KDFs as the KEK and use a cryptographic RNG (very fast) for the data key generation. In this case, it isn't really the encryption that is faster or slower but the key derivation. This is roughly how Windows BitLocker works (although I think they use PBKDF, not Argon2). Of course, this only applies to password based encryption but I thought it was worth mentioning.

NOTE: OP said "Then encrypt both the key and the file with public/private key." But only the symmetric key should be encrypting the plaintext (file). The KEK (public/private key) should only be used to encrypt the DEK. Otherwise you would see no performance benefit since you'd be decrypting the plaintext twice using both algorithms.

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

79541643

Date: 2025-03-28 14:09:23
Score: 1
Natty:
Report link

You can use __groovy() function like:

${__groovy(URLDecoder.decode('%02'\, 'ASCII'),)}

and

${__groovy(URLDecoder.decode('%03'\, 'ASCII'),)}

More information: How to Send Control Characters Using the JMeter TCP Sampler?

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Ivan G

79541638

Date: 2025-03-28 14:07:23
Score: 3
Natty:
Report link

Im not sure why the problem occured, but updating the playwright package to the latest version fixed it

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

79541634

Date: 2025-03-28 14:06:22
Score: 1.5
Natty:
Report link

This apps script allows to replace the , to | only if you set the advance option in data validation like below

function onEdit(e) {
  const sh = e.value.replace(/,\s/g,"|");
  if(e.range.getDataValidation())
  {
    var list = String(sh).split('|');
    var uniq = [...new Set(list)];
    e.range.clear();
    e.range.setValue(uniq.join("|"));
  }
}

enter image description here

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

79541629

Date: 2025-03-28 14:04:22
Score: 0.5
Natty:
Report link

from pptx import Presentation

from pptx.util import Inches

# Create a PowerPoint presentation

ppt = Presentation()

# Slide 1: Title Slide

slide_layout = ppt.slide_layouts[0] # Title Slide Layout

slide = ppt.slides.add_slide(slide_layout)

title = slide.shapes.title

subtitle = slide.placeholders[1]

title.text = "Transport of Carbon Dioxide & Hamburger Phenomenon"

subtitle.text = "A Detailed Explanation"

# Slide 2: Introduction to CO2 Transport

slide_layout = ppt.slide_layouts[1] # Title and Content Layout

slide = ppt.slides.add_slide(slide_layout)

title = slide.shapes.title

content = slide.placeholders[1]

title.text = "Introduction to Carbon Dioxide Transport"

content.text = "Carbon dioxide is transported in the blood through three main mechanisms:\n\n"

content.text += "1. Dissolved in plasma (7-10%)\n"

content.text += "2. Bound to hemoglobin as carbaminohemoglobin (20-30%)\n"

content.text += "3. As bicarbonate ions (HCO3-) (60-70%)\n\n"

content.text += "The majority of CO2 is carried as bicarbonate ions in the plasma."

# Slide 3: CO2 Transport in Detail

slide = ppt.slides.add_slide(slide_layout)

title = slide.shapes.title

content = slide.placeholders[1]

title.text = "Detailed CO2 Transport Mechanisms"

content.text = "1. Dissolved in Plasma: A small percentage of CO2 dissolves directly into plasma.\n"

content.text += "2. Carbaminohemoglobin: CO2 binds to hemoglobin at different sites than O2.\n"

content.text += "3. Bicarbonate Formation: CO2 reacts with water in RBCs to form carbonic acid, which dissociates into H+ and HCO3-."

# Slide 4: Hamburger Phenomenon (Chloride Shift)

slide = ppt.slides.add_slide(slide_layout)

title = slide.shapes.title

content = slide.placeholders[1]

title.text = "Hamburger Phenomenon (Chloride Shift)"

content.text = "• Inside RBCs, CO2 combines with H2O to form HCO3- and H+.\n"

content.text += "• HCO3- diffuses into plasma, and Cl- enters the RBC to maintain electrochemical balance.\n"

content.text += "• This process is called the 'Chloride Shift' or 'Hamburger Phenomenon'."

# Slide 5: Reverse Chloride Shift

slide = ppt.slides.add_slide(slide_layout)

title = slide.shapes.title

content = slide.placeholders[1]

title.text = "Reverse Chloride Shift"

content.text = "• In the lungs, HCO3- reenters RBCs, and Cl- moves out.\n"

content.text += "• HCO3- combines with H+ to form H2CO3, which breaks into CO2 and H2O.\n"

content.text += "• CO2 is then exhaled through the lungs."

# Slide 6: Conclusion

slide = ppt.slides.add_slide(slide_layout)

title = slide.shapes.title

content = slide.placeholders[1]

title.text = "Conclusion"

content.text = "• CO2 transport occurs through plasma, hemoglobin, and bicarbonate ions.\n"

content.text += "• The Hamburger phenomenon helps maintain ionic balance during CO2 transport.\n"

content.text += "• The reverse chloride shift facilitates CO2 exhalation in the lungs."

# Save the PowerPoint file

ppt_filename = "/mnt/data/CO2_Transport_Hamburger_Phenomenon.pptx"

ppt.save(ppt_filename)

ppt_filename

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

79541628

Date: 2025-03-28 14:04:22
Score: 0.5
Natty:
Report link
    my $number=12.2342342342;
    my $floatDecimal=2;
    if ($number=~/(\d{1,99})\.(\d{1,99})/){
      my $sTun=substr($2, 0, $floatDecimal);
      $number=$1.".".$sTun;
      print "Number:".$number;
    }
    #Number:12.23
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Babbo Natale

79541627

Date: 2025-03-28 14:03:21
Score: 2
Natty:
Report link

The above method did work and the key was to use "from osgeo import gdal" instead of "import gdal". The gdal code that I copied from elsewhere had errors. When I corrected the code it worked.

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

79541618

Date: 2025-03-28 13:59:20
Score: 0.5
Natty:
Report link

Turns out ADO pipelines makes a shallow clone of the repo, which means that there's only 1 commit, thus causing `git rev-list --count HEAD` to return 1.

To fix it, force the pipeline to fetch everything:

    - checkout: self
      fetchDepth: 0
      persistCredentials: true
      clean: false
      displayName: Checkout
    - script: |
          git rev-list --count HEAD
      displayName: "git count"
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: MikkelT

79541613

Date: 2025-03-28 13:57:19
Score: 4
Natty:
Report link

You should use the NullUUID type which is described in the uuid package from google.
https://github.com/google/uuid/blob/master/null.go

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

79541604

Date: 2025-03-28 13:51:18
Score: 2.5
Natty:
Report link

Just simply slice the n first characters of the path.stem string like this :
path.stem[n:]

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

79541602

Date: 2025-03-28 13:50:18
Score: 2
Natty:
Report link

Are you using the same versions for GenKit and GenKit-AI/Firebase? They should both be the same. They're currently at version 1.0.5.

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

79541600

Date: 2025-03-28 13:49:17
Score: 2.5
Natty:
Report link

If device is online and you call setVoice(...) on TTS engine this will trigger the download process of voices that are not installed yet

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

79541592

Date: 2025-03-28 13:46:17
Score: 2.5
Natty:
Report link

=List.Generate(()=>[x=#date(2024,1,1),i=0], each [i]<12, each [i=[i]+1,x=Date.AddMonths([x],1)], each [x])

this list 12 months. you can loop chaining 12 in expression "[i]<12"

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Bia Barbara Masola

79541579

Date: 2025-03-28 13:43:15
Score: 7.5 🚩
Natty: 4.5
Report link

did u get it the answer? let me know if possible

Reasons:
  • RegEx Blacklisted phrase (3): did u get it the answer
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did
  • Low reputation (1):
Posted by: Sakibur Rahman

79541578

Date: 2025-03-28 13:42:14
Score: 1.5
Natty:
Report link

Anyone who come to this thread, this is my solution, its because the file encoding

Use Visual Code, change the YAML file to use encoding UTF-8.enter image description here

Make sure it is UTF-8.

Reasons:
  • Whitelisted phrase (-2): this is my solution
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kris Komba

79541564

Date: 2025-03-28 13:39:14
Score: 1
Natty:
Report link

Another option:

cat /etc/issue

It returns short one line version:

Ubuntu 20.04.6 LTS \n \l
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Peter

79541557

Date: 2025-03-28 13:36:12
Score: 6 🚩
Natty:
Report link

I tried it out on the basis of an online tutorial. In this tutorial, a queue is used in the context object for the elements to be processed.

I don't really like my solution. But switching to a solution with a list did not work.

<?xml version="1.0" encoding="UTF-8"?>
<job id="hugeImport" xmlns="https://jakarta.ee/xml/ns/jakartaee" version="2.0">
    <step id="dummyItems" next="chunkProcessor">
        <batchlet ref="dummyItemsBatchlet">
            <properties>
                <property name="numberOfDummyItems" value="10"/>
            </properties>
        </batchlet>
    </step>

    <step id="chunkProcessor" next="reloadItemsQueue_001">
        <chunk>
            <reader ref="itemReader">
                <properties>
                    <property name="numberOfItems" value="2"/>
                </properties>
            </reader>
            <processor ref="itemMockProcessor"/>
            <writer ref="itemJpaWriter"/>
        </chunk>
        <partition>
            <plan partitions="2"></plan>
        </partition>
    </step>

    <step id="reloadItemsQueue_001" next="chunkProcessortest">
        <batchlet ref="reloadItemQueueBatchlet">
        </batchlet>
    </step>

    <step id="chunkProcessortest">
        <chunk>
            <reader ref="itemReader">
                <properties>
                    <property name="numberOfItems" value="3"/>
                </properties>
            </reader>
            <processor ref="itemMockProcessor"/>
            <writer ref="itemJpaWriter"/>
        </chunk>
        <partition>
            <plan partitions="2"></plan>
        </partition>
    </step>
</job>
public class ImportItem {
    private Long id;
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ImportItem(long id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString() {
        return "ImportItem{" + "id=" + id + ", name=" + name + '}';
    }
}
import java.util.List;

public class ImportItems {

    private List<ImportItem> items;

    public List<ImportItem> getItems() {
        return items;
    }

    public void setItems(List<ImportItem> items) {
        this.items = items;
    }

}
import jakarta.batch.runtime.context.JobContext;
import jakarta.inject.Inject;
import jakarta.inject.Named;

import java.util.*;
import java.util.concurrent.ConcurrentLinkedQueue;

@Named
public class ImportJobContext {
    @Inject
    private JobContext jobContext;

    private final Queue<ImportItem> itemsToDo = new ConcurrentLinkedQueue<>();
    private final Queue<ImportItem> itemsForNextStep = new ConcurrentLinkedQueue<>();

    public void addItems(List<ImportItem> items) {
        getImportJobContext().itemsToDo.addAll(items);
    }

    public synchronized void reloadQueue(){
        getImportJobContext().itemsToDo.clear();
        getImportJobContext().itemsToDo.addAll(getImportJobContext().itemsForNextStep);
        getImportJobContext().itemsForNextStep.clear();
    }

    public synchronized List<ImportItem> getItems(int count) {
        List<ImportItem> items = new ArrayList<>(count);
        for (int i = 0; i < count; i++) {
            var item = getImportJobContext().itemsToDo.poll();

            if(item == null) {
                continue;
            }

            items.add(item);
            getImportJobContext().itemsForNextStep.add(item);
        }

        return items.isEmpty() ? null : items;
    }

    private ImportJobContext getImportJobContext() {
        if (jobContext.getTransientUserData() == null) {
            jobContext.setTransientUserData(this);
        }
        return (ImportJobContext) jobContext.getTransientUserData();
    }
}
import jakarta.batch.api.AbstractBatchlet;
import jakarta.batch.api.BatchProperty;
import jakarta.batch.runtime.BatchStatus;
import jakarta.inject.Inject;
import jakarta.inject.Named;

import java.util.ArrayList;
import java.util.List;

@Named
public class DummyItemsBatchlet extends AbstractBatchlet {

    @Inject
    private ImportJobContext jobContext;

    @Inject
    @BatchProperty
    private String numberOfDummyItems;

    @Override
    public String process() throws Exception {

        List<ImportItem> list = new ArrayList<>();
        for(int i=0; i<Integer.parseInt(numberOfDummyItems); i++){
            list.add(new ImportItem(i, "dummyItem" + i));
        }
        jobContext.addItems(list);

        return BatchStatus.COMPLETED.name();
    }
}
import jakarta.batch.api.BatchProperty;
import jakarta.batch.api.chunk.AbstractItemReader;
import jakarta.inject.Inject;
import jakarta.inject.Named;

import java.util.List;

@Named
public class ItemReader  extends AbstractItemReader {

    @Inject
    ImportJobContext importJobContext;

    @Inject
    @BatchProperty
    private String numberOfItems;

    @Override
    public List<ImportItem> readItem() throws Exception {

        int numberOfWorkerItems = 2;
        if(numberOfItems != null){
            numberOfWorkerItems = Integer.parseInt(numberOfItems);
        }

        return importJobContext.getItems(numberOfWorkerItems);
    }
}
import jakarta.batch.api.chunk.ItemProcessor;
import jakarta.inject.Named;

@Named
public class ItemMockProcessor implements ItemProcessor {

    @Override
    public Object processItem(Object o) throws Exception {
        System.out.println("--> processing " + o);
        return o;
    }
}
import jakarta.batch.api.chunk.AbstractItemWriter;
import jakarta.inject.Named;

import java.util.List;

@Named
public class ItemJpaWriter  extends AbstractItemWriter {

    @Override
    public void writeItems(List<Object> list) throws Exception {

        for (Object obj : list) {
            List<ImportItem> item = (List<ImportItem>) obj;
            System.out.println("--> Persisting " + item);
        }
    }
}
@Named
public class ReloadItemQueueBatchlet  extends AbstractBatchlet {

    @Inject
    private ImportJobContext jobContext;

    @Override
    public String process() throws Exception {
        System.out.println("ReloadItemQueueBatchlet.process");
        jobContext.reloadQueue();

        return BatchStatus.COMPLETED.name();
    }
}

Can you please give me tips on how I can optimize the code?

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Blacklisted phrase (1): did not work
  • RegEx Blacklisted phrase (2.5): Can you please give me
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Net_Hans

79541551

Date: 2025-03-28 13:34:09
Score: 10.5 🚩
Natty: 6
Report link

im having the same doubt, can you show me what your ajax request looks like ??

thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (2.5): can you show me what your
  • RegEx Blacklisted phrase (3): thanks in advance
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Sebastián Suazo

79541549

Date: 2025-03-28 13:34:09
Score: 1.5
Natty:
Report link

You can add this dependency

<dependency>
   <groupId>org.mapstruct</groupId>
   <artifactId>mapstruct-processor</artifactId>
</dependency>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vifieh

79541548

Date: 2025-03-28 13:33:09
Score: 1.5
Natty:
Report link

Had same issues, found this thread, many of the solutions either didn't work, or disabled or broke local debugging.

Eventually found a solution that allowed my app to run in VS2022 IDE, start browser (Chrome) by default, and still allow local debugging. Sharing what worked in my case, for anyone else searching later for a solution that doesn't break local debugging....

This was specifically for a Blazor Web Assembly project ; which was being setup to deploy to a self hosted IIS environment as a Sub-Application (ie, a subsite, or not on the root site)- which required other configuration changes as well to make it run locally again (steps 1 and 2); then some part of those changes created the "debugger" issue... step 3 is what specifically fixed the debugger issue, but I'm listing steps 1 and 2 as well in case they had hidden meaning to the issue at hand....

In file Properties/launchSettings.json, for your launch profile(s):

  1. Add property “commandLineArgs” to include the updated base path for your project, without trailing slash:
    "commandLineArgs": "--pathbase=/WASMTestProj",

  2. Add 2nd property “launchUrl” to include the updated project name, without any slashes:
    "launchUrl": "WASMTestProj

  3. In launchSettings.json , update the inspectUri value to also include your project name
    "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/WASMTestProj/_framework/debug/ws-proxy?browser={browserInspectUri}"

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

79541547

Date: 2025-03-28 13:33:09
Score: 0.5
Natty:
Report link
FOR /F "tokens=*" %%F IN ('dir /b *.heic') DO (
    rem Converter HEIC para PNG com nomes diferenciados
    ffmpeg -i "%%F" -map 0 "%%~nF_%%d.png"
    
    rem Criar mosaico de imagens em um único arquivo PNG
    ffmpeg -i "%%~nF_%%d.png" -vf "tile=8x6" "%%~nF.jpg"
        
    del %%~nF_*.png
    rem del %%F
)

This DOS script converts all HEIC photos for IPHONE 12 pro in the current directory.
Comment out the last line if you want to exclude the original files.
PS 1: A border is set around because it is acctually in the file, but is not shown in the HEIC version.
PS 2: Guess you may need to adjust the TILE option in case your photo is from another IPHONE version,

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

79541546

Date: 2025-03-28 13:33:09
Score: 3
Natty:
Report link

I think I came across this only because I sent too much to the e-mail address I tested while testing, when I sent it to a different e-mail address, my logo appeared directly.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Öztürk Şirin

79541541

Date: 2025-03-28 13:31:08
Score: 0.5
Natty:
Report link

My bad!

I was trying to create the input and output pointing at another existing SAJ resource .

the error was here:

stream_analytics_job_name = azurerm_stream_analytics_job.saj_json.name

should have been

stream_analytics_job_name = azurerm_stream_analytics_job.saj.name

Though, weird error from the Azure API :-)

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

79541533

Date: 2025-03-28 13:23:04
Score: 6.5 🚩
Natty: 5.5
Report link

do you find out the reason for this error message? I was using Business central and get the same error message. Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): get the same error
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: IndianWells

79541528

Date: 2025-03-28 13:21:04
Score: 2
Natty:
Report link

You can add the db check contraint in the type attribute of the column definition.

sequelize

  sequelize.define(
    'products',
    {
      price: {
        type: 'numeric CHECK (price > 0)',
        ...
      },
    },
  )

sequelize-typescript

  @Column({
    type: 'numeric CHECK (price > 0)', // instead of DataType.NUMBER
    ...
  })
  declare price: number

You can also add them using migrations. See: https://stackoverflow.com/a/51076516/6192751

You can also use js validations to accomplish this on the client side. See: https://github.com/sequelize/sequelize-typescript/issues/576#issuecomment-485383173

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Enogwe Victor

79541527

Date: 2025-03-28 13:21:03
Score: 4
Natty:
Report link

With different version of llvm, different argument required

https://github.com/lich4/llvm-pass-hikari

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

79541519

Date: 2025-03-28 13:17:03
Score: 1.5
Natty:
Report link

Maybe this can help you : https://www.npmjs.com/package/easter-eggs.ts

    new EasterBuilder()
  .setTriggerHandler(new KeyboardInputTrigger()
    .addKeyboardTrigger("KeyL") // Luke Skywalker, obviously
    .addKeyboardTrigger("KeyV") // Vader, the one who really needs to control this situation
    .addKeyboardTrigger("KeyE")) // Everyone knows the force is with you if you press 'E'
  .setActionHandler(new ForceActionHandler(() => alert("The Force is strong with you!")));

You can create easily easter-eggs

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

79541505

Date: 2025-03-28 13:10:01
Score: 3.5
Natty:
Report link

Thanks, but I am not able to replicate the issue anymore.

Not sure it will help, but here is what happen to me:

Had this issue after an Android Studio and an AGPlugin update, and after reading that, I've just tried a computer reboot with a clean build folder, then the error disappeared.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): I am not able to
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Robert

79541500

Date: 2025-03-28 13:09:01
Score: 2.5
Natty:
Report link

Found the problem. I was assigning to form.country an object with the property dial_code from an external JSON with all the countries.

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

79541498

Date: 2025-03-28 13:09:01
Score: 2
Natty:
Report link

If you are passing the password to the connection string, pyodbc automatically tries to use SQL Server authentication, because it is only one authentication method which supports password passing to connection string.

But your code is using Active Directory authentication which isn't supports the authentication with password.

You should use passwordless authentication, if your code is running on Windows machine, you could use this guide to setup paswordless auth - Migrate a Python application to use passwordless connections with Azure SQL Database , if it is running on Linux machine you should configure Kerberos first - Authenticating a Linux or macOS Computer with Active Directory

Reasons:
  • Blacklisted phrase (1): this guide
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Qwedon

79541494

Date: 2025-03-28 13:06:00
Score: 1
Natty:
Report link

Had the same problem, I was able to fix it setting a new environment variable for keycloak:

- KEYCLOAK_FRONTEND_URL=http://localhost:8012/auth

But Im not sure if it is the best option (i post a new question here Keycloak - Java App Redirect within Docker)

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

79541492

Date: 2025-03-28 13:04:00
Score: 2
Natty:
Report link

I am running in to the same issue, I have a t4g.small (2 vCPU & 2GB RAM), I have added 1GB or swap and it is still hanging.

I have run the same NPM install on smaller instances, not on AWS, and they run absolutely fine.

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

79541489

Date: 2025-03-28 13:04:00
Score: 2
Natty:
Report link

You're in luck, the standard MFT file watcher job allows you to monitor for 5 files -

  1. Create a File Transfer job in Planning (drag down from the Templates Manager, top left).

  2. Use the file watcher or file watcher with copy option (has a eyeball as part of the icon).

  3. Press the + button to add more watchers (5 max).

  4. Use * for wildcards or single ? to substitute for a single character.

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

79541486

Date: 2025-03-28 13:02:59
Score: 1
Natty:
Report link
#include <iostream>
#include <cstdlib>
using namespace std;

int main(int argc, char*argv[]) {

    int size = atoi(*(argv + 1));
    if (argc < 2 || argc != size + 2) {
        cout << "에러";
        return 0;
    }

    int* arr = new int[size];

    for (int i = 0; i < size; ++i) {
        *(arr + i) = atoi(*(argv + i + 2));
    }
    for (int i = size - 1; i >= 0; --i) {
        cout << *(arr + i) << " ";
    }
    cout << "/n";

    delete[] arr;
    return 0;
}
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: MINA HAN

79541483

Date: 2025-03-28 13:01:59
Score: 5.5
Natty:
Report link

By searching the MicroC PRO IDE forums, it seems to you to enable the ADC option under the Library Manager. Does this solve your problem?

Reasons:
  • RegEx Blacklisted phrase (1.5): solve your problem?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
Posted by: pm101

79541481

Date: 2025-03-28 13:01:59
Score: 4.5
Natty: 4
Report link

Try this plugin https://moodle.org/plugins/quizaccess_quizproctoring which has more advanced feature including live proctoring.

Reasons:
  • Blacklisted phrase (1): this plugin
  • Whitelisted phrase (-1): Try this
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mahendra Soni

79541473

Date: 2025-03-28 12:56:57
Score: 3
Natty:
Report link

I know this is an old question, but just in case it is still useful for someone. I wanted to know the IP address of the connected device (a Raspberry Pi Zero 2W) and I had to resort to write a python script on this client that sends me a WhatsApp message with its IP address as soon as it connects to the Android 14 hotspot. Later on I discovered that nmcli in a terminal application on my phone (ConnetBot) gives me the information I need.

Regards.

Reasons:
  • Blacklisted phrase (1): Regards
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Low reputation (1):
Posted by: Antonio Garcia

79541469

Date: 2025-03-28 12:55:57
Score: 2
Natty:
Report link

Try to use package: instead of packageForLinux:

https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-web-app-v1?view=azure-pipelines

package: '$(System.DefaultWorkingDirectory)/**/*.zip' # string. Required. Package or folder. Default: $(System.DefaultWorkingDirectory)/**/*.zip.
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: EricL

79541467

Date: 2025-03-28 12:53:57
Score: 2
Natty:
Report link

This is a issue with the deprecated Flutter V1 libraries on Android.

Updating to the latest version of the `awesome_notifications` plugin(v 0.10.1) show do fix this as the issue has been fixed by the plugin authors.

awesome_notifications plugin versions 0.10.1

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

79541466

Date: 2025-03-28 12:53:57
Score: 1
Natty:
Report link

The cells were hardcoded in the below code, and therefore they were only called once. I added this code into the tableView cell for row at function and it resolved the issue as it updated the variable every time the app loaded in:

var WeatherForecastCells: [WeatherCell] = [
        
        
        WeatherCell(image: "", date: date1ForTableView.string(forKey: "Date1")!, low: "18°", high: "31°"),
      ...
   ]
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Train Lover

79541460

Date: 2025-03-28 12:50:56
Score: 2.5
Natty:
Report link

I'm not very well-versed in FastAPI, but in Django this problem is solved by adding "docker" (or an alias) to ALLOWED_HOSTS. It seems that in FastAPI you can try to achieve this with Starlette’s TrustedHostMiddleware.

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

79541452

Date: 2025-03-28 12:44:54
Score: 1.5
Natty:
Report link
conda activate FaceFusionFree 激活失败的话

查看conda列表:
conda info --envs
# conda environments:
#
                               C:\miniconda3
base                        D:\FaceFusionFree\Miniconda3
facefusion               D:\FaceFusionFree\Miniconda3\envs\facefusion

conda activate C:\miniconda3
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30092863

79541450

Date: 2025-03-28 12:44:54
Score: 4
Natty:
Report link

Ever found a solution to this? I'm facing the same going from Xcode 15.3 to Xcode 16.2.

https://developer.apple.com/forums/thread/776427

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Yonic Surny

79541445

Date: 2025-03-28 12:41:53
Score: 0.5
Natty:
Report link

The .exe files manipulate data files which have a FILE FORMAT which is the key to viewing it. If you know the program name and the file extensions .123 letter ending often times you can get into the files by making a quickie.com to reformat them to a format that is commonly used on modern computers. You don't have to hack the .EXE to get the .DFB files data type thing. Add info about your program and the files here and maybe you can find the help needed. Have you tried loading them into an editor. Some editors load many different types of files.

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bitdog

79541444

Date: 2025-03-28 12:41:53
Score: 1.5
Natty:
Report link

Unity 6 started doing this to me out the blue. Rebooting my Windows PC fixed it.

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

79541436

Date: 2025-03-28 12:38:53
Score: 2.5
Natty:
Report link

I managed to resolve the issue. I added an "external" onChange handler to my select box properties. The handler comes from the parent table and it rewrites the columns model on the update event. The sandbox project now works as expected

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

79541434

Date: 2025-03-28 12:36:52
Score: 2.5
Natty:
Report link

str uses Unicode encoding while bytes uses ASCII encoding

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

79541431

Date: 2025-03-28 12:34:52
Score: 2.5
Natty:
Report link

In response to this post being over 10 years old: I dont care how old this post was, it downgraded the "impossible" to "highly improbable" and was the solution to a 3 month long issue. ( A 1 in a million chance of success is astronomically greater than an absolute zero chance of success.) I had an ALFA adapter AWSU036AC with the RTL88xx chipset, that was no longer working after a kernel update. No matter what I tried it simply would not work. Months went by. Wound up using a git checkout command to switch branches and got it working again. Awesome!!! Right?...WRONG!!! While the fix that was applied got the dead adapter working again, from that point forward, I could no longer use apt to update my Kali machine . It just spit out a missing key number and said it couldnt verify a signature. Thought I was going to have to do a fresh install. That would have Suckithed Muchly but, then I found this post, got the gist of the process, and was up and running again. In the end, I bought a different adapter with a better quality chipset. But this post saved invaluable data from the depths of a fresh install. !0 year old post? I dont care if it was created when Darpa first got the internet up and running. It still held its informative value. Thanks for keeping it available!!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 666c0y0t3

79541427

Date: 2025-03-28 12:32:51
Score: 5
Natty:
Report link

Check work of stackoverflow answers

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: gMihMih29

79541426

Date: 2025-03-28 12:32:51
Score: 1
Natty:
Report link

Replies to reviews are not supported by the Places API.

Please consider filing a feature request.

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

79541421

Date: 2025-03-28 12:30:50
Score: 2
Natty:
Report link

After updating code like below, it's started working fine.

  registry {
    server               = var.acr_registry_name
    identity             = "system"
  }

If proper documentation were provided from hashicorp would been better.
enter image description here

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

79541417

Date: 2025-03-28 12:30:50
Score: 1
Natty:
Report link

To connect to db in container from another container, here create_engine(f"postgresql://{self.user}:{self.password}@{self.host}:{self.port}")

the self.host should be your db docker container name as in docker compose. Should work like charm with postgres or other db.

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

79541401

Date: 2025-03-28 12:24:49
Score: 4.5
Natty:
Report link

Having the same issue and tried #Sannnekk answer and too my surprise the ng19 site runs fine with the Brave shield up...not down. Runs on Chrome and Edge too.

Disable shields on Brave and bam...

enter image description here

go figure.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): Having the same issue
Posted by: Darren Street

79541396

Date: 2025-03-28 12:20:48
Score: 1.5
Natty:
Report link

I found the solution by going to Tools -> Import and export settings -> reset all settings -> then I reset both general and visual C++

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

79541394

Date: 2025-03-28 12:17:47
Score: 5
Natty: 5.5
Report link

Hi u can use this https://instagram-postid-extractor-production.up.railway.app/ I developed it recently

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

79541386

Date: 2025-03-28 12:13:46
Score: 3
Natty:
Report link

I'm interested in knowing this too. I can't get the QR token to work though. I've setup fully managed devices.

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

79541381

Date: 2025-03-28 12:10:45
Score: 1
Natty:
Report link
def registerPage(request):
    if request.method == 'POST':
        form=UserCreationForm(request.POST)
        if form.is_valid():
            form.save()
    else:
        form = UserCreationForm()
    context = {'form':form}
    return render(request, 'newapp/register.html', context)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Md Roni Ahamed

79541376

Date: 2025-03-28 12:08:45
Score: 4
Natty: 4.5
Report link

Did you try to change the billing settings from request-based to instance-based?

Reasons:
  • Whitelisted phrase (-2): Did you try
  • 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: Giuseppe Colello

79541374

Date: 2025-03-28 12:07:44
Score: 0.5
Natty:
Report link
public class  CMYKtoRGB {

    public static void main (String[]args) {

        double cyan = Double.parseDouble(args[0]);
        double magenta = Double.parseDouble(args[1]);
        double yellow = Double.parseDouble(args[2]);
        double black = Double.parseDouble(args[3]);
        double white = (1-black);

        int red = (int) Math.round ((255 * white * ( 1-cyan )));
        int green = (int) Math.round (( 255 * white * ( 1-magenta )));
        int blue = (int) Math.round  (( 255 * white * ( 1-yellow )));

        System.out.println( "red = "+ red );
        System.out.println( "green = "+  green );
        System.out.println( "blue = "+ blue );
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Hacker_18

79541370

Date: 2025-03-28 12:05:44
Score: 1.5
Natty:
Report link

I don't know if this is still relevant for you. But mabey for others.

There was an issue reported on github about this: https://github.com/vercel/next.js/issues/58597

They say its intentional? I don't know, kinda weird in my opinion too...

Anyway, hope this helps :)

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: DaanDeReus

79541367

Date: 2025-03-28 12:04:43
Score: 0.5
Natty:
Report link

The old HashMap.put()

The modern methods of the standard library, including the methods in the stream package, don’t like nulls as keys or values in maps. So to obtain what you want, you may use the classic methods from the introduction of the Java collections framework in Java 1.2. It gets just a little wordier:

private static Map<String, Object> toParamMap(List<Map.Entry<String, Object>> params) {
    Map<String, Object> paramMap = new HashMap<>();
    params.forEach(param -> paramMap.put(param.getKey(), param.getValue()));
    return paramMap;
}

Trying it out with your example:

    List<Map.Entry<String, Object>> params = Arrays.asList(
            new AbstractMap.SimpleEntry<>("key1", 1),
            new AbstractMap.SimpleEntry<>("key2", null)
    );
    Map<String, Object> paramMap = toParamMap(params);
    System.out.println(paramMap);

Output is a map with a null value in it:

{key1=1, key2=null}

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Hiro Silva

79541360

Date: 2025-03-28 11:59:42
Score: 1.5
Natty:
Report link

I had trouble like this error. I think that this error depending with file or folder name. I create new folder and create new react app. Move necessary folder and files to new react app from old folder(reactapp). Correctly work !

At move folder, You change path of import components, if you move only files and components.If you move src and public folder it is work correctly !

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

79541358

Date: 2025-03-28 11:59:42
Score: 1
Natty:
Report link

In my case (TypeScript based project), I had to do the following to fix the error:

  1. Add types for jest-dom package (@testing-library/jest-dom has already been added)

    yarn add -D @types/testing-library__jest-dom

  2. Add below under compilerOptions in tsconfig.json

    "types": ["node", "jest", "@testing-library/jest-dom"],

  3. Add below on top of your test files (please refer @Greg Wozniak's comment above to include below import statement only in setupTests.js rather than import it in every test file)

    import '@testing-library/jest-dom'

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Greg
  • Low reputation (1):
Posted by: Sasiru Tharinda

79541343

Date: 2025-03-28 11:53:39
Score: 6.5 🚩
Natty:
Report link

have you tried turning it off an on again?? enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Whitelisted phrase (-1): have you tried
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arvid Håland

79541339

Date: 2025-03-28 11:51:36
Score: 10.5 🚩
Natty: 6
Report link

i need help please bomboclats......................

Reasons:
  • Blacklisted phrase (0.5): i need
  • Blacklisted phrase (2.5): i need help
  • RegEx Blacklisted phrase (1.5): help please
  • RegEx Blacklisted phrase (1): i need help please
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • No latin characters (0.5):
  • Filler text (0.5): ......................
  • Low reputation (1):
Posted by: pier

79541332

Date: 2025-03-28 11:48:35
Score: 1.5
Natty:
Report link

You can check out the package flutter_background_geolocation

Also, don't forget to get the

<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>

permission.

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

79541329

Date: 2025-03-28 11:46:34
Score: 2
Natty:
Report link

You can look into certificate bundle from ESP, they update it regularly with most used certificates.

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

79541328

Date: 2025-03-28 11:45:34
Score: 1
Natty:
Report link

ASCII can be stored in 7 bit bytes on hardware configurations whose bus size is 7 bits, in contrast to the current consumer and server standard of 8 bits. In those contexts, it's compatible with UTF-7.

However, in practice, ASCII is stored on 8-bit bytes. Consequently, it's compatible with UTF-8.

ASCII compatibility is deliberate in both contexts. However, the compatibility refers to solely the first 128 characters. Any UTF code points greater than (7F)16 shall be incompatible.

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

79541318

Date: 2025-03-28 11:43:34
Score: 1.5
Natty:
Report link

I noticed that many people recommend the Cardo font for rendering symbols. However, it does not support the ₹ (Indian Rupee) symbol as of now.

Instead, I suggest using DejaVu Sans. It supports a wide range of symbols, including ₹.

You can check this Stack Overflow answer for a code snippet.

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

79541304

Date: 2025-03-28 11:35:32
Score: 1.5
Natty:
Report link

For the execution of failed scenario from the .txt file generated by cucumber, you need to provide the value of features option in Cucumber Options like this @target/failedrerun.txt

And no need to pass cucumber option from mvn command

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

79541299

Date: 2025-03-28 11:33:32
Score: 1
Natty:
Report link

As to the proposed solution in "The workaround:"

These are the, as of today, existing extensions for:

As to the actual java script - yes it does what it says on the tin but not 100% consistent all the time. Sometimes it misbehaves. I noticed that it always behaves properly when a new "word + space after it" is added, then the script understands that there are edits to preserve. But if you just have a sting of say 3 letters "aaa" and add an extra one to it "aaaa" then hit Esc the script doesn't quite detect this as a change and thus u lose your changes. So, with this small caveat it actually works ok.

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

79541298

Date: 2025-03-28 11:32:31
Score: 0.5
Natty:
Report link

I was able to make the test pass with this code:

boolean result = false;
        
        try {
            WebDriver driver = SeleniumSession.get().getWrappedDriver();
            ArrayList<String> handles = new ArrayList<String>(driver.getWindowHandles());
            
            int i = 0;
            for (String handle : handles) {
                if(i == 1 ) {
                    driver.switchTo().window(handle);
                    Alert alert  = driver.switchTo().alert();
                    alert.accept();
                    result = true;
                }
                
                i++;
            }         
        } catch(TimeoutException | UnhandledAlertException e) {
            result = true;
        }

I don't like it, because I have to wait 160 seconds for the timeout to be thrown, but so far that's the only way to handle it.

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

79541297

Date: 2025-03-28 11:32:31
Score: 0.5
Natty:
Report link

WordPress is a good option if you're searching for a useful free video content management system that allows you to upload, feature, and create individual pages for each video with ratings and comments.

WordPress lets you make articles with videos by default, and you can better arrange and display videos with plugins like WPVR or All-in-One Video Gallery. However, WordPress requires some setup and third-party plugins to function as a full-fledged video CMS.

For a more professional and feature-rich solution, VPlayed is a powerful video content management system that comes with built-in hosting, monetization options, and advanced streaming capabilities.

Unlike WordPress, VPlayed is a paid platform designed for businesses and professional creators who need complete control over their video content, live streaming, and revenue models. If you prefer a completely free, open-source alternative, PeerTube or MediaCMS could be good options, though they require self-hosting and technical setup.

Let me list this Some of the platforms

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

79541294

Date: 2025-03-28 11:30:31
Score: 0.5
Natty:
Report link

You will have to set "standalone: true" inside the @Component decorator. It should look something like this.

@Component({
  selector: 'app-table',
  standalone: true, // add this
  imports: [Skeleton, TableModule, NgTemplateOutlet],
  template: `
    <p-table>
      <ng-template let-row let-rowIndex="rowIndex" pTemplate="body">
       <ng-container
          [ngTemplateOutlet]="bodyCtx()"
          [ngTemplateOutletContext]="{ $implicit: row, rowIndex }"
        />
      </ng-template>
    </p-table>

  `,
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class TableComponent<T> {
  public readonly bodyCtx = contentChild.required<TemplateRef<unknown>>('body');
}
@Component({
  selector: 'app-dashboard',
  standalone: true, // add this
  imports: [
    TableComponent,
  ],
  template: `
    <app-table>
      <ng-template #body let-row let-rowIndex="rowIndex">
        <tr>
          <td>{{ row.name || '-' }}</td>
        </tr>
      </ng-template>
    </app-table>
  `,
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class DashboardComponent {}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Component
  • Low reputation (1):
Posted by: a m a n

79541289

Date: 2025-03-28 11:28:30
Score: 1
Natty:
Report link

To whoever may found and need this information. Currently working on version Jenkins 2.414.2.
There is a simple workaround. Should work on higher versions I belive. So jenkins is reading changesets based on the revision. On the version i am currently working there is a special button for replaying.
jenkins reply button

It starts the build with the previous revision. However based on the example from question if you first reply build previous to failed one, ergo #74 the next run will pick changesets from #74 revision up to now.
So #77 would be replication of #74 (no changes) and #78 would have every change added between #74 and now (so those 3 commits from #75)

In project previous developers used changesets to integrate with jira and using it's api it adds information to it like fixVersion. If build failes you need to do it manually.

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

79541285

Date: 2025-03-28 11:28:30
Score: 5.5
Natty: 4.5
Report link

I have the same problem and I think there is no way to find out with VBA.
Apparently Occurences and PatternEndDate return matching values for the same end.
So I decided to primarily use the PatternEndDate.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (1):
Posted by: Peter Stock

79541282

Date: 2025-03-28 11:26:30
Score: 2
Natty:
Report link

from PIL import Image, ImageDraw, ImageFont

import matplotlib.pyplot as plt

# Load the original image

image_path = "/mnt/data/file-VVxabzPdfxQPEMVfrB5mtf" # Original uploaded image

original_image = Image.open(image_path).convert("RGBA")

# Display original image for reference

original_image.show()

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

79541274

Date: 2025-03-28 11:21:28
Score: 3
Natty:
Report link

My mistake, it's OK, the error was in another place....

It works fine to pass the value of a variable from another file.

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

79541270

Date: 2025-03-28 11:21:28
Score: 1
Natty:
Report link

You're getting this error because in Next.js 13+ (App Router), params can be asynchronous in dynamic routes. To fix this, you need to await params before accessing its properties.

Wrong: const providerId = await context.params.providerId;

Fixed: const { providerId } = await context.params;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user25571070

79541265

Date: 2025-03-28 11:18:28
Score: 2.5
Natty:
Report link

In my case, it was the same the Docker desktop installation installed on Windows and removed afterwards as discussed by @Sebastian Bujak which led to non-existent symlinks. The fixed mentioned above did not work for so I used this github comment for anybody else who had the same problem as me. I could not add this to the comments.
https://github.com/docker/buildx/issues/262#issuecomment-1744354626
Quoting the solution here.
In fact /usr/local/lib/docker/ contained only invalid symlinks.
So, running this command fixed it: sudo rm -fr /usr/local/lib/docker/

Reasons:
  • Blacklisted phrase (1): did not work
  • Has code block (-0.5):
  • User mentioned (1): @Sebastian
  • Low reputation (1):
Posted by: Naeem Iqbal

79541263

Date: 2025-03-28 11:16:27
Score: 1
Natty:
Report link

In my case, the remote connection to Redis was simply closed.
Check the connection availability first.

telnet <my-hostname> <my-port>

Next

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

79541258

Date: 2025-03-28 11:15:27
Score: 4
Natty: 5
Report link

Working on a NetUtils plugin if still interested!
https://github.com/macchie/capacitor-net-utils

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