79200252

Date: 2024-11-18 14:13:31
Score: 4.5
Natty:
Report link

Answer provided by @rioV8 in comments - File Group extension allows creating groups of files that can be opened (& kept opened) simultaneously.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @rioV8
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: domgunewardena

79200245

Date: 2024-11-18 14:10:30
Score: 2
Natty:
Report link

I experienced this same error when my URL wasn't setup properly. Seems like a no brainer, but worth ensuring the URL you are constructing and passing is correct/what you want.

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

79200241

Date: 2024-11-18 14:08:29
Score: 4.5
Natty:
Report link

We have a module on deep learning methods for anomaly detection in our YouTube lecture series. May it is helpful.

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

79200236

Date: 2024-11-18 14:07:29
Score: 3
Natty:
Report link

I'm building a Terraform module for Beanstalk and what happens is that you must create an EC2 Instance Profile and attach it to your environment.

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

79200225

Date: 2024-11-18 14:05:28
Score: 2
Natty:
Report link

One issue is that your request mapping is missing the '/':

@RequestMapping("json1") -> @RequestMapping("/json1")

@RequestMapping("user") -> @RequestMapping("/user")

It could help :)

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

79200223

Date: 2024-11-18 14:05:28
Score: 1
Natty:
Report link

You should use MultipleHiddenInput instead of HiddenInput.

from django.forms import MultipleHiddenInput

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

79200218

Date: 2024-11-18 14:04:28
Score: 1.5
Natty:
Report link

As @Steve Kirsch mentioned, you need to add -d xdebug.start_with_request=1 like this:

php -d xdebug.start_with_request=1 script.php
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Steve
Posted by: Lenny4

79200217

Date: 2024-11-18 14:03:28
Score: 1.5
Natty:
Report link

Because you are converting it to HumanMessage in the return statement. If you want it to be AIMessage, just do the following as the return statement.

return {"messages" : result}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alston Aranha

79200203

Date: 2024-11-18 13:59:26
Score: 3.5
Natty:
Report link

Finally, after a lot of different tests, I realized that the problem was with Django. I had version 5.1.3 installed, and this issue persisted without any solution. However, after uninstalling Django and installing version 4.2, the problem got resolved. This bug should be reported to Django for them to fix it.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ahmadreza navaie

79200202

Date: 2024-11-18 13:58:26
Score: 1
Natty:
Report link

I've already found my answer, it's because my for loop was referencing the original static array and not the reactive one I've cloned.

So the v-for="(faq, index) in faqs" should have been: v-for="(faq, index) in filteredFaqs"

I knew it would have been something simple I just missed.

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

79200189

Date: 2024-11-18 13:54:25
Score: 1.5
Natty:
Report link

Nginx achieves zero TIME_WAIT sockets under load testing on Windows by leveraging connection reuse and the "reuseport" feature, which enables multiple worker processes to bind to the same port, distributing load efficiently. Additionally, Nginx uses non-blocking I/O, optimized connection handling, and proper timeout settings to minimize socket exhaustion. By avoiding unnecessary closures and keeping connections alive with keep-alive mechanisms, it reduces the accumulation of TIME_WAIT states under heavy load.

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

79200176

Date: 2024-11-18 13:52:24
Score: 3.5
Natty:
Report link

Looks like problem described here:

https://medium.com/@t.camin/apples-ui-test-gotchas-uitableviewcontrollers-52a00ac2a8d8

In short:

the tableView(_:willDisplay:forRowAt:) is being called repeatedly while running UI Tests, even for offscreen cells

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Artem

79200167

Date: 2024-11-18 13:49:24
Score: 1.5
Natty:
Report link

Rewriting sql generation from SELECT 'query' INTO QUERYVAR FROM DUAL; to QUERYVAR := 'query' did the trick.

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

79200160

Date: 2024-11-18 13:47:23
Score: 0.5
Natty:
Report link

Azure - assign Hibernate-Only role to a single user in Azure

For this you need to create a custom role for VM hibernate.

Please refer this Msdoc for better understanding about how to create a custom role in azure.

Follow the below steps to create the custom role in your subscription.

enter image description here

enter image description here

enter image description here

enter image description here

After creating the custom role, you can add this role to your specific resource.

Here I've added this role to a resource group.

enter image description here

enter image description here

click on select member and add the required user.

enter image description here

enter image description here

This is how you can limit the specific user's access to only starting, stopping, and hibernating the VM without giving them full administrative rights.

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

79200156

Date: 2024-11-18 13:46:23
Score: 2
Natty:
Report link

I´ve found how to solve it:

$scope.updateDatePicker = function () {
  setTimeout(function () {
    $("#date_entrega").datepicker("update");
    $("#date_devolucion").datepicker("update");
  }, 0);
};

Then calling it at the end of getDaysClosedFromLocation!

I don't know if it's a good solution, but it solved my problem!

Reasons:
  • Blacklisted phrase (1): how to solve
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Zenin0

79200154

Date: 2024-11-18 13:46:23
Score: 0.5
Natty:
Report link

Unfortunately, the favicon color cannot be dynamically changed using CSS classes or styles applied in the HTML because the browser renders the favicon as a standalone image resource, separate from the DOM. To change the color of a FontAwesome icon used as a favicon, you need to modify the SVG file itself.

Most CDNs, including FontAwesome, serve their SVGs in a default black color or without color. They don’t provide dynamic color customization. However, you can: Search for services that allow color customization in SVGs dynamically (though these are rare and usually not free). Tools like SVGOMG or similar SVG editors let you upload and edit SVG files.

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

79200149

Date: 2024-11-18 13:44:22
Score: 1
Natty:
Report link
a = np.array([1,2,3,4,5])
mean_a = (a[1:] + a[:-1]) / 2

output:

array([1.5, 2.5, 3.5, 4.5])
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: IzaeDA

79200147

Date: 2024-11-18 13:44:22
Score: 2
Natty:
Report link

You can also use Opentype.js Glyph Inspector or Font Inspector online.

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

79200136

Date: 2024-11-18 13:40:21
Score: 2
Natty:
Report link

Filament uses a "tenant-aware" approach to make sure each tenant (in your case, an organization) only sees and manages their own records. To achieve this, Filament expects two relationships to be defined:

An "ownership" relationship on the resource model (e.g., users on Organization). This tells Filament who owns this record. A relationship on the tenant model (e.g., organizations on User). This links the tenant to the resource. For Filament to work smoothly, these relationships must exist and must be set up correctly in both directions.

Steps to Fix Your Problem

  1. Check the Ownership Relationship on the Organization Model In your Organization model, you already have this relationship:

    public function users(): BelongsToMany { return $this->belongsToMany(User::class); }

This is correct, and Filament should use it as the "ownership" relationship.

  1. Check the Tenant Relationship on the User Model Your User model should define a corresponding relationship back to the Organization. For example:

    public function organizations(): BelongsToMany { return $this->belongsToMany(Organization::class); }

This relationship allows Filament to understand which organizations a user belongs to.

  1. Add Scoping Logic to getEloquentQuery You need to explicitly scope the OrganizationResource to show only the records related to the current tenant. Here's how to do it:

    public static function getEloquentQuery(): Builder { // If the user belongs to an admin organization, show all organizations $isAdmin = auth()->user()?->organizations()->where('is_admin', true)->exists();

     if ($isAdmin) {
         return parent::getEloquentQuery();
     }
    
     // Otherwise, scope to organizations the user is part of
     return parent::getEloquentQuery()
         ->whereHas('users', function ($query) {
             $query->where('users.id', auth()->id());
         });
    

    }

This ensures that regular users only see the organizations they belong to, while admins see everything.

  1. Tenant Field in Other Models For Filament to handle tenant-aware records like Media, Game, or others, they need a field that identifies their tenant (e.g., organization_id). Without this, Filament has no way of knowing which tenant the record belongs to.

Example:

Add an organization_id column to models like Media or Game. Define relationships back to Organization:

public function organization(): BelongsTo
{
    return $this->belongsTo(Organization::class);
}

Then, scope their queries accordingly, similar to what we did in OrganizationResource.

  1. Set the Tenant in the Panel Your AdminPanelProvider is almost correct. Ensure you’ve defined the tenant method to use the Organization model. This helps Filament apply the tenant scope consistently:

    ->tenant(Organization::class, slugAttribute: 'slug')

This line ensures Filament knows how to resolve the active tenant.

  1. Testing To verify that everything works:

Test as a regular user: Log in as a user belonging to a single organization. Check if only their organization is visible. Test as an admin user: Log in as a user with access to the admin organization. Check if they see all organizations.

Why Your Current Setup Isn’t Working? -The missing piece is that Filament doesn’t know how to scope data because:

1.The relationships between User and Organization are not clearly defined for Filament. 2.Tenant scoping isn’t explicitly applied in getEloquentQuery.

Once these are corrected, Filament will automatically filter data based on the current tenant.

Every tenant-aware model must:

1.Have a tenant field (organization_id, team_id, etc.). 2.Define relationships that link the tenant and resource model. 3.Use getEloquentQuery to scope data when necessary.

I hope this clarifies everything! Let me know if you need more guidance. 😊

Reasons:
  • Blacklisted phrase (1): This link
  • Whitelisted phrase (-1): in your case
  • RegEx Blacklisted phrase (2): Working?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Apostol Eusebiu

79200128

Date: 2024-11-18 13:38:20
Score: 2.5
Natty:
Report link

As of the latest GitLens release, "Stashes" seems to have been moved under the GitLens menu.

You can effectively restore it by filtering to just the Stashes sub-view.

screenshot of new location

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

79200127

Date: 2024-11-18 13:38:20
Score: 2
Natty:
Report link

<center>Your Code Here</center>

<hr align="center" width="50%">

30990

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

79200118

Date: 2024-11-18 13:35:20
Score: 9
Natty: 7.5
Report link

I would like to control a motor with the TMC2209 and a STM32. can you help me with your code ?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can you help me
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Josh

79200102

Date: 2024-11-18 13:31:18
Score: 1
Natty:
Report link

The overall approach looks fine and is in the right direction and can be refined based on the further business requirement.

If there is a specific time based on which the data in the tables needs to be deleted, you may review the following article: https://community.snowflake.com/s/article/How-to-delete-files-older-than-a-specific-date-in-a-Snowflake-stage

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

79200100

Date: 2024-11-18 13:30:18
Score: 4.5
Natty: 4
Report link

You could use https://github.com/aeimer/clockify-openapi-spec.

Disclaimer: I'm the maintainer of the repo.

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

79200095

Date: 2024-11-18 13:29:17
Score: 3.5
Natty:
Report link

What builder are you using?

In case you're using Vite please check this Integrating CKEditor 5 from source using Vite

And here is for Webpack Integrating CKEditor 5 from source using Webpack

This configs handles loading the SVG icons and styles from the packages and the theme package.

Reasons:
  • Blacklisted phrase (1): please check this
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Gîrbu Nicolae

79200085

Date: 2024-11-18 13:27:17
Score: 2
Natty:
Report link

Protected View is not something you can avoid. It is a safety feature built into Excel and other Office products, driven by a Windows-level feature called Mark of the Web. Every Excel file downloaded from the Internet would get the same treatment, irrespective of the web framework technology used and how the Excel file was produced.

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

79200082

Date: 2024-11-18 13:26:16
Score: 1.5
Natty:
Report link

You can simply use this env variable set in the GitHub workflow

PW_TEST_HTML_REPORT_OPEN='never'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Guda Pavaneeshwar Reddy

79200077

Date: 2024-11-18 13:25:16
Score: 3.5
Natty:
Report link

A Windows restart solved this for me.

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

79200072

Date: 2024-11-18 13:23:15
Score: 2.5
Natty:
Report link

CREATE TABLE Teradatapoint.students ( roll_no INT GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 MINVALUE 0 MAXVALUE 99999 NO CYCLE), first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL, gender CHAR(1) NOT NULL );

as far as i know this is the main way you can follwo this documentation for more

https://www.teradatapoint.com/teradata/teradata-identity-column.htm

Reasons:
  • Blacklisted phrase (1): this document
  • No code block (0.5):
  • Low reputation (1):
Posted by: moataz samir

79200066

Date: 2024-11-18 13:22:15
Score: 1
Natty:
Report link

FYI: plotly-express has just merged generic DataFrame support (via narwhals), meaning that Polars will be natively supported, so no more transforms to Pandas under the hood (and, as you might suspect, this comes with a nice plotting performance boost when using a Polars frame).

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

79200052

Date: 2024-11-18 13:17:14
Score: 2
Natty:
Report link

I think the chatgpt thing is a good draft, maybe you have to do some improvements to do.

With node.js you can create a backend server, that gives a rest-api for communicating with your db. Phones can call this rest-api to update the counter and your big screen can fetch in a given intervall, from your backend server to give a live-update. (This concept is called AJAX) Make sure to track session IDs and maybe some sort of uuid to ensure every phone can give only one vote on each decision and to relate the phones to the correct big screen. (If you want that multiple games can be done simultaniously)

Express is just a node.js Framework so you haven't to write that much code on your own.


If something is unclear do not hesitate do ask, I will update the answer.

But please keep in mind that SO is not the place to give you hundreds line of code, so you do not have to write them at your own. If you have a problem with your code, make a new question, post a minimal example, that reproduce the error. Describe what it should do, what you have tried to solve it, etc.

https://stackoverflow.com/help/how-to-ask

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): stackoverflow.com/help
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: user23307932

79200046

Date: 2024-11-18 13:15:14
Score: 3
Natty:
Report link

For me the problem was solved by changing the XCode Run-Scheme from Release to Debug

Change XCode Scheme

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

79200044

Date: 2024-11-18 13:15:14
Score: 1
Natty:
Report link

I found this:

"App Store Connect Requirements

To provide functionality within the Facebook iOS SDK, we may receive and process certain contact, location, identifier, and device information associated with Facebook users and their use of your application. The information we receive depends on what SDK features third party applications use. Please visit the Facebook for Developers blogpost for more information about these SDK features."

https://developers.facebook.com/docs/ios/

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

79200037

Date: 2024-11-18 13:10:13
Score: 3
Natty:
Report link

You can persist the server side decision using server side cookies.

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

79200031

Date: 2024-11-18 13:08:12
Score: 0.5
Natty:
Report link

enter image description here

Formula in B2:

=--REGEXEXTRACT(A2:A4,"\d+$")
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • High reputation (-2):
Posted by: JvdV

79200026

Date: 2024-11-18 13:08:12
Score: 1.5
Natty:
Report link
add_filter('wp_dropdown_users_args', function ($query_args, $r) { if (current_user_can('administrator')) { unset($query_args['who']); } return $query_args; }, 10, 2);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Nilesh

79200022

Date: 2024-11-18 13:07:12
Score: 0.5
Natty:
Report link

Solved! Attached the sendEmail function to an event and used e.preventDefault() to prevent the default form submission behavior:

emailjs.init({ publicKey: '*' }); 

const sendEmail = (e) => { e.preventDefault();

var emailData = {
    name: 'Konstantinos Iakovou | Web developer',
    notes: 'Check this out!',
};

emailjs.send('service_*', 'template_*', emailData).then(
    (response) => {
        alert('Message successfully sent!');
    },
    (error) => {
        console.error('Failed to send the message:', error);
        alert(`Failed to send the message: ${error.text}`);
    },
);

};

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

79200009

Date: 2024-11-18 13:02:10
Score: 0.5
Natty:
Report link

   $('.import-btn').on('click', function() {
            $.ajax({
                url: '<?php echo admin_url('admin-ajax.php'); ?>',
                type: "POST",
                data: {
                    action: 'import_data'
                },
                success: function(data) {
                    if (data !== 0) {
                        Swal.fire({
                            icon: "success",
                            title: "Imported data",
                            text: "Thankyou for importing this file",
                        });

                    } else {
                        Swal.fire({
                            icon: "error",
                            title: "Oops...",
                            text: "Something went wrong!",
                        });
                    }
                },
                error: function() {
                    alert('Error');
                }
            });
        });
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
add_action('wp_ajax_nopriv_import_data', 'import_data');
add_action('wp_ajax_import_data', 'import_data');
function import_data()
{

    function upload_image_from_url($thumbnail_url)
    {

        $image_name = basename($thumbnail_url);
        $image_data = file_get_contents($thumbnail_url);
        $upload_dir = wp_upload_dir();
        $image_path = $upload_dir['path'] . '/' . $image_name;
        if ($image_data === false) {
            return new WP_Error('image_fetch_failed', 'Failed to fetch image data');
        }

        $image_saved = file_put_contents($image_path, $image_data);
        if ($image_saved == FALSE) {
            return new WP_Error('Upload failed', 'Failed to upload file');
        }
        return $image_path;
    }

    function insert_image_to_wp_posts($image_path, $post_id)
    {
        $upload_dir = wp_upload_dir();
        $image_url = str_replace($upload_dir['path'], $upload_dir['url'], $image_path);
        $file_info = array(
            'guid' => $image_url,
            'post_mime_type' => mime_content_type($image_path),
            'post_title' => sanitize_file_name(pathinfo($image_path, PATHINFO_FILENAME)),
            'post_status' => 'inherit',
            'post_parent' => $post_id,
        );
        $attachment_id = wp_insert_attachment($file_info, $image_path, $post_id);
        require_once(ABSPATH . 'wp-admin/includes/image.php');
        $attachment_metadata = wp_generate_attachment_metadata($attachment_id, $image_path);
        wp_update_attachment_metadata($attachment_id, $attachment_metadata);
        return $attachment_id;
    }

    $csvFile = get_template_directory() . '/movie_data.csv';


    if (!file_exists($csvFile)) {
        echo 'CSV file not found';
        return;
    }

    if (($handle = fopen($csvFile, 'r')) !== FALSE) {
        $header = fgetcsv($handle);
        while (($data = fgetcsv($handle)) !== FALSE) {
            $post_title = isset($data[1]) ? $data[1] : '';
            $post_date = isset($data[2]) ? $data[2] : '';
            $category = isset($data[3]) ? $data[3] : '';
            $thumbnail_url = isset($data[4]) ? $data[4] : '';
            $post_content = "Movies";
            // Creating post
            $post_data = array(
                'post_title'    => $post_title,
                'post_content'  => $post_content,
                'post_status'   => 'publish',
                'post_type'     => 'movie',
                'post_date'     => $post_date,
            );

            if ($post_data):
                $post_id = wp_insert_post($post_data);
                update_post_meta($post_id, 'category', $category);
                if ($thumbnail_url) {
                    $image_path = upload_image_from_url($thumbnail_url);
                    if (!is_wp_error($image_path)) {
                        $attachment_id = insert_image_to_wp_posts($image_path, $post_id);
                        if (!is_wp_error($attachment_id)) {
                            update_post_meta($post_id, "_thumbnail_id", $attachment_id);
                        }
                    } else {
                        echo "Error while inserting image into WP Posts";
                    }
                } else {
                    error_log('thumbnail url not generated');
                }
            endif;
        }
        fclose($handle);
        echo '1'; // Success
    } else {
        echo '0'; // Failure opening the file
    }
}

Reasons:
  • Blacklisted phrase (1): Thankyou
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user28347249

79200006

Date: 2024-11-18 13:01:10
Score: 2
Natty:
Report link

use this gem.

      https://github.com/jclusso/omniauth-linkedin-openid

this is not working properly

      https://github.com/decioferreira/omniauth-linkedin-oauth2
Reasons:
  • Blacklisted phrase (0.5): not working properly
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kashif tufail

79199993

Date: 2024-11-18 12:58:10
Score: 1.5
Natty:
Report link

In MSEdge, open the devtools console and type "importer(video_id)". Replace video_id by your video id. All streams links will appears under the iframe. You must have CORS unblocked. For this download CORS unblock extension at this link :

https://microsoftedge.microsoft.com/addons/detail/cors-unblock/hkjklmhkbkdhlgnnfbbcihcajofmjgbh

In fact when you fetch your youtube adress with the console opened, www.youtube.com is redirected to m.youtube.com, the android application. You can access m.youtube.com other ways. Then click on the link of your choose to display it in the iframe, or copy the link and paste it in your browser address bar to access it in a new tab. These are not real link, just div with text content.

This is the code I have wrote.

<html>

<head>
<style>
body{background:black;}
</style>
</head>
<body>
<input type="button" style="background:black;border:gray solid 4px;border-style:outset;color:green;" onmousedown="importer(document.querySelector('#inp001').value)" value="Importer"/><input id="inp001" style="background:black;color:green;" value="V9PVRfjEBTI"/><br>
<iframe style="height:100%;width:100%;" src="https://www.youtube.com"></iframe>
<script>

async function importer(christ){const r = await fetch(`https://m.youtube.com/watch?v=${christ}`);
const t = await r.text();
const index1 = t.indexOf("jsUrl")+8;
const sub1 = t.substring(index1);
const index2 = sub1.indexOf('"');
const sub2 = sub1.substring(0,index2);
const base = `https://m.youtube.com${sub2}`;
const r2 = await fetch(base);
const t2 = await r2.text();
const index3 = t2.indexOf('a.split("");');
const sub3 = t2.substring(0,index3);
const index4 = sub3.lastIndexOf("function")-4;
const variable1 = sub3.substring(index4,index4+3);
const variable2 = t2.substring(index3+12,index3+12+2);
const index5 = t2.indexOf("var b=a.split(a");
const sub4 = t2.substring(0,index5);
const index6 = sub4.lastIndexOf("function")-4;
const variable3 = sub4.substring(index6,index6+3);
console.log(variable1,variable2,variable3);
const scr = document.createElement("script");
scr.textContent = t2.replace("})(_yt_player);",`window['var1']=eval(${variable3});window['var2']=eval(${variable1});window['var3']=eval(${variable2});})(_yt_player);`);
document.body.insertBefore(scr,document.querySelector("script"));
const doc = document.implementation.createHTMLDocument();
doc.write(t);
console.log(doc);
const arr = doc.querySelectorAll("script");
const scr2 = Array.from(arr).filter((x)=>{if(x.textContent.match("ytInitialPlayerResponse")!==null){return x}});
const scr3 = document.createElement("script");
scr3.textContent = scr2[1].textContent;
document.body.insertBefore(scr3,document.querySelectorAll("script")[1]);
const adapt = ytInitialPlayerResponse.streamingData.adaptiveFormats;
const arr2 = Array.from(adapt);
arr2.forEach((item,index)=>{
const sign = item.signatureCipher;
const para = new URLSearchParams(sign);
const s = para.get("s");
const nsig = window['var2'](s);
const url = para.get("url");
const url2 = new URL(url);
const n = url2.searchParams.get("n");
const n2 = window['var1'](n);
url2.searchParams.set("n",n2);
url2.searchParams.set("sig",nsig);
const div = document.createElement("div");
div.textContent = url2.href;
div.style.color = "green";
div.style.cursor = "grab";
console.log(url2.href);
div.addEventListener("mousedown",function(event){document.querySelector("iframe").src=event.currentTarget.textContent;event.currentTarget.style.color="blue";});
document.body.insertBefore(div,document.querySelector("script"));
const div2 = document.createElement("div");
div2.innerText = "\n\n";
div.after(div2);
});
};

</script>
</body>
</html>

This is a working infinityfreeapp.com example. Don't forget to open your Devtools console in MsEdge or WebView2.

http://leseditionslyriques.infinityfreeapp.com/Youtuber.html

Well, I have decipherised the signatureCipher in pure Javascript.

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this link
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: D'Artagnan222

79199989

Date: 2024-11-18 12:57:09
Score: 1
Natty:
Report link

The cursor StoredProcedureParameter should be of void.class and you need a resultClasses = User.class as parameter of the NamedStoredProcedureQuery.

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

79199979

Date: 2024-11-18 12:55:09
Score: 1
Natty:
Report link

That number is not the response time, your question title is incorrect.

It's the response size and it's printed by Python http-server which Django inherits. That explains why it's not documented by Django, because it's not the Django code that prints it.

You can verify that by looking at this Django module. This is the line that starts the http-server.

It inherits from Python http-server. This is the line that prints the response size.

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

79199978

Date: 2024-11-18 12:55:09
Score: 2
Natty:
Report link

Use a Bitmap object as the backing store for the graphics. Assign this Bitmap to PictureBox1.Image. Draw on this Bitmap using a Graphics object.

Since the PictureBox1.Image will now contain the drawn content, saving the PictureBox1.Image directly will resolve the issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MITHUN AADHITHYA S

79199964

Date: 2024-11-18 12:51:07
Score: 0.5
Natty:
Report link

I found the solution. I was looking up the wrong project configuration. Setting to subsystem:console works just fine.

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Der Achim

79199956

Date: 2024-11-18 12:48:07
Score: 3.5
Natty:
Report link

I had faced like this problem, and after removing top(n), the issue was resolved.

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

79199952

Date: 2024-11-18 12:47:06
Score: 1
Natty:
Report link

As it's said in https://stackoverflow.com/a/56786454 but without a real clarification, you need to also set override the scss variable $grid-breakpoints.

How to override scss variables it is described in Vuetify docs: https://vuetifyjs.com/en/features/sass-variables/#component-specific-variables

you need to create separate scss file, kind of path/to/scss/vuetify.config.scss and put your changes into it:

@use 'vuetify/settings' with (
  $grid-breakpoints: (
    'xs': 0,
    'sm': 576px,
    'md': 768px,
    'lg': 992px,
    'xl': 1200px,
    'xxl': 1400px,
  )
);

and then include it into nuxt.config.ts file (I'm using the Manual setup approach form Vuetify docs https://vuetifyjs.com/en/getting-started/installation/#manual-setup):

import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
export default defineNuxtConfig({
  //...
  build: {
    transpile: ['vuetify'],
  },
  modules: [
    (_options, nuxt) => {
      nuxt.hooks.hook('vite:extendConfig', (config) => {
        // @ts-expect-error
        config.plugins.push(vuetify({
          autoImport: true,
          styles: {
            configFile: "path/to/scss/vuetify.config.scss",
          },
        }))
      })
    },
    //...
  ],
  vite: {
    ...
  },
})
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dmytro Yaroshenko

79199939

Date: 2024-11-18 12:44:05
Score: 2.5
Natty:
Report link

The environment variable $HOME can be used instead.

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

79199932

Date: 2024-11-18 12:42:05
Score: 1
Natty:
Report link
  1. Maximize Window: Right-click the emulator in the taskbar and select "Maximize."
  2. Change Graphics Mode: Use Software graphics in AVD settings.
  3. Restart Emulator: Close and restart it from the AVD Manager.
  4. Update Emulator: Update via Android Studio’s SDK Manager.
  5. Recreate Emulator: Delete and create a new one in AVD Manager.
  6. Update Graphics Drivers: Ensure GPU drivers are up to date.
  7. Enable Virtualization: Enable in BIOS (Intel HAXM/AMD Hypervisor).
  8. Check Monitors: Drag the window to another screen if using multiple monitors.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pinal Gangani

79199931

Date: 2024-11-18 12:42:05
Score: 3
Natty:
Report link

Hey I ran into same issue and the problem is swagger does not consider @Controller.Either change it to @RestController or add @ResponseBody with your @Controller.

It should work after this.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @RestController
  • User mentioned (0): @ResponseBody
  • User mentioned (0): @Controller
  • Low reputation (1):
Posted by: shivang garg

79199921

Date: 2024-11-18 12:39:04
Score: 1.5
Natty:
Report link

Not a long term fix but for me downgrading to these versions, fixed the issue for me.

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

79199919

Date: 2024-11-18 12:38:04
Score: 10.5
Natty: 7
Report link

i need to do this but with more than 30 different icons, i have a geojson timestamped doc and there i have the iconstyle property for every icon, but i couldn't find the way to use this information to make the map. Could you please help me? i need something in the like oneachFeature (use this iconstyle from the js for the marker). Thanks in advance. Natalia

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (3): Could you please help me
  • RegEx Blacklisted phrase (3): Thanks in advance
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28358224

79199910

Date: 2024-11-18 12:34:03
Score: 1
Natty:
Report link

Complementing @Michael Mintz 's approach,here's a possible fix I tried and worked: Automatically set the version_main from the Error log Using a regular Expression as shown in the snippet below:

import re
import undetected_chromedriver as uc
def initialize_session():
        try: 
            sess = uc.Chrome()
        except Exception as e: 
            main_version_string = re.search(r"Current browser version is (\d+\.\d+\.\d+)", str(e)).group(1)
            main_version = int(main_version_string.split(".")[0])
            sess = uc.Chrome(version_main=main_version)
        return sess
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Michael
  • Low reputation (1):
Posted by: wreak havocc

79199905

Date: 2024-11-18 12:32:02
Score: 0.5
Natty:
Report link

Not correct way to call method from DOM, i suggest to create an obs like BehaviorSubject and setter have just to update this one.

protected jsonStringify = new Subject<string>() // or Behavior

 setJsonString(data: string) {
    this.data = JSON.stringify(JSON.parse(data), null, '\t');
 }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yoann ROCHE

79199904

Date: 2024-11-18 12:32:02
Score: 1.5
Natty:
Report link

In my case I am using cdk deploy(aws lambda function)

I removed the package-lock.json and ran the cdk deploy without doing npm i again (similar answer mentioned above)

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

79199899

Date: 2024-11-18 12:30:01
Score: 0.5
Natty:
Report link

Steps tried:

Rebooting the system: not working Uninstall and reinstall: not working Tried launching in cmd with all extension disabled: not working Tried VS code insider and this : NOT working for my computer. after all, vscode uninstalled, and go to the %APPDATA%/Code folder and deleted Code Folder. I restarted computer and setup vscode again and it WORKED FINALLY.

Reasons:
  • Whitelisted phrase (-1): it WORKED
  • No code block (0.5):
  • Low reputation (1):
Posted by: Muhammed Emin Öz

79199894

Date: 2024-11-18 12:29:01
Score: 0.5
Natty:
Report link

The issue has been fixed with the latest release of protobuf>=5.28.3

So you just need to reinstall or upgrade.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Cornelius Roemer

79199893

Date: 2024-11-18 12:28:01
Score: 1
Natty:
Report link
while [ "$(aws ecr list-images --region $AWS_REGION --repository-name $REPO_NAME --query imageIds[0].imageDigest --output text)" != 'None' ]; do aws ecr batch-delete-image --region $AWS_REGION --repository-name $REPO_NAME --image-ids imageDigest=$(aws ecr list-images --region $AWS_REGION --repository-name $REPO_NAME --query imageIds[0].imageDigest --output text); done
Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Max

79199892

Date: 2024-11-18 12:28:01
Score: 2.5
Natty:
Report link

You need to use image of exact 1024px by 500px. You can this website(resizepixel.com) to resize image.

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

79199886

Date: 2024-11-18 12:27:00
Score: 4
Natty:
Report link

I want to do show all users in this Author dropdown in edit page (post type ='page') and these all users display only if i logged as admin role type user.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sunshine

79199884

Date: 2024-11-18 12:27:00
Score: 2
Natty:
Report link

[ return from waveshare ]

This screen doesn't support 3.3V. If it's used under this voltage for a long time, the screen will be damaged.

It is recommended that you use the product recommended below to transplant to ESP32. For this product, we have provided Arduino examples.

https://www.waveshare.net/shop/3.5inch-TFT-Touch-Shield.htm

[]

So, i couldn't test it right away with a logic-level adapter. And it's not impossible that I killed the screen.

anyway, i'll put the topic in resolute and update the post when i can.

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

79199883

Date: 2024-11-18 12:26:00
Score: 1
Natty:
Report link

As @Fildor mentioned in the comment when he did OCR (Invoices) we used to have a multilayered process. If OCR confidence was above a certtain threshold, it went through, directly (very high confidence). If it was less, then it would be validated against several measures depending on the content. For example City names against a Database of all the city names in existence in the respective country. Then we would have a list of say the top 5 most probable hits. If the top hit was still below a certain resemblance indicator, then it would be run by a human to validate / correct it. And the result would be fed back into the AI part of the recognition as additional training data. That way the process is not 100% automatic but we were able to go from 100% human data entry to about 1% Human Data validation and 0.1% Human data correction. With improving numbers in the warmup phase and keeping the training set optimized prevented deteriorating AI performance.

Also mentioned by @Tlaquetzal in the stack link At the moment, it is not possible to do this. I found a Feature Request made to Cloud Vision API to take a PDF file and export it as a searchable PDF which might resolve this issue. I recommend you to subscribe to the Feature Request (click on the star next to the title) so it can get more visibility.

Posting the answer as community wiki for the benefit of the community that might encounter this use case in the future.

Feel free to edit this answer for additional information.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @Fildor
  • User mentioned (0): @Tlaquetzal
  • Low reputation (0.5):
Posted by: PUTHINEEDI RAMOJI RAO

79199881

Date: 2024-11-18 12:26:00
Score: 2.5
Natty:
Report link

Yes, OpenJDK 8 is officially supported by WebLogic Server 12.2.1.4. This means you can safely switch to OpenJDK 8 to avoid Oracle JDK licensing costs without significant compatibility issues.

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

79199880

Date: 2024-11-18 12:24:59
Score: 2
Natty:
Report link

What is the error that you are receiving?

It can be so many thinks that is hard to know where to start.

You can try:

Tools - Device Manager.
In the Actions column, click in three dots on the right and then Wipe Data.

or

Search for *.lock folders under .android folder and delete those. This should tell Android studio that the AVD is not running.

or

Remove all *.lock files in the avd folder

Go to File->Invalidates cache then click "Just restart"

Open Android Studio again and launching the emulator should work as it is not lock anymore after deleting the .lock files.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What is the
  • Low reputation (1):
Posted by: Alexandre B.

79199875

Date: 2024-11-18 12:22:59
Score: 1
Natty:
Report link

use below command in terminal to get all your laravel routes based on their name,this will help you to find all routes

php artisan route:list --name

and look it up for the route named "login"

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

79199854

Date: 2024-11-18 12:11:56
Score: 9.5 🚩
Natty: 6.5
Report link

you solved? i have the same problem

Reasons:
  • Blacklisted phrase (1): i have the same problem
  • RegEx Blacklisted phrase (1.5): solved?
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): i have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: kfirwe

79199848

Date: 2024-11-18 12:09:55
Score: 2
Natty:
Report link

I managed to solve it by updating line width:

fig.update_traces(marker_line_width=0)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user026

79199842

Date: 2024-11-18 12:05:54
Score: 8.5 🚩
Natty: 6
Report link

I have a question very similar to this one and I'm having trouble solving my problem. I asked my question here: (HTTP 400 Error when uploading Kubeflow Pipeline to Artifact Registry [google cloud platform]). If you have any suggestions or ideas, that would be great! Thank you very much!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1.5): I have a question
  • RegEx Blacklisted phrase (2): any suggestions
  • RegEx Blacklisted phrase (2): I'm having trouble
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eliot

79199840

Date: 2024-11-18 12:04:53
Score: 1.5
Natty:
Report link

Check for your folder permissions, In my case System Paths were correct, the folder was outside Windows System folders and still those folder permissions were denied to my user. Change folder ownership of the desired folders, don't forget to change permissions to all desired sub files/folders. On windows right click -> security -> change ownership etc...

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Carlos V. Gonzalez

79199837

Date: 2024-11-18 12:02:53
Score: 0.5
Natty:
Report link

   $('.import-btn').on('click', function() {
            $.ajax({
                url: '<?php echo admin_url('admin-ajax.php'); ?>',
                type: "POST",
                data: {
                    action: 'import_data'
                },
                success: function(data) {
                    if (data !== 0) {
                        Swal.fire({
                            icon: "success",
                            title: "Imported data",
                            text: "Thankyou for importing this file",
                        });

                    } else {
                        Swal.fire({
                            icon: "error",
                            title: "Oops...",
                            text: "Something went wrong!",
                        });
                    }
                },
                error: function() {
                    alert('Error');
                }
            });
        });
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>

<?php
add_action('wp_ajax_nopriv_import_data', 'import_data');
add_action('wp_ajax_import_data', 'import_data');
function import_data()
{

    function upload_image_from_url($thumbnail_url)
    {

        $image_name = basename($thumbnail_url);
        $image_data = file_get_contents($thumbnail_url);
        $upload_dir = wp_upload_dir();
        $image_path = $upload_dir['path'] . '/' . $image_name;
        if ($image_data === false) {
            return new WP_Error('image_fetch_failed', 'Failed to fetch image data');
        }

        $image_saved = file_put_contents($image_path, $image_data);
        if ($image_saved == FALSE) {
            return new WP_Error('Upload failed', 'Failed to upload file');
        }
        return $image_path;
    }

    function insert_image_to_wp_posts($image_path, $post_id)
    {
        $upload_dir = wp_upload_dir();
        $image_url = str_replace($upload_dir['path'], $upload_dir['url'], $image_path);
        $file_info = array(
            'guid' => $image_url,
            'post_mime_type' => mime_content_type($image_path),
            'post_title' => sanitize_file_name(pathinfo($image_path, PATHINFO_FILENAME)),
            'post_status' => 'inherit',
            'post_parent' => $post_id,
        );
        $attachment_id = wp_insert_attachment($file_info, $image_path, $post_id);
        require_once(ABSPATH . 'wp-admin/includes/image.php');
        $attachment_metadata = wp_generate_attachment_metadata($attachment_id, $image_path);
        wp_update_attachment_metadata($attachment_id, $attachment_metadata);
        return $attachment_id;
    }

    $csvFile = get_template_directory() . '/movie_data.csv';


    if (!file_exists($csvFile)) {
        echo 'CSV file not found';
        return;
    }

    if (($handle = fopen($csvFile, 'r')) !== FALSE) {
        $header = fgetcsv($handle);
        while (($data = fgetcsv($handle)) !== FALSE) {
            $post_title = isset($data[1]) ? $data[1] : '';
            $post_date = isset($data[2]) ? $data[2] : '';
            $category = isset($data[3]) ? $data[3] : '';
            $thumbnail_url = isset($data[4]) ? $data[4] : '';
            $post_content = "Movies";
            // Creating post
            $post_data = array(
                'post_title'    => $post_title,
                'post_content'  => $post_content,
                'post_status'   => 'publish',
                'post_type'     => 'movie',
                'post_date'     => $post_date,
            );

            if ($post_data):
                $post_id = wp_insert_post($post_data);
                update_post_meta($post_id, 'category', $category);
                if ($thumbnail_url) {
                    $image_path = upload_image_from_url($thumbnail_url);
                    if (!is_wp_error($image_path)) {
                        $attachment_id = insert_image_to_wp_posts($image_path, $post_id);
                        if (!is_wp_error($attachment_id)) {
                            update_post_meta($post_id, "_thumbnail_id", $attachment_id);
                        }
                    } else {
                        echo "Error while inserting image into WP Posts";
                    }
                } else {
                    error_log('thumbnail url not generated');
                }
            endif;
        }
        fclose($handle);
        echo '1'; // Success
    } else {
        echo '0'; // Failure opening the file
    }
}?>

Reasons:
  • Blacklisted phrase (1): Thankyou
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user28347249

79199834

Date: 2024-11-18 12:01:53
Score: 1.5
Natty:
Report link

This issue occurs because the library is not updated for 3 years. To fix this you can try out this mentioned link https://github.com/shaqian/flutter_tflite/pull/305. If not solved than have a look in the Git hub repo and PR section it will be really helpful because of the contributors.

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

79199833

Date: 2024-11-18 12:00:52
Score: 2
Natty:
Report link

A common approach is to use scripts in your package.json file to install different versions of packages depending on the environment. You can create scripts that install separate dependencies for development and production.

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

79199827

Date: 2024-11-18 11:59:52
Score: 3.5
Natty:
Report link

Maybe you'll find our module on the Isolation Forrest helpful. It is part of our free lecture series on anomaly detection.

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

79199826

Date: 2024-11-18 11:59:52
Score: 2.5
Natty:
Report link

If you need to send email using the Gmail service, you need to obtain an application password. Get yourself a key from https://support.google.com/accounts/answer/185833 and try the operations again after inserting it into your code.

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

79199818

Date: 2024-11-18 11:56:51
Score: 3.5
Natty:
Report link

Try to remove the gradle catch file and try again; it will work. I also face the same problem.

If it does not work, then use this trick:

  1. run npm run android and when this starts to initiate, then clear terminal
  2. then run npm run start. I think this trick will work.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I also face the same problem
  • Low reputation (1):
Posted by: Elon Musk

79199807

Date: 2024-11-18 11:52:50
Score: 2
Natty:
Report link
# yum install package-name -y > /dev/null 2>&1
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Namasivayam Chinnapillai

79199805

Date: 2024-11-18 11:51:50
Score: 4
Natty:
Report link

When I run the code I get a different plot:

Plot

torch: 2.3.1
numpy: 1.26.4
cuda: 12.2
NVIDIA-Driver: 535.183.01 (Ubuntu)

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

79199784

Date: 2024-11-18 11:43:48
Score: 1
Natty:
Report link

Simply install the module using apt:

sudo apt update
sudo apt upgrade
sudo apt install python3-scapy
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: okaeiz

79199778

Date: 2024-11-18 11:40:47
Score: 3.5
Natty:
Report link

When i am trying add the items using import items API getting branch_id but items are not showing in Podio

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When i am
  • Low reputation (1):
Posted by: Rajendra Taver

79199777

Date: 2024-11-18 11:40:47
Score: 2
Natty:
Report link

1st Step :-

flutter pub get
dart run flutter_launcher_icons

after this all the icon images will be automatically generated by the package then

enter image description here

just remove the mipmap-anydpi-v26 generated folder then your problem will fixed...

Thank me later :)

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

79199766

Date: 2024-11-18 11:36:46
Score: 1
Natty:
Report link

I Have a similar requirement just with the following Difference :

Since my application handles a large volume of data, it is not feasible to fetch all records at once. Therefore, during the initialization of the grid, I configured the pageSize to 5 and set a Fixed Report Height of 270px to display 5 records at a time. theirfore this is not able tp fetch the records beyond 20(because only 20 records are loaded initially) var reds= apex.region("employees_grid").widget().interactiveGrid("getViews","grid").model.getRecord(pk);

Please assist me with this

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

79199764

Date: 2024-11-18 11:35:46
Score: 0.5
Natty:
Report link

The commands were correct, it turns out I was just missing additional symbols.

I was able to work out the missing symbol file though looking at cat /proc/$(pidof <my_program>)/maps | grep xp | grep <first 5-7 characters of the missing address>

Then I loaded them in as normal

image add <missing symbol file>
target modules load --file <symbol file> .text 0x<address>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kotosif

79199758

Date: 2024-11-18 11:33:45
Score: 1.5
Natty:
Report link

Do not forget to check your .xcode.env.local file, sometimes the NODE_BINARY export path might be pointing to the wrong directory.

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

79199750

Date: 2024-11-18 11:28:44
Score: 2
Natty:
Report link

Verify the .env File Ensure that your .env file contains the correct MongoDB URI and other environment variables. Example:

env Copy code MONGODB_URI=mongodb+srv://:@clustername.mongodb.net/?retryWrites=true&w=majority PORT=5000 Run a test using the mongo shell or MongoDB Compass:

bash Copy code mongo "mongodb+srv://:@clustername.mongodb.net/" --authenticationDatabase admin If this fails, verify the cluster's IP Whitelist and network access settings. telnet clustername.mongodb.net 27017

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

79199749

Date: 2024-11-18 11:27:43
Score: 1
Natty:
Report link

I've managed to fix this problem effectively and have concluded that the problem was with the board.

I had to find the Github repo for the board.

There I was able to find the pinout for the board and one thing immediately caught my eye and that was the reversal of pin 16 and 18 on the pinout.

GPIO16 was marked as GP18 on the silk screen and GPIO18 was marked as GP16 on the board.

This was the root cause of all the problems because both of these pins were actively being used by the SPI interface.

Below I've attached the correct pinout for this board.

pinout for Micro RP2040

There is this note on the Github repo too which I think should be printed on the packaging too, this is a pretty serious fault.

Note on the github repo

Below you can see my board, it shows on the left side

Where it should've been,

My board

This was the issue and as soon as I connected the pins following the correct pin scheme on the board, the display worked perfectly.

working display yayy :)

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

79199744

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

Change teacher_choices to a list comprehension.

teacher_choice = [(i.first_name.capitalize+i.last_name.capitalize,f'{i.first_name} {i.last_name}') for i in teacher]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Matt_WOT

79199740

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

The simple and recommended approach should be of using template literals.

You can easily write multi line code in template literals as well as html codes.

However, as mentioned by others there are other utilities as well.

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

79199733

Date: 2024-11-18 11:25:43
Score: 1.5
Natty:
Report link

I ended up checking if the input was over 1000 chars. If yes, then first send the input to a llm with the prompt, "Summarize this text to max 600 characters. The text will be used to retrieve documents from a vector storage" (adjust as needed).

Then use the returned text to fetch context with the original input to generate the answer.

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

79199724

Date: 2024-11-18 11:20:41
Score: 1
Natty:
Report link

This is what I did after trying all the available answers on google and they did not work for me.

I looked for the status of pulseaudio and it shows the error 'Failed to load module "module-alsa-card"', this command will show you the status

systemctl --user status pulseaudio

And I feel like there is something wrong with my current kernel

So I switched to the previous kernel version (in my case from linuz-5.15.0-125-generic to linuz-5.14.0-1034-oem) and the speaker device is now recognized.

To do this, just reboot, press "esc" to open the kernel selection -> select "Advanced options for Ubuntu" -> in my case, I select the previous version "Linux 5.14.0-1034-oem".

To make it the default on every boot, you can simply change a line in the file "/etc/default/grub" from

GRUB_DEFAULT=0

to

GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, using Linux 5.14.0-1034-oem".

Then update grub and reboot

sudo update-grub
sudo reboot
Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Đức Anh Nguyễn Đỗ

79199717

Date: 2024-11-18 11:18:41
Score: 3
Natty:
Report link

On the Log Explorer page, go to: Preferences

And you can add your custom fields to the log explorer: custom fields

Keep in mind that this is only possible is the logs fields are parsed:

parsed fields

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

79199702

Date: 2024-11-18 11:12:39
Score: 2.5
Natty:
Report link

So the answer to your question is you have to use provideHttpClient(withInterceptorsFromDi()),if you are class based interceptor.

or if you are using function based then use provideHttpClient(withInterceptors()) in providers.

Thank you

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shivraj Singh Deopa

79199695

Date: 2024-11-18 11:10:38
Score: 1
Natty:
Report link

It looks like you're using the API intended for interactive queries?

druid.server.http.maxSubqueryRows is a guardrail on the interactive API to defend against floods from child query processes (including historicals). Floods happen when those child processes return more than a defined number of rows each, for example, when doing a GROUP BY on a high-cardinality column.

You may want to see this video on how this engine works.

I'd recommend you switch to using the other API for this query, which adopts asynchronous tasks to query storage directly, rather than the API you're using, which pre-fetches data to historicals and uses fan-out / fan-in to the broker process - which is where you have the issue.

You can see an example in the Python notebook here.

(Also noting that Druid 31 includes an experimental new engine called Dart. It's not GA.)

Reasons:
  • Blacklisted phrase (1): this video
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Peter Marshall

79199688

Date: 2024-11-18 11:07:38
Score: 1.5
Natty:
Report link

You can create another class for id and userId. Adding that class as an object in your Asset class and put an annotation @id for that object.

Reff: https://www.baeldung.com/spring-data-mongodb-composite-key

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

79199678

Date: 2024-11-18 11:05:37
Score: 4
Natty:
Report link

i am using this content locker on my blogger blog. you might give it a try . upvote my answer if it helps.

https://www.classwithmason.com/2024/11/how-to-offer-paid-subscriptions-on.html

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

79199676

Date: 2024-11-18 11:05:37
Score: 3
Natty:
Report link

You can resolve this issue by using CSS techniques like z-index for Overlap Issues. Ensure the sidebar does not overlap the main content by managing the z-index.

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

79199670

Date: 2024-11-18 11:04:36
Score: 8.5 🚩
Natty: 5
Report link

Is this issue solved?

If, And let me know the ways to fix this?

Reasons:
  • RegEx Blacklisted phrase (1.5): solved?
  • RegEx Blacklisted phrase (1.5): fix this?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is this is
  • Low reputation (1):
Posted by: Manoj K

79199656

Date: 2024-11-18 11:01:35
Score: 3.5
Natty:
Report link

I do not think it is. That should lead to conflict, not on a package-manager level (there would be no version for your devPackage provided, I assume), but in your application, because you would have two (presumably different) packages with the same names of classes etc. Have you tested it?

But you could perhaps try to install your development version under (slightly) different name?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: mhorak

79199642

Date: 2024-11-18 10:59:35
Score: 0.5
Natty:
Report link

check if the loss before loss.backward() requires grad by printing loss.requires_grad. If not you should check in the loss calculation function if:

From what I see, your function in detect.py convert tensor to numpy and python, which break the gradient chain. That should be why your loss doesn't require grad.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: MinhNH

79199640

Date: 2024-11-18 10:57:34
Score: 5.5
Natty: 5.5
Report link

Have you tested out using netcat or telnet to port 8161?

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

79199639

Date: 2024-11-18 10:57:34
Score: 1
Natty:
Report link

As mentioned the length error occurs because you pass the wrong type/format as window. It's supposed to be a pair of lists. Please review the syntax here https://code.kx.com/q/ref/wj/ Also, you're probably interested in wj1 rather than wj as wj includes the prevailing data point whereas wj1 only considers the data points within the time window

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Alexander Unterrainer-DefconQ

79199636

Date: 2024-11-18 10:57:34
Score: 0.5
Natty:
Report link

Instead of depending on timeouts, you need to look for DOM changes. For eg, when certain data elements are rendered on these mentioned screens, your script should wait for those DOM objects to be created at run time.

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