79296275

Date: 2024-12-20 05:35:11
Score: 3
Natty:
Report link

the code is 100% working, i just tested it out with my endpoint see below

the 3 things could lead to 404 error are below. make sure you find them explicitly in azure's endpoint page. (see last screenshot)

enter image description here

enter image description here

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

79296260

Date: 2024-12-20 05:25:09
Score: 2.5
Natty:
Report link

I had to set workflow global env variables ARM_CLIENT_ID, ARM_CLIENT_SECRET, ARM_TENANT_ID and ARM_SUBSCRIPTION_ID, and also find a way to ingest my secrets into my workflow file. Once I had changed the service principal I was logging in with, and set the variables instead of using the azure login step, it worked.

Thanks to @VijayB for pointing me in the right direction.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • User mentioned (1): @VijayB
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Springsomfan

79296257

Date: 2024-12-20 05:23:08
Score: 2
Natty:
Report link

You can select Change target branch to switch to a different target branch and then use the same process to switch back to your original target branch.

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

79296254

Date: 2024-12-20 05:22:08
Score: 0.5
Natty:
Report link

I ran npm run build and it compiled everything. Then you want to run the project so start by initiating npm start. Hope this helps.

Steps:

  1. npm run build
  2. npm start
Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mahmoud Shafaamry

79296252

Date: 2024-12-20 05:22:08
Score: 0.5
Natty:
Report link

The answer is "not out of the box". There are no settings to disable redraws in the library.

Some backends might batch redraws as a side effect. The base implementation, which Agg and most others use, redraws whenever it can. The comments never claim to provide any protection from that, but leave it as an option to inheriting classes.

So it is possible to implement a custom backend with a more conservative redraw strategy and use that. In my case the following was enough:

from matplotlib.backend_bases import _Backend
from matplotlib.backends.backend_agg import FigureCanvasAgg, _BackendAgg

class FigureCanvasAggLazy(FigureCanvasAgg):
    def draw_idle(self, *args, **kwargs):
        pass # No intermediate draws needed if you are only saving to a file

@_Backend.export
class _BackendAggLazy(_BackendAgg):
    FigureCanvas = FigureCanvasAggLazy
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user2333250

79296250

Date: 2024-12-20 05:20:08
Score: 2.5
Natty:
Report link

Just noticed this question which is unanswered, so thought of adding the answer. You need to rollup this way (120 s is the time duration): query = "max:system.mem.used{host:}.rollup(max, 120)"

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

79296249

Date: 2024-12-20 05:20:08
Score: 2.5
Natty:
Report link

the first step is to locate your project folder

then run these commands one by one

npm uninstall react react-dom

then

npm install react@18 react-dom@18

then

npm install --no-audit --save @testing-library/jest-dom@^5.14.1 @testing-library/react@^13.0.0 @testing-library/user-event@^13.2.1 web-vitals@^2.1.0

then

npm start

or you can go with this YouTube link: https://youtu.be/mUlfo5ptm1o?si=hYHTwc7hApEXzPX5

Reasons:
  • Blacklisted phrase (1): youtu.be
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sai Teja Yelubolu

79296243

Date: 2024-12-20 05:15:06
Score: 0.5
Natty:
Report link

I know its been a while since this question was asked.

After working on many large scale expressJs, here's my take on the best way to log in expressJs in production.

Use Pino logger and I suggest that because

  1. It is designed with performance as the primary goal.
  2. It uses asynchronous logging and writes logs directly to streams, which minimises the performance impact.
  3. Logs in JSON format by default, which is optimal for modern logging tools and log aggregators

Additionally in production you should also consider using sonic-boom to minimise the number of disk I/O operations, you could set buffer sizes to tell sonic-boom to only write when the logs exceed a certain length.

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

79296238

Date: 2024-12-20 05:06:05
Score: 1
Natty:
Report link

first of i apologize that i leave this as an answer as i can't comment.

just as Slava commented, it would be nice to see your .devcontainer/Dockerfile

i am assuming that there was no problem running your docker-compose file until you tried to conditionally run your celery related containers. so i think it would be helpful to know the commands you used and the order you would start your app.

also as long as the celery worker using the paid API isnt executing any task (ie. using the paid API to do something), i doubt that you will be charged just for the celery container to be up as it will be in an idle state.

hope this helps.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • RegEx Blacklisted phrase (1): can't comment
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sccs

79296237

Date: 2024-12-20 05:06:05
Score: 2.5
Natty:
Report link

Locate postgresql.conf in your cPanel-hosted PostgreSQL installation. Usually found in the data directory, e.g: /var/lib/pgsql/data/ or /var/lib/postgresql//data/

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

79296236

Date: 2024-12-20 05:06:05
Score: 2
Natty:
Report link

All build configuration for a Swift package goes in the Package.swift file. As Rafael Francisco mentioned in his comment, many of the Info.plist values will belong to the app which imports your package such as the entitlements. Apps have entitlements associated with their App ID. Packages within an app don't need these.

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

79296231

Date: 2024-12-20 05:05:04
Score: 2
Natty:
Report link

I resolved it, because I follow up as bellow link. https://reactnative.dev/blog/2024/10/23/release-0.76-new-architecture#breaking-changes-1

Reasons:
  • Whitelisted phrase (-2): I resolved
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sean Chang

79296230

Date: 2024-12-20 05:04:04
Score: 0.5
Natty:
Report link

I tried out your code snippets and specify package version. seems working fine in my end.

enter image description here

"dependencies": { "@azure/openai": "^2.0.0-beta.2", "openai": "^4.62.1" }

import { AzureOpenAI } from "openai";
import "@azure/openai/types";

const deployment = "gpt-4o";
const apiVersion = "2024-08-01-preview";
const apiKey = "xxxxx";
const endpoint = "https://xxxxx.openai.azure.com"; // Add your endpoint here
const options = { deployment, apiVersion, apiKey, endpoint }
const client = new AzureOpenAI(options);

const messages = [
    { role: "system", content: "You are a helpful assistant." },
    { role: "user", content: "Tell me a joke." }
  ];

const response = await client.chat.completions.create({
    model: '',
    messages,
    data_sources: [
      {
        type: "azure_search",
        parameters: {
          endpoint: "XXXX",
          index_name: "YYYY",
          authentication: {
            type: "system_assigned_managed_identity",
          },
        },
      },
    ]
  });
  

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

79296227

Date: 2024-12-20 05:02:04
Score: 2.5
Natty:
Report link

You can alternatively use Swift Playgrounds App, it has an in-built feature of "Step-Through" and it highlights every line in each step as shows below in the attached image.

swift playgrounds step-through-code

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

79296226

Date: 2024-12-20 05:02:04
Score: 3
Natty:
Report link

thank you thank you so much i did everything for days. and this is the only thing that worked for me thanks

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Edgar Pringle

79296224

Date: 2024-12-20 05:01:03
Score: 1
Natty:
Report link

In addition to what have been said above there is another one solution. It is possible to pause a scenario run at any time and run step (cucumber step, not java step) by step. My solution for E2E testing is cucumber hook @AfterStep, local Spark server, Chrome extension and Idea plugin. Hook is for making a loop with wait until state changed, spark is for receiving a commands from buttons, extension is for injecting three buttons on page (pause, one step, resume) and Idea plugin is for same three buttons. The idea is to send a command to the spark, it transfers the command to a class, that handles a state change and waits next command.

I can't share a code due to corporate rules but you can find some details and code fragments in the article in corporate blog on habr.ru (use google translate). Here is the link https://habr.com/ru/companies/mvideo/articles/867178/

And below is key fragment of handler class

public static volatile String breakpointState = STATE_RESUME;

public static void handleBreakpointActions(boolean shouldBeStopped) {
     if (shouldBeStopped && isBreakpointFeatureOn()) {
         breakpointState = STATE_PAUSE;
     }
     if (breakpointState.equals(STATE_PAUSE) || breakpointState.equals(STATE_ONE_STEP)) {
         breakpointState = STATE_PAUSE;
         makePause();
     }
     else{
         waitForMs(waitBetweenSteps);
     }
}
Reasons:
  • Blacklisted phrase (1): Here is the link
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @AfterStep
  • Low reputation (0.5):
Posted by: Ysee.mma

79296222

Date: 2024-12-20 04:57:02
Score: 1
Natty:
Report link

Method 1:

Simply unplug usb drive and plug it again then Then go back to the language and region change screen and click Install It will work normally,

Method 2:

https://drive.google.com/file/d/105ZYYj8RdvrnKb9k7cTVSOjuTMO-7YUg/view

download and extract the file and paste in the usb.

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

79296213

Date: 2024-12-20 04:50:01
Score: 1.5
Natty:
Report link

Change

_mode = NSRunLoopCommonModes;

to

_mode = NSDefaultRunLoopMode;

Then I can get the animation running.

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

79296186

Date: 2024-12-20 04:31:56
Score: 6.5 🚩
Natty: 4
Report link

Okay so the new version has additions I will be using if it is okay ( will include a link back to the codepen source code) but I do not see the.menu-global:hover to make the menu - burger show on the right as I want it to. What am I missing. Thanks in advance

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: bud F

79296166

Date: 2024-12-20 04:21:54
Score: 1
Natty:
Report link

Every thing looks great, But the method login_user('some_user_name', remember=False) is not right, instead:

from superset import security_manager user = security_manager.find_user(username='some-user_name') login_user(user, remember=False) Now, it takes an object user.

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

79296162

Date: 2024-12-20 04:19:52
Score: 6.5 🚩
Natty:
Report link

Ya I am a beginner and switched to hardhat and been upleveling myself.Thanks for the concern and any tips to capture the essence of web3 are welcomed

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): any tips
  • RegEx Blacklisted phrase (2): I am a beginner
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Wasim Choudhury

79296157

Date: 2024-12-20 04:17:52
Score: 0.5
Natty:
Report link

This code is working correct.

<select class="form-select form-select-sm" id="size-cart{{ product.id }}">
{% for key, value in sizes.items %}
{% if key == product.id|slugify %}
  <option selected>{{ value }}</option>
{% endif %}
{% endfor %}

{% for size in all_sizes %}
<option value="{{size.id}}">{{ size.size }}</option>
{% endfor %}
</select>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Azmain1234

79296151

Date: 2024-12-20 04:14:51
Score: 1
Natty:
Report link

This is because:

  1. If negative weight edges exist, the greedy strategy may fail;
  2. After determining a vertex's shortest path, a shorter path might be found through negative weight edges, violating the algorithm's basic assumption: confirmed shortest paths won't be updated

For example, in the graph below, there's a negative weight edge CE with weight -13. The actual shortest path to E is 1 (shown by red arrows), but the algorithm calculates it as 10:

Error negative weight Dijkstra case

For graphs with negative weight edges, other algorithms (such as the Bellman-Ford algorithm) must be used to solve the shortest path problem.

If you want to see Dijkstra calculate the shortest path step by step, you can experience it on my Dijkstra algorithm visualization page.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
Posted by: selfboot

79296130

Date: 2024-12-20 04:01:48
Score: 5.5
Natty: 5
Report link

You can read about this in details in this article: https://medium.com/@riturajpokhriyal/advanced-logging-in-net-core-a-comprehensive-guide-for-senior-developers-d1314ec6cab4?sk=c9f92fbb47f93fa8b8bf21c36771ec8c

This is a very comprehensive article.

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: RITURAJ POKHRIYAL

79296129

Date: 2024-12-20 03:59:47
Score: 1.5
Natty:
Report link

here you go :)

function wait(s)
  local lastvar
  for i=1, s do
        lastvar = os.time()
        while lastvar == os.time() do

        end
  end

end

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

79296126

Date: 2024-12-20 03:56:47
Score: 2.5
Natty:
Report link

The HTML root files like index.html etc. are there, and you can process them, but the console.log(event.request.url) or self.console.log(event.request.url) do not output them.

enter link description here

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: veto

79296124

Date: 2024-12-20 03:54:46
Score: 1
Natty:
Report link

Use .withAlpha() with a value between 0 and 255 to represent the alpha channel directly.

eg: Color(0xff171433).withOpacity(0.1) -> Color(0xff171433).withAlpha((0.1 * 255).toInt())

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

79296120

Date: 2024-12-20 03:47:45
Score: 2
Natty:
Report link

Maybe your TJA1050 device were disable. In my case when I tried to use CAN1 with my CAN Transceiver module (TJA1043T). I have to set EN and STB_N pin to HIGH level. Otherwise, the CAN would change to bus-off mode.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Tạ Lục Gia Hoàng

79296118

Date: 2024-12-20 03:45:44
Score: 1
Natty:
Report link

First, I want to show useful debugging tips for CSRF. Developer tools Network tab show useful information.

CSRF Debugging

My problem was that I am accessing site in http rather than https. But since this is development environment, and for debugging purpose, CSRF_COOKIE_SECURE should be False. But I already set CSRF_COOKIE_SECURE=False in .env. My issue was that CSRF_COOKIE_SECURE read from .env file but it read as str instead of bool which is causing the issue.

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

79296114

Date: 2024-12-20 03:40:43
Score: 1.5
Natty:
Report link

If your router/firewall/internet gateway and your host machine supports VLANs (802.1ad).

Easiest option is to use the IPvlan driver from Docker

Another more thorough option is to create a separate VLANs on your router/firewall/internet gateway and configure your host machine with separate network interfaces for the two VLANs and then create a container and attach to the appropriate network interface.

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

79296112

Date: 2024-12-20 03:38:43
Score: 2
Natty:
Report link

Just wanted to document that this is still occurring on VSCode version 1.96.1.

The workaround still works :).

Posted this in my own comment, as I could not comment under the accepted answer.

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

79296111

Date: 2024-12-20 03:38:43
Score: 3.5
Natty:
Report link

send me a message i can help : [email protected]

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

79296106

Date: 2024-12-20 03:32:42
Score: 0.5
Natty:
Report link

com.google.firebase.database.DatabaseException: Expected a Map while deserializing, but got a class java.lang.String at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.expectMap(CustomClassMapper.java:344) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.deserializeToParameterizedType(CustomClassMapper.java:261) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.deserializeToType(CustomClassMapper.java:176) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.convertToCustomClass(CustomClassMapper.java:101) at com.google.firebase.database.DataSnapshot.getValue(DataSnapshot.java:229) at com.enormousop.k.onChildAdded(Unknown Source:8) at com.google.firebase.database.core.ChildEventRegistration.fireEvent(ChildEventRegistration.java:79) at com.google.firebase.database.core.view.DataEvent.fire(DataEvent.java:63) at com.google.firebase.database.core.view.EventRaiser$1.run(EventRaiser.java:55) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8751) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

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

79296105

Date: 2024-12-20 03:31:42
Score: 2.5
Natty:
Report link
(Get-date).AddDays(1) # add one day
Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Dmitri

79296103

Date: 2024-12-20 03:25:41
Score: 1.5
Natty:
Report link

Digital Puthra – we provide all kinds of digital marketing services like seo, sem , smo, smm, content writing , affiliate marketing , web hosting services, website deigning , graphic designing at affordable prices. Visite : https://digitalputhra.com/ or [url=https://digitalputhra.com/]digitalputhra[/url]. At Digital Puthra, we believe thtat client satisfaction is more important than anything. so that we provide great output without any delay that too at affordable prices. We have well experienced digital marketing team with a great track record.

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

79296098

Date: 2024-12-20 03:22:40
Score: 3
Natty:
Report link

Had this same issue and reading the comment from @JayMason triggered the fix for me...

Need to enable mods for apache2:

sudo a2enmod rewrite

sudo a2enmod headers

sudo systemctl restart apache2

After that the login and register pages started to work.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @JayMason
  • Low reputation (1):
Posted by: AndyPando

79296090

Date: 2024-12-20 03:14:38
Score: 4.5
Natty: 6
Report link

perfect, thank you a lot. It really helped me. I use chatgpt for it, but it didn't help me. Thanks again

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Neda Golipour

79296087

Date: 2024-12-20 03:14:38
Score: 0.5
Natty:
Report link

Adding alternatives here just for future references

-mtime +240 means 240 days (approximately 8 months)

  1. deleting file older than 8 months

rm $(find folder/* -type f -mtime +240)

  1. Deleting folders older than 8 months

    rm $(find folder/* -type d -mtime +240)

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

79296086

Date: 2024-12-20 03:14:38
Score: 0.5
Natty:
Report link

to switch tabs into windows

:sball | tabo

explained below.

to split windows for all buffers

:sball

to close other tabs

:tabo

to split window for a certain buffer

:sb <buffer  number>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: A117

79296085

Date: 2024-12-20 03:13:38
Score: 1
Natty:
Report link

Make sure you imported from @kotlinx.serialization.Serializable and properly setup plugin in build.gradle,

Module: id("org.jetbrains.kotlin.plugin.serialization") version "1.7.10" apply false

App: id("org.jetbrains.kotlin.plugin.serialization")

Then try the start destination as, startDestination = OwnerGraph.HistoryGraph

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

79296078

Date: 2024-12-20 03:09:37
Score: 2.5
Natty:
Report link

This is the intended behavior of the idempotency middleware. When you make an identical request within the expiry window, it returns the previously stored result without re-invoking the handler function. Any logs or code within the handler body won’t execute again.

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

79296072

Date: 2024-12-20 03:06:36
Score: 0.5
Natty:
Report link

Background

ModelMapper is a library built specifically for mapping structurally similar heterogeneous objects onto each other. In other words, two different types of objects that have similarly named and typed fields. Thus, it naturally lends itself to your problem.

Unfortunately, it does not have support for Java 8's Optional wrappers built-in.

Thankfully, ModelMapper does allow you to specify custom converters.

Credit

Please read more about ModelMapper: https://modelmapper.org/

My code below is loosely based on: https://stackoverflow.com/a/29060055/2045291

Code

Custom Converter for Optional<T> --> T

Note: you may want to verify the type of the Optional's contents matches the destination type.

import org.modelmapper.spi.*;
import java.util.Optional;

public class OptionalExtractingConverter implements ConditionalConverter<Optional, Object> {
    @Override
    public MatchResult match(Class<?> aClass, Class<?> aClass1) {
        if (Optional.class.isAssignableFrom(aClass) && !Optional.class.isAssignableFrom(aClass1)) {
            return MatchResult.FULL;
        }
        return MatchResult.NONE;
    }

    @Override
    public Object convert(MappingContext<Optional, Object> context) {
        final Optional<?> source = context.getSource();

        if (source != null && source.isPresent()) {
            final MappingContext<?, ?> childContext = context.create(source.get(), context.getDestinationType());
            return context.getMappingEngine().map(childContext);
        }

        return null;
    }
}

Test

import org.modelmapper.ModelMapper;

import java.util.Optional;

public class MappingService {

    private static final ModelMapper modelMapper = new ModelMapper();
    static {
        modelMapper.typeMap(OptionalObject.class, NonOptionalObject.class)
                .setPropertyConverter(new OptionalExtractingConverter());
    }

    public static void main(String[] args) {
        OptionalObject optionalObject = new OptionalObject(Optional.of("test"));
        NonOptionalObject nonOptionalObject = modelMapper.map(optionalObject, NonOptionalObject.class);
        System.out.println("⭐️ RESULT: " + nonOptionalObject.getName());
    }

}

Source Object (w/ Optional field)

import java.util.Optional;

public class OptionalObject {

    private Optional<String> name;

    public OptionalObject() {
    }

    public OptionalObject(final Optional<String> name) {
        this.name = name;
    }

    public Optional<String> getName() {
        return name;
    }

    public void setName(Optional<String> name) {
        this.name = name;
    }

}

Destination Object (w/ non-Optional field)

public class NonOptionalObject {

    private String name;

    public NonOptionalObject() {
    }

    public NonOptionalObject(final String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

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

79296070

Date: 2024-12-20 03:02:35
Score: 0.5
Natty:
Report link

so you have defined external stages right? Why don't you try something like, i don't know if it works but is more like some select to s3 files that we query,

SELECT count(*)
FROM @[EXTERNAL_STAGE_NAME]/[TABLE or whatever you define as the access to the files]/S3_SF_DEV/Test/FILE/DATA (file_format => [if you define a file format], PATTERN => :dynamic_file_pattern);
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Robertino Bonora

79296068

Date: 2024-12-20 03:01:35
Score: 2.5
Natty:
Report link

there are several compromise solutions 1、reduce the video resolution; 2、ues source code engine,and modify "MaxVideoSinkDepth" value; 3、switch to a more powerful computer.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 马晓雄

79296063

Date: 2024-12-20 02:54:34
Score: 0.5
Natty:
Report link

Try C++23:

#include <ranges>
#include <iostream>
int main() {
    std::cout << (
        std::views::repeat("C++! "s)
        | std::views::take(3)
        | std::views::join
        | std::ranges::to<std::string>()
    ) << std::endl;
}

Output:

C++! C++! C++! 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: shynur

79296062

Date: 2024-12-20 02:53:34
Score: 2.5
Natty:
Report link

As you said you are using DeiT model and the learning rate for training the model like Deit is relatively high which leads model to converge to a sub optimal solution and that is why your model is favouring only one class.

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

79296055

Date: 2024-12-20 02:49:33
Score: 0.5
Natty:
Report link
//@version=6
 indicator("SSL")
compareSSL(a,b) =>
    state = false
    if ta.cross(a,b)
        state := true  
    else if ta.cross(b,a)
        state := true
    state    

// === SSL 60 === 
show_SSL = input.bool(true, 'Show SSL') 
SSL = ta.wma(2 * ta.wma(close, 60 / 2) - ta.wma(close, 60), math.round(math.sqrt(60))) 
SSLrangeEMA = ta.ema(ta.tr, 60) 
SSLhigh = SSL + SSLrangeEMA * 0.2 
SSLlow = SSL - SSLrangeEMA * 0.2 
 
// === SSL 120 === 
SSL_120 = ta.wma(2 * ta.wma(close, 120 / 2) - ta.wma(close, 120), math.round(math.sqrt(120))) 
SSL_120rangeEMA = ta.ema(ta.tr, 120) 
SSL_120high = SSL_120 + SSL_120rangeEMA * 0.2 
SSL_120low = SSL_120 - SSL_120rangeEMA * 0.2 

// Trend and colors  
SSL120color = close > SSL_120high ? color.new(color.aqua, 20) : close < SSL_120low ? color.new(#ff0062, 20) : color.gray 
 
// Trend and colors  
SSLcolor = close > SSLhigh ? color.new(color.teal, 0) : close < SSLlow ? #720f35 : #8b96be 
 
newcolor = #2013dd
if compareSSL(SSL,SSL_120) 
    SSL120color := newcolor
    SSLcolor := newcolor
else if compareSSL(SSLhigh,SSL_120high) 
    SSL120color := newcolor
    SSLcolor := newcolor
else if compareSSL(SSLlow,SSL_120low)
    SSL120color := newcolor
    SSLcolor := newcolor
// Drawings 1
plotSSL = plot(show_SSL ? SSL : na, color=SSLcolor, linewidth=1, title='SSL Baseline') 
plotSSLhigh = plot(show_SSL ? SSLhigh : na, color=SSLcolor, linewidth=1, title='SSL Highline') 
plotSSLlow = plot(show_SSL ? SSLlow : na, color=SSLcolor, linewidth=1, title='SSL Lowline') 
fill(plotSSLhigh, plotSSLlow, color=color.new(SSLcolor, 90)) 
 

// Drawings 2
plotSSL120 = plot(show_SSL ? SSL_120 : na, color=color.new(SSL120color, 100), linewidth=1, title='SSL120 Baseline') 
plotSSL120high = plot(show_SSL ? SSL_120high : na, color=color.new(SSL120color, 100), linewidth=1, title='SSL120 Highline') 
plotSSL120low = plot(show_SSL ? SSL_120low : na, color=color.new(SSL120color, 100), linewidth=1, title='SSL120 Lowline ') 
fill(plotSSL120high, plotSSL120low, color=color.new(SSL120color, 80))

Sample image

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

79296050

Date: 2024-12-20 02:44:32
Score: 3
Natty:
Report link

i can help you send me a message : [email protected]

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

79296041

Date: 2024-12-20 02:37:31
Score: 1.5
Natty:
Report link

When the target memory block is not in the cache, the write-through policy directly writes the data to memory. In contrast, the write-back policy first loads the data into the cache and then modifies it, which might seem redundant. However, this approach is designed to reduce the number of writes to memory. Although a read operation is added during a cache miss, subsequent writes can all hit the cache. Otherwise, if the data is never read, each write operation under the write-back policy would still need to access the memory.

Translated from: https://juejin.cn/post/7158395475362578462.

My understanding is that it is based on the application of the principle of locality, to reduce the number of writes to memory.

:))

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When the
  • Low reputation (1):
Posted by: daddyKiko

79296034

Date: 2024-12-20 02:28:29
Score: 3
Natty:
Report link

In addition to what pmunch said you can mark procs and or variables with the {.compileTime.} pragma to enforce their evaluation, at compile time.

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

79296028

Date: 2024-12-20 02:21:27
Score: 4
Natty: 4
Report link

I’m pretty sure the data is in the computer. You just need to open it up.

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

79296025

Date: 2024-12-20 02:20:26
Score: 4
Natty: 4
Report link

You should ask Sarah, she can solve your problem straight away

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

79296007

Date: 2024-12-20 01:56:21
Score: 1.5
Natty:
Report link

a simple solution for most cases is: if the path has maximum curvature less than or equal to the maximum force divided by mass times the maximum velocity squared, than the speed is constant at the maximum speed, and the force is perpendicular to the motion of travel, with a magnitude proportional to the curvature. This is derived by setting the speed to the maximum allowed speed, and than using the osculating circle as a second order approximation for the path, and because acceleration(and therefore force) is locally independent of o(t^3) terms this approximation is exact. To generalize to higher dimensions one would have to take into account torsion, but the same concept applies.

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

79295990

Date: 2024-12-20 01:36:18
Score: 4.5
Natty:
Report link

I thank you all very much for your comments and corrections. Thanks to your corrections and comments, my program now runs well. I wish you good health.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ka nguyen van

79295989

Date: 2024-12-20 01:36:18
Score: 1
Natty:
Report link

It turns out both features (separating computation of the status and request handling as well as timelimits for computation of the status) have been requested by other users and are under consideration by spring. You can check out these issues to track the progress on these issues: https://github.com/spring-projects/spring-boot/issues/25459 https://github.com/spring-projects/spring-boot/issues/43449

In addition the tests currently run sequentially and running them parallel is also under consideration here: https://github.com/spring-projects/spring-boot/issues/2652

Since all of these issues are already open for a while, the threads mention a few ways to implement the respective behavior on the application side overwriting the existing status checks. In particular, there is also this library that combines these features and allows to use them for any health check via annotation: https://github.com/antoinemeyer/spring-boot-async-health-indicator Note that it still would need you to overwrite any existing status checks to apply the different behavior to them (and disable the default version).

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

79295979

Date: 2024-12-20 01:19:15
Score: 0.5
Natty:
Report link

I am using -

expected_json_as_dict = {'some': 'json'}
output_json_as_dict = {'some': 'json'}
self.assertDictEqual(output_json_as_dict, expected_json_as_dict)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Sadidul Islam

79295976

Date: 2024-12-20 01:18:15
Score: 2.5
Natty:
Report link

I wasn't specifying the correct number of decimals.

For example if I wanted to withdraw 2 ETH:

Correct: 2_000_000_000_000_000_000

Incorrect: 2

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

79295973

Date: 2024-12-20 01:17:14
Score: 3
Natty:
Report link

I automated it via Google Sheet App Scripts, was quite lengthy path, to retrieve apps, then localizations, then locales, then patch each localization locale with translated text, thanks to Google Sheets covering both automation and translation for free.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ol camomile

79295971

Date: 2024-12-20 01:16:14
Score: 3.5
Natty:
Report link

cipher_text: LGzd/pNG8igZZc5/uQ/XsZ+H/Ra0j+/tD4/XvS0rh/hvtszKYxQdLJqqhtW5u+ridsNKKasG+pPPu+rMal0cMgn7W0uSoqNv7MVP2Jtxm44=

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Thanh Hoang

79295962

Date: 2024-12-20 01:07:12
Score: 2
Natty:
Report link

Odilon maybe useful for this case. It is a lightweight open source file storage in Java: https://odilon.io

It supports encryption, redundancy via software RAID/Erasure Codes, Version control, master-standby replication.

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

79295961

Date: 2024-12-20 01:02:11
Score: 4
Natty:
Report link

reactions.type(HEART).summary(totalCount)

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Queen Rose A. Belonio

79295960

Date: 2024-12-20 01:01:10
Score: 1
Natty:
Report link

in my experience, training using 400 labels with only 900 images 'which mean only 2-3 image' per-label (i see several label have only one image in train dataset or test dataset) is quite challenges for model able effective learning and generalization.

even if you can find the perfect fine tuning of the model somehow, it's still have high possibility to became over-fitting model, which is a sign of bad model. It only remember several image in training, not learning the important features.

my recommendation is :

  1. Collect more data, in AI what ever it is having more (*and good quality) is always preferable
  2. reduce the labels, i don't know how many data for each label in the pre-training model, but it's better to have the similar number of data to give a balance dataset composition
  3. if you have problem with gathering data, then do augmentation on the image, there is several option of augmentation like saturation change, rotated, temperature change, etc.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ibram AI

79295959

Date: 2024-12-20 00:59:10
Score: 2
Natty:
Report link

Try going to:

Resharper -> Options -> Code Editing -> C# -> Formatting Style -> Tabs, Indents, Alignment

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

79295958

Date: 2024-12-20 00:59:10
Score: 2.5
Natty:
Report link

I made an article on setting this up after figuring it out for Android and Windows. It does not require a client secret and implements PKCE if anyone is interested.

.NET MAUI Google Drive OAuth on Windows and Android

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

79295956

Date: 2024-12-20 00:58:10
Score: 2
Natty:
Report link

It looks like this might be the reason why the META-INF/TestList is not created in JDK 23.

After explicitly enabling the annotation processing like this, the issue was resolved.

Reasons:
  • Contains signature (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: yaskovdev

79295952

Date: 2024-12-20 00:55:09
Score: 3.5
Natty:
Report link

Just install ssh on your vm and use ubuntu's copy paste naturally. It's the same thing as using aws from terminal

https://hostman.com/tutorials/how-to-install-and-configure-ssh-on-ubuntu-22-04/

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

79295930

Date: 2024-12-20 00:30:05
Score: 0.5
Natty:
Report link

Adding this to my build.rs worked for me

println!("cargo:rustc-link-arg=-Wl,-rpath,/Library/Frameworks");
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jumbotron

79295920

Date: 2024-12-20 00:24:04
Score: 6
Natty: 7
Report link

Hey I got a solution in this article: .NET MAUI Google Drive OAuth on Windows and Android

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

79295916

Date: 2024-12-20 00:21:03
Score: 1
Natty:
Report link

since version 1.10 of flask-caching, there is an args_to_ignore parameter to memoize().

so just change @cache.memoize(timeout=30) to @cache.memoize(timeout=30, args_to_ignore=['self']) for any class functions you want to cache.

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

79295891

Date: 2024-12-20 00:12:01
Score: 2.5
Natty:
Report link

On Windows 10, I just copied the content from the folder "bin" in the installation package here "https://www.gyan.dev/ffmpeg/builds/" in Python\Scripts and Python\Libs and that worked.(Python\ is my folder for python, I changed the name when installing it)

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rémi Descamps

79295876

Date: 2024-12-20 00:06:59
Score: 1
Natty:
Report link

Search all your project "_WIN32_WINNT" and "WINVER". Change the value to 0x0A00 #define _WIN32_WINNT 0x0A00 // Target Windows 10 #define WINVER 0x0A00

This variable is the target version for Windows you are plaining to build. Because the visual studio you are using having a new version but you software running with the old version requirement. So you need to add this. Then compiler can look up the correct library in Visual Studio

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

79295862

Date: 2024-12-19 23:59:58
Score: 2
Natty:
Report link

Acknowledge Knowledge Or Be Bacon with Bolongna...~•Homeschooler @QuickFin772m.me This DropOut Character Acting dumb is enough. I'm tired of the verify your identity mechanic malfunction... ChanceyWishbone collectorsReservedcemts 206M

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

79295851

Date: 2024-12-19 23:53:56
Score: 4
Natty: 6
Report link

THANK YOU!!!!!! I have been struggling with this for months. You are a hero! Sort by ID worked and fixed what was wrong with my project file!!!!!!

Reasons:
  • Blacklisted phrase (0.5): THANK YOU
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Wendy

79295841

Date: 2024-12-19 23:47:55
Score: 0.5
Natty:
Report link

They are the same thing. Use whatever you prefer.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Jesper Juhl

79295839

Date: 2024-12-19 23:44:54
Score: 3.5
Natty:
Report link

Use bc-gh https://github.com/gavinhoward/bc

echo "3.1e1*2" | bc -l
62
Reasons:
  • Probably link only (1):
  • Low length (2):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jeff McClure

79295838

Date: 2024-12-19 23:44:54
Score: 2
Natty:
Report link

I think the best way (at least that worked for me on Ubuntu 24) is to copy from Editor:Font Family setting, so 'JetBrainsMonoNL Nerd Font Mono', 'monospace', monospace

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

79295834

Date: 2024-12-19 23:41:53
Score: 3
Natty:
Report link

Setting start_date=days_ago(1) should do the job

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

79295824

Date: 2024-12-19 23:34:52
Score: 3
Natty:
Report link

<img src="data:image/jpeg;base64,/9j/4S/+RXhpZgAATU0AKgAAAAgACwEPAAIAAAAGAAAAkgEQAAIAAAAWAAAAmAESAAMAAAABAAYAAAEaAAUAAAABAAAArgEbAAUAAAABAAAAtgEoAAMAAAABAAIAAAExAAIAAAAIAAAAvgEyAAIAAAAUAAAAxgE8AAIAAAAWAAAA2gITAAMAAAABAAEAAIdpAAQAAAABAAAA8AAAB5BBcHBsZQBpUGFkICg1dGggZ2VuZXJhdGlvbikAAAAASAAAAAEAAABIAAAAATE2LjcuMTAAMjAyNDoxMjoxOSAxMjoxMzoxNwBpUGFkICg1dGggZ2VuZXJhdGlvbikAACOCmgAFAAAAAQAAApqCnQAFAAAAAQAAAqKIIgADAAAAAQACAACIJwADAAAAAQAoAACQAAAHAAAABDAyMzKQAwACAAAAFAAAAqqQBAACAAAAFAAAAr6QEAACAAAABwAAAtKQEQACAAAABwAAAtqQEgACAAAABwAAAuKRAQAHAAAABAECAwCSAQAKAAAAAQAAAuqSAgAFAAAAAQAAAvKSAwAKAAAAAQAAAvqSBAAKAAAAAQAAAwKSBwADAAAAAQAFAACSCQADAAAAAQAgAACSCgAFAAAAAQAAAwqSFAADAAAABAAAAxKSfAAHAAAEIgAAAxqSkQACAAAABDM1NQCSkgACAAAABDM1NQCgAAAHAAAABDAxMDCgAQADAAAAAQABAACgAgAEAAAAAQAADMCgAwAEAAAAAQAACZCiFwADAAAAAQACAACjAQAHAAAAAQEAAACkAgADAAAAAQAAAACkAwADAAAAAQAAAACkBQADAAAAAQAfAACkBgADAAAAAQAAAACkMgAFAAAABAAABzykMwACAAAABgAAB1ykNAACAAAALgAAB2IAAAAAAAAAAQAAAB4AAAAMAAAABTI…

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Filler text (0.5): AAAAAAAAAA
  • Low reputation (1):
Posted by: user28862136

79295819

Date: 2024-12-19 23:31:51
Score: 1.5
Natty:
Report link

As of version 2.55.0, Prometheus supports this. From the 2.55.0 changelog`:

[FEATURE] Scraping: Add the ability to set custom http_headers in config. #14817

http_headers is documented in the scrape_config docs.

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

79295813

Date: 2024-12-19 23:26:50
Score: 2
Natty:
Report link

pytest rely on django migration files.
check these files.
if your app is published on the cloud but test is local, keep migrations synchronized
pytest 依赖于 Django 迁移文件。
检查这些文件。
如果您的应用程序在云上发布,但测试是本地的,请保持迁移同步

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

79295804

Date: 2024-12-19 23:16:48
Score: 1.5
Natty:
Report link

Make sure that the file index.htm exists in the correct directory where Node.js is trying to access it. Verify the path to ensure there are no typos or mismatches. If you are using a relative path, confirm that the index.htm file is in the expected directory.

Check also the file extension, file permissions, and the server logs for more details !

It's a good start !

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

79295798

Date: 2024-12-19 23:12:47
Score: 2.5
Natty:
Report link

For Windows a workaround using a UI from a NuGet package can be found in this article: How-To: OAuth2.0 Authentication in NET MAUI using Personal Cloud Providers. Its a bit tricky to get working.

For my purposes (to circumvent the need for a client secret that aren't safe in a native app), I ended up going a different route using a temporary local http server. See this article I made that works with windows and android: .NET MAUI Google Drive OAuth on Windows and Android

Reasons:
  • Blacklisted phrase (1): this article
  • No code block (0.5):
  • Low reputation (1):
Posted by: Angelo Diamante

79295793

Date: 2024-12-19 23:08:47
Score: 0.5
Natty:
Report link

This is not databricka setup but setting up spark environment on local machine and use pyspark for local development Only diff is databricks always you can spark instance whereas local you need to create spark instance first to do any code

Setup cam differ slightly based on whether wants to be on Windows or Unix.

Windows some tweaks needed for dbutils and if you want save delta tables locally then there are packages and jars to do it.

Reasons:
  • No code block (0.5):
Posted by: Mahesh Malpani

79295788

Date: 2024-12-19 23:05:46
Score: 1
Natty:
Report link

Ideally should be in cluster advance option there is spark configuration.

It can be set from pyspark code as well.

There is policy as well which you can create and your cluster should use it so will install libs and I think configuration also. A

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

79295783

Date: 2024-12-19 23:02:45
Score: 2
Natty:
Report link

We were checking that and figured out that only unity catalog enabled workspace we can execute local code on databricks using databricks connect.

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

79295768

Date: 2024-12-19 22:49:41
Score: 4
Natty:
Report link

json_decode(str_replace("'",'"',$sqldatacell),true)

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bilal Bağcı

79295766

Date: 2024-12-19 22:47:40
Score: 0.5
Natty:
Report link

Unfortunately, it is about 16 hours gone and no one has give me answer of my problem. However, I solved this problem and implemented quill text editor with custom fonts implementation in Next.js. Anyone wanted to get solution can visit my repo:

Github Repo

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sibghat Ullah

79295761

Date: 2024-12-19 22:45:40
Score: 1
Natty:
Report link

I was able to resolve this. The trouble seems to be that the original scikit-build with distutils did a lot on its own to include necessary f2py libraries, and I wasn't including the right.

The call to f2py, and subsequent code adding the library and linking it, should be this:

add_custom_command(
  OUTPUT calc11module.c calc11-f2pywrappers.f calc11-f2pywrappers2.f90
  DEPENDS ${includes}
  VERBATIM
  COMMAND "${Python_EXECUTABLE}" -m numpy.f2py
          "${fortran_src_file}" -m ${f2py_module_name} --lower
  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

python_add_library(
        ${f2py_module_name}
       MODULE
       "${CMAKE_CURRENT_BINARY_DIR}/calc11-f2pywrappers2.f90"
       "${CMAKE_CURRENT_BINARY_DIR}/calc11-f2pywrappers.f"
       "${CMAKE_CURRENT_BINARY_DIR}/calc11module.c"
       "${fortran_src_file}"
       WITH_SOABI)
target_link_libraries(${f2py_module_name} PRIVATE fortranobject)

The "f2pywrapper" files provide the necessary API for Python functions. This links correctly, and now it runs.

Reasons:
  • Blacklisted phrase (1): This link
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Adam Lanman

79295758

Date: 2024-12-19 22:45:39
Score: 6
Natty: 7
Report link

why has something so easy been made so difficult?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): why has some
  • Low reputation (1):
Posted by: Rick

79295757

Date: 2024-12-19 22:44:39
Score: 1
Natty:
Report link
map = new google.maps.Map(document.getElementById('map'), {
            center: {lat: 39.769145, lng: -86.158176},
            zoom: 14,
            gestureHandling: 'greedy'
        });

When you create your map object shown above, the props "center" and "zoom" are static props and do not allow for dynamic changes to your map view.

Try changing "center" to "defaultCenter" and "zoom" to "defaultZoom".

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Gaz

79295750

Date: 2024-12-19 22:39:38
Score: 1
Natty:
Report link

For anyone stumbling across this issue I've made a flutter widget that includes both primary and permanent teeth, Also, it can select single or multiple teeth.: https://github.com/alselawi/teeth-selector.

Basic teeth selector Teeth selector with some options

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

79295740

Date: 2024-12-19 22:35:36
Score: 6.5 🚩
Natty:
Report link

I am now relieved that I am not only person getting it. I try to build code set and since 2 days I have struggled with this error. Any findings how to resolve it?

Reasons:
  • RegEx Blacklisted phrase (1.5): how to resolve it?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Royal Gurbanov

79295738

Date: 2024-12-19 22:30:35
Score: 3.5
Natty:
Report link

Could you provide the log entries which shows that messages are missed?

It seems that the consumer commits the current offset, and then logs that it has consumed a message from the partition.

What could be happening is that after committing, the pod is terminated by (lets say) Kubernetes without giving your program enough time to finish logging out that it has consumed the message.

You can configure terminationGracePeriodSeconds as part of your pod deployment specification.

As part of your python program, you can also capture the SIGTERM event when your pod is asked to stop.

signal.signal(signal.SIGTERM, graceful_shutdown)

graceful_shutdown would be a method which would instruct your consumer handle any current messages it has received from kafka, commit it's offsets back, log out that it has handled those messages, and finally, gracefully stop the kafka consumer.

At that point it can then exit cleanly.

Reasons:
  • Blacklisted phrase (1): What could be
  • RegEx Blacklisted phrase (2.5): Could you provide
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: John

79295730

Date: 2024-12-19 22:27:34
Score: 4
Natty:
Report link

You should check in your code the dimensions of the target that you give to fit() and the dimensions of your model output (why 49). How is defined your train_dataset? Why not use one dense layer for the final layer of your model?

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

79295725

Date: 2024-12-19 22:24:33
Score: 3
Natty:
Report link

I just want to know if account label what does it mean and why is it in my settings for my password in my account so it's never been there before

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

79295711

Date: 2024-12-19 22:14:31
Score: 1
Natty:
Report link

To handle bad messages in Kafka's Streams API, you can implement a strategy that involves creating a separate error topic. When a message fails processing, you can produce it to this error topic for later analysis. Additionally, consider using a try-catch block in your processing logic to capture exceptions and handle them gracefully. This way, you can log the errors and ensure that your main processing flow remains uninterrupted. Finally, make sure to monitor the error topic to address the issues with bad messages in a timely manner.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Annie Hodkiewicz

79295705

Date: 2024-12-19 22:13:31
Score: 1
Natty:
Report link

You can still get there from the console

From the Messaging page you need to create a new campaign and then select to send a notification and then there will be a "Send test message" link and after you click on that you can add the FCM registration token

https://firebase.google.com/docs/cloud-messaging/android/first-message#send_a_test_notification_message

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

79295704

Date: 2024-12-19 22:13:31
Score: 2.5
Natty:
Report link

I'm definitely far from an expert, but if anything, my own research on the subject has led me to https://ieeexplore.ieee.org/document/8892116 and https://arxiv.org/abs/2305.06946 (among others), and there are clearly several trade-offs that will influence the result of such a benchmark : for some, Posit would need 30% more silicon area for similar??? functionality. For others, Posit32 should be compared to Float64 in terms of performance, so a win of 35% could be expected. But whether you implement a quire or only part of it in silicon will also be seriously impacting the performance. I personally chose to investigate another use case : using 16-bit (and 8-bit) Posits for the ATmega328 found in Arduino boards to replace float32 calculations for simplified RL algorithms. So in short, very likely your mileage will vary according to your domain of interest.

Oh BTW, Mister Feldman did write an article on Posit, he didn't make an implementation.

Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Christophe

79295702

Date: 2024-12-19 22:12:31
Score: 2.5
Natty:
Report link

I ended up creating a temporary branch from the target branch (B). Then, I merged my original merge commit into the temporary branch, which re-applied the previous merge but only required me to resolve the new conflicts caused by updates to branch B. After resolving those conflicts and committing the changes, I switched back to the B branch and merged the updates from the temporary branch into it. Finally, I pushed the updated B branch to Gerrit, and the changes were successfully accepted.

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

79295700

Date: 2024-12-19 22:11:30
Score: 2
Natty:
Report link

I think saving your plots with graphic devices is the best option. You can check this post to learn how to do it. Basicaly, you can adjust the dimentions and resolution of your plot however you want. Be careful with the text sizes though, as they become smaller with bigger images sizes if you didn´t specify a unit when generating the plot.

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