79302582

Date: 2024-12-23 08:44:42
Score: 3.5
Natty:
Report link

If you see this in Jenkins, just restart your BuildSwarm (disable/enable).

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

79302580

Date: 2024-12-23 08:43:41
Score: 4.5
Natty:
Report link

Thanks all. yuk and Andre Wildberg's suggestion worked.

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

79302575

Date: 2024-12-23 08:41:40
Score: 1
Natty:
Report link

I evolved the idea of @user3820843, added couple null checks and here's what I've got:

#include <iostream>

template<class CLASS>
class CallbackClass
{
    typedef void(CLASS::*PVoid)();
private:
    CLASS *p = nullptr;
    PVoid pCallback = nullptr;
public:
    CallbackClass() {}
    ~CallbackClass(){}

    bool set_callback(CLASS *c, PVoid f)
    {
        if (!(c && f))
            return false;
        p = c;
        pCallback = f;
        return true;
    }

    bool callback()
    {
        bool r = false;
        if (p && pCallback)
        {
            (p->*(this->pCallback))();
            r = true;
        }
        return r;
    }

};

class A
{
public:
    A()  {}
    ~A() {}
    CallbackClass<A> t;
    void this_callback()
    {
        std::cout << "Callback" << std::endl;
    }
};

int main()
{
    A *a = new A;

    std::cout << a->t.set_callback(a, &A::this_callback) << std::endl;
    
    std::cout << a->t.callback();
    
    return 0;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @user3820843
  • Low reputation (1):
Posted by: alex

79302564

Date: 2024-12-23 08:35:39
Score: 3
Natty:
Report link

https://dreampuf.github.io/GraphvizOnline

You can try this. I think it should be able to handle it.

Reasons:
  • Whitelisted phrase (-1): try this
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jayaram V

79302562

Date: 2024-12-23 08:33:37
Score: 6.5 🚩
Natty: 4
Report link

The electron-push-receiver library no longer works with Electron for handling push notifications. Is there an alternative solution for implementing push notifications in an Electron app? If so, could you share the steps or tools to make it work effectively?

Reasons:
  • RegEx Blacklisted phrase (2.5): could you share
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jignesh Tejani

79302558

Date: 2024-12-23 08:31:37
Score: 1
Natty:
Report link

This will not be a good answer, but hopefully an almost decent breadcrumb. What you're describing has roots in robotic motion planning, which extends the basic notion of pathfinding to include volumetric concerns and degrees of freedom. A useful term to get familiar with is "configuration space", which offers some reduction of complexity. I recommend using "motion planning" as your search term, and maybe start here: https://en.wikipedia.org/wiki/Motion_planning

You're onto a tough problem but it'll be fun. Good luck!

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

79302555

Date: 2024-12-23 08:30:36
Score: 0.5
Natty:
Report link

This is a rather old question, but I would also like to share this simpler method that uses the EXCEPT operator; worked pretty well for me:

select array(
    select unnest('{1,2,3,4}'::numeric[])
    except
    select unnest('{1,2}'::numeric[])
);

β”Œβ”€β”€β”€β”€β”€β”€β”€β”
β”‚ array β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€
β”‚ {3,4} β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”˜
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: iyxan23

79302540

Date: 2024-12-23 08:21:34
Score: 4.5
Natty:
Report link

Btw your code for substitution is not correct because it is not "capture avoiding" !!! May I suggest switching to the De Bruijn handling of binders?

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

79302532

Date: 2024-12-23 08:18:33
Score: 11
Natty: 7.5
Report link

is there any solution for this issues?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Blacklisted phrase (1): is there any
  • RegEx Blacklisted phrase (2): any solution for this issues?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): is there any solution for this is
  • Low reputation (1):
Posted by: Mohamed Tawfiq

79302496

Date: 2024-12-23 07:59:28
Score: 1.5
Natty:
Report link

Intel

nano /usr/local/etc/my.cnf

Apple Silicon

nano /opt/homebrew/etc/my.cnf
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dawoodjee

79302491

Date: 2024-12-23 07:58:28
Score: 2.5
Natty:
Report link

Because you have 2 activate roots ('/'): one comes from app/page.tsx and another one comes from app/(route)/page.tsx. So, you can delete the page of (route) and your app will not catch that error anymore

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nguyα»…n PhΓ‘t

79302490

Date: 2024-12-23 07:57:28
Score: 2.5
Natty:
Report link

I'm having the same issue but with buttons too. It's so annoying. Some elements are clickable and some not. If I change onTapGesture with highPriorityGesture as you suggested -> it works but then subviews of the view are not clickable at all. So that's not a solution I guess.

In my case, buttons have the same problem. Some of them are clickable and some not (in the list). Long press works, button action is triggered always like that, but single press is still the issue.

My colleague has the same code with old Xcode 15.4 and Swift 5. After compiling from his computer everything works fine even on iOS 18.2 versions of iPhone. Buttons and onTapGestures work just fine.

You can check my question too.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm having the same issue
  • Me too answer (0): have the same problem
  • Low reputation (1):
Posted by: armando

79302487

Date: 2024-12-23 07:55:27
Score: 0.5
Natty:
Report link

Just a few comments here to nuance a bit the answers given above : According the ISO 8601, the first week of the year is the week containing the first Thursday.

The logic behind this is : The first week of a month is the first week where you have a majority of days of the new month vs the previous month.

But that logic varies from company to company: Some companies consider 5 days per week. => The first week of a month is the first week with a Wednesday. (2 days old month, 3 days new month)

Some companies consider 7 days per week. => The first week of a month is the first week with a Thursday. (3 days old month, 4 days new month)

Some companies consider the 1st of the month. => The first week of a month is the first week with the 1st

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

79302483

Date: 2024-12-23 07:53:27
Score: 1
Natty:
Report link

The optimal solution isn't always the median. Instead, we need to try every possible target value between the minimum and maximum numbers in the list. For each potential target value, we need to consider two options for each number:

The algorithm should choose the cheaper option for each number. The total cost for a given target value is the sum of the optimal choices for each number. We then pick the target value that gives us the minimum total cost.

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

79302480

Date: 2024-12-23 07:52:27
Score: 2
Natty:
Report link

I've been struggling with the same issue and I think I found a solution to this that seems to be working consistently (haven't tested this more than 2 minutes, but it seems fine). Found it here https://www.javaprogrammingforums.com/awt-java-swing/4183-swing-components-invisible-startup.html

But basically: I create the JFrame as part of the class attributes (JFrame visibility set false) - then set the components visibility after adding them to the JFrame - then I set the Visibility of the JFrame to true after everything, or in a different method ---

class Main {
public static JFrame Login;

public static void main(String[] args) {
    Create_Frames();
    Login();
}

public static void Create_Frames() {
    // === Login page GUI creation ===
    Login = new JFrame("Login");
    Login.setSize(400, 200);
    Login.setLayout(null);
    Login.setVisible(false);
    Login.setResizable(false);
    Login.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

    JLabel Name_label = new JLabel("Enter your username:");
    Name_label.setBounds(10, 10, 130, 20);
    //....Other code....
    
    Login.add(Name_label);
    Login.add(Name_input);
    Login.add(Pass_label);
    Login.add(Pass_input);
    Login.add(Login_but);
    Login.add(Register_but);
    Name_label.setVisible(true);
    Pass_label.setVisible(true);
    Name_input.setVisible(true);
    Pass_input.setVisible(true);
    Login_but.setVisible(true);
    Register_but.setVisible(true);
}
// Other method to set frame to true
public static void Login() {
    Login.setVisible(true);
}

If this worked for you please let me know

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RhinoRacer

79302478

Date: 2024-12-23 07:51:26
Score: 4
Natty:
Report link

Is it possible to switch off destination url matching ? We are migrating one broker/sp to another broker/sp so there is a change in redirect url but we don't want to force our customers to change redirect url in their idp.

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • 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 it
  • Low reputation (0.5):
Posted by: Navin

79302464

Date: 2024-12-23 07:43:24
Score: 2
Natty:
Report link

found a solution myself, here's the guide:

  1. Download SSL certificate from here: https://docs.aws.amazon.com/redshift/latest/mgmt/connecting-ssl-support.html

  2. Make sure it's publicly accessible (Amazon Redshift Serverless > Workgroup configuration > <your-wrokgroup>)

Network and Security

  1. Add this rule to your Security Group (Amazon Redshift Serverless > Workgroup configuration > <your-wrokgroup> > VPC security group)

enter image description here

  1. Then once all of the above step is completed try to Authenticate again

enter image description here

This guy is amazing his video also helped me along: https://www.youtube.com/watch?v=22K0PxjwIa0

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Visrut

79302462

Date: 2024-12-23 07:42:24
Score: 0.5
Natty:
Report link

There are so many issues when managing arcs, but @chris answer above made sense to me.

I've added a counter-clockwise argument to the bounds and corrected an error in one of the arrays. The function has minor fixes and has been battle tested in a CAD app. Works great.

Below is a clip from an Arc class with start and end angles (sa, ea) and ccw property. Start and end angles are simply reversed for ccw arcs.

bounds():Segment {

    this.normalizeAngles();

    const start = this.ccw ? this.ea : this.sa;
    const end = this.ccw ? this.sa : this.ea;

    const iniQuad = this.getQuadrant(start);
    const endQuad = this.getQuadrant(end);

    const r = this.r;

    const ix = Math.cos(start) * this.r;
    const iy = Math.sin(start) * this.r;
    const ex = Math.cos(end) * this.r;
    const ey = Math.sin(end) * this.r;

    const minX = Math.min(ix, ex);
    const minY = Math.min(iy, ey);
    const maxX = Math.max(ix, ex);
    const maxY = Math.max(iy, ey);
    
    const xMax = [[maxX, r, r, r], [maxX, maxX, r, r], [maxX, maxX, maxX, r], [maxX, maxX, maxX, maxX]];
    const yMax = [[maxY, maxY, maxY, maxY], [r, maxY, r, r], [r, maxY, maxY, r], [r, maxY, maxY, maxY]];
    const xMin = [[minX, -r, minX, minX], [minX, minX, minX, minX], [-r, -r, minX, -r], [-r, -r, minX, minX]];
    const yMin = [[minY, -r, -r, minY], [minY, minY, -r, minY], [minY, minY, minY, minY], [-r, -r, -r, minY]];

    const x1 = xMin[endQuad][iniQuad];
    const y1 = yMin[endQuad][iniQuad];
    const x2 = xMax[endQuad][iniQuad];
    const y2 = yMax[endQuad][iniQuad];

    return new Segment(
        new Point(this.c.x + x1, this.c.y + y1), 
        new Point(this.c.x + x2, this.c.y + y2)
    );
}

private getQuadrant(angle:number) {
    const PI = Math.PI;
    const HALF_PI = Math.PI / 2;
    const TWO_PI = Math.PI * 2;
    if (angle > TWO_PI) angle = angle % TWO_PI;
    if (angle >= 0 && angle < HALF_PI) return 0;
    if (angle >= HALF_PI && angle < PI) return 1;
    if (angle >= PI && angle < (PI + HALF_PI)) return 2;
    return 3;
};

normalizeAngles() {
        this.sa = this.normalizeAngle(this.sa);
        this.ea = this.normalizeAngle(this.ea);
        if (this.sa >= this.ea) this.ea += Math.PI * 2;
    }

normalizeAngle(angle:number):number {
        let remainder = angle % (2 * Math.PI);
        if (remainder < 0) remainder += 2 * Math.PI;
        return remainder;
    }
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @chris
  • Low reputation (1):
Posted by: markus

79302461

Date: 2024-12-23 07:40:23
Score: 0.5
Natty:
Report link

The issue occurs because SHAP’s scatter function may improperly handle missing data when using xgb.DMatrix, as it might convert the sparse matrix to dense, leading to zero imputation. To correctly display missing values (e.g., as rug plot markers), you should use the raw input data (numpy array or pandas.DataFrame) instead of xgb.DMatrix when calculating SHAP values. While the model can be trained with DMatrix, passing the original X to the SHAP explainer ensures proper handling of NaN values and accurate scatter plots.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Karlygash Zhakupbayeva

79302457

Date: 2024-12-23 07:38:23
Score: 2
Natty:
Report link

try Move the multi bloc provider to be the parent of MaterialApp, also make sure that You are accessing the cubit with valid state, if not work try wrap your desired widget with the bloc provider first to make sure it works then go for further debugging to figure why it is not work since all setup had been done correctly

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

79302455

Date: 2024-12-23 07:37:22
Score: 1
Natty:
Report link

for me after system update the fix was to reactivate flutterfire

dart pub global activate flutterfire_cli
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bobasoft

79302451

Date: 2024-12-23 07:35:22
Score: 1.5
Natty:
Report link

found this in Maven Central Repository, it worked for my project i hope it work for you too implementation 'co.infinum:IndicatorSeekBar:2.1.2'

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: andro-dev-new

79302447

Date: 2024-12-23 07:34:22
Score: 1.5
Natty:
Report link

Answering this in case someone has the specific problem of Quadmenu + wrong logo url:

Turns out Quadmenu has it's own setting for logo url, separate from WP. It seems to update when importing a site, but not when you change the site url after importing.

I found this setting at quadmenu->options->default theme->menu and changed it.

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

79302445

Date: 2024-12-23 07:33:22
Score: 1
Natty:
Report link

β”Œβ”€ Flutter Fix ────────────────────────────────────────────────────────────────────────────────┐ β”‚ [!] Your project requires a newer version of the Kotlin Gradle plugin. β”‚ β”‚ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then β”‚ β”‚ update the β”‚ β”‚ version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of β”‚ β”‚ D:\Android application\news_app\android\settings.gradle. β”‚ β”‚ β”‚ β”‚ Alternatively (if your project was created before Flutter 3.19), update β”‚ β”‚ D:\Android application\news_app\android\build.gradle β”‚ β”‚ ext.kotlin_version = '' β”‚ └────────────────────────────────────────────── if i run the project to show me this type of error . my flutter version is 3.27.1 after changing the kotlin = 1.9.10 , still the error .

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Filler text (0.5): ────────────────────────────────────────────────────────────────────────────────
  • Filler text (0): ──────────────────────────────────────────────
  • Low reputation (1):
Posted by: zia ullah

79302444

Date: 2024-12-23 07:31:21
Score: 0.5
Natty:
Report link

Try these 2 code:

1st:

import datasets  datasets.disable_progress_bar()

2nd: set disable_tqdm = True

from transformers import pipeline

model = pipeline("text-generation", model="gpt2", device=0)
output = model("any text", num_return_sequences=1, disable_tqdm=True)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: XGB

79302442

Date: 2024-12-23 07:30:21
Score: 0.5
Natty:
Report link

According to the below link I got a solution :

link!

So I added the BeginEdit event datagridview then the error is solved

Private Sub DataGridView1_CellBeginEdit(sender As Object, e As DataGridViewCellCancelEventArgs) Handles DataGridView1.CellBeginEdit
        Dim currencyManager As CurrencyManager = CType(BindingContext(BindingSource1.DataSource), CurrencyManager)
        currencyManager.SuspendBinding()
        ' Manipulate datasource
        currencyManager.ResumeBinding()

    End Sub

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

79302438

Date: 2024-12-23 07:27:19
Score: 5.5
Natty:
Report link

Found this documentation for the subscription-related endpoints.

https://woocommerce.github.io/subscriptions-rest-api-docs/#introduction

Reasons:
  • Blacklisted phrase (1): this document
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Omer

79302433

Date: 2024-12-23 07:25:19
Score: 1
Natty:
Report link
🚨 Unreliable Google Workspace Support: A Risk You Can't Afford! 🚨

"Never trust Google Workspace Support with your businessβ€”it could cost you everything." We’re calling on every IT professional, business owner, and tech enthusiast to hear our story. Since we registered our case on 6 November 2024 with Google Workspace support, our company has been drowning in chaos. We've faced immense losses due to Google's negligence and lack of support. Despite countless attempts to escalate, Google has ignored our cries for help, leaving us stranded. This isn’t just a complaintβ€”it’s considered to be an order for Google Workspace to fix their broken support system and address the damages their negligence has caused.

Our Story: How Google Workspace Made Us Suffer 1️⃣ If you're seriously considering moving to Google Workspace, approach us for proofβ€”we have all the documentation and clear objectives to help you make a clear and informed decision. 2️⃣ A problem arose, and we reached out to Google supportβ€”but what followed was no action, no empathy, and no resolution. 3️⃣ Since November 6, 2024, the issue has remained unresolved, leading to severe disruptions in our operations, strained relationships with clients, and significant losses for our business The result? Lost clients. Destroyed trust. Severe financial damage.

What Makes This Worse? Google, one of the largest tech giants in the world, has dismissed our case, treating it with shocking indifference. πŸ”΄ Google Workspace support isn't just unreliableβ€”it’s a catastrophic risk to IT operations. πŸ”΄ A company the size of Google should set the bar for customer support, not undermine businesses like ours. Their lack of urgency isn’t just negligence; it’s a warning sign for any business considering trusting them.

Our Demands: Google Must Be Held Accountable βœ… Google must compensate us for the damages and losses their negligence caused. βœ… Google must prioritize Workspace support for businesses and overhaul their broken system. βœ… Sundar Pichai and every Google employee must hear this storyβ€”so that no other company suffers like ours.

Join the Movement: Help Us Hold Google Accountable πŸ“’ Share this story with your networkβ€”everyone needs to know the risks. πŸ“’ Tag Google employees and demand accountability. πŸ“’ Tag @SundarPichaiβ€”let him know how Google's negligence is damaging businesses worldwide. πŸ“’ Have a similar experience? Share your story and join us in demanding change!

Google: From Trusted Name to Unreliable Partner This isn’t just about usβ€”it’s about the entire IT community. Together, we can ensure Google takes responsibility and provides the support every business deserves. Let’s not stay silent while more companies suffer due to their negligence!

Reasons:
  • RegEx Blacklisted phrase (1): Help Us
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Vishant Patil

79302430

Date: 2024-12-23 07:24:19
Score: 1
Natty:
Report link

The route Route::get('students/{student}', ...) is a dynamic route that matches any URL segment after students/. For example:

/students/123 /students/xyz

This means when the route Route::get('students/{student}', ...) is defined before Route::get('/students/create', ...), Laravel tries to match /students/create with students/{student}. It interprets create as the {student} parameter, which likely causes the controller method or validation to fail.

To avoid conflicts between static and dynamic routes, always define specific routes before dynamic ones.

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

79302422

Date: 2024-12-23 07:21:18
Score: 1
Natty:
Report link

In SwiftUI, the image may be scaled to fit within a Image view, and its displayed size might not match the original size. Also note SwiftUI positions elements relative to their parent view. The markers are placed relative to the scaled image size.

Adding ZStack to image or adjusting scaling factor should help. try resizable() and scaledToFit()

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

79302409

Date: 2024-12-23 07:14:16
Score: 1
Natty:
Report link

If you are using the GetItems endpoint, it is important to ensure that the parameters are supported in the context of your request. The $top parameter is intended to limit the number of items returned, while $skip is used to skip a certain number of items. However, if the API is not recognizing these parameters, it might be due to changes in the API behavior or restrictions on the specific endpoint you are using.

You may want to check if there have been any updates or changes to the API that could affect how these parameters are processed. Additionally, consider switching to using $skiptoken for pagination, as it is recommended for handling large sets of list items.

Reasons:
  • RegEx Blacklisted phrase (0.5): any updates
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Allen_MSFT

79302408

Date: 2024-12-23 07:14:16
Score: 0.5
Natty:
Report link

In my case, I followed the following instructions to fix the issue on macOS Sequoia:

1- Delete any certs that currently exist. Open a terminal and run: dotnet dev-certs https --clean

2- Download the tar.gz file of the "main" release from the .NET SDK package table.

3- Unpack the downloaded file.

4- Remove the quarantine attribute from the unpacked folder. From your terminal run: xattr -d com.apple.quarantine -r Replace with the name of your unpacked folder.

5- Navigate to the unpacked folder

6- From within this folder, run the following to generate and trust the certificate. ./dotnet dev-certs https --trust

Link

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

79302400

Date: 2024-12-23 07:12:16
Score: 1
Natty:
Report link

It seems like you're working with a 2D array, but in C++, all rows in a traditional 2D array have the same number of elements, even if you try to initialize them with different lengths. This is why your sizeof operation is returning 6, as it is treating each row as if it has 6 elements, as per the declaration.

To achieve a solution where the rows have different lengths (a "ragged" array), a 2D array is not the best choice in C++. Instead, you could use a dynamic data structure like std::vectorstd::vector<int>, which allows each row to have a different number of elements.

This way, you can easily get the size of each row by calling .size() on the inner vector, which will return the actual number of elements in that row, regardless of how many columns you initially declared.

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

79302399

Date: 2024-12-23 07:11:14
Score: 7 🚩
Natty: 4
Report link

Did you ever get a solution to this? I have a similar requirement. I am not good with JS but can understand a script and modify accordingly

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever get a solution to this
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Gonzaga Paul

79302395

Date: 2024-12-23 07:09:14
Score: 1
Natty:
Report link

The correct answer is :

sheets = Book.Sheets
xlWs = sheets.Add(Before=None, After=sheets(sheets.Count))
xlWs.Name = "Data1"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Laurent T

79302394

Date: 2024-12-23 07:08:14
Score: 2.5
Natty:
Report link

Its very possible.., here is a post with all that you need linkHas all instructions, it worked for me

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Grace Peter Mutiibwa

79302392

Date: 2024-12-23 07:07:13
Score: 4
Natty: 5
Report link

You have to determine minSDKVersion based on from which version your app need to support by refering the link https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels

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

79302389

Date: 2024-12-23 07:05:12
Score: 1.5
Natty:
Report link

Batch size = 1 seems problem to me. You are giving one data point at a time and because of this the updates in the weight has high varaince and it make the convergence difficult and unstable.

And try to use Gradient Scaling Before Clipping.

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

79302384

Date: 2024-12-23 07:02:11
Score: 0.5
Natty:
Report link

To make this work, I need these three steps:

Ports

npm run dev must not only open port 5173 on localhost, but on all addresses. This is done with a change in vite.config.ts:

import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [sveltekit()],
  server: { host: '0.0.0.0', port: 5173 }
});

Browser settings

On the (Chrome) browser of the phone or tablet open

chrome://flags/#unsafely-treat-insecure-origin-as-secure 

and set it to the IP address of svkitdev in your network

http://192.168.179.41:5173

Cookies

This requires a hack in the Sveltekit code. In node_modules@sveltejs\kit\src\runtime\server\cookie.js change

/** @type {import('cookie').CookieSerializeOptions} */
const defaults = {
    httpOnly: true,
    sameSite: 'lax',
    secure: false // MUH url.hostname === 'localhost' && url.protocol === 'http:' ? false : true
};
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Michael Uhlenberg

79302371

Date: 2024-12-23 06:56:10
Score: 2
Natty:
Report link

Sorry for replying after 4 years, probably you have figured out the solution by now, but if anyone else stumble upon, here's the answer.

To achieve this, you have to ensure your microphone is always passively listening and when the listen codeword is triggered, here's the AI's name- then the system will actively listen to it. This is how it's usually built. You can keep on listening on a low powered mode, check any active package built using JavaScript and implement, you're good to go! Cheers.

Reasons:
  • Blacklisted phrase (1): Cheers
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sowmo0509

79302367

Date: 2024-12-23 06:55:10
Score: 1.5
Natty:
Report link

the only solution is you should get you wallet synchronized on the decentralized manual DApp network so it can safeguard your wallet from being compromised and as well help you restore all DApps data bugs you might be experiencing such high gas fees and swapping error or missing transactions

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user3556887

79302364

Date: 2024-12-23 06:54:09
Score: 5.5
Natty:
Report link

Could you explain a little bit more on the specifics. I'm having a hard time understanding your requirements.

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you explain
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jayaram V

79302362

Date: 2024-12-23 06:54:09
Score: 0.5
Natty:
Report link

Using TOCOL to arrange 3 columns into one

You can use the TOCOL function to accomplish this.

Formula

=TOCOL(A1:C)

Sample Output output

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: 4thAnd1

79302355

Date: 2024-12-23 06:48:07
Score: 2.5
Natty:
Report link

I have excluded hibernate dependency from other dependencies of other projects. And its resolved issue for me.

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

79302335

Date: 2024-12-23 06:40:06
Score: 3.5
Natty:
Report link

Upgrading to latest kotlin version helped

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

79302333

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

There is a mismatch between the expected return value and and the actual one , you a are expecting it as Future<List> which it is not sub type of the actual returned value which is Future<List>, Try change it and show me the result.

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

79302332

Date: 2024-12-23 06:39:05
Score: 1
Natty:
Report link
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Pavel Tupitsyn

79302330

Date: 2024-12-23 06:38:04
Score: 4.5
Natty:
Report link

pls check your link, I cant open your link https://proximab.framer.website/

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

79302329

Date: 2024-12-23 06:37:04
Score: 1.5
Natty:
Report link

The simplest way I found to do this was with:

<link rel="icon" href="data:image/png;base64,..." />

When opening F12 I verified that favicon.ico is no longer being searched.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Michel GalvΓ£o

79302327

Date: 2024-12-23 06:36:04
Score: 1.5
Natty:
Report link
static inline QByteArray QJsonArrayToQByteArray(const QJsonArray& a_jsonArray){
    const QJsonDocument jsonDoc ( a_jsonArray );
    return jsonDoc.toJson();
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Davit Kalantaryan

79302325

Date: 2024-12-23 06:34:03
Score: 1
Natty:
Report link

How are you running the script? Do you include arguments in the run command? e.g. python script.py https://google.com? If you do not specify any arg, the list will be empty.

There is also the possibility for you only having one element inside the list, while Python starts indexes from 0.

This means, the first element of the argv list would be accessed through:

argv[0]
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How are you
  • Low reputation (0.5):
Posted by: Mario MateaΘ™

79302322

Date: 2024-12-23 06:33:03
Score: 0.5
Natty:
Report link

The answer to your question is YES.

Given the example:

arr = [[x1, y1],
       [x2, y2],  
       [x3, y3]]
arr = np.array(arr, dtype='f4')
mat = arr[:, np.newaxis, :]

The resulting mat will be 3 rows, 1 column and 2 channels interpreted by OpenCV. The official numpy doc: Shape Manipulation explains more details.

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

79302317

Date: 2024-12-23 06:31:02
Score: 2
Natty:
Report link

change your c(.*)e to c(.*?)e, which will make the match non-greedy.

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

79302315

Date: 2024-12-23 06:30:01
Score: 4
Natty:
Report link

It Looks like attachments for Todo Taks are now supported :

https://learn.microsoft.com/en-us/graph/todo-attachments?tabs=http

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Zen Lang

79302314

Date: 2024-12-23 06:29:01
Score: 0.5
Natty:
Report link

The error "Couldn't terminate the previous instance of the app" typically happens when the Android Studio cannot properly stop the app that's already set as a device owner. Since you're setting the app as a device owner, it has certain system-level restrictions that prevent regular uninstall or termination from the device.

To resolve this issue, follow these steps:

Remove the Device Owner: Before you can re-build or re-install the app, you must remove the device owner status. You can do this using the following command:

adb shell dpm remove-device-owner com.homeapp/com.homeapp.utils.MyDeviceAdminReceiver

Rebuild the App: After removing the device owner, rebuild the app in Android Studio.

Re-set Device Owner: Once the app is built and the installation succeeds, re-set it as the device owner using the command:

adb shell dpm set-device-owner com.homeapp/com.homeapp.utils.MyDeviceAdminReceiver

Ensure that this step is done after the app is installed and not while it's being updated during a build, as the device owner status cannot be modified in the middle of an installation process.

Check ADB Debugging Settings: Ensure that ADB debugging and USB debugging are correctly enabled on your device, as this can sometimes interfere with commands.

Check for Emulator-Specific Issues: If you're working with an emulator, the emulator may not correctly handle device owner status in some cases. Try using a physical device to see if the issue persists.

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

79302308

Date: 2024-12-23 06:26:00
Score: 0.5
Natty:
Report link

There are multiple ways to do it for sure:

What I woudl do is,

  1. Create a new table for RecurrPayment and use the date(Day of a month) as the partition key to make the query faster.

  2. Use a cron job to query the rows daily and queue the tasks in kafka to perform transactions.

  3. To handle cancellations: When someone cancels, add the userid to redis. Before performing the transaction check in that redis set and also remove row from db

Based on the QPS, decide which DB to use. Also add checks(while performing the transaction from the kafka queu) to expire the subscription lets say after 1 year or N timeperiod.

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

79302307

Date: 2024-12-23 06:26:00
Score: 3
Natty:
Report link

Yes you just have to do the following: export const ModelName = mongoose.models?.ModelName || mongoose.model('ModelName', modelSchema) in this way the model will not be overwrited

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

79302303

Date: 2024-12-23 06:25:00
Score: 2.5
Natty:
Report link

Try to update your gradle to 8.0 version (in gradle.properties) and try add this dependency: classpath("com.android.tools.build:gradle:8.1.4") to your dependencies block. It has helped to me

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: МСдвСдковъ

79302299

Date: 2024-12-23 06:21:59
Score: 3.5
Natty:
Report link

You should remove gridView option and set scroll:true and try

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

79302295

Date: 2024-12-23 06:19:58
Score: 1
Natty:
Report link

In Laravel, you can take a record based on column value or values

//Many Records
$players = Account::where('playerNo', 99)->get();
//Single Record, basically the first occurance
$player = Account::firstWhere('playerNo', 99);
//Similarly for uniqueness choose the primary key column. Like id.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Laradmin

79302289

Date: 2024-12-23 06:15:57
Score: 7 🚩
Natty: 6.5
Report link

@Steve We use this process, how could one install this on 2 servers for failover. I'm looking for a way to do this so if one server/ Service crashed the other one on the other server would startup, can one use a share drive somehow?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • User mentioned (1): @Steve
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Matt

79302287

Date: 2024-12-23 06:13:55
Score: 7.5 🚩
Natty: 5
Report link

My account my Facebook account please request my Facebook tubes are my account please recovery please help me my something my please help me come to my Facebook please sir my Facebook name Gamaer Raj please my Facebook [email protected] my Facebook sir please Kitna Kitna bhi mil number hai pura number email kar dijiye private remove kar dijiye please my Facebook team my request

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): please help me
  • Contains signature (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gamaer Raj

79302286

Date: 2024-12-23 06:13:55
Score: 1.5
Natty:
Report link

So in my case, there was a new folder created in the project root. The folder name was "studio-****". Inside it was a new .env.local file.

It had the environment variables in a different format with "" around the variables: NEXT_PUBLIC_SANITY_PROJECT_ID="********" NEXT_PUBLIC_SANITY_DATASET="production"

I copied these variables to the .env.local file in the root folder and my app worked immediately.

Reasons:
  • No code block (0.5):
  • Filler text (0.5): ********
  • Low reputation (0.5):
Posted by: Laban Bwire

79302282

Date: 2024-12-23 06:07:54
Score: 1.5
Natty:
Report link

the only solution is you should get you wallet synchronized on the decentralized manual DApp network so it can safeguard your wallet from being compromised and as well help you restore all DApps data bugs you might be experiencing such high gas fees and swapping error or missing transactions

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user3556887

79302278

Date: 2024-12-23 06:06:53
Score: 2
Natty:
Report link

It references the 3rd Number From the nearest 2 Decimal Places.

Math.Round(number, neareast)

number is the number

nearest is the decimal place being rounded

(nearest + 1) is what determines if it rounds up or down

Any (nearest + 1) thats greater than 5 rounds (nearest) up by 1

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

79302275

Date: 2024-12-23 06:05:53
Score: 1.5
Natty:
Report link

There's no public API unfortunately and in addition they locked it only to the system apps by requiring some extra permissions, you can check more here: https://www.reddit.com/r/oneplus/comments/1fcwytz/comment/lyadtht/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

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

79302270

Date: 2024-12-23 06:02:51
Score: 8 🚩
Natty: 6
Report link

anyone can help me? how i can automate test selenium with python when selector hub says this element is not findable by selenium.... eg: open amazon.in > reach to search option > then click on All Category available on the left side of search button and select one option available in list through Selenium with Python.

Is this we can test or doable through selenium?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): anyone can help me
  • RegEx Blacklisted phrase (0.5): anyone can help
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: ranvir sharma

79302256

Date: 2024-12-23 05:54:49
Score: 12 🚩
Natty: 6.5
Report link

I am having same issue. Are you able to solve it? If yes, can you explain the wayaround?

Reasons:
  • Blacklisted phrase (1): you able to solve
  • RegEx Blacklisted phrase (2.5): can you explain
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having same issue
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Sharif Himu

79302254

Date: 2024-12-23 05:52:48
Score: 3
Natty:
Report link

It will get infinite response because you are returning employeeDto, employeeDto has departmentDto and again departmentDto has employeeDtoList and so on this is going in infinte loop, you have only used JsonIgnore in entities not on dtos.and you are returning dto so You have to use @JsnoIgnore on Dto also.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @JsnoIgnore
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: kush parsaniya

79302245

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

"Debugging Google Play Game Services can be tricky, especially when extending activities across multiple classes. Ensure proper API key setup in the console and double-check your SHA1 configuration. For a seamless gaming experience, try the 3 Patti Blue APK,https://3pattiblueapk.pk/ offering effortless integration and a world of fun card gaming!"

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

79302236

Date: 2024-12-23 05:39:46
Score: 3
Natty:
Report link

I have fixed using this command :

cd android

./gradlew --stop

./gradlew assembleRelease

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

79302235

Date: 2024-12-23 05:37:45
Score: 3
Natty:
Report link

latest war

java 21

apache-tomcat-10.1.34

export the paths properly.

worked.

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

79302228

Date: 2024-12-23 05:31:44
Score: 1
Natty:
Report link

ls -l /var/log/syslog* -rw-r----- 1 root adm 888238 Aug 25 12:02 /var/log/syslog -rw-r----- 1 root adm 1438588 Aug 25 00:05 /var/log/syslog.1 -rw-r----- 1 root adm 95161 Aug 24 00:07 /var/log/syslog.2.gz -rw-r----- 1 root adm 103829 Aug 23 00:08 /var/log/syslog.3.gz -rw-r----- 1 root adm 82679 Aug 22 00:06 /var/log/syslog.4.gz -rw-r----- 1 root adm 270313 Aug 21 00:10 /var/log/syslog.5.gz -rw-r----- 1 root adm 110724 Aug 20 00:09 /var/log/syslog.6.gz -rw-r----- 1 root adm 178880 Aug 19 00:08 /var/log/syslog.7.gz

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

79302215

Date: 2024-12-23 05:22:43
Score: 1.5
Natty:
Report link

An update on @Crowman 's answer:

package utils

import "sync"

type KeyedMutex struct {
    mutexes sync.Map // Zero value is empty and ready for use
}

func (m *KeyedMutex) Lock(key string) func() {
    value, _ := m.mutexes.LoadOrStore(key, &sync.Mutex{})
    mtx := value.(*sync.Mutex)
    mtx.Lock()

    return func() {
        mtx.Unlock()
        m.mutexes.Delete(key)
    }
}

func NewLock() KeyedMutex {
    return KeyedMutex{}
}

just adding a key-removing code, hope it will be helpful.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Crowman
  • Low reputation (1):
Posted by: user27745807

79302212

Date: 2024-12-23 05:19:42
Score: 3.5
Natty:
Report link

The webpage at http://sksorip/ could not be loaded because

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

79302211

Date: 2024-12-23 05:18:41
Score: 4
Natty:
Report link

https://discord.com/developers/docs/resources/voice

request_to_speak_timestamp

Compare 2 times with the API Reference. That should help.

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

79302209

Date: 2024-12-23 05:18:41
Score: 1.5
Natty:
Report link

Here are two queries using a UNION or UNION ALL

/* Combine Process */
SELECT Fld1, Fld2, Fld3, Fld4, NULL AS Late
FROM Table01
WHERE xDate = CONVERT(date, '20240101', 112)

UNION ALL

SELECT Fld1, Fld2, Fld3, Fld4, 1 AS Late
FROM Table01
WHERE xDate < CONVERT(date, '20241201', 112);

Output:

enter image description here

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

79302208

Date: 2024-12-23 05:17:41
Score: 1.5
Natty:
Report link

If you set up the key event listener code like me, but it doesn't work, please check if your input type is search. Like this:

<input type="search" > </input>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kei cat

79302207

Date: 2024-12-23 05:16:41
Score: 1
Natty:
Report link

I think embedded primary key (TempPrimaryKey) should implements Serializable interface.

@Setter
@Getter
@Embeddable
public class TempPrimaryKey implements Serilizable {
 // code
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: kush parsaniya

79302190

Date: 2024-12-23 05:09:40
Score: 0.5
Natty:
Report link

Although one might expect the following base-64 encoding and decoding to cancel, the following code appears to work. (The code is a slightly modified version from this page.)

...
    encoded_audio = base64.b64encode(open(audio_path, "rb").read()).decode("utf-8")
    mime_type = "audio/mpeg"
    audio_content = Part.from_data(
        data=base64.b64decode(encoded_audio), mime_type=mime_type
    )

    contents = [audio_content, prompt]
...
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Bill Bradley

79302181

Date: 2024-12-23 05:07:40
Score: 1.5
Natty:
Report link

For me, the issue was being inside a Cargo project. rust-analyzer works fine when inside a project, but not on files outside -- I would try a Cargo new project_name and try editing something there.

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

79302173

Date: 2024-12-23 05:05:39
Score: 1.5
Natty:
Report link

Save your time, use CONCAT_WS

SELECT
  SUM(CHAR_LENGTH(CONCAT_WS('', column1, column2, column3, column4))) as bsize
FROM table1
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jarod Denison

79302172

Date: 2024-12-23 05:04:39
Score: 2.5
Natty:
Report link

Found it.

Changed shebang line in cgi script and it worked. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): it worked
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Saran Brar

79302153

Date: 2024-12-23 04:45:34
Score: 0.5
Natty:
Report link

Try this. Its probably the Provider is not there.

<nuxt-img

  provider = "ipx"

  src="/56.jpg" 
  width="300" 
  height="200" 
  alt="Ejemplo de imagen" 
  format="webp"
/>  
Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jay Evans

79302151

Date: 2024-12-23 04:44:34
Score: 1
Natty:
Report link

From the documentation, the limit on the length of the Custom Search API request should be within 2048 characters.

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

79302147

Date: 2024-12-23 04:43:34
Score: 2
Natty:
Report link

Try importing like this

import { IncomingForm } from "formidable";

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

79302143

Date: 2024-12-23 04:40:33
Score: 1
Natty:
Report link

Just call your TextView and clear the string before you insert your own string.

textView.text.removeAll(keepingCapacity: false)

This line of code will remove the string in the text view. I just used this to clear a textView prior to repopulating with updated data from a databse.

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

79302138

Date: 2024-12-23 04:36:32
Score: 3.5
Natty:
Report link

Right click on the drive, select Properties. Go to security, And allow all in the permissions for everyone

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

79302130

Date: 2024-12-23 04:30:31
Score: 1.5
Natty:
Report link

Error was encountered while creating environment variables in the bash script. Where only one line had to be corrected to avoid using encoding the already encoded key.

PRIVATE_KEY=$(sed '1d;$d' refresh.key | tr -d '\n')
PUBLIC_KEY=$(sed '1d;$d' refresh.pub | tr -d '\n')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rogelio Olarte

79302126

Date: 2024-12-23 04:25:30
Score: 0.5
Natty:
Report link

For me, the error I got was coming from some generated gRPC code:

ambiguous import: found package google.golang.org/genproto/googleapis/rpc/status in multiple modules

I had to delete the package from ~/go/pkg and then go get:

sudo rm -rf ~/go/pkg/mod/google.golang.org/genproto/googleapis
go get google.golang.org/genproto

I had to sudo the rm -rf because the file permissions were whack. Maybe the root cause? Not sure.

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: KevBurnsJr

79302124

Date: 2024-12-23 04:22:28
Score: 6.5 🚩
Natty:
Report link

I also am having the exact same problem - I am following to see the responses. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): having the exact same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mike Giles

79302121

Date: 2024-12-23 04:21:28
Score: 3.5
Natty:
Report link

Actually the logging of payload in CommonsRequestLoggingFilter doesn't work.

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

79302115

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

To make a logo smaller in Photoshop, first, open the logo file and ensure the logo is on its own layer. If it’s part of a flattened image, you may need to use selection tools like the Magic Wand or Lasso Tool to isolate it. Next, select the logo layer, then go to Edit > Free Transform (or press Ctrl+T on Windows or Cmd+T on Mac) to activate the transformation controls. Drag one of the corner handles inward while holding the Shift key to maintain the logo's proportions as you resize it. Once you’re happy with the new size, press Enter or Return to apply the transformation. Finally, save your work by choosing File > Save As or File > Export, depending on your desired output format.

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

79302109

Date: 2024-12-23 04:07:25
Score: 2.5
Natty:
Report link

np.array = Converts existing sequences into arrays np.zeros = Creates an array filled with zeros

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

79302102

Date: 2024-12-23 04:02:25
Score: 1
Natty:
Report link

use script links at the bottom of the content like this,

<body>
    <h1>VueApp</h1>
    
    <div id="app">
        <p>{{ title }}</p>
    </div>
    
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script src="vue.js"></script>
</body>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Samiul Islam

79302093

Date: 2024-12-23 03:57:23
Score: 4
Natty:
Report link

you can read doc: https://aws.amazon.com/blogs/machine-learning/create-amazon-sagemaker-projects-using-third-party-source-control-and-jenkins/

I added tag sagemaker value True -> connect successfully
You can see the instructions in the image below.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Thα»‹nh Đỗ

79302091

Date: 2024-12-23 03:55:23
Score: 1
Natty:
Report link

Its a very good idea to use a 2D Shader with Black Materials and Textures that render in front of your game. Seperate from the Shader you use to render your game scene.

Steps:

  1. Get the windows height and width variables:

GLFWVidMode vidmode = glfwGetVideoMode(glfwGetPrimaryMonitor());

float screenwidth = vidmode.width(); float screenheight = vidmode.height();

  1. Make a 2D Shader seperate from your InGame Vertex Shader

  2. Convert the screen coordinates to 2D OpenGL Coordinates

  3. With the 2D Shader. Make 2 Black Rectangles. Compared to the width and height of the screen

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

79302090

Date: 2024-12-23 03:53:22
Score: 1.5
Natty:
Report link

One problem here is that you are assigning vitest methods to const variables of the same name.

Something about your code suggests Python experience to me.

JavaScript is different but similar:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment

You don't need to assign some of those vitest methods to anything, and it is my suspicion that this misconception has created your testing issues.

instead, assign the render() call to a variable, and access that variable using vitest's methods.

Well illustrated here: https://fullstackopen.com/en/part5/testing_react_apps

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jay Harrison Crawford

79302089

Date: 2024-12-23 03:51:21
Score: 0.5
Natty:
Report link

This is Mohit replying on behalf of Vinay

sudo varnishlog -d -g request -q "Timestamp:Start1 == 1734552942"

I Tried searching for different timestamps with above command but could not get any output, will try to search on different paramaters and update again

sudo varnishlog -d -g request -q "RespStatus == 0"

This command is not giving any output

sudo varnishstat -1

Please find output at this link

sudo varnishadm param.show

 accept_filter                 -
    acceptor_sleep_decay          0.9 (default)
    acceptor_sleep_incr           0.000 [seconds] (default)
    acceptor_sleep_max            0.050 [seconds] (default)
    auto_restart                  on [bool] (default)
    backend_idle_timeout          300.000 [seconds]
    backend_local_error_holddown  10.000 [seconds] (default)
    backend_remote_error_holddown 0.250 [seconds] (default)
    ban_cutoff                    0 [bans] (default)
    ban_dups                      on [bool] (default)
    ban_lurker_age                60.000 [seconds] (default)
    ban_lurker_batch              1000 (default)
    ban_lurker_holdoff            0.010 [seconds] (default)
    ban_lurker_sleep              0.010 [seconds] (default)
    between_bytes_timeout         60.000 [seconds] (default)
    cc_command                    exec gcc -std=gnu11 -std=gnu11 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -Wall -Werror -Wno-error=unused-result -pthread -fpic -shared -Wl,-x -o %o %s (default)
    cli_limit                     48k [bytes] (default)
    cli_timeout                   60.000 [seconds] (default)
    clock_skew                    10 [seconds] (default)
    clock_step                    1.000 [seconds] (default)
    connect_timeout               3.500 [seconds] (default)
    critbit_cooloff               180.000 [seconds] (default)
    debug                         none (default)
    default_grace                 10.000 [seconds] (default)
    default_keep                  0.000 [seconds] (default)
    default_ttl                   120.000 [seconds] (default)
    esi_iovs                      10 [struct iovec] (default)
    feature                       none (default)
    fetch_chunksize               16k [bytes] (default)
    fetch_maxchunksize            0.25G [bytes] (default)
    first_byte_timeout            60.000 [seconds] (default)
    gzip_buffer                   32k [bytes] (default)
    gzip_level                    6 (default)
    gzip_memlevel                 8 (default)
    h2_header_table_size          4k [bytes] (default)
    h2_initial_window_size        65535b [bytes] (default)
    h2_max_concurrent_streams     100 [streams] (default)
    h2_max_frame_size             16k [bytes] (default)
    h2_max_header_list_size       2147483647b [bytes] (default)
    h2_rx_window_increment        1M [bytes] (default)
    h2_rx_window_low_water        10M [bytes] (default)
    http_gzip_support             on [bool] (default)
    http_max_hdr                  64 [header lines] (default)
    http_range_support            on [bool] (default)
    http_req_hdr_len              8k [bytes] (default)
    http_req_size                 32k [bytes] (default)
    http_resp_hdr_len             8k [bytes] (default)
    http_resp_size                32k [bytes] (default)
    idle_send_timeout             60.000 [seconds] (default)
    listen_depth                  1024 [connections] (default)
    lru_interval                  2.000 [seconds] (default)
    max_esi_depth                 5 [levels] (default)
    max_restarts                  4 [restarts] (default)
    max_retries                   4 [retries] (default)
    max_vcl                       100 (default)
    max_vcl_handling              1 (default)
    nuke_limit                    50 [allocations] (default)
    pcre_match_limit              10000 (default)
    pcre_match_limit_recursion    20 (default)
    ping_interval                 3 [seconds] (default)
    pipe_timeout                  60.000 [seconds] (default)
    pool_req                      10,100,10 (default)
    pool_sess                     10,100,10 (default)
    pool_vbo                      10,100,10 (default)
    prefer_ipv6                   off [bool] (default)
    rush_exponent                 3 [requests per request] (default)
    send_timeout                  600.000 [seconds] (default)
    shm_reclen                    255b [bytes] (default)
    shortlived                    10.000 [seconds] (default)
    sigsegv_handler               on [bool] (default)
    syslog_cli_traffic            on [bool] (default)
    tcp_fastopen                  off [bool] (default)
    tcp_keepalive_intvl           75.000 [seconds] (default)
    tcp_keepalive_probes          9 [probes] (default)
    tcp_keepalive_time            7200.000 [seconds] (default)
    thread_pool_add_delay         0.000 [seconds] (default)
    thread_pool_destroy_delay     1.000 [seconds] (default)
    thread_pool_fail_delay        0.200 [seconds] (default)
    thread_pool_max               3000 [threads]
    thread_pool_min               150 [threads]
    thread_pool_reserve           0 [threads] (default)
    thread_pool_stack             96k [bytes]
    thread_pool_timeout           300.000 [seconds] (default)
    thread_pool_watchdog          60.000 [seconds] (default)
    thread_pools                  4 [pools]
    thread_queue_limit            20 (default)
    thread_stats_rate             10 [requests] (default)
    timeout_idle                  70.000 [seconds]
    timeout_linger                0.050 [seconds] (default)
    vcc_allow_inline_c            off [bool] (default)
    vcc_err_unref                 on [bool] (default)
    vcc_unsafe_path               on [bool] (default)
    vcl_cooldown                  600.000 [seconds] (default)
    vcl_dir                       /etc/varnish:/usr/share/varnish/vcl (default)
    vcl_path                      /etc/varnish:/usr/share/varnish/vcl (default)
    vmod_dir                      /usr/lib64/varnish/vmods (default)
    vmod_path                     /usr/lib64/varnish/vmods (default)
    vsl_buffer                    4k [bytes] (default)
    vsl_mask                      -ObjProtocol,-ObjStatus,-ObjReason,-ObjHeader,-VCL_trace,-WorkThread,-Hash,-VfpAcct,-H2RxHdr,-H2RxBody,-H2TxHdr,-H2TxBody (default)
    vsl_reclen                    255b [bytes] (default)
    vsl_space                     4000M [bytes]
    vsm_free_cooldown             60.000 [seconds] (default)
    vsm_space                     1M [bytes] (default)
    workspace_backend             64k [bytes] (default)
    workspace_client              64k [bytes] (default)
    workspace_session             0.50k [bytes] (default)
    workspace_thread              2k [bytes] (default)
Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohit Srivastava

79302083

Date: 2024-12-23 03:48:20
Score: 5
Natty:
Report link

How make some money πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° πŸ’° Help Cody Roddy is guy ass fuck

Reasons:
  • Blacklisted phrase (2): fuck
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): How
  • Low reputation (1):
Posted by: Austin brcoo