79757773

Date: 2025-09-06 20:27:28
Score: 2
Natty:
Report link

Have you tried creating a python package of the script? I believe at minimum you would require an empty "_init_" file and toml file. After creating the package, you should be able to run your script from any directory.

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jason Noumeh

79757771

Date: 2025-09-06 20:25:27
Score: 1.5
Natty:
Report link

Tailwind’s responsive lessons (sm:, lg: and so forth.) are based totally on viewport width, not the width of a figure field. So even in case u set w-[370px] on a div the browser viewport is still huge, which means that sm:grid-cols-2 and lg:grid-cols-three hold to apply. That’s why u see grid-cols-3 on computing device-Tailwind is asking on the browser length, not ur simulated container length. If u want to truly simulate devices inside a element, u’ll need to either: Use browser DevTools responsive mode (max straightforward), Wrap the preview in an <iframe> and manipulate its width, or Enable Tailwind field queries (v3.2 ) so patterns respond to the field size rather than the viewport.

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

79757768

Date: 2025-09-06 20:11:24
Score: 1.5
Natty:
Report link

They added an easy copy button to the channels setting modal. Just go to the channel, then just click on the channels name at the top. Make sure you are on the about tab inside that modal and then at the bottom it says Channel ID: xxx and there is also a quick copy button.

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

79757765

Date: 2025-09-06 20:01:21
Score: 0.5
Natty:
Report link

Answer to your question:

The main issue isn’t Tailwind itself, it’s that responsive logic (`sm:/md:/lg:`) is hard-coded in every component. That couples breakpoints directly to JSX and makes global updates painful. The scalable fix is to introduce a thin abstraction layer:

  1. Layout primitives (`Grid`, `Stack`, `Container`) → take props like cols/gap and generate the responsive classes.

  2. Variants (`tailwind-variants`/`cva`) → define reusable styles and states (tone, density, padding) instead of repeating class strings.

  3. Shared Tailwind preset → centralize screens, colors, spacing; change them once, all apps update.

  4. Container queries → when layout depends on parent width instead of global viewport.

  5. Design tokens in CSS variables → theming and density modes without JSX refactors.

This way you keep Tailwind’s power but gain central control, consistency, and scalability.

Additional improvements worth adding:

- **DX & consistency:** eslint-plugin-tailwindcss, Prettier Tailwind plugin, `twMerge` + `clsx` for programmatic classes.

- **Theming:** tokens in `:root` and `[data-theme]`, dark mode via attributes, plan RTL support.

- **Primitives API:** keep them small and predictable (Grid: cols/gap; Stack: direction/gap).

- **Variants system:** use semantic prop names (`tone`, `density`) not raw class names.

- **Accessibility:** focus-visible styles, respect prefers-reduced-motion.

- **Performance:** safelist minimal, audit arbitrary values, tree-shake icons.

- **Testing:** Storybook + viewport addon, visual regression tests for breakpoints/themes.

- **Docs:** usage recipes + “do/don’t” examples; not encyclopedias.

- **Migration plan:** 1) add preset & primitives, 2) migrate worst offenders, 3) enforce lint rules to block new raw utility soups.

- **Monorepo ops:** publish `@org/tw-preset` + `@org/ui`; version them and document breaking changes.

- **Ergonomics:** ship default responsive presets (e.g. `cols={presets.twoUpToThree}`), global density modes.

- **Edge cases:** SSR determinism, iframe/microfrontend theming via CSS vars, always expose `className` escape hatch.

Bottom line:

Stop scattering `sm:/md:/lg:` everywhere. Move them into controlled wrappers, centralize tokens, and let Tailwind do the heavy lifting behind clean APIs. That’s how you keep responsive design flexible and scalable without drowning in utility chains.

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

79757764

Date: 2025-09-06 20:00:21
Score: 1
Natty:
Report link

This is a feature that should be added immediately. Rider is crazy to navigate. I use the solution view to scope to my project. But because I am using Unity, Rider also sees all of my plugins and extension code. Even though I can't edit any of it.

Everyone knows that adding a feature to a feature request for a large company will mostly get it swept under the rug.

It would be incredibly helpful to just have a window on the left pane that displays only the methods of the class I have open. It should also be able to scope to parent/child classes, interfaces and other linked functions. I know of the structure window but its useless also adding in all the variables. It even positions the variables in the order they occur in the file. I get variables, function, variables, functions that I need. In this huge list. What a mess.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: CausticLasagne

79757762

Date: 2025-09-06 19:58:20
Score: 2.5
Natty:
Report link

I’ve used the TYPO3 extension "pictureino" to handle this. It automatically generates responsive images in the frontend while keeping the cropping set in the backend. The nice thing is that it works completely automatically, without any extra configuration.

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

79757758

Date: 2025-09-06 19:44:17
Score: 2
Natty:
Report link

This is absurd but I found that if I launch the app using Xcode (Build & Run), the menu items don't appear. But if I double-click it from the Finder, then it works. This is on macOS 14.

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

79757750

Date: 2025-09-06 19:31:13
Score: 2
Natty:
Report link

It's possible that when the method with the break statement was executing, its thread got interrupted and another one started executing, which increased the measured execution time of the method. In that case, it would be helpful to try executing each method multiple times and then finding the average runtime for each method. An example of this is available at 300x slower program with while.

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

79757732

Date: 2025-09-06 18:30:59
Score: 2
Natty:
Report link

the best solution i found:

router.dismissTo({
    pathname:xxx
    params:{...}
})
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: m_____ilk

79757728

Date: 2025-09-06 18:27:59
Score: 1.5
Natty:
Report link

another option would be to use

router.dismissTo({
    pathname:xxx
    params:{...}
})
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: m_____ilk

79757725

Date: 2025-09-06 18:21:57
Score: 1.5
Natty:
Report link

I'm using intelij -
removing this in
<scope>provided</scope>

<dependency>
    <groupId>org.apache.tomcat.embed</groupId>
    <artifactId>tomcat-embed-jasper</artifactId>
    <scope>provided</scope>
</dependency>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: ganesh

79757722

Date: 2025-09-06 18:20:57
Score: 4.5
Natty: 4
Report link

If you want to know why this behavior is occurring, then maybe it is because you can't declare two variables with the same name in Javascript? Is there a reason why both values need to have the name MY_FAV?

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

79757712

Date: 2025-09-06 18:06:54
Score: 3.5
Natty:
Report link

Is this what you need?

int lastPowNum(int pow) {
    if (pow == 0) return 1;
    if (pow % 4 == 1) return 2;
    if (pow % 4 == 2) return 4;
    if (pow % 4 == 3) return 8;
    if (pow % 4 == 0) return 6;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is this
  • Low reputation (1):
Posted by: titovtima

79757707

Date: 2025-09-06 17:56:50
Score: 4
Natty:
Report link

I have found a simpler way to disable power throttling from this link: https://forums.ni.com/t5/LabVIEW/CPU-load-when-application-is-minimized-is-reduce-50/td-p/4343470/page/2

Run this in an Administrator CMD for your exe:

powercfg /powerthrottling disable /path "C:\Program_Path\program.exe"

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

79757704

Date: 2025-09-06 17:50:49
Score: 1.5
Natty:
Report link

Let's assume that the B-tree has, on average, a entries in each node, and b child nodes per node:

enter image description here

In that case, the number of entries in the tree follows a finite geometric series with a ratio of b and the first term equalling a:

N = a + ab + ab2 + ab3 + ... + abn

= a(1-bn+1)/(1-b)

N(1-b)/a = 1-bn+1

bn+1 = 1 - N(1-b)/a

n = logb(1 - N(1-b)/a) - 1

Source: https://www.geeksforgeeks.org/dsa/b-tree-in-python/

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

79757688

Date: 2025-09-06 17:07:40
Score: 1.5
Natty:
Report link

I ended up with four different formulas and a helper column created on the Data Points tab. Final formulas that work are highlighted in bright pink.

Returns unique courses for the selected student.

={"Last Progress Reported";arrayformula(VSTACK(iferror(sort(UNIQUE(FILTER('Data Points'!F2:F,'Data Points'!A2:A=B2,VSTACK('Data Points'!A2:A)<>"")),1,0)),""))}

Returns most recent data points for the selected student and the unique courses from the previous formula.

={"Overall Grade";arrayformula(ifNA(VLOOKUP($B$4&$G19:G&$B$2,sort('Data Points'!B2:L,11,false),9,false),""))}

={"% Complete (Count)";arrayformula(ifNA(VLOOKUP($B$4&$G19:G&$B$2,sort('Data Points'!B2:L,11,false),7,false),""))}

={"Date";arrayformula(ifNA(VLOOKUP($B$4&$G19:G&$B$2,sort('Data Points'!B2:L,11,false),11,false),""))}

I could not figure out how to combine all the formulas into one like I had orginally started with.

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

79757684

Date: 2025-09-06 16:56:37
Score: 0.5
Natty:
Report link

Note that even though currently multi-objective tuning is not supported in mlr3, there are similar situations where these multi-objective problems appear and pareto optimal solutions that represent the best trade-off between (2 or more) objectives have been proposed (as there are many algorithms on findings "knees" of the (multi-dimensional) pareto front - see a nice review in this article).

In a recent feature selection example, I implemented a very simple 2d knee point identification method, to find the pareto point point with as minimum selected features as possible, while retaining as high performance as possible, see this mlr3 gallery post.

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

79757683

Date: 2025-09-06 16:48:35
Score: 1.5
Natty:
Report link

I just created a venv and performed everything again. It worked. Must have been some library mismatch.

Reasons:
  • Whitelisted phrase (-1): It worked
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Bhabani Shankar

79757660

Date: 2025-09-06 16:14:27
Score: 13.5
Natty: 7.5
Report link

I'm having the same problem. Did you solve this?

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • RegEx Blacklisted phrase (3): Did you solve this
  • RegEx Blacklisted phrase (1.5): solve this?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nick

79757649

Date: 2025-09-06 15:48:21
Score: 0.5
Natty:
Report link

The command you're attempting to run tells your system to delete the com.apple.quarantine attribute from the file, but the error message that you're getting says that it doesn't exist, which means it was already deleted or was never added. Either way, you can safely skip running that command, as the desired outcome has been reached!

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Vinyl Da.i'gyu-Kazotetsu

79757636

Date: 2025-09-06 15:21:16
Score: 2
Natty:
Report link

Since Safari 10, the debugger console has been greatly improved and supports console logs and breakpoints in dedicated workers. Service workers can be debugged by going to Develop > Service Workers.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Vinyl Da.i'gyu-Kazotetsu

79757631

Date: 2025-09-06 15:11:14
Score: 4
Natty: 6.5
Report link

Thanks Psionman! Exactly what I needed to create a wx.Image from a PIL image (I didn't actually need a bitmap). The 1st line of the function might be simplified(?) to wx_image = wx.Image(*pil_image.size)

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rob Cliffe

79757614

Date: 2025-09-06 14:43:07
Score: 2.5
Natty:
Report link

When choosing the best cloud solution for handling JSON requests, the right option depends on your project’s scale, performance needs, and integration requirements. JSON (JavaScript Object Notation) is lightweight, easy to parse, and widely supported, making it the standard for modern APIs.

Popular Cloud Options:

Key Considerations:

For businesses that need tailored IT solutions beyond just cloud hosting, exploring resources like TTS can be helpful. They provide practical insights and services for integrating digital technology into real-world business needs, ensuring your infrastructure supports growth and flexibility.

Pro tip: If you’re just starting, try serverless platforms first—they’re low-cost, easy to manage, and scale automatically with your JSON requests.

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: TTS

79757613

Date: 2025-09-06 14:41:06
Score: 3
Natty:
Report link

The below link lists SQL exception and warning messages that you may encounter when using jConnect.

https://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc39001.0605/html/prjdbc/BABBDCEF.htm

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

79757603

Date: 2025-09-06 14:18:01
Score: 0.5
Natty:
Report link

Right now you already have a good pipeline:

This works well because embeddings + LLM can capture meaning and handle fuzzy matches.

What a Knowledge Graph (KG) / Graph-RAG adds

What it doesn’t solve

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

79757598

Date: 2025-09-06 14:07:59
Score: 1.5
Natty:
Report link

In Python 3, the standard division operator (/) always performs "true division" and returns a float result, even if both operands are integers and the division results in a whole number.

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

79757583

Date: 2025-09-06 13:38:50
Score: 2.5
Natty:
Report link

It is a Firefox issue. Firefox remembers old data entered into the input fields and replaced those after reloading. Currently looking for another solution...

#edit: Seems like adding autocomplete="off" to the form is doing the trick.

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

79757561

Date: 2025-09-06 13:07:41
Score: 1
Natty:
Report link
Your expected value is not possible since the getResponse() method returns an array of arrays (a two-dimensional array), just like @Wicket said.

When you submit a form, the FormResponse object contains all your responses. To get the answer for a specific form item, like a CHECKBOX_GRID, you use the getItemResponses() method on the FormResponse object.

The key to a CHECKBOX_GRID is that the getResponse() method returns an array of arrays, not a simple string or a flat array of strings. Each inner array corresponds to a row in the grid and contains the column titles of the selected options for that specific row.

For example, a grid with rows "X-Small," "Small," and "Medium," and columns "White" and "Navy."

If you selects "Navy" for the "X-Small" row, selects nothing for the "Small" row, and selects both "White" and "Navy" for the "Medium" row, the getResponse() method would return: [['Navy'], [], ['White', 'Navy']] or as string Navy,,White,Navy.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @Wicket
  • Low reputation (0.5):
Posted by: Jats PPG

79757552

Date: 2025-09-06 12:51:38
Score: 2
Natty:
Report link

As a Java developer, I strongly recommend using ID instead of <tableName>_id in case of primary key.

When working with @OneToOne, @ManyToOne or @ManyToMany properties, you need to specify the @JoinColumn annotation with the values ​​of the "name" and "referencedColumnName" properties. When they have the same values, it can be very confusing. Although I understand that by default for a primary key, referencedColumnName is not used, but sometimes it is inconvenient and takes a little more time.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @OneToOne
  • User mentioned (0): @ManyToOne
  • User mentioned (0): @ManyToMany
  • User mentioned (0): @JoinColumn
  • Low reputation (0.5):
Posted by: zenon

79757534

Date: 2025-09-06 12:15:29
Score: 0.5
Natty:
Report link

You can run several ways that:

wine tasklist

Also you can run what others have answered

winedbg --command "info proc"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: morhook

79757529

Date: 2025-09-06 12:11:28
Score: 1
Natty:
Report link

The error means Document AI can’t find the processor version you’re asking for.

In your code you are mixing project identifiers and using a processor version that doesn’t exist.

A few things to check:

1. Make sure you use the same project everywhere. Document AI accepts either the project number ( 466668368501) or the project ID (inspired-ether-458806-u7), but you must use the same one consistently.

2. If you don’t have a custom processor version, don’t pass processor_version_id. Just build the resource name like this:

python:

name = client.processor_path(project_id, location, processor_id)

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

79757520

Date: 2025-09-06 11:54:24
Score: 2
Natty:
Report link

“Discover the power of AhaChat AI – designed to grow your business.”

“AhaChat AI: The smart solution for sales, support, and marketing.”

“Empower your business with AhaChat AI today.”

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Đình Đức Nguyễn

79757516

Date: 2025-09-06 11:37:20
Score: 1.5
Natty:
Report link

For security, the Auth schema is not exposed in the auto-generated API. If you want to access users data via the API, you can create your own user tables in the public schema.

https://supabase.com/docs/guides/auth/managing-user-data

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Remy Van der Wereld

79757515

Date: 2025-09-06 11:34:19
Score: 2
Natty:
Report link

html <body style=margin:0;background:#000;overflow:hidden><div style=position:absolute;top:10%;left:10%;width:80vmin;height:80vmin;border-radius:50%;border:1px solid #fff><div style=position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:20vmin;height:1px;background:#fff></div><div style=position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:1px;height:20vmin;background:#fff></div></div></body>

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

79757513

Date: 2025-09-06 11:31:18
Score: 0.5
Natty:
Report link

What you’re seeing is Anaconda automatically activating the base environment in your shell. That’s why every time you open PowerShell or VS Code terminal, it starts with (base) in the prompt.

You don’t need to uninstall Anaconda — you can simply tell it not to auto-activate:

conda config --set auto_activate_base false

After running this command once, restart PowerShell/VS Code and it will open in the normal terminal without (base) showing up.

When you do want to use conda, you can still activate it manually with:

conda activate base

or switch to any other environment you’ve created.

In VS Code specifically, also make sure you’ve selected the Python interpreter you want (Ctrl + Shift + PPython: Select Interpreter). That way it won’t keep defaulting to conda if you don’t want it to.


This way you can keep Anaconda installed for data science projects, but still have a clean, fast PowerShell/VS Code terminal for your everyday Python work.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What you
  • Low reputation (1):
Posted by: Vivek

79757512

Date: 2025-09-06 11:30:17
Score: 1
Natty:
Report link

I also found myself needing a hook that runs after new refs are fetched from the remote, no matter if I merged them into a branch or not.

Given the lack of post-fetch hook, I made a python script to simulate it. It works by wrapping the ssh command and call the post-fetch hook after a fetch happens.

Here's the gist: https://gist.github.com/ssimono/f074f40c9ab9efee722e69d1ac255411

Maybe it helps someone.

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ssimono

79757507

Date: 2025-09-06 11:18:14
Score: 1.5
Natty:
Report link

Making sure that the views and view models in your subregion implement INavigationAware or IConfirmNavigationRequest will allow Prism to automatically call their OnNavigatedFrom/OnNavigatedTo methods during navigation. This is a more elegant way to take advantage of Prism's built-in navigation and region lifecycle management. To handle the subregion lifecycle consistently with the parent view and make your code cleaner and easier to maintain, think about utilizing scoped regions or navigation-aware actions rather than manually deleting views.

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

79757502

Date: 2025-09-06 11:07:11
Score: 2
Natty:
Report link

npm update helped me in my case of same error

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

79757501

Date: 2025-09-06 11:04:11
Score: 3.5
Natty:
Report link

So, the solution ended up to be quite trivial. The only thing I missed is adding the appState.target property to the parameters of the loginWithRedirect method. So in case you're facing the same issue, do this:

auth0.loginWithRedirect({
  appState: {
    target: "/auth-callback"
  }
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Lazouski

79757499

Date: 2025-09-06 11:02:10
Score: 1
Natty:
Report link

Currently, you're using a Hardcoded Attribute Mapper in Keycloak. This mapper does not extract dynamic values (such as the user ID) from the identity provider token. Instead, it assigns predefined static values to user attributes after a successful login.

For example, if you configure a Hardcoded Attribute Mapper for the email attribute with the value [email protected], then after a user logs in via an identity provider like Twitter, the user's email attribute will be set to [email protected].

If you want to map the user ID or other token claims dynamically, you should use a "User Attribute Importer", "Claim to User Attribute", or "Attribute Importer" mapper — not the Hardcoded one. I am not sure if those mapper are available in the keycloak 26.x.x version and keycloak provide an options to create a own custom SPI.

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

79757490

Date: 2025-09-06 10:38:05
Score: 3
Natty:
Report link

0 minutes seems like a riskier length of time to allow for one token to be active. There is some drift with tokens, you don't need to enter it within 30 seconds, but half an hour is not among any recommended lengths of token expiration time.

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

79757486

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

<!DOCTYPE html> <html> <body> <canvas id="c" style="width:100%;height:90vh;background:#000"></canvas> <script> let c = document.getElementById('c'), a = c.getContext('2d'); c.width = window.innerWidth; c.height = window.innerHeight; a.lineWidth = 1; a.strokeStyle = 'rgba(200,0,255,0.7)'; function r() { a.clearRect(0, 0, c.width, c.height); a.beginPath(); for (let x = 0; x < c.width; x++) { let y = c.height / 2 + Math.sin(x / 100) * x / 3; a.lineTo(x, y); } a.stroke(); requestAnimationFrame(r); } r(); </script> </body> </

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

79757485

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

I agree with @mice here. He isn't talking about storing the passed hash, but a sha256 hash of it. Using heavy hash functions, versus lighter hashes, reduces the random password length required for the same security against brute force cracking.

Yes, if you could reverse hash the sha256 hash stored on the server to the 'random' 32 byte binary output of the heavy hash, you could use that as the password, but that isn't feasible with current technology. The alternative would be to start with the actual password candidates and calculate both the heavy hash and the sha256 hash a gazillion times until you find the one that produces the stored hash. This could be feasible if the password is weak, but that wouldn't be the fault of the system.

In short, I see nothing wrong with this idea if implemented correctly, and sufficiently strong passwords are chosen. In practice though, it only allows you to shorten password by a couple of characters for equivalent security, so is it worth it?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @mice
  • Looks like a comment (1):
  • High reputation (-1):
Posted by: Simon Goater

79757478

Date: 2025-09-06 10:17:00
Score: 0.5
Natty:
Report link

Just to add to @user456814's answer, if you are using powershell you need to escape the @ with a backtick:

# For Git on Powershell
git push origin -u `@
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @user456814's
  • High reputation (-1):
Posted by: Pete

79757468

Date: 2025-09-06 09:57:55
Score: 2
Natty:
Report link

Height: 100% indeed solves the problem but creates even worse issues...

I see that when I do it, it restricts the site of the content incorrectly, particularly if there's an iframe inside the page...

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

79757465

Date: 2025-09-06 09:53:54
Score: 4
Natty: 5
Report link

Please refer the comparison between different primary key options before deciding the primary key. https://newuuid.com/database-primary-keys-int-uuid-cuid-performance-analysis

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

79757459

Date: 2025-09-06 09:40:51
Score: 2.5
Natty:
Report link

I think you should use python 3.13 or newer and setting up a virtual environment.

sudo apt-get update
sudo apt install python3.13
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install flask-humanify

Best regards!

Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rombot-dev

79757458

Date: 2025-09-06 09:39:51
Score: 1.5
Natty:
Report link

Stick with @Enumerated(EnumType.STRING). The values (PENDING_REVIEW, APPROVED, REJECTED) are stable and not business-configurable. Renames can be handled via a one-time DB migration if it ever happens. The extra complexity of lookup tables or converters isn’t worth it unless requirements change.

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

79757455

Date: 2025-09-06 09:37:50
Score: 1.5
Natty:
Report link

For anyone wondering how to temporarily disable GitHub's Copilot:

Copilot pop-up menu regarding usages, and a Snooze buttom highlighted in red

if you hover over Copilot's icon in the bottom-right, this popup brings up, and you can Snooze the auto completion for 5 minutes

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

79757443

Date: 2025-09-06 09:14:44
Score: 3
Natty:
Report link

I edited the dev.to page, clicked Preview, then Save. Then the images appeared again. This shows that the pages needed to be regenerated this way for some reason.

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

79757439

Date: 2025-09-06 09:07:42
Score: 2
Natty:
Report link

Including model.safetensors.index.json will solve the problem locally but if you are using huggingface repository (Private Space provide you with that much space to save the model - 100 Gb as of now), You will still face the error of loading the model, somehow huggingface repository is treating it as a safetensor file (having stack icon alongside). And transformers library by default look for the same file name convention. Even after trying multiple attempt still facing the issue.

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

79757437

Date: 2025-09-06 09:04:42
Score: 2
Natty:
Report link

I had such problem in Laravel 9. Solution - check your version Bootstrap. After installation of correct version bootstrap problem was solved. I hope this help you

Reasons:
  • Whitelisted phrase (-1): hope this help
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alex Cool

79757435

Date: 2025-09-06 08:58:40
Score: 2.5
Natty:
Report link

It's the same data structure, so you can just cast the pointer

vector<complex<float>> a(100);

float s;

ippsMaxAbs_32fc(static_cast<Ipp32fc*>(a.data()), a.size(), &s) ;

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

79757433

Date: 2025-09-06 08:57:39
Score: 6 🚩
Natty:
Report link

I think this is good, thanks for sharing

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (2): thanks for sharing
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rahul Gupta

79757429

Date: 2025-09-06 08:50:37
Score: 2.5
Natty:
Report link

I tried many solutions but nothing worked for. I added one more uses feature and now the app is installed in all the devices, whether the device has NFC or not

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">
 
<uses-feature
    android:name="android.hardware.nfc"
    android:required="false" />
 
<uses-feature
    android:name="android.hardware.nfc.hce"
    android:required="false"
    tools:node="replace" />
Reasons:
  • Blacklisted phrase (1): but nothing work
  • Blacklisted phrase (1.5): any solution
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Amanpreet Kaur

79757424

Date: 2025-09-06 08:41:35
Score: 1.5
Natty:
Report link

Correct command to install pre-commit globally is,

$ uv tool install pre-commit
$ which pre-commit
/home/username/.local/share/../bin/pre-commit

See official uv docs; The uv tool interface.

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

79757422

Date: 2025-09-06 08:33:33
Score: 3.5
Natty:
Report link

Modify your run configuration to "runClient --rerun-tasks"

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

79757421

Date: 2025-09-06 08:31:32
Score: 0.5
Natty:
Report link

This error for me was due to upgrading a package dependency. Once downgraded, the error went away. Added back, the app crashed again via the dreaded "Lost connection to device. Exited." message. It took a while though because the dependency package was upgraded along with some other packages and SDK-related stuff.

I'd suggest one of two things; 1) start disabling packages, or 2) create a new app and add your app into it, piecemeal.

The dependency in my case (every case would likely be different) was the http package (v1.5.0). Once downgraded back to v1.4.0, the crashes stopped.

I've had this happen with other packages, though, also, like routing packages, and they can take hours to days to debug because the error can happen in some asynchronous call that happened dozens of debugging steps before the actual crash, and the logs give no help whatsoever.

Lost connection to device. Exited. | GL figuring it out. :P

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

79757420

Date: 2025-09-06 08:26:31
Score: 3
Natty:
Report link

You can try using browser's sessionStorage to store auth token or other auth info.

Check https://javascript.info/localstorage

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

79757419

Date: 2025-09-06 08:22:27
Score: 9 🚩
Natty:
Report link

I need help I'm unable to create an application on my.telegram.org whenever I try to create it popups an error Says: my.telegram.org says ERROR

please help me to get API ID AND API HASH

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (2.5): I need help
  • RegEx Blacklisted phrase (3): please help me to
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kaam lo

79757418

Date: 2025-09-06 08:22:26
Score: 1.5
Natty:
Report link

CMake does not naturally supports different C/CXX compilers in CMake Project. However, it does support "subdirs". Which means CMake understand that different project have completely different toolchains.

Just make an independent CMake for the MCU firmware and independent one for the SBC.
The third CMake will be your root CMake, it should add the others as subdirs and make the joint.

https://cmake.org/cmake/help/latest/command/add_subdirectory.html

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

79757410

Date: 2025-09-06 08:05:22
Score: 2
Natty:
Report link

Good article here https://medium.com/@karimelsayed0x1/01-path-traversal-0c52daffd26e

with example

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

79757409

Date: 2025-09-06 08:03:22
Score: 1
Natty:
Report link

The md5ext value should be a hash, not a filename:

"md5ext": "a1b2c3d4e5f67890abcdef1234567890.ttf"

For TurboWarp/Electron apps, fonts are typically expected in

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

79757406

Date: 2025-09-06 08:00:21
Score: 3.5
Natty:
Report link

Switching my internet service provider fixed this

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

79757379

Date: 2025-09-06 06:38:03
Score: 3
Natty:
Report link

YOU CAN DO IT IN THE NEXT SOLUTION , I USE THE ANSERS OF ALL TO BRING THIS SOLUTION THANKS

src="data:image/jpg;base64,@Convert.ToBase64String(curso.Imagen)"

Reasons:
  • Blacklisted phrase (0.5): THANKS
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jorge Alberto Trejo Jiménez

79757378

Date: 2025-09-06 06:37:02
Score: 4
Natty:
Report link

دیدگاه

تسلیت به مناسبت زلزله شرق افغانستان

﴿وَلَنَبْلُوَنَّكُمْ بِشَيْءٍ مِّنَ ٱلْخَوْفِ وَٱلْجُوعِ وَنَقْصٍ مِّنَ ٱلۡأَمۡوَٰلِ وَٱلۡأَنفُسِ وَٱلثَّمَرَٰتِۗ وَبَشِّرِ ٱلصَّٰبِرِينَ * ٱلَّذِينَ إِذَآ أَصَٰبَتۡهُم مُّصِيبَةٞ قَالُوٓاْ إِنَّا لِلَّهِ وَإِنَّآ إِلَيۡهِ رَٰجِعُونَ﴾

ترجمه: «و قطعاً شما را به چیزی از ترس و گرسنگی و کاهش اموال و جان‌ها و ثمرات ابتلاء (امتحان یا آزمایش) می‌کنیم؛ و مژده ده به صابران، همان کسانی که چون مصیبتی به آنان برسد، گویند: ما از آنِ الله (سبحانه و تعالی) هستیم و به سوی او بازمی‌گردیم.»

چند روز قبل؛ زمین‌لرزه‌ای قدرتمند ولایات مشرقی، به‌ویژه کنر و ننگرهار و مناطق اطراف را لرزاند. این حادثه تعداد زیادی را شهید و شمار زیادی را زخمی و بی‌خانمان ساخت. داغ این حادثه قلوب همه ما را سوزاند. از بارگاه پروردگار سبحانه و تعالی می‌طلبیم که شهدا را در فردوس برین جای دهد، بر مجروحان شفای عاجل ارزانی کند و بر دل بازماندگان‌شان صبر جمیل نازل فرماید.

رسول الله ﷺ در حدیث مبارکی که از صهیب (رض) در صحیح مسلم روایت شده است فرمودند: «عَجَبًا لِأَمْرِ الْمُؤْمِنِ، إِنَّ أَمْرَهُ كُلَّهُ لَهُ خَيْرٌ، وَلَيْسَ ذَاكَ لِأَحَدٍ إِلَّا لِلْمُؤْمِنِ؛ إِنْ أَصَابَتْهُ سَرَّاءُ شَكَرَ، فَكَانَ خَيْرًا لَهُ، وَإِنْ أَصَابَتْهُ ضَرَّاءُ صَبَرَ، فَكَانَ خَيْرًا لَهُ.» ترجمه: شگفت‌انگیز است حال مؤمن! زیرا همه کار او برایش خیر است، و این جز برای مؤمن نیست: اگر خوشی به او برسد، شکر کرده و این برایش خیر است؛ و اگر سختی به او برسد، صبر می‌کند و آن نیز برایش خیر است.

آری! هرچند این مصیبت‌ها تلخ و سنگین‌اند، اما برای اهل ایمان دریچه‌ای برای صبر، بازگشت به پروردگار و بیداری دل‌ها می‌باشند. این‌گونه حوادث به ما یادآوری می‌کنند که دنیا گذراست و آنچه باقی می‌ماند ایمان و اعمال صالح است.

با وجود دعا و صبر، امت باید بیدار گردد که دولت‌های ملی قادر به ادای مسئولیت‌های اساسی نیستند. سال‌ها حاکمیت این دولت‌ها بر افغانستان، با وجود سرازیر شدن میلیون‌ها دالر خارجی و جمع‌آوری مالیات داخلی، نتوانست زمینه اسکان امن و تدابیر لازم را برای مردم فراهم سازد. در حالی که بر دولت‌ها لازم است وظایف‌شان را به‌گونه تخنیکی و عملی انجام دهند: نصب دستگاه‌های هشداردهنده زلزله و ایجاد شبکه‌های اطلاع‌رسانی فوری، آموزش مردم در برابر حوادث، ساخت منازل و تأسیسات مقاوم، از جمله وظایف حیاتی است که متأسفانه دولت‌های ملی در طی سالیان متمادی از انجام آن عاجز بوده‌اند. به شکلی که مردم در ولایات دور دست در مناطق غیر استندرد و زلزله خیز و حتی درون دره‌هایی که قبلا دریاچه بوده است و استحکامی ندارد، مسکن دارند.

این ابتلای الهی فرصتی است تا بیش از پیش به سوی وحدت و همبستگی برویم و در غم و درد یکدیگر شریک شویم. بدون شک، امت زمانی امت واقعی خواهد بود که فکر و احساس مشترک داشته باشد. از الله متعال مسئلت داریم که شهدای این حادثه را با نور رحمت خویش بپوشاند، مجروحان را شفای عاجل عطا کند و امت اسلامی ما را از مصیبت‌ها و پریشانی‌ها حفظ نماید.

إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ!

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Hayatullah Dadkhah

79757377

Date: 2025-09-06 06:37:02
Score: 1
Natty:
Report link
  1. Open Control Panel:

    • Press Win + S, type Control Panel, and hit Enter.
  2. Go to Programs > Programs and Features.

  3. Look for Scala in the list.

  4. If it's there, right-click > Uninstall.

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

79757365

Date: 2025-09-06 06:10:56
Score: 5.5
Natty: 5.5
Report link

Currently, we are developing an ACS-to-ACS call solution for one of our customers, and while the call placement is working perfectly fine, we have encountered an issue when trying to add a PSTN number to an existing ACS-to-ACS call. Specifically, we are faced with error code 400. Our solution utilizes the Frontend SDK (@azure/communication-calling) to create a peer-to-peer call. Could you kindly provide your insights on how to resolve this issue? Your assistance would be greatly appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (1.5): how to resolve this issue?
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: BABULAL SAH

79757346

Date: 2025-09-06 05:27:44
Score: 2.5
Natty:
Report link

Provider store={store}>

\<App /\>

</Provider>,

document.getElementById('root'

)

)

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

79757345

Date: 2025-09-06 05:25:44
Score: 3
Natty:
Report link

Stumbled upon the same issue today.

In Arduino IDE, go to Tools menu and enable the "USB CDC On Boot" option. This will fix the issue.

enter image description here

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

79757338

Date: 2025-09-06 04:57:38
Score: 2
Natty:
Report link

There's another implementation of Zenity: https://github.com/ncruces/zenity/releases
You can do e.g. zenity.exe -info -text "my message" to get a dialog box.

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

79757336

Date: 2025-09-06 04:54:37
Score: 3
Natty:
Report link

I don't know why it happens, but you can delete the .git folder and initialize the repo again. This is the only thing I can do for this problem.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 16 Trần Nguyên Khang

79757321

Date: 2025-09-06 04:08:28
Score: 1.5
Natty:
Report link

I'm facing the same issue, but I'm not using react-native-image-crop-picker at all, it's even failing for fresh new RN project.

then I found out that my system ruby has some problem. I removed system cocoapods, switched to use rbenv , and reinstall cocoapods again with ruby from rbenv.

now it's fine

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing the same issue
  • High reputation (-1):
Posted by: Duc Trung Mai

79757316

Date: 2025-09-06 03:56:25
Score: 4
Natty:
Report link

i have same issue with you.
we can not send gmail in railway as a trail user
So i have create a api to send like a third-service using pythonanywhere
and in railway, just call as an api to pythonanywhere
Hope it help you

Reasons:
  • Whitelisted phrase (-1): Hope it help
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): i have same issue
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user31430966

79757308

Date: 2025-09-06 03:17:17
Score: 0.5
Natty:
Report link

Try This also It worked in my case.

Add '<_ExtraTrimmerArgs>--keep-metadata parametername</_ExtraTrimmerArgs>' in Property group section inside the .csproj file of client Project.

Reasons:
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): Try This
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user3820036

79757304

Date: 2025-09-06 03:11:15
Score: 1
Natty:
Report link

You had already closed the bracket in the print of your if block

print((temperature) # remaining code

you should make them in whole single context as pyhron is assumin that if is already closed so elif needed

print((temperature + "fdeg=" + temp))
elif # this will work fine
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Somanshi Jain

79757287

Date: 2025-09-06 02:09:02
Score: 4.5
Natty: 5
Report link

Can you uncover the colour green

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

79757279

Date: 2025-09-06 01:52:59
Score: 1
Natty:
Report link

Sorry all for raising an issue where none existed. My previous code was also treating slices as views, but just by dumb luck -- because of the specific programming logic -- I was not reading the changed elements of A and hence not aware of the problem. The input used to construct A changed recently, making it so that I was seeing the changed elements now, and I thought this was new behavior. Please consider this closed.

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

79757275

Date: 2025-09-06 01:38:56
Score: 3
Natty:
Report link

thanks to all who contributed! It took me a while for me to realize but the actual error has nothing to do with the code itself, but rather which file the auto-grader was checking. In other words, my file name had a typo in it so the terminal command I was using (check50 cs50/problems/2022/python/outdated) was checking the wrong file over and over again. Appreciate all the responses, guess moral of the story is be careful with your file names LOL

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user31409481

79757269

Date: 2025-09-06 01:12:50
Score: 4
Natty:
Report link

https://gaybingo.live/justpleasure1234

https://api.x.com/oauth/authorize?oauth_callback=https%3A%2F%2Fstreamyard.com%2Fredirect%2Ftwitter%3FteamId%3DzcNTuRZXp9DQsv3fCZPa1avU%26entryPoint%3Ddestination_page%26popupId%3DsbXIHzrILku3%26returnTo%3D%252Fredirect%252Fpopup_success%26state%3D%257B%2522stateCsrf%2522%253A%2522Mp4EUgDTAlnBIaT2FOECoiaZ%2522%257D&oauth_token=77JlBQAAAAABOKzqAAABmRx-aQk

https://xpornium.net/embed/dragon intelligence and my chatterbate profile on my phone with my chatterbate profile picture of my things so far so good 👍

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

79757267

Date: 2025-09-06 01:06:48
Score: 0.5
Natty:
Report link

Remember that &(&1 * &2) is just "syntax sugar". The following are equivalent:

1- Anonymous Function (fn ... -> ... end)

Enum.reduce([1,2,3,4], fn a, b -> a * b end)

2- Capture Anonymous Function (&...)

Enum.reduce([1,2,3,4], &(&1 * &2))

3- Capture Named Function (def ... do ... end)

Enum.reduce([1,2,3,4], &multiply/2)

# ...

def multiply(a, b) do
  a * b
end

The Capture Anonymous Function syntax (#2) is nice and concise but as @coderVishal pointed out, mostly useful for short, easy-to-understand expressions

If you have a more complicated expression -- or (as you discovered) if you need more than one captured function in a single line -- then it is time to switch to longer fn-style anonymous functions (#1) or make regular functions and use them by name (#3)

In @sobolevn's example, he used #2 for the outer Enum.reduce and then #3 for the inner multiply

Enum.map([[1,2],[3,4]], &Enum.reduce(&1, fn(x, acc) -> x * acc end)) 

Helpful links:

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @coderVishal
  • User mentioned (0): @sobolevn's
  • Low reputation (0.5):
Posted by: Bukov

79757265

Date: 2025-09-06 01:02:47
Score: 2.5
Natty:
Report link

Why not access the data directly? If you are using NextJS as a backend..

Or if it's a client component:

actions.ts:

'use server'
import { db } from '@/lib/db' // Your database client
 
export async function fetchUsers() {
  const users = await db.user.findMany()
  return users
}

component.ts:

'use client'
import { fetchUsers } from '../actions'
 
export default function MyButton() {
  return <button onClick={() => fetchUsers()}>Fetch Users</button>
}

https://nextjs.org/docs/app/api-reference/directives/use-server#using-server-functions-in-a-client-component

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why not
  • Low reputation (1):
Posted by: JGabT

79757264

Date: 2025-09-06 00:59:46
Score: 1.5
Natty:
Report link

Using numpy.indices and numpy.stack

import numpy
shape = (6,2,8,7)
array_of_positions = numpy.stack(numpy.indices(shape), axis = len(shape))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Christopher Pratt

79757252

Date: 2025-09-06 00:24:38
Score: 3.5
Natty:
Report link

I have a similar issue with the CloudFormation Linter extension, when you rename a file - it complains the original file is missing and there’s no way to get rid of it, except for closing and opening up the workspace folder.

I’m still trying to figure out how RooCode is able to add an “Explain with Roo” item when you right click on something in the Problems panel, so I can raise PR to implement.

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): I have a similar issue
  • Low reputation (0.5):
Posted by: flipcode

79757251

Date: 2025-09-06 00:23:38
Score: 2
Natty:
Report link

So the issue was that the frame being sent out is the heartbeat frame, and if there is no NMT master to ack it, then the stack isn't treating the frame as being sent anyway, so the buffer is overflowing with the heartbeat messages. If a sniffer is active on the bus, the warnings go away. I ended up editing the code to change that warning to "warn once" so I don't keep getting that spammed out when only one CAN device is active on the bus.

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

79757245

Date: 2025-09-06 00:10:35
Score: 2
Natty:
Report link

I was running into this same issue. The channel was filling up and the reader was stuck. In fact, I came back to this SO thread several times hoping someone had an idea. I finally realized the logic immediately following the read operation (within the read loop) was blocking the next read. In your particular example, I would ensure the logging and DoSomethingAsync is not blocking.

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

79757239

Date: 2025-09-05 23:45:30
Score: 0.5
Natty:
Report link

So, that's my solution and I foresee it might be useful for others facing similar issues on Mac. I recently switched from Linux and everything seems to be so buggy here ;)

I have experimented with different versions of this gem for some time and found out that the next patch version works just fine for me. So, as a temporary solution, cause updating the whole project's dependencies would be a huge step, I did the following:

# Checking the current gem installation path
bundle show grpc
<myhomedir>/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/grpc-1.74.0-arm64-darwin

# Installing the next patch version of the gem
gem install grpc --version=1.74.1 --platform=arm64-darwin

# Removing the old version
rm -rf <myhomedir>/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/grpc-1.74.0-arm64-darwin

# Faking the new version to act like a previous version via a symlink
ln -s <myhomedir>/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/grpc-1.74.1-arm64-darwin <myhomedir>/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/grpc-1.74.0-arm64-darwin

It all started to work now.

Feel free to suggest your workarounds for the situations like that.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing similar issue
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: zinovyev

79757234

Date: 2025-09-05 23:36:28
Score: 2
Natty:
Report link

Okay turns out the issue is something related to commas in the URL not playing nice. Not sure about the specifics but replacing raw commas in the URL with their encoded version (%2C) makes everything as normal.

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

79757233

Date: 2025-09-05 23:33:27
Score: 3
Natty:
Report link

^\h*\d+ used this many times today because gemini cli insisted i should copy the code and linenumbers everytime work but only one line at the time.

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

79757227

Date: 2025-09-05 23:20:24
Score: 1
Natty:
Report link

Visual Studio now provides a mechanism to do this automatically called public project content. In your library project properties, set the Public Include Paths property to a list of paths with shared header files. Once done, these directories will be automatically added to Include Paths in all projects referencing your library project—no need to include or configure anything there, just having a project reference is enough.

Here's a short guide from Microsoft's documentation: Reuse header units among projects

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

79757225

Date: 2025-09-05 23:18:23
Score: 0.5
Natty:
Report link

You can construct it as an array of tuples and use the array builder syntax to see if that works faster. Something like:

im_arr = [(1 - (r[x] / 10813),)*im_elev[x] for x in r_sorted]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Richard

79757213

Date: 2025-09-05 22:46:16
Score: 4
Natty: 4.5
Report link

Hi do you mind sharing the wording you uses for your appeal? Apple likes strong-arming Reader Apps into using IAP

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mugen

79757208

Date: 2025-09-05 22:34:14
Score: 2
Natty:
Report link
REM Determinar AM o PM
set ampm=AM
if !hora! GEQ 12 set ampm=PM
if !hora! GTR 12 set /a hora=!hora!-12
if !hora! EQU 0 set hora=12
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Eliseo

79757192

Date: 2025-09-05 22:03:07
Score: 5.5
Natty:
Report link

I have the same problem. You can let the messages come from the bottom with

display: flex;
flex-direction: column-reverse;

for the container. But I want the first message appears at the top. If the area ist full than the all next messges appear at the bottom and pull the previuos messages to he top. With this code all messages appear unfortunatlly at the bottom

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Stan

79757180

Date: 2025-09-05 21:50:03
Score: 3.5
Natty:
Report link

use with_ymd_and_hms() as ymd_opt() is deprecated

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

79757176

Date: 2025-09-05 21:45:02
Score: 4
Natty: 4
Report link

Take screen shot. Open in IrfanView. Print to Adobe. Open in PDF2XL.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Robert Del Riego CPA

79757172

Date: 2025-09-05 21:40:00
Score: 2
Natty:
Report link

I posted this question on Microsoft Learn too and it was answered.: https://learn.microsoft.com/en-us/answers/questions/5543600/retrieve-a-certificate-by-id-in-apim-policy

The Certificate can only be obtained using the thumbprint, so automating the KV secret when rotating the certificate is the only answer at the moment.

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

79757152

Date: 2025-09-05 21:06:53
Score: 2
Natty:
Report link

chainging the like to

<mesh filename="package://<package_name>/urdf/meshes/....stl"/>

actualy fixed the problem and RVIZ recived the STL location

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

79757144

Date: 2025-09-05 20:46:48
Score: 1
Natty:
Report link

Default mysql port for MAMP is 8889, 8888 is used for apache.

Mysql connection from the command line also requires to specify non-standard port number

mysql -u root -p **** -P 8889
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user31188334

79757136

Date: 2025-09-05 20:36:45
Score: 3.5
Natty:
Report link

STIGViewer 2.18 is not compatible with Mac OS X. However someone on GitHub found a workaround. Here's the link https://github.com/caspiras/Mac_OS_X_STIGViewer

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