79566625

Date: 2025-04-10 12:23:42
Score: 1.5
Natty:
Report link

although tox has a especific command for passing env variables into your tox environment, it didn't work for me.

I'm using python3.12 and tox>=4, and after adding passenv or pass_env to an specific environment in my tox.toml configuration, it simply ignores everything in it and return status OK.

The solution I've found was to pass my variables using set_env.

example:

export MY_ENV="test"
set_env = { MY_ENV="{env:MY_ENV}" } 

Doing that, everything worked fine.

Reasons:
  • Blacklisted phrase (1): it didn't work for me
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dpbm

79566618

Date: 2025-04-10 12:21:42
Score: 1.5
Natty:
Report link

I've had this same issue several times and have solved with multi word topics. I'm guessing at many of the details of your specific case but here's an example. Every initiator or sender has a unique name, [sender1, sender2, etc] and each team has a unique name [team1, team2, etc]. Every published message will have the format of "{sender}.{team}" When a message is published for team2 by sender 3 it creates a topic "sender3.team2" and publishes. When you add the bindings for the consumer you would want to add for the 1 team you are interested in and ALL the other senders. Rabbit does not have a way to do NOT on topic parts but you can just list them. In this case, our sender3 for team 2 would add the following bindings["sender1.team2", "sender2.team2"]

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

79566615

Date: 2025-04-10 12:19:41
Score: 3
Natty:
Report link

Enable "Enforce keycode forwarding" from emulator settings

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

79566612

Date: 2025-04-10 12:18:41
Score: 1
Natty:
Report link

Uncomment

/* 
@tailwind base;
@tailwind components;
@tailwind utilities; */

Remove

@import 'tailwindcss';

Replace @theme with @layer theme Replace @reference with @apply

I hope it works on Tailwind v4!

At last, Make sure your tailwind.config.js includes any custom colors like 'primary'.

Reasons:
  • Whitelisted phrase (-1): hope it works
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @theme
  • User mentioned (0): @layer
  • User mentioned (0): @reference
  • User mentioned (0): @apply
  • Low reputation (1):
Posted by: ATIB -

79566603

Date: 2025-04-10 12:14:39
Score: 7.5 🚩
Natty: 6.5
Report link

Same in my case, i cant make flash work on CameraView from 'expo-camera' package in expo 52. I tried everything. Changing prop from 'flash' to 'flashMode' using enableTorch={true}. Nothing works, Have you managed to find a solution to this problem?

Reasons:
  • Blacklisted phrase (3): Have you managed
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alin Ghiurca

79566601

Date: 2025-04-10 12:13:38
Score: 1
Natty:
Report link
#include <fstream>
#include <cmath>
#include <iomanip>
using namespace std;
ifstream fin ("legos.in");
ofstream fout ("legos.out");
int main()
{
    int c,a;
    fin>>c>>a;
    if (a>=9)
    fout<<trunc(sqrt(a))*trunc(sqrt(a));
    if (a<9)
        fout<<"imposibil";
        fout << fixed;
        fout << setprecision(2) << trunc(sqrt(a))*trunc(sqrt(a));
    return 0;
}

i don't get what is wrong

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

79566599

Date: 2025-04-10 12:12:38
Score: 2.5
Natty:
Report link

For me rabbit mq service was not running, once started it worked

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

79566597

Date: 2025-04-10 12:12:38
Score: 2
Natty:
Report link
from docx import Document
from docx.shared import Pt, Inches
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
from docx.oxml import parse_xml
from docx.oxml.ns import nsdecls

# Crear el documento
doc = Document()
doc.sections[0].top_margin = Inches(0.7)
doc.sections[0].bottom_margin = Inches(0.7)
doc.sections[0].left_margin = Inches(1)
doc.sections[0].right_margin = Inches(1)

# Título principal
title = doc.add_heading("Cuadro Sinóptico: Resultados de Aprendizaje y Contenidos", level=1)
title.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER

doc.add_paragraph("")  # Espacio

def agregar_cuadro(titulo_resultado, descripcion, lista_contenidos):
    table = doc.add_table(rows=1, cols=1)
    table.autofit = True
    table.style = 'Table Grid'
    cell = table.rows[0].cells[0]
    
    shading_elm = parse_xml(r'<w:shd {} w:fill="D9E1F2"/>'.format(nsdecls('w')))
    cell._tc.get_or_add_tcPr().append(shading_elm)
    
    p_titulo = cell.add_paragraph()
    run_titulo = p_titulo.add_run("🗹 " + titulo_resultado)
    run_titulo.bold = True
    run_titulo.font.size = Pt(14)
    p_titulo.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
    
    p_desc = cell.add_paragraph()
    run_desc = p_desc.add_run(descripcion)
    run_desc.italic = True
    p_desc.alignment = WD_PARAGRAPH_ALIGNMENT.LEFT
    
    cell.add_paragraph("─" * 50)
    
    p_conten = cell.add_paragraph()
    run_cont = p_conten.add_run("â–¶ Contenidos:")
    run_cont.bold = True
    run_cont.font.size = Pt(12)
    
    for item in lista_contenidos:
        p_item = cell.add_paragraph(style='List Bullet')
        p_item.add_run(item)
    
    doc.add_paragraph("")

# Datos para el cuadro sinóptico

titulo1 = "Resultado de Aprendizaje 1"
descripcion1 = ("Reconocer los conceptos relacionados con el tema de proyectos y su importancia como mecanismo de innovación, "
                "mediante el uso de herramientas que sirven de guía en la formulación de proyectos.")
contenidos1 = [
    "Definición",
    "Fases de un proyecto",
    "Intervención de actores / Stakeholders",
    "Tipos de proyectos",
    "Opciones de grado de la especialización",
    "Ciclo de Deming y/o PHVA"
]

titulo2 = "Resultado de Aprendizaje 2"
descripcion2 = ("Desarrollar el estudio de mercado y técnico de un proyecto de inversión privada, "
                "para conocer a fondo el entorno y evaluar la viabilidad técnica y operativa.")
contenidos2 = [
    "Estudio de mercado",
    "Estructura/análisis del mercado",
    "Análisis del producto",
    "El cliente/consumidor",
    "Demanda y oferta",
    "Precio",
    "Cadena de distribución",
    "Estrategias de comercialización",
    "Planeación de ventas",
    "Materias primas o insumos",
    "Estudio técnico del proyecto",
    "Localización (microlocalización y macrolocalización)",
    "Tamaño del proyecto",
    "Ingeniería del proyecto",
    "Organización"
]

titulo3 = "Resultado de Aprendizaje 3"
descripcion3 = ("Desarrollar el plan de inversión de un proyecto usando herramientas pertinentes, "
                "para determinar su rentabilidad y los resultados financieros esperados, y orientar la toma de decisiones.")
contenidos3 = [
    "Tipos de inversiones (inicial, fijas, diferidas, de trabajo, de capital)",
    "Plan de inversión",
    "Alternativas de financiamiento (privados, sector público, etc.)",
    "Presupuestos, estado de resultados y situación financiera",
    "Modelo CANVAS en la formulación de proyectos"
]

agregar_cuadro(titulo1, descripcion1, contenidos1)
agregar_cuadro(titulo2, descripcion2, contenidos2)
agregar_cuadro(titulo3, descripcion3, contenidos3)

doc.save("Cuadro_Sinoptico.docx")
Reasons:
  • Blacklisted phrase (2): Crear
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30233490

79566591

Date: 2025-04-10 12:11:38
Score: 1
Natty:
Report link

You can view the list of trusted CAs in the device settings. Search for Trusted credentials in the settings search bar, or navigate to it manually. The exact path depends on the device. For example, in Pixel phones it's Security & privacy And then More security settings and then Encryption & credentials

https://support.google.com/pixelphone/answer/2844832?hl=en

Another thing you can do is try to connect to the API from a web browser in the device. If it works, it means the problem should be inside the app you are developing.

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

79566588

Date: 2025-04-10 12:10:37
Score: 1.5
Natty:
Report link
$q = ChildTable1::whereRelation('deep.deeper.deepest', 'deepest_id', '=', $id)->get();
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: TomoMiha

79566587

Date: 2025-04-10 12:10:37
Score: 5
Natty: 6
Report link

Obrigado pela ajuda. Depois de 3 dias procurando uma resposta que NINGUEM sabe responder sua ajuda funcionou.

Muito obrigado!!!

Reasons:
  • RegEx Blacklisted phrase (1): Obrigado
  • RegEx Blacklisted phrase (1): obrigado
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Marcio Machado

79566582

Date: 2025-04-10 12:08:36
Score: 4.5
Natty: 5
Report link

In the callback url you have to use regexp=(callback_url|logout_url)

https://is.docs.wso2.com/en/5.9.0/learn/openid-connect-logout-url-redirection/

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

79566578

Date: 2025-04-10 12:06:35
Score: 0.5
Natty:
Report link

So the problem was that I was using spring-boot-devtools which has a restart function. The restart class loader couldn't find the classes.

I got the hint when I tried to make a temporary workaround to cast the content of the Tuple to the correct type.

private <T> T getObject(Tuple tuple, T c) {
  return (T) tuple.get(0);
}

Then I used it like this

var customer = session.createQuery("FROM Customer", Tuple.class).getSingleResultOrNull();
return getObject(customer, new Customer());

Which threw a class loader exception which then led me to the following post with the solution.
Class loader error - unnamed module of loader org.springframework.boot.devtools.restart.classloader.RestartClassLoader
Disabling the restart function didn't work for me so I simply removed devtools from Maven.

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

79566570

Date: 2025-04-10 12:03:34
Score: 2.5
Natty:
Report link

This can be done with ReplaceRegExp like:

<replaceregexp 
    file="${src}/index.html"
    match="</copyright>.*?<copyright>" 
    replace="wombat"/>
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ibuch

79566559

Date: 2025-04-10 11:58:33
Score: 2.5
Natty:
Report link

you can first take a course, when i started learning lua, i immeadiatly tried to do an full game, but i failed because i didnt know nothing, i just had over-confidence, and it seems that youre commiting the same error. try doing scratch first to learn coding logic.

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

79566554

Date: 2025-04-10 11:56:32
Score: 3.5
Natty:
Report link

Android has a feature called "adb authorization timeout" that will revoke your device's adb permissions. You can disable it by looking for "Disable abd authorization timeout" in "Developer options"

enter image description here

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

79566553

Date: 2025-04-10 11:53:32
Score: 0.5
Natty:
Report link

You need to append to the end of url the name of the tab in lowercase and with dashes instead of spaces.
For example, if the tab is named "Second Tab" then the URL should end with #second-tab

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

79566544

Date: 2025-04-10 11:47:30
Score: 3.5
Natty:
Report link

Right click file in Visual Studio-->Git--> add missed file

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

79566542

Date: 2025-04-10 11:46:30
Score: 1.5
Natty:
Report link

₹2000 to 2 Crore From Export Business
The Role of a Custom House Agent in Gujarat

Navigating the complexities of international trade requires expertise in customs procedures, documentation, and compliance. A proficient Custom House Agent (CHA) ensures that your goods clear customs efficiently, minimizing delays and avoiding potential penalties. In Gujarat, ONS Logistics India Pvt. Ltd. offers comprehensive CHA services, handling everything from documentation to duty payments, ensuring a seamless export process.

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

79566534

Date: 2025-04-10 11:43:29
Score: 2
Natty:
Report link

enter image description hereenter image description here

Thanks for your feedback! Just to clarify — I personally verified the issue, tested the behavior in both PostgreSQL and Hibernate, and solved it based on actual results.

I used AI only to help structure and explain the findings more clearly. The debugging, configuration, and SQL-level checks were all done manually.

The solution is accurate, tested, and reflects the real behavior of how Hibernate handles Instant and TIMESTAMPTZ. Screenshot proof attached for clarity.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Makarand Hinge

79566530

Date: 2025-04-10 11:40:28
Score: 0.5
Natty:
Report link

This is not an error, it's a warning. The issue is that the tile is a bit wider than just the point where it's plotted at; if you set the lower limit to -1 you'll see those at x=0 get dropped/truncated. This is what the warning indicates. Set the x-axis limit a bit lower (-1.5 works) to provide sufficient space for those tiles.

Here's the before/after with slightly wider x-axis limits (red arrow added in post):

before/after x-axis limit change

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

79566525

Date: 2025-04-10 11:38:27
Score: 2.5
Natty:
Report link

Please check your Credentials on your Cloud Console. Inside OAuth 2.0 Client IDs, make sure you have the Web Client Id. If not, create the new client id. Thus, use the web client id, not the android one.

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

79566521

Date: 2025-04-10 11:37:26
Score: 9 🚩
Natty:
Report link

I'm trying to access the state inside a tool of an OpenAI Agent (agent=AgentType.OPENAI_FUNCTIONS) but I'm having trouble accessing it. I know this works with some agents, but I can't figure out how to do it with an OpenAI agent.

Has anyone encountered this issue or knows how to access the state in this case? Any help would be greatly appreciated!

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help would be greatly appreciated
  • RegEx Blacklisted phrase (2): I'm having trouble
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Javier Tejero

79566519

Date: 2025-04-10 11:37:26
Score: 2
Natty:
Report link

This solution works for me, but what for any other .properties file ? I don’t achieve to make it works with other properties file..

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: nonozor

79566513

Date: 2025-04-10 11:35:25
Score: 5
Natty:
Report link

I tried to package this into a .ps1 (I'm new, need help) and can it output any other data except the string of text? If I do it line by line, I get text, but when I try to make a .ps1 it fails at [System.WindowsRuntimeSystemExtensions].GetMethods() for some reason every time crying

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dominic S.

79566507

Date: 2025-04-10 11:31:24
Score: 1
Natty:
Report link

The ">>>" tells us that you are in the python interpreter, instead of within the outer shell/terminal. Essentially, you're trying to write a python script that installs pyautogui instead of installing pyautogui to your python.
Instead use whatever your terminal to directly install it with "pip install pyautogui" or something like "python -m pip install pyautogui". You can also activate a specific environment first if you're trying to install it into a specific environment instead of globally (which is typically suggested).

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

79566503

Date: 2025-04-10 11:30:24
Score: 2
Natty:
Report link

The reason the bitmap didn't showed up was apperently because how the data was passed.
It was passed from the function

ImageDataFactory.CreateRawImage(bytes)

and it should be done by

ImageDataFactory.Create(bytes)

as it is done in the example from the Part IV in the comment from @André Lemos

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @André
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: xerves

79566498

Date: 2025-04-10 11:28:23
Score: 6.5 🚩
Natty: 5
Report link

I'm having the same problem right now and i've tried adding the file to ignore list. All to no avail. It's frustrating

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: ManTeera

79566496

Date: 2025-04-10 11:28:22
Score: 1
Natty:
Report link
Image(systemName: "person.fill")
                       .resizable()
                       .foregroundStyle(.white)
                       .frame(width: 40, height: 40) resizable on the top
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roko

79566493

Date: 2025-04-10 11:26:22
Score: 0.5
Natty:
Report link

I found the issue,

    let instituteUser = await this.instituteUsersRepository.findOneBy({id: 1});
    instituteUser.updated_at = new Date().toISOString()

    await this.instituteUsersRepository.save(instituteUser) // Works OK
    await this.instituteUsersRepository.update({ id: 1 }, { updated_at: new Date().toISOString() }); // Works OK
    await instituteUser.save(); // Throws Error

The issue does not happen consistently. Sometimes, when I start the app, entity.save() works fine. Other times, it fails with the read-only transaction error.

This makes me suspect it depends on: Order of connection initialization or which connection is resolved at runtime

Anyway, solved it by changing the save function.

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

79566487

Date: 2025-04-10 11:24:21
Score: 4
Natty: 5.5
Report link

That worked for me too, thanks.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tim

79566472

Date: 2025-04-10 11:19:20
Score: 4.5
Natty:
Report link

Thank you. This worked a charm. The breakdown is extremely helpful!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DFitzie

79566470

Date: 2025-04-10 11:18:19
Score: 1.5
Natty:
Report link

The <a href="https://kfcmenuuk.info/">KFC MENU</a> in the UK has a lot of tasty chicken meals. You can get their famous fried chicken, which is made with a special mix of spices. They sell chicken pieces, burgers like the Zinger, and meals to share like big chicken buckets. If you want something small, you can try Popcorn Chicken or wings. They also have sides like chips, corn, and coleslaw. You can get drinks and desserts too. If you don’t eat meat, there’s a vegan burger as well. There’s something for everyone to enjoy.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: MENU KFC United kingdom

79566465

Date: 2025-04-10 11:17:19
Score: 1.5
Natty:
Report link

I finally got this to work! I wound up adding content security policy to web.config (I'm hosted by IIS). Thanks to Groc.

  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <remove name="X-Frame-Options" />
        <add name="Content-Security-Policy" value="frame-ancestors 'self' https://www.Example.com;" />
      </customHeaders>
    </httpProtocol>
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: GroupPlay

79566461

Date: 2025-04-10 11:15:18
Score: 2.5
Natty:
Report link

I just put the route to the file like parameter

sudo lighttpd -f/etc/lighttpd/lighttpd.conf start

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

79566455

Date: 2025-04-10 11:13:17
Score: 1
Natty:
Report link

I may have spoken too early about there being no mention of it in the official documentation, I found something here:

Docs > Instagram Platform > API Reference > IG Media

screenshot of is_shared_to_feed field from IG Media section of Instagram API documentation

The is_shared_to_feed field seems to do what I need.

I used the following request against 13 identical reels:

GET https://graph.facebook.com/<API_VERSION>/<IG_MEDIA_ID> \
  ?fields=is_shared_to_feed \
  &access_token=<ACCESS_TOKEN>

and 12 came back with a response of "false" while only returned "true":

{
  "is_shared_to_feed": true,
  "id": "180......111"
}

Hopefully this is enough allow me to consistently distinguish between the trial reels and the final one displayed in the grid 🤞

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: noodl_es

79566443

Date: 2025-04-10 11:08:16
Score: 1
Natty:
Report link

drawContours will work in-place on the image. Just make a copy of your image prior to drawing the contours onto it:

contour_image = copy.deepcopy(image)
contours, _   = cv2.findContours(canny, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
cv2.drawContours(contour_image, contours, -1, (0, 255, 0), 3)
cv2.imwrite('contours_on_image.png', contour_image)

Your image will remain untouched, thus you are cropping the original pixels.

License plat image without green glare

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

79566436

Date: 2025-04-10 11:05:15
Score: 3.5
Natty:
Report link

thanks bro you're my savior (for me only incognito worked, disabling extensions didn't help)

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gordon Freeman

79566433

Date: 2025-04-10 11:03:15
Score: 0.5
Natty:
Report link

I will also add here my 2 cents. Since I had similar problems. In my organization we are using vite, but it should work with jest as well. I am pretty sure about it, since I made the migration from jest to vite a year ago.

First i dont like the __mocks__ solution mentioned above, it would be nice if you had a custom AxiosConfig.ts class that looks like this

import axios, { AxiosInstance } from 'axios'

class AxiosConfig {
  unsecuredAxios: AxiosInstance
  securedAxios: AxiosInstance

  constructor() {
    this.securedAxios = this.createSecuredAxios()
    this.unsecuredAxios = axios.create()
  }

  private createSecuredAxios(): AxiosInstance {
    return instance
}

const axiosConfig = new AxiosConfig()
export const securedAxios: AxiosInstance = axiosConfig.securedAxios
export const unsecuredAxios: AxiosInstance = axiosConfig.unsecuredAxios

Then you have most likely a folder that holds your AxiosConfig.ts and in there you could create mocks folder that holds the mocked implementation.

However, I have seen many times things changing and developers (including me) forgetting to change the mocked class. You also have to import it when you want to use it, which can be a lot if 100 tests use your mocked Axios instance. My point is it gets messy.

The way we got around it is like this In vite.config.ts

 test: {
    globals: true,
    environment: 'jsdom',
    passWithNoTests: true,
    setupFiles: './src/test/setup.ts'}

And then in the setup.ts

// Set up global mocks
vi.mock('@/yourpath/AxiosConfig', () => {
  const mockAxiosImplementation = {
    request: vi.fn().mockImplementation(() => {
      return Promise.resolve({
        status: 200,
        statusText: 'OK',
        headers: {},
        data: [],
        config: {}
      })
    }),
    interceptors: {
      request: {
        use: vi.fn(),
        eject: vi.fn()
      }
    }
  }

  return {
    AxiosConfig: vi.fn().mockImplementation(() => ({
      securedAxios: mockAxiosImplementation,
      unsecuredAxios: mockAxiosImplementation
    })),
    securedAxios: mockAxiosImplementation,
    unsecuredAxios: mockAxiosImplementation
  }
})

Note that this was the best way for us since we use openApi and our automatically created requests look like this.

export class SharedProcedureParametersApi extends BaseAPI implements SharedProcedureParametersApiInterface {

public getRejectionReasons(options?: AxiosRequestConfig) {
    return SharedProcedureParametersApiBase(this.configuration).getRejectionReasons(options).then((request) => request(this.axios, this.basePath));
}

No need to wrap anything, just mock it once, and it works fine, I think the CI/CD pipelines for the unit tests in fronted are a bit faster that way.

About this approach

Pros: 
-Consistency: Mocks are applied consistently across all tests. 
-Convenience: No need to repeat mock definitions for each test. 
Cons: 
-Global Impact: Accidental side effects in mocks can affect all tests. 
-Less Control

In the spirit of the answer above, I hope someone finds this helpful. Cheers.

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: physicsuser

79566431

Date: 2025-04-10 11:03:15
Score: 0.5
Natty:
Report link

Using Conditional Formatting Color Scale

I don't think that this is a programming question as this doesn't need a custom formula. However, to answer your question this is how you do it.

Sample Output

image

Note: You can adjust the gradient by adjusting the mid point.

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

79566427

Date: 2025-04-10 10:58:13
Score: 4
Natty: 5
Report link

I am facing issue with MUI .net 8, camera view is not able to detect barcode

I am able to get camera count > 0 but failing to detecting barcode

Reasons:
  • Blacklisted phrase (1): I am facing issue
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: reetu

79566419

Date: 2025-04-10 10:54:12
Score: 1.5
Natty:
Report link
var message = new MailMessage("My Name [email protected]",);
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Mikhail Zhuikov

79566402

Date: 2025-04-10 10:43:09
Score: 0.5
Natty:
Report link

In my case the same error was caused by a usage of a different version of node.

I switched to node 20, initialized my project with npm create vite, switched to node 16, and the error occurred on npm run dev.

Just needed to switch back to the node version the project was initialized with.

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

79566397

Date: 2025-04-10 10:41:09
Score: 1
Natty:
Report link

Just get rid of passwords and use SSH Keys to connect to your target systems. Even the manpage of sshpass says under "Security Considerations":

"[...] users of sshpass should consider whether ssh's public key authentication provides the same end-user experience, while involving less hassle and being more secure."

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

79566390

Date: 2025-04-10 10:36:08
Score: 4.5
Natty:
Report link

I was also looking for the tool. Found the following: Google font to svg. Done things for me. (Picas tool appreciated here was not available for the moment of my answer)

enter image description here

Reasons:
  • Blacklisted phrase (1): appreciated
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: vira.go

79566388

Date: 2025-04-10 10:35:07
Score: 2.5
Natty:
Report link

I had exactly the same issue, when I recently updated to Docker Desktop 4.39. Version 4.40 did not work either. After trying out different things, the only workable solution I found was to downgrade to an older version.

Finding the older Docker.dmg wasn't straight forward, but this page is helpful. It lists the download links for some older Docker.dmg files and in the end of the page there is a python script to search for newer ones.

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

79566387

Date: 2025-04-10 10:35:07
Score: 1.5
Natty:
Report link

You're migrating a legacy project to Spring Boot 3 and Hibernate 6.5.3, and noticed that timestamps written using Instant.now() now behave differently — they are stored with a +02 offset when using spring.jpa.properties.hibernate.type.preferred_instant_jdbc_type=TIMESTAMP, but when reading them back, Hibernate treats them as UTC, leading to incorrect comparisons in queries. This happens because the setting only affects how Hibernate writes Instant values, not how it reads them. Since PostgreSQL stores TIMESTAMP WITHOUT TIME ZONE without timezone context, Hibernate assumes it's UTC during reads, even if the actual value was saved in local time. To fix this, it's recommended to either switch the column type to TIMESTAMP WITH TIME ZONE, which handles conversions properly, or store all times in UTC and convert to the desired timezone at the presentation layer.

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

79566386

Date: 2025-04-10 10:35:07
Score: 2.5
Natty:
Report link

Actually I alse met this problem,I tried to delete all files related to vscode on Ubuntu server,such as ~/.vscode-server.Then I connected another server, and all was normal.I tried to restart to connect to the former Ubuntu server,and the issue was solved

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

79566382

Date: 2025-04-10 10:33:06
Score: 4
Natty:
Report link

I meet the same issue after I upgrade Command_Line_Tools_for_Xcode to 16.3 and can't find any solutions. So I just downgrade the Command_Line_Tools to 16.2 and then everything behaviors OK.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hugo

79566378

Date: 2025-04-10 10:32:06
Score: 0.5
Natty:
Report link

Making the TRs flex boxes and the TBODY a block with a max height and overflow scrolling seems to do the trick for me:

table.sticky-headers tbody {
    overflow: scroll;
    max-height: 80vh;
    display: block;
}
table.sticky-headers tr {
    display: flex;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: james-geldart

79566373

Date: 2025-04-10 10:30:05
Score: 1.5
Natty:
Report link

With FastAPI, you might see this error when you send a request with a trailing / in the url but the router has no trailing /

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

79566371

Date: 2025-04-10 10:28:04
Score: 3
Natty:
Report link

Happened to me recent with my forms. I found out that you need to click file, project and then open the sln file in the folder and then it works.

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

79566368

Date: 2025-04-10 10:27:04
Score: 3
Natty:
Report link

Sometimes, clean the project maven update , after maven install, run the project , its might work fine.

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

79566365

Date: 2025-04-10 10:26:03
Score: 8.5 🚩
Natty:
Report link

Any luck i am also facing the same issue today

Reasons:
  • Blacklisted phrase (1): i am also facing the same issue
  • Blacklisted phrase (1.5): Any luck
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i am also facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pawan Kumar Singh

79566357

Date: 2025-04-10 10:24:02
Score: 3.5
Natty:
Report link

I think I encountered the same thing. Use this document:

https://scdn.rohde-schwarz.com/ur/pws/dl_downloads/dl_application/application_notes/1sl374/1SL374_0e.pdf

You probably need to enable the termination characters in the resource mannager. Use the message based session object like this:

mbSession.TerminationCharacterEnabled = true;

Reasons:
  • Blacklisted phrase (1): this document
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Teun

79566355

Date: 2025-04-10 10:24:02
Score: 1.5
Natty:
Report link

Since my project was not using wakelock directly , I couldn't update the package. My solution was to update the flutter_html package in pubspec.yaml file

use following command

flutter pub add flutter_html

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: priyanka.b

79566353

Date: 2025-04-10 10:22:02
Score: 4
Natty:
Report link

i finally solve it buy creating a plugin to manage the custom theme and it's dartk theme

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

79566347

Date: 2025-04-10 10:19:01
Score: 1.5
Natty:
Report link

Change this code:

to='[email protected],[email protected]'
to=['[email protected]','[email protected]']

And this:

msg['To'] =to
msg['To'] =" ".join(to)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dima Radchuk

79566343

Date: 2025-04-10 10:17:00
Score: 2.5
Natty:
Report link

Dim ltMetaTags As RadGrid = Nothing

Dim ctl As Control = Me.Parent

Dim ltMetaTagds As RadGrid = CType(ctl.FindControl("RadGrid1"), RadGrid)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Arul Shankar Rajendran

79566339

Date: 2025-04-10 10:11:59
Score: 0.5
Natty:
Report link

The correct answer would be to put a case statement inside the first_value, like this:

select id, date, value, first_value(case where value is not null then value end) ignore nulls over (order by date desc) as value2 from table
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Wix

79566335

Date: 2025-04-10 10:09:59
Score: 2.5
Natty:
Report link

One way is using the FileZilla app
Just connect to server and then drag and drop the files from server to local and vise versa.

https://filezilla-project.org/download.php?show_all=1

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: nerd-guy

79566306

Date: 2025-04-10 09:54:55
Score: 3.5
Natty:
Report link

Stop scanning before calling connectGatt may help.

This happened in some legacy Huawei/Honor devices.

Ref: https://medium.com/@martijn.van.welie/making-android-ble-work-part-2-47a3cdaade07

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

79566304

Date: 2025-04-10 09:53:55
Score: 1
Natty:
Report link

DateTimeFormatterBuilder.appendInstant(int fractionalDigits)

As a supplement to the answer by Basil Bourque, if you prefer, you can create a formatter that leaves out the fractional seconds of an Instant. You will still have to delete T and Z yourself if you don’t want them. So you may consider that it is not worth it.

The formatter would be:

public static final DateTimeFormatter instantFormatterNoSeconds
        = new DateTimeFormatterBuilder()
                .appendInstant(0)
                .toFormatter(Locale.ROOT);

The 0 passed to appendInstant() specifies that we want no fractional digits.

Demonstration:

    String noFractionalSeconds = instantFormatterNoSeconds.format(Instant.MAX);
    String noTAndZ = noFractionalSeconds.replace('T', ' ').replace("Z", "");
    System.out.println(noTAndZ);

Output:

+1000000000-12-31 23:59:59

Why did your code fail?

It seems to be a design decision that the formatters obtained from DateTimeFormatter.ofPattern() do not support the last some 400 days of the range supported by Instant. It may have to do with not wanting to risk that parsing with such a formatter would lead to values that are out of range for other date-time types such as LocalDateTime; but this is speculation.

Basil Bourque in his answer correctly mentions that year 1 000 000 000 does not fit with your specification of a 4 digit year. This has nothing to do with your code failing, though. Your formatter does support years outside the four digit range. It will print them with the necessary number of digits (up to 9, I believe, since it does not support dates in year 1 000 000 000) and with a sign (+ or -).

Documentation link

DateTimeFormatterBuilder.appendInstant(int)

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Filler text (0.5): 000000000
  • Low reputation (1):
Posted by: Manea Schmit

79566295

Date: 2025-04-10 09:50:54
Score: 2
Natty:
Report link

I found the root cause, here is the solution if someone face the same issue. The fact that the project was using Capacitor HTTP, was working under Capacitor 5 for AWS Client (@aws-sdk/client-s3) but no more under Capacitor 6 and 7 (tested both).

in file capacitor.config.ts :

 "CapacitorHttp": {
      "enabled": true

This was a requirement for some other webserices that I should call. So what I did, is to set them off :

in file capacitor.config.ts :

 "CapacitorHttp": {
      "enabled": false

This made working @aws-sdk/client-s3 under Capacitor 7 but was problematic for my other Webservice. So I recoded manually and explicitly my other using import { CapacitorHttp } from '@capacitor/core'; and removing all references to Angular HTTP.

I'm always very impressed by people who spend more time downvoting a ticket than providing a solution. So if you have issue on your @aws-sdk/client-s3 transmission when updating Capacitor check the CapacitorHttp, there's breaking change in the comportement between v5 and v6+.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): face the same issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Iteration

79566294

Date: 2025-04-10 09:50:54
Score: 1
Natty:
Report link

They're pretty much handled the same under the hood by Nitro. The main differences are mostly about semantics and organization. If you put files in server/api, it's just a clear way to tell other devs (and yourself) that these endpoints are meant for API stuff, like handling JSON or similar responses. Plus, you might get some automatic goodies like JSON body parsing. But if you drop your endpoint in server/routes, it's just as flexible but doesn't come with those extra conventions, it's more generic. So, it's less about how the request is processed and more about keeping your project organized.

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

79566287

Date: 2025-04-10 09:49:53
Score: 1
Natty:
Report link

Linux. Seems like Docker Desktop stores all cached data in only 1 file:

.docker/desktop/vms/0/data/Docker.raw

And i can't delete it with:

what-ever prune -af

Check disk usage in your .docker dir:

sudo apt install ncdu
cd ~/.docker
ncdu
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shelmn

79566275

Date: 2025-04-10 09:44:52
Score: 0.5
Natty:
Report link

Setting Access Permissions: In the Power Platform admin center, you can set permissions for Copilot Studio authors. By default, all users in your Microsoft Entra tenant will have Copilot Studio authoring access. If you need to restrict authoring access, you can change the default permissions and choose a different Security Group
Go to copilot studio->power platform admin center and try changing the permissions there.
Also try referring to below doc if that doesn't help
https://learn.microsoft.com/en-us/microsoft-copilot-studio/admin-share-bots?tabs=web

Hope this helps!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: user30231708

79566262

Date: 2025-04-10 09:41:51
Score: 2.5
Natty:
Report link

Most likely the cause of the issue is not organized or not in order of values.
Checkout the string and key if it is in order.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: K. Usman

79566254

Date: 2025-04-10 09:37:50
Score: 1
Natty:
Report link

To catch both the first occurrence of a counter and any later increases, use:

increase(app_error[1h]) > 0
or
(app_error unless app_error offset 1h)

Why this works:

increase(...) catches normal increments.

app_error unless app_error offset 1h catches the first event, when the metric appears now but was missing 1 hour ago.

In comparison with the answer from @ivaylo-kolev, this returns per-label vectors instead of single scalar output, giving a more detailed result.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @ivaylo-kolev
  • Low reputation (0.5):
Posted by: Joep

79566251

Date: 2025-04-10 09:36:49
Score: 4.5
Natty:
Report link

I found this on their docs exmaples https://github.com/reown-com/appkit-web-examples/tree/main/javascript/javascript-wagmi

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

79566250

Date: 2025-04-10 09:35:49
Score: 3.5
Natty:
Report link

I don't have an answer for your just mentioning we do the same thing.

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

79566249

Date: 2025-04-10 09:35:48
Score: 8.5 🚩
Natty:
Report link

I'm experiencing this issue as well — it suddenly started happening today. Yesterday's build was working just fine. Can someone explain why this is happening all of a sudden and what's the best way to fix it?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can someone explain
  • RegEx Blacklisted phrase (1.5): fix it?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: jmagdada

79566242

Date: 2025-04-10 09:31:47
Score: 2.5
Natty:
Report link

Based on @Forfarle answer, now it should be:


    Doctrine\DBAL\Driver\OCI8\Middleware\InitializeSession:
        tags:
            - { name: doctrine.middleware }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Forfarle
  • Low reputation (1):
Posted by: moux2003

79566226

Date: 2025-04-10 09:24:45
Score: 3
Natty:
Report link

AWS deployments use docker containers to "host" the applications. To run the command, you need to access the docker container hosting the Orocommerce application.

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

79566219

Date: 2025-04-10 09:21:45
Score: 0.5
Natty:
Report link

You can't have a JWT authorizer with AWS::Serverless::Api.

Either switch to use AWS::Serverless::HttpApi, or implement your own JWT authorizer with a Lambda authorizer. I can't see anything in your template that isn't supported by AWS::Serverless::HttpApi so switching to that is probably your best option.

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

79566218

Date: 2025-04-10 09:20:44
Score: 0.5
Natty:
Report link

Problem:

Your GA4 gtag.js snippet appears correctly implemented, includes a user_id, and passes the real-time configuration test in the GA4 Admin interface (Test your website shows a green tick). However, no data is appearing in your GA4 reports weeks later, and you see the "Data collection isn't active" warning.

Likely Causes & How to Troubleshoot:

The successful admin test usually just verifies that the tag syntax is detectable on the URL provided. It doesn't always guarantee that data is being successfully transmitted and processed from your live site during normal user visits. The most common reasons for this discrepancy are:

Hits Not Sent from Live Site:

Hits Blocked:

Hits Not Received/Processed by GA:

Install the "Google Analytics Debugger" Chrome extension and turn it ON.

In your GA4 Property, go to Admin > Data display > DebugView.

Visit your live website in Chrome (with the extension ON).

If YES: Data is reaching Google. The problem might be significant reporting delays (unlikely after weeks), or Data Filters (Admin > Data Settings > Data Filters) accidentally excluding all your traffic (check if 'Developer Traffic' filters are misconfigured or too broad).

If NO: Combined with seeing no hits in the Network tab, this strongly points to the tag not firing or hits being blocked client-side (Points 1 & 2).

In summary: Focus first on the Network tab on your live site and GA4 DebugView. These will quickly tell you if the browser is sending data and if GA is receiving it, narrowing down whether the issue is tag implementation/firing, client-side blocking, or GA filtering. The passing admin test can be misleading in these scenarios.

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

79566215

Date: 2025-04-10 09:19:43
Score: 3
Natty:
Report link

you must either update flutter or use an older version of gradle because you are using the latest version of gradle with an older version of flutter so they are incompatible.

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

79566212

Date: 2025-04-10 09:17:43
Score: 2
Natty:
Report link

I had similar issue with VS2022.

I went to "Tools -> Options -> Debugging -> General", the option "Enabled Just My Code" was disabled, I could debug "external code", but it did not work for performance profiler.

Then I discovered in "Performance Report" window, there is "Settings -> Show Just My Code" option, and these "Just My Code" settings were not synchronized(it was checked by default). After disabling it, I can analyze "external code".

enter image description here

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

79566208

Date: 2025-04-10 09:16:42
Score: 0.5
Natty:
Report link

The font size of the search popup is dependent on the size of Environment font (under Tools > Options > Environment > Fonts and Colors), but as well considers the current zoom of the editor window.
If you don't want to increase the Environment font size (because it affects as well the menu size, etc.), you can change (decrease) the size of the Text Editor font and then change the zoom of the editor window (using Ctrl+wheel). This will have the side-effect of increasing the font size in the popups.

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

79566202

Date: 2025-04-10 09:13:42
Score: 1
Natty:
Report link

TTFB at 600 ms is quite slow—Google recommends keeping it under 200 ms.
As for the Render Delay (2,620 ms), your input isn’t specific enough yet. I suggest using the Performance tab in Chrome DevTools to record a session and identify any scripts or rendering tasks that might be blocking the main thread.

enter image description here

Let me know what you find—happy to help dig deeper.

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

79566199

Date: 2025-04-10 09:13:42
Score: 0.5
Natty:
Report link

I thought of a way to measure this in a container with some test data:

podman run --name test_postgres --rm -e POSTGRES_PASSWORD=example --mount type=bind,source=init_db.sql,destination=/docker-entrypoint-initdb.d/init_db.sql docker.io/postgres
CREATE TABLE A (
    id INTEGER PRIMARY KEY,
    val1 VARCHAR(32),
    val2 VARCHAR(32)
);

CREATE TABLE B (
    id INTEGER,
    rel INTEGER REFERENCES A(id),
    val VARCHAR(32),
    PRIMARY KEY (rel, id)
);

-- Use random_string from https://stackoverflow.com/a/3972983/2256700
-- [...]
INSERT INTO A 
SELECT s.a, random_string(32), random_string(32) FROM generate_series(1,100) as s(a);

INSERT INTO B
SELECT s.a, A.id, random_string(32) from generate_series(1,1000) as s(a), A;

Then installed strace in the container with apt-get update && apt-get install strace to find out how much data is transferred:

$ strace -e %net -o single_command_strace.out \
psql -U postgres -c "SELECT * FROM A INNER JOIN B ON A.id = B.rel;" > single_command_result.txt
$ # summing the last number of all the `recvfrom` lines:
$ cat single_command_strace.out | grep '^recvfrom' | grep -o -E '[[:digit:]]+$' | awk '{s+=$1} END {print s}'
13373905
$ strace -e %net -o two_command_strace.out \
psql -U postgres -c "SELECT * FROM A; SELECT * FROM B;" > two_command_result.txt
$ cat two_command_strace.out | grep '^recvfrom' | grep -o -E '[[:digit:]]+$' | awk '{s+=$1} END {print s}'
5590420

Napkin math:

The full cross join should be approximately 100000 * (8 + 32 + 32 + 8 + 8 + 32) bytes = 12000000 bytes, which is close to the actual 13373905 bytes received. The actual useful/unique data is only 100 * (8 + 32 + 32) + 100000 * (8 + 8 + 32) = 4807200 which is also closer to 5590420 bytes of the two-query approach.

So apparently the data isn't deduplicated for transfer and doing the big join is probably a bad idea.

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

79566191

Date: 2025-04-10 09:10:41
Score: 0.5
Natty:
Report link

In my case I have moved the file in other folder. So once you move it to other location so make sure to change the path in Build Settings: > Swift Compiler > Objective-c Bridging Header > Debug/Release

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

79566178

Date: 2025-04-10 09:02:39
Score: 5
Natty:
Report link

As commented by dbc, the anwer is here:
Deserialize Dictionary<string, object> with enum values in C#

And I am probably blind :(

Reasons:
  • Blacklisted phrase (1): :(
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Joost Jens

79566168

Date: 2025-04-10 08:57:37
Score: 4
Natty:
Report link

Series scatter with large: true solve my problem. Althou theming of lines is not possible any more.

But when the optimization enabled, the style of single data item can't be customized any more.

Thanks to @Matthias Mertens for an idea.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Matthias
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ondra Gross

79566160

Date: 2025-04-10 08:55:37
Score: 1
Natty:
Report link

For the first problem, the easy fix that I see is make the split of the name as you are doing it and take the first and last element of it ([0] and [-1]) for the first and last name.

For the problem number three, it does only mean that smtp_status is False and email is not found in google so check with existing email your function to see if the functions works one by one

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

79566143

Date: 2025-04-10 08:45:35
Score: 2.5
Natty:
Report link

Just tested in "Android Studio Meerkat | 2024.3.1 Patch 1"

Now it is behind a different button to find:

Screenshot of Android Studio showing where to enable Dark Them for app preview

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

79566139

Date: 2025-04-10 08:44:34
Score: 1
Natty:
Report link

The filter is not the responsible ! It was a Keycloak configuration issue.

The Keycloak behavior

When you give the uma_protection role of a client to a user, the roles client scope automatically adds the client to the audience of access token through the audience resolve mapper.

My bad

To test the authorization I was removing the uma_protection role of the client from the user. Thus, the client was not added to the audience of the access token anymore.

The solution

The goal is to add the client to the audience of the access token.

Don't know if other options are available, but the one that we chose is to create a client scope with a token mapper of type Audience having the client included :

The Keycloak form for creating a client scope The Keycloak form for creating a mapper

We then add this scope to each client that needs an access token allowed to request the first one:

The Keycloak client scope tab of a client page

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

79566138

Date: 2025-04-10 08:44:34
Score: 3.5
Natty:
Report link

I change the test java file and add "extend TestCase",and then fix the problem.

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

79566135

Date: 2025-04-10 08:43:34
Score: 1
Natty:
Report link

I encountered the same with the line:

Queue<string> colors = new(new ColorEnumerator());

VS 17.13.6 proposes to replace it with

Queue<string> colors = [];

which is overtly wrong. Should be logged as a bug.

Suppressing it with #pragma warning disable IDE0306.

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

79566131

Date: 2025-04-10 08:42:34
Score: 2.5
Natty:
Report link

In my case, even though eclipse application was closed its process was still running. So I opened Task Manager and ended the eclipse task and relaunched eclipses and problem was solved

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

79566128

Date: 2025-04-10 08:40:33
Score: 2.5
Natty:
Report link

The 403 error means Apache is blocking access to /home/ubuntu/www/. Fix it by updating your Apache config:

<Directory /home/ubuntu/www/>
    Require all granted
</Directory>

Then set correct permissions:

sudo chown -R www-data:www-data /home/ubuntu/www/
sudo chmod -R 755 /home/ubuntu/www/
sudo systemctl restart apache2

Need help? Contact Bramerz – Website Development Agency.

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Muhammad Bilal

79566122

Date: 2025-04-10 08:34:32
Score: 1.5
Natty:
Report link

Yes, it is possible to provide partial examples in Hypothesis, but the way it's handled depends on the specifics of how you use the @example decorator alongside @given. Let me clarify how this works and address your case.

So, in your example:

from hypothesis import given, example
import hypothesis.strategies as st

@given(a=st.integers(), b=st.integers())
@example(a=0)
def test_example(a, b):
    assert isinstance(a, int)
    assert isinstance(b, int)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @example
  • User mentioned (0): @given
  • Low reputation (1):
Posted by: Christopher Enoch

79566120

Date: 2025-04-10 08:34:32
Score: 0.5
Natty:
Report link

When mounting a fuse-type mount, the actual fuse program is ran as a service (daemon) in the system.

When you access the mount point, doing so under strace (example: strace npm ci) won't trace the fuse service.

To debug the actual fuse, you should mount it with the -o debug flag.

And if you really want to strace it, find the service PID using ps and attach it to strace using strace -p.

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Oren Kishon

79566114

Date: 2025-04-10 08:33:32
Score: 2
Natty:
Report link

To implement controlled full screen, these are key points:

  1. Blocking of Escape and Dangerous Keys.
  2. Show the warning modal when the user tries to exit full screen.
  3. Make sure the app remain in full screen until the user summits the exam.
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Glich Coder

79566105

Date: 2025-04-10 08:28:30
Score: 2
Natty:
Report link

I think this solve your pb :

cmd //c tree

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

79566100

Date: 2025-04-10 08:27:30
Score: 3.5
Natty:
Report link

After updating composer to the newer version, error disappears

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Vadym Urupa

79566099

Date: 2025-04-10 08:26:30
Score: 2
Natty:
Report link

Brain fade! I'd gotten the redirect uri slight wrong in B2C. As you were :).

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

79566092

Date: 2025-04-10 08:22:29
Score: 0.5
Natty:
Report link

I've finally managed to find the source of the issue. It was an issue with Windows Powershell incorrectly calling the git and therefore all the flutter commands are incorrectly editing the engine.version file inside Flutter SDK.

Both command line and Git bash were calling the git correctly, but only Powershell was doing it incorrectly. So, followed that to the System32 folder and found that there is an empty file called git in there which is being called by Powershell instead of the correct path set in the Environment variables. Simply deleting that file fixed the issue (not sure how that file got there in the first place).

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

79566086

Date: 2025-04-10 08:21:28
Score: 0.5
Natty:
Report link

You need to change the kotlin version in your android root project,

ext.kotlin_version = '1.6.0' // or whatever version is currently there

Replace it with the latest stable version, for example:

ext.kotlin_version = '1.9.0' // or latest version

Also update gradle android/gradle/wrapper/gradle-wrapper.properties file
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip

hope it helps!

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Poorvesh Modasia

79566079

Date: 2025-04-10 08:20:28
Score: 3
Natty:
Report link

You can do it, for example using benchmark-runner. Here is the doc about it

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