79226089

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

The error is usually related to manual management of memory.Python connects with an external library performs manual memory management, it may not automatically manage the memory, and in case it doesn't work, the memory is freed up or only once

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

79226088

Date: 2024-11-26 09:42:42
Score: 3.5
Natty:
Report link

I had a similar problem and asked it here: MAUI win32 unhandled exception asking for a different debugger

The answer posted solved my problem, maybe it will help you too.

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

79226084

Date: 2024-11-26 09:41:42
Score: 1.5
Natty:
Report link

Problem solved. I accidentally overwrote the exception handler with

app.UseDeveloperExceptionPage();

I need to make sure that

app.UseExceptionHandler();

is called AFTER

app.UseDeveloperExceptionPage();
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: HWS-SLS

79226078

Date: 2024-11-26 09:39:41
Score: 0.5
Natty:
Report link

Regarding your second point: in the original paper by Garland & Heckbert, the cost of contracting a pair of vertices/an edge (v1, v2) is the sum of squared distances between the newly created vertex v_bar (that replaces the edge) and the planes of the triangles that meet at v1 and v2.

Now MeshLab relies on VCGlib for most of its computations. You can find details about the implementation of the edge collapse algorithm here. Basically it rescans the faces after the (simulated) collapse and uses a penalty if newly created triangles have an aspect ratio under a certain threshold and if their normals vary more than another threshold.

I'm not sure I understand your other questions, but my understanding is that the algorithm just considers the mesh connectivity (which is quite easy to get whether the mesh is stored as a face-vertex list or another format such as winged edge) and just works as long as there is an edge connecting two vertices.

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

79226077

Date: 2024-11-26 09:39:41
Score: 4
Natty:
Report link

Just add @onkeydown:preventDefault to this input or to the parent HTML element if you alaredy using @onkeydown for input.

<input type="number" @onkeydown:preventDefault />

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @onkeydown
  • Low reputation (1):
Posted by: user28491573

79226068

Date: 2024-11-26 09:36:40
Score: 3
Natty:
Report link

I am experiencing the same issue. I think it has to do with the package not being updated. I suggest you look for an alternative library.

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

79226066

Date: 2024-11-26 09:36:40
Score: 1
Natty:
Report link

The issue is that you are calling the workflow within a step, while this is supported as a job.

What you should have is:

jobs:
  my-test-job:
    uses: ./.github/actions/test
      with:
        username: John
      secrets:
        token: secret Token
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ayoub Benaissa

79226054

Date: 2024-11-26 09:32:38
Score: 2
Natty:
Report link

In case someone stumbles on this post having the same problem, this is what i did: the api calling methods have to be changed into something like https://full_domain_name/service_name

where that "service_name" will be used to redirect the request to the app that runs internally on the vm

reverse-proxy config file below:

server {
    listen 443 ssl;
    server_name full_domain_name;

    ssl_certificate /etc/letsencrypt/live/full_domain_name/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/full_domain_name/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

    location / {
        proxy_pass http://localhost:4200/; # Points directly to the Angular app running on the VM
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

    location /security/ {
        proxy_pass http://localhost:8080/; # Internal route for SECURITY microservice
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

    location /api/event/ {
        proxy_pass http://localhost:8081/api/;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

    location /api/main/ {
        proxy_pass http://localhost:8082/api/;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

# Redirect HTTP to HTTPS
server {
   if ($host = full_domain_name) {
       return 301 https://$host$request_uri;
   }

   listen 80;  # HTTP
   server_name full_domain_name;


   return 404; # Managed by Certbot
}

where, for example, /api/event is based on that "service_name" i mentioned earlier.

in my case, if the client does a request to

https://full_domain_name/api/event/getAll

the nginx reverse-proxy will forward this request to

http://localhost:8081/api/getAll

basically the requests are still being done securely but nginx handles that security instead of having to configure each application to do that

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): having the same problem
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: steven stonie

79226050

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

Settings.Json:

 "workbench.colorCustomizations": {"editor.foreground": "#ffffff"}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • High reputation (-1):
Posted by: Minxin Yu - MSFT

79226049

Date: 2024-11-26 09:31:38
Score: 2.5
Natty:
Report link

I have faced this issue. For me, i have mounted gdrive then i came back after a while and tried to unzip, so session expired, try mounting again and immediately try to unzip, this step solved my issue

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

79226042

Date: 2024-11-26 09:28:37
Score: 1
Natty:
Report link

You should use x:Uid

For example, you want to set "Save" as Content of a button. So you can add x:Uid = "SaveButton" to the button and then create an entry in Resource file named "SaveButton.Content" and set its value to "Save".

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

79226031

Date: 2024-11-26 09:23:36
Score: 3
Natty:
Report link

I used CloudMounter for this task. It connects multiple cloud accounts as virtual drives, allowing drag-and-drop transfers without downloading or re-uploading.

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

79226024

Date: 2024-11-26 09:20:35
Score: 1.5
Natty:
Report link

You can simply use traditional trig functions to create a triangle-wave as a function of x

import math
triangle_function = lambda x: math.asin(math.sin(2*math.pi*x))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: A_Hipposhark

79226023

Date: 2024-11-26 09:20:35
Score: 1
Natty:
Report link

In general, you can a process similar to this:

  1. write a SQL query to extract te 15 columns (you can schedule this to be run daily using a SQL Server Agent job):

    SELECT [Order Number], [Order Line], [Customer Reference], -- Include other required columns FROM NavisionTable

  2. Use Power Query to connect your SQL database to Excel.

  3. To maintain your manually entered values, use a lookup mechanism.

  4. Set schedule on Power Query to automate the process.

As an alternative, I am working on a project where we are building AI Agents to automate data processing operations, such as data extraction, and it's compatible with Excel, SQL, CSV, PDF, TXT, Email. If you think that might be useful for you, you can contact us via our website: https://www.starnustech.com/

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

79226020

Date: 2024-11-26 09:19:35
Score: 1.5
Natty:
Report link

Reached out to MS support. For my particular case, this was the reason:

Azure Event Hubs typically counts all events that are sent to the hub, including those that may have failed to be received due to various issues. This means that while the metric reflects the total number of events sent, it does not differentiate between successfully received events and those that failed to reach the Event Hub due to network issues or other failures. If the entire batch fails due to a transient issue (like network problems or throttling), the system may attempt to resend that same batch. Each retry counts as a new ingress event (regardless of the fact that it may be a batch with multiple events), leading to an increase in the total number of events sent.

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

79226014

Date: 2024-11-26 09:18:34
Score: 4.5
Natty:
Report link

Thanks for the help!

I tried all the suggested solutions, but none worked. After a hardware change on my computer, I reinstalled Windows, VS Code, MSYS2 and everything worked properly.

Unfortunately, I can't pinpoint the exact cause of the issue. Reinstalling is most likely not a good solution for others facing the same problem.

However, when I still had the issue, the launch.json file helped that i could compile and run the code. I recommend starting there to investigate how the .json file affects the dll's that are called when compiling. It might lead to a solution.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: fel_fe

79225998

Date: 2024-11-26 09:14:33
Score: 2
Natty:
Report link

If it happens after you deleted dependency from your libraries (installed by SPM) you may also need to do next:

Open Xcode, go to Project > Build Phases > Link Binary With Libraries > remove from array link of recently deleted library.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Виктор Савицкий

79225994

Date: 2024-11-26 09:13:33
Score: 1
Natty:
Report link

As of now, Google Play's updated policy mandates that all developers who created their accounts after 2023 must complete a 14-day closed testing trial before publishing their apps on the platform. However, I discovered a reliable service provider that offers an alternative solution for accounts created before 2023. They can publish apps without requiring the closed testing trial.

Although their pricing is slightly higher, it is reasonable compared to the potential costs of conducting closed testing, especially since there’s no guarantee the app will ultimately be approved. This service provider ensures app publishing within 24 hours, barring any issues with Google or app approval. I've personally published three apps with them, and they deliver excellent service. You can check them out here: Click Here

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

79225989

Date: 2024-11-26 09:12:33
Score: 2.5
Natty:
Report link

For me, the solution was to export the key in PKCS#8 format instead of OpenSSL.

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

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