79225981

Date: 2024-11-26 09:07:31
Score: 0.5
Natty:
Report link

instead of '>=', you should user the greaterOrEquals() function:

if(greaterOrEquals(dayOfWeek(triggerOutputs()?['body/receivedDateTime'],6),addDays(triggerOutputs()?['body/receivedDateTime'],4),addDays(triggerOutputs()?['body/receivedDateTime'],2))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Farkas János

79225980

Date: 2024-11-26 09:07:31
Score: 2
Natty:
Report link

The issue arose in the new Angular Material release when using ngClass with screen queries like ngClass.sm or ngClass.lg. Switching to ngStyle.sm resolved the problem.

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

79225977

Date: 2024-11-26 09:06:31
Score: 4
Natty:
Report link

Have you considered something like an interceptor?

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

79225965

Date: 2024-11-26 09:02:30
Score: 0.5
Natty:
Report link

The keyword here were wrappers. I did not know how to use wrappers since I didn't want to write a @plot_interesting_thing on top of every def method(self). However I can change the methods using wrappers externally. For example, what I am interested in plotting right now is a scatter plot that looks like (f_0(1), f_1(1)), (f_1(1), f_2(2)), ... . What I managed to do is wrap the function as follows.

import matplotlib.pyplot as plt

class Experiment:
    def __init__(self):
        self.x = np.linspace(0, 1, 100)
        self.f = lambda x: 0 # Initial function

    def update_f(self):
        # Does something to f
        self.f = lambda x: f(x)**2 + 1

    def main_calculation(self):
        # For some definition of convergence
        while not self.convergence():
             self.update_f()

experiment = Experiment()

fig, ax = plt.subplots()

def fixed_point_wrapper(fun):
    def inner():
        a1 = experiment.f(1)
        experiment.update_f()
        ax.plot(a1, experiment.f(1))

experiment.update_f = fixed_point_wrapper(experiment.update_f)

experiment.main_calculation()
plt.show()

This way I can get the specific plot I want for this calculation

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

79225956

Date: 2024-11-26 09:00:30
Score: 1
Natty:
Report link

You mean like this?

enter image description here

it's absolutely expected so JMeter could handle i.e. embedded resources or Transaction Controller results.

In order to "group" the sub-results you can click "Export transactions for report" element from "Tools" menu:

enter image description here

Once you add the generate line to user.properties file and restart your test (or re-generate the report) you will see individual transactions details without sub-results.

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

79225933

Date: 2024-11-26 08:53:28
Score: 2
Natty:
Report link

awk is also available in Git's \usr\bin, together with grep and much more

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

79225931

Date: 2024-11-26 08:52:28
Score: 3
Natty:
Report link

I've found the issue on parsing json to object. Example with direct using "DateParser.parse" only for illustration

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

79225929

Date: 2024-11-26 08:51:28
Score: 2.5
Natty:
Report link

For me, it is because I have the grammarly chrome extension, simply remove it and did remove the error, don't know why they conflict though.

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

79225927

Date: 2024-11-26 08:50:27
Score: 0.5
Natty:
Report link

It was exactly as easy as i already have commented. I just needed to login on the Hosts and use: iscsiadm -m discovery -t st -p . Than i had to put in the IQN i get into the PV i wanted to create like this with multiple targets and the LUN from the Storage:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: iscsi-pv
spec:
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteOnce
  iscsi:
    targetPortal: 10.0.0.1:3260
    portals: ['10.0.2.16:3260', '10.0.2.17:3260', '10.0.2.18:3260'] 
    iqn: iqn.2016-04.test.com:storage.target00
    lun: 0
    fsType: ext4
    readOnly: false
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Working Lukas

79225923

Date: 2024-11-26 08:49:27
Score: 1.5
Natty:
Report link

As per this response in the JetBrains support platform, this is enabled by default on new installations, and the way to disable it is by unchecking Settings > Version Control > Commit > Use non-modal commit interface.

Screenshot of IntelliJ settings showing how to re-enable the old modal commit interface

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

79225921

Date: 2024-11-26 08:47:27
Score: 2.5
Natty:
Report link

To increase font-size of the menubar; Keeping "window.zoomLevel": 1, while decreasing "editor.fontSize": 18, "terminal.integrated.fontSize": 14, It did work for me. Hope helps

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

79225917

Date: 2024-11-26 08:45:26
Score: 2
Natty:
Report link

Here is a typescript version of the function that works with multiple versions of YouTube video url:

export const youtubeUrlToEmbed = (urlString: string | undefined | null): string | null | undefined => {
    const template = (v: string) => `https://www.youtube.com/embed/${v}`;
    if (urlString) {
        const url = new URL(urlString);
        if (url.hostname === 'www.youtu.be' || url.hostname === 'youtu.be') {
            return template(url.pathname.substring(1));
        }
        const v = url.searchParams.get('v');
        if ((url.hostname === 'www.youtube.com' || url.hostname === 'youtube.com') && v) {
            return template(v);
        }
    }
    return urlString;
};
Reasons:
  • Blacklisted phrase (1): youtu.be
  • Blacklisted phrase (1): youtube.com
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jhrom

79225913

Date: 2024-11-26 08:44:26
Score: 3.5
Natty:
Report link

use this command to install it:

choco install visualstudio2019-workload-nativedesktop

if you don't have choco installed, follow the link below:

https://chocolatey.org/install

Reasons:
  • Blacklisted phrase (1): the link below
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: dubem onyilimba

79225900

Date: 2024-11-26 08:39:25
Score: 1.5
Natty:
Report link

The plugin Redirection will do this for you. For it to work correctly, you need to install the plugin, then change the permalinks. If that doesn't work add the old permalink structure under the Redirection plugins settings. You are looking for Site > Permalink Migration. Just add the old structure (most likely /%postname%/) there.

You can see what the Redirection plugins setting tabs look like here.

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

79225898

Date: 2024-11-26 08:39:25
Score: 3
Natty:
Report link

It seems that it is related to OPCache. Changed it's settings to flush information more ofter and it never happened again.

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

79225897

Date: 2024-11-26 08:38:24
Score: 2
Natty:
Report link

If you're unable to find the designer.exe file, you can locate it here:

C:\Users\<user>\PycharmProjects\<project>\.venv\Lib\site-packages\qt5_applications\Qt\bin\designer.exe

This path is valid for setups using Python 3.9 with a virtual environment in PyCharm. Replace with your Windows username and with your project's name.

I wanted to add this as a comment to Joker's answer, but since commenting requires 50 reputation, I'm posting it as an answer instead.

Reasons:
  • RegEx Blacklisted phrase (1.5): 50 reputation
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hammad Farooq

79225887

Date: 2024-11-26 08:36:24
Score: 2
Natty:
Report link

Using spring boot 3.x version check valid path and add below method into security part.

.securityMatcher( "/.css", "/.js","/.svg","/.png","/.jpg")

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

79225885

Date: 2024-11-26 08:35:23
Score: 4.5
Natty:
Report link

@Guiorgy

Thank you, this worked well.

I added a variable to plot the curve and added it to the Array Indexes Maximum.

plot_Index := sample_index-1;

The -1 adjustment was necessary because the first array index is 0 but the sample_index is incremented to 1. So without this, the unwanted line back to the origin would still be plotted.

Additionally, are arrays in Codesys automatically initialized to 0? I simply declared my array, and all values seem to default to 0. Thanks for the help.

Fixed XY Chart

Variable for plot

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Guiorgy
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: fel_fe

79225883

Date: 2024-11-26 08:35:23
Score: 0.5
Natty:
Report link

I've resolved the problem by implements Serializable:

class A{
@ID
private Long id;

@ManyToOne
@JoinColumn(name="bid",referencedColumnName="id")
private B b;
}

class B implements Serializable{
@ID
private Long id;

@ManyToOne
@JoinColumn(name="cid", referencedColumnName="id")
private C c;
}

class C implements Serializable {
@ID
private Long id;
}

interface ARepo{
@Query("select a from A a where 1=1")
List<A> findAllA()
}

thank u guys!

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

79225880

Date: 2024-11-26 08:33:23
Score: 4.5
Natty: 4
Report link

Is there a possibility to add, edit or delete a call to action on an EXISTING post ? I understand it works on new posts, but editing or removing like it does work on the adsmanager ui isn‘t possible by api :((((

Reasons:
  • Blacklisted phrase (1): :(
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (1):
Posted by: gus

79225877

Date: 2024-11-26 08:32:22
Score: 2.5
Natty:
Report link

Sometimes in new versions signalrwe need to work on old code and old versions and this is very troublesome. The link below with sample code can be a good guide for this type of problem.

var connection = new signalR.HubConnectionBuilder()
            .withUrl(ArianCore.GlobInfo.ApiUrl + "apiHub?", {
                 headers: { "token": getToketAuth() },
                transport: signalR.HttpTransportType.LongPolling
            }
            )
            .build();

https://learn.microsoft.com/en-us/aspnet/core/signalr/configuration?view=aspnetcore-8.0&tabs=javascript#configure-additional-options

Reasons:
  • Blacklisted phrase (1): The link below
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: syeed masoud tayefi

79225876

Date: 2024-11-26 08:31:22
Score: 4
Natty:
Report link

There are several examples of sorting strings here:

https://stackoverflow.com/a/77619798/22768315

https://stackoverflow.com/a/78185115/22768315

At least they show the principle of how it could work.

Have fun programming.

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

79225875

Date: 2024-11-26 08:31:22
Score: 2
Natty:
Report link

So basically there are multiple ways to do it . you can give justify-content: between to the linkedin-content class. This should please the picture at the start and text at the end of the flex. Hence aligning the image to left. Or you can give position: absolute to image and position: relative to its parent div. And than add left: 0px to the image. This will place image to the left most part of its parent div. Let me know if you need any further assistance.

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

79225873

Date: 2024-11-26 08:30:19
Score: 6.5 🚩
Natty:
Report link

The task condition is very vague. Please provide task link or try describe more exactly why output should be -> empty~empty~7421~empty~2427?

Reasons:
  • RegEx Blacklisted phrase (2.5): Please provide
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dima jangveladze

79225871

Date: 2024-11-26 08:30:18
Score: 4
Natty: 4
Report link

I used subscriptionsv2 to get it fixed https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptionsv2/get

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

79225867

Date: 2024-11-26 08:29:18
Score: 5.5
Natty:
Report link

The resolution is just like that you would like to name one of your redisTemplate as "redisTemplate",this might relate to the autoconfiguration of springboot,hope someone could help.

Reasons:
  • RegEx Blacklisted phrase (3): someone could help
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user26834496

79225851

Date: 2024-11-26 08:23:16
Score: 1.5
Natty:
Report link

I upgraded expo and got the same issue. I simply removed the ios folder and ran npx expo run:ios and the issue got resolved.

Any compatibility issue was probably resolved when expo had to rebuild the ios project files.

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

79225848

Date: 2024-11-26 08:23:16
Score: 1.5
Natty:
Report link

check grid-auto-flow https://www.w3schools.com/cssref/playdemo.php?filename=playcss_grid-auto-flow

.grid-container {
  display: grid;
  grid-auto-flow: column; /* Items flow down the first column, then the next */
  grid-template-rows: repeat(auto-fit, minmax(0, 1fr)); /* Adjusts rows dynamically */
  grid-template-columns: repeat(2, 1fr); /* Defines 2 equal columns */
}

.grid-item {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.8);
  padding: 20px;
  font-size: 30px;
  text-align: center;
}
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Janindu Pathirana

79225847

Date: 2024-11-26 08:23:16
Score: 1
Natty:
Report link

I think I know what's wrong with your tests and results. You're testing Javascript Fetch performance through the browser, but all of the browsers have very limited number of concurrent connections available to them - most of them have just 6, some older ones have only 2, and the most connections available is 8 in Firefox IIRC. Anyways,

your javascript fetches actually are fired in parallel so all but first 6 get queued in the browser's connection pool and enqueue time can be very high (relative to the response time of your fetches).

your Python's fetches do not have this limitation and hence perceived to be so much faster.

for more fair comparison I'd suggest to use node.js for example, create some route.js that'd get a request and multiplex it in parallel there using fetch.

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

79225836

Date: 2024-11-26 08:21:15
Score: 0.5
Natty:
Report link

You can't get name of your page using nameof(). Since your page is instance of Page type. What you can do is cast the page to it's type and then check it.

   if(stack[indexForPreviousPage] is SomePageInMyApp myPage)
   {
      // Do stuff using page
   }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bhavanesh N

79225824

Date: 2024-11-26 08:17:15
Score: 3.5
Natty:
Report link

I don't know why, now it's working, I will ask if someone (a DE) as done something, and will come back to say the answer before closing this ticket.

Thanks

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

79225821

Date: 2024-11-26 08:15:14
Score: 1.5
Natty:
Report link

Solved: the issue was not with the token replacement or config reading, but rather with the class the json was bound to. public string storageUri = "#{storageUri}#"; is correctly replaced during startup, but not after injection.

public string storageUri { get; set; } = "#{storageUri}#" is correctly replaced every time. Thanks to Miao Tian-MFST for helping me find this.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Falco van der Meulen

79225796

Date: 2024-11-26 08:07:12
Score: 1
Natty:
Report link

Please use the correct template to create a C++/winrt project. If similar errors occur, it is recommended to restart the visual studio or reinstall C++ (v14x) Universal Windows Platform tools or nuget package Microsoft.Windows.CppWinRT.

https://learn.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/intro-to-using-cpp-with-winrt#visual-studio-support-for-cwinrt-xaml-the-vsix-extension-and-the-nuget-package

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

79225793

Date: 2024-11-26 08:04:11
Score: 2.5
Natty:
Report link

nowadays openscad integrates manifold library which is much faster. However the updated release (2023) is not yet availble as packages for main distrubution so the easiest way to get it is to install one of the nightly builds.

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

79225786

Date: 2024-11-26 08:02:11
Score: 0.5
Natty:
Report link

To Disable a Foreign Key:

ALTER TABLE [TableName] NOCHECK CONSTRAINT [ForeignKeyName];

To Enable a Foreign Key:

ALTER TABLE [TableName] WITH CHECK CHECK CONSTRAINT [ForeignKeyName];

Replace [TableName] with the name of the table and [ForeignKeyName] with the name of the foreign key constraint.

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

79225785

Date: 2024-11-26 08:02:11
Score: 4
Natty:
Report link

Now you can append data to an S3 object, if you use Amazon S3 Express One Zone.

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

79225783

Date: 2024-11-26 08:00:10
Score: 4
Natty: 5
Report link

Thank you for sharing it's very informative.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kristal Pithwa

79225772

Date: 2024-11-26 07:56:08
Score: 0.5
Natty:
Report link

I found a very elegant solution by using two libraries: https://github.com/judemanutd/AutoStarter AND https://github.com/XomaDev/MIUI-Autostart

First I check if my phone supports auto-start and then get the status of auto-start.

private fun checkAutoStartStatus() {
   if(AutoStartPermissionHelper.getInstance().isAutoStartPermissionAvailable(this)) {
        when (Autostart.getAutoStartState(this)) {
            Autostart.State.ENABLED -> {}
            Autostart.State.DISABLED -> {
               AutoStartPermissionHelper.getInstance().getAutoStartPermission(this)
            }
            Autostart.State.UNEXPECTED_RESULT,
            Autostart.State.NO_INFO -> {}
        }
    }
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Patrik Jurgelj

79225770

Date: 2024-11-26 07:54:08
Score: 1.5
Natty:
Report link

Here's what I've come up with. It's similar to what I had originally done but I wanted to avoid the hacky extension on the View. I don't really get why we can't use a ternary operator in .labelStyle so if you have any ideas how to make it look better be my guest.

This answer for the extension: https://stackoverflow.com/a/72489274/1573326

import SwiftUI

struct SwiftUIView: View {
    @State private var hasStartDate = false
    @State private var startDate: Date? = nil
    var body: some View {
        HStack(alignment: .center) {
            Button {
                withAnimation {
                    hasStartDate.toggle()
                    if !hasStartDate {
                        startDate = nil
                    }
                }
            } label: {
                Label {
                    Text(hasStartDate ? "Remove Start Date" : "Add Start Date")
                        .foregroundColor(.primary)
                } icon: {
                    Image(systemName: hasStartDate ? "minus.circle.fill" : "plus.circle.fill")
                        .renderingMode(.original)
                        .foregroundColor(hasStartDate ? .red : .green) // Tint for remove action
                        .imageScale(.small)
                }
                .labelStyle(includingText: hasStartDate ? false  : true)
            }
            
            if hasStartDate {
                DatePicker(
                    "Start Date",
                    selection: Binding(
                        get: { startDate ?? Date() },
                        set: { startDate = $0 }
                    ),
                    displayedComponents: .date
                )
                .datePickerStyle(.compact)
                //.padding(.leading)
                // Debug control position
                .border(.green, width: 1)
                // End debug control position
            }
        }    }
}

extension View {
    @ViewBuilder
    func labelStyle(includingText: Bool) -> some View {
        if includingText {
            self.labelStyle(.titleAndIcon)
        } else {
            self.labelStyle(.iconOnly)
        }
    }
}
Reasons:
  • Blacklisted phrase (1): any ideas
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: 0x1801CE

79225765

Date: 2024-11-26 07:51:07
Score: 1
Natty:
Report link
Route::get('tickets','TicketController@tickets')->name('admin-tickets')


public function tickets(Request $request){ 
     $type = $request->type;
}



/tickets?type=

You can validate the ticket query parameter using request object in controller's ticket method.

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

79225759

Date: 2024-11-26 07:49:06
Score: 7.5
Natty: 8.5
Report link

Can you tell me the code for the Set Device Property function?

SetDevice Property(WiaDev, DEVICE_PROPERTY_PAGES_ID, 1);

How to determine the source of scanning: from glass or from a continuous feed tray?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you tell me the code
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: AntonioI

79225751

Date: 2024-11-26 07:47:06
Score: 5.5
Natty:
Report link

It seems like CORS error, This issue is only with Flutter web: https://github.com/cfug/dio/issues/2026.

Here is the solution: How to solve flutter web api cors error only with dart code?

Reasons:
  • Blacklisted phrase (1): How to solve
  • Whitelisted phrase (-2): solution:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kyrie Cui

79225750

Date: 2024-11-26 07:46:05
Score: 2
Natty:
Report link
  1. Go to Default Web Site

  2. Goto IIS section and click on ASP

  3. Set Enable Parent Paths to True

Apply and restart IIS if needed

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

79225749

Date: 2024-11-26 07:45:05
Score: 0.5
Natty:
Report link

In my case, finishAffinity() was preventing onRequestPermissionsResult. It worked fine when I moved it inside the onRequestPermissionsResult.

Reasons:
  • Whitelisted phrase (-1): It worked
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Aatmaj

79225742

Date: 2024-11-26 07:43:05
Score: 0.5
Natty:
Report link

You cannot set the property applyImmediately, as it does not exist in CloudFormation.

Regarding to the CloudFormation documentation, changes to the DatabaseInstance are applied immediately: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html

PreferredMaintenanceWindow.
This property applies when AWS CloudFormation initially creates the DB instance. If you use AWS CloudFormation to update the DB instance, those updates are applied immediately.

See also this quote from here: https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/597#issuecomment-1438357012

As of now, CFN applies all changes immediately: including AWS::RDS::DBInstance and AWS::RDS::DBCluster. Currently, there are no plans to expose this attribute as it would immediately conflict with the drift detector.

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

79225731

Date: 2024-11-26 07:39:04
Score: 4
Natty: 4.5
Report link

Try my chrome extension, maybe it will meet your needs. https://chromewebstore.google.com/detail/apisix-dashboard-backup/lmpmkfjofnifhiooomploklbchoeckfg

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

79225726

Date: 2024-11-26 07:37:02
Score: 4.5
Natty:
Report link

Just go to the top search and type '>restore'. You'll find restore option there. enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: OM Patel3

79225723

Date: 2024-11-26 07:37:02
Score: 1.5
Natty:
Report link

use math.js

// evaluate expressions
math.evaluate('sqrt(3^2 + 4^2)')        // 5
math.evaluate('sqrt(-4)')               // 2i
math.evaluate('2 inch to cm')           // 5.08 cm
math.evaluate('cos(45 deg)')            // 0.7071067811865476

// provide a scope
let scope = {
    a: 3,
    b: 4
}
math.evaluate('a * b', scope)           // 12
math.evaluate('c = 2.3 + 4.5', scope)   // 6.8
scope.c                                 // 6.8

https://mathjs.org/docs/expressions/parsing.html

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

79225714

Date: 2024-11-26 07:33:01
Score: 3
Natty:
Report link

Go with the 1800-2023 SV LRM they introduced method called map().

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

79225710

Date: 2024-11-26 07:32:01
Score: 4.5
Natty:
Report link

Go to properties of your solution and select debug target from dropdownenter image description here

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

79225708

Date: 2024-11-26 07:32:00
Score: 1.5
Natty:
Report link

If you are getting "Error: connect ECONNREFUSED 127.0.0.1:21222" error while following hardkoded's solution (top voted solution), do this:

Start chrome on port 21222 with sudo, and connect it like this:

$ sudo <chrome_executable_path> --remote-debugging-port=21222;

Then in puppeteer do this:

const browserURL = 'http://127.0.0.1:21222';

const browser = await puppeteer.connect({browserURL});

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

79225706

Date: 2024-11-26 07:32:00
Score: 2.5
Natty:
Report link

After the refresh token expires (14 days), the user will need to re-login to your application to obtain a new set of access and refresh tokens.

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

79225700

Date: 2024-11-26 07:31:00
Score: 3.5
Natty:
Report link

I found a library that does exactly this: https://github.com/XomaDev/MIUI-Autostart

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

79225686

Date: 2024-11-26 07:24:59
Score: 3
Natty:
Report link

Using Square Brackets should solve this problem. Example: COPY ["[[]File Name]/Folder/Project.csproj", "[File Name]/Folder/"]

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

79225680

Date: 2024-11-26 07:22:58
Score: 1.5
Natty:
Report link

there was mismatching package dependency, i did solve this issue by

npx expo-doctor 

to fix it.

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

79225673

Date: 2024-11-26 07:18:58
Score: 3
Natty:
Report link

In my case, I bumped the version from 4.4.0 to 4.9.0 in a .NET Core 3.1 project and got the same exception. Just downgrading the package to 4.8.6 solves my problem.

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

79225671

Date: 2024-11-26 07:18:58
Score: 0.5
Natty:
Report link

Discovered the same issue and went on a mad goose chase looking for an answer. It appears it's either intentional or unconcerning to apple, which makes no sense but cant find many posts about it aside from these two from the apple dev forums with official responses:

https://developer.apple.com/forums/thread/101479

https://developer.apple.com/forums/thread/760542

The first one is from 2018 confirming it's not available with no explanation. The second is from this year (2024) with the Apple engineer requesting the poster create a bug report explaining why that would be useful.

As of now it's unclear if they'll ever fix or address this unfortunately.

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

79225664

Date: 2024-11-26 07:16:55
Score: 7.5 🚩
Natty: 5.5
Report link

Very helpful advice within this article! It is the little changes that produce the largest changes. Many thanks for sharing!

Selenium Training in Bangalore

Java Selenium Training in Bangalore

Automation Testing Training in Bangalore

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (2): thanks for sharing
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: badri

79225662

Date: 2024-11-26 07:16:55
Score: 3.5
Natty:
Report link

cd ios pod repo update pod install --repo-update flutter clean flutter build ios its work

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

79225657

Date: 2024-11-26 07:14:54
Score: 1.5
Natty:
Report link

Try add asynchronies method and use await for update like this:

  await ContactsService.updateContact(contact); // UPDATE CONTACT
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: AzPsu

79225654

Date: 2024-11-26 07:13:54
Score: 3
Natty:
Report link

I would suggest that you check the following libraries and their documentation:

They also come with code samples for different tasks.

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

79225653

Date: 2024-11-26 07:13:54
Score: 0.5
Natty:
Report link

The Facebook Marketing API provides businesses with the tools to automate and manage their advertising campaigns across Facebook and Instagram. Through the API, marketers can create campaigns, define targeting criteria, and set budgets programmatically, making it easier to handle large-scale advertising efforts. It also enables the integration of dynamic ad creatives based on user behavior and product catalogs, enhancing the personalization of ads. Additionally, the API provides detailed reporting on campaign performance, allowing for data-driven optimizations, such as A/B testing, to improve overall ad effectiveness.

To get started with the API, businesses need to apply for access through Facebook’s developer platform and create an app to interact with the API endpoints. Once approved, marketers can use tools like SDKs and make HTTP requests to endpoints that manage campaigns, ad sets, ads, and insights. However, using the API effectively requires a good understanding of its structure, rate limits, and necessary permissions. While the API offers powerful automation and optimization features, it can also present challenges, such as the complexity of integration and the need to carefully manage request limits to avoid disruptions.

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

79225647

Date: 2024-11-26 07:10:53
Score: 0.5
Natty:
Report link

I reproduced the code and encountered the same error. However, after making a small adjustment—import tf_keras as keras and replacing tf.keras with keras—the code worked correctly.Please refer to this gist

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

79225637

Date: 2024-11-26 07:07:52
Score: 0.5
Natty:
Report link

Use String Extension for swift 5 for convert string into URL:

import Foundation

extension String {
    var absoluteURL: URL? {
        let _url = URL(string: self)
        return _url
    }
}

Usage

print(filePath.absoluteURL ?? "Invalid") // It is convert path into URL
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: K.pen

79225636

Date: 2024-11-26 07:06:50
Score: 6.5 🚩
Natty: 5
Report link

Great answer, thanks for sharing

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

79225632

Date: 2024-11-26 07:04:49
Score: 3.5
Natty:
Report link

This was definitely helpful. I guess this is the best and easiest way I have come across yet.

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

79225628

Date: 2024-11-26 07:02:48
Score: 1.5
Natty:
Report link

An uncaught Exception was encountered Type: TypeError

Message: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class PUTprofile does not have a method "index_get"

Filename: C:\xampp\htdocs\vigenesia\application\libraries\REST_Controller.php

Line Number: 742

Backtrace:

File: C:\xampp\htdocs\vigenesia\application\libraries\REST_Controller.php Line: 742 Function: call_user_func_array

File: C:\xampp\htdocs\vigenesia\index.php Line: 315

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ridzal Achmad Fauzi

79225613

Date: 2024-11-26 06:54:47
Score: 2
Natty:
Report link

For me this is the solution

kubectl proxy --address 0.0.0.0 --disable-filter=true
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: 程兽医

79225597

Date: 2024-11-26 06:50:46
Score: 1.5
Natty:
Report link
import logging
from rich.console import Console
from rich.logging import RichHandler
from rich.progress import Progress
from rich.theme import Theme
from time import sleep

console = Console(theme=Theme({"logging.level.success": "green"}))
"""Use the same console instance"""


class Log:
    SUCCESS = 25
    logging.addLevelName(SUCCESS, "SUCCESS")

    def __init__(self):
        FORMAT = "%(message)s"
        rich_handler = RichHandler(console=console)  #!!!
        rich_handler.setLevel(logging.INFO)
        rich_handler.setFormatter(logging.Formatter("%(message)s"))

        logging.basicConfig(
            level=logging.NOTSET,
            format=FORMAT,
            datefmt="[%X]",
            handlers=[rich_handler],
        )
        self.logger = logging.getLogger(__name__)
        self.logger.success = self.success

    def success(self, msg):
        if self.logger.isEnabledFor(self.SUCCESS):
            self.logger._log(self.SUCCESS, msg, ())


log = Log().logger
log.info("Hello, World!")

progress = Progress(console=console)  #!!!

total = 100
with progress:
    task = progress.add_task("Working", total=total)
    for i in range(total):
        progress.update(task, advance=1)
        if i < 30:
            log.success(f"25, {i + 1}")
        elif i > 30:
            log.warning(i + 1)
        elif i >= 30 and i < 50:
            log.error(i + 1)
        elif i >= 50 and i < 70:
            log.debug(i + 1)
        elif i >= 70:
            log.critical(i + 1)
        sleep(0.05)

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: vanton

79225595

Date: 2024-11-26 06:49:45
Score: 1
Natty:
Report link

PPP is generally accepted as the more flexible modem interface as it is compatible with many modem vendors and is a widely adopted standard. QMI as a protocol is more chipset-specific and tends to provide more optimized throughput, with a more proprietary control structure.

So if performance is paramount for your application, then QMI is the recommendation. If compatibility with many vendors and easy transition if one goes EOL, then PPP is the recommendation. All of these statements assumes the device is using an OS like linux or Windows. If the device uses an RTOS, then raw socket dials may be more appropriate depending on which stacks are available and then every modem has their unique proprietary standards that must be implemented.

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

79225587

Date: 2024-11-26 06:45:45
Score: 0.5
Natty:
Report link

The issue you're encountering stems from Swift runtime libraries not being bundled properly in your app's framework. Specifically, Apple requires certain Swift libraries (e.g., libswift_Concurrency.dylib) to be placed in the /Payload/Runner.app/Frameworks directory within your app bundle when using Swift. Here's how you can resolve the problem:

Steps to Resolve ITMS-90429

  1. Update Xcode

Ensure you are using the latest stable (GM) version of Xcode, as older versions may not properly include or manage Swift libraries.

  1. Manually Embed Swift Runtime Libraries

The Swift runtime libraries must be embedded properly for the app to pass validation. You can configure this in your Xcode project settings:

Open your Xcode project.

Navigate to your Target → Build Settings.

Search for Always Embed Swift Standard Libraries and set it to YES.

  1. Verify Framework Embedding

Check that all required frameworks, including libswift_Concurrency.dylib, are being embedded correctly:

In Xcode, go to your Target → General → Frameworks, Libraries, and Embedded Content.

Ensure all the required frameworks, including any .dylib files, are added here with the "Embed & Sign" option selected.

  1. Clean and Rebuild Your Project

After making changes, clean and rebuild the project to ensure the Swift libraries are correctly embedded:

Product → Clean Build Folder (Shift + Command + K)

  1. Ensure Proper Configuration of tdlib

If recompiling the tdlib library, ensure the following:

Build the libtdjson.xcframework with support for the ios-arm64 architecture.

Follow the iOS build guide carefully. Double-check that libtdjson.xcframework contains all necessary files for the targeted architecture.

Ensure that when including libtdjson.xcframework, it is marked as "Do Not Embed" in your Frameworks, Libraries, and Embedded Content settings.

  1. Add a Custom Script to Embed Missing Swift Libraries

Sometimes, the Swift runtime libraries are not automatically embedded, and a custom script can help:

Go to your Target → Build Phases.

Add a new Run Script Phase and place it after the "Embed Frameworks" phase.

Add the following script to embed the missing Swift libraries:

if [ "${CONFIGURATION}" = "Release" ]; then mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" cp -fR "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}/libswift_Concurrency.dylib" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/" codesign --force --sign "${EXPANDED_CODE_SIGN_IDENTITY}" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/libswift_Concurrency.dylib" fi

This script ensures the libswift_Concurrency.dylib library is copied and signed properly.

  1. Re-upload to App Store Connect

After applying these fixes:

Rebuild the app.

Create a new archive (Product → Archive).

Export and upload the app to App Store Connect using the Organizer.

Notes on libtdjson

If you continue to face issues related to the tdlib library:

Verify that the .xcframework includes architectures for both ios-arm64 and ios-arm64e.

Recompile tdlib with the BUILD_SHARED_LIBS=ON flag if you haven't already. Use this command for CMake:

cmake -DCMAKE_TOOLCHAIN_FILE=../path/to/ios.toolchain.cmake -DPLATFORM=OS64 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON ..

Make sure you are signing all binaries (dylib and .framework) correctly.

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

79225583

Date: 2024-11-26 06:43:44
Score: 2.5
Natty:
Report link

I'm doing the same thing for training yolov8n-cls for classifying my image but m getting the error mentioned below:

AttributeError: 'dict' object has no attribute 'Suffix'

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

79225573

Date: 2024-11-26 06:40:43
Score: 1
Natty:
Report link

Just remove const

Replace this code :

body: const TabBarView(
            children:tabInfoList.map((e)=>e.getView()).toList(),),

With :

body: TabBarView(
        children:tabInfoList.map((e)=>e.getView()).toList(),),
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: AzPsu

79225571

Date: 2024-11-26 06:40:43
Score: 2
Natty:
Report link

I recently released a datepicker that supports the Jalali and gregorian calendar and has good features, you can use it.

https://www.npmjs.com/package/@qeydar/datepicker

enter image description here

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abbasr7

79225565

Date: 2024-11-26 06:38:43
Score: 2.5
Natty:
Report link

why do u use this way: ? u can use <a href='#'> <img src="your img path"></a> and adjust your image dimensions.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): why do
  • Low reputation (1):
Posted by: Ahmd Sami

79225563

Date: 2024-11-26 06:37:42
Score: 2.5
Natty:
Report link

Also add @JsonProperty("linkedIn") annotation to the above provided solution, it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Harsha Vardhan

79225555

Date: 2024-11-26 06:34:42
Score: 1
Natty:
Report link

Turned out the issue was with Rider's debugger, that was slowing something down to a crawl. Outside of debugger all the pings were sent in under 100ms and replies received shortly.

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

79225547

Date: 2024-11-26 06:32:41
Score: 4
Natty:
Report link

Found out that producer provide a jar library to easily access the hw.

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

79225537

Date: 2024-11-26 06:29:41
Score: 2.5
Natty:
Report link

When I tried to add the .ico file, I did get the error you mentioned after building: enter image description here

According to the error message, I copied and pasted the Resources folder to the Properties folder and tried to build again, and it was able to see that the project was built successfully: enter image description here

I suggest you try the above behavior again to see if it works. I think this is a VS issue. If you still encounter this issue after trying it, you can report this issue to DC. There are many VS developers who can help you.

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (0.5):
Posted by: Cody Liang

79225526

Date: 2024-11-26 06:24:40
Score: 1
Natty:
Report link

It's working now...

@override void initState() { super.initState();

// Listen to changes in the user controller's data
ever(controller.user, (_) {
  final userBlood = controller.user.value.bloodGroup;
  final currentUserEmail = controller.user.value.email;

  if (userBlood != null && currentUserEmail != null) {
    fetchDonationRequests(userBlood, currentUserEmail);
  }
});

}

Future fetchDonationRequests(String userBlood, String currentUserEmail) async { try { print('Fetching requests for blood group: $userBlood, excluding email: $currentUserEmail');

  QuerySnapshot querySnapshot = await FirebaseFirestore.instance
      .collection("Requests")
      .where("status", isEqualTo: "Pending")
      .where("bloodGroup", isEqualTo: userBlood)
      .orderBy(FieldPath.documentId, descending: true)
      .get();

  // Filter results to exclude the current user's email
  final filteredDocs = querySnapshot.docs.where((doc) {
    final data = doc.data() as Map<String, dynamic>;
    return data["userEmail"] != currentUserEmail;
  }).toList();

  if (filteredDocs.isNotEmpty) {
    donationMap = filteredDocs.first.data() as Map<String, dynamic>;
  } else {
    donationMap = {}; // No data available
  }
} catch (e) {
  print("Error fetching donation requests: $e");
} finally {
  setState(() {
    donationRequestsLoading = false;
  });
}

}

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @override
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Emon

79225522

Date: 2024-11-26 06:23:39
Score: 2
Natty:
Report link

According to the accepted answer in Android Jetpack Glance 1.0.0 : problems updating widget

It could not be updating due to Glance recomposing when calling the .update. You will need to provide a GlanceStateDefinition to return the updated version.

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

79225521

Date: 2024-11-26 06:23:39
Score: 0.5
Natty:
Report link

I think this will require feature work. I've added some discussion about what it'd take on the VS side here:

https://github.com/dotnet/project-system/issues/9477#issuecomment-2499756938

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

79225510

Date: 2024-11-26 06:16:38
Score: 3
Natty:
Report link

I met the same problem. And I just move everything for this lab from my windows to my wsl. And then I passed the test. I still don't know why.

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

79225486

Date: 2024-11-26 06:05:36
Score: 2
Natty:
Report link

because when using the Skfuzzy library's trimf function, using [0, 0.2, 1] throws an error that doesn't meet the trigonometric membership function parameter. Changed to [0, 0, 1] to be able to operate, which can meet its special valid situation.

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

79225483

Date: 2024-11-26 06:04:35
Score: 1.5
Natty:
Report link

It might be something to do with the line of code

img = tf.transpose(img, perm=[1, 0, 2])

in encode_single_sample function.

I ran the code and checked the output by using matplotlib's matshow() function and it seemed the image was the same but was rotated by 90 degrees. Check the order of the matrix that you want for your input node and transpose the image matrix accordingly.

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

79225478

Date: 2024-11-26 06:03:33
Score: 8 🚩
Natty: 4
Report link

is it fixed? can u tell more about the issue I think cellRenderer can fix ur issue

Reasons:
  • RegEx Blacklisted phrase (2.5): can u tell
  • RegEx Blacklisted phrase (1.5): fixed?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): is it fix
  • Low reputation (1):
Posted by: Christopher Chew

79225477

Date: 2024-11-26 06:02:33
Score: 0.5
Natty:
Report link

I’ve identified the root cause of the issue, which was related to the build settings. Specifically, it was the Optimization Level configuration. Setting the optimization level to "None" (both for general build settings and the Swift compiler) resolved the issue.

Here are the steps I followed:

Set the Optimization Level to "None" in the build settings. Set "No Optimization" in the Swift compiler settings. Performed a flutter clean. Removed the Pods and Podfile.lock. Restarted the process and reinstalled the Pods. Additionally, I reviewed the dependency versions and ensured they were updated as follows:

amplify_flutter: ^2.2.0 to 2.5.0 amplify_auth_cognito: ^2.2.0 to 2.5.0 amplify_core: ^2.2.0 to 2.5.0 Finally, I removed and re-added the required libraries in Link Binary with Libraries, which helped resolve the linking issues.

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

79225474

Date: 2024-11-26 06:02:32
Score: 4
Natty:
Report link

"Great article! I appreciate how you explained [specific topic from the blog]. I particularly found your point about [specific detail] insightful, as it aligns with strategies I've seen work in experience. For those interested in this subject, I've also written about related topic on my blog, where I share tips on brief value proposition of your content. Thanks for sharing such valuable insights!" https://ifda.in/mern-stack-development-course.php

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (2): Thanks for sharing
  • No code block (0.5):
  • Low reputation (1):
Posted by: Angshuman Das

79225467

Date: 2024-11-26 05:59:31
Score: 2.5
Natty:
Report link

var lengths = testData.map(subArray => subArray.length); console.log(lengths);

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

79225453

Date: 2024-11-26 05:51:30
Score: 1.5
Natty:
Report link

Use this:

<com.google.android.material.button.MaterialButton
        android:id="@+id/button"
        style="@style/Widget.Material3.Button.IconButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|end"
        android:layout_marginEnd="96dp"
        android:layout_marginBottom="16dp"
        android:padding="0dp"
        app:icon="@drawable/ic_test_tint"
        app:iconSize="48dp" />

Looks like your design's primary color is yellow, why not make it be your theme's primary color?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Kolyneh

79225451

Date: 2024-11-26 05:51:30
Score: 1.5
Natty:
Report link

there is problem with your path structure. Hope it will fix it

content: url("/Math.gg/logo.png");
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sujit Gupta

79225438

Date: 2024-11-26 05:42:28
Score: 1
Natty:
Report link

You can try XShapeCombineMask with JNA to make the javafx window transparent for mouse events. Right now, your makeHalfTransparent function looks fine, but you're likely not applying the mask correctly to the javafx window. getWindowPointer needs fetched and applied the shape mask XSHapeCombineMask matching dimensions of the stage and call XFlush after applying the mask

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

79225427

Date: 2024-11-26 05:35:27
Score: 3.5
Natty:
Report link

net stop winnat net start winnat

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Simion Robert

79225420

Date: 2024-11-26 05:32:26
Score: 1
Natty:
Report link

Try using stream = True in the below section to download the file directly instead of it going into memory first.

req = urllib.request.Request(url, headers=headers)

with urllib.request.urlopen(req) as response:

    pdf_data = response.read()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mr Wesley

79225415

Date: 2024-11-26 05:29:26
Score: 1
Natty:
Report link

I've had this problem some times and hadn't been able to figure out when it happened. Checking some comments above I could realize that it happened when I was working with docker environments but didn't run npm install locally so I did it as some said before and it worked. If you are using docker maybe it could help

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Marco Corbera

79225410

Date: 2024-11-26 05:26:25
Score: 2
Natty:
Report link

The double free of object error in Python is generally related to manually managing memory in lower-level extensions or bindings with C/C++. Python itself typically manages memory automatically, but when interfacing with external libraries that do manual memory management, it's important to ensure that memory is freed properly or only once to avoid corruption or crashes.

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

79225400

Date: 2024-11-26 05:21:24
Score: 1
Natty:
Report link

This may get you closer to your desired output:

import json
from pandas import json_normalize
info = json.loads(resp.json)
fileaction = json_normalize(info)
fileaction.to_csv(filename, index=False, encoding='utf-8')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: SharpSignals

79225390

Date: 2024-11-26 05:18:23
Score: 1.5
Natty:
Report link

For Windows(PowerShell) Users:

git branch -D $(git branch --list "prefix*" | % { $_.Trim() })
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: dulithm

79225388

Date: 2024-11-26 05:17:23
Score: 4.5
Natty:
Report link

flameshot application works well.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ddakker

79225385

Date: 2024-11-26 05:13:22
Score: 1.5
Natty:
Report link

I found the culprit following the advice of @Kosh by creating a minimal example myself.

The template came with a few wrapper classes such as .wrapper and .wrapper-table-row that has either display:table or display:table-row.

I removed those exact rules and overflow:auto on parent div is now working and the table is now fitting inside viewport.

I'm not sure but would it break the template and other layouts of the site if I remove them? What do these rules do?

.wrapper {
  display:table;
  height:100%;
  width:100%;
}
.wrapper-table-row {
  display:table-row;
  height:100%;
}

Fitting the element to be 100% in height?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @Kosh
  • Self-answer (0.5):
  • Looks like a comment (1):
  • High reputation (-2):
Posted by: datasn.io