79437129

Date: 2025-02-13 16:56:45
Score: 0.5
Natty:
Report link

The above Answer will resolve a single fact by using the "filter" key in module_args. If you wish to access multiple facts, or all of them within your custom Ansible module, you can omit the filter key. In the following example, the "filter" key is replaced with a notional "path" key in module_args to give the module an argument. You can then assign all Ansible facts into a variable, which will return a dict. From there, simply reference whatever fact(s) you need.

def run_module():
    module_args = dict(
        path=dict(type="str", required=False, default="/etc/hosts")
    )
    module = AnsibleModule(argument_spec=module_args, supports_check_mode=True)
    all_facts = ansible_facts(module)

    ipv4_addresses = all_facts["all_ipv4_addresses"]
    hostname = all_facts["hostname"]

    module.exit_json(changed=False, ipv4=ipv4_addresses, host=hostname)


if __name__ == "__main__":
    run_module()
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: register

79437122

Date: 2025-02-13 16:54:44
Score: 3
Natty:
Report link

Give the element style={{left: 0}} that will override the inset 50%

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

79437121

Date: 2025-02-13 16:54:44
Score: 0.5
Natty:
Report link

This worked for me:

style.map("Treeview", rowheight=[("!disabled", 25)])

replace 25 with your desired height.

Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: J. Kitchens

79437119

Date: 2025-02-13 16:53:44
Score: 0.5
Natty:
Report link

The Fluent UI refresh is available behind a hidden feature flag, even in the non-preview release. Install the Feature Flags VS extension, then go to Tools > Options > Environment > Feature Flags, disable Shell.ClassicStyle, and enable Shell.ExperimentalStyles. Restart the IDE and you will see the new styles.

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

79437102

Date: 2025-02-13 16:49:43
Score: 3
Natty:
Report link

1

The date_format argument should be a string, not function. (documentation)

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

79437101

Date: 2025-02-13 16:49:43
Score: 1
Natty:
Report link

It should be Raw Amount in token's decimals. This means amount should be how much of that token you have.

When buying: amount of sol lamports. solana has 9 decimals, so if you want to buy 0.1 sol of the target token you need to input 0.1 x 1_000_000_000 = 100_000_000

When selling: amount of how much token you have. for example you have 435.54 $some token. and token decimal is 6. so 435.54 x 1_000_000 ( 6 zeros, because token's decimal is 6.

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

79437080

Date: 2025-02-13 16:44:41
Score: 4
Natty:
Report link

You can also try adding ?athena.enableFnOTables=ture after the URL.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sufiyan Ahmed Shaikh

79437076

Date: 2025-02-13 16:43:41
Score: 0.5
Natty:
Report link

J Eti's "accepted" answer directly answers my question, but it misses the intuition which I wanted to get when I asking this as well, which I understand a lot better now that I'm older. I wanted to leave this here to anyone discovering this thread again.

The issue with web scraping is that it's a very "I/O bound" task (eg. waiting for an internet packet to physically traverse across cables across the world have a server respond, etc. Another good one is waiting for a filesystem to respond). When your code runs to send this web request, you don't want function invocation to be "dead-waited". If you solve this via multi-threading (in a naive approach where you don't customize your own sockets/syscalls which 99.99% of developers are), you are effectively leaving your operating system's process scheduler to properly sleep your thread and free up that thread so other threads could do work. Asynchronous threads on the other hand effectively have this "process scheduler" built into a single thread, where dead-wait is explicitly defined by the programmer. And so, the dead-wait optimization is more explicit by the nature of asynchronous programming and thus easier to optimize around to the library writer, leading to faster code without us having to do that task scheduling manually :-)

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

79437071

Date: 2025-02-13 16:42:40
Score: 0.5
Natty:
Report link

This issue was suprisingly fixed by changing the order in which plugins were added.

In main.dart

from

Amplify.addPlugins([authPlugin, dataStorePlugin, apiPlugin]);

To

Amplify.addPlugins([dataStorePlugin, authPlugin, apiPlugin]);

And the following commands were required for me

flutter clean

flutter pub get

flutter run -d iPhone

Don't know why this was never referenced or needed by Amplify as authPlugin has no requirements for dataStore

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

79437068

Date: 2025-02-13 16:41:40
Score: 2.5
Natty:
Report link

A fix like that would not pass many code review processes. There has got to be a better way. Maybe chain those calls in promise..then. It is great that it works but in terms of software solutions, I wouldn't promote it to production like that.

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

79437050

Date: 2025-02-13 16:36:39
Score: 2.5
Natty:
Report link

Can you see Max backoff value ? I think is 3600s by default.

A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails.

If maxBackoff unspecified when the queue is created, Cloud Tasks will pick the default (3600s = 60mn).

Google cloud api explorer: https://cloud.google.com/tasks/docs/reference/rest/v2/projects.locations.queues#RetryConfig.FIELDS.max_backoff

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (0.5):
Posted by: Abdellatif Derbel

79437049

Date: 2025-02-13 16:36:39
Score: 0.5
Natty:
Report link

When you want to suppress multiples warning:

[pytest] // or [tool:pytest]
filterwarnings =
    ignore::DeprecationWarning
    ignore::PendingDeprecationWarning
    ignore::UserWarning
    ignore::RuntimeWarning
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
Posted by: abdoulsn

79437048

Date: 2025-02-13 16:36:39
Score: 3
Natty:
Report link

You can try https://nemesyslabs.com, you can turn up to 10,000 characters at once for free forever with their api.

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

79437045

Date: 2025-02-13 16:36:39
Score: 1.5
Natty:
Report link

fix is following - add m_shaderProgram.bind() in paintGL:

    void GLWidget::paintGL()
{
    m_shaderProgram.bind();
...
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Velutis

79437034

Date: 2025-02-13 16:32:37
Score: 4.5
Natty: 4
Report link

this sounds really interesting. I just inherited a system myself and would appreciate if you could share part of your code to get started.

Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1.5): would appreciate
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ingo

79437026

Date: 2025-02-13 16:30:37
Score: 2.5
Natty:
Report link

for ubuntu users

ctrl + shift + 7

Reasons:
  • Low length (2):
  • No code block (0.5):
Posted by: Francisco Cortes

79437003

Date: 2025-02-13 16:21:35
Score: 0.5
Natty:
Report link

Are you importing and referencing androidx.activity version 1.8 or higher? EdgeToEdge was added in version 1.8.

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

79436999

Date: 2025-02-13 16:20:32
Score: 6 🚩
Natty: 6.5
Report link

i tried the above code and it works well. i am wondering if it could be extended to hiding menu items which arent from stock wordpress but from plugins...?

for example if you would also like to hide "Yoast SEO" in the admin menu from the editor role...?

i ofc tried to just add "__('Yoast SEO')" to the list, but yea... that doesn't do anything :-)

help would be appreciated :-)

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (3): help would be appreciated
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: gnarre

79436996

Date: 2025-02-13 16:20:32
Score: 3.5
Natty:
Report link

If you in private endpoint select sub resource type DFS instead of BLOB, it wont work. Even tho storage account is DataLake.

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

79436988

Date: 2025-02-13 16:15:31
Score: 5
Natty: 5
Report link

Does the last step require a gateway for a cloud-connection? Can we do it without ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Amy D

79436986

Date: 2025-02-13 16:15:28
Score: 9 🚩
Natty: 4
Report link

Did you ever get this working? I'm figuring it out as well and when using the admin API, I always receive a 401 unauthorized...

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever get this
  • RegEx Blacklisted phrase (2): working?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: legan

79436977

Date: 2025-02-13 16:12:28
Score: 3
Natty:
Report link

para el caso de la propiedad en un reporte con Evaluation Time = "Auto" alguien Sabe por que al ejecutar el pdf desde apex usando el paquete PL-jrxml2pdf aparecen vacios, solo se me presentan cuando ejecuto la herramienta Ireport al previsualizar, mas no al levantarlo

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

79436974

Date: 2025-02-13 16:11:27
Score: 2.5
Natty:
Report link

Collects works perfect to SUM all numeric values un a table and reapecting all character fields.

loop at itable into structure. collect structure to Itable2. endcollect.

sadly this is being discontinued. (ATC check P1)

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

79436971

Date: 2025-02-13 16:10:27
Score: 2
Natty:
Report link

If your Discord4j bot works in plain Java but fails in Quarkus when resolving DNS for discord.com, the issue might be related to Quarkus' network configuration. Try forcing IPv4 by adding System.setProperty("java.net.preferIPv4Stack", "true"); at the start of your code. Also, ensure your Netty and Reactor dependencies are up to date and that Quarkus has proper network permissions. If the issue persists, configure a custom DNS resolver in Reactor Netty!!! :)

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

79436963

Date: 2025-02-13 16:08:26
Score: 2.5
Natty:
Report link

Just in case it helps anyone, i managed to get bluetooth 4.0 (a2dp support etc) on Windows 7 64bit by installing the TP link bluetooth dongle in combination with the realtek bluetooth drivers:

https://www.tp-link.com/uk/support/download/ub500/v1/

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

79436962

Date: 2025-02-13 16:08:26
Score: 3
Natty:
Report link

Had a similar experience, fix for me was logout from visual studio and login again into visual studio then it was ok

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

79436959

Date: 2025-02-13 16:06:26
Score: 2
Natty:
Report link

What do you mean by doesn't work? Are you seeing an error, or is the text in the wrong position?

What version of moviepy are you using? Version 2.0+ changes set_position to with_position

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What do you mean
  • Low reputation (1):
Posted by: Jessica Doherty

79436949

Date: 2025-02-13 16:03:25
Score: 1.5
Natty:
Report link

ChatGPT to the rescue!

On a serious note, I applause your attempt at parsing calendars strictly with SQL. Years ago I tried it, gave up and just wrote a parser in PHP. Works like a charm in https://scheduletracker.app that I created for XER parsing and schedule analysis.

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

79436946

Date: 2025-02-13 16:02:24
Score: 5.5
Natty:
Report link

Perhaps you directly use date_format="%m/%d/%Y" instead while reading csv?

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

79436945

Date: 2025-02-13 16:01:24
Score: 2.5
Natty:
Report link

I developed my Ansible playbooks on a linux computer and deployed it on a linux VM without any trouble.

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

79436922

Date: 2025-02-13 15:52:21
Score: 4
Natty: 4.5
Report link

The problem is with your windows security and it will be solved by allowing on this devicejust search for protection history and tap on allow .... I really searched for this answer a lot

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

79436919

Date: 2025-02-13 15:51:20
Score: 2
Natty:
Report link

I know you are not as stupid as I am, but just to be clear, the "[Extension Development Host] Search" field is not a command palette. I wasted a lot of time before I realized this.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 小方こはく

79436916

Date: 2025-02-13 15:50:20
Score: 2
Natty:
Report link

A solution of the capture with scroll issue by @songxingguo

height: fit-content

A code snippet that works for me:

const capture = () => {
  const node = document.getElementById('timeline-list');
  const currentHeight = node.style.height;
  node.style.height = 'fit-content';
  html2canvas(node)
    .then(function (canvas) {
      const imgData = canvas.toDataURL('image/png');
      const link = document.createElement('a');
      link.href = imgData;
      link.download = 'captured-image.png';
      link.click();
    })
    .finally(() => {
      node.style.height = currentHeight;
    });
};

Can I use "fit-content"? supported browser list

Reasons:
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: renzhexigua

79436897

Date: 2025-02-13 15:43:18
Score: 3.5
Natty:
Report link

for me it was the Maven version, I put an older version and everything worked.

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

79436888

Date: 2025-02-13 15:41:17
Score: 0.5
Natty:
Report link

These are the steps to follow to use FontAwesome icons with React + Vite.js:

1.Install the dependencies:

Run the following commands to install the necessary FontAwesome packages:

npm install --save @fortawesome/fontawesome-svg-core npm install --save @fortawesome/free-solid-svg-icons npm install --save @fortawesome/react-fontawesome

2.Import the FontAwesomeIcon component:

In your React component, import the FontAwesomeIcon like this:

import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';

3. Import the icons you want to use:

When importing icons, you need to write the icon's name in camelCase (starting with a lowercase letter and capitalizing subsequent words). You should also use the exact name of the icon as it’s defined in the FontAwesome library.

For example, if you want to use the arrow-right icon, the original name on FontAwesome is "fa-arrow-right". When you import it into your React component, you will use camelCase like this:

"import { faArrowRight } from '@fortawesome/free-solid-svg-icons';"

Note: The name faArrowRight corresponds to the FontAwesome icon "fa-arrow-right". When working with FontAwesome in React, the icon names are converted from the original format (with dashes) into camelCase.

Also, remember to import icons from the correct package: in this case, we're using the @fortawesome/free-solid-svg-icons package for the solid icons. If you're using a different set (like regular or brands), make sure to import from the corresponding package.

4.Finally, use the FontAwesomeIcon component in your JSX like this:

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

79436885

Date: 2025-02-13 15:40:17
Score: 0.5
Natty:
Report link

I found a way to fix this behaviour, anyone who might need it in the future here it is:

    document.addEventListener("pointerdown", (event: PointerEvent) => {
      const target = event.target as HTMLElement;
      target.setPointerCapture(event.pointerId);
    });

    document.addEventListener("pointerup", (event: PointerEvent) => {
      const target = event.target as HTMLElement;
      target.releasePointerCapture(event.pointerId);
    });
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mr.B

79436882

Date: 2025-02-13 15:39:17
Score: 0.5
Natty:
Report link

If you have an ‘active choice’, the choice is exclusive, so you can’t set ‘some of A’ and ‘some of B’, you probably need to restructure your options if you want all the (1,2,3,4,5,6) options to be a separate selection from the initial choice (A or B)

As for storing the values, you can do that in several different ways, either putting the values in a build wide variable after the start, or saving a build artifact by writing the choice results out to json or yaml files, and tagging them as a build artifact so you can access them later.

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

79436861

Date: 2025-02-13 15:33:16
Score: 1
Natty:
Report link

Did you try putting the expression after eq in upper brackets ''? Should look something like :

_ownerid_value eq 'triggerOutputs()?['body/_ownerid_value']'
Reasons:
  • Whitelisted phrase (-2): Did you try
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Max

79436858

Date: 2025-02-13 15:31:15
Score: 3
Natty:
Report link

Unbinding paste from Keyboard Shortcuts fixes this problem for me.

Related GH issue: https://github.com/microsoft/vscode/issues/238609#issuecomment-2611147382

Arch, Hyprland, VSCode v1.97.0

This problem should be resolved in VSCode v1.98: https://github.com/microsoft/vscode/pull/237557

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

79436855

Date: 2025-02-13 15:29:14
Score: 0.5
Natty:
Report link

The solution was to 1 - download easyphp sever 32 bit and apache2443vc15x86x250213064314 2 - PHP 8 from easyphp 32 bit

edit the PHP.ini file in the PHP 8 server and set the URL

extension_dir = "D:\000_WORK\EasyPHP-Devserver-17\eds-binaries\php\php833vs16x86x250213064440\ext"

3 - make the PHP read only so it does not get modified afterwards

4 - somehow go to the server folder of the database used and launch every single exe file that is in there as an administrator and then restart the machine.

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

79436848

Date: 2025-02-13 15:26:14
Score: 3
Natty:
Report link

This post explains how to configure so the mandatory flag is set on all messages sent. It is not a direct solution to your question, but it will ensure messages is not lost when sending to an exchange that does not have any bindings.

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

79436843

Date: 2025-02-13 15:26:14
Score: 0.5
Natty:
Report link

Given that other options don't apply, you could just connect to the database directly and pull the data that you need. There are opensource Python parsers out there, but Oracle has a pretty good documentation on table names, their fields and relationship between different properties. It may be enough to get started and at least pull some basic information on projects and schedules.

That's what I did in https://scheduletracker.app where I import every table from an XER file into the database, and then generate a myriad of reports. It's all SQL based so here you go.

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

79436836

Date: 2025-02-13 15:23:13
Score: 1.5
Natty:
Report link

I reviewed the code on GitHub and found that it uses React v16 with class components. Nowadays, it's more common to use hooks. Additionally, the project was created with Create React App, whereas Vite is now the recommended choice for new projects.

You have two options:

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

79436830

Date: 2025-02-13 15:22:13
Score: 2.5
Natty:
Report link

I face the same problem, my issue is related to IISExpress and One drive, the files were not in the correct folder as one drive didn't download them, so I have to move the IISExpress folder (copying all structure folders and files) and set the new path in environment variables with this:

setx IISSERVER_CONFIG_PATH "C:\IISExpress\config"
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): I face the same problem
  • Low reputation (0.5):
Posted by: cflorenciav

79436824

Date: 2025-02-13 15:19:12
Score: 2.5
Natty:
Report link

I had a similar problem, so I'm posting my solution in case it helps someone facing the same issue related to Laravel Livewire events.

In my case, none of the commonly suggested solutions worked, such as removing data-dismiss from submit button, adding aria-bs-backdrop="false", add wire:submit.prevent to form action.. etc.

The solution was simply to add wire:ignore.self to the Bootstrap modal HTML element. For example:

 <div class="modal fade" id="newtargetModal"
       tabindex="-1" role="dialog"
       aria-labelledby="newtargetModalLabel" wire:ignore.self>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (1):
Posted by: vvave vvave

79436817

Date: 2025-02-13 15:16:11
Score: 1.5
Natty:
Report link

I find this extremely annoying too, particularly when I am attempting to copy text, unfortunately I wasn't able to find any permanent fix.

The best solution I have found is simply pressing the [Alt] key to close the tooltip window. Doing this allows me to view/click the text without the tooltip popping up again. Technically all this is doing is highlighting the file level menus instead of the editor view but it is effective because it is refocussing the cursor.

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

79436805

Date: 2025-02-13 15:12:10
Score: 4.5
Natty: 4
Report link

How to publish if using eclipse paho java library

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Gaurav

79436804

Date: 2025-02-13 15:12:10
Score: 0.5
Natty:
Report link

I have this solution for invoice application, it allow to round positive number (0.005 ==> 0.01) and négative number for credit (-0.005 ==> 0.01)

round(num: number, fractionDigits: number = 2): number {
        if (!isFinite(num)) return num; // Handle NaN, Infinity, and -Infinity

        const factor = Math.pow(10, fractionDigits);
        const result = Math.round((num + Math.sign(num) * Number.EPSILON) * factor) / factor;

        return result === 0 ? 0 : result; // Ensure `-0` becomes `0`
    }

I think something like this could be the solution at the probleme for positive number (0.005=>0.01) and négative number (-0.005 ==> 0):

round(num: number, fractionDigits: number = 2): number {
if (!isFinite(num)) return num; // Handle NaN, Infinity, and -Infinity
if (isNaN(num)) return NaN;

const factor = Math.pow(10, fractionDigits);
return result === 0 ? 0 : Math.round(num * factor) / factor;

}

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

79436802

Date: 2025-02-13 15:12:09
Score: 4
Natty:
Report link

maybe you need to set an instances prop https://vitest.dev/guide/browser/#configuration

Reasons:
  • Probably link only (1):
  • Low length (2):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kei

79436619

Date: 2025-02-13 15:09:09
Score: 0.5
Natty:
Report link

I just found the Solution by accident. I removed the explicit setting of the voncersion exit:

cl_salv_column_table( r_salv-salv->get_columns( )->get_column( <dropdown_columns>-columnname ) )->set_edit_mask( <dropdown_columns>-conv_exit )

and instead, added it to the Domain itself. Then i changed the dropdown values from domvalue_l to ddtext to show the text. Now the automatic check accepts it and the texts are show as wanted, but still uses the ID internally:

Dropdown with text values

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

79436614

Date: 2025-02-13 15:08:09
Score: 2
Natty:
Report link

Yes, agreed with answer above ^ please provide more information on what functionality you want to test and what your expected outcome is. PubSub is very hard to implement testing for unless you're unit testing and can mock EVERYTHING. IF it were me writing this test case I would structure things very differently. A good pubsub architecture Ive implemented recently used a Factory for each topic to publish or subscribe. This would look something like:

    public class TopicFactory{

      @Value("${path.to.topicName}")
      private TopicName topicName;
      
      @Value("${path.to.subscriptionName}")
      private SubscriptionName subscriptionName;
      
      private PubsubTemplate pubsubTemplate;
      

      @AutoWired
      private void TopicFactory(PubSubTemplate template, 
                                ObjectMapper mapper){
        this.pubsubTemplate = template;
        this.mapper = mapper;
      }
      
      
     public String publish(String json){
      PubsubMessage message = new PubSubMessage.data(json.getBytes());
      ListenableFuture<String> id = pubsubTemplate.publish(topicName, message);
      return id.get();
     }
    }
Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: damesdev

79436612

Date: 2025-02-13 15:07:08
Score: 2.5
Natty:
Report link

To make sure @Value does the autoinjection from prop file , as per me the class which is using it must be having a stereotype (as @component, @service etc) and secondingly spring manages the stuff only if class / bean is created by Spring( in other words it must not be having new Keyword )

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Value
  • User mentioned (0): @component
  • User mentioned (0): @service
  • Low reputation (0.5):
Posted by: Parameshwar

79436608

Date: 2025-02-13 15:07:08
Score: 1.5
Natty:
Report link

Go to Settings -> Editor -> Inscpection For both profiles (IDE Default and Project Default), Search & check "Python | Unresolved references" Make sure it is enabled with the below config

  1. Scope: "All Scope"
  2. Severity: "Error"
  3. Highlight in Editor: "Error"
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: k4anubhav

79436606

Date: 2025-02-13 15:06:08
Score: 2.5
Natty:
Report link

Only set. GridView1.OptionsPrint.PrintHorzLines = False GridView1.OptionsPrint.PrintVertLines = False

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

79436597

Date: 2025-02-13 15:03:07
Score: 0.5
Natty:
Report link

Setting Cache-Control headers for the whole app seems to fix the issue.

AWESOME. This worked for me with MicroPie as well.

Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: H. Erd

79436588

Date: 2025-02-13 15:00:06
Score: 1.5
Natty:
Report link

Try downgrading the Clion version to 2024.2.4 or lower, that's how I solved it

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

79436586

Date: 2025-02-13 14:59:06
Score: 2
Natty:
Report link

Thanks to all the comments, you got me moving in the right directions. I finally wound up with this code : round(cast(cast(cast(substring(cast(cast(inv.latitude as int) as varchar),1,2) as int) as numeric) + cast(cast(substring(cast(cast(inv.latitude as int) as varchar),3,2) as int) as numeric)/60 + cast(cast(substring(cast(cast(inv.latitude as int) as varchar),5,4) as int) as numeric)/100/3600 as varchar),5) as "Latitude"

Yes, its bad. But its verified working and unless I can get the DBA to change how he captures/stores data... it is what it is...

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tim Barrera

79436579

Date: 2025-02-13 14:56:05
Score: 1
Natty:
Report link

Setting an Image in a cell using SpreadsheetApp.newCellImage()

Using SpreadsheetApp.newCellImage() do work by using the following methods,.setSourceUrl().build() and here's a code snippet that could help.

function myFunction() {
  const image = "-DataURI-"
  const imageBuild = SpreadsheetApp.newCellImage().setSourceUrl(image).build()
  const sheet = SpreadsheetApp.getActiveSheet();
  sheet.getRange(1, 1).setValue(imageBuild);
}

Sample Output:

Image Output

References:

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

79436578

Date: 2025-02-13 14:56:05
Score: 1
Natty:
Report link

Not really. The HLS demuxer usually provides all streams of an HLS source, video, audio and subtitles, and that's the way it is meant to work. Even with that stream in question it does so, and a transcode output creates a file with both, video and audio (you can't hear the audio, though, likely due to the timestamp errors).

The code you have shown is no more than a workaround and not the way how it's supposed to work.

I can't tell whether the HLS source is malformed in some way or whether it's rather an issue in ffmpeg. Both ways are possible, but due to the fact that it's the first time seeing this, I'd rather suspect the HLS source - if not invalid then probably at least unusual in some way.

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

79436568

Date: 2025-02-13 14:51:04
Score: 2.5
Natty:
Report link

you can design a simple image with paint windows with circle and 2 simple eye and test it....... enjoy it....

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

79436566

Date: 2025-02-13 14:51:04
Score: 3
Natty:
Report link

"One of the best websites I’ve come across! Keep providing such amazing content!" Please read my article mamo coin

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

79436561

Date: 2025-02-13 14:50:03
Score: 2
Natty:
Report link

You misspelled children in AppContext.jsx {props.childern} instead of {props.children}.

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

79436560

Date: 2025-02-13 14:50:03
Score: 3
Natty:
Report link

I use picker on my phone, so I cannot multiselect;I tried it on my computer, it works, maybe picker api is not for mobile --- There is a pending Issue Tracker Post which is a bug related to this post. I suggest hitting the +1 button to signify that you also have the same issue and consider adding a star (on the top left) for Google developers to prioritize the issue.

According to Google's end comment (#3) from [email protected]<[email protected]> :

I have reported this to the engineering team and future updates will be shared here. Thank you for your patience.

Reference: Issue Tracker

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): also have the same issue
  • Low reputation (0.5):
Posted by: leylou

79436557

Date: 2025-02-13 14:49:03
Score: 3.5
Natty:
Report link

This guy specifically asked about ansible so why is everyone giving him the options on the windows side? Clearly he has done this step already.

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

79436554

Date: 2025-02-13 14:48:03
Score: 0.5
Natty:
Report link

you can use this:

from io import StringIO

df = pd.read_csv(StringIO(jobresults))
Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ayub Abuzer

79436549

Date: 2025-02-13 14:46:02
Score: 0.5
Natty:
Report link

Using stream.Readable.fromWeb(readableStream[, options]) one can convert a Web API ReadableStream to a Node.js stream.Readable.

The following code example illustrates how to do that:

const { Readable } = require('node:stream');

// Assuming you have a Web API ReadableStream named webReadableStream
const nodeReadable = Readable.fromWeb(webReadableStream);
});

This function is available since Node.js version 17, but at the time of writing, in the most recent version of Node.js version 23, but only available as an experimental function (not available by default).

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

79436528

Date: 2025-02-13 14:41:01
Score: 2
Natty:
Report link

To fix my issue, looks like it's running files found in miniconda3/etc/conda/activate.d.There is a file there called oracle-instant-client_activate.sh, which checks for the instant client folder and if it doesn't see it, it downloads the instant client from Oracle's website. I deleted this file and now my problem is gone. There were lots of other files in this directory, too, including env_var.sh, where I decided to set some environment variables.

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

79436526

Date: 2025-02-13 14:39:00
Score: 3.5
Natty:
Report link

I know old but someone may need it cd ..\\.. = 2 up

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

79436520

Date: 2025-02-13 14:36:59
Score: 5
Natty: 5
Report link

Just curious, but can the display of the photo gallery be changed in any way for a PWA on Android or iOS? Ex. can the images be enlarged?

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

79436512

Date: 2025-02-13 14:33:58
Score: 1
Natty:
Report link

Well, I found another way to solve it

Since I there is specific user for this connection, I found that I can set the schema "at user level" with:

ALTER USER <my user> SET SEARCH_PATH TO <my schema>

With this, connections made through my linkedservice with that specific user, will be set to the desired schema transparently

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

79436509

Date: 2025-02-13 14:31:58
Score: 2.5
Natty:
Report link

Hey I had this issue on safari due to private relay:

safari settings -> privacy -> hide ip address

This needs to be disabled for the login flow to work.

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

79436497

Date: 2025-02-13 14:27:57
Score: 3.5
Natty:
Report link

I managed to fix it. The solution was to wrap the path variables in parenthesis and encoding a few of the ":" in the path as well as using a comma instead of ampersand between the variables.

Documentation example: https://api.linkedin.com/rest/adAccountUsers/account=123456789&user=ABCABCABCAB

Working: https://api.linkedin.com/rest/adAccountUsers/(account:urn%3Ali%3AsponsoredAccount%3A123456789,user:urn%3Ali%3Aperson%3AABCABCABCAB)

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

79436493

Date: 2025-02-13 14:26:57
Score: 1
Natty:
Report link

Same problem. So far only Oracle's java extension formatter seems to be recognised by VSCode properly. This is what worked for me:

"[java]": {
    "editor.defaultFormatter": "Oracle.oracle-java"
 },

I took Molly's suggestion to generate a new default java-formatter.xml, but that didn't work either.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (1): Same problem
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lee Shu Yun

79436482

Date: 2025-02-13 14:23:56
Score: 0.5
Natty:
Report link

Make two sheets that connect to each data source, place both in a container on your dashboard. Use a Dynamic Visibility Zone to switch the sheets depending on the user parameter. You cannot have a single sheet change the data source with a parameter but this gives you the same effect.

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

79436481

Date: 2025-02-13 14:22:56
Score: 2
Natty:
Report link

They are trying to replicate an App Store and it is very bad to say that they are annoying all developers. App is rejecting continously without proper clarification. Only reason they says that Permissions. No other details provided like which or what one need to be edited.

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

79436477

Date: 2025-02-13 14:21:55
Score: 2.5
Natty:
Report link

[step]="0" worked for me

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Teun

79436472

Date: 2025-02-13 14:19:54
Score: 5.5
Natty:
Report link

Just saw this article on Ligolo Pivoting: https://www.stationx.net/how-to-use-ligolo-ng/. Not sure if that helps!

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Michael Chan

79436469

Date: 2025-02-13 14:19:54
Score: 1
Natty:
Report link

The problem is solved by making the arguments optional:

#[derive(Args)]
#[group(required = true, multiple = false)]
struct Exclusive {
    #[arg(short)]
    a: Option<u8>,

    #[arg(short)]
    b: Option<u8>,
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Markus Grunwald

79436468

Date: 2025-02-13 14:18:54
Score: 3
Natty:
Report link

I have an working solution for this at - https://stackoverflow.com/a/79436047/18230058.

We can retrive any version from package.json by extracting the value during build time. this requires no changes from tsconfig & can be easily done with a simple file fetch and file update script. Please refer above link for complete solution.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: praneeth mandalemula

79436458

Date: 2025-02-13 14:16:53
Score: 3
Natty:
Report link

Try this fork of react-native-fast-image https://www.npmjs.com/package/@d11/react-native-fast-image

Reasons:
  • Whitelisted phrase (-1): Try this
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Devansh Saini

79436455

Date: 2025-02-13 14:16:53
Score: 1
Natty:
Report link

My issue was actually about the NDK. I solved by uninstalling it, as described here.

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

79436454

Date: 2025-02-13 14:16:53
Score: 1.5
Natty:
Report link

rtype function(vector<int> (&G)[]) { ... } . . vector<int> G[N];

also works. I use C++ 23(GCC 14.2, msys2)

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

79436450

Date: 2025-02-13 14:14:52
Score: 1.5
Natty:
Report link

Try this

Inside /App_Start/RouteConfig.cs

change: setting.AutoRedirectMode = RedirectMode.Permanent; to: settings.AutoRedirectMode = RedirectMode.Off;

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: mar aq

79436447

Date: 2025-02-13 14:13:52
Score: 0.5
Natty:
Report link
using         ptr_arr_using = int(*)[];  // pointer to array <-- answer
typedef int (*ptr_arr_typedef)[];        // pointer to array
typedef int  *arr_ptr_typedef [];        // array   of pointers
using         arr_ptr_using = int*[];    // array   of pointers

#include <type_traits>
static_assert( std::is_same_v<arr_ptr_using, arr_ptr_typedef>); // array   of pointers
static_assert( std::is_same_v<ptr_arr_using, ptr_arr_typedef>); // pointer to array

static_assert(!std::is_same_v<arr_ptr_using, ptr_arr_using  >); // arr_ptr != ptr_arr

What hinted me to this

An example "alias template" from https://en.cppreference.com/w/cpp/language/type_alias

template<class T> using ptr = T*;
using ptr_arr_using_template = ptr<int[]>; // then IDE showed `int(*)[]` hint

Aid Material

"The Clockwise/Spiral Rule" by David Anderson https://c-faq.com/decl/spiral.anderson.html

Will explain how to "parse complex declarations in your head". This time C typedef is slightly more readable vs C++ using since it helps to locate the parsing entry point faster (by typename).

So () brackets control the order of things during the declaration process.

Overkill example:

const int *volatile(*const(*const volatile)[1])[2]
// cv*->[1]->с*->[2]->v*=>cT // T=int
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: int main

79436432

Date: 2025-02-13 14:10:51
Score: 0.5
Natty:
Report link

My mistake here was running this on iphone simulator, posting the answer so the next person does not have to go through what I went through, for FCM to work, you do not need the Swift code, just let the swift code be originally what it was unless you have your own native code, then run the app on a real device/iphone.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: lulliezy

79436426

Date: 2025-02-13 14:07:50
Score: 5
Natty:
Report link

Where did you define x and please explain what you want to do more clearly. Your loop will work from 0 to 10 including 9. Here you will square your x value as long as it is less than 5, otherwise you will increase it by one but I don't see your x value changing in the loop. You are just increasing the loop number by increasing it well. I don't understand what kind of result you want

Reasons:
  • RegEx Blacklisted phrase (2.5): please explain what you
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Where did you
  • Low reputation (1):
Posted by: Anka

79436421

Date: 2025-02-13 14:06:50
Score: 2.5
Natty:
Report link

Migrate from Dynamic Links to App Links & Universal Links.

This migration guide focuses on using App Links and Universal Links, optionally using Firebase Hosting to host your app-site association files.

This migration replaces the following Firebase Dynamic Links features:


Feature Firebase Dynamic Links         | App Links   |  Universal Links
==============================================================================
Route users to the correct store for   |             |
their device from a single link click  |    Yes      |      No*
---------------------------------------+-------------+------------------------
Provide users with a continuation of   |             |
journey after downloading and          |     Yes     |      No*
installing your app using a deferred   |             |
deep link                              |             |    
---------------------------------------+-------------+------------------------
Provide users with a contextual        |             |
experience using deep-linked content   |     Yes     |      Yes
in your app (when already installed)   |             |  
---------------------------------------+-------------+------------------------
Provide analytics data related to      |     Yes     |      No
dynamic link click events              |             |
---------------------------------------+-------------+------------------------      
Provide the ability to create short    |     Yes     |      No
link URLs                              |             |
---------------------------------------+-------------+------------------------

If you continue to need other Firebase Dynamic Link features for your migration that aren't supported in this guide, see other migration scenarios in the Dynamic Links Deprecation FAQ documentation.

Suppose you have a Firebase Dynamic Link that looks like this:

Dynamic Link Example

Link name          | Welcome to Example.com
-------------------+------------------------------------
Deep link          | https://example.web.app/welcome
Android app        | com.example.android
Apple app          | com.example.ios
Long Dynamic Link  | https://example.page.link/?link=https://example.web.app/welcome&apn=com.example.android&isi=123456789&ibi=com.example.iuos
Short Dynamic Link | https://example.page.link/m9Mm
-------------------+------------------------------------

The goal of this migration guide is to replace Firebase Dynamic Links like this:

https://example.page.link/m9Mm

With App Link / Universal Link deep links that look like this:

https://your-project-domain.web.app/welcome

Note that the App Link / Universal Link deep link will provide the following to your users:

However, the App Link / Universal Link deep link will not provide the following behaviors for your users (which Firebase Dynamic Links previously did):

Note the differences in behavior and functionality of these App Links / Universal Links compared to Firebase Dynamic Links called out in the table above.

For more detail see this link

reference: Google Firebase Migration support

Reasons:
  • Blacklisted phrase (1): this guide
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): see this link
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Manthan Kanani

79436420

Date: 2025-02-13 14:06:50
Score: 2
Natty:
Report link

I just found a solution that worked for me, if you are using aos-animate in a div try using it in a next the div in a Link element and use aos-animate in the link element

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Stephen olise

79436409

Date: 2025-02-13 14:02:48
Score: 1
Natty:
Report link

Oh well, poor OT.

On the surface, this looks like a simple scenario. But in version control, for this type of impulses, there are no simple scenarios.

Start with thinking about what you really want:

With that out of the way, the OP asked specifically for the commits to be gone, even though I'd ask back: are you sure? Are you really sure?

And then it gets complicated. What do mean by 'commits be gone'? git rebase -i gives you options and not everything is what you think it is:

  1. A commit is a visible step in the version history
  2. A commit is a captured and frozen change of any number of files managed in the git repository. If you really are only interested in the visible history of commits, you do not want to use 'git rebase -i' to 'drop' or delete a line, but rather use 'squash' to make it look like it never happened. If you really are sure that all the lines you added in any file have that unmistakable smell of doom to them, then you might think the right thing to do is to delete or 'drop' the commits. Just be aware that the real pain is not over, but it starts here.

A) Dropping a commit will then lead to conflicts with subsequent commits where git tries to apply them. That is the very nature of version control, i.e. the frozen change of state of any number of files. Applying a commit where it doesn't fit will not work in many cases and the more changes, the more conflicts.

B) Did any of the responses mention branches? All your branches will still be there, with all their history. 'git rebase -i' lets you make changes to one branch (e.g. main), but will not affect your branches and branch points. Which is good, as otherwise you couldn't play with the commits that you branched from. But it is bad if you were trying to conceal the commits. They are all still there in the branches!!!

C) Are you working collaboratively with anyone? Are you aware of git push/pull? This is at the heart of git. And what you are suggesting is pulling the rug out from under your buddies feet. They are sure to want to return that favor.

Good luck.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Martin F Schulz

79436408

Date: 2025-02-13 14:02:48
Score: 0.5
Natty:
Report link

There is no need to guess, Prisma has documented their naming conventions:

Model names must adhere to the following regular expression: [A-Za-z][A-Za-z0-9_]*

Model names must start with a letter and are typically spelled in PascalCase

Model names should use the singular form (for example, User instead of user, users or Users)

And model fields:

Must start with a letter

Typically spelled in camelCase

Must adhere to the following regular expression: [A-Za-z][A-Za-z0-9_]*

https://www.prisma.io/docs/orm/reference/prisma-schema-reference#naming-conventions

You don't have to map your table and column names. You can ignore them and aim for optimal developer experience by letting Prisma handle the names.

As for the error, if you first started with one naming convention and later changed it, you must also sync your DB schema or write a migration.

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

79436403

Date: 2025-02-13 14:00:48
Score: 2
Natty:
Report link
 useEffect(() => {
    if (process.env.NODE_ENV === 'development') {
      import('jotai-devtools/styles.css');
    }
  }, []);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: zhihiong

79436402

Date: 2025-02-13 14:00:48
Score: 0.5
Natty:
Report link

When you have structure like you said

/ mysite.com
 ├─ app
 │ ├─ index.html
 │ └ ...
 └ .htaccess

You need to make sure that all your requests asking for documents (text/html) sent to mysite.com/app and any subsequent segments, are being redirected to mysite.com/app/index.html. To set up this configuration, you need to add some RewriteCond in your .htaccess.

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /

  # Browsers will specifically ask for HTML (among other things) on initial page load
  # That is, if the *user* tries to access a *nonexisting* URL, the app is loaded instead
  # but if a webpage attempts to load a missing resource it will return 404.

  # if (HTTP_ACCESS.contains('text/html') && file_not_exists(REQUEST_FILENAME))
  RewriteCond %{HTTP_ACCEPT} text/html
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_URI} app [NC]
    RewriteRule ^app/.*$ /app/index.html [E]

  # If you have a fallback document under mysite.com directory.
  RewriteRule ^ - [L]
</IfModule>

Special thanks to VLRoyrenn for the explanation, you can find the answer here.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you have
  • Low reputation (1):
Posted by: batucha

79436400

Date: 2025-02-13 13:59:48
Score: 0.5
Natty:
Report link

Did you check the netFrameworkVersion value in your Logic App's template (click Export template)?

If it's set to "v6.0" you can amend the ARM template to set it to "v8.0".

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • High reputation (-1):
Posted by: 10p

79436393

Date: 2025-02-13 13:57:47
Score: 1
Natty:
Report link

It seems that the Microsoft Interop Toolkit 2.1 fixes all these specific problems. There is no official support for Visual Studio 2019 (in which I develop) but the InteropFormProxyGenerator on GitHub has an extension that can help you with that.

Please make sure that you reference the Microsoft.InteropFormTools dll in your project so that the actual helper modules can do their work.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Martin

79436386

Date: 2025-02-13 13:55:46
Score: 1
Natty:
Report link
 SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
    systemNavigationBarColor: Colors.blue, 
  ));

instead of Blue, you can enter your required color and add this code in main()

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

79436384

Date: 2025-02-13 13:55:46
Score: 0.5
Natty:
Report link

Turns out there was a problem with converting the .rpm package with alien.

I didn't include the --scripts parameter.

Here's how the package should be converted to .deb

sudo alien --scripts --to-deb oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm

I nearly managed to make the configuration work but it is a hell to make it work on debian, I think I'll look for alternative distros on which run this database.

Here's an article that pointed me towards the semi-solution.

https://www.baeldung.com/linux/debian-oracle-database-express-edition-xe

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

79436365

Date: 2025-02-13 13:50:45
Score: 0.5
Natty:
Report link

You get the error: "The argument type 'double?' can't be assigned to the parameter type 'double'." Because double.tryParse() returns nullable double (double?) "meaning it can be null if parsing fails" And the parameter is type is non-nullable double (double) "meaning it always has a value and never can be null".

To fix this you have 2 options:

  1. Choose a value to be used in case of null: double x = double.tryParse('1.23') ?? 0.0; Here the double x won't be null even if double.tryParse() returns null the value 0.0 will be used.

  2. Use null assertion operator (!) since you checked if enteredStartingMiles == null and handled that case, in the following lines of code you can say "trust me enteredStartingMiles is not null" by adding (!) at the end of variable name enteredStartingMiles!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mahmoud Alawady

79436361

Date: 2025-02-13 13:48:45
Score: 1
Natty:
Report link

you need to add a unique key to the component, e.g item.raw.id

<template #item.e_created_at="{ item }">
  <event-date :key="item.raw.id" :initialDate="item.raw.e_created_at" />
  {{ item.raw.e_created_at }}
</template>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sveta

79436360

Date: 2025-02-13 13:48:45
Score: 1
Natty:
Report link

You swapped the X and Y function arguments, so you're passing the latitude as longitude, and the longitude as latitude. See the docs for how to use this function: https://osmnx.readthedocs.io/en/stable/user-reference.html#osmnx.distance.nearest_nodes

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

79436351

Date: 2025-02-13 13:46:44
Score: 5.5
Natty: 5
Report link

Is it another convention to put '__' on some function or is it a misuse of the variable naming convention ?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is it another
  • Low reputation (1):
Posted by: Rama Suntharasarma