79589312

Date: 2025-04-23 18:54:21
Score: 2
Natty:
Report link

Flex is great for a concept called responsive design. It makes it so that no matter the screen you're on, you have all the information on the screen.

Grid is good for when you need a very specific layout, and know you need everything to line up exactly with the elements around it.

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

79589307

Date: 2025-04-23 18:50:20
Score: 2
Natty:
Report link

in csh its very simple:

echo "some string" > ./file # creates file, fails if it exists

echo "some string" >> ./file # appends to file it if exists, fails if it doesn't exist

echo "some string" >! ./file # creates the file, overwrites it it exists

echo "some string" >>! ./file # appends to file, creates it if it doesn't exist

in csh you have all the control you need without setting shell vars that may have unintended consequences. Wish they'd add this to bash.

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

79589302

Date: 2025-04-23 18:48:19
Score: 1
Natty:
Report link

!!!Insecure method!!!

add in your settings.py

from django.db.backends.base.base import BaseDatabaseWrapper
BaseDatabaseWrapper.check_database_version_supported = lambda _: None

in my case it helped me

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

79589296

Date: 2025-04-23 18:44:18
Score: 3
Natty:
Report link

yes I'm running R and trying to install reactome.db with BiocManager (required for ReactomePA). For some reason it fails

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

79589288

Date: 2025-04-23 18:42:18
Score: 3
Natty:
Report link

You can try to host your PyGame on GitHub pages! For a more detailed guide on that, check out this medium article!

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

79589286

Date: 2025-04-23 18:41:18
Score: 1.5
Natty:
Report link

x is [var myString, ..] is a pattern that will match the first element if length is 1 or greater.

if (myStringValues is [var myString, ..])
{
    something(myString);
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): is a
  • Low reputation (0.5):
Posted by: roten

79589281

Date: 2025-04-23 18:37:16
Score: 0.5
Natty:
Report link

Hi I just solved this problem by the following steps

Use Conda to get a new vertual env, and use conda in the first place to install conda-forge::faiss-gpu, which you can find out more here https://anaconda.org/conda-forge/faiss-gpu. Most of the problem I met is due to the mix usage of pip and canda. whenever you start to use pip, don't use conda in the same vertual env. It brings me a lot problems.

My cuda version is 12.6 and it also works, I had a pytorch with cuda 12.1

Hope this helps

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

79589280

Date: 2025-04-23 18:37:16
Score: 4.5
Natty:
Report link

See the original post for the solution.

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

79589274

Date: 2025-04-23 18:33:15
Score: 0.5
Natty:
Report link
ChatGPT said:

In electrical systems and simulations, an FMU (Functional Mock-up Unit) represents a model that can be used for co-simulation, particularly in contexts like Modelica-based simulations. Causal and acausal connectors in such models refer to the directionality of signals or relationships between components:

When exporting models (like from FMUs), especially for systems that require interoperability between different simulation environments, electrical systems often require specific adapters or interfaces to allow seamless communication between acausal and causal connectors.

Adapters for electrical connectors (to export FMUs) may involve the following approaches:

1. Mapping between Causal and Acausal Connectors:

For electrical models, you would often need an adapter that translates between a causal input-output system (e.g., voltage as an input and current as an output) to an acausal system (where the relationship is not defined beforehand, like in an energy balance equation).

2. Electrical Adapter Example for FMU Export:

A typical scenario might involve exporting a circuit simulation model into an FMU where the voltage and current are interconnected in a more dynamic fashion (acausal). The model could have causal connectors for certain variables like voltage input and current output, and others could be solved dynamically.

The adapter here would essentially:

Specific adapter components might include:

3. Simulation Environment Considerations:

4. Custom FMU Adapter Components:

If you're working with a specific type of system or simulation tool (e.g., Simulink, Modelica, or a custom electrical circuit simulator), the implementation details for such adapters will depend on how each environment handles the export and integration of FMUs with causal/acausal systems.

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

79589256

Date: 2025-04-23 18:22:12
Score: 0.5
Natty:
Report link

One quick way of achieving this is terminating the R session.

x <- "test"
if (!is.numeric(x)) {
  stop("Not numeric") # To see reason for failure
  q(save = "no")
}
print("hello world")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: fjesser

79589255

Date: 2025-04-23 18:22:12
Score: 7 đŸš©
Natty:
Report link

1) Where should I put the files in the project?

This turns out to be flexible. I ended up putting my files in a directory I named “SampleFiles”, inside my “Tests” directory (which contains separate directories for each test target, such as unit tests and UI tests).

Important: The key to having the files available through the bundle is to ensure they are included in the “Copy Bundle Resources” phase of the “Build Phases” tab for the target.

  1. Open the Project Navigator (the first tab in the sidebar on the left in the Xcode window, shortcut: ⌘-1).
  2. Open the project at the top of the project navigator sidebar.
  3. Select the target (in my case, I want my sample files included in the bundle resources for the unit tests target).
  4. Select the “Build Phases” tab.
  5. In the “Copy Bundle Resources” section, ensure the file(s) is included.

2) How should I get the bundle that contains the sample files?

If the resources are in the app’s main bundle, just use Bundle.main.

But if they are in a different target bundle, I haven’t found a better answer than this “brute force” approach, which requires there be a known file in the bundle resources (in this example, sample.file):

private static func findSampleBundle() -> Bundle? {
    for bundle in Bundle.allBundles {
        if bundle.url(forResource: "sample", withExtension: "file") != nil {
            return bundle
        }
    }
    return nil
}

3) Where do I put the files in the Xcode project to have them added to the test bundle?

See question 1.

4) How do I get access to the test bundle when using swift-testing (not XCTest)?

See question 2.

5) How do I get the URL for a given file in the test bundle?

Having got the bundle (answer to question 2):

let sampleFileURL = bundle.url(forResource: "sample", withExtension: "file")

6) Alternatively, is there a way, when using swift-testing in Xcode, to give the test runner permission to read the sample files (overriding the sandbox limitations)?

No answer yet.

Reasons:
  • Blacklisted phrase (1): How do I
  • Blacklisted phrase (1): is there a way
  • Blacklisted phrase (1.5): Where should I
  • Blacklisted phrase (1): How should I
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Grant Neufeld

79589247

Date: 2025-04-23 18:19:11
Score: 4
Natty: 4.5
Report link

I has same error. In my case, I had to specify boundary parameter. See https://www.baeldung.com/spring-avoid-no-multipart-boundary-was-found.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Juliano José da Silva

79589225

Date: 2025-04-23 18:04:06
Score: 1
Natty:
Report link

My solution

rename subfolder
run commit
rename it back
run commit
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Antti RytsölÀ

79589220

Date: 2025-04-23 18:02:06
Score: 2.5
Natty:
Report link

This helped:
In gradle.properties:
android.disableMinifyLocalDependenciesForLibraries=false
More info: https://developer.android.com/build/releases/past-releases/agp-8-4-0-release-notes?hl=en#library-classes-shrunk

Or
isMinifyEnabled = false in libraries (modules)

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

79589215

Date: 2025-04-23 17:59:05
Score: 3
Natty:
Report link

Dates correlate with trademark infringement not conclusive but the 11/19 I had fraudsters using my trademark and the package trick matches the class

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

79589214

Date: 2025-04-23 17:59:05
Score: 2.5
Natty:
Report link

If you are using SAP Logon then try ui2/flpd_cust T-Code and remove the Custom Fiori app tile setup from the Catalog section (where you have configure the tile and target mapping) and then remove the tile from the Group section as well (in case if you have configured the tile in the group).

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

79589212

Date: 2025-04-23 17:57:04
Score: 2
Natty:
Report link

First, in your Note, you're only utilizing the "title" and "body" fields. Whether this is compliant with the API is not immediately clear to me from their docs, so you may want to ensure you're not eliding any required fields.

Regardless, are you certain that service.notes().create accepts a python dictionary? I would bet the API provides a cleaner way to construct a Note object, or maybe just takes a JSON-formatted string; some other usages of the function seem to suggest the latter.

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

79589208

Date: 2025-04-23 17:55:03
Score: 2
Natty:
Report link

You can try,

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

79589205

Date: 2025-04-23 17:52:03
Score: 1
Natty:
Report link

I had the same issue, the whole stack trace was being sent in the response, the culprit was my custom exception class which was extending Exception. Removing the extends fixed the issue.

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

79589204

Date: 2025-04-23 17:52:02
Score: 10.5
Natty: 7
Report link

I want fix ..this error.. please help me, my e-mail is [email protected]

AttributeError: module 'google.protobuf.message_factory' has no attribute 'GetMessageClass'. Did you mean: 'GetMessages'?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): please help me
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: korean user

79589193

Date: 2025-04-23 17:48:01
Score: 4
Natty: 4.5
Report link

I has same error. In my case, I had to specify boundary parameter. See https://www.baeldung.com/spring-avoid-no-multipart-boundary-was-found.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Juliano José da Silva

79589192

Date: 2025-04-23 17:48:01
Score: 3
Natty:
Report link

Use npm install --force After removing all node_modules and package-lock.json

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

79589188

Date: 2025-04-23 17:46:00
Score: 3.5
Natty:
Report link

Try out RestBook a CLI tool that can automate multi-step API workflows in YAML.

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

79589176

Date: 2025-04-23 17:40:58
Score: 1.5
Natty:
Report link

These are Cursor inline suggestions (AI). Here's how to disable it:

ctrl + shift + p

type cursor tab, and look for Cursor Tab: Disable

press enter.

Alternatively, at the bottom right you have a Cursor Tab button that you can click to toggle it on and off.

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

79589174

Date: 2025-04-23 17:38:57
Score: 1.5
Natty:
Report link
FieldInfo backingField = property.DeclaringType!.GetField($"<{property.Name}>k__BackingField", BindingFlags.Instance | BindingFlags.NonPublic);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Knyrps

79589170

Date: 2025-04-23 17:36:57
Score: 1.5
Natty:
Report link

I’ve been researching this topic for almost a week, but unfortunately, I wasn’t able to find a satisfying solution. Therefore, I had to come up with my own workaround.

Due to the complexity of my project, I can't share the entire code structure related to this topic, as it would be too confusing and hard to follow. However, I’d like to share the core idea of the solution I developed, which might help others facing a similar issue.

const onGridReady = async (gridParams: GridReadyEvent) => {
  // Define your initial filters as key-value pairs
  const initialFilters: Record<string, { type: string; filter: any }> = {
    name: { type: 'equals', filter: 'Michael 222' },
    status: { type: 'equals', filter: 'active' },
  };

  // Iterate over each column and apply the filter model
  for (const [colKey, filterModel] of Object.entries(initialFilters)) {
    const filterInstance = await 
    gridParams.api.getColumnFilterInstance(colKey);
    if (filterInstance) {
      filterInstance.setModel(filterModel);
    }
  }

  // Notify AG Grid that filter model has changed
  gridParams.api.onFilterChanged();

  // Optionally: set your data source here
  const dataSource: IDatasource = {
    rowCount: null, // can be set dynamically
    getRows: async (params) => {
      // Fetch and return rows here
    },
  };

  gridParams.api.setGridOption('datasource', dataSource);
};
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing a similar issue
  • Low reputation (0.5):
Posted by: MĂŒmin ZEHİR

79589169

Date: 2025-04-23 17:32:56
Score: 2
Natty:
Report link

the build command in vercel was overwritten with turbo, I switched of the override and it worked

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

79589165

Date: 2025-04-23 17:29:55
Score: 1
Natty:
Report link

There can be lot of reasons for this error to pop up while running the code in an IDE, In intellij if the active profile is not mentioned and there are internal dependencies and no default profile in application.yml. The application will fail to start right after the banner.

Need to make sure this small thing is not missed, profiles.active: or a default profile is always mentioned.

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

79589156

Date: 2025-04-23 17:27:55
Score: 1
Natty:
Report link

I believe I've figured out the solution. It feels a bit convoluted but it works.

I added a ref to the <Container> for the component and then use that ref to create focusableElements to find all the buttons. When this ref is finally initialized, there are only two buttons: delete and cancel. I create a variable cancelButton to keep this info. When the function for closing the modal is called, it then triggers cancelButton.focus() which will shift focus to the button when the modal gets closed.

/*...*/

    const imagesRef = useRef(null);

    const imagesElements = imagesRef.current;
    const focusableElements = imagesElements?.querySelectorAll("button");
    const cancelButton = focusableElements && focusableElements[focusableElements.length - 1];

/*...*/

    const handleFocus = () => {
        setShowDeleteModal(false);
        setSelectedImages([]);
        cancelButton.focus();
    };

    return (
        <Container ref={imagesRef}>
            ...
            /*Inside showDeleteModal */
        
            <Button secondary onKeyDown={handleFocus} onClick={handleFocus}>
                No
            </Button>
            ...
        </Container>
    )

Found the solution from this article here: https://medium.com/cstech/achieving-focus-trapping-in-a-react-modal-component-3f28f596f35b

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): medium.com
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: npfist

79589146

Date: 2025-04-23 17:19:53
Score: 0.5
Natty:
Report link

At the component level <Trans ...>, you can just add shouldUnescape.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Neil Gaetano Lindberg

79589142

Date: 2025-04-23 17:16:52
Score: 0.5
Natty:
Report link

I know this doesn't really help you now. But the Blazor team have seen their shortfalls on specifically this. They are currently adding in [SupplyParameterFromPersistentComponentState] (name to be refactored when they decide on a more catchy phrase), on components and in the middle of adding something for services, see here: https://github.com/dotnet/aspnetcore/pull/60634

You may be able to achieve some janky work-around with PersistentComponentState (see here for example https://learn.microsoft.com/en-us/aspnet/core/blazor/components/prerender?view=aspnetcore-9.0)

I've done this by creating a new Layout Base Class.

i.e.


public class BaseLayoutComponent : LayoutComponentBase{

    [Inject] public PersistentComponentState ApplicationState

}

Then in your MainLayout inherit the custom base class instead of the standard and consume it that way

@inherits BaseLayoutComponent

Hope this helps you a bit.

If you think of anything else let me know because I'm also trying janky solutions until .Net10 rolls out with the fix.

Here's a video that might also help
https://youtu.be/3Yc7Bbx1mFM

Basically every storage solution for a blazor projects means running js interop (session, local, cookie, indexdb) but obviously when we're doing things correctly and getting data within OnInizializedAsync methods if we want to stop any UI janky behaviour and you want to persist any data it has to be within OnAfterRenderAsync so that the runtime is available causing all kinds of crap and going against the grain of Blazor razor component life-cycles.

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Whitelisted phrase (-1): Hope this helps
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @inherits
  • Low reputation (1):
Posted by: HarrisonWD

79589139

Date: 2025-04-23 17:14:51
Score: 1
Natty:
Report link

You need to accept usage agreement of the model you want to use on HuggingFace or maybe your token is wrong.

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

79589137

Date: 2025-04-23 17:13:50
Score: 4
Natty: 4.5
Report link

https://www.oracle.com/java/technologies/javase-jdk9-doc-downloads.html

This is a worked link to jdk9 docs download.

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

79589131

Date: 2025-04-23 17:08:49
Score: 4
Natty:
Report link

I just want to thank for quick resolution. Worked perfectly.

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

79589129

Date: 2025-04-23 17:07:48
Score: 4.5
Natty: 6.5
Report link

I has same error. In my case, i need specified boundary parameter. See https://www.baeldung.com/spring-avoid-no-multipart-boundary-was-found.

Reasons:
  • Blacklisted phrase (0.5): i need
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Juliano José da Silva

79589115

Date: 2025-04-23 17:02:47
Score: 1.5
Natty:
Report link

If your paths have a limit to how nested they are, it might be a good idea to unroll them into separate columns, with the higher paths as SYMBOLs (if there aren’t too many distinct values). Filtering on SYMBOL columns is much faster than on strings.

Do you have an estimate of the cardinality i.e. how many entries you expect to be in those columns?

If each are less than perhaps 100,000, symbols could be a good option.

Filtering on SYMBOL columns (or numbers) can be JITed i.e. compiled to native code. Filtering against VARCHAR will use Java-side string comparisons.

You can also try searching using LIKE on the single path column, and see how fast it is. Maybe it performs better than a substring.

It is better to use VARCHAR rather than STRING if you are not using SYMBOL. This will half the amount of storage you need if your text is mostly ASCII.

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have an
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Javier Ramirez

79589112

Date: 2025-04-23 17:00:46
Score: 1.5
Natty:
Report link

I’ve been researching this topic for almost a week, but unfortunately, I wasn’t able to find a satisfying solution. Therefore, I had to come up with my own workaround.

Due to the complexity of my project, I can't share the entire code structure related to this topic, as it would be too confusing and hard to follow. However, I’d like to share the core idea of the solution I developed, which might help others facing a similar issue.

const onGridReady = async (gridParams: GridReadyEvent) => {
  // Define your initial filters as key-value pairs
  const initialFilters: Record<string, { type: string; filter: any }> = {
    name: { type: 'equals', filter: 'Michael 222' },
    status: { type: 'equals', filter: 'active' },
  };

  // Iterate over each column and apply the filter model
  for (const [colKey, filterModel] of Object.entries(initialFilters)) {
    const filterInstance = await 
    gridParams.api.getColumnFilterInstance(colKey);
    if (filterInstance) {
      filterInstance.setModel(filterModel);
    }
  }

  // Notify AG Grid that filter model has changed
  gridParams.api.onFilterChanged();

  // Optionally: set your data source here
  const dataSource: IDatasource = {
    rowCount: null, // can be set dynamically
    getRows: async (params) => {
      // Fetch and return rows here
    },
  };

  gridParams.api.setGridOption('datasource', dataSource);
};
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing a similar issue
  • Low reputation (0.5):
Posted by: MĂŒmin ZEHİR

79589111

Date: 2025-04-23 16:59:46
Score: 2.5
Natty:
Report link

That screen expects data to be passed to it. That data must be sent as part of the message in this case, inside flow_action_payload. See https://developers.facebook.com/docs/whatsapp/flows/guides/sendingaflow

It'll be something like:

...
flow_action_payload: {
 screen: 'ADDRESS_SELECTION',
 data: { countries: <the content of the __example__ field for countries>, ... }
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30353794

79589110

Date: 2025-04-23 16:59:46
Score: 5
Natty: 4
Report link

Android12updateproblems solved

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ronaldo Ronaldo

79589102

Date: 2025-04-23 16:54:45
Score: 1.5
Natty:
Report link

Just ran into this myself and the fix was just adding #!/bin/bash to the top of my script, no sophisticated jq needed at all (though I was glad to learn about it!)

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

79589078

Date: 2025-04-23 16:34:39
Score: 3
Natty:
Report link

what about arr[::2] to get the even indexed items and arr[1::2] for the odds

arr[start(included):end(excluded):step_size]

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): what
  • Low reputation (1):
Posted by: David Muñiz Wessels

79589077

Date: 2025-04-23 16:34:39
Score: 1
Natty:
Report link

This was copied from the internet archive

https://web.archive.org/web/20160821100733/https://www.codeproject.com/KB/vista-security/SubvertingVistaUAC.aspx

Introduction

The purpose of this article is to illustrate how to correctly launch an interactive process from a service in Windows Vista, and also to demonstrate how to launch that process with full Administrator privileges. An interactive process is one that is capable of displaying a UI on the desktop.

The article shows how to create a service called LoaderService that serves as an application loader and whose purpose is to launch, at boot time, a command prompt that runs as an Administrator. The article closes with a section discussing how the code could be extended for more practical purposes.

Sessions in Vista

Let’s start from the beginning
 you have just booted up your computer and are about to log on. When you log on, the system assigns you a unique Session ID. In Windows Vista, the first User to log on to the computer is assigned a Session ID of 1 by the OS. The next User to log on will be assigned a Session ID of 2. And so on and so forth. You can view the Session ID assigned to each logged on User from the Users tab in Task Manager:

Task Manager - Users

Notice, I indicated that the User named Pero is in control of the Console. In this case, I mean the Physical Console. The Physical Console consists of the monitor, keyboard, and mouse. Since Pero is in control of the keyboard, monitor, and mouse, he is considered the currently active User. However, since Users can be impersonated, it is more appropriate to reference the currently active Session rather than the currently active User. The Win32 API contains a function called WTSGetActiveConsoleSessionId() which returns the Session ID of the User currently in control of the Physical Console. If we were to call that method right now, it would return a value of 1 because that is the Session ID of the User Pero.

There exists a special Session in Vista that has a Session ID of 0. This is commonly referenced as Session0. All Windows Services run within Session0, and Session0 is non-interactive. Non-interactive means that UI applications cannot be launched; however, there is a way around this by activating the Interactive Services Detection Service (ISDS). This not a very elegant solution, and will not be covered in this article. There is a quick 5 minute Channel 9 video that demonstrates the ISDS for those interested. This article assumes the absence of the ISDS. Now, because Session0 is not a User Session, it does not have access to the video driver, and therefore any attempts to render graphics will fail. Session0 isolation is a security feature added in Vista to isolate system processes and services from potentially malicious user applications.

This is where things get interesting. The reason for this isolation is because the System account (or System User) has elevated privileges that allow it to run unhindered by the restrictions of Vista UAC. If everything were running under the System account, Vista UAC might as well be turned off.

Now, I know what you’re thinking, “If Windows Services run in Session0, and Session0 cannot start processes that have a UI, then how can our loader service spawn a new process that not only has a UI, but that also runs within the currently logged on User’s Session?” Take a look at this screenshot from the Processes tab in Task Manager, and pay particular attention to the winlogon.exe processes:

Task Manager - Processes

Notice there are two winlogon.exe processes, and the User who owns both of those processes is the System User. The System User is a highly privileged User unhindered by the Vista UAC that we were talking about earlier. Also, notice the Session IDs that indicate within which Sessions the winlogon.exe processes are running. If you remember from earlier, Session ID 1 refers to the User Pero’s Session, and Session ID 2 refers to the User Sienna’s Session. This means that there is a winlogon.exe process running under the System account within Pero’s Session. It also means that there is a winlogon.exe process running under the System account within Sienna’s Session. This is the appropriate time to mention that any Session with an ID greater than 0 is capable of spawning an interactive process, which is a process capable of displaying a UI.

The solution may not be totally clear yet, but it will be shortly, as now it is time to discuss our strategy!

Our Strategy

First, we are going to create a Windows Service that runs under the System account. This service will be responsible for spawning an interactive process within the currently active User’s Session. This newly created process will display a UI and run with full admin rights. When the first User logs on to the computer, this service will be started and will be running in Session0; however the process that this service spawns will be running on the desktop of the currently logged on User. We will refer to this service as the LoaderService.

Next, the winlogon.exe process is responsible for managing User login and logout procedures. We know that every User who logs on to the computer will have a unique Session ID and a corresponding winlogon.exe process associated with their Session. Now, we mentioned above, the LoaderService runs under the System account. We also confirmed that each winlogon.exe process on the computer runs under the System account. Because the System account is the owner of both the LoaderService and the winlogon.exe processes, our LoaderService can copy the access token (and Session ID) of the winlogon.exe process and then call the Win32 API function CreateProcessAsUser to launch a process into the currently active Session of the logged on User. Since the Session ID located within the access token of the copied winlogon.exe process is greater than 0, we can launch an interactive process using that token.

Now for the fun stuff
 the code!

The Code

The Windows Service is located in a file called LoaderService.cs within the Toolkit project. Below is the code that gets called when the LoaderService is started:

protected override void OnStart(string[] args)
{
    // the name of the application to launch
    String applicationName = "cmd.exe";

    // launch the application
    ApplicationLoader.PROCESS_INFORMATION procInfo;
    ApplicationLoader.StartProcessAndBypassUAC(applicationName, out procInfo);
}

The code above calls the StartProcessAndBypassUAC(...) function which will launch a command prompt (with full admin rights) as part of a newly created process. Information about the newly created process will get stored into the variable procInfo.

The code for StartProcessAndBypassUAC(...) is located in the file ApplicationLoader.cs. Let’s dissect that function to examine how a service running in Session0 will load a process into the currently logged on User’s Session. To begin, we will obtain the Session ID of the currently logged on User. This is achieved by making a call to the Win32 API function WTSGetActiveConsoleSessionId().

// obtain the currently active session id; every logged on 
// User in the system has a unique session id
uint dwSessionId = WTSGetActiveConsoleSessionId();

Next, we will obtain the Process ID (PID) of the winlogon.exe process for the currently active Session. Remember, there are two Sessions currently running, and if we copy the access token of the wrong one, we could end up launching our new process on another User’s desktop.

// obtain the process id of the winlogon process that 
// is running within the currently active session
Process[] processes = Process.GetProcessesByName("winlogon");
foreach (Process p in processes)
{
    if ((uint)p.SessionId == dwSessionId)
    {
        winlogonPid = (uint)p.Id;
    }
}

Now that we have obtained the PID of the winlogon.exe process, we can use that information to obtain its process handle. To do so, we make a Win32 API call to OpenProcess(...):

// obtain a handle to the winlogon process
hProcess = OpenProcess(MAXIMUM_ALLOWED, false, winlogonPid);

Having acquired the process handle, we can make a Win32 API call to OpenProcessToken(...) to obtain a handle to the access token of the winlogon.exe process:

// obtain a handle to the access token of the winlogon process
if (!OpenProcessToken(hProcess, TOKEN_DUPLICATE, ref hPToken))
{
    CloseHandle(hProcess);
    return false;
}

With a handle to the access token, we can proceed to call the Win32 API function DuplicateTokenEx(...) which will duplicate the access token:

// Security attibute structure used in DuplicateTokenEx and CreateProcessAsUser
// I would prefer to not have to use a security attribute variable and to just 
// simply pass null and inherit (by default) the security attributes
// of the existing token. However, in C# structures are value types and therefore
// cannot be assigned the null value.
SECURITY_ATTRIBUTES sa = new SECURITY_ATTRIBUTES();
sa.Length = Marshal.SizeOf(sa);

// copy the access token of the winlogon process; 
// the newly created token will be a primary token
if (!DuplicateTokenEx(hPToken, MAXIMUM_ALLOWED, ref sa, 
        (int)SECURITY_IMPERSONATION_LEVEL.SecurityIdentification, 
        (int)TOKEN_TYPE.TokenPrimary, ref hUserTokenDup))
{
    CloseHandle(hProcess);
    CloseHandle(hPToken);
    return false;
}

There are many advantages to duplicating an access token. Most notable in our case is that we have a new copy of a primary access token which also contains within it the associated logon Session of that copied token. If you refer to the Task Manager screenshot above that shows the two winlogon.exe processes, you will notice that the duplicated Session ID will be 1, which is the Session ID of the currently logged on User, Pero. We can now call the Win32 API function CreateProcessAsUser to spawn a new process within the Session of the currently logged on User; in this case, the process will spawn in the Session of the User Pero. To summarize, the code below runs in Session0, but will launch a new process in Session 1:

STARTUPINFO si = new STARTUPINFO();
si.cb = (int)Marshal.SizeOf(si);

// interactive window station parameter; basically this indicates 
// that the process created can display a GUI on the desktop
si.lpDesktop = @"winsta0\default";

// flags that specify the priority and creation method of the process
int dwCreationFlags = NORMAL_PRIORITY_CLASS | CREATE_NEW_CONSOLE;

// create a new process in the current User's logon session
bool result = CreateProcessAsUser(hUserTokenDup,  // client's access token
                                null,             // file to execute
                                applicationName,  // command line
                                ref sa,           // pointer to process SECURITY_ATTRIBUTES
                                ref sa,           // pointer to thread SECURITY_ATTRIBUTES
                                false,            // handles are not inheritable
                                dwCreationFlags,  // creation flags
                                IntPtr.Zero,      // pointer to new environment block 
                                null,             // name of current directory 
                                ref si,           // pointer to STARTUPINFO structure
                                out procInfo      // receives information about new process
                                );

The above code will launch a command prompt that is running as an Administrator under the System account. I’d like to comment on the parameter @"winsta0\default". This is a hard-coded String that Microsoft arbitrarily chose to indicate to the OS that the process we are about to spawn in CreateProcessAsUser should have full access to the interactive windowstation and desktop, which basically means it is allowed to displayed UI elements on the desktop.

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (1): This article
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: HackSlash

79589048

Date: 2025-04-23 16:16:35
Score: 4
Natty:
Report link

Solved, I added the next-env.d.ts file

/// ///

// NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

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

79589041

Date: 2025-04-23 16:11:34
Score: 1
Natty:
Report link

You need to add the quotes around chatbot.

graph_builder.add_node("chatbot", chatbot)
graph_builder.add_node("chat_history",chat_history)
graph_builder.add_node("product_rec_prompt", product_rec_prompt)

graph_builder.add_edge(START, "chatbot") # Made the change here 

graph_builder.add_edge("chat_history", "product_rec_prompt")
graph_builder.add_edge("product_rec_prompt", "chatbot")
graph_builder.add_edge("chatbot", END)
graph = graph_builder.compile()
graph.get_graph().print_ascii()

enter image description here

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

79589039

Date: 2025-04-23 16:10:33
Score: 1
Natty:
Report link

What helped me with formatting is Clang-Format extension. The only setting I have in my config file with regards to C++ formatting is the following:

{
    // ...
    "[cpp]": {
        "editor.defaultFormatter": "xaver.clang-format"
    }
}

By the way, I can see this setting in your configuration file:

"C_Cpp.intelliSenseEngine": "Disabled",

It seems that you might have installed some alternative IntelliSense engine like clangd which also takes responsibility for formatting. I got problems with ignoring my project's .clang-format file right after installing clangd extension and the solution was to install Clang-Format extension alongside its clangd counterpart and to set the former as default (see editor.defaultFormatter property in my config above).

Reasons:
  • Blacklisted phrase (1): regards
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What help
  • Low reputation (0.5):
Posted by: Victor

79589030

Date: 2025-04-23 16:06:31
Score: 7 đŸš©
Natty:
Report link

How can I get the id of the maximum values?

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How can I
  • Low reputation (1):
Posted by: omontes

79589004

Date: 2025-04-23 15:51:27
Score: 1
Natty:
Report link

It looks like there was some sort of JQuery version conflict in my code.

Removing the following line from _Layout.cshtml was able to resolve my issue:

@Scripts.Render("~/bundles/jquery")

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

79589003

Date: 2025-04-23 15:50:27
Score: 1
Natty:
Report link
getComputedStyle(element).getPropertyValue('position') 

will return 'sticky' for a sticky element. It doesn't report whether the element is currently behaving as a static or fixed element but this might be enough to get what you need.

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

79589001

Date: 2025-04-23 15:49:27
Score: 2.5
Natty:
Report link

The android:minHeight that youre giving would go i the CollapsingToolbarLayout and not in the appbarlayout. that would work, one issue im facing with it is when i give a minHeight below 96dp, the appbarlayout becomes greyish which might be the system bg color.

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

79588996

Date: 2025-04-23 15:48:26
Score: 0.5
Natty:
Report link

How can I link a PaymentIntent to its corresponding invoice with the Basil API?

This can be accomplished via the InvoicePayments API by passing payment[payment_intent]=pi_123 (ref) and any InvoicePayment results will indicate the associated invoice ID (ref).

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How can I
  • High reputation (-1):
Posted by: Nolan H

79588993

Date: 2025-04-23 15:45:26
Score: 0.5
Natty:
Report link

I encountered the same problem. I solved it by just making sure that my folder does not have a space, and making sure to be able to open the path to check whether it's correct or not.

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

79588981

Date: 2025-04-23 15:37:24
Score: 3
Natty:
Report link

What ended up solving my problem was to use LimitToPages and avoid paths like '/'.

It seems that if multiple such paths are present, even though only one page actually calls the plugin, it still initiates as if the route applies to ALL PAGES.

So it ends up conflicting and not working (probably throws an error somewhere as well, have yet to find where though). Conflicting, as in, multiple paths that are the same, which '/' is predistined for.

It seems that sometimes the problem is still there even with LimitToPages enabled. This may be inaccurate, but it feels like in some cases only using both LimitToPages and changing the path made a difference.

Heinz Schilling 's answer is still valid to remove the chash, and even caused my links, that were broken ([...]?tx[...]), to at least appear right([..]/detail/[..]), even if they turned out non functional because of the above issues.

Thank you to all that helped!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Tobias

79588975

Date: 2025-04-23 15:35:23
Score: 0.5
Natty:
Report link
  "[typescriptreact]": {
    "editor.defaultFormatter": "vscode.typescript-language-features",
    "editor.formatOnSave": true,
  },
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Alex Yusupov

79588959

Date: 2025-04-23 15:30:21
Score: 1.5
Natty:
Report link

Can confirm that robots.txt blocking access to the resource causes the problem. Unblocking the directory with the image in robots.txt fixed the problem for me.

Also, at first it didn't solve the problem, so after clicking [Scrape Again] dozens of times like a maniac, I thought that maybe Facebook was using a cached copy of robots.txt. So, I ran the url debugger on mydomain.com/robots.txt and then went back and scraped the home page again. The og:image updated immediately.

Reasons:
  • No code block (0.5):
  • Starts with a question (0.5): Can
  • Low reputation (0.5):
Posted by: byron

79588953

Date: 2025-04-23 15:26:20
Score: 4
Natty:
Report link

( Apparently I don't have enough reputation points to post a comment lol, so I'll just post my comment here as an answer. )

@Taras this is incredible! Thank you so much! A note for anyone else coming to use this, apparently the QtWebEngineWidgets module has been moved to a separate package called PyQtWebEngine so you'll need to add that to your pip statement ( pip install PyQt5 requests PyQtWebEngine ). The nice thing is, when it's installed, it's rolled into the main PyQt5 package, so imports like from PyQt5.QtWebEngineWidgets import QWebEngineView can stay exactly the same. Python 3.7.0 No module named 'PyQt5.QtWebEngineWidgets' Thanks again so much!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation points
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Taras
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jones Smith

79588952

Date: 2025-04-23 15:25:19
Score: 1.5
Natty:
Report link

I've experienced this as well. Typically, whenever my application stops abruptly it displays this proc.go, for a few different reasons. If you're not seeing a panic in the call stack then I'm not sure what that reason would be.

You could make a few changes to your launch.json file to troubleshoot:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "server",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "cmd/server/main.go",
            "env": {
                "DEBUG": "true"
            },

            "buildFlags": "-gcflags=all=-N =l" // disables optimizations, which makes debugging smoother and more predictable.
            "dlvFlags": ["--log"] // logs Delve activity in the Debug Console to help you trace what’s going on.

            // "console": "externalTerminal",
            // "args": [">", "${workspaceFolder}/output.txt"]
        }
    ]
}

Also, you can try updating the 'GO' extension in VS code if outdated.

Would you be able to share delve activity logs from the debug console after running it with the above changes if the issue persists?

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

79588944

Date: 2025-04-23 15:21:18
Score: 3
Natty:
Report link

I think you should check out this link:

https://raw.githubusercontent.com/redis/redis/7.0/redis.conf

and look for notify-keyspace-events option. This will allow you to have a script (for example in Python) that listens to given type of events (utilizing the pub-sub layer) and does whatever you need it to do.

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dawidek

79588934

Date: 2025-04-23 15:16:17
Score: 2.5
Natty:
Report link

Just go to maven repository https://mvnrepository.com/search?q=mockito,
select your version the name and version you want (https://mvnrepository.com/artifact/org.mockito/mockito-core/5.14.2)
under the description, right to line starting with Files then click to jar link will automatically download the jar file as shown in the screen shot.
enter image description here

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

79588933

Date: 2025-04-23 15:15:16
Score: 2
Natty:
Report link

Have you tried the suggested:

```plantuml
::include{file=thefolderwithuml/myplantuml.puml}
```

from: https://docs.gitlab.com/administration/integration/plantuml/

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Stefan Vučković

79588924

Date: 2025-04-23 15:09:14
Score: 7.5 đŸš©
Natty:
Report link

i hava the same problemhow can i fix it?

Reasons:
  • Blacklisted phrase (0.5): how can i
  • RegEx Blacklisted phrase (1.5): how can i fix it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: LiuHe

79588922

Date: 2025-04-23 15:08:14
Score: 2
Natty:
Report link

DEV_TARGET_CMD_ERR is probably a hardware fault, mine was also caused by a problem at VDDA. I was using a cheap 32F103 breakout when the onboard regulator got fried and was outputing 5V. I though I had burned the processor because of that, I replaced it but had no luck. Turns out that while removing the burned regulator, I accidentally took out an inductor that connected VDDA to VCC and thus, it too was disconnected. After replacing it with a jumper wire, the processor got back to work.

Reasons:
  • Blacklisted phrase (1): no luck
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jean Henrique

79588902

Date: 2025-04-23 14:59:12
Score: 1
Natty:
Report link

In theory you should be able to do:

return all(d in b for d in a)

As dictionaries can be directly(with in) compared when identical.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Stefan Vučković

79588895

Date: 2025-04-23 14:54:11
Score: 2.5
Natty:
Report link

I tried all the proposals, but none worked, I finally try to rm my repo and git clone. It solved the problem, sorry for the time lost, I should have done that from the begining :/

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

79588893

Date: 2025-04-23 14:53:10
Score: 2
Natty:
Report link

This is because PlantUML isnt supported by default, it needs to be enabled:
https://docs.gitlab.com/administration/integration/plantuml/

If you're unable to do this because youre not administrator for some reason, consider using Mermaid instead

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Stefan Vučković

79588883

Date: 2025-04-23 14:49:09
Score: 1
Natty:
Report link

this will fix problem, add in run_periphery.sh before "periphery scan"

# Some variables set by Xcode breaks build.
# We want to run periphery in fresh env without variables set by Xcode.
# It can be achieved by using
#   env -i "$ROOT_DIR"/Tools/periphery/run_periphery.sh
# OR
#   by unsetting explicitly the variables that breaks the build
unset SWIFT_INSTALL_MODULE_FOR_DEPLOYMENT
unset TEST_FRAMEWORK_SEARCH_PATHS
unset TEST_LIBRARY_SEARCH_PATHS
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alexander Germek

79588872

Date: 2025-04-23 14:46:09
Score: 0.5
Natty:
Report link

found the bug.

In my index.jsp in my ROOT context, I added
Session Timeout=<%= session.getMaxInactiveInterval() %>

when accessing the root context using https://<host>/ and it gets redirected to index.jsp it shows Session Timeout=120

when accessing the root context using https://<host>/index.jsp it shows Session Timeout=7200

So when accessing / the timeout is not being set?

I added a workaround in my index,jsp

<% 
int timeout=session.getMaxInactiveInterval();
%>

<script>
   console.log("Session Timeout=<%= timeout %>");
<%
if (timeout < 1000) {
   session.setMaxInactiveInterval(2*60*60); //2hrs
   timeout=session.getMaxInactiveInterval();
%>
   console.log("Session Timeout=<%= timeout %>");
<%
}
%>
</script>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: zackhalil

79588860

Date: 2025-04-23 14:40:07
Score: 2.5
Natty:
Report link

Use separator

Image on one side

Separator in the middle

Make sure the separator can grow

Then label on the other side

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

79588858

Date: 2025-04-23 14:38:06
Score: 2
Natty:
Report link

As mentioned by a different comment, this was initially designed specifically for UDP (as mentioned in paragraph 3 of the introduction), they later did the extra work to make this work with TCP, as seen in: RFC6544

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Stefan Vučković

79588852

Date: 2025-04-23 14:36:05
Score: 3.5
Natty:
Report link

Can be caused by Resharper extension debugging/profiling settings. Try disabling it and see if it goes away

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can
  • Low reputation (1):
Posted by: Peacemaker

79588849

Date: 2025-04-23 14:34:05
Score: 1.5
Natty:
Report link

I faced this same problem a while ago, and it boils down to the following:

The error occurs because the channel_name and user_id variables are being passed incorrectly in the fileNamePrefix field due to a special character.

In my case, when I tried to set the channel_name variable similar to what you were doing, I did it as follows: "emergency_channel_123", which generated the error.

The solution was to set it as follows: EmergencyChannel123

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Juan Rodriguez Velasquez

79588844

Date: 2025-04-23 14:31:04
Score: 1
Natty:
Report link

I think the best way to handle these kinds of issues is by using the React Query library (now often called TanStack Query). It's a great tool for managing delays caused by database updates.

It helps manage stale data, background refetching, caching, and loading states—which makes it excellent for handling perceived delays between the UI and actual backend/database updates.

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

79588843

Date: 2025-04-23 14:31:03
Score: 8.5 đŸš©
Natty: 5
Report link

I'm trying to build something very similar. Did you ever get this solved. Curious how you did it. Any updates?

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever get this solved
  • RegEx Blacklisted phrase (0.5): Any updates
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joshua Soto

79588836

Date: 2025-04-23 14:27:02
Score: 2.5
Natty:
Report link

Hrhjjw8jtnnfddjjwoodb duu2jngi rurhfiithfii2hhhhtj10rhcnadjf7732hcyy2kowbc6vyujeoo1iuurht 10 aap aap dj dhud du message kar do fir Na mangna kam hai to main â‚č20 kar rahe ho na ho gaya hai recharge kar do fir

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

79588833

Date: 2025-04-23 14:24:01
Score: 3
Natty:
Report link

In the file "..android\app\src\main\AndroidManifest.xml " I changed the value for the "android:label" attribute from my native language to English. It helped me.

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

79588830

Date: 2025-04-23 14:22:00
Score: 5.5
Natty:
Report link

I have same error here.

I'm passing Body as expression from previous get activity.

Any hint to fix the error will be welcome. Thank you!

@activity('get_prdkv_secret').output.value
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (1): I have same error
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have same error
  • Low reputation (1):
Posted by: Caio Bauab

79588827

Date: 2025-04-23 14:19:59
Score: 1
Natty:
Report link

That option no longer exists.

Jetbrains has removed the modal commit window. If you want to enable modal commit workflow (the old way) then you need to install "Git Modal Commit Interface" plugin and then enable it in "Advanced Settings > Use modal commit interface"

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

79588817

Date: 2025-04-23 14:17:59
Score: 0.5
Natty:
Report link

As said at cppreference

After constructing and checking the sentry object, which may skip leading whitespace, first clears str with str.erase(), then reads characters from is and appends them to str as if by str.append(1, c), until one of the following conditions becomes true:

  • N characters are read, where N is is.width() if is.width() > 0, otherwise N is str.max_size(),
  • the end-of-file condition occurs in the stream is, or
  • std::isspace(c, is.getloc()) is true for the next character c in is (this whitespace character remains in the input stream).

Reading of an input stream when using operator >> interrupts on a space character, not a newline. This means that in fact, when reading "hi _ ", your cycle passes twice for "hi" and "_", so the second time condition evaluates to true.

If you want to read the whole line, consider using std::getline.

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

79588814

Date: 2025-04-23 14:16:58
Score: 0.5
Natty:
Report link

if it helps i went with

git clone https://github.com/ampl/gsl.git

cd gsl

mkdir -p build/emscripten && cd build/emscripten

emcmake cmake ../.. -DBUILDLIBS="cblas;const;err;ieee-utils;monte;multimin;permutation;rstat;spmatrix;utils;blas;cdf;deriv;fft;integration;movstat;multiroots;poly;siman;statistics;vector;block;cheb;dht;filter;interpolation;multifit;multiset;qrng;sort;sum;wavelet;bspline;diff;fit;linalg;multifit_nlinear;ntuple;randist;spblas;bst;combination;gsl;matrix;multilarge;ode-initval;rng;specfunc;sys;complex;eigen;histogram;min;multilarge_nlinear;ode-initval2;roots;splinalg" \ 
    -DNO_AMPL_BINDINGS=1 \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_C_FLAGS="-O2 -s USE_PTHREADS=0" \
    -DCMAKE_EXE_LINKER_FLAGS="-s ALLOW_MEMORY_GROWTH=1" \
    -DCMAKE_INSTALL_PREFIX=.

emmake make
emmake make install
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: David Smith

79588801

Date: 2025-04-23 14:08:56
Score: 1
Natty:
Report link
$ qdbus-qt6 org.kde.KWin /Scripting unloadScript "<script-id>"  
$ qdbus-qt6 org.kde.KWin /Scripting start

where <script-id> is the name of the plugin directory (and the value of Id field from the metadata.json file of the plugin).

See How to apply KDE Plasma KWin script change without restarting KWin?

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Piotr Dobrogost

79588796

Date: 2025-04-23 14:07:56
Score: 2.5
Natty:
Report link

It's normal.
You don't insert a variable but a string.
For insert a variable in a string there are several ways.

My favorite is this :

varToInsert = 131531
String = f"My number is {varToInsert}"

With your code :

def mail(hW):

 mail_body = f"""
 Hey,
 {hW} ## <I want Hello World to be here>
Regards,\nJohn Doe

"""
Reasons:
  • Blacklisted phrase (1): Regards
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vosco Yagura

79588795

Date: 2025-04-23 14:07:56
Score: 1
Natty:
Report link

I was using e which in this case was a commonEventObject. Using that i could get the EventId:

var eventId = e.calendar.id;
var calendar = CalendarApp.getCalendarById(e.calendar.organizer.email);
var event = calendar.getEventById(eventId);

And event has everything. Example: event.getStartTime(), event.getTitle() and so on...

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

79588793

Date: 2025-04-23 14:05:55
Score: 2.5
Natty:
Report link

Hello this is CASSANDRA lee " the end user from the start" the one who signed no contract, the one who knew nothing about this org being formed, thought of or even talked about, the one who ID WAS stolen and used to format this org, the one going for tax evasion of this org if not corrected, the one used as a CEO over thousands of companies/the umbrella practical joke belonging to PHP.org, the one they tried to kill 5 times already and still moving forward with it, the one who is computer eliderate , not slow or disabled , just don't have computer skills at all, the one who wouldn't or couldnt find the work even if I tried, do to this org scheme, and scams and trifling relation ship with my ex and all the girls and some of the boys he is sleeping with or have slept with /NASTY// PURE NASTY// this is the one if you read the information above , now understand the way this scam is ran, and why the success parts of tbe internet was snatched down and nevet seen again, the one they used for them self to become elected in and on the Internet as presidents, we will see what crime this pertains to, the one who went to Westcare for 4 months and so riety, and this same org who preaches clean air, and carbon neutrality is the same org, for light of thier scam, voted for dyan carlos /DONALD TRUMP PRESIDENT TODAY IN THIS INTERNET// APON RELEASE from westcare, the next day he came faulse pretences , and puts benzopine in my soda, the v4, and v2 and others set me up to be rearrested, to protect a -s, i didnt even know , so tbey illegally arsenal which imigration will hear about

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Cassandra lee

79588789

Date: 2025-04-23 14:04:54
Score: 7 đŸš©
Natty: 5
Report link

hello can someone help me how to add opendope add in to my microsoft word it is not showing in my ribbon

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can someone help me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Chaymae Elhasnaoui

79588788

Date: 2025-04-23 14:04:54
Score: 2.5
Natty:
Report link

The design is absolutely disgusting. It’s the worst user experience I’ve ever had... and more, it seems update the menu every xx days.. makes me want to throw my laptop out the window...

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

79588787

Date: 2025-04-23 14:03:54
Score: 0.5
Natty:
Report link

Late update, but this format does work. As far as I can tell, the 'projection.date.partition.format' property just needed all single quotes rather than the doubles:

PARTITIONED BY ( 
  `partition_date` string)
ROW FORMAT DELIMITED 
  FIELDS TERMINATED BY ',' 
STORED AS INPUTFORMAT 
  'org.apache.hadoop.mapred.TextInputFormat' 
OUTPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
  's3://prefix'
TBLPROPERTIES (
  'classification'='csv', 
  'has_encrypted_data'='true', 
  'projection.enabled'='true', 
  'projection.partition_date.format'='\'year=\'yyyy/\'month=\'MM/\'day=\'dd', 
  'projection.partition_date.interval'='1', 
  'projection.partition_date.interval.unit'='DAYS', 
  'projection.partition_date.range'='NOW-3YEARS,NOW', 
  'projection.partition_date.type'='date', 
  'skip.header.line.count'='1', 
  'storage.location.template'='s3://prefix/${partition_date}', 
  'transient_lastDdlTime'='1734535763')
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Josh Knize

79588786

Date: 2025-04-23 14:02:53
Score: 2
Natty:
Report link

The missing part seems to be the show: conf or show: customEq in the main document to "activate" the show and set rules.

I've tried your code and could make it work, so to me, it is only a question of how you import and declare your code in the two typ files.

//template.typ
#let conf(body) = {
  // set and show rules
  body
}
//main.typ
#import "template.typ":*

#show: conf

$ x + y $ <test>

If you want some ideas on how to reduce your code to something simpler, depending on what you need, you could use: (credit to Typst forum post)

//template.typ
#let customEq(body) = [
  #show math.equation: it => {
    if it.numbering == none and it.has("label") {
      math.equation(it.body, numbering: "(1)", block: true)
    } else { it }
  }
  #body
]

//main.typ
#import "template.typ": *

#show: customEq

$ x + y $
$ a + b $ <xyz>
$ c + d $ <abc>

Also, have you had a look at the Typst package equate?

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

79588783

Date: 2025-04-23 14:01:53
Score: 1.5
Natty:
Report link

if you add node [fontsize=8], you will get smaller labels.
enter image description here

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

79588780

Date: 2025-04-23 13:59:52
Score: 0.5
Natty:
Report link

Two main potential culprits here:

1. Dynamic Javascript
Lots of sites will dynamically load content in with javascript after the HTML, but beautifulsoup only gets the inital HTML grab.
The best solution for this is to use selenium instead

2. Getting blocked for being a scraper.
Many sites will see non-realistic looking users (in this case your scraper) and deliberately not give you content.
You should improve your header with more information to not get detected so quickly as a scraper, as your header is pretty basic

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Stefan Vučković

79588779

Date: 2025-04-23 13:59:52
Score: 1
Natty:
Report link

Per this Github issue the problem seems to be the default accept encoding header: https://github.com/psf/requests/issues/6271

This issue provides a solution: Python requests library added an additional header "Accept-Encoding: identity"

Reasons:
  • Whitelisted phrase (-2): solution:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: hendiatris

79588778

Date: 2025-04-23 13:58:52
Score: 1
Natty:
Report link

Most likely the website is using a JavaScript framework to dynamically render the content in the browser. The initial server response will look empty since the content is only fetched and put into the website in the browser.

You could use something like Selenium to render the website before scraping, but better would be to use an API if the website has one. Not all websites appreciate being scraped.

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

79588770

Date: 2025-04-23 13:55:51
Score: 1.5
Natty:
Report link

✅ How to fix it

Option 1: Use min-width: 0 on the children This tells the browser not to allow the flex items to grow beyond what the flex container can actually hold:

...

Option 2: Avoid fractional widths Set the container width to a whole number, like 100px or 101px.

Option 3: Use box-sizing: border-box (less effective here but useful when padding/margins come into play)

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

79588754

Date: 2025-04-23 13:50:49
Score: 4
Natty: 4
Report link

Try coverting to as.numeric instead of as.factor

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

79588748

Date: 2025-04-23 13:48:49
Score: 0.5
Natty:
Report link

Why do you have to use messaging?

Let's say that config.js is the file containing:

const config = {
     example: "example"
}

I think that you can write the manifest file such as:

{
    "manifest_version": 3,
    "background": {
         "service_worker": "background.js"
    },
    "web_accessible_resources": {
        {
            "resources: ["config.js"],
            "matches": ["<all_urls>"]
        }
    },
    "content_scripts": [
        {
            "matches": ["<all_urls>"],
            "js": ["config.js", "content.js"]
        }
    ]
}

Then you should be able to access it the content.js simply as:

config.example
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why do you have to use me
  • Low reputation (0.5):
Posted by: AidH

79588745

Date: 2025-04-23 13:46:48
Score: 2
Natty:
Report link

Does increasing the nudge_y realize the desired result?

   geom_text_repel(
     aes(label = paste0(sprintf("%.1f", Note), " min")),
     #    aes(label = Note), 
     size = 3,
     nudge_x = 0.25,
     nudge_y = 1, # increase nudge_Y
     box.padding = 0.2,
     point.padding = 0.2,
     max.overlaps = 10,
     na.rm = TRUE,
     segment.color = "gray50",
     segment.curvature = 0.2,       # SEGMENT CURVE
     segment.ncp = 6,               # NUMBER OF CONTROL POINTS
     
     
     segment.angle = 45,           # CURVE ANGLE
     color = "gray50"
   ) 

Sample Plot

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Susan Switzer

79588735

Date: 2025-04-23 13:39:46
Score: 2
Natty:
Report link

Hosting etherpad on port 0.0.0.0:9001 to then reverse proxied over a subdirectory path like app.domain.com/etherpad has proven too tricky in Apache while it was so easy to accomplish in NGINX per their documentation here: https://github.com/ether/etherpad-lite/wiki/How-to-put-Etherpad-Lite-behind-a-reverse-Proxy#from-subdirectory-url

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Etienne Jacquot

79588734

Date: 2025-04-23 13:39:46
Score: 2
Natty:
Report link

My mistake was that I pointed python3 away from the initial installation link target /usr/bin/python3.12 to another Python version. Reverting it back to /usr/bin/python3.12 (the default in my Ubuntu 24 installation) resolved the issue. Installing python3-apt did not work.

Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Moritz Makowski

79588726

Date: 2025-04-23 13:34:45
Score: 1
Natty:
Report link

Slack does actually accept http, just not when you use the web browser to configure it. If you use the API (apps.manifest.create or apps.manifest.update), you can enter a plain http URL.

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

79588721

Date: 2025-04-23 13:30:44
Score: 0.5
Natty:
Report link

It is possible thanks to the argument tablefoot.value in style.tex:

etable(model1, 
       signif.code = c("***"=0.001, "**"=0.01, "*"=0.05, "+"=0.1),
       style.tex = style.tex(var.title="", fixef.title="",
                             fixef.suffix=" FE", stats.title="", 
                             tablefoot.value = "My standard errors"),
       tex = TRUE) 
#> \begingroup
#> \centering
#> \begin{tabular}{lc}
#>    \tabularnewline \midrule \midrule
#>    Dependent Variable: & mpg\\  
#>    Model:              & (1)\\  
#>    hp                  & -0.0261\\   
#>                        & (0.0136)\\   
#>    drat                & 0.8521\\   
#>                        & (0.7127)\\   
#>    wt                  & -2.980\\   
#>                        & (1.079)\\   
#>    cyl FE              & Yes\\  
#>    Observations        & 32\\  
#>    R$^2$               & 0.85938\\  
#>    Within R$^2$        & 0.47441\\  
#>    \midrule \midrule
#>    \multicolumn{2}{l}{\emph{ My standard errors }}\\
#> \end{tabular}
#> \par\endgroup

This isn't really intuitive and shouldn't be in style.tex given that these kind of notes vary for each export.

Maybe the easiest would be to use threeparttable notes? See: https://lrberge.github.io/fixest/articles/etable_new_features.html#support-for-threeparttable-notes-1

etable(model1, 
       signif.code = c("***"=0.001, "**"=0.01, "*"=0.05, "+"=0.1),
       style.tex = style.tex(var.title="", fixef.title="",
                             fixef.suffix=" FE", stats.title="", 
                             tablefoot = FALSE,
                             tpt = TRUE),
       tex = TRUE, notes = "My standard errors") 
#> \begingroup
#> \centering
#> \begin{threeparttable}[b]
#>    \begin{tabular}{lc}
#>       \tabularnewline \midrule \midrule
#>       Dependent Variable: & mpg\\  
#>       Model:              & (1)\\  
#>       hp                  & -0.0261\\   
#>                           & (0.0136)\\   
#>       drat                & 0.8521\\   
#>                           & (0.7127)\\   
#>       wt                  & -2.980\\   
#>                           & (1.079)\\   
#>       cyl FE              & Yes\\  
#>       Observations        & 32\\  
#>       R$^2$               & 0.85938\\  
#>       Within R$^2$        & 0.47441\\  
#>       \midrule \midrule & \tabularnewline
#>    \end{tabular}
#>    
#>    \begin{tablenotes}
#>      \item My standard errors
#>    \end{tablenotes}
#> \end{threeparttable}
#> \par\endgroup

These options can then be set only once with setFixest_etable:

setFixest_etable(style.tex = style.tex(var.title = "", fixef.title = "",
                                       fixef.suffix = " FE", stats.title = "", 
                                       tablefoot = FALSE, tpt = TRUE))
etable(model1, notes = "My standard errors", tex = TRUE)
#> \begingroup
#> \centering
#> \begin{threeparttable}[b]
#>    \begin{tabular}{lc}
#>       \tabularnewline \midrule \midrule
#>       Dependent Variable: & mpg\\  
#>       Model:              & (1)\\  
#>       hp                  & -0.0261\\   
#>                           & (0.0136)\\   
#>       drat                & 0.8521\\   
#>                           & (0.7127)\\   
#>       wt                  & -2.980\\   
#>                           & (1.079)\\   
#>       cyl FE              & Yes\\  
#>       Observations        & 32\\  
#>       R$^2$               & 0.85938\\  
#>       Within R$^2$        & 0.47441\\  
#>       \midrule \midrule & \tabularnewline
#>    \end{tabular}
#>    
#>    \begin{tablenotes}
#>       \item My standard errors
#>    \end{tablenotes}
#> \end{threeparttable}
#> \par\endgroup

See another example here: https://lrberge.github.io/fixest/articles/exporting_tables.html#setting-etable-default-values-latex-edition

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: Laurent Bergé

79588686

Date: 2025-04-23 13:07:39
Score: 1.5
Natty:
Report link

Please comment out the NavMenu component within the MainLayout.razor file.
Impact:
This will effectively remove the sidebar from the layout.

After this you can delete NavMenu.razor file.

Hide Side Bar

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

79588664

Date: 2025-04-23 12:54:35
Score: 2.5
Natty:
Report link

Just to add another cause for this error: the enable exec command flag was set to true on my service, but not enabled on the container.

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