79715316

Date: 2025-07-25 23:42:17
Score: 2.5
Natty:
Report link

The `extern` keyword was made for this. This is explained well in [These StackOverflow Answers](When to use extern in C++). In short, `extern` tells the linker that the different modules need to reference the same underlying object.

I also needed to remove static readwrite permission, i.e.

```python

instance = Singleton.get_instance()

instance.test = 'New Value'

print(instance.test)

```

changes to

```python

Singleton.set_test_val('New Value')

print(Singleton.get_test_val())

```

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jordan

79715315

Date: 2025-07-25 23:41:17
Score: 0.5
Natty:
Report link

You kind of answered the question yourself:

A map can contain any type as long as all the elements are of the same type

So, with this, what does map(object) mean? It means it is a map, where the type of all of the values in the map must be on object. This is most useful when you further define the types of those objects. For example:

variable "allowed_security_groups" {
  type = map(object({
    id = string
  }))
}

This is a map where every value must be an object with an attribute id. This sort of type definition can be very useful for modules that need to iterate over something with complex inputs.

resource "aws_vpc_security_group_ingress_rule" "allowed_security_groups" {
  for_each = var.allowed_security_groups
  security_group_id            = aws_security_group.this.id
  # The type declaration guarantees that every iteratee has an id attribute
  referenced_security_group_id = each.value.id

  from_port = 443
  to_port   = 443
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jeff Beal

79715313

Date: 2025-07-25 23:39:17
Score: 3
Natty:
Report link

You can try databook.dev if you are looking for a way to share your analysis results with non techical people

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

79715311

Date: 2025-07-25 23:38:16
Score: 3.5
Natty:
Report link
¡Qué pasa, puto makina! 😎 Vamos al lío con ese pheatmap que te está quedando pro, pero la barra de color (legend) se te ve enana. Te explico todo y te doy opciones según lo que tú quieras: seguir con pheatmap, pasarte a ComplexHeatmap, o tunear a lo loco con ggplot2.


---

🧨 Problema: La leyenda (barra de color) es demasiado pequeña

🎯 Solución directa con pheatmap (truquillos)

La mala noticia: pheatmap no expone directamente el tamaño de la barra de color como parámetro.

La buena noticia: puedes forzarla manipulando el tamaño general del gráfico (output) y jugar con la escala de fuente fontsize.

Pero no puedes aumentar solo el tamaño de la barra de color directamente con pheatmap, a menos que edites el objeto gráfico (gtable/grob), o te pases a otras librerías.


---

🔥 OPCIÓN 1 – Usar grid para modificar la leyenda (sólo si vas a exportar o ajustar en un paso posterior)

library(pheatmap)
library(grid)

heat <- pheatmap(data,
         color = colors,
         breaks = breaks,
         cluster_rows = TRUE,
         cluster_cols = TRUE,
         cellwidth = 5,
         cellheight = 5,
         fontsize = 20,
         fontsize_row = 5,
         fontsize_col = 5,
         treeheight_row = 500,
         treeheight_col = 500,
         show_rownames = FALSE,
         show_colnames = FALSE,
         border_color = NA,
         annotation_col = filtered_metadata,
         silent = TRUE)  # 👈 IMPORTANTE

# Extraer grob
g <- heat$gtable

# Agrandar la leyenda (esto es jodido y fino)
library(gridExtra)
grid.newpage()
grid.draw(g)

Pero si vas por ahí... mejor haces lo que viene abajo.


---

🚀 OPCIÓN 2 – Usa ComplexHeatmap (mucho más potente)

library(ComplexHeatmap)

col_fun <- colorRamp2(
  breaks = seq(95, 100, length.out = 100),
  colors = c("white", "blue", "yellow", "gold", "goldenrod1", "orange", "red")
)

Heatmap(data,
        col = col_fun,
        cluster_rows = TRUE,
        cluster_columns = TRUE,
        show_row_names = FALSE,
        show_column_names = FALSE,
        row_dend_height = unit(5, "cm"),
        column_dend_height = unit(5, "cm"),
        heatmap_legend_param = list(
          title = "Intensidad",
          title_gp = gpar(fontsize = 14),
          labels_gp = gpar(fontsize = 12),
          legend_height = unit(5, "cm")  # 👈 TÚ DEFINES el tamaño
        ))

🔥 Esto te da control total sobre:

Tamaño y estilo de leyenda

Múltiples leyendas

Anotaciones pro

Exportación elegante



---

🧠 OPCIÓN 3 – Convertir a ggplot2 (con pheatmap::pheatmap(..., silent = TRUE) + gridExtra o ggplotify)

Muy fino pero más esfuerzo. Si solo necesitas la barra gorda, vete con ComplexHeatmap.


---

✅ Conclusión

Si te mola pheatmap y no quieres complicarte:

Exporta más grande (png(width = ..., height = ...))

Aumenta fontsize

Usa silent=TRUE y edita con grid.draw() (complicado)


Si quieres un control real: 👉 Cámbiate ya a ComplexHeatmap, cabrón. Vas a flipar con lo que puedes hacer.
Reasons:
  • Blacklisted phrase (1): está
  • Blacklisted phrase (3): Solución
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jero Ramírez

79715295

Date: 2025-07-25 22:47:07
Score: 0.5
Natty:
Report link

Thanks to @DanielD.Sjoberg for pointing me towards the documentation to solve this, link here.

Corrected code is below so folks can reference this going forward.

## Use gtsummary package to create descriptive statistics table
descriptivestable <- KUWRowPowerDF |> 
  select(all_of(allvars)) |> 
  tbl_summary(
    type = all_of(c(normalvar, nonnormalvar)) ~ "continuous",
    statistic = list(
      all_of(normalvar) ~ "{mean} (\u00B1 {sd})",
      all_of(nonnormalvar) ~ "{median} ({p25}, {p75})"
    ),
    digits = all_continuous() ~ 1,
    label = list(
      `Age` ~ "Age (years)",
      `Height_cm` ~ "Height (cm)",
      `Weight_kg` ~ "Weight (kg)",
      `On-Water_Rowing_Experience` ~ "On-Water Rowing Experience (Years)",
      `Indoor_Rowing_Experience` ~ "Indoor Rowing Experience (Years)",
      `7-Stroke_W` ~ "7-Stroke Peak Power Test (W)",
      `7-Stroke_W/kg` ~ "7-Stroke Peak Power Test (W/kg)",
      `20-Second_W` ~ "20-Second All Out Test (W)",
      `20-Second_W/kg` ~ "20-Second All Out Test (W/kg)",
      `60-Second_W` ~ "60-Second All Out Test (W)",
      `60-Second_W/kg` ~ "60-Second All Out Test (W/kg)",
      `2k_Avg_W` ~ "2,000-meter (W)",
      `2k_W/kg` ~ "2,000-meter (W/kg)",
      `2k_Avg_Speed_m/s` ~ "2,000-meter Speed (m/s)",
      `2k_Stroke_length` ~ "2,000-meter Stroke Length (m)",
      `2k_Total_Time_sec` ~ "2,000-meter Time (s)"
    )
  ) |> 
   add_stat(fns = stat_fns) |>                
   modify_header(
    stat_0 ~ "**Mean ± SD**",
    add_stat_1 ~ "**Shapiro–Wilk p**",  
    label ~ "**Variable**"                  
  ) |>
  bold_labels() |>
  remove_footnote_header(columns = all_stat_cols()) |>
  modify_footnote_body(
    footnote = "Denotes non-normally distributed variable, reported as Median + IQR (p25, p75)",
    columns = label,
    rows = variable %in% c("Age", 
                           "On-Water_Rowing_Experience", 
                           "Indoor_Rowing_Experience", 
                           "20-Second_W", 
                           "2k_Avg_Speed_m/s") 
    & row_type == "label"
  ) |> 
  modify_table_body(~ .x |> 
      arrange(factor(variable, levels = allvars))
  ) |> 
  as_gt() |> 
  gt::tab_header(title = md("**Table 1 | Participant Characteristics**"),
                 subtitle = md("**N = 40; p ≤ 0.05**")
  )

descriptivestable
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Joseph M. DeLeo

79715274

Date: 2025-07-25 22:04:59
Score: 1
Natty:
Report link

Bottom line is that "variables" in OpenSCAD aren't (variable, that is). You cannot change the value of a variable once it is assigned. Attempting to do so can apparently have a variety of results, none of which are what I expected.

From <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/General#Variables_cannot_be_changed%5C>:

The simplest description of OpenSCAD variables is that an assignment creates a new variable in the current scope, and that it's not legal to set a variable that has already been set in the current scope. In a lot of ways, it's best to think of them as named constants, calculated on entry to the scope.

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

79715265

Date: 2025-07-25 21:53:56
Score: 1.5
Natty:
Report link

If you are using Oh My Zsh as your framework and update it, you may need to also re-source your .zshrc file source ~/.zshrc because it has GPG_TTY=$(tty)' inside. This fixed my problem, hopefully this can help others too.

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

79715259

Date: 2025-07-25 21:34:52
Score: 0.5
Natty:
Report link

AWS Upgrading to Tomcat 9.0.71 or later is what caused this to occur: https://tomcat.apache.org/security-9.html#Fixed_in_Apache_Tomcat_9.0.71

You will want to increase these settings in application.yml

spring.servlet.multipart.max-file-size=10MB
spring.servlet.multipart.max-request-size=100MB
spring.servlet.multipart.max-parts=50

In Grails 7, which uses Spring Boot 3.5.x the settings are:

server.tomcat.max-part-count
server.tomcat.max-part-header-size

If that does not work due to the older version of Grails and Spring Boot you are using, you will need to adjust the settings in tomcat's $CATALINA_HOME/conf/server.xml

https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#Attributes_Common%20Attributes_maxPartCount

<Connector port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443"
           maxPartCount="50" />
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: James Fredley

79715235

Date: 2025-07-25 20:54:44
Score: 1.5
Natty:
Report link

I'm also get this problem and i'm do two step to solving it

first thing I remove eslint from my packages with this " npm uninstall eslint "

enter image description here

secondly i'm going to the Packge.json file and update the this

 "eslintConfig": {
    "extends": [
      "react-app"
    ]
  }


with this 

"Config": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },

And it works

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Moussaoui

79715234

Date: 2025-07-25 20:53:44
Score: 0.5
Natty:
Report link

Hmmm, this works:

public string Description { get; set; } = ""
public string? Desc { set { Description = value; } }

Mapping initializers? I'm finding it hard to call it post-processing :)

As a bonus, Desc does not have a getter so no one besides you would know it exists.

It's a slippery slope, but it makes multiple "aliases" for the same property possible.

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

79715230

Date: 2025-07-25 20:49:43
Score: 0.5
Natty:
Report link

    Public Shared Function ComputeChecksum(ByVal bytes As Byte()) As UShort
        Dim crc As UShort = &HFFFFUS ' The calculation start with 0xFFFF
        For i As Integer = 0 To bytes.Length - 1
            Dim index As Byte = CByte(((crc) And &HFF) Xor bytes(i))
            crc = CUShort((crc >> 8) Xor table(index))
        Next
        Return crc
    End Function

This appears to work - I tested it against a few MODBUS messages to compare CRCs - But I needed to swap Hi/Lo byte order of the CRC to get it to match the message order  
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tim Bowman

79715228

Date: 2025-07-25 20:44:41
Score: 2.5
Natty:
Report link

<font dir="auto" style="vertical-align: inherit;"><font dir="auto" style="vertical-align: inherit;">https://mega.nz/file/VeZB0YoR#A-ui34mW0XZ_HbJcYjehnvg23DkBNcZbzLYv83_svKw</font></font>

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

79715227

Date: 2025-07-25 20:44:41
Score: 3
Natty:
Report link

I dragged the "Script as Create" panel down but I still don't see where you can edit the data. I do see where you can edit the column names, etc, but not the actual data.

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

79715223

Date: 2025-07-25 20:40:40
Score: 0.5
Natty:
Report link

It's 2025, and this is kind of old... but now you can do:

try
{
    // Many types of exceptions can be thrown
}
catch (CustomException | AnotherCustomException ac)
{
    ...
}
catch (Exception ex)
{
    ...
}

Which is less ugly.

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

79715220

Date: 2025-07-25 20:35:39
Score: 3.5
Natty:
Report link

Never mind. I was looking at the wrong jar.

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

79715214

Date: 2025-07-25 20:25:36
Score: 12.5
Natty: 7.5
Report link

having the same issue, did you manage to solve this?

Reasons:
  • RegEx Blacklisted phrase (3): did you manage to solve this
  • RegEx Blacklisted phrase (1.5): solve this?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nayely Rodarte

79715190

Date: 2025-07-25 19:56:30
Score: 0.5
Natty:
Report link

So, I found a pretty nice way do that. What it does is basically slowly change the text color to a more whitish color, making as if the text is being more transparent. Here is how to do that:

colors = ['#F0F0F0', '#D3D3D3', '#BEBEBE', '#A9A9A9', '#7F7F7F', '#6A6A6A', '#545454',
          '#3F3F3F', '#2A2A2A', '#000000']  # Colors that form a gradient from VERY light grey to black
prompt.config(foreground=colors[countdown-1])

The countdown variable is the amount of second user is not typing

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

79715183

Date: 2025-07-25 19:49:28
Score: 1
Natty:
Report link

For anyone else who stumbles on this question, this is the method Topaz's documentation mentions here: https://www.topazsystems.com/software/download/sigweb.pdf

function IsSignaturePadConnected() {
    SetTabletComTest(false);
    SetTabletState(0, tmr);
    SetTabletComTest(true);

    if (tmr == null) {
        tmr = SetTabletState(1, ctx, 50);
    } else {
        SetTabletState(0, tmr);
        tmr = null;
        tmr = SetTabletState(1, ctx, 50);
    }
    if (GetTabletState() === '0') {
        //Cannot locate signature pad
        SetTabletState(0, tmr);
        SetTabletComTest(false);
        return false;
    } else {
        //Located signature pad
        SetTabletComTest(false);
        return true;
    }
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dawson

79715180

Date: 2025-07-25 19:47:27
Score: 4
Natty: 4.5
Report link

For what it's worth a good working answer can be found here:

https://robbamforth.wordpress.com/2015/06/24/java-how-to-scroll-to-a-particular-component-in-jscrollpane-and-gain-focus/

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

79715168

Date: 2025-07-25 19:34:24
Score: 1
Natty:
Report link

One more reason may be in sending poll update requests from different hosts -- I have an assumption that the telegram server remember the host for some period of time and blocks same-token requests from other hosts. If this is true we may:

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Александр

79715160

Date: 2025-07-25 19:16:20
Score: 1
Natty:
Report link

Avoid using %eth0 in the IPv6 address.

Scapy lacks support for interface scoping such as fe80: :1%eth0. Instead, remove %eth0 and define the interface individually

Utilize sendp() in place of send()

For link-local addresses, use sendp() (Layer 2) because routing can’t be resolved at Layer 3 without scoping.

from scapy.all import *

localPort = 24

port = 300

size = 30

# Link-local IPv6 addresses (without %eth0)

localIpv6 = "fe80::1ab:2c3d:4e5f:6789"

dstIpv6 = "fe80::abcd:1234:5678:9abc"

ip = IPv6(src=localIpv6, dst=dstIpv6)

tcp = TCP(sport=localPort, dport=port, flags="S")

raw = Raw(b"x" * size)

packet = ip / tcp / raw

# Use Ether() + sendp for link-local

sendp(Ether() / packet, iface="eth0", verbose=True)

use this

Execute the script using sudo.

Make sure Wireshark is recording on eth0.

Apply the display filter: ipv6 && tcp

For global IPv6 (2001::/), send() functions if a default route is present.

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

79715154

Date: 2025-07-25 19:00:16
Score: 9.5
Natty: 7.5
Report link

Can anyone explain why this happens?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can anyone explain
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can anyone
  • Low reputation (1):
Posted by: Nobelist

79715151

Date: 2025-07-25 18:57:14
Score: 4
Natty: 4.5
Report link

See https://github.com/serilog/serilog-settings-configuration/issues/457 for an idea on config driven enabled instead of code driving it

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

79715145

Date: 2025-07-25 18:52:12
Score: 2.5
Natty:
Report link

Set android:fitsSystemWindows="true" worked in my case as well.

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

79715143

Date: 2025-07-25 18:50:11
Score: 1.5
Natty:
Report link

I use this:

Create a collection and set up basic authentication for it.
Define the {{ url }} variable in the collection as address prefix like "https://mysite.ru/".
Then create a request in this collection with {{ url }} in the address like "{{ url }}api/v2/my/path" and set bearer authentication in the request.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Роман Столяров

79715142

Date: 2025-07-25 18:49:11
Score: 1.5
Natty:
Report link

To improve the success of the SOS optimization, it's important to use stricter enforcement of the constraint s2+c2=1s^2 + c^2 = 1s2+c2=1 as an equality condition within the optimization framework. Additionally, starting with a smaller level set of the LQR value function can help in identifying a valid and more conservative estimate of the region of attraction. It's also recommended to use tools like the Spotless or Drake framework, which support full polynomial parameterization and are well-suited for such SOS programs. Finally, visualizing the sublevel sets where the derivative of the Lyapunov function V˙<0\dot{V} < 0V˙<0 can provide insight into whether the Lyapunov condition holds, and whether the chosen candidate function is appropriate for proving stability.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: YALAMARTHI V D CHANDRA SEKHAR

79715138

Date: 2025-07-25 18:46:10
Score: 0.5
Natty:
Report link

This answer is probably not helpful for the OP's case, since they're saying that they've tried using different queries, but here's what I had to deal with and how I've solved it in case anyone stumbles into the same problem as I have.

I am unaware if they're using different databases, however from what I understand (from what I think was another Stack Overflow question that I've now lost), the Text Search API requires more strict queries, preventing developers from using ambiguous search queries. This small detail made me lose my mind for around an hour trying to retrieve results I was expecting and failing to do so.

In my case, I was trying to set a location bias with a circle of 10 km radius with the center located in the center of my search area (e.g. Greenwich) and supplying a generic search term (e.g. "Restaurant") to the request, which led me to only receive at most 5 results. What fixed it for me was setting a more strict search query (e.g. "Chinese Restaurant Greenwich, UK") which yielded the results I was looking for.

If your use-case requires you to use ambiguous queries, I think a good alternative could be to use the Autocomplete (New) API in conjunction with the Place Details (New) API.

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

79715137

Date: 2025-07-25 18:46:10
Score: 1.5
Natty:
Report link

For a quick and dirty solution, which is what I was looking for (just wanted to see a report every day for myself) I used:

=MID(A2, SEARCH(B2, A2]) + LEN(B2) + 4, 30)

You can adjust the final constant to see what you need. You could bolster this with extra regex's and make it better, but this was fine for my purposes

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

79715130

Date: 2025-07-25 18:37:07
Score: 2.5
Natty:
Report link

If you're not ready to implement server-side conversion or just want to convert images quickly (for testing, optimization or static assets), try FileTornado.com, a free online tool that converts PNG, JPG, etc. to WebP without installing anything.

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

79715108

Date: 2025-07-25 18:12:02
Score: 1
Natty:
Report link

When a method with parameter validation is invoked, the proxy intercepts the call, performs parameter validation, and only then proceeds to the actual method execution. This mechanism relies on MethodValidationInterceptor.

To properly test such validation logic, it’s important to use the Spring context so that proxies are applied. There are several approaches:

Integration tests with @SpringBootTest

@SpringBootTest
class UserServiceValidationTest {
    
    @Autowired
    private UserService userService;
    
    @Test
    void shouldThrowValidationException() {
        User invalidUser = new User(); // invalid object
        
        assertThrows(ConstraintViolationException.class, 
            () -> userService.createUser(invalidUser, ""));
    }
}

Layered tests with @TestConfiguration

@TestConfiguration
@EnableConfigurationProperties
public class ValidationTestConfig {
    
    @Bean
    public MethodValidationPostProcessor methodValidationPostProcessor() {
        return new MethodValidationPostProcessor();
    }
    
    @Bean
    @Validated
    public UserService userService() {
        return new UserService();
    }
}

@ExtendWith(SpringExtension.class)
@ContextConfiguration(classes = ValidationTestConfig.class)
class UserServiceTest {
    
    @Autowired
    private UserService userService;
    
    @Test
    void shouldValidateParameters() {
        assertThrows(ConstraintViolationException.class,
            () -> userService.createUser(null, "invalid-email"));
    }
}

Manual proxy setup for unit tests

class UserServiceManualProxyTest {
    
    private UserService userService;
    private Validator validator;
    
    @BeforeEach
    void setUp() {
        ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
        validator = factory.getValidator();
        
        ProxyFactory proxyFactory = new ProxyFactory();
        proxyFactory.setTarget(new UserService());
        proxyFactory.addAdvice(new MethodValidationInterceptor(validator));
        
        userService = (UserService) proxyFactory.getProxy();
    }
    
    @Test
    void shouldValidateWithManualProxy() {
        User invalidUser = new User();
        
        assertThrows(ConstraintViolationException.class,
            () -> userService.createUser(invalidUser, ""));
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @SpringBootTest
  • User mentioned (0): @TestConfiguration
  • Starts with a question (0.5): When a me
  • Low reputation (1):
Posted by: banitm

79715107

Date: 2025-07-25 18:12:01
Score: 5.5
Natty: 5.5
Report link

I'm Having doubts on pdf plumber importing to Lambda. ?

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

79715101

Date: 2025-07-25 18:06:00
Score: 1
Natty:
Report link

The issue arises because the CSV file contains metadata lines before the actual header row, which prevents pandas.read_csv() from interpreting the columns as numeric. By using header=3, we can skip the metadata and correctly parse the data. However, to preserve the metadata in the DataFrame, convert only the rows below the metadata using pd.to_numeric(df[col][3:]). This ensures numeric data is treated correctly while keeping the metadata intact for further use or export.

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

79715081

Date: 2025-07-25 17:40:54
Score: 1.5
Natty:
Report link

After some debugging, I realized that the issue was due to devDependencies being skipped when NODE_ENV=production is set — which is the default in Render. As a result, tools like typescript and @types/node were missing during the build step, causing the tsc command to fail with this error:

error TS2688: Cannot find type definition file for 'node'

What ended up working was the following:

in the package.json, I left the build script as simply:

"build": "tsc"

then, in Render’s Build Command, I changed it to:

npm install --include=dev && npm run build

the Start Command remains unchanged:

npm start

This ensures that the dev dependencies are available only during the build phase (when tsc runs), and not included at runtime and finally the application works as expected.

That said, it raised a question for me: isn't the purpose of devDependencies to not be included in production environments? by forcing them to install with --include=dev, I’m breaking that convention a bit. Is this acceptable when the build and production environments are merged (as with Render), or is there a cleaner approach?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Aaron Mas

79715078

Date: 2025-07-25 17:35:53
Score: 1
Natty:
Report link

If you're using native Android (Java/Kotlin):

You must set these flags on the dialog window:

dialog.getWindow().setFlags( WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL, WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL ); dialog.getWindow().setFlags( WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH, WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH );

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

79715071

Date: 2025-07-25 17:28:51
Score: 1.5
Natty:
Report link

Because UPDATE requires reading the row, checking constraints, journaling, updating indexes. You can fix this using bulk transactions, disabling syncs temporarily, using CASE, and dropping indexes.

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

79715068

Date: 2025-07-25 17:22:50
Score: 0.5
Natty:
Report link

Try extracting the mapping logic into a separate @Component and use @Named, for example, to call the desired method.

@Mapper(componentModel = "spring", uses = ProductMapper.class)
public interface MainMapper {

    @Mapping(source = ".", target = "product", qualifiedByName = "mapProduct")
    Target map(SourceDto dto);
}
@Component
public class ProductSelector {

    private final ProductMapper productMapper;
    private final String desiredId = "curr"; // or inject it from config

    public ProductSelector(ProductMapper productMapper) {
        this.productMapper = productMapper;
    }

    @Named("mapProduct")
    public Product mapProduct(SourceDto dto) {
        return dto.getProducts().stream()
                .filter(p -> desiredId.equals(p.getId()))
                .findFirst()
                .map(productMapper::toProduct)
                .orElse(null); // or throw an exception
    }
}

Alternatively, you can inject ProductMapper via constructor if you rewrite MainMapper as an abstract class:

@Mapper(componentModel = "spring")
public abstract class MainMapper {

    @Autowired
    protected ProductMapper productMapper;

    @Mapping(source = ".", target = "product")
    public Target map(SourceDto dto) {
        ProductDto productDto = dto.getProducts().stream()
            .filter(p -> p.getId().equals("curr"))
            .findFirst()
            .orElseThrow();
        Product product = productMapper.toProduct(productDto);
        Target target = new Target();
        target.setProduct(product);
        return target;
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Component
  • User mentioned (0): @Named
  • Low reputation (1):
Posted by: banitm

79715057

Date: 2025-07-25 17:05:47
Score: 1.5
Natty:
Report link

You’re right in considering using Eventarc as the best alternative solution. Eventarc will act as a bridge that will allow you to create a trigger that listens to your Pub/Sub topic and forward messages to an internal HTTP endpoint. This endpoint can be an internal IP address or a fully qualified domain name (FQDN), which includes services fronted by an L7 Internal Load Balancer, such as your Kubernetes Ingress.

To implement this, you need to do the following:

  1. Create a network attachment: This is a regional resource that explicitly authorizes Eventarc to connect to your VPC network.
  2. Configure firewall rules: You need to create a firewall rule to allow ingress traffic from Eventarc to your internal HTTP endpoint.
  3. Deploy an Eventarc trigger: This trigger will be configured to listen for messages on your desired Pub/Sub topic and route them to the internal HTTP endpoint exposed by your GKE Ingress.

For more detailed documentation, you can check this article.

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

79715054

Date: 2025-07-25 17:02:46
Score: 3
Natty:
Report link

Google Docs was updated to included include dropdowns in the document content.

Google Docs Insert toolbar menu

Click Insert > Smart Chips > Dropdown.

Unfortunately this feature can't be handled using Google Apps Script. --Related AppsScript for Google Docs - How do I add / edit / delete Variable Smart Chips in Google Docs programmatically with appsscript addon?

Reasons:
  • Blacklisted phrase (1): How do I
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Wicket

79715042

Date: 2025-07-25 16:44:42
Score: 1
Natty:
Report link

Add a setCancellable(false) .

new AlertDialog.Builder(this)
        .setTitle("Success")
        .setCancelable(false)
        .setMessage("Your message here")
        .setPositiveButton("Okay", (dialog, which) -> {
            finish();
        }).show();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Darkzide Demigod

79715039

Date: 2025-07-25 16:42:42
Score: 3
Natty:
Report link

Generally, some versions are not supported to make installation because based on version some features are added and deleted. replace the version of CMake with new one

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

79715036

Date: 2025-07-25 16:40:41
Score: 0.5
Natty:
Report link

Thanks for the replies!

Turns out the issue was on my side — I had defined CustomOrderPagination in a separate pagination.py file but was importing it from a different module that wasn’t actually being used by the ViewSet.

To debug, I added:

def paginate_queryset(self, queryset):
    print("called paginate_queryset")
    return super().paginate_queryset(queryset)

But nothing was printed — and that’s when I realized I was assigning a pagination class that wasn't even getting loaded. Once I fixed the import and confirmed the correct pagination class was being used, everything started working as expected.

Appreciate your help — especially the suggestion to override paginate_queryset(), that helped me track it down 🙌


One of those “it works in one tab, but not in the one you’re testing” moments 😅 Thanks again!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (2): Appreciate your help
  • Whitelisted phrase (-2): I fixed
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Raul Chiarella

79715034

Date: 2025-07-25 16:37:41
Score: 0.5
Natty:
Report link

You have at least 3 options:

  1. As @alex-sh mentioned, you can use the Weight module, add a weight field to the entity, then add that field to your view (you can hide it from being displayed) and sort by it.
  2. Use the DraggableViews module, create 1 view in which you set the order of content (use this as a content admin page where you can drag n drop content), and another that displays the order.
  3. There's also a Sortableviews module, but I find this less useful and more potential for issues if there are "multiple sortableviews for the same entity type and bundle".
Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @alex-sh
  • Low reputation (1):
Posted by: TJ Moyer

79715024

Date: 2025-07-25 16:25:38
Score: 2.5
Natty:
Report link

After some months without finding a solution from Google, we decided to stop using Google Drive in our Android TV apps and switch to Microsoft OneDrive.

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

79714994

Date: 2025-07-25 16:00:32
Score: 1
Natty:
Report link

The fetch made in your <Home /> component is being made server side as a server component. The browser isn't making that request so it makes sense that it wouldn't log anything. All the browser sees is the fetch's response as a react server component payload.

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

79714978

Date: 2025-07-25 15:50:30
Score: 1
Natty:
Report link

Once ready to test, I copy the solution file (e.g. "MySolution.sln") to "MySolutionAppOnly.sln".

I then open "MySolutionAppOnly.sln" (Notepad or VS 2022) and remove the references to the test project. Then save.

I open "MySolutionAppOnly.sln" in VS 2022 and run it in debug mode.

I then open "MySolution.sln" in VS 2022 and use Test Explorer. I can then step through the test code in one instance of VS 2022 and the web solution in the other VS 2022 instance.

If you need to rebuild from a code change, rebuild in the "MySolution.sln" with neither instance running, so all the files rebuild.

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

79714977

Date: 2025-07-25 15:50:30
Score: 1
Natty:
Report link

I found that the following CSS did the trick for me:

* {
    -webkit-font-smoothing: subpixel-antialiased;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alex Duchnowski

79714975

Date: 2025-07-25 15:49:30
Score: 3
Natty:
Report link

If you're looking for a low cost commercial alternative that does involve any complex use of CLI or Powershell scripts you could take a look at CLOUD TOGGLE - https://www.cloudtoggle.com

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

79714973

Date: 2025-07-25 15:46:29
Score: 1.5
Natty:
Report link

It sounds like you're on the right track with your configuration, especially by verifying the WEB_CLIENT_ID and the OAuth consent screen. Just to confirm, are you explicitly requesting the email and profile scopes when setting up your GetSignInWithGoogleOption or GetCredentialRequest? If these scopes aren't included, the ID token might not contain the email claim. Also, make sure your backend verifies the token using the same WEB_CLIENT_ID.

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

79714960

Date: 2025-07-25 15:34:26
Score: 3
Natty:
Report link

Open the Package.appxmanifest file. You will find the icon definitions there.

The taskbar icon is the 44x44 sized icon.

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

79714950

Date: 2025-07-25 15:28:25
Score: 1.5
Natty:
Report link

Based on your pubspec.yaml, it looks like your assets are currently located within the lib folder.

In the following line:

File videoTempFile1 = await copyAssetFile("assets/asuka.mp4");

You're referencing the asset path incorrectly.

I recommend moving your assets to a dedicated assets/ directory at the root of your project (outside the lib folder). This not only resolves path-related issues but also keeps your project structure clean and organized.

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

79714946

Date: 2025-07-25 15:26:24
Score: 1
Natty:
Report link

Square Mice: Absinthe Visions is not a collection—it’s a confession. A green-stained love letter to madness, geometry, and the art world’s shattered mirrors. These aren’t your everyday cute pixel rodents. No. These are intoxicated icons stumbling through culture, drunk on absinthe and philosophy, screaming through the silence of digital conformity.

Born from the mind of an independent artist with an anarchist soul, a perfectionist’s eye, and a square mouse in hand, each piece drips with rebellion. The mice are angular because smooth lines are for cowards. They’re square because the world keeps trying to round them off—and they refuse.

You’ll find them loitering in museum corridors, gawking at duct-taped bananas and melting clocks. Elsewhere, they slouch in dim-lit pubs, sipping the green fairy, having deep conversations with spilled ashtrays and ghosts of failed revolutions. Every frame in this collection is a story—AI-guided, chaos-approved, and utterly unfiltered. https://opensea.io/0xa069a4efa0a71477a99233042eb9db1b2c605ca1

This is digital surrealism with a hangover and a vendetta. There’s tension in every corner, humor in every shadow, and rage tucked neatly behind each pixel. No templates, no apologies. Just glitchy elegance and raw, absinthe-fueled emotion.

Square Mice: Absinthe Visions doesn’t ask for your attention—it demands it. It’s for the collectors who’ve grown tired of sanitized aesthetics and crave something with teeth. These mice bite back. They mock trends, laugh at algorithms, and invite you into a world where nothing makes sense—and everything means something.

So, if you’re looking for safety, scroll on. But if you’re ready to stare into the weird, wild, and worryingly relatable—welcome. The mice have been waiting.

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

79714937

Date: 2025-07-25 15:15:21
Score: 2
Natty:
Report link

I know it is extremely late, but my two cents, as I just wondered this today.

This is my data:

enter image description here

SQL Developer Option:

enter image description here

Result:

enter image description here

I know it's not necessarily a Default, but tbh it's not too much setup (just a couple clicks). About your Oracle SQL Developer version, I thought those were free to download from Oracle page.

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

79714935

Date: 2025-07-25 15:12:21
Score: 1.5
Natty:
Report link

Per https://stackoverflow.com/a/18000286/10761353 (and comments on the question), the suggested steps (peppered with git status) was able to resolve the issue for VS Code 🥳

As for Cursor, the issue remains when using the rt-click menu... but using the grey Stage Block button works as expected...? 🤕 enter image description here

While annoying, I hope my muscle-memory won't take too long to re-train!

The full sequence of commands was:

$ git status
On branch my_branch
Your branch is up to date with 'origin/my_branch'.

nothing to commit, working tree clean
$ mv CloudNGFW.ts /tmp  
$ git status
On branch my_branch
Your branch is up to date with 'origin/my_branch'.

Changes not staged for commit:
(use "git add/rm \<file\>..." to update what will be committed)
(use "git restore \<file\>..." to discard changes in working directory)
deleted:    CloudNGFW.ts

no changes added to commit (use "git add" and/or "git commit -a")
$ git rm CloudNGFW.ts
rm 'path/to/CloudNGFW.ts'
$ git status
On branch my_branch
Your branch is up to date with 'origin/my_branch'.

Changes to be committed:
(use "git restore --staged \<file\>..." to unstage)
deleted:    CloudNGFW.ts

$ git commit -m 'deleting file'
\[my_branch 5913d58a\] deleting file
1 file changed, 203 deletions(-)
delete mode 100644 path/to/CloudNGFW.ts
$ git status
On branch my_branch
Your branch is ahead of 'origin/my_branch' by 1 commit.
(use "git push" to publish your local commits)

nothing to commit, working tree clean
$ git push
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 8 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 726 bytes | 726.00 KiB/s, done.
Total 6 (delta 5), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (5/5), completed with 5 local objects.
To github.com:nestoca/infra.git
ffc97718..5913d58a  my_branch -\> my_branch
$ git status
On branch my_branch
Your branch is up to date with 'origin/my_branch'.

nothing to commit, working tree clean
$ mv /tmp/CloudNGFW.ts .
$ git status
On branch my_branch
Your branch is up to date with 'origin/my_branch'.

Untracked files:
(use "git add \<file\>..." to include in what will be committed)
CloudNGFW.ts

nothing added to commit but untracked files present (use "git add" to track)
$ git add CloudNGFW.ts
$ git status
On branch my_branch
Your branch is up to date with 'origin/my_branch'.

Changes to be committed:
(use "git restore --staged \<file\>..." to unstage)
new file:   CloudNGFW.ts

$ git commit -m 'adding file'
\[my_branch a3877752\] adding file
1 file changed, 203 insertions(+)
create mode 100644 path/to/CloudNGFW.ts
$ git status
On branch my_branch
Your branch is ahead of 'origin/my_branch' by 1 commit.
(use "git push" to publish your local commits)

nothing to commit, working tree clean
$ git push
Enumerating objects: 12, done.
Counting objects: 100% (12/12), done.
Delta compression using up to 8 threads
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 3.09 KiB | 1.54 MiB/s, done.
Total 7 (delta 5), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (5/5), completed with 5 local objects.
To github.com:nestoca/infra.git
5913d58a..a3877752  my_branch -\> my_branch
$ git status
On branch my_branch
Your branch is up to date with 'origin/my_branch'.

nothing to commit, working tree clean
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
Posted by: Adam Smooch

79714932

Date: 2025-07-25 15:12:21
Score: 2.5
Natty:
Report link

No, you cannot use the property's runtime value inside the attribute constructor directly in PHP. Attributes in PHP are evaluated at parse-time, not at runtime, and they do not have access to the value of the property they annotate.

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

79714927

Date: 2025-07-25 15:08:20
Score: 2.5
Natty:
Report link

The problem was in the configuration file application.yml as stated in https://stackoverflow.com/a/75274606/2847905

Cassandra properties' prefix is spring.cassandra.*, not spring.data.cassandra.*

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

79714924

Date: 2025-07-25 15:04:18
Score: 9
Natty: 6
Report link

did you find any solution, i'm encoutering the same problem

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): did you find any solution
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you find any solution
  • Low reputation (1):
Posted by: user31145328

79714922

Date: 2025-07-25 15:01:17
Score: 3.5
Natty:
Report link

100% bogus.....the script barely runs and only shows and empty filename header in the resultset. Wonder how many people have used this as it does not work.

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

79714909

Date: 2025-07-25 14:51:14
Score: 1
Natty:
Report link
<img id="myImg" src="https://other.domain/image.png" onerror="handleImageError()" />

<script>
function handleImageError() {
  console.warn("Image failed to load – possibly due to CORP or network issues.");
  // You could also send this info to your server manually
}
</script>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Akshat

79714903

Date: 2025-07-25 14:46:13
Score: 1.5
Natty:
Report link

Because of the

flex h-screen

doesn't leave room for sheet to open so it doesn't get any height.

Either include inside parent div or remove the flex.

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

79714893

Date: 2025-07-25 14:36:11
Score: 3
Natty:
Report link

Recently, I made a video on this topic. While it does not cover the translation vector, you can just add it to the resulting bounding box around the origin.

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

79714892

Date: 2025-07-25 14:33:09
Score: 7.5
Natty: 6
Report link
Reasons:
  • RegEx Blacklisted phrase (2.5): Could someone please advise
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user1293907

79714864

Date: 2025-07-25 14:10:03
Score: 3
Natty:
Report link

You are trying use jQuery and React Js mixing of it causing inconsistency,especially in lifecycle management, DOM updates, and CSS rendering.

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

79714863

Date: 2025-07-25 14:10:03
Score: 1
Natty:
Report link

If you're encountering an error while trying to modify an Azure Event Grid Subscription that was automatically created by Microsoft Defender for Storage, it's likely due to resource ownership and management restrictions.

What you can do instead:

If you need a custom event handling flow (e.g., routing blob events to your own Logic App or Function App):

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

79714849

Date: 2025-07-25 14:05:01
Score: 0.5
Natty:
Report link

Modifying a list while iterating over it with a for loop can lead to unexpected behavior or errors because the list's size changes during the loop. For example, if you try to remove items from a list while looping through it, some elements may be skipped or not processed as intended. A better approach is to iterate over a copy of the list using my_list[:], or use a list comprehension to build a new list based on a condition. For instance, instead of removing even numbers with a loop, you can write my_list = [x for x in my_list if x % 2 != 0]. This keeps the loop safe and ensures the list is modified correctly. Alternatively, the filter() function can also be used to achieve similar results in a clean and efficient way.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Lithisha P S

79714839

Date: 2025-07-25 14:00:00
Score: 1
Natty:
Report link

I had the same problem:
"Failed creating ingress network: network sandbox join failed: subnet sandbox join failed for"

OS: kernel-4.18.0-553.47.1.el8_10.x86_64
upgrading kernel to kernel-4.18.0-553.63.1.el8_10.x86_64 solved the problem.

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

79714826

Date: 2025-07-25 13:51:58
Score: 3
Natty:
Report link

Wrap your text in a <span> element and then add margin-top:auto on that and it should do the trick!

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

79714811

Date: 2025-07-25 13:39:54
Score: 7
Natty:
Report link

Can you give details as to why you say the field selector `spec.type` on a service object stopped working?

Because the last version of the API, current master branch, indicates that you should still be able to use that field.

Ref: k8s Core v1 conversion.go

func AddFieldLabelConversionsForService(scheme *runtime.Scheme) error {
    return scheme.AddFieldLabelConversionFunc(SchemeGroupVersion.WithKind("Service"),
        func(label, value string) (string, string, error) {
            switch label {
            case "metadata.namespace",
                "metadata.name",
                "spec.clusterIP",
                "spec.type":
                return label, value, nil
            default:
                return "", "", fmt.Errorf("field label not supported: %s", label)
            }
        })
}

Answer inspired by the accepted answer to this other related issue: How can I find the list of field selectors supported by kubectl for a given resource?

Reasons:
  • Blacklisted phrase (0.5): How can I
  • RegEx Blacklisted phrase (2.5): Can you give
  • RegEx Blacklisted phrase (2): working?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Can you give
  • Low reputation (0.5):
Posted by: Thomas Delrue

79714809

Date: 2025-07-25 13:37:53
Score: 0.5
Natty:
Report link

Wasn't supported until Windows 10 SDK. Seems to be supported only with winsock2

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Swift - Friday Pie

79714804

Date: 2025-07-25 13:34:52
Score: 2.5
Natty:
Report link

Tried all of this, didn't work at all. In my case one PC crashed and had to reinstall windows, unfortunately it couldn't connect to perforce using the same ID so files were permanently checked out. Fixed it by deleting the computers stream from the admin computer. The lock disappears automatically. (maybe someone can use that solution)

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

79714796

Date: 2025-07-25 13:27:50
Score: 2.5
Natty:
Report link

Fixed in iOS 26 developer beta 4(23A5297i)
hidesBottomBarWhenPushed = true works just fine as in iOS 18.

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

79714755

Date: 2025-07-25 12:59:42
Score: 2
Natty:
Report link

GitLab cleanup policy may not free space if tags are still referenced, protected, or retention rules exclude them. Garbage Collection (GC) must be manually triggered on self-managed setups to reclaim disk space. Ensure the required feature flag is enabled and check logs for cleanup execution and related errors.

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

79714740

Date: 2025-07-25 12:50:40
Score: 4.5
Natty: 5
Report link

Try reading this 'when:manual' way to do interactive stages: https://docs.gitlab.com/ci/yaml/#manual_confirmation

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

79714738

Date: 2025-07-25 12:49:39
Score: 3
Natty:
Report link

actually sometimes you have two version of python installed first which you are using but pip is using some other module thats why this error came

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

79714734

Date: 2025-07-25 12:45:38
Score: 3.5
Natty:
Report link
  startConnection(userId: string) {
    this.hubConnection = new signalR.HubConnectionBuilder()
      .withUrl(
        `${environment.apiUrl.replace(
          '/api',
          ''
        )}/notificationHub?userId=${userId}`,
        {
          accessTokenFactory: () => localStorage.getItem('authToken') || '',
        }
      )
      .build();

    this.hubConnection
      .start()
      .then(() => console.log('SignalR Connected'))
      .catch((err) => console.error('SignalR Connection Error: ', err));

    this.hubConnection.on(
      'ReceiveNotification',
      (message: NotificationModel) => {
        this.notifications.next(message);
        //alert(message); // You can replace this with a UI notification
      }
    );
  }

this code also show a same error..
please help me to resolve it
Error: Failed to start the transport 'WebSockets': Error: WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): please help me to resolve it
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Surya S

79714730

Date: 2025-07-25 12:42:38
Score: 1
Natty:
Report link

regards
Caused by: jakarta.enterprise.inject.spi.DeploymentException: Mixing Quarkus REST and RESTEasy Classic server parts is not supported

version :

<quarkus.platform.version>3.24.5</quarkus.platform.version>

Add

<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-rest-client</artifactId>
</dependency>

<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-rest-client-jackson</artifactId>
</dependency>

<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-rest-jackson</artifactId>
</dependency>

And Remove

<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-resteasy</artifactId>
</dependency>
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-resteasy-jackson</artifactId>
</dependency>
Reasons:
  • Blacklisted phrase (1): regards
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rohit Shelar

79714723

Date: 2025-07-25 12:37:36
Score: 4.5
Natty: 4.5
Report link

Imagen de bybit en la pagina principal Si desde la pagina principal, en el apartado de herramientas, podemos ver que nos permite ingresar al "Trading de Prueba" y al hacerlo, nos permite crear API's API en el modo prueba, sin embargo, al crear esta api e intentar correr el bot, no se conecta. arroja error 10003.

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

79714708

Date: 2025-07-25 12:26:33
Score: 1.5
Natty:
Report link

You might be using an older version of the Android Gradle Plugin. Plugin version 8.5.1 and above can build APKs properly with 16KB native libraries, but you need version 8.5 to properly build the bundles (aab files), so perhaps the APK you were testing with was fine but the AAB you were uploading to Google Play wasn't.

https://developer.android.com/guide/practices/page-sizes#agp_version_851_or_higher

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

79714704

Date: 2025-07-25 12:24:33
Score: 1.5
Natty:
Report link

I had a similar problem. The short answer: test with javac --version, not java --version!
In some unusual cases, those two can report different versions.

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

79714698

Date: 2025-07-25 12:19:31
Score: 5
Natty:
Report link

Anyone coming across the same thread, I have the answer: https://stackoverflow.com/a/79714613/9076546

Over here I'm transferring way less bytes per second through, and have the same problem. You can't reliably transfer continuous data (no matter the size) with HC-05, find a module that supports BLE, or switch to ESP32-

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

79714694

Date: 2025-07-25 12:18:31
Score: 1.5
Natty:
Report link

For me it was that i was building project with xcodebuild on github actions on M3 or something (macos-latest), but the project required building for Rosetta simulator due to its libs.

I have changed the environment to macos-13 that uses intel and that was the fix

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Y.A.P.

79714684

Date: 2025-07-25 12:07:28
Score: 4
Natty: 5.5
Report link

what is recx supposed to be? I see no declarations and its random with no comments, hard to tell what that interacts with

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): what is
  • Low reputation (1):
Posted by: a_cid_man

79714682

Date: 2025-07-25 12:06:27
Score: 2.5
Natty:
Report link

That's working so fine. v12.0.1

Check the reference to the AutoMapper DLL - it might be the wrong one. You may have to remove it and add it back.

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

79714678

Date: 2025-07-25 12:05:27
Score: 4
Natty: 5.5
Report link

Can you pack these kind of things into plugins for Gitlab? With html/js user interface for config? Snippets sort of with UI.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Sami Hulkko

79714677

Date: 2025-07-25 12:01:26
Score: 2
Natty:
Report link

You can't truly emulate a modern browser using requests, and you shouldn't try unless your target is completely static or you’re doing low-level HTTP probing

You should explore with playwright,httpx,requests,headless chrome.

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

79714676

Date: 2025-07-25 11:59:25
Score: 0.5
Natty:
Report link

The PCP scanner detects this error because you are using the $table1 variable directly in the SQL query without escaping it.

To fix this, you should use the esc_sql() function to sanitize the table name.

On line 2, update the code as follows:

$table1 = esc_sql($db->tb_lp_section);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Franckabo

79714675

Date: 2025-07-25 11:59:25
Score: 0.5
Natty:
Report link

I don’t know of any open-source module that exactly matches your requirements, but you can build a custom elevator agent in AnyLogic using a statechart to control its behavior.

Here’s a general approach:

This approach gives you full control over the elevator’s logic, including access rules and door timing.

If you need an example, you can start by creating two states (“Door Open” and “Door Closed”) in the statechart and use transitions with timeouts (e.g., 5 seconds for opening/closing). For access control, use parameters or type checks to ensure only the intended agent types can enter.

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

79714672

Date: 2025-07-25 11:57:25
Score: 2
Natty:
Report link

Server is blocking accounts,verification methods

Biometrics fail and as a resolut a bottle nex on my info highway.

Advitisement should not be restrictive of the apps general platform default functions.

They did that with old tv in 80's

When your battle is at the front door "All" the time {cart before horse};

Will their ever be a bay Jesus app.

Or a digital youthenaise ones being.

As to avoid being a cyber priso.

Hello.😌

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

79714661

Date: 2025-07-25 11:42:22
Score: 3
Natty:
Report link

For anyone wondering how to this in 2025 with the newer versions of kong with the Kong Gateway Operator or Kong Ingress Controller, I forked the old version of the plugin to bring it up to date. Works fine now. Tutorial and repo here: https://medium.com/@armeldemarsac/secure-your-kubernetes-cluster-with-kong-and-keycloak-e8aa90f4f4bd

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Armel De Marsac

79714652

Date: 2025-07-25 11:30:18
Score: 1
Natty:
Report link

The issue is not with the React but your hosting config. You need to add rewrite rules by adding .htaccess file inside your 'public' folder with the following code.

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteRule . /index.html [L]
</IfModule>
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: isaac

79714641

Date: 2025-07-25 11:21:16
Score: 1.5
Natty:
Report link

General advice when you have scrolls on modals should be to use either pointer-events: none on body or overflow-scroll:hidden.

I had come across this bug on safari on Iphone where if i didn't use overflow-scroll:hidden on body it would have all this kind of issues.

For better explanation you could see all the modals created by shacdn https://ui.shadcn.com/docs/components/dialog for best practices.

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

79714639

Date: 2025-07-25 11:21:16
Score: 0.5
Natty:
Report link

To allow your client to update items on the shop, you’ll want to give them access to a user-friendly backend or content management system (CMS). Depending on how the site is built, here are a few common approaches:

  1. Built-in Admin Panel (like WordPress + WooCommerce or Shopify)
    If you're using a platform like WordPress with WooCommerce or Shopify, your client can log in to the admin dashboard. From there, they can easily add, edit, or remove products, update prices, manage inventory, and upload new photos—all without needing to touch any code.

  2. Custom Admin Dashboard
    If the site is custom-built (e.g., using a framework like Laravel, Django, or Node.js), you can develop an admin panel tailored to their needs. This would include features to create or update product listings, change prices, manage stock, and update images.

  3. Headless CMS Integration
    Alternatively, you could connect the site to a headless CMS like Sanity, Strapi, or Contentful. This gives your client a clean interface to manage product content, and the site will pull in those updates dynamically.

  4. Training and Documentation
    Whichever system you use, it’s a good idea to provide your client with a brief training session or a simple guide (screenshots or a short video) showing how to update items on their own. This makes the hand-off smoother and reduces their dependency on you for small changes.

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

79714633

Date: 2025-07-25 11:17:15
Score: 1.5
Natty:
Report link

Although Matt's answer works and might be useful in some cases (needed adaptation in my case, see the end of this answer)*, there is other ways to achieve this that I find simpler and more flexible, provided by the library itself.

Since v11.10.0 (Nov 14, 2023) SweetAlert2 allows to specify an animation param, that will remove all animations when set to false: animation:false.

I know this param wasn't available when the question was made, and even if it was, this solution, and Matt's one too, have a drawback: we will disable not only the show animations, but every animation, including some animations for hiding or so that we would like to preserve.

A less direct and more customizable way is present in the library since v9.0.0 (Nov 4, 2019). We are allowed to use showClass and hideClass params.

For your case, we could use:

Swal.fire({
  icon: 'error',
  title: 'Oops...',
  text: 'Something went wrong!',
  showClass: {
      popup: ``,
  },
})

This way you wouldn`t disable other animations than the show ones.

You wanted to use it for the icon, but you could customize ohter elements (e.g., container, popup, title...). References for customizable elements can be found in this configuration params example.

.no-animate {
  animation: none !important;
}

Swal.fire({
  icon: 'error',
  text: 'Something went wrong!',
  customClass: {
    popup: 'no-animate'
  }
})
Reasons:
  • Blacklisted phrase (1): not allowed to comment
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: porcallán

79714630

Date: 2025-07-25 11:17:15
Score: 0.5
Natty:
Report link

woocommerce remove sessin or cookie from browser and database
wp_destroy_current_session(); // current session only

wp_clear_auth_cookie(); // clears login cookies

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

79714629

Date: 2025-07-25 11:15:15
Score: 3.5
Natty:
Report link

2025 issue still. I don't know why so many years past issue still.

enter image description here

enter image description here

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

79714628

Date: 2025-07-25 11:15:15
Score: 1
Natty:
Report link

It is now possible to go to character when you invoke "Go to Line/Column". Here is how:

For example the final command to go to line 6 position 4500 will be:

:6:4500

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

79714617

Date: 2025-07-25 11:07:13
Score: 0.5
Natty:
Report link

from moviepy.editor import VideoFileClip, ImageClip, CompositeVideoClip

from PIL import Image

import os

# File paths

original_video_path = "/mnt/data/VID_20250725_111200_481.mp4"

user_image_path = "/mnt/data/image.png"

output_video_path = "/mnt/data/final_output_video.mp4"

# Load original video to get duration and size

original_clip = VideoFileClip(original_video_path)

video_duration = original_clip.duration

video_size = original_clip.size

# Load user's image and resize it to fit video dimensions

user_image = Image.open(user_image_path)

user_image = user_image.resize(video_size)

user_image.save("/mnt/data/resized_user_image.png")

# Create an ImageClip from the resized image

image_clip = ImageClip("/mnt/data/resized_user_image.png", duration=video_duration)

# Set same FPS and duration as original video, then overlay effects if needed

final_video = CompositeVideoClip([image_clip.set_duration(video_duration)])

final_video = final_video.set_audio(original_clip.audio) # Keep the original audio

# Export the final video

final_video.write_videofile(output_video_path, codec="libx264", audio_codec="aac")

output_video_path

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

79714616

Date: 2025-07-25 11:07:13
Score: 3
Natty:
Report link

They also have common conception that: one time read. They both read data once, because of cursor reading.

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

79714612

Date: 2025-07-25 11:02:12
Score: 13
Natty: 7.5
Report link

I have the same problem. please tell me, was it possible to solve?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (2.5): please tell me
  • RegEx Blacklisted phrase (1.5): solve?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Анна Рожкова

79714608

Date: 2025-07-25 10:59:11
Score: 1
Natty:
Report link

Your SQL query has a syntax error in the CASE expression — specifically in this line:

WHEN IN ('Value1', 'Value2') THEN 'Result1 or 2'

WHEN IN (...) is not valid syntax in SQL. You cannot use IN directly after WHEN.

Instead, you must use:

WHEN Description IN ('Value1', 'Value2') THEN ...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arnab Maity

79714602

Date: 2025-07-25 10:54:09
Score: 3
Natty:
Report link

Easily access a child route by copying and pasting the URL directly into your browser or from outside your app without any navigation clicks, just instant route-level access.

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