79176147

Date: 2024-11-11 01:34:02
Score: 2
Natty:
Report link

When you use mpirun -np 3 . /foo, MPI creates 3 processes for your program, each running on a separate core. Even if your system has multiple cores, MPI may assign multiple processes to cores on the same CPU, not necessarily on different CPUs. Each core is like a mini-processor that can handle tasks independently. For example, if you have 1 CPU with 4 cores, you could run up to 4 tasks concurrently on those cores. With -np 3, MPI distributes your processes across available cores, but not necessarily on different CPUs.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you use
  • Low reputation (1):
Posted by: Christian Peña Granillo

79176137

Date: 2024-11-11 01:14:59
Score: 2
Natty:
Report link

If we choose mouse click tab then we will have to click on the action button so that it perform action that is assigned to it.

If we choose the mouse over tab than we can have the mouse pointer over the action button and it will perform the action to it

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

79176136

Date: 2024-11-11 01:12:59
Score: 1
Natty:
Report link

I understand your confusion. That's because every peace of code in your class which is enclosed with either " or """ (called string literal and text block respectfully) are beeing added into String Pool during compile time. Whereas the keyword "new" doesn't add anything into String Pool instead it creates a reference to an object of type String and puts it somewhere into the memory heap during runtime. String literal "Java" and variable s1 point to different objects in heap memory so that's why you have to use String.intern when comparing them during runtime.

The only time when String.intern adds new string into the String Pool is when it doesn't already contain that exact string.

Source: java specification §3.10.5.

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

79176132

Date: 2024-11-11 01:06:58
Score: 3.5
Natty:
Report link

using Gtk4 ... show(win) This code is working, thanks Sundar

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nenad Stevanovic

79176127

Date: 2024-11-11 01:02:57
Score: 2
Natty:
Report link

Thanks Phil I tried to pull my image with the latest tag it was not existed because of the image name there should be e in aiftikhar instead of I

image: aiftekhar/platformservice:latest 

i ran again and it works thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Asad Iftikhar

79176107

Date: 2024-11-11 00:43:54
Score: 1
Natty:
Report link

Now there is a scanIterator() function in the redis client library that returns an async generator.

This makes it a lot easier to iterate over records using the for await syntax.

for await (const key of client.scanIterator({ MATCH: 'key-prefix:*' }) {
    console.log(key);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zicklag

79176106

Date: 2024-11-11 00:43:54
Score: 1
Natty:
Report link

replace

implementation com.wang.avi:library:2.1.3

as it is not working now.

with

implementation io.github.maitrungduc1410:AVLoadingIndicatorView:2.1.4

it should be working successfully.

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

79176103

Date: 2024-11-11 00:41:53
Score: 2
Natty:
Report link

I read the comments above, but it took me hours to finally realize the "configName" people are talking about is actually referring to the name of the push provider you setupped.

enter image description here

In flutter it's

streamChatClient.addDevice(
_token,
 PushProvider.firebase,
 pushProviderName: "FirebasePsDev" //THIS
)
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Climactic

79176102

Date: 2024-11-11 00:41:53
Score: 1.5
Natty:
Report link

The /public folder is meant to store static files (JavaScript, CSS, images etc), so using it to serve dynamically uploaded files isn't a great solution.

You'd need to store the files on an external service, e.g. AWS S3. Then you can store the URL to access it in your DB, and fetch the file from S3 with that URL whenever a user requests it.

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

79176099

Date: 2024-11-11 00:39:53
Score: 1
Natty:
Report link

after a few hours of reading nextjs official docs, i figured out the root cause is the router, I changed my router page to align with nextjs doc, and the issue got fixed.

Reasons:
  • Whitelisted phrase (-2): i figured out
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Gilbert

79176095

Date: 2024-11-11 00:35:52
Score: 1.5
Natty:
Report link

Ensure that Git is using UTF-8 for commit metadata. You can explicitly configure Git to use UTF-8 with the following command:

git config --global i18n.commitEncoding UTF-8
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Max AB

79176086

Date: 2024-11-11 00:25:50
Score: 1
Natty:
Report link

Building off of 0stone0's answer (with some added stuff to make the scroll more smooth and testing all the pointer events).

// scroll bar functionality for fixed element
// https://stackoverflow.com/questions/41592349/allow-pointer-click-events-to-pass-through-element-whilst-maintaining-scroll-f#
function scroller(event) {
  scrollable = document.getElementById("scrollable");
  switch (event.deltaMode) {
    case 0: //DOM_DELTA_PIXEL       Chrome
      scrollable.scrollTop += event.deltaY
      scrollable.scrollLeft += event.deltaX
      break;
    case 1: //DOM_DELTA_LINE        Firefox
      scrollable.scrollTop += 15 * event.deltaY
      scrollable.scrollLeft += 15 * event.deltaX
      break;
    case 2: //DOM_DELTA_PAGE
      scrollable.scrollTop += 0.03 * event.deltaY
      scrollable.scrollLeft += 0.03 * event.deltaX
      break;
  }
  event.stopPropagation();
  event.preventDefault()
}

document.onwheel = scroller;


// scroll to an item that inside a div
//   https://stackoverflow.com/questions/45408920/plain-javascript-scrollintoview-inside-div
function scrollParentToChild(parent, child, threshold = 0) {
  // Where is the parent on page
  const parentRect = parent.getBoundingClientRect();
  // What can you see?
  const parentViewableArea = {
    height: parent.clientHeight,
    width: parent.clientWidth,
  };
  // Where is the child
  const childRect = child.getBoundingClientRect();
  // Is the child viewable?
  const isViewableVertically = childRect.top >= parentRect.top &&
    childRect.bottom <= parentRect.top + parentViewableArea.height;
  const isViewableHorizontally = childRect.left >= parentRect.left &&
    childRect.right <= parentRect.left + parentViewableArea.width;
  // if you can't see the child try to scroll parent
  if (!isViewableVertically || !isViewableHorizontally) {
    // Should we scroll using top or bottom? Find the smaller ABS adjustment
    const scrollTop = childRect.top - parentRect.top;
    const scrollBot = childRect.bottom - parentRect.bottom;
    const scrollLeft = childRect.left - parentRect.left;
    const scrollRight = childRect.right - parentRect.right;
    if (Math.abs(scrollTop) < Math.abs(scrollBot) && Math.abs(scrollLeft) < Math.abs(scrollRight)) {
      // we're nearer to the top and left of the list
      parent.scrollTo({
        top: parent.scrollTop + scrollTop - threshold,
        left: parent.scrollLeft + scrollLeft - threshold,
        behavior: 'smooth',
      });
    } else {
      // we're nearer to the bottom and right of the list
      parent.scrollTo({
        top: parent.scrollTop + scrollBot + threshold,
        left: parent.scrollLeft + scrollRight + threshold,
        behavior: 'smooth',
      });
    }
  }
}
html,
body {
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: pink;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#stage-layer {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: yellow;
  margin: 0;
  padding: 0;
}

#application-layer {
  position: relative;
  height: 100%;
  margin: 0;
  padding: 0;
}

rect:hover {
  fill: blue;
}

#scrollable {
  position: relative;
  overflow: auto;
  color: hotpink;
  height: 100%;
  width: 100%;
  background-color: blue;
  padding-left: 0;
}

p:hover {
  color: white;
  transform: translateX(20px);
  transition: 0.3s;
}

.menu {
  position: fixed;
  background-color: red;
  width: 100px;
  z-index: 100;
}

.hover:hover {
  background-color: orange;
}
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="styles.css">
  <title>Blank HTML</title>
</head>

<body>
  <div class="container">
    <svg id="stage-layer">
            <rect></rect>
        </svg>
    <div id="application-layer">
      <div class="menu">
        <p onClick="scrollParentToChild(document.getElementById('scrollable'), document.getElementById('first'));">
          go to top of page</p>
        <p onClick="scrollParentToChild(document.getElementById('scrollable'), document.getElementById('last'));">
          go to bottom of page</p>
      </div>

      <div id="scrollable">
        <li id="first">_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li class="hover">HOVER TEST</li>
        <li>_________</li>
        <li>_________</li>
        <li><a class="link" href="https://www.google.com/">LINK TEST</a></li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li id="last">_________</li>
      </div>

    </div>
  </div>
  <script src="/website/test/scripts.js"></script>
</body>

</html>

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

79176082

Date: 2024-11-11 00:18:49
Score: 1
Natty:
Report link

1. Enable the CDP (Chrome Devtolls Protocol) monitor.

Settingsd Enable CDP monitor enter image description here

2. Go into the Protocol Monitor Tab

Open Protocol Tab

3. Open the side panel

Open Protocol Monitor Side Panel

4. Set the target to Main

Set the Target to Main

5. Send the command for the CPU throttling

Select CPU Throttling command Send

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

79176072

Date: 2024-11-11 00:12:47
Score: 2.5
Natty:
Report link

As pointed out - while loop was never reached. Messed up a variable. but thankfully my main question of what to do instead of this was also answered - Refactor using after to manage recurring tasks. – OysterShucker

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

79176061

Date: 2024-11-11 00:05:46
Score: 2.5
Natty:
Report link

The entire software was clearly explained to me over the mail. They supplied everything they had promised in such a way that it is all so simple. I highly recommend hackerspytech @ g ma il co m hacking network security to anyone who is thinking of getting a hack job completed

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

79176052

Date: 2024-11-10 23:58:44
Score: 2
Natty:
Report link

Thank you all for this great thread, it was very helpful as I also needed to automate code signing with a YubiKey. In case someone else finds it useful, here's a Linux Docker container project that takes care of all the dependencies, with a web service based on the one suggested in this thread, using osslsigncode, plus HTTPS and basic authentication:

https://github.com/cloudbase/signsvc

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • No code block (0.5):
  • Low reputation (1):
Posted by: user28229957

79176045

Date: 2024-11-10 23:52:43
Score: 1
Natty:
Report link

Solved:

sRestURL = "https://graph.microsoft.com/v1.0/users/MAILBOX/mailFolders/inbox/messages?$expand=singleValueExtendedProperties($filter=Id eq \'LONG 0x0E08\')&$count=true&$search=\"from:\\\"greet\\\"\"";
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Frederik Gysel

79176042

Date: 2024-11-10 23:49:42
Score: 0.5
Natty:
Report link

I found the issue, It was simple, the uploadFlagToCustomer() function is inside a ViewModel and I am calling this function from an AlertDialog.Builder. when I removed that AlertDialog, its inserting value to SQLite.

Below is the code on the Activity

    private fun callDialog(database, flags) {
    flagViewModel.uploadFlagToCustomer(database, flags)
 /*   val bl = AlertDialog.Builder(this)
    bl.setTitle("Save/Clear Flags?")
    bl.setNeutralButton("Clear", null)
    bl.setPositiveButton(
        "Save & Exit"
    ) { dialog: DialogInterface?, _: Int -> flagViewModel.uploadFlagToCustomer(database, flags) }
    val d: Dialog = bl.create()
    d.setCanceledOnTouchOutside(false)
    d.setCancelable(false)
    d.setOnDismissListener { _: DialogInterface? ->
        flagViewModel.clearFlags(routeId)
    }
    d.show()*/
}

There was no issue with the SQlite it was this part that caused the problem

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jisa Joy

79176039

Date: 2024-11-10 23:47:42
Score: 1
Natty:
Report link

UFFI is abandoned. I use cffi-uffi-compat with CLSQL and it works well. Just make certain CFFI is loaded before you load CLSQL. You can do that with (asdf:load-system :cffi). Use (ql:quickload :cffi) if you don't already have it downloaded.

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

79176012

Date: 2024-11-10 23:20:37
Score: 3
Natty:
Report link

Same here... New Expo-project with a Drawer/(tabs) routing this is how it looks

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

79175996

Date: 2024-11-10 23:04:35
Score: 1.5
Natty:
Report link

If you are doing it from the child theme, you may want to replace the template. for example copy your current - single-post.php (or for custom post type "single-{custom-post-type}.php") and replace those elements, easiest way actually.

Other solution you may try - ob_start() on 'wp_head' them ob_get_clean() in the 'wp_footer'.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Артур Димерчан

79175992

Date: 2024-11-10 22:59:34
Score: 1.5
Natty:
Report link

I have come across the same problem, I think the only way was to use PostgreSQL wire protocol. But if the flag pg.security.readonly is set to true, you will need to change it. You will also need to run it in a retry/backoff loop to avoid the table busy [reason=insert] error.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mert Yılmaz

79175980

Date: 2024-11-10 22:51:32
Score: 1
Natty:
Report link

I just found that I also have this issue. The problem with the green-checked answer is that Alt+J is used for finding the Next Occurrence and it conflicts with that. I use that shortcut a lot when using the Multiple Cursors feature.

And I set Shift+K for showing the pop-over on my code (an equivalent to when you hover on the variables, classes, etc.).

So, I'm going with the Ctrl+N for Down (Next) and Ctrl+P for Up (Previous). I won't need to go left or right in the menus anyway. And, in my experience, I don't use the existing keymaps for Ctrl+N and Ctrl+P. I've never knew about them.

I'm more happy with this choice and don't see a point in going left or right in the tool windows or other menus.

Cheers.

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Eiliya Abedianamiri

79175973

Date: 2024-11-10 22:48:31
Score: 3.5
Natty:
Report link

You are missing the @Validated annotation on your @RestController. Without it SpringMVC doesn't validate parameters of your methods.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Validated
  • User mentioned (0): @RestController
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Chasca

79175970

Date: 2024-11-10 22:46:30
Score: 3.5
Natty:
Report link

Maybe the parent element of Tab.Screen has a color white set

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

79175968

Date: 2024-11-10 22:45:30
Score: 3.5
Natty:
Report link

thatk can't be achieved as string can not be transformed into date or datetime

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

79175962

Date: 2024-11-10 22:41:29
Score: 0.5
Natty:
Report link

Unfortunately, there is currently (as of Firefox 132.0) no option to control the alignment of the side panels. And the threshold is actually hardcoded.

Therefore, I've now filed a feature request to provide some control over the layout of the Inspector side panels.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-2):
Posted by: Sebastian Zartner

79175952

Date: 2024-11-10 22:33:27
Score: 0.5
Natty:
Report link

In my case I was able to significantly reduce DLL size by changing compilation method and IDE.

First I tried to compile using Cmake in CLion IDE and the DLL size was always above 2 MB. Then I compiled the same code using default settings in Visual Studio 2022 and I was able to reduce DLL size to 11 KB.

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

79175941

Date: 2024-11-10 22:25:25
Score: 4.5
Natty: 5
Report link

Я тоже хочу убрать это раздражающее окно. Ранее, на android 13 это помогало. С android 14 они исправили ошибки, но теперь не могу убрать эту раздражающую штуку. Если кто сможет помочь, буду благодарен. Device TANK 3 pro

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

79175940

Date: 2024-11-10 22:22:25
Score: 1
Natty:
Report link

@GeekyGeek's response is correct and it works.

however, I just wanted to share that I found another solution from this link. I tested out the suggestion and it works like a charm - you can KEEP your collections.add() statement.

However, you're still required to install onnxruntime but no need to specify the onnxruntime version and it should work (I use the latest Nov 2024 version).

pip install onnxruntime

Here is the updated code - I tested it with your collection.add() statement and it works:

# add this import statement 
from chromadb.utils.embedding_functions.onnx_mini_lm_l6_v2 import ONNXMiniLM_L6_V2

# create an embedded function variable 
ef = ONNXMiniLM_L6_V2(preferred_providers=["CPUExecutionProvider"])

# finally, pass the embedding_function parameter in your create_collection statement
collection = client.get_or_create_collection("my_collection", embedding_function=ef)


# now you can run your collection_add() statement successfully
collection.add(
    documents=[
        "This is a document about machine learning",
        "This is another document about data science",
        "A third document about artificial intelligence"
    ],
    metadatas=[
        {"source": "test1"},
        {"source": "test2"},
        {"source": "test3"}
    ],
    ids=[
        "id1",
        "id2",
        "id3"
    ]
)
Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @GeekyGeek's
  • Low reputation (0.5):
Posted by: punsoca

79175935

Date: 2024-11-10 22:17:21
Score: 6 🚩
Natty: 5.5
Report link

Are you still using this strategy?

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

79175924

Date: 2024-11-10 22:09:19
Score: 2
Natty:
Report link

To transfer data between CANoe and external server running on UDP you have to configure fdx xml and enable fdx in CANoe options so that it runs as server. fdx sample fdx Based on this you can form a UDP packet and send data you wanted to send to CANoe and vice versa

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

79175917

Date: 2024-11-10 22:06:18
Score: 2
Natty:
Report link

I do not think you can do this using the out of the box list forms, you can customize the using Power Apps, which will allow you to have a dropdown list inside the form then you can pass the drop down selection into your single line.

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

79175883

Date: 2024-11-10 21:45:12
Score: 6 🚩
Natty: 5.5
Report link

Are you still using this strategy?

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

79175880

Date: 2024-11-10 21:44:12
Score: 3
Natty:
Report link

In today’s complex financial landscape, finding a reliable financial service provider can be challenging. Whether you’re an individual looking to manage personal wealth or a business aiming to optimize its financial operations, having a trusted partner is essential. Swift Funds Financial Services has become a notable name in this space, offering a range of tailored solutions to meet diverse financial needs. In this article, we’ll explore the key services Swift Funds provides and why they might be a great fit for you.

Reasons:
  • Blacklisted phrase (1): this article
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sofia Alice

79175869

Date: 2024-11-10 21:39:11
Score: 3.5
Natty:
Report link

Just use the autocomplete from this git repo: https://github.com/marlonrichert/zsh-autocomplete

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

79175861

Date: 2024-11-10 21:37:10
Score: 1
Natty:
Report link

I am already using Spring Boot 3.2.6, and the same problem occurred. These dependencies fixed my problem:

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.10'
implementation 'io.swagger.core.v3:swagger-core:2.2.10'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Farid Guluzade

79175856

Date: 2024-11-10 21:36:10
Score: 2
Natty:
Report link

To transfer data between CANoe and external server runninng on UDP you have to configure fdx xml and enable fdx in CANoe options so that it runs as server. UDP_datagram fdx sample

based on this you can form a UDP packet and send data you wanted to send. and you can send data via UDP back to CANoe

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

79175834

Date: 2024-11-10 21:19:06
Score: 1.5
Natty:
Report link

Found the answer:

I added to /opt/homebrew/Cellar/octave/9.2.0_1/share/octave/site/m/startup/octaverc the lines:

setenv("PYTHON", "/opt/homebrew/bin/python3")
setenv("PYTHONPATH", [getenv("HOME")"/.local/pipx/venvs/sympy/lib/python3.13/site-packages"])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: malligator

79175829

Date: 2024-11-10 21:17:06
Score: 0.5
Natty:
Report link

One of the ways I have found is using Hashicorp Vault as a secrets engine for minting Cloudflare Access service tokens. This Vault plugin allows you to manage Cloudflare tokens.

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

79175827

Date: 2024-11-10 21:16:05
Score: 1.5
Natty:
Report link

This error occurs because PowerShell has a security policy that restricts the execution of certain scripts, including the npm.ps1 script, which is part of the Node.js installation. By default, the PowerShell execution policy may be set to "Restricted" or "AllSigned," preventing these types of scripts from running.

Here's how to solve it:

Solution 1: Change PowerShell's Execution Policy Temporarily You can bypass this policy temporarily by changing the execution policy for the current session only:

Open PowerShell as Administrator. Run this command: powershell

Copy code "Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass"

Now, run the npm --version command again to check if it works. This method only changes the execution policy for the current session, so you won’t need to modify the system policy permanently.

Solution 2: Change PowerShell's Execution Policy Permanently If you prefer a more permanent solution, you can change the execution policy on your system:

Open PowerShell as Administrator. Run this command: powershell

Copy code "Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned"

Confirm by typing Y (Yes) if prompted. This change will allow locally created scripts to run, while still protecting against untrusted remote scripts.

After following either of these solutions, try running npm --version in PowerShell again.

Reasons:
  • Blacklisted phrase (1): how to solve
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: hamza

79175815

Date: 2024-11-10 21:11:04
Score: 0.5
Natty:
Report link

java.time

Today it‘s recommended that you use java.time, the modern Java date and time API, for your time work. Avoid Date and SimpleDateFormat since they had bad design problems (of which you have only seen a little bit) and have been outdated since Java 8, which came out more than 10 years ago.

The correct way to do your conversion depends on whether your string in mm ss.S format denotes an amount of time or a time of day since these concepts are represented by different java.time classes. You would confuse your reader if you used the wrong one.

Converting an amount of time

Since your string does not include any hours, I considered an amount of time up to one hour more likely. For that we need the Duration class. Duration isn‘t very well suited for parsing, so we have a little hand work to do:

    String amountOfTimeString = " 14 37 485";
    String[] parts = amountOfTimeString.trim().split(" ");
    Duration duration = Duration.ofMinutes(Integer.parseInt(parts[0]))
            .plusSeconds(Integer.parseInt(parts[1]))
            .plusMillis(Integer.parseInt(parts[2]));
    System.out.println("Duration: " + duration);
    double seconds = duration.toSeconds() + duration.getNano() / NANOS_PER_SECOND;
    System.out.println("Seconds: " + seconds);

Output from this snippet is:

Duration: PT14M37.485S
Seconds: 877.485

So 877.485 seconds, a positive number as expected. If you like, you may use the first line of output to verify that parsing is correct: PT14M37.485S means 14 minutes 37.485 seconds, which agrees with the input string of 14 37 485.

Converting a time of day

For a time of day we need the LocalTime class. It can parse your string with the help of a DateTimeFormatter. So declare:

private static final DateTimeFormatter TIME_PARSER
        = new DateTimeFormatterBuilder()
                .appendPattern(" mm ss ")
                .appendValue(ChronoField.MILLI_OF_SECOND)
                .parseDefaulting(ChronoField.HOUR_OF_DAY, 0)
                .toFormatter(Locale.ROOT);

public static final double NANOS_PER_SECOND = Duration.ofSeconds(1).toNanos();

Then do:

    String timeOfDayString = " 14 37 485";
    LocalTime time = LocalTime.parse(timeOfDayString, TIME_PARSER);
    System.out.println("Time of day: " + time);

    int wholeSeconds = time.get(ChronoField.SECOND_OF_DAY);
    int nanoOfSecond = time.getNano();

    double secondOfDay = wholeSeconds + (nanoOfSecond / NANOS_PER_SECOND);
    System.out.println("secondOfDay: " + secondOfDay);

Output agrees with the output from before:

Time of day: 00:14:37.485
secondOfDay: 877.485

What went wrong in your code?

Why is it negative?

Is there something wrong with the code?

We don‘t really need to know since we are not using Date and SimpleDateFormat any more -- fortunately! But out of curiosity.

First, the Date class that you tried to use never was able to represent an amount of time. And it could represent a time of day only if you assumed a date and a time zone.

To give a full account of what I think happened in your code I have made some assumptions, but even if the concrete assumptions are not to the point, I still believe that the idea in my explanation is. I assume that you were running your code in a Central European time zone such as Europe/Oslo or Europe/Rome or some other time zone that used UTC offset +01:00 in February 2013. Next I assume you ran your code at 13:14:37.485 before posting your question at 13:44 in your time zone. Or at some other hour where the minutes and seconds were 14:37.485.

Then this happens: new Date() produces a Dateobject representing the current point in time. This is formatted into a String of 14 37 485. This string is parsed back into a Date of Thu Jan 01 00:14:37 CET 1970 because defaults of 1970-01-01 and your default time zone are confusingly applied. The getTime method returns the number of milliseconds since the start of 1070-01-01 in UTC, the so-called epoch. Because of your UTC offset of +01:00, in UTC the date and time mentioned are equal to 1969-12-31T23:14:37.485Z, so before the epoch. This explains why a negative number comes out. Your observed rsult of -2722.515 corresponds to 45 minutes 22.515 seconds before the epoch, so the time I just mentioned.

Link

Oracle Tutorial trail: Date Time explaining how to use java.time.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Onalerona Gruber

79175813

Date: 2024-11-10 21:11:04
Score: 4.5
Natty:
Report link

I am newbie too and I am commenting purely to be able to see the answers to your question. Maybe if the results are too large(providing this is not a red herring error) you should try splitting your list of dictionaries into smaller chunks and iterate over it? Hoping for some decent answers for you :)

Reasons:
  • RegEx Blacklisted phrase (1.5): I am new
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: kitkat-pixel

79175800

Date: 2024-11-10 21:04:02
Score: 0.5
Natty:
Report link
$spl = 'apples?'
'This apple for you', 'This apples for you' | ForEach-Object { $_ -split $spl }

enter image description here

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

79175777

Date: 2024-11-10 20:51:00
Score: 0.5
Natty:
Report link

Your WeatherRepository method getWeather(city) should return just String. And fetchWeatherDate(city) method should look like:

public void fetchWeatherData(String city) {
    String weatherString = repository.getWeather(city);
    weatherResult.setValue(weatherString);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: iramm

79175773

Date: 2024-11-10 20:50:00
Score: 1
Natty:
Report link

You can simply add an additional set of brackets:

#table([[My text]])
// Or with content-style function call:
// #table[[My text]]

If you wanted to use raw strings, the text field has the unstyled content:

#table(`[My text]`.text) // Same result

Command output

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

79175767

Date: 2024-11-10 20:47:59
Score: 2.5
Natty:
Report link

FOR STM32CUBE IDE To ensure all compilation units use the same DWARF version, you need to specify your desired DWARF version in the compiler options of your compiler settings. DWARF is primarily a debugging format used in compiling and debugging programs. The method for doing this is shown in the following 3 screenshots.

enter image description here

enter image description here

enter image description here

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mustafa Ergül

79175762

Date: 2024-11-10 20:45:58
Score: 2
Natty:
Report link

caused by https://github.com/textmate/html.tmbundle/issues/113

escape the 2nd slash \/ as a workaround
<div onclick="window.open('https:/\/example.com')">

fix

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

79175749

Date: 2024-11-10 20:41:57
Score: 1
Natty:
Report link

You would get the same error locally by building it with next build.

Route Handlers have a different signature with App Router, see the official docs. If you rely on your response, try awaiting it from the request as follows:

export const POST = async (req: NextRequest) => {
  const data = await req.json();
  const { params } = await data as MyResponse;

  if (!params || !params.action)
    return NextResponse.json({ success: false, message: "Incorrect usage" });

  const action = params.action;
  ...
};
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): get the same error
  • High reputation (-1):
Posted by: sm3sher

79175730

Date: 2024-11-10 20:34:56
Score: 2.5
Natty:
Report link

For me issue was I did not put my actual code inside functions folder I was uploading from root folder,,,placing actual code inside functions code solved my issue!!

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

79175726

Date: 2024-11-10 20:33:56
Score: 2
Natty:
Report link

I found a previous answer suggesting adding the attribute to the web component class directly. This works very nicely:

    override render() {
        this.slot = `button-icon-${this.position}`;
        return html`<span>*</span>`
    }
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: SmujMaiku

79175724

Date: 2024-11-10 20:32:56
Score: 3
Natty:
Report link

This issue was resolved by upgrading python3 to python version 3.12.7 and re-installing firebase-admin.

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

79175718

Date: 2024-11-10 20:30:55
Score: 3.5
Natty:
Report link

Maybe it will help you to connect workflow variables to Transfer Files node? I see that in the node there is a tab "Flow Variables" where you can specify source location - path.

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

79175710

Date: 2024-11-10 20:28:55
Score: 0.5
Natty:
Report link

I had the same issue and found the nmake in the following directory

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64

inside the MSVC directory i found two versions installed and the only added the latest version to my PATH environment variableenter image description here

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mostafa Farrag

79175696

Date: 2024-11-10 20:23:54
Score: 0.5
Natty:
Report link

The solution is to add #| message: !expr NA in the quarto code block.

Read more here: https://github.com/quarto-dev/quarto-cli/discussions/7443

#| message: !expr NA
species <- iris$Species |> unique()

for(i in species) {
  message(i)
  Sys.sleep(2)
}
Reasons:
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Steen Harsted

79175686

Date: 2024-11-10 20:19:53
Score: 1.5
Natty:
Report link

Use setTimeout inside useEffect or an event handler to delay. For example,

setTimeout(() => navigate('/new-page'), 2000);

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

79175680

Date: 2024-11-10 20:17:53
Score: 1
Natty:
Report link

If you are a Mac user and use or are willing to use LaunchBar, I have created a plugin (Action in LaunchBar's parlance) that displays a menu of recently opened files in Visual Studio Code. You can download the Action from this repository: https://github.com/alberti42/Get-Recent-VS-Code-Documents-For-LaunchBar.

If you are interested in more actions to display recently opened files from other Adobe and Microsoft applications, have a look at https://alberti42.github.io/#launchbar-actions.

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

79175678

Date: 2024-11-10 20:17:53
Score: 1.5
Natty:
Report link

There are two ways to create a instance of LocalOutlierFactor

  1. clf= LocalOutlierFactor(n_neighbors=n_neighbors, contamination=contamination, novelty=False)

in this case we can use : clf.fit_predict(X)

  1. clf = LocalOutlierFactor(n_neighbors=n_neighbors, contamination=contamination, novelty=True)

in this case we should use : clf.predict(X)

thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: sanjaykumar81

79175652

Date: 2024-11-10 20:08:50
Score: 2
Natty:
Report link

It could be just a file fault, try:

apt install python3-pip

Bit simple, but it works.

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

79175651

Date: 2024-11-10 20:07:50
Score: 0.5
Natty:
Report link

This examples shows how to implement a basic search screen in Android Auto

import android.util.Log
import androidx.car.app.CarContext
import androidx.car.app.Screen
import androidx.car.app.model.SearchTemplate
import androidx.car.app.model.Template
import com.your_package.automotive.AndroidAutoSession

class SearchDestinationScreen(
    carContext: CarContext,
    private val session: AndroidAutoSession,
    private val screenId: String
) : Screen(carContext), SearchTemplate.SearchCallback {
    override fun onSearchSubmitted(searchText: String) {
        Log.d(TAG, "onSearchSubmitted triggered: $searchText")
    }

    override fun onSearchTextChanged(searchText: String) {
        Log.d(TAG, "onSearchTextChanged triggered: $searchText")
    }

    override fun onGetTemplate(): Template {
        val searchTemplate = SearchTemplate.Builder(this)
        return searchTemplate.build()
    }

    companion object {
        const val TAG = "SearchDestinationScreen"
    }

}

Source : https://github.com/android/car-samples/blob/main/car_app_library/navigation/common/src/main/java/androidx/car/app/sample/navigation/common/car/SearchScreen.java

enter image description here

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

79175641

Date: 2024-11-10 20:05:50
Score: 2.5
Natty:
Report link

I found the problem. The fixed point precision was too low. This resulted in temp*fc always evaluating to zero. The compiler then optimized everything away as multiplication with zero is zero again - and sin(0) or cos(0) can also be calculated at compile time, therefore no CORDIC-Hardware was inferred. After playing a bit with the fixed point ranges everything works as it should.

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

79175639

Date: 2024-11-10 20:04:49
Score: 1.5
Natty:
Report link

I made a program using Autohotkey, and I want to introduce it to you. It's called the Mouse Coordinate Toolkit. This program makes it really easy to create programs with Autohotkey. With my Mouse Coordinate Toolkit, I even made an automatic Google indexing program. This program is especially good for creating image search codes. It’s also really helpful when making game macros because you can use colors to write "if" statements in your script. The program helps you easily analyze PixelColor and RGB Color, so it's very useful for writing scripts. If you're interested in Autohotkey, you should try using this program! Here is the website link for the Mouse Coordinate Toolkit: https://olympithecus.blogspot.com/2024/11/24111111.html

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (1): I want
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Olympithecus

79175626

Date: 2024-11-10 19:57:48
Score: 2.5
Natty:
Report link
from rich.table import Table

table = Table(box=None)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: lolo

79175625

Date: 2024-11-10 19:57:48
Score: 2.5
Natty:
Report link

insteaqd download a online page is better open a online document like; to document.open() in iexplore browser; document.open() it is not a method; rewrite this; !DOCTYPE html html lang=en head titleOpen Twitter/title meta charset=UTF-8 / /head body a href=https://twitter.com target=_blank buttonOpen Twitter/button /a /body is a class with a object;

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: guido romani prado romani prad

79175598

Date: 2024-11-10 19:42:44
Score: 3
Natty:
Report link

you can one of doing it in the solutions section of this
leetcode question

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

79175585

Date: 2024-11-10 19:33:42
Score: 2
Natty:
Report link

It is very important to make sure of you indentation and declaration in python. Adopting the habit (or tool using a like Prettier) in VS code or any build in formatter will help a lot.


Solution:

def life_in_weeks():
  users_age = input("What is your age? ")
  print(users_age)

If this is not the problem, please share more information.

Reasons:
  • Blacklisted phrase (1): What is your
  • Whitelisted phrase (-2): Solution:
  • RegEx Blacklisted phrase (2.5): please share
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rikus-GB

79175577

Date: 2024-11-10 19:27:41
Score: 1.5
Natty:
Report link

I have an integrated intel GPU and an external Nvidia GPU and I'm using Optimus Manager to handle the situation you are facing. By just downloading the proper drivers for you GPU's as well as the optimus-manager package from aur you should be able to switch between GPU's after enabling the optimus-manager.service

For more information: https://github.com/Askannz/optimus-manager

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

79175567

Date: 2024-11-10 19:23:40
Score: 3
Natty:
Report link

I had that error too. With that error it produced also a stack trace:

Fatal error: Uncaught ValueError: strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) in proc.php:963
Stack trace:
#0 proc.php(963): strpos('', '`', -1)
#1 {main}
thrown in proc.php on line 963

As you see it tells that the first argument (a variable in the code) had evaluated to an empty string and the negative offset 1 in that empty string was not allowed. So it looks like you will always have to use a strlen check if this kind of situation can happen.

BTW: strrpos is not a solution. If you replace the above code with "strrpos('', '`', 1)" you get the same error.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): get the same error
  • Low reputation (0.5):
Posted by: user2587656

79175566

Date: 2024-11-10 19:23:40
Score: 1.5
Natty:
Report link

Run this command in vs code in the root directory and BOOM:

  1. bundle exec pod install --project-directory=ios
  2. go to the xCode, click on "Product" at the top > clear all issues

    clean build folder

  3. Run App again.
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Usama Saud

79175559

Date: 2024-11-10 19:20:39
Score: 0.5
Natty:
Report link
  1. You can create an app via SwiftUI. Apple has a sample just for this

Choose Your Own Story Provide dynamic navigation between views. In this sample, you can write a story with many different paths and outcomes. Your reader can make choices at important points in the narrative, resulting in different experiences based on their responses. There are several parts to this app. StoryData contains the story itself, including the text on each page and the choices the reader can make. StoryView sets up the navigation for the app, and StoryPageView displays the contents of one page of the story. You can start in StoryData and write your own narrative, or you can learn about and modify the look and feel of the app in StoryView and StoryPageView.

  1. I'm unaware of the possibility of an Interactive book for Apple Books. There is probably a way to use links for the pages, but I have not seen anything like this before.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Anton Marchanka

79175557

Date: 2024-11-10 19:19:39
Score: 1.5
Natty:
Report link

If you are using the Lombok project, make sure you have all this in your Gradle

`

dependencies {
    implementation 'org.projectlombok:lombok:1.18.24'
    annotationProcessor 'org.projectlombok:lombok:1.18.24'
    }

tasks.withType(JavaCompile) {
    options.annotationProcessorPath = configurations.annotationProcessor
}

`

and add @Data on top of your entity @Entity

if you use POJO add setter and getters to your Entity class.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Data
  • User mentioned (0): @Entity
  • Low reputation (1):
Posted by: Tariku Ahmed

79175554

Date: 2024-11-10 19:16:38
Score: 1
Natty:
Report link

The Error clearly says that undefined reference to \`main' collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status which means main was not defined in your hello.c and retuned 1 to the operating system

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

79175545

Date: 2024-11-10 19:09:37
Score: 1
Natty:
Report link

If you want to embed google maps directly into the flutter use webview_flutter package to embed it.

try using alternative solution dependencies: webview_flutter: ^4.0.0

you can refer this example flutter example

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

79175544

Date: 2024-11-10 19:08:37
Score: 0.5
Natty:
Report link

Normalization is a very good practise, and RTK Query doesn't have it just because they could not implement it in a good way, same as other cool things like infinite scrolling pagination.

But there is a better lib for working with fetching and caching that supports both of that - react-redux-cache, and is not over engineered - its API is very simple.

Reasons:
  • Contains signature (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: gentlee

79175542

Date: 2024-11-10 19:08:37
Score: 1.5
Natty:
Report link

Erm... I think the mathematical rationalisations here are a bit iffy given that |x mod y| <= |y| and it therefore makes perfect sense to use the squeeze theorem to ‘patch it up’ by defining x mod 0 = 0.

It's true that on your approach to y = 0 you'll encounter more and more discontinuities, infinitely many in fact, but they get smaller and smaller and the question of whether it's continuous at y = 0 is different from whether it should have a value there anyway.

The only true answer here is ‘because the standard says so’.

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

79175538

Date: 2024-11-10 19:03:36
Score: 0.5
Natty:
Report link

I was using pycharm and for me it kept showing this error, to a point i reinstalled everything. For me what i did was i made a requirements.txt and put the required package/library there and then on my main.py file it showed a prompt that these are missing (even though it showed in terminal that successfully installed before when the error was occurring continually) Then i also updated pip and again retried manually installing requirements.txt using pip install -r requirements.txt This finally worked, I am not sure if pip was a problem or whatever. I do not know why this keeps occurring again and again. if someone do get to know please do let me know.

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

79175525

Date: 2024-11-10 18:56:34
Score: 2
Natty:
Report link

In VS code I was having a similar issue and realized if I go to the shortcuts ( File > Preferences > Keyboard Shortcuts) then search Python and find "Python: Run Python File". I set the shortcut to shift + R and now I have no issues anymore with running python script. It runs the whole script and not just a select line of course, which I prefer anyway.

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

79175519

Date: 2024-11-10 18:52:32
Score: 9 🚩
Natty: 4
Report link

Were you able to solve issue? Im also having hard time with opening stream. I think its codec related problem because whole process is OK except stream on web page is not visible.

Reasons:
  • Blacklisted phrase (1): you able to solve
  • RegEx Blacklisted phrase (1.5): solve issue?
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ketonal

79175516

Date: 2024-11-10 18:52:31
Score: 2
Natty:
Report link

cross entropy loss is calculated over a two probability distribution, but accuracy is either or kind of calculation. so if my I predict [[0.51, 0.49], [0.49,0.51]] and the real values are [[0,1], [1,0]] I will have a very low cross entropy but accuracy is 0%. but if my predictions are [[0.49, 0.51], [0.01, 0.99]] with the same targets I have 50% accuracy but much higher cross entropy loss because I am not very confident in my right guesses but very confident in my mistakes.

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

79175496

Date: 2024-11-10 18:42:29
Score: 2
Natty:
Report link

DAX measure is usually an elegant way to address such questions,

Next = 
SELECTCOLUMNS(
    OFFSET( 1, ORDERBY( Orders[OrderDate] ), PARTITIONBY( Orders[Item] ) ),
    Orders[OrderDate]
)

enter image description here

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

79175489

Date: 2024-11-10 18:40:29
Score: 1.5
Natty:
Report link

I think typing.DefaultDict is what you're looking for!

class A(DefaultDict):
    a: int = 0
    b: int = 1
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: William Wilkins

79175478

Date: 2024-11-10 18:35:26
Score: 5.5
Natty:
Report link

Does the 2nd code belong to the main file or messageCreate.js?

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

79175468

Date: 2024-11-10 18:29:25
Score: 2
Natty:
Report link

Upgrading to .NET 8 now you have Keyed Services

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-8.0#keyed-services

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

79175458

Date: 2024-11-10 18:22:24
Score: 2
Natty:
Report link

Using SVG Path (see here) :

m 0 0 h 180 a 20 20 0 0 1 20 20 v 150 a 5 5 0 0 1 -5 5 h -25 a 20 20 0 0 0 -20 20 v 25 a 5 5 0 0 1 -5 5 h -220 a 20 20 0 0 1 -20 -20 v -185 a 20 20 0 0 1 20 -20 z

SVG Path result

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

79175453

Date: 2024-11-10 18:21:23
Score: 1
Natty:
Report link

The cause for this problem is that the declaration of the variadic function MsCommand_push is not visible when function MsFile_dummy1 is compiled.

The root cause is that the proper header file had not been included... and the compiler flags included -Wno-implicit-function-declaration.

Thank you for all the helpful comments that pushed me to do a deeper investigation of this problem.

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

79175452

Date: 2024-11-10 18:20:23
Score: 2
Natty:
Report link

The issue for me was a variable in the USER path which had double quotes at the beggining and at the end. "C:\Flutter\flutter\bin" I have renamed it to C:\Flutter\flutter\bin\ (removed the double quotes), and it works. Thank you Mohammad Soban!

Also you might be able to bypass the error without altering your existing PATH variables, by installing ng and nmp and adding both to your PATH.

Angular/Visual Studio: "ng is needed... npm is needed"

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • No code block (0.5):
  • Low reputation (1):
Posted by: no name

79175447

Date: 2024-11-10 18:15:22
Score: 2.5
Natty:
Report link

Try deleting the .gradle folder in the corrupted project,

then take a .gradle folder from any working project copy & paste to the corrupted project.

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

79175441

Date: 2024-11-10 18:14:21
Score: 3
Natty:
Report link

Got it resolved after removing the customizations on the disbaled key.

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

79175440

Date: 2024-11-10 18:13:21
Score: 3
Natty:
Report link

Check your gitignore. I had /Package in my git ignore and that was the issue.

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

79175436

Date: 2024-11-10 18:07:20
Score: 5.5
Natty: 8
Report link

thank you for the input. How can I go about with doing this step by step? Any guidance would be much appreciated as I bought a refurbished device and want to make sure the battery health is good.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (0.5): How can I
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ipz

79175435

Date: 2024-11-10 18:06:19
Score: 10.5
Natty: 7.5
Report link

have you found solution? if u did can you tell me how?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you tell me how
  • RegEx Blacklisted phrase (2.5): have you found solution
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: nattr23

79175425

Date: 2024-11-10 17:57:17
Score: 2
Natty:
Report link

There is an excellent series of Flet tutorials on You tube by SmartGurucool . He teaches from beginning to more advanced. I believe there are 12 sessions and they are free. I highly recommend this course.

Good luck.

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

79175420

Date: 2024-11-10 17:57:15
Score: 11.5 🚩
Natty: 5.5
Report link

please how did you fix this error?

Reasons:
  • Blacklisted phrase (1): how did you fix
  • RegEx Blacklisted phrase (3): did you fix this
  • RegEx Blacklisted phrase (1.5): fix this error?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: valentine ejakpomewhe

79175418

Date: 2024-11-10 17:56:14
Score: 3.5
Natty:
Report link

When I use ftp_chdir($ftp_conn, $directory), if the folder exists, it returns true, but if the folder does not exist, it does not return false and gives an error.

KIKO Software

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): When I use
  • Low reputation (1):
Posted by: mostafa akrami

79175414

Date: 2024-11-10 17:54:13
Score: 1.5
Natty:
Report link

The issue with your code is that you're returning the value from the getVal function inside an event listener (loadedmetadata), but the getDuration function returns before the event is triggered, which is why you don't get the correct value.

Since loadedmetadata is an asynchronous event (i.e., the audio file is still loading when you try to access its duration), you need to handle it using a callback or return a Promise to ensure the duration is accessed only after the metadata is loaded.

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

79175413

Date: 2024-11-10 17:54:13
Score: 0.5
Natty:
Report link

I got the same issue. I solved by added the main imports first

import {useState} from 'react'

import ('./App.css')

like this!

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

79175408

Date: 2024-11-10 17:50:13
Score: 1
Natty:
Report link

As @some-programmer-dude commented, I added both of the projects to the all command and now it is making both of the projects:

# Default target: build only the main program
all:$(MAIN_EXEC) $(TEST_EXEC)

# Build main program
$(MAIN_EXEC): $(MAIN_SRC)
    $(CXX) $(CXXFLAGS) -o $(MAIN_EXEC) $(MAIN_SRC)

# Build test program
# test: $(TEST_EXEC)

$(TEST_EXEC): $(TEST_SRC)
    $(CXX) $(CXXFLAGS) -o $(TEST_EXEC) $(TEST_SRC)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @some-programmer-dude
  • Self-answer (0.5):
Posted by: STF

79175407

Date: 2024-11-10 17:49:10
Score: 10 🚩
Natty: 6.5
Report link

Have you found a solution to the problem? I have the same issue.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (2.5): Have you found a solution to the problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Daniel Grathwol

79175399

Date: 2024-11-10 17:45:09
Score: 2.5
Natty:
Report link

Try deleting the .gradle folder in the corrupted project,

then take a .gradle folder from any working project copy & paste to the corrupted project.

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

79175388

Date: 2024-11-10 17:38:07
Score: 4.5
Natty: 7
Report link

Thank you very much for all of the brain damage codes. it solves my issue I have had for so many years... In the past, I rely on Shell32.dll to get duration for multiple media files running on server side. This is relying on Microsoft. The codes will not be depending platform any more but javascript on any platforms. cool!!

"Audio" is an object already existed in Javascript, but not video. I can not do video = new Video. How can I change the codes if I have many video files?

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): How can I
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: D052057