79646316

Date: 2025-05-31 04:20:32
Score: 2.5
Natty:
Report link

I managed to track down where setFactory is defined.

https://github.com/nette/di/blob/master/src/DI/Definitions/ServiceDefinition.php#L62

https://github.com/nette/di/blob/master/src/DI/Definitions/Statement.php#L34

https://github.com/nette/di/blob/master/src/DI/Definitions/Reference.php#L39

Maybe with this will provide you the information you need to finish debugging the issue. I'm not a Nette user myself so it doesn't really tell me much but it might be just what you need.

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

79646295

Date: 2025-05-31 03:32:21
Score: 1
Natty:
Report link

I don't think it will affect the cold start period of lambda as you have already installed bundle present. If you were to install at runtime, then the cold start would be longer.

Sometimes packages in a different language can be heavier. The best you can do is use libraries that are lighter and then there is scope for reducing size. However this 9MB size is also fine, no issues with that. We have deployed code much heavier than this and it was not slow.

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

79646290

Date: 2025-05-31 03:13:18
Score: 2.5
Natty:
Report link

The simpliest way that works everytime on my side:

1.Go to task manager
2.Search for "mysqld"
3.End task then restart Xampp
That's it!

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

79646287

Date: 2025-05-31 03:07:16
Score: 2
Natty:
Report link

I have found the problem. The xml executable available to my PATH, that comes from my Oracle instalation, is probably too old and do not support the "sel" argument. I removed it from the path and added the xml executable from xml to my path. I removed the building folder and the source to be sure I restart from a clean project. The nmake is already building from 30 minutes, so at least the original problem was solved

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

79646286

Date: 2025-05-31 03:07:16
Score: 1
Natty:
Report link

Yes, you can easily update the list after submitting the form using HTMX attributes.

Assuming your form posts to `/todos` and your list has `id="todo-list"`, you can add these attributes to your form:

`<form hx-post="/todos" hx-target="#todo-list" hx-swap="beforeend">`

Then, your `/todos` endpoint should return *only the HTML for the new todo item* (e.g., a `<div>` or `<li>`). HTMX will automatically append this HTML to the end of the `#todo-list` element upon a successful response.

This avoids needing any client-side JavaScript to handle the update.

I wrote a step-by-step guide showing this exact pattern for a Todo app, comparing it to the React way:

https://beyondit.blog/blogs/Replace-Your-Entire-React-App-with-20-Lines-of-HTMX-A-Step-by-Step-Guide

Key things for your server endpoint:

1. Process the form data.

2. Save the new todo.

3. Render *just the HTML fragment* for the new item.

4. Send that fragment as the response.

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

79646272

Date: 2025-05-31 02:14:06
Score: 2.5
Natty:
Report link

As @JoelCoehoorn pointed out, C# arrays (string[]) are fixed-size, making them unsuitable for dynamic collections where the size is unknown. Instead, a List<string> is ideal for this scenario, as it can grow dynamically. @Progman noted that the provided code snippet is incomplete (e.g., missing declaration of i and unclear purpose of choice). Since the full context isn't provided, I assume you're trying to group consecutive identical characters into substrings (e.g., ['a', 'a', 'b', 'b', 'b'] becomes ["aa", "bbb"]). If your goal is different (e.g., fixed-length substrings or another pattern), please clarify for a more tailored solution.

Below is a complete C# solution that:

C# Solution

    using System;
    using System.Collections.Generic;
    using System.Text;
    
    public class Example
    {
        public static void Main(string[] args)
        {
            // Sample input array for testing
            char[] chars = { 'a', 'a', 'b', 'b', 'b', 'c', 'c', 'd' };
    
            // Validate input to handle null or empty arrays
            if (chars == null || chars.Length == 0)
            {
                Console.WriteLine("Error: Input array is null or empty.");
                return;
            }
    
            // Use List<string> to store substrings dynamically
            List<string> substrings = new List<string>();
    
            // Initialize StringBuilder for efficient string construction
            StringBuilder sb = new StringBuilder();
    
            // Start with the first character
            sb.Append(chars[0]);
    
            // Loop through the array starting from the second character
            for (int i = 1; i < chars.Length; i++)
            {
                // If the current character matches the previous one, append it
                if (chars[i] == chars[i - 1])
                {
                    sb.Append(chars[i]);
                }
                else
                {
                    // If the character changes, save the current substring and start a new one
                    substrings.Add(sb.ToString());
                    sb.Clear(); // Reset StringBuilder for the next group
                    sb.Append(chars[i]); // Start new substring with current character
                }
            }
    
            // Add the last substring after the loop
            if (sb.Length > 0)
            {
                substrings.Add(sb.ToString());
            }
    
            // Display the generated substrings
            Console.WriteLine("Generated substrings:");
            foreach (string s in substrings)
            {
                Console.WriteLine(s);
            }
        }
    }

For the input char[] chars = { 'a', 'a', 'b', 'b', 'b', 'c', 'c', 'd' }, the output is:

Generated substrings:
aa
bbb
cc
d

This solution should meet your needs for dynamically adding substrings to a collection.

Reasons:
  • RegEx Blacklisted phrase (2.5): please clarify
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @JoelCoehoorn
  • User mentioned (0): @Progman
  • Low reputation (0.5):
Posted by: João Mac

79646271

Date: 2025-05-31 02:07:04
Score: 1.5
Natty:
Report link

I suggested that you look at Convert columnar data to multiple rows. with an answer by @rockinfreakshow.

Use this formula:

={"Name","Contacts";tocol({A2:B6}),tocol(C2:D6)}


Results

results

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @rockinfreakshow
  • High reputation (-1):
Posted by: Tedinoz

79646255

Date: 2025-05-31 01:30:56
Score: 1.5
Natty:
Report link

Can you try to force the permission by overriding get_permissions in your viewset (perhaps also you can specify AllowAny for particular actions)?

    def get_permissions(self):
        return [AllowAny()]
Reasons:
  • Whitelisted phrase (-2): Can you try
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Bathir

79646249

Date: 2025-05-31 01:02:51
Score: 0.5
Natty:
Report link

Thank you to everyone who offered advice! Here's how I made it work. I found it easier to do in Apple Numbers, because in Numbers it's easy to add additional tables within a single sheet. I'm sure there are ways to do this in LibreOffice Calc and MS Excel, but I don't how.

I made separate tables for each lecture, consisting of 2 columns each. The "A" column is just a list of all the registered IDs. In the top cell of the second column, I inserted my formula:

SUM(COUNTIFS(Table 1::B,A1,Table 1::E,"初めまして")+COUNTIFS(Table 1::B,A1,Table 1::E,"はじめまして"))

The above example is for the first lecture. I SUMmed two COUNTIFS to account for variations in the password. If there is no variation, I could use just one COUNTIFS and no SUM. I then dragged down the column to apply the formula to the other IDs. When I do this, the number in column "B" should be "1." If it's "0," it means the person didn't submit a comment or they didn't get the password right. If it's "2" or more, that means they submitted multiple comments. Then I do a manual search in the main table to find the extra comment(s) and delete them.

It would be neat if I could have the redundant comments highlighted with Conditional Highlighting, but my understanding of that function in Apple Numbers is that it can't be done with formulae. (I would love to be proven wrong about this.)

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rachel T

79646219

Date: 2025-05-30 23:59:35
Score: 3
Natty:
Report link

1-1 /2-2/ /3-4/ /4-8/ /5-16/ /6-32/ /7-64/ /8-128/ /9-256/ /10-512/ ...../64-9 223 372 036 854 775 808/

264-1 = 18 446 744 073 709 551 615

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

79646213

Date: 2025-05-30 23:53:33
Score: 4
Natty: 5.5
Report link

what is the library named?

it said "NameError: name 'simpledialog' is not defined"

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): what is the
  • Low reputation (1):
Posted by: MrCool4782

79646212

Date: 2025-05-30 23:53:33
Score: 1
Natty:
Report link

Test run with

find . -mindepth 2 -type f -name "*.txt" -mtime +7 -exec ls -lp {} \;

Delete with

find . -mindepth 2 -type f -name "*.txt" -mtime +7 -print -delete
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: nntrn

79646209

Date: 2025-05-30 23:44:31
Score: 0.5
Natty:
Report link

Chrome intends to ship sibling-index() in the next stable version (138): https://groups.google.com/a/chromium.org/g/blink-dev/c/opsqx1cBPyc/m/pJaRwh7UAAAJ

This should allow you to use something like transition: all 250ms linear calc(sibling-index() * 1s);

Spec: https://drafts.csswg.org/css-values-5/#tree-counting

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

79646199

Date: 2025-05-30 23:27:27
Score: 4
Natty:
Report link

The first thing I would recommend exploring when you have a simulation nearly grinding to a halt with extremely small step size is trying a stiff solver.

https://www.mathworks.com/help/matlab/math/solve-stiff-odes.html https://www.mathworks.com/help/simulink/slref/exploring-variable-step-solvers-using-a-stiff-model.html

If that doesn't help, look into zero crossings or other problems using the Solver Profiler like @wolfie suggested. https://www.mathworks.com/help/simulink/slref/solverprofiler.html

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @wolfie
  • Low reputation (1):
Posted by: emceerich

79646196

Date: 2025-05-30 23:25:27
Score: 1
Natty:
Report link

Have you tried to mess with the One Call settings? Because the outbound call wasn't made (limit hit), there is nothing to report on via webhook so it looks like this is expected behavior based on what you described. enter image description here

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Adrian Rodriguez

79646195

Date: 2025-05-30 23:18:25
Score: 4
Natty: 4.5
Report link

This is obviously too late. But the answer is here: "company#_"

https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.SelectionTransformation.Wildcards.html

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

79646190

Date: 2025-05-30 23:17:24
Score: 2.5
Natty:
Report link

Close application, Android Device exit, remove, exit Seesion Android Device title allowed option open completely finished delete removed.Enable factory reset adding same original Realme 5I mobile Device completely all option open allowed, manage Through.you

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: muhammad shafique

79646188

Date: 2025-05-30 23:14:24
Score: 3.5
Natty:
Report link

To save space, Google works this way. What I did was bring the list of products and then, with the complementary code, the information with my database.

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

79646186

Date: 2025-05-30 23:08:22
Score: 0.5
Natty:
Report link

Are you sure the data structure is fine? Have you confirmed with {{site|jsonify}}?

I would have assumed, without plugins, your tree would look more like: comment4/reply1/reply1/reply1/reply1/reply1/index.md

_comments
└── comment4
    ├── index.md
    └── reply1
        ├── index.md
        └── reply1
            ├── index.md
            └── reply1
            ...
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: nntrn

79646185

Date: 2025-05-30 23:08:22
Score: 1.5
Natty:
Report link

many thank for your great reply. That help a lot. I could reproduce withoout error, but it does not as expected, may be because my lake of knowledge.

Here my steps. First I renamed /hook/fieldContext.ts to /hook/filedProvider.tsx. I needed to add tsx to avoid error message at FieldContext.Provider.

I copied your suggestion as the following

import React, { createContext, useState, ReactNode } from 'react';

type FieldContextType = {
  field: string;
  setField: (value: string) => void;
};

export const FieldContext = createContext<FieldContextType | undefined>(undefined);

export const FieldProvider = ({ children }: { children: ReactNode }) => {
  const [field, setField] = useState("-1");

  return (<FieldContext.Provider value={{ field, setField }}>
    {children}
  </FieldContext.Provider>);

};

Q1: I suppose, the above code is not a hook any more because of tsx. Should U move it to constants or components ?

Secondely: you asked to add <FieldProvider></FieldProvider> at the root of my application, where is the navigation. I am confuse.

My app structure is as the following

app
- (tab)
-- map
--- layout.tsx
--- [id].tsx
-- settings
--- layout.tsx
--- setting.tsx
--- info.tsx
-- stations.tsx
-- index.tsx
-- alarms.tsx
-- layout.tsx
- layout.tsx

My navigation look like

app -layout.tsx

import { Stack } from "expo-router";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";

const queryClient = new QueryClient

export default function Layout() {
  
  return (
    <QueryClientProvider client={queryClient}>
      <Stack>
        <Stack.Screen 
          name="(tabs)" 
          options={{ 
            headerShown: false
          }} 
        />
        <Stack.Screen 
          name="+not-found"
          /*
          options={{
            headerShown: false,
          }} 
          */
        />
      </Stack>
    </QueryClientProvider>
    );
}

and

app -(tab) --layout.tsx

I added <FieldProvider>

import FontAwesome from '@expo/vector-icons/FontAwesome6';
import { Tabs} from 'expo-router';
import { StyleSheet } from "react-native";
import { useThemeColors } from '@/hooks/useThemeColors';
import { useNavigation } from '@react-navigation/native';
import { useState } from "react";
import { FieldProvider } from '@/hooks/fieldProvider';


export default function TabLayout() {
  const colors= useThemeColors()
  const navigation = useNavigation();

   const [sortKey, setSortKey] = useState<"id_station" | "station_name">("id_station")
  
  return (
 <FieldProvider>
  <Tabs screenOptions={{ tabBarActiveTintColor: 'green'}}>

    <Tabs.Screen
      name="index"
      options={{
        headerShown: false,
        title: 'Home',
        headerStyle: {backgroundColor: colors.appHeadBackgroundColor, borderColor:'red'},
        headerTintColor: '#000',
        headerTitleStyle: {
          fontWeight: 'normal',
        },

  
        tabBarIcon: ({ color }) => <FontAwesome size={28} name="arrows-to-circle" color={color} />,
    
        tabBarStyle: {
          display:'none',
          backgroundColor: colors.appTabBarBackgroundColor,
          paddingTop:8,
          height:70,
        }
      }}
    />

    <Tabs.Screen
      name="map"
      options={{
        title: 'Map',
        headerShown: false,
        headerStyle: { backgroundColor: colors.appHeadBackgroundColor},
        headerTintColor: '#000',
        headerTitleStyle: {
          fontWeight: 'normal',
        },
        tabBarIcon: ({ color }) => <FontAwesome size={28} name="map-location-dot" color={color} />,
        //headerTitle: props => <LogoTitle />,
        tabBarStyle: {
          backgroundColor: colors.appTabBarBackgroundColor,
          //paddingTop:8,
          height:70,
        }
      }}
    />

    <Tabs.Screen
      name="station"
      options={{
        headerStyle: { 
          backgroundColor: colors.appHeadBackgroundColor
        },
        headerTintColor: '#000',
        headerTitleStyle: {
          fontWeight: 'normal',
        },
        headerShown: false,
        href: null,
        tabBarIcon: ({ color }) => <FontAwesome size={28} name="chart-line" color={color} />,
        tabBarStyle: {
          //backgroundColor: colors.appTabBarBackgroundColor,
          //paddingTop:8,
          height:70,
        }
      }}
    />  
    

    <Tabs.Screen
      name="alarmes"
      options={{
        title: 'Alarmes',
        headerShown: false,
        headerStyle: { backgroundColor: colors.appHeadBackgroundColor},
        headerTintColor: '#000',
        headerTitleStyle: {
          fontWeight: 'normal',
        },
        
        /*
        headerRight: () => (
          <Button onPress={() => router.back()}>Back</Button>
        ),
        */
        tabBarIcon: ({ color }) => <FontAwesome size={28} name="bell" color={color} />,
        //headerTitle: props => <LogoTitle />,
        tabBarStyle: {
          //backgroundColor: colors.appTabBarBackgroundColor,
          //paddingTop:8,
          height:70,
          //borderWidth:30,
        }
      }}
    />

    <Tabs.Screen
            name="stations"
            options={{
              title: 'Stations',
              headerShown: false,
              headerStyle: { backgroundColor: colors.appHeadBackgroundColor},
              headerTintColor: '#000',
              headerTitleStyle: {
                fontWeight: 'normal',
              },
              tabBarIcon: ({ color }) => <FontAwesome size={28} name="map-pin" color={color} />,
              tabBarStyle: {
                //backgroundColor: colors.appTabBarBackgroundColor,
                height:70,
              }
            
            }}
        />

    <Tabs.Screen
          name="settings"
          options={{
            title: 'Paramètres',
            headerShown: false,
            headerStyle: { backgroundColor: colors.appHeadBackgroundColor },
            headerTintColor: '#000',
            headerTitleStyle: {
              fontWeight: 'normal',
            },
            /*
            headerRight: () => (
              <Button onPress={() => router.back()}>Back</Button>
            ),
            */
            tabBarIcon: ({ color }) => <FontAwesome size={28} name="gear" color={color} />,
            //headerTitle: props => <LogoTitle />,
            tabBarStyle: {
              backgroundColor: colors.appTabBarBackgroundColor,
              //paddingTop:8,
              height:70,
            }
          }}
        />
      
  </Tabs>
  </FieldProvider>


  );
}

I was not really sure if it should go to at app/layout.tsx or at app/(tab)/layout.tsx (I tried both)

Problem: How can I get the value in my view settings.tsx and map.tsx. I tried the following in my view alert.tsx (it need it as well) as that viw is very simple at the moment.

Here is what I tried

import { Image, View } from "react-native";
import { useContext, useEffect, useState } from "react";
import { RootView } from "@/components/RootView";
import { ThemedText } from "@/components/ThemedText";
import { Row } from "@/components/Row";
import css from "@/hooks/styles";
import { useThemeColors } from "@/hooks/useThemeColors";
import AsyncStorage from '@react-native-async-storage/async-storage';
import { imagesHeader } from "@/components/imagesHeader";
import { FieldContext, FieldProvider } from "@/hooks/fieldProvider";

export default function Alarms() {

    const colors = useThemeColors()
    
    const field = useContext(FieldContext)
    
    return(
    <RootView>
      
        <View style={[{backgroundColor: colors.appHeadBackgroundColor }]}>
          <View style={css.jumbotronContainer}>
            <Image
              style={css.jumbotronImage}
              source={imagesHeader.alarms.uri}
            />       
          </View>
        </View>
        
        
        <View style={css.container}>
            <Row>
                <ThemedText>Terrain sélectionner: </ThemedText>
           
                <ThemedText>{field}</ThemedText>
  
            </Row>
            <ThemedText style={[css.text,css.paragraphe]}>Aucune station en alarme</ThemedText>
        </View>
    </RootView>
    )
    
}

but {field} does not print anything. It show an error. and how my drop menu can update the value when the function

function onFieldChange(value:string) {    
  
  }

Many thanks for your help!!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-0.5): thanks for your help
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: popof

79646177

Date: 2025-05-30 22:56:19
Score: 2
Natty:
Report link

You have a very limited access to that project in cloud skills boost, and probably that project is inside the lab that has a limited time access, more of the time is already done/expires automatically for you to access it. Most of the lab in cloud skills boost could have a time span of 1-2hrs to finish.

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

79646174

Date: 2025-05-30 22:53:18
Score: 2.5
Natty:
Report link

What I do is program locally with Tomcat on my machine. When I want to go to production, I execute an MSBuild task that packages the application. Then, I deploy the WAR (for web applications) or the RAR (for batch applications). We also use Docker containers for other installations. In both cases, you have to define deployment units and use the deploy tasks from the GX IDE.

I've never tried developing on one machine and copying directly from GX to another machine.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Starts with a question (0.5): What I
  • Low reputation (0.5):
Posted by: ealmeida

79646171

Date: 2025-05-30 22:49:17
Score: 1.5
Natty:
Report link

It is because DICT_DEF2 expects exactly either 3 arguments (name, key_type and value_type) or 5 arguments (name, key_type, key_oplist, value_type and value_oplist).

It doesn't accept 4 arguments because it won't be able to identify what is the third argument (value_oplist of key_oplist).

Since you give an oplist for util_obj_t, you need to give an oplist for double too (like M_BASIC_OPLIST).

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

79646170

Date: 2025-05-30 22:49:17
Score: 10 🚩
Natty: 6
Report link

did you ever find a solution to this?

Reasons:
  • RegEx Blacklisted phrase (3): did you ever find a solution to this
  • 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): did you
  • Low reputation (1):
Posted by: anon

79646156

Date: 2025-05-30 22:35:13
Score: 2
Natty:
Report link

from moviepy.editor import *

# إعادة تحميل الفيديو بعد إعادة تشغيل بيئة العمل

video_path = "/mnt/data/20250216_183058.mp4"

video = VideoFileClip(video_path)

# إزالة الصوت كما طلب المستخدم (لا مؤثرات صوتية)

video = video.without_audio()

# تصدير النسخة الكاملة بدون عنوان وبلا مؤثرات

final_output_path = "/mnt/data/golden_body_final_nomark.mp4"

video.write_videofile(final_output_path, codec="libx264", audio_codec="aac")

final_output_path

Reasons:
  • No code block (0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Kh Anes

79646154

Date: 2025-05-30 22:31:12
Score: 1
Natty:
Report link

I would recommend splitting apart the concept of UI friendly error checking, from server side validation of bad data.

On the UI, use JavaScript before you submit the form. There will be no delay doing this, and you can verify things are the way you expect them to be.

Server side, you still have to content with malicious users attacking your forms, so do your checks there...but if there is a failure on the server side - don't get fancy. Simply refresh the existing page.

By splitting it in two, you have the UI friendly stuff operating promptly, and you have your "catch-all" activities handled server side, without needing to inject all sorts of UI logic on the back end.

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

79646153

Date: 2025-05-30 22:29:11
Score: 1.5
Natty:
Report link

I am going to add one more option here. I have tried all of the various methods recommended above (as well as in other threads), and none of them worked.

I finally opened VS2022 with administrator privileges, and the form designer loads with no problems now.

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

79646152

Date: 2025-05-30 22:26:11
Score: 1.5
Natty:
Report link

Just went through this after having the same issue with the .NET9 Web App Template and the default Authentication pages like Account/Login when trying to make the whole app operate in @rendermode="InteractiveServer" as seen in the docs.

Either way the problem for me (and I suspect for you) is that the page gets correctly rendered statically from the server, but after interactivity starts, the client doesn't know about the existence of the page OR the page doesn't support interactivity for some reason and is rendered in Static mode and the result is a flash of content followed by the white page with Not found but with the source code all visible via View Source.

I ended up resolving it (by allowing Login to render statically) in the App.razor page by adding this to the <head>

    <HeadOutlet @rendermode="PageRenderMode" />

This to the <body>:

    <Routes @rendermode="PageRenderMode" />

This to the @code section, which is the key piece for my problem in that it ensures pages that don't accept interactive routing are rendered statically.

    private IComponentRenderMode? PageRenderMode =>
        HttpContext.AcceptsInteractiveRouting() ? InteractiveServer : null;

This solution can also be seen by, in Visual Studio, using the wizard to create a new Blazor Web App and choosing Server render mode and Interactivity location: Global. This code comes from the aspnetcore template and can be found by searching that doc page for (UseServer).

Screenshot of creating a Blazor Web App in Visual Studio 2022

Braindump of things that helped:

  1. Testing InteractiveServer via this code snippet from .net docs:

    @page "/render-mode-2"
    @rendermode InteractiveServer
    
    <button @onclick="UpdateMessage">Click me</button> @message
    
    @code {
        private string message = "Not updated yet.";
    
        private void UpdateMessage()
        {
            message = "Somebody updated me!";
        }
    }
    
  2. Dumping RendererInfo.Name in my razor file (via .net docs) to find out what mode my page was rendering in. (It was Static).

    <h2>RendererInfo.Name: @RendererInfo.Name</h2>

  3. Creating the aforementioned Server/Global Web App and BeyondCompare'ing it to my application.

  4. Making a page that dumped all the routes to find out if my page was in the route table:

    @page "/debug/routes"
    @using Microsoft.AspNetCore.Components.Routing
    @using System.Reflection
    
    <h3>Discovered Blazor Routes</h3>
    <ul>
        @foreach (var route in Routes)
        {
            <li>@route</li>
        }
    </ul>
    
    @code {
        List<string> Routes = new();
    
        protected override void OnInitialized()
        {
            var assembly = typeof(Program).Assembly;
    
            // will include any Blazor component, even those not inheriting from ComponentBase
            var pageTypes = assembly.GetTypes()
                .Where(t => typeof(Microsoft.AspNetCore.Components.IComponent).IsAssignableFrom(t))
                .Select(t => new
                {
                    Type = t,
                    PageAttrs = t.GetCustomAttributes(typeof(Microsoft.AspNetCore.Components.RouteAttribute), true)
                })
                .Where(x => x.PageAttrs.Length > 0);
    
            foreach (var page in pageTypes)
            {
                foreach (Microsoft.AspNetCore.Components.RouteAttribute attr in page.PageAttrs)
                {
                    Routes.Add($"{attr.Template} ({page.Type.FullName})");
                }
            }
        }
    }
    
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): having the same issue
  • Low reputation (0.5):
Posted by: dunc

79646146

Date: 2025-05-30 22:21:09
Score: 2.5
Natty:
Report link

I see this all the time in my console when using Firefox and I ignore it. Today, I see it when restructuring a json response from a javascript fetch (after the response is returned, of course). The code works exactly like I want it to. I have no idea what "XrayWrapper" is or what "content-script.js" is and don't really care. That's my 20-cents (inflation-adjusted 2-cents).

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: McAuley

79646144

Date: 2025-05-30 22:17:08
Score: 1
Natty:
Report link

I think you are running into a common TypeScript issue. When you use keyof Foo, the value type associated with the key won't might not match what you are assigning. Since Foo, has a mix of required and optional properties with different types, TypeScript can't infre a safe assignment type for existingProduct[key] = newProduct[key].

You can fix this like so:

interface Foo {
  id: string;
  bar?: number;
  }
 
function setIfChange<k extends keyof Foo> (
  newProduct: Foo,
  existingProduct: Foo,
  key: k
): boolean {
  if (newProduct[key] !== existingProduct[key]) {
     existingProduct[key] = newProduct[key];
     console.log(`Product ${key} updated:`, 
     newProduct);
     return true;
   }
   return false;
}

basically, by adding , Typescript now knows that key is a specific key of Foo, and newProduct[key] and existingProduct[key] are both of type Foo[k]

This helps to avoid type assertion and // @ts-ignore while keeping type safety.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @ts-ignore
  • Low reputation (1):
Posted by: Obinna Obi-Akwari

79646138

Date: 2025-05-30 22:03:05
Score: 1.5
Natty:
Report link

Keycloak is enforcing OTP for the B2BAdmin user likely because the authentication flow's role condition is misconfigured, the user indirectly has the B2BEUAdmin role, the OTP step is applied unconditionally, or the user has a required action like "Configure OTP" set.

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

79646130

Date: 2025-05-30 21:54:03
Score: 11.5
Natty: 7.5
Report link

Good evening, please I replied job and I’ll come to choose my shift. I can’t find the place I can choose my shift. Can you help me for that one? Please? Thank you so much. I finished doing all of them Just. I’m coming to choose my shift. Thank you. And my Internet do something else. I tried to go back in the app. I can’t find it again please help me thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): Good evening
  • RegEx Blacklisted phrase (3): please help me
  • RegEx Blacklisted phrase (3): Can you help me
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Susana Osei

79646116

Date: 2025-05-30 21:35:58
Score: 2
Natty:
Report link

Uninstall Vs code completely, start the process of installation on finishing C# dev kit installation you will get an error stating that .NET SDK can not be found, just click install SDK on the provided button within the error section the download the VSIX File copy it and paste in the .dotnet folder in program files.

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

79646109

Date: 2025-05-30 21:22:55
Score: 2
Natty:
Report link

I suggest to create base abstract controller that derivies from EndpointWithoutRequest and overrides only HandleAsync method

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

79646104

Date: 2025-05-30 21:17:53
Score: 4
Natty:
Report link

I wound up figuring this out. I needed to use the CellFormatting() event instead of any of the paint events. Now it only draws each cell once.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Christian Blackburn

79646096

Date: 2025-05-30 21:12:52
Score: 0.5
Natty:
Report link

I managed to make it work by using s3ForcePathStyle: true instead of forcePathStyle: true:

import { S3Client } from '@aws-sdk/client-s3';
client = new S3Client({
  'us-east-1', 
  endpoint: 'http://localhost:4566', 
  s3ForcePathStyle: true, 
  disableHostPrefix: true
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alex Rewa

79646094

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

double-check namespaces and assembly references. If you're using RequestModel<PatientFinderRequestModel> in multiple places (like public/internal models), there may be more than one type named RequestModel<PatientFinderRequestModel> — even if they look identical.

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

79646084

Date: 2025-05-30 21:02:50
Score: 2.5
Natty:
Report link

I ultimately decided to copy the offending file and put in my source folder. Importing the copied file solved the problem. Since the dependency is deprecated, it's unlikely to get updated any time soon so that file should be fine to sit there until such time as we replace the dependency outright.

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

79646083

Date: 2025-05-30 21:01:49
Score: 1
Natty:
Report link

In my case, I solved it by extracting the zipped folder (in which my project was packed) with 7-Zip, not with WinRaR (with him exact same error occurs)

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user18126722

79646079

Date: 2025-05-30 20:54:48
Score: 1
Natty:
Report link

I am experiencing the same problem and it is taking me a few days and I still could not fix it. This is the error I am getting:

[runtime not ready]: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNMapsAirModule' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes

It happens on IOS and Android

"expo": "~53.0.9","react-native-maps": "^1.20.1" ( I've installed the latest but Expo suggested to roll back to 1.20.1),"react-native": "0.79.2","react": "19.0.0"

Almost giving up on this!

I've removed the newArchEnabled but the problem persists.

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

79646077

Date: 2025-05-30 20:51:47
Score: 3.5
Natty:
Report link

As Scott Hannen said. Documentation here here RuleSets.

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

79646074

Date: 2025-05-30 20:50:47
Score: 2.5
Natty:
Report link
  1. check if xauth is installed

  2. check in the file /etc/ssh/sshd_config if the value of the path to xauth, XAuthLocation is defined

# Path to xauth for X forwarding

XAuthLocation /usr/bin/xauth

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

79646069

Date: 2025-05-30 20:44:46
Score: 2.5
Natty:
Report link

Inspecting the HTML, you can see that the width is not bound to be an integer.

To cover all possible widths you can simply use the same values for both min-width and max-width. If you set both to 480px, when the page is exactly 480px wide then the page will appear blue because the rule that appears later in the CSS take precedence.

StackOverflow page width as seen from the editor

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • No code block (0.5):
  • Low reputation (1):
Posted by: Scydact

79646060

Date: 2025-05-30 20:34:43
Score: 2.5
Natty:
Report link

Wild how everyone's answer is "here's how to make a modal" and not one "here's how to detect if cookies are disabled, stop the cookie-dependent parts of the angular app from loading to avoid spamming errors, and then display a warning page".

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

79646051

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

Creating the Map from an array is the way to go here: if you use a temporary object in between, the keys are converted to string.

const m = Map([[10,'ten']])
m.get(10)
// 'ten' 

https://immutable-js.com/play/#Y29uc3QgbSA9IE1hcChbWzEwLCd0ZW4nXV0pCm0uZ2V0KDEwKQ==

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

79646047

Date: 2025-05-30 20:24:40
Score: 1.5
Natty:
Report link

I wish I had the same problem, I am working on presenting 1M data as clusters and trying to solve problem with superclusters but 1M data creates serious problem. Withbounding box approach we can present 20000 data on map within 45 seconds but still it is not the main target

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

79646043

Date: 2025-05-30 20:21:39
Score: 2
Natty:
Report link
   
    ...
    self.AnimAx = self.Fig.add_subplot(projection='3d')
    self.MyPlot, = self.AnimAx.plot(x,y,z,marke...

...
    # update...
    self.MyPlot.set_data_3d(x,y,z)

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

79646041

Date: 2025-05-30 20:17:38
Score: 1.5
Natty:
Report link

It worked with IE in WSL.

Install IE in WSL: sudo apt install wslu

Set the below two lines in .profile

export DISPLAY=:0

export BROWSER=/usr/bin/wslview

Reasons:
  • Whitelisted phrase (-1): It worked
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Suvendu Mandal

79646034

Date: 2025-05-30 20:09:36
Score: 3
Natty:
Report link

it only does it half way, it doesn't do it if the column name has spaces.

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

79646028

Date: 2025-05-30 20:00:34
Score: 2.5
Natty:
Report link

You can try the approach described at https://aps.autodesk.com/blog/merge-pdfs-svg-lines

That leverages BufferGeometry (refer to https://threejs.org/docs/#api/en/core/BufferGeometry) to draw geometries on top of the scene. Later, you can mimic those geometries as SVG and even print those in case of PDF files.

For text, you can leverage TextGeometry, as done in https://aps.autodesk.com/blog/how-do-you-add-labels-forge-viewer

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: João Martins

79646026

Date: 2025-05-30 19:56:33
Score: 1
Natty:
Report link
$databaseFilename = "abcd.jpg"; // value from your database

$partnameoffile = pathinfo($databaseFilename, PATHINFO_FILENAME); // "abcd"

$dirname = "media/images/"; $images = glob($dirname . "" . $partnameoffile . ".*"); // match any extension

foreach ($images as $image) { echo '
'; }

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

79646025

Date: 2025-05-30 19:55:32
Score: 0.5
Natty:
Report link

There are many possible reasons for the 422 status code, and many of them are out of your control and can depend on the infrastructure at Scrapfly that is executing that specific HTTP request.

If you visit Scrapfly's webscraping errors page (https://scrapfly.io/docs/scrape-api/errors), you'll see that there are 36 different errors that can cause a 422 response including things like "Network error happened between Scrapfly server and remote server".

So if you get a 422, it's useful to retry the request using common best practice retry logic (such as exponential backoff with circuit breaker).

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

79646024

Date: 2025-05-30 19:54:32
Score: 1.5
Natty:
Report link

In my case, it was Windows defender. I added the Java process (not the process I was starting from my Java program) to the Windows Defender Process exclusion list, and saw the process invocation go from 5000ms to 500ms. enter image description here

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

79646021

Date: 2025-05-30 19:51:32
Score: 1
Natty:
Report link
import os
"running the command"
os.system(command)
"capturing the output"
result = os.popen(command).read()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: N. S.

79646012

Date: 2025-05-30 19:42:29
Score: 1
Natty:
Report link

You have both name() method for faker in the factory and $this->categories->name in the resource. One of those is breaking the call. The categories being a collection instance instead of a model is my theory, but without more code, I can't tell for sure.

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

79646006

Date: 2025-05-30 19:39:28
Score: 0.5
Natty:
Report link

Mmaybe using ... extends ListQuerydslPredicateExecutor<Student>, instead of QuerydslPredicateExecutor, will help you to create your desired stream.

In this there are several List<T> findAll(...) methods.

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

79645997

Date: 2025-05-30 19:31:26
Score: 1.5
Natty:
Report link

I have been struggling with a similar issue where the sphere detects everything but the specified layer.

This did not really work for me, but I heard it work for others: Put a Tilde character (~) in front of "playerMask". This would become "~playerMask". This will reverse the operation to ignore everything but that layer. This is because it ignores the specified layer, instead of including it.

If that does not work, as for me, I heard there could be a weird Unity feature that makes the method use the collision matrix despite your specific layer. This could present issues. For my issue, I did not use the layer parameter at all and instead checked it within a selection statement, e.g. "if(gameObject.layer == playerMask) {"

Hopefully this helps!

Reference: https://discussions.unity.com/t/solved-physics-overlapsphere-does-not-see-the-needed-layer/776021 User: Kurt-Dekker

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

79645993

Date: 2025-05-30 19:29:25
Score: 5.5
Natty: 5.5
Report link

So what are teh client id and client secret for? I know they are enough to read and write tweets even without all the other keys.
So, how???

Reasons:
  • Blacklisted phrase (1): ???
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Abbas Shojakani

79645984

Date: 2025-05-30 19:19:22
Score: 0.5
Natty:
Report link

While it may not be possible with type families, here is a hacked up solution.

class CurryN num a b | num a -> b, b -> a where 
    curryNp :: b -> a

makeTuple :: forall num a1 a2. CurryN (ToPeano num) a1 (a2 -> a2) => a1 
makeTuple = curryNp @(ToPeano num) id
instance CurryingN  (Succ (Succ Zero)) (v1 -> v2 -> v3) ((v1, v2) -> v3) where
    curryNp =curry
... for all tuples
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ashok Kimmel

79645979

Date: 2025-05-30 19:16:21
Score: 1
Natty:
Report link
gcloud auth revoke --all
rm ~/.config/gcloud/application_default_credentials.json
gcloud auth application-default login
gcloud auth login
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tsvi Sabo

79645970

Date: 2025-05-30 19:10:19
Score: 3
Natty:
Report link
header 1 header 2
cell 1 cell 2
cell 3 cell 4
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user30679888

79645958

Date: 2025-05-30 18:53:14
Score: 2
Natty:
Report link

it's really working >> Go to windows>preferences>xml(wild web developer)(double click)>select download external resources like referenced DTD,XSD. Now check your xml file your error will be disappeared

.

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

79645957

Date: 2025-05-30 18:52:13
Score: 1.5
Natty:
Report link

You cannot do that.

Origin is mentioned to enforce CORS. You will need to out in all the origins (as a comma or colon separated string) and only then it can work.

Dynamic addition defeats the very idea of CORS protection.

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

79645956

Date: 2025-05-30 18:52:13
Score: 0.5
Natty:
Report link

They added an option, `--with-strip-program` for this, you can set it to your crosscompiler's stript.

I found that in my case that's not the whole thing, since it will still try to build a terminfo db, which needs 'tic'. there's a fallback for that too, where it should use the one from the build host. a path can also be specified. In my case the host was too old and so the ncurses version it had also failed badly.

It's likely a case of more of RTFM but I'll also set out to just disable 'progs'

basically there seem to be ways to add the database, even a premade one. they are just a bit too hard to figure out when not being a ncurses developer.

though they have to be applauded, their configure script at least really catches all the potential problems.

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

79645954

Date: 2025-05-30 18:49:13
Score: 1
Natty:
Report link

I know this is pretty old, but one thing you may be able to do is alias your older React dependency.

In your React 16 project's package.json,

"dependencies": {
  "react-16": "npm:[email protected]",
}

Now in your React 16 dependent app, you would replace all of your react imports/requires with react-16.

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

79645948

Date: 2025-05-30 18:46:12
Score: 1
Natty:
Report link

You're missing the horizontal scrollbar declaration, This is what helps define what orientation the scrollArea will take

<ScrollBar orientation="horizontal" />
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Peter Ola

79645947

Date: 2025-05-30 18:46:12
Score: 1
Natty:
Report link
`id = models.CharField(max_length=10, unique=True, editable=False)`
` def save(self, *args, **kwargs):
        if not self.id:
            self.id = get_random_string(6).upper()
        super().save(*args, **kwargs)`

You can make it simple through just overriding the default save method of models

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

79645944

Date: 2025-05-30 18:43:11
Score: 1.5
Natty:
Report link

No official material-icons yet exist for compose.material3 in Compose Multiplatform.

You need either to create the icons yourself in SVG or ImageVector or to use compose-icon library to have FontAwesome icons by example.

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

79645942

Date: 2025-05-30 18:41:10
Score: 1
Natty:
Report link

I was able to achieve a pruned DAG by following method.

Step 1: Obtain a topological ordering of the nodes in the DAG.

The Step 1 will give you the node number for a node id.

Step 2: Make an edge list with the node_id replaced with it's number obtained in step 1. The list will have each element of the form (src, dst).

Step 3: Sort the edge list by ascending order of the dst and if the dst is equal descending order of src.

Step 4: Iterate through the edge list and form a Graph. If the src and dst are in the Graph and there is a path from src to dst skip the edge, else add the edge to the Graph.

You will get a pruned graph.

I was able to get a pruned graph for my case, let me know if there is any edge case that invalidates the above method.

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

79645933

Date: 2025-05-30 18:27:06
Score: 0.5
Natty:
Report link

Assuming the system is defined by the matrices {A,B,C,D} you have

xn+1 = Axn + Bun

yn = Cxn + Dun

You can modify this to have additional outputs, in this case the state vector itself, without changing the system dynamics:

xn+1 = Axn + Bun

[ yn ; xn ] = [ C ; I ]xn + [ D ; 0 ]un

This will result in a vector output from the block [ yn ; xn ] and you can separate this using a Selector block, sending the portion of the vector for yn wherever you previously used that signal (e.g. feedback loop) and sending xn to wherever you want to have the full state measurement.

Let's assume

Then instead of putting A, B, C, D, and Ts into the Discrete State Space block, you'd put A, B, [ C ; eye(N) ], and [ D ; zeros(M,L) ] as in the following: Block Parameters: Discrete State-Space

Note that my dummy example uses N = 4, M = 3, L = 2, and Ts = 1

Then, to get yn add a selector block to get the elements 1:M like this: Selector for y

And similarly for xn, you want elements (M+1):(M+N) like this: Selector for x

Since you have not modified the system matrices {A,B,C,D} you're free to continue using them for analysis or design tasks as is.

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

79645924

Date: 2025-05-30 18:15:03
Score: 3.5
Natty:
Report link

Toggle fields will be helpful.

Please refer discussions in https://r4csr.org/tlf-assemble.html

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

79645920

Date: 2025-05-30 18:12:02
Score: 2.5
Natty:
Report link

Correct me if I'm wrong. You can access the custom CCP URL, but you can't access Connect because access to Amazon Connect is blocked from the custom CCP in S3.

If this is the case, in the "Approved Domains" section, add the URL of your S3 bucket or the domain from which you intend to connect to Amazon Connect.

Approved domains

You can find the reference at this link https://docs.aws.amazon.com/connect/latest/adminguide/app-integration.html

Reasons:
  • Blacklisted phrase (1): this link
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jorge Luis Salcedo Prado

79645919

Date: 2025-05-30 18:12:02
Score: 2.5
Natty:
Report link

Unlike Microsoft's poorly implemented shortcuts, Unix and Linux implement hard links and symbolic ("soft") links at the filesystem level. This means that the only way an application can distinguish between an "actual file" and a symbolic link to the actual file, is by requesting specific information from the filesystem.

If bash is looking for ~/.bashrc and finds something there (either a real file, or a symbolic link to a file...or even a symbolic link to a symbolic link to a symbolic link.... to a file... it will treat the symbolically linked file as if it were at the place where the symbolic link is it.

why?

BECAUSE THAT IS THE ENTIRE PURPOSE OF HAVING SYMBOLIC LINKS.

Reasons:
  • Blacklisted phrase (0.5): why?
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Aaron Kulkis

79645916

Date: 2025-05-30 18:10:02
Score: 2
Natty:
Report link

add

ChartRedraw(0); 

under the set integer function

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

79645915

Date: 2025-05-30 18:09:01
Score: 1
Natty:
Report link

I think you're asking if you can send a post request from information in a Google Sheet. This is possible, but not in the app itself. Instead, you need to access the information in another language (such as Python, explained below), and update the post request there.

  1. Access Google Sheets / Create a project and an API key which accesses your sheet

    1. https://developers.google.com/workspace/guides/configure-oauth-consent

    2. https://developers.google.com/workspace/sheets/api/quickstart/python

  2. Read the values within the cell with an API call to the sheet

    1. https://developers.google.com/workspace/sheets/api/guides/values
  3. Use your information to make a post request as you usually would

    1. Go to Postman

    2. Find a request you want to make

    3. On the very right side, click </>

    4. Navigate to (in this case) Python - Requests

    5. Copy + Paste the code there into your Python file

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

79645901

Date: 2025-05-30 17:57:59
Score: 2.5
Natty:
Report link

I had the issue when using numpy 1.26.0, but it went away when I upgraded to 1.26.4. I think you need to install 1.26.4 or later.

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

79645899

Date: 2025-05-30 17:56:58
Score: 2
Natty:
Report link

I mentioned in my original post that I thought that ps2pdf was a script that called gs. This turns out to be correct. ps2pdf is the generic script; there are 3 or 4 other scripts that get called if you want your output to be PostScript Level 2, for example. But on my system the script that actually does something is ps2pdfwr:

#!/bin/sh
# Convert PostScript to PDF without specifying CompatibilityLevel.

# This definition is changed on install to match the
# executable name set in the makefile
GS_EXECUTABLE=gs
gs="`dirname \"$0\"`/$GS_EXECUTABLE"
if test ! -x "$gs"; then
    gs="$GS_EXECUTABLE"
fi
GS_EXECUTABLE="$gs"

OPTIONS="-P- -dSAFER"
while true
do
    case "$1" in
    -?*) OPTIONS="$OPTIONS $1" ;;
    *)  break ;;
    esac
    shift
done

if [ $# -lt 1 -o $# -gt 2 ]; then
    echo "Usage: `basename \"$0\"` [options...] (input.[e]ps|-) [output.pdf|-]" 1>&2
    exit 1
fi

infile="$1";

if [ $# -eq 1 ]
then
    case "${infile}" in
      -)        outfile=- ;;
      *.eps)    base=`basename "${infile}" .eps`; outfile="${base}.pdf" ;;
      *.ps)     base=`basename "${infile}" .ps`; outfile="${base}.pdf" ;;
      *)        base=`basename "${infile}"`; outfile="${base}.pdf" ;;
    esac
else
    outfile="$2"
fi

# We have to include the options twice because -I only takes effect if it
# appears before other options.
exec "$GS_EXECUTABLE" $OPTIONS -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS "$infile"

So, from my original post, this worked

$ ps2pdf testfile.ps

but this did NOT work

$ gs -sDEVICE=pdfwrite -o testfile.pdf testfile.ps

Based on my examination of the script ps2pdfwr above, I tried this, which DID work:

gs -P- -dSAFER -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr \

-sOutputFile=testfile.pdf testfile.ps

I don't understand which of the switches did the trick, but I guess I'm satisfied that gs can indeed substitute fonts if you give it the right switches.

KenS - Thanks for your comments. In researching this problem over the past few days I kept running into comments saying that you had to modify gs's Fontmap file to include any new font you wanted to use, and supply the full path to the modified Fontmap file as a switch to your gs command. That all actually seems to be unnecessary -- though I suppose it is possible that ghostscript modifies its Fontmap file as needed as the user specifies a new system font.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): did NOT work
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Paul Dulaney

79645898

Date: 2025-05-30 17:54:58
Score: 3.5
Natty:
Report link

fyi it wasn't enterprise but now it is

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

79645891

Date: 2025-05-30 17:48:56
Score: 2
Natty:
Report link

It sounds like upon initialization the bottom or minimal value allowable is set to 30 (or what ever you set it at) and during run-time one can only increase from there. A possible work around is to set the initial value to 1, and then immediately after initialization set the value to 30 as a default. After this point you should, based on the prior results, set it dynamically to anything above 1.

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

79645888

Date: 2025-05-30 17:46:55
Score: 0.5
Natty:
Report link

I found the solution... After attaching to the remote target and once all symbols are loaded, I need to pause the debugger, then set a breakpoint that can be hit from my program, click on run again, it'll hit the breakpoint, and all variables and source code will be shown. You can also set a breakpoint from the beginning before clicking on the green button of attaching to a debug session, then click on the green triangle to run/attach to remote process it will hit the breakpoint and source code will be shown as well as variables, call stack, etc.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-2): I found the solution
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ulises V.

79645884

Date: 2025-05-30 17:44:54
Score: 0.5
Natty:
Report link

It is quite surprising to me that (beyond the other two mandatory fields) "orderBy": "timestamp desc" works but "orderBy": "timestamp asc" does not, it only returns an empty response with the next page token!

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Balint Pato

79645880

Date: 2025-05-30 17:41:53
Score: 0.5
Natty:
Report link

The problem is in the response header.

When you are using Apache server as a proxy server, you are passing the JWT token in response headers. The problem with proxy servers is that extra care needs to be done to ensure that the proxy server is forwarding all your response headers from the backend server to frontend.

Usually, the proxy server sends its own set of response headers and not the headers from backend server. If you are to send the access token in response body, you would notice that your issue is resolved

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

79645875

Date: 2025-05-30 17:36:52
Score: 0.5
Natty:
Report link

Easiest way to get around this is avoid Terraforms type checking for the variable:

variable subnets {
    type = any
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: austinheiman

79645871

Date: 2025-05-30 17:33:51
Score: 1
Natty:
Report link

maybe add this for checking the stop level points

int stopLevelPoints = (int)MarketInfo(Symbol(), MODE_STOPLEVEL);
      if(stopLevelPoints==0){
        stopLevelPoints=(int)SymbolInfoInteger(_Symbol,SYMBOL_TRADE_STOPS_LEVEL);
        }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Forex Coder

79645870

Date: 2025-05-30 17:32:51
Score: 3.5
Natty:
Report link

FYI, I ended up using the proxy server with the double hop method, used Kerberos, and added the become settings on there and it's working now without admin rights. Thanks for the help all!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jeremy D

79645855

Date: 2025-05-30 17:23:49
Score: 2
Natty:
Report link

After setting your working directory:

hist1 <- hist(rnorm(1000),  xlab  = "x", ylab = "density", probability=T)

install.packages("sjPlot")

library(sjPlot)

save_plot("myhist.png", fig = hist1, width = 50, height = 25)

Base R:

hist2 <- hist(rnorm(1000),  xlab  = "x", ylab = "density", probability=T)


png(filename = "C:\\YourPath\\myhist2.png")
plot(hist2)
dev.off()

Is this suitable for you?

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

79645854

Date: 2025-05-30 17:22:48
Score: 5
Natty: 5
Report link

اريد نقاط بوت شدات ببجي مجانا او شدات ببجي مجانا 52184095743

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: مجهول مجهول

79645844

Date: 2025-05-30 17:10:44
Score: 3
Natty:
Report link

for us on iOS, the issue was when running on debug mode, and the debug mode was using different bundleId than what registered on firebase console

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

79645842

Date: 2025-05-30 17:08:44
Score: 2.5
Natty:
Report link

Although it may not be current for you, it may still be valuable to others.

Using iTerm2 (3.5.14), I was able to select the screen I wanted. The following steps were taken:

  1. Navigate to the profile and select the 'Screen' option:

enter image description here

2. Select the screen you prefer:

enter image description here

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

79645830

Date: 2025-05-30 16:58:41
Score: 0.5
Natty:
Report link

I tried to prepare picture out of your figma and use it. But cannot use uploaded url (:

This border will be used

.btn {
font-size:2em;
  padding: 1em .8em;
background: transparent;


  --border-image-source: url('https://i.sstatic.net/KPyjkaIG.png');
  border-image-source: url(https://tools.t2tc.ru/solt/img/border.png);
    border-image-slice: 10%;
    border-image-outset: 0;
    border-image-repeat: stretch;
    border-image-width: 30px;
}
<button class="btn">Connexion</button>

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

79645829

Date: 2025-05-30 16:58:41
Score: 1.5
Natty:
Report link

sadly this is known anti-pattern don't use it because you will couple all of your activities/ fragments .... instead use extension functions on them and use them whenever you really need them ... or make interface/abstract class with default implementation and implement them when ever you really know you are need them

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

79645825

Date: 2025-05-30 16:55:40
Score: 0.5
Natty:
Report link

Thanks for your inputs @juanpa.arrivillaga. If I understand you correctly, this will cause updates on all the Aggregator instances to be triggered for any Tracker instance update, not only for the grouped ones (which is what I want).

t1 = Tracker()
t2 = Tracker()
a1 = Aggregator([t1,t2])
t1.value = 32
t2.value = 55

t3 = Tracker()
t4 = Tracker()
a2 = Aggregator([t3,t4])
t3.value = 29 # will trigger updates on a1 and a2!
t4.value = 37 # # will trigger updates on a1 and a2!

The solution that worked for me was to do the following:

class Tracker():
    def __init__(self):
        self._value = None

    @property
    def value(self):
        return self._value

    @value.setter
    def value(self, value):
        self._value = value
        if hasattr(self,'aggregator_update') and callable(self.aggregator_update):
            self.aggregator_update()
class Aggregator():
    def __init__(self,trackers):
        self.trackers = trackers
        for t in self.trackers:
            t.aggregator_update = self.update
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: im-not-you

79645824

Date: 2025-05-30 16:53:40
Score: 1
Natty:
Report link

The issue was invalid metadata. One of the metadata values had a space in it.

//contrived example
var metadata = new Dictionary<string, string>();
metadata.Add("my-metadata", "no-worky "); // space at the end will cause the error

Trimming the metadata value fixed the MAC signature error.

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

79645816

Date: 2025-05-30 16:44:38
Score: 1.5
Natty:
Report link

Fixing Delphi 7 "Too Many Resources to Handle" Compilation Error

Issue

While working on a Delphi 7 project, you may encounter the "RLINK32: Too many resources to handle" error. This often happens when modifying project icons, adding resources, or due to issues in the uses clause.

Solution

After troubleshooting, I found that the issue in my case was related to the uses clause. If you're facing the same error, try these steps:

1. Check the uses Clause

2. Delete and Regenerate the .res File

3. Verify RLINK32.dll

4. Reduce Excessive Resources

5. Fix Manual Edits in .dfm

Conclusion

If none of these steps resolve your issue, consider testing on a clean Delphi installation. Also, shortening file paths or moving the project to a simpler directory can sometimes help avoid compilation failures.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same error
  • Low reputation (0.5):
Posted by: tdjprog

79645810

Date: 2025-05-30 16:38:36
Score: 1
Natty:
Report link

@The manpage (appears best documentation for Bash traps) says:

trap [-lp] [[arg] sigspec ...] The command arg is to be read and executed when the shell receives signal(s) sigspec.

If arg is absent (and there is a single sigspec) or -, each specified signal is reset to its original disposition (the value it had upon entrance to the shell). If arg is the null string the signal specified by each sigspec is ignored by the shell and by the commands it invokes.

If arg is not present and -p has been supplied, then the trap commands associated with each sigspec are displayed.

The best I came with now is:

$ cat -n tst.sh
     1  #!/usr/bin/env bash
     2
     3  trap err_handler ERR
     4  trap debug_handler DEBUG
     5
     6  err_handler() {
     7          printf 'ERR trapped in %s, line %d\n' "${FUNCNAME[1]}" "$BASH_LINENO"
     8  }
     9
    10  debug_handler() {
    11          err_handler_aside=$(trap -p ERR)
    12          trap - ERR
    13
    14          printf 'DEBUG trapped in %s, line %d\n' "${FUNCNAME[1]}" "$BASH_LINENO"
    15
    16          false
    17
    18          $err_handler_aside
    19  }
    20
    21  false
    22  false

This works as the false in the debug_handler does not get trapped, but the handler will handle the second false in main again:

$ ./tst.sh
DEBUG trapped in main, line 21
DEBUG trapped in main, line 21
ERR trapped in main, line 21
DEBUG trapped in main, line 22
DEBUG trapped in main, line 22
ERR trapped in main, line 22

Thanks @EdMorton for tidying this up.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @EdMorton
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Albert Camu

79645806

Date: 2025-05-30 16:31:34
Score: 1.5
Natty:
Report link

It can be done using Matplotlib if you choose the 'side' option in the command fo the violin plot:

VA = axs.violinplot([Q1a, Q2a, Q3a, Q4a, TotalMarks_a], 
                    side='low', showextrema=False, showmeans=True)
VB = axs.violinplot([Q1b, Q2b, Q3b, Q4b, TotalMarks_b], 
                    side='high', showextrema=False, showmeans=True)

The full example is on https://github.com/iddoamit/PythonGraphGallery/tree/main/Asymmetric%20violin

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Iddo Amit's Lab

79645805

Date: 2025-05-30 16:31:34
Score: 2
Natty:
Report link

I really appreciate this exchange because I've been struggling to get a large fortran program compiled and running using homebrew versions of openmpi, gfortran and fftw3 (also HDF5).

ADR

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

79645793

Date: 2025-05-30 16:21:31
Score: 4
Natty:
Report link

I tried but not successfully using Text(Topic.VarChoice) , but using adaptive cards helped this out: https://adaptivecards.io/explorer/Input.ChoiceSet.html

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

79645780

Date: 2025-05-30 16:12:28
Score: 4.5
Natty:
Report link

Just remove phantom extension, then is works.

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

79645770

Date: 2025-05-30 16:01:25
Score: 2.5
Natty:
Report link

To help debug it I moved the declaration of the connection string to my Form1_Load sub and caught the exception. The actual error was that the connection string was already added, in this case from a machine.config file on the server.

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