79490925

Date: 2025-03-06 23:35:58
Score: 4
Natty:
Report link

I have a scenario where I need to do synching every one hour with server, while my message processing should happen every 5 s.

i.e. files that are available in server should be copied every one hour, while those should be sent to message channel every 5 s and processed.

Currently I see the poller is coupled up for both synching and emitting of message. how to decouple it. am using Direct channel.

Please suggest

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2.5): Please suggest
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: karthikeyan sivapragassam

79490922

Date: 2025-03-06 23:35:58
Score: 1.5
Natty:
Report link

The @JsonAlias annotation itself has the response, use the following:

data class MyClass @JsonCreator constructor(
  @JsonAlias({"name", "title"})
  val name: String
)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: rubenqba

79490913

Date: 2025-03-06 23:28:57
Score: 1
Natty:
Report link

Ion-content is a component, and has "stuff" inside it. Depending on which version of Ionic you are using, this stuff may be different, so you will have to go to the documentation for the component and also probably examine it in the DOM, since the documentation is unlikely to be clear enough.

In the case of Ionic 7, the ion-content has 2 inner css shadow parts: scroll and background. I just targetted them one at a time to see which one was relevant:

/* Essential for Flexbox to work inside ion-content (correct @ Ionic 7) */
ion-content::part(scroll) {
  display: flex;
  flex-direction: column;
}

/** Flexbox child element */
.page-content {
  flex: 1; // *
  display: flex; // nested children: {form, social & auth-link}
  flex-direction: column;
  padding: 20px;
  justify-content: space-between; // space out children equally (along primary axis)
}

This sorted the issue out, I assume by giving flexbox the information needed about it's parent. It is necessary to define the flex-direction: column at each level, or it breaks. Also, flex: 1; is needed, or else the page-content doesn't actually stretch to fill the available space.

P.S. Could the person who voted to close this question please illuminate us all why it isn't a valid question? It seems to me that there is good content here?!

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

79490910

Date: 2025-03-06 23:27:56
Score: 4
Natty:
Report link

Using the suggested action, I was able to find it is colored this way when the variable has its type narrowed.

enter image description here

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

79490903

Date: 2025-03-06 23:21:55
Score: 2
Natty:
Report link

Prisma and pnpm have compatibility issues, with each new version potentially causing problems. To address this, you may consider using npm instead. Additionally, I personally switched from Prisma to Drizzle to avoid the frustrations of dealing with recurring Prisma errors upon updates.

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

79490899

Date: 2025-03-06 23:19:54
Score: 4.5
Natty:
Report link

Im having the same issue right now! Everything works fine when i'm running everything in my IDE (or when I run it through cmd -> python main.py) but when I make the .exe file with PyInstaller and run it, the model simply doesnt make the predictions, the app just stays loading forever. It seems as if the predict() function just does not work.

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): having the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fran Aliss

79490897

Date: 2025-03-06 23:17:54
Score: 3.5
Natty:
Report link

There are online / offline events since long ago:

https://developer.mozilla.org/en-US/docs/Web/API/Window/online_event

https://developer.mozilla.org/en-US/docs/Web/API/Window/offline_event

It fires any javascript function when you get offline / online (e.g. on mobile phones).

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

79490893

Date: 2025-03-06 23:15:53
Score: 2
Natty:
Report link

Thank you for responce, seems simple, but you help me a lot.

I had the same error that is quiet generic "can't find pid file".
No journalctl, neither systemctl made the sence.
The key was looking the log of jboss or wildfly in my case (whereever you have it JBOSS_CONSOLE_LOG),
it was very descriptive that the service couldn't find the JAVA_HOME.

Fixing this,I have got the solution

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): help me
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Low reputation (1):
Posted by: Alexander Nazarenko

79490889

Date: 2025-03-06 23:12:52
Score: 1
Natty:
Report link

By configuring Orleans to serialize also CancellationTokens with System.Text.Json, I made the webapplication version work and also produce the expected output.
For that the nuget package Microsoft.Orleans.Serialization.SystemTextJson must be installed.

builder
    .UseOrleans(siloBuilder =>
    {
        siloBuilder.UseLocalhostClustering();
        siloBuilder.Services.AddSerializer(serializerBuilder =>
        {
            serializerBuilder.AddJsonSerializer(isSupported: typeCand => typeCand == typeof(System.Threading.CancellationToken));
        });
    });

More details and other approaches can be found in the docs (https://learn.microsoft.com/en-us/dotnet/orleans/host/configuration-guide/serialization-configuration?pivots=orleans-7-0#configure-orleans-to-use-systemtextjson).

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

79490888

Date: 2025-03-06 23:11:52
Score: 1.5
Natty:
Report link

The profitability of in-app advertising is absolutely affected by the frequency of events on each screen. In the case of Google AdMob, if the frequency of events on each screen in the app is low, increasing the frequency with single-unit ads is effective in terms of ad supply rate and eCPM. For iOS apps, Google tends to be stricter on iOS apps after Apple implemented its App Tracking Transparency (ATT) policy.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Young Lee

79490875

Date: 2025-03-06 23:01:50
Score: 2.5
Natty:
Report link

My workaround was to comment out the WSGIDaemonProcess process in the initial http (port 80) conf file, and then re-run the certbot command.

As I no longer had a need for the http conf I left it commented, and uncommented the WSGIDaemonProcess line in the https conf that was autogenerated by certbot.

Reasons:
  • Blacklisted phrase (1): to comment
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: c7borg

79490838

Date: 2025-03-06 22:32:44
Score: 3
Natty:
Report link
header 1 header 2
cell 1 cell 2
cell 3 cell 4
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Arafat Rohan

79490834

Date: 2025-03-06 22:31:44
Score: 2
Natty:
Report link

I had a similar error. Fixed by: export PYTHONPATH=/usr/lib/python3/dist-packages (I found the location using "locate gps|fgrep py")

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

79490831

Date: 2025-03-06 22:27:43
Score: 1.5
Natty:
Report link

It looks like the topic is not very popular. The approach I see most often in CMake scripts is that it's configuration, not code.

Most of the projects I found were too opinionated and had too many assumptions, like how to organize test code. So yes, I recently made my own small project to test CMake code ;) It probably doesn't cover all cases, but it works to the extent I need it to.

I was inspired by how CMake code is tested in the CMake project itself https://github.com/Kitware/CMake/tree/master/Tests/CMakeTests.

I am using add_test() and custom target that call CTest - only two functions and few assertions (no mocks so far). Every test code is stored in separate file and looks like usual unit test. Test is failed if message(SEND_ERROR "...") or message(FATAL_ERROR "...") is executed.

include(CMakeUnit)  # for assertions
include(set)        # module under test

# Act
set_if_defined(NewVariable "New value")

# Assert
EXPECT_UNDEFINED(NewVariable)

For more examples please see https://github.com/tawez/CMakeUnit-example/tree/master/tests

Reasons:
  • Blacklisted phrase (0.5): I need
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tawez

79490826

Date: 2025-03-06 22:24:43
Score: 1.5
Natty:
Report link

To your 1st question, private instance fields and methods are inherited by child class but it can't access them directly due to the private access modifier.

To your 2nd question, when an object is stored on the heap, it includes all of its parent class's private instance fields, even if they are marked as private. The private access modifier only restricts direct access to the field from outside the class, but the field is still part of the object's memory layout in the heap.

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

79490820

Date: 2025-03-06 22:21:42
Score: 2
Natty:
Report link

You can change the Namespace to urn:com.workday.report/bsvc in the Advanced tab of the report.

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

79490814

Date: 2025-03-06 22:18:40
Score: 6 đźš©
Natty: 5
Report link

I cant comment on your fix because I don't have the rep points. I found this by having the same problem as you, but when looking at your fix I realized your account name and key is in the App Settings in Environment Variables Section.

Reasons:
  • RegEx Blacklisted phrase (1): cant comment
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nikko Pabion

79490798

Date: 2025-03-06 22:06:38
Score: 2
Natty:
Report link

The result of Math.IEEEremainder(angle, 360) will be in the interval (-180, 180]

https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Math.html#IEEEremainder(double,double)

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

79490796

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

I faced the same issue. Got it resolved by unchecking "clone git repositories using ssh" in settings.settings screenshot

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

79490790

Date: 2025-03-06 21:58:36
Score: 3
Natty:
Report link

March 2025 We Solved en ReactNative

  1. We created a SSO web with Netcore

  2. used WebView in ReactNative App

  3. from JS in Netcore send a string or JsonString with

    var mensajeString = JSON.stringify(mensaje); window.ReactNativeWebView.postMessage(mensajeString);

Regards

Reasons:
  • Blacklisted phrase (1): Regards
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ruben

79490785

Date: 2025-03-06 21:56:36
Score: 3
Natty:
Report link

SELECT utl_raw.cast_to_Nvarchar2(dbms_lob.substr(raw_col,1000,1)) FROM test;

this select out put SHOULD BE LIKE YE 195 45

SO THE OUT PUT FOR CHARTER IS OK (YE)

BUT THE OUTPUT FOR NUMBERS IS [] LIKE THIS NOT NUMBERS

THIS IS THE PROBLEM HOW CAN I CONVERT HEXA TO NUMBERS

Reasons:
  • Blacklisted phrase (0.5): HOW CAN I
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Zayed Saad Al-Marhabi

79490776

Date: 2025-03-06 21:48:34
Score: 2.5
Natty:
Report link

My solution is to use the Place search API instead

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Francis Ade

79490768

Date: 2025-03-06 21:43:33
Score: 4.5
Natty:
Report link

Thanks to @moritz-ringler for bringing up stackoverflow.com/a/76934503/4883195. I've managed to put together a working github.com/OnlyLoveOleg/vue3-vuetify-webcomponent example in case anyone is looking for a solution to this problem.

index.html

<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="UTF-8">
    <link rel="icon" href="/favicon.ico">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue3 Vuetify Web Component</title>
  </head>
  <body>
    <my-navbar></my-navbar>
    <script type="module" src="/src/main.js"></script>
  </body>
</html>

src/main.js

import { defineCustomElement } from './defineCustomElementWithStyles'
import '@mdi/font/css/materialdesignicons.css'
import { createVuetify } from 'vuetify';
import { aliases, mdi } from 'vuetify/iconsets/mdi'

// Import the Vue component.
import MyNavbarComponent from './components/MyNavbar.ce.vue'

const vuetify = createVuetify({
    icons: {
        defaultSet: 'mdi',
        aliases,
        sets: {
          mdi,
        },
    },
})

customElements.define(
    'my-navbar',
    defineCustomElement(MyNavbarComponent, {
        plugins: [vuetify],
    })
)

src/defineCustomElementWithStyles.js

// defineCustomElementWithStyles.js
import { defineCustomElement as VueDefineCustomElement, h, createApp, getCurrentInstance } from 'vue'

export const defineCustomElement = (component, { plugins = [] } = {}) =>
  VueDefineCustomElement({
    styles: component.styles,
    render: () => h(component),
    setup() {
      const app = createApp()

      // install plugins
      plugins.forEach(app.use)

      const inst = getCurrentInstance()
      Object.assign(inst.appContext, app._context)
      Object.assign(inst.provides, app._context.provides)
    },
  })

src/components/MyNavbar.ce.vue

<template>
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/vuetify@3/dist/vuetify.min.css" />
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" />
  <v-app>
    <v-app-bar>
      <template v-slot:prepend>
        <v-app-bar-nav-icon></v-app-bar-nav-icon>
      </template>

      <v-app-bar-title>App title</v-app-bar-title>

      <v-spacer></v-spacer>

      <v-btn icon>
        <v-icon>mdi-magnify</v-icon>
      </v-btn>

      <v-btn icon>
        <v-icon>mdi-heart</v-icon>
      </v-btn>

      <v-btn icon>
        <v-icon>mdi-dots-vertical</v-icon>
      </v-btn>
    </v-app-bar>
  </v-app>
</template>
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @moritz-ringler
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Oleg

79490756

Date: 2025-03-06 21:36:32
Score: 4.5
Natty:
Report link

@valnik,

it's not providing correct result, say for input 500, expected output is '500, 400, 300, 200, 100,90, 50, 40, 30, 20'. But it's showing enter image description here

wherever there is multiple student going to a teacher, it's breaking

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @valnik
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user3016635

79490752

Date: 2025-03-06 21:34:31
Score: 0.5
Natty:
Report link

The error is occurring in your view file but isn't being displayed on screen. To troubleshoot, add logging statements at potential error points:

log_message('error', 'Error message: ' . $e->getMessage());

Then check your logs in the writable/log/ directory to identify the specific issue.

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

79490746

Date: 2025-03-06 21:30:30
Score: 4.5
Natty: 4
Report link

The first implementation was for images thats correct

added implementation for DWT1D and IDWT1D that may help

https://github.com/Timorleiderman/tensorflow-wavelets/blob/642335ad5473531fb06ca11b921f9b8c99a1b144/src/tensorflow_wavelets/Layers/DWT.py#L201C7-L201C12

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

79490744

Date: 2025-03-06 21:30:29
Score: 7 đźš©
Natty:
Report link

I tried all of the above, nothing seems to work. Can someone help, please. Here is my website: https://swapnilin.github.io/portfolio-website/

and here is the code https://github.com/swapnilin/portfolio-website

the image under about section doesn't want to load when deployed.

Reasons:
  • RegEx Blacklisted phrase (3): Can someone help
  • RegEx Blacklisted phrase (1.5): help, please
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: User771

79490742

Date: 2025-03-06 21:29:28
Score: 0.5
Natty:
Report link

you could try adding a "honeypot" field that is hidden to regular visitors, using something like "date of birth", which the bots will faithfully inserta value into. Then in your function you can discard anything which has a value in that field. I know its not exactly what you were asking but it could be a relatively easy win.

Also the hook you are using seems to be to validate extra custom fields in the form and return errors. If the bots are still getting through maybe they are using a different vector

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

79490739

Date: 2025-03-06 21:28:28
Score: 0.5
Natty:
Report link

Multiple possible solutions. One requires a different language but easy to implement if you use it as a microservice. Another is harder to implement but uses the correct language and framework that you are using.

Solution 1

Continue using React and Javascript.

Install graphviz with npm to use with javascript and react https://www.npmjs.com/package/graphviz-react

(There are graphviz libraries for many languages such as python and javascript, but need to use the one with graphviz and react)

Read the docs here for graphviz to make an ER diagram https://graphviz.org/Gallery/neato/ER.html

Use this graphviz playground to learn and test the langauge. https://magjac.com/graphviz-visual-editor/

However, one big problem is that you would need to somehow convert your JSON file into a graphviz language. And that might be really hard to do it with the JSON structure that you have.

Your JSON structure is nice and nested with table name, column name, and relations.

Graphviz does not have a hierarchical structure. You would basically have to do a lot of work to make JSON fit with graphviz-react package. You would basically have to figure out how to take a nice hierarchal JSON structure, and flatten it and figure out what table maps to what relationship.

But if you get it working, you will have some sort of function and/or react component that can take in a JSON file and output a SVG of an ER Diagram.

Solution 2

Use d2. https://github.com/terrastruct/d2

Follow the directions, install the go programming language. Clone the repo, wrap the library as a Go Lang server.

Make the Go Lang server into a micro service. It should do a http get or post requests, and take in a json file and output a svg file.

The Go Lang microservice should be able to convert a json file into a friendly .d2 file and then convert the .d2 file into an SVG and then send that back to the frontend. This should be not as hard as graphviz. This is because JSON is hierarchal, and .d2 files are hierarchal. Meaning that the file structures are similar, and you just have to parse the JSON and turn it into an object/struct. The once you turn the JSON file into a struct, you then turn that struct into a .d2 file.

So it might look something like this.

  1. Frontend sends the JSON to the Go Lang microservice by http request.
  2. Turn each JSON object to have a related Go Lang Struct.
  3. Convert the Go Lang Struct into a string that follows something like a .d2 file
  4. concatenate all of them in a specific order and create the .d2 file
  5. use the library to convert them into an SVG.
  6. Send that to the frontend as a http response payload.

Here is an example of what the final product might look like.

The image below shows the "tasks" table mapping to "tasks_data" table and then mapping to "data" table. Basically showing the relations of tables using the PK and FK. this image shows an example of what d2 can do. It shows that the structure of the language matches similarly to JSON and can create an SVG file for an ER diagram

Use the playground to check your work. https://play.d2lang.com/?script=pJBBCoNADEX3OcWHrnuBWfQqQ1pHG9RoJ9mIePeiUloGoYVuw-P9_-NsrQXMBNidxxRgjy46X7tEgFQBoo75Nqh5ZlEPGLP0nKfYpmkh4ATlPh1w9ZCTNPridso8iza0EFXs_FdwLV2KhXWbE1c1Ptwo5fhuX03xsEaxaw37AVxoL4fzBe-W2xeK0zMAAP__&

Use the docs for learning how it works. https://d2lang.com/tour/sql-tables#foreign-keys

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

79490736

Date: 2025-03-06 21:26:28
Score: 2
Natty:
Report link

I think Typescript is the standard now and is a really better approach for most of the cases. Anyway, if you still want to code with javascript, I think you can do it even Typescript is configured.

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

79490728

Date: 2025-03-06 21:24:27
Score: 0.5
Natty:
Report link

The error HCW8001 Unable to determine the Tenant Routing Domain should not generally occur, and it may have occurred due to an issue with provisioning the tenant, or perhaps an accidental deletion of a critical configuration item in Exchange Online.

Review the Accepted Domains in Exchange Online. Generally this should include your custom domain, and the one you were initially given, for example, <domain>.onmicrosoft.com. *Also there should be <domain>**.mail.*onmicrosoft.com.

Accepted Domains can be accidentally removed, if the <domain>**.mail.**onmicrosoft.com domain was unintentionally removed, it cannot be easily added back, as the DNS records belong to Microsoft, and therefore you cannot verify the domain.

This error will occur if it cannot find an Accepted Domain in Exchange Online with the ".mail." substring, and if it does find it, the same domain with ".mail." removed must also be an Accepted Domain.

For example, if it finds "domain.mail.onmicrosoft.com" in the Accepted Domains list, it must also find "domain.onmicrosoft.com" in the Accepted Domains list.

If <domain>.mail.onmicrosoft.com is not in the Accepted Domains list, you may need to contact Microsoft support.

Otherwise a temporary workaround may be to add an accepted domain that you can verify, with the ".mail." substring. For example, <x>.mail.<domain.com> where domain.com is your custom domain that you have DNS authority over. In this way, you will need to add both <x>.mail.<domain.com> and <x>.<domain.com> to your Accepted Domains list to satisfy the Tenant Routing Domain requirement.

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

79490726

Date: 2025-03-06 21:23:27
Score: 0.5
Natty:
Report link

After checking the Android source as per Robert's suggestion, it looks like the ID is derived from the device name, which is derived from the device's place on the USB bus (specifically, bus number * 1000 + device number).

Some light googling suggests that this renders the ID assignment behavior dependent on the device kernel's bus/device# assignment behavior when a USB device is attached.

So I'd definitely have to assume that IDs might be reused at any time.

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

79490725

Date: 2025-03-06 21:23:27
Score: 6
Natty: 7
Report link

HABABABAHABABABAHABABABAHABABABAHABABABAHABABABAHABABABAHABABABAHABABABAHABABABAHABABABAHABABABAHABABABA

Reasons:
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low entropy (1):
  • Low reputation (1):
Posted by: HABABABa

79490715

Date: 2025-03-06 21:17:25
Score: 1.5
Natty:
Report link

In order to remove the initial "F" logo when the app is loading, you need to replace it with something else, because something needs to be there while the app is loading.

The flutter_native_splash package is most commonly used for that.

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

79490714

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

After contacting Twilio support, they informed me that this is a configurable setting, which can be found under: Develop > Messaging > Settings > General, under the “Phone number redaction” option.

However:

Twilio Support Message:
"Please note, however, that message redaction is not retroactive. Disabling this feature will only affect new messages; previously sent messages will remain redacted."

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

79490712

Date: 2025-03-06 21:16:25
Score: 3
Natty:
Report link

I believe I've figured it out. When you open a position (whether net debit or credit), it's a buy, and when you close a position, it's a sell.

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

79490706

Date: 2025-03-06 21:15:24
Score: 5.5
Natty: 5
Report link

I don't have enough of a reputation to comment, but a couple of things:

  1. Minor, but the variable name in the batter section should be 'batter_name" and not 'pitcher_name'. Won't affect the code, but tidiness is good.

  2. Is there a way to add the MLB Id to this? I've been looking for (or trying to develop) a scraper for lineups which include the MLB ID. I know it's in this sources string for batter/pitcher names, but just can't figure out how to extract it.

Reasons:
  • Blacklisted phrase (1): to comment
  • Blacklisted phrase (1): Is there a way
  • RegEx Blacklisted phrase (1.5): reputation to comment
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Richard C

79490704

Date: 2025-03-06 21:14:24
Score: 0.5
Natty:
Report link

gstapp-1.0 is missing. Add to the CMakeLists.txt:

pkg_check_modules(GSTREAMER REQUIRED gstreamer-1.0 gstreamer-app-1.0)

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

79490697

Date: 2025-03-06 21:12:23
Score: 1
Natty:
Report link

With some hints from a colleague I at least got want I wanted. In the end I did two changes on the code above:

I simplified the Up.forward() so it would be properly translated to ONNX, I believe:

    def forward(self, x1, x2):
        x1 = self.up(x1)
        # input is Channel Height Width
        diffY = x2.size()[2] - x1.size()[2]
        diffX = x2.size()[3] - x1.size()[3]

        padding_left = diffX // 2
        padding_right = diffX - padding_left
        padding_top = diffY // 2
        padding_bottom = diffY - padding_top

        x1 = F.pad(x1, [padding_left, padding_right, padding_top, padding_bottom])

        x = torch.cat([x2, x1], dim=1)
        return self.conv(x)

And I did:

    dummy_input = torch.randn(1, 1, 768, 768)  # H[400 to 900] x W (512, 768, 1024, 1536)

As I realised the model was trained with that input shape.
torch.dynamo did not work for me.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: alanwilter

79490689

Date: 2025-03-06 21:10:23
Score: 2.5
Natty:
Report link

According to https://doc.rust-lang.org/reference/linkage.html#r-link.crt.crt-static, static linking can be selected with

target-feature=+crt-static
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: fbauzac

79490686

Date: 2025-03-06 21:08:22
Score: 1.5
Natty:
Report link

Sigh. Of course after I spend hours researching and writing up a stackoverflow question, I find the right answer hidden among other answers.

RStudio > Tools > Global Options > Python > Select (your python interpreter) > Virtual Environments > ~/.virtualenvs/r-reticulate/Scripts/python.exe > Select > Apply

Now source_python(r"(C:\Users\myname\.spyder-py3\temp.py)") works like a charm.

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

79490676

Date: 2025-03-06 21:00:20
Score: 4
Natty:
Report link

This was due to a setting in the extension rpgmaker-text.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Niels Tobias Nørgaard Svendsen

79490665

Date: 2025-03-06 20:56:20
Score: 2
Natty:
Report link

If the array contains the numbers 1 to N, then you can just print the numbers 1 to N in the sort Order you want without looking at the array.

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

79490664

Date: 2025-03-06 20:56:20
Score: 3.5
Natty:
Report link

See How to align text inside a spinner to center in javafx?.

hoursSpinner.editorProperty().get().setAlignment(Pos.CENTER);
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: rieman

79490658

Date: 2025-03-06 20:55:18
Score: 9 đźš©
Natty: 5
Report link

Did you figure it out? I'm getting the same issue. Its weird because I have a appium script running and working smoothly on my mac, but I'm trying to set it up on my buddy's macbook and I get this error, doing everything exactly as on mine. I installed all of the same versions of all packages etc and set his enviroment up identical to mine.

Not sure what this is

Reasons:
  • RegEx Blacklisted phrase (3): Did you figure it out
  • RegEx Blacklisted phrase (1): I get this error
  • No code block (0.5):
  • Me too answer (2.5): I'm getting the same issue
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Mark Fele

79490656

Date: 2025-03-06 20:54:18
Score: 1
Natty:
Report link

Answer by John Willemse didn't work for me - it turns out fileTimeUnchanged had to be set to 0xFFFFFFFFFFFFFFFF rather than 0xFFFFFFFF. This is because (according to the docs) you need to pass the FILETIME structure with both DWORDs set to 0xFFFFFFFF. Passing 0xFFFFFFFF as the entire structure would give dwLowDateTime the correct value, but dwHighDateTime would be 0.

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

79490622

Date: 2025-03-06 20:35:14
Score: 5.5
Natty:
Report link

Did you end up working out the issue. I'm getting something similar and can't seem to workout what's happening?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Chris Waho

79490620

Date: 2025-03-06 20:35:14
Score: 2
Natty:
Report link

This is a great question. Searching for an answer but could not find so I ran some observational testing between Video.JS and HLS with start and end time.

So far my experience is that HLS files will not playback at a precise timestamp.

Say you request:

m3u8?asset_start_time=5.0&asset_end_time=38.0

Video.JS will round the start time and end time down* to the nearest [encoded] segment.

*observational, there may be a precise answer.

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

79490616

Date: 2025-03-06 20:34:14
Score: 2.5
Natty:
Report link

Never expose the PHP and the WordPress Version of your domain to the public like this. Someone might originate an attack targeting vulnerabilities related to those versions. Also, if you haven't done it already, hide Server and PHP Versions from response headers :)

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

79490611

Date: 2025-03-06 20:30:13
Score: 2
Natty:
Report link

I believe defaultValues are only set once. I think you want to check use setValue("end", NEW_VALUE); See (https://react-hook-form.com/docs/useform/setvalue). You could also use the reset() function which accepts a new set of default values for the form. Make sure you pass the current start value so it doesn't get reset and that default end value.

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

79490608

Date: 2025-03-06 20:29:13
Score: 2
Natty:
Report link

This is expected. Statistics that are 'usage' related are specific to the instance/server. Only stats like pg_stats which has things like ndistinct, most common values/frequencies, histogram, etc --- basically what is the "shape/size" of the data stored in tables (and functional indexes, and multi-variate statistics objects that get created) would be the same between primary & reader.

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

79490606

Date: 2025-03-06 20:29:13
Score: 1
Natty:
Report link

You should also use
binding.lifecycleOwner = viewLifecycleOwner
instead of
binding.lifecycleOwner = this
in Fragment.

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

79490602

Date: 2025-03-06 20:28:12
Score: 1
Natty:
Report link

You have to use foreground services to allow running the websocket as service even with the screen turned-off

So you will instantiate inside this service a websocket client class from some library, that will allow you to treat the websocket connection (onOpen, OnClosed) In the onFailure event in the websocket client, you can schedule a reconnection that will be triggered from the websocket service to restart a new websocket client object.

I am using Kotlin.

https://developer.android.com/develop/background-work/services/fgs

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

79490596

Date: 2025-03-06 20:26:12
Score: 3.5
Natty:
Report link

I updated the visual studio and the debug started working.

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

79490589

Date: 2025-03-06 20:22:11
Score: 4.5
Natty:
Report link

I have the same problem:

I do not want cache server negotiation or whatever, because the Javascript included in the application is capable of doing much much more than any common-used cache validation system based on ETags or Date validations. It uses GPS, AI over photos, and more...

I have no solution, perhaps the answer is just, at the moment,

there is no solution with HTTP header or cache negotiation, the only working solution is: a Service Worker hosted by a cloud provider.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Whitelisted phrase (-1): solution is
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (1):
Posted by: user2047060

79490586

Date: 2025-03-06 20:21:10
Score: 1
Natty:
Report link

Unfortunately discord slash commands don't have a built-in way to accept multiple image attachments only using one parameter. Your best options (outside of manually defining multiple parameters, one per image) are pretty much:

  1. Use a message based command
  2. Use a 2 two-step process where you begin the upload using a slash command then send all the images the user wants to upload in a second follow-up message
  3. Use a button after the slash command that allows users to upload files
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: iris87

79490581

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

It is the best decision, but i don't know how it fix. Try use chatGPT

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

79490574

Date: 2025-03-06 20:13:08
Score: 1
Natty:
Report link

SUM(TIME) aggregates the TIME column for each SSN group.

MAX(SUM(TIME)) is incorrect because SUM(TIME) is already grouped, and MAX() is trying to apply an additional aggregation incorrectly.

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

79490570

Date: 2025-03-06 20:11:08
Score: 1
Natty:
Report link

I can't say for sure, but the image is encoded in ID3v2.4. 0 bytes are added to the image text. And if the image is encoded, then an additional three bytes are added to the frame header. This is the size identifier of the uncoded image. It is calculated as : H1 + the size of the image before encoding. If the image is not encoded, then these three bytes are not inserted. Now about the encoding rules... When reading the source image, which is added to the TAG if the 255 character is found in the ASCII table and written after it 0 bytes, then another 0 byte is added after the 0 byte. And also, if 255 characters are found, and after it there are characters >=224 (ASCII), then after the second character it is written 0 bytes. It turns out that an image with an additional 0 bytes is written to the metadata. Its size is larger than the original. Therefore, the first size identifier is inserted as usual, and the second one is placed before the MIME, as already described above. I hope it is translated correctly and understandable.

link to the diagram : https://disk.yandex.ru/i/IKlpgNeWrAthtQ

I am from Russia and used an online translator

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Виталий

79490569

Date: 2025-03-06 20:11:08
Score: 3
Natty:
Report link

ILARE1369680241784199145874873

9101014M2605214BGD<<<<<<<<<<<3

MD ABDUL MALEK<<MD<MANOAR HOSS

Straight CV

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Filler text (0.5): <<<<<<<<<<<
  • Low reputation (1):
Posted by: Md. Arfat

79490567

Date: 2025-03-06 20:09:08
Score: 2.5
Natty:
Report link

May have been that it wasn't running as an admin as well. I noticed that the error disappeared when I logged out and relogged in as an administrator.

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

79490565

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

all the values are integers

In the example you provided, 'god' is assigned the value '2.99' which is of string type given the fact it is in quotation marks. The same thing is happening with your second key-value pair, with 'sam' having the value of '7.87' rather than 7.87. Any value in quotation marks is a string-literal, not an integer.

Keep in mind the definition of an integer: a number that is not a fraction; a whole number. Your current key values are decimals, not whole numbers. You'll need to fix this as well if you want to make your pairs function correctly.

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

79490563

Date: 2025-03-06 20:08:07
Score: 1
Natty:
Report link

This error typically occurs when there's an issue with the request body parsing or the data sent to the server, especially when creating POST, PUT, and PATCH requests.

To fix this, add the body parsing middleware configuration below to your code to enable nodeJS to parse incoming JSON data correctly.

app.use(express.json());

Adding the code above solved this error when I experienced it.

PS: Next time, add your code or specify which route caused the error so people can fully understand your question.

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

79490551

Date: 2025-03-06 20:04:06
Score: 3.5
Natty:
Report link

A couple days later, and it's working fine! Some cached version of a required plugin maybe? Just glad it's working now :)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Kathryn Cogert

79490550

Date: 2025-03-06 20:03:06
Score: 4
Natty:
Report link

Figured it out lol.... wasn't passing in a constructor argument to allow users to mint

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

79490544

Date: 2025-03-06 20:02:05
Score: 5
Natty:
Report link

hey where you able to solve the issue

Reasons:
  • Blacklisted phrase (1): you able to solve
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kng xenongt1

79490532

Date: 2025-03-06 19:57:04
Score: 3.5
Natty:
Report link

You can remove the package using adb in your terminal.

credits to this guy on XDAFourms for the answer:

https://xdaforums.com/t/how-to-uninstall-a-hidden-app.4317257/

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

79490525

Date: 2025-03-06 19:55:02
Score: 6 đźš©
Natty:
Report link

Does anyone have the original zip referenced from Microsoft. The one I find is incomplete, has no releases subfolder and the source code has tons of references to stuff not included in the .zip

http://www.java2s.com/Open-Source/CSharp_Free_Code/PowerShell/Download_UI_Automation_PowerShell_Extensions.htm

Reasons:
  • RegEx Blacklisted phrase (3): Does anyone have
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Michael Shiels

79490522

Date: 2025-03-06 19:54:01
Score: 1.5
Natty:
Report link

as it looks like nobody solved it so far, I want to suggest this solution, even after 13 years:

  // e.g. or any other convenient stream
  strStr := TStringStream.create('');
  //..
  arcItem.Stream   := strStr;    // set your stream 
  arcItem.Selected := True;  
  archive.ExtractSelected(''); // extracts to your stream, DestinationDir seems to be ignored, even if provided
  strStr.Position  := 0;       // read stream from the beginning
  OutputDebugString( PChar( strStr.DataString ) );
  //..
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Horst Neubauer

79490518

Date: 2025-03-06 19:52:01
Score: 2.5
Natty:
Report link

Everyone be aware that when the MFT increases its size the new piece of disk space it takes in not 'zeroed' - This means that content from deleted or previous incarnation of files can end up in the MFT - If those files were plain text you see your data right there in the MFT and you'll have the devil's own job removing it!

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

79490501

Date: 2025-03-06 19:42:59
Score: 1
Natty:
Report link

You're correct! It's because of the key "assignable" being false for the category ID 42 which is for YouTube shorts.

Using this documentation I used the following code and got the same information as you.

request = youtube_client.videoCategories().list(
    part="snippet",
    regionCode="US",
)
response = execute_request(request)
print(response)

So if I were you I'd choose another category unless you absolutely wanted to create a video with a category ID of 42.

Maybe refer to these answers for creating a YouTube short via the API.

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

79490495

Date: 2025-03-06 19:41:59
Score: 3.5
Natty:
Report link

This bug is tracked here: https://bugs.launchpad.net/ubuntu/+source/mpich/+bug/2072338

Unfortunately the fix is not propagated through package sources

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

79490489

Date: 2025-03-06 19:40:59
Score: 2
Natty:
Report link

Ok so apparently the scripts in angular.json were in conflict with the scripts in the index.html, so, overall these are the modifications

  1. angular.json

    "scripts": [],

  2. index.html: kept the scripts with the CDNs

  3. tsconfig.json: updated the right path for the type "d.ts"

  4. leaflet.d.ts: introduced the class Geodesic instead of namespace.

  5. Cleared package.json of any leaflet packages

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

79490470

Date: 2025-03-06 19:29:56
Score: 1
Natty:
Report link
let isChrome = navigator.userAgentData?.brands.filter((elem)=> elem.brand === 'Google Chrome')?.length > 0
console.log(isChrome)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: vsnahar

79490469

Date: 2025-03-06 19:29:56
Score: 3
Natty:
Report link

ILARE1369680241784199145874873

9101014M2605214BGD<<<<<<<<<<<3

MD ABDUL MALEK<<MD<MANOAR HOSS

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Filler text (0.5): <<<<<<<<<<<
  • Low reputation (1):
Posted by: Md. Arfat

79490441

Date: 2025-03-06 19:16:54
Score: 3.5
Natty:
Report link

Try using extern "C" for get_derived_instance.

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

79490433

Date: 2025-03-06 19:13:53
Score: 0.5
Natty:
Report link

This is the solution I found, thanks to help on loop mechanics from juanpa.arrivillaga. I imagine it's not too efficient, for that, look to other answers; however, this works without excess libraries.

def cut_overlapping_ranges(ranges):

  keep_ranges = []
  temp_ranges = ranges.copy()

  while True:
    range_position = 0
    if len(temp_ranges) == 0:
      break
    range_1 = temp_ranges[0]
    lb = range_1[0]
    ub = range_1[1]
    keep_ranges.append(range_1)
    temp_ranges.remove(range_1)
    while True:
      if len(temp_ranges) == 0:
        break
      try:
        range_2 = temp_ranges[range_position]
        if ((lb < range_2[0] < ub) or (lb < range_2[1] < ub)):
            temp_ranges.remove(range_2)
        else:
          range_position += 1
      except:
        break

  print(range)

  return

input is

[[0.0023, 0.0033],[0.0025, 0.0035],[0.0029, 0.0039],[0.0022, 0.0032],[0.0017, 0.0027],[0.0031, 0.0041],[0.0032, 0.0042],[-0.0005, 0.0005],[0.0014, 0.0024],[-0.0002, 0.0008],[-0.0006,0.0004],[0.0012, 0.0022],[0.0013, 0.0023],[0.0008, 0.0018],[0.0011, 0.0021]]

output is

[[0.0023, 0.0033],[-0.0005, 0.0005],[0.0012, 0.0022]]
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Feynman Cox

79490431

Date: 2025-03-06 19:13:53
Score: 3.5
Natty:
Report link

Not a solution to the problem, but I ended up switching to use Webpack instead of Gulp.

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

79490430

Date: 2025-03-06 19:12:53
Score: 2.5
Natty:
Report link

Cache key parameters exist on API Gateway's integration object and not method object shown here and here

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

79490427

Date: 2025-03-06 19:12:53
Score: 1.5
Natty:
Report link

Old thread, but FWIW, I had the same problem. To fix it, I made a change and pushed it to the main branch to force a rebuild. The 404 went away and the site reappeared.

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

79490422

Date: 2025-03-06 19:10:52
Score: 0.5
Natty:
Report link

1. Is there a functional difference between chain and flatMap?

Yes, there is, although it’s small:

Example:

// flatMap — the new Uni depends on the item
Uni<User> user = Uni.createFrom().item("123")
    .flatMap(id -> fetchUserFromDatabase(id)); 

// chain — just executing the next action
Uni<Void> action = Uni.createFrom().item("123")
    .chain(() -> sendAnalyticsEvent());

2. Are there edge cases where they behave differently?

Yes, two important differences:

  1. chain handles null gracefully, while flatMap throws a NullPointerException.

    Uni<String> uni = Uni.createFrom().item("Hello");
    uni.flatMap(item -\> null); // java.lang.NullPointerException: Mapper returned null
    uni.chain(item -\> null); // Works, interpreted as an empty Uni
    
  2. Error handling – both propagate exceptions, but chain is more predictable since it works sequentially.

3. If the difference is small, why have both methods?

To improve code readability. Other reactive libraries (Reactor, RxJava) only have flatMap, but Mutiny introduced chain to make it clear when you don’t need the result and just want to execute the next step.

4. Are there best practices for using them?

Yes:

Simple rule of thumb:
Need to work with the result? → flatMap
Just executing the next action? → chain
Expecting null? → chain

5. Are there historical or architectural reasons for both methods?

Yes. flatMap comes from functional programming and reactive libraries. Mutiny introduced chain to make code more readable when you don’t need the data and just want to execute the next step.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Maksim Banit

79490413

Date: 2025-03-06 19:04:51
Score: 1
Natty:
Report link

You'll need to use the ~ symbol which refers to previous commit.

git config --global alias.fdiff '!git diff $(git merge-base --fork-point HEAD)~'
git fdiff
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kiryl Famin

79490399

Date: 2025-03-06 18:55:49
Score: 1.5
Natty:
Report link

Solution: ClickOne fails to include dependencies that it's not aware of. Solution was to manually include the dll in the project, as indicated here: How to add native DLLs to ClickOnce deployment of .NET app

Reasons:
  • Whitelisted phrase (-2): Solution:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: gooopil

79490392

Date: 2025-03-06 18:51:48
Score: 0.5
Natty:
Report link

In my case I was made a mistake.

import HomePage from "./(main)/page"; // main reason for that import and that page

export default function Home() {
  return (
    <HomePage/>
  )
}

Just find out that type of import page.

Then I Delete that unnecessary file.
Then run npm run build vercel --prod

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Al Mamun Khan

79490382

Date: 2025-03-06 18:47:47
Score: 2
Natty:
Report link

Can clearly see that you used AI for your question. Nonetheless, after using type into for UserName and Password, and pressing the login button. You can add a "Element Exists" to check if you are on the homepage before proceeding with the other steps.

You can check if either the page logo exist or a specific text. Note, the next click activity you use after clicking login would automatically check if the page finished loading.

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

79490378

Date: 2025-03-06 18:45:47
Score: 5
Natty: 5
Report link

same issue over here. Wanted to check in with you and see if you managed to fix it?

I've tried a bunch of things and couldnt get anything to work, this happens even if the app is minimized.

Reasons:
  • RegEx Blacklisted phrase (1.5): fix it?
  • RegEx Blacklisted phrase (1): same issue
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Uroš

79490371

Date: 2025-03-06 18:43:46
Score: 3
Natty:
Report link

I encounter the same issue on vs 17.13, the cmake version is 4.0.0, the preset files always be overwriten by qt visual studio tools when I save them. ash!

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

79490366

Date: 2025-03-06 18:42:45
Score: 4.5
Natty:
Report link

in my case, I was just migrate my code from kapt to ksp using this link

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kishan Verma

79490359

Date: 2025-03-06 18:38:44
Score: 1.5
Natty:
Report link

Open the terminal and cd into the directory with the files.

A one-liner to type into the terminal.

for f in *.MOV; do ffmpeg -i "$f" "${f%.mov}.mp4"; done
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: anjchang

79490351

Date: 2025-03-06 18:36:44
Score: 2
Natty:
Report link

Check ./database folder permissions. Setting permissions 777 helps.

Can't find other ways to fix this problem.

Also you may have problems with images inside admin interface. 777 permissions for ./upload folder helps

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

79490348

Date: 2025-03-06 18:33:43
Score: 1
Natty:
Report link

Given your request works fine in Postman the easiest way of getting the same with JMeter is just recording it using JMeter's HTTP(S) Test Script Recorder

  1. Start JMeter’s HTTP(S) Test Script Recorder

  2. Import JMeter’s certificate into Postman

    enter image description here

  3. Configure Postman to use JMeter as the proxy

    enter image description here

  4. Run your request in Postman

  5. That’s it, JMeter will generate the appropriate HTTP Request sampler and HTTP Header Manager

More information: How to Convert Your Postman API Tests to JMeter for Scaling

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

79490346

Date: 2025-03-06 18:31:43
Score: 0.5
Natty:
Report link

Since proxychains did not work with Java apps and VPN was not an option for me, I had to use a workaround.
You can do it by starting a proxy like mitmproxy with proxychains and eventually also add an upstream proxy to mitmproxy (https://docs.mitmproxy.org/stable/concepts-modes/#upstream-proxy).
Then you can configure the proxy settings of your Java application (in my case SoapUI) to use mitmproxy.

Reasons:
  • Blacklisted phrase (1): did not work
  • No code block (0.5):
  • High reputation (-1):
Posted by: baptx

79490331

Date: 2025-03-06 18:25:42
Score: 3
Natty:
Report link

Thanks. But it is taking too much time when trying to fetch the same for single studentid (say 25) from a 500 Million table. Seems all the hierarchies are being built out of 500 Million rows, then it's fetching record for studentId (say 25). Where this studentid = 25 can be introduced as a filter inside the query so that query plan is optimum and it only fetches the hierachy corresponding to 25.

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

79490322

Date: 2025-03-06 18:17:40
Score: 3.5
Natty:
Report link

The javascript necessary to handle reading files must go in the 'Tests' tab, not the 'Pre-request' or 'Post-response' tabs

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

79490320

Date: 2025-03-06 18:16:40
Score: 0.5
Natty:
Report link

Your question is missing some details but assuming my assumptions are correct:

I get an error Couldn't open shared file mapping:.. when running this code, most likely because the tensor is implicitly being copied to shared memory and second copy does not fit. There is exactly the same error if I call share_memory_() on this tensor explicitly, for the same reason.

This is correct. You will end up with two tensors:

  1. Original CPU tensor (private memory)
  2. Shared-memory tensor (a copy)

And as you say, it won't fit.

One approach besides the file thing could be to use multiprocessing's shared_memory e.g.

import torch
import numpy as np
from multiprocessing import shared_memory

tensor_shape = (1024, 1024, 512)
dtype = np.float32
num_elements = np.prod(tensor_shape)

sh_mem = shared_memory.SharedMemory(create=True, size=num_elements * np.dtype(dtype).itemsize)
np_array = np.ndarray(tensor_shape, dtype=dtype, buffer=sh_mem.buf)

# create tensor without actually copying data
tensor = torch.from_numpy(np_array)

As further proof of no copying, you can check the base pointer of each:

>>> print(np_array.ctypes.data)
133277195173888
>>> print(tensor.data_ptr())
133277195173888

and they should match up.

Reasons:
  • Blacklisted phrase (0.5): exactly the same error
  • RegEx Blacklisted phrase (1): I get an error
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: gfdb

79490319

Date: 2025-03-06 18:16:40
Score: 2.5
Natty:
Report link
import {Appearance} from 'react-native';

For Dark Theme

Appearance.setColorScheme('dark');

For Light Theme

Appearance.setColorScheme('light');

You can read React Native Appearance

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Osman İşci

79490313

Date: 2025-03-06 18:13:39
Score: 2
Natty:
Report link

It was a bug in the QPY serialization. qiskit 1.4.1 and qiskit 2.0.0 have fixes for it.

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

79490311

Date: 2025-03-06 18:13:39
Score: 1.5
Natty:
Report link

Another really great tool for upscaling images is the super-image PyPI package https://pypi.org/project/super-image/. The downside, is this uses stable diffusion, which does not handle text as well. You may have amazing results, but you also might have mixed results.

This package also works best with GPU processing with PyTorch.

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

79490309

Date: 2025-03-06 18:11:39
Score: 2
Natty:
Report link

first check python as python --version

then run this in cmd python -m ensurepip --default-pip if not there then use this command python get-pip.py. Still not resolved then update the python path to Path enviroment variables

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

79490298

Date: 2025-03-06 18:09:37
Score: 9 đźš©
Natty:
Report link

Thanks a lot. I have the data that needs to be added at the end is in an excel file.

what do you mean by "Once you have the new HTML" - This is where i got so confusing meaning

do i need to convert that 5 rows of data into an HTML format? - Could you please provide a dummy sample example of the script please

what if i just want to append those 5 rows of data from excel? is it still required that i get those 5 rows into HTML format?

could you please help with a sample script

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (2.5): Could you please provide
  • RegEx Blacklisted phrase (3): could you please help
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Raj