79173103

Date: 2024-11-09 15:46:39
Score: 3.5
Natty:
Report link

Friends, I use Herd and Openserver, changes in environment variables helped me. You need to make C:\Users<user_name>.config\herd\bin lower than PHP enter image description here

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

79173099

Date: 2024-11-09 15:44:39
Score: 2.5
Natty:
Report link

for me doing

conda remove moviepy gtts

conda install -c conda-forge moviepy gtts

fixed the problem, so i basically just removed and re installed everything

I am on mac air M1, with latest OS version

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

79173094

Date: 2024-11-09 15:43:38
Score: 2.5
Natty:
Report link

Apparently it was my $pd parameter, that was a problem. After changing it to $pwd, everything worked.

I don't understand why my try catch did not capture anything going wrong.

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

79173083

Date: 2024-11-09 15:38:37
Score: 3
Natty:
Report link

Sometime it might be due to Ip address but usually it is due to the node js version. So please install the latest node js version from its official website.

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

79173060

Date: 2024-11-09 15:23:34
Score: 1
Natty:
Report link

I had a similar issue and was able to resolve it by adding the foojay toolchain to my settings.gradle file, under the plugins section:

id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zach the Dev

79173058

Date: 2024-11-09 15:22:34
Score: 1.5
Natty:
Report link

You could use the in_app_purchase package and only use it to check country code.

import 'package:in_app_purchase/in_app_purchase.dart';

Future<String> countryCode() => InAppPurchase.instance.countryCode();

Otherwise you could write your own plugin https://docs.flutter.dev/packages-and-plugins/developing-packages

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

79173055

Date: 2024-11-09 15:21:34
Score: 2
Natty:
Report link

I assume you already properly configured your terminal to save key using ssh-agent. if that was the case you need to make sure that there is no other ssh.exe presented especially under C:\Program Files\Git\usr\bin in my case vscode preferred the ssh.exe in that path and this broke since I don't have ssh-agent there. my solution was just to delete it since the C:\Windows\System32\OpenSSH\ssh.exe is serving as the ssh command

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

79173051

Date: 2024-11-09 15:20:33
Score: 1.5
Natty:
Report link

I just installed Xcode 13.4.1 on my Ventura MBP 2017

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: rudifa

79173037

Date: 2024-11-09 15:05:31
Score: 2
Natty:
Report link

I found problem on my computer. I've had netsh configuration that redirected localhost:9092 to <another_ip>:9092.

I made this config when tried to set up Kafka on WSL an totally forgot about this configuration.

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

79173036

Date: 2024-11-09 15:04:31
Score: 1.5
Natty:
Report link

In Windows you can do

    robocopy /move /e .\path\from\directory-or-file .\path\to\directory
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ckarakoc

79173024

Date: 2024-11-09 14:57:29
Score: 3.5
Natty:
Report link

For me downloading the silk workbench (.tgz) from this link: https://github.com/silk-framework/silk/releases/tag/release-2.7.1

then extracting the .tgz file and copying it to the C drive, try to copy the sub-folder and final link should be like this: C:/silk-workbench-2.7.1/bin/

then run cmd as an administrator and and go to this address: C:/silk-workbench-2.7.1/bin/

write the silk-workbench.bat and enter.

you will find application running on the localhost address: http://localhost:9000/

@Reihan_amn for your helpful comment

Reasons:
  • Blacklisted phrase (1): this link
  • No code block (0.5):
  • User mentioned (1): @Reihan_amn
  • Low reputation (1):
Posted by: Mohsin ali

79173021

Date: 2024-11-09 14:56:29
Score: 3
Natty:
Report link

Bean Searcher is a very lightweight read-only ORM focused on advanced queries:

A read-only ORM focused on advanced queries, naturally supporting linked tables and eliminating DTO/VO conversion, making it possible to achieve complex list retrieval with just one line of code!

Github: https://github.com/troyzhxu/bean-searcher

Document: https://bs.zhxu.cn/

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Troy

79173016

Date: 2024-11-09 14:53:28
Score: 0.5
Natty:
Report link

Ensure that FLASK_ENV environment variable is set to development. this activates the debug mode and auto reloads the app when you make changes.

in terminal set the environment varable before running your app

export FLASK_ENV=development

or in Windows

set FLASK_ENV=development

Restart the server.

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

79173012

Date: 2024-11-09 14:51:28
Score: 0.5
Natty:
Report link

@Shayne, first thing that is wrong about your code is that it is using single quotes (') instead of double quotes ("), which is said to be used:

Note the use of double quotes instead of single quotes. You must use double quotes when executing PHP functions from within WP All Import. You can’t use single quotes.

link

I asked Claude.ai to improve your code snippet from ChatGPT and it came with the following, which I managed to get working:

function update_wpbakery_image_ids($post_id, $xml_node, $is_update) {
    // Get the post content
    $content = get_post_field("post_content", $post_id);
    
    // Skip if no content
    if (empty($content)) {
        return;
    }
    
    // Array of WP Bakery shortcodes that contain image IDs
    $shortcode_patterns = array(
        "vc_single_image" => "/\[vc_single_image[^\]]*image=\"(\d+)\"/",
        "vc_gallery" => "/\[vc_gallery[^\]]*images=\"([^\"]+)\"/"
    );
    
    $modified = false;
    
    foreach ($shortcode_patterns as $shortcode => $pattern) {
        preg_match_all($pattern, $content, $matches);
        
        if (!empty($matches[1])) {
            foreach ($matches[1] as $old_ids) {
                // Handle both single IDs and comma-separated lists
                $old_id_array = explode(",", $old_ids);
                $new_id_array = array();
                
                foreach ($old_id_array as $old_id) {
                    $old_id = trim($old_id);
                    
                    // Get the attachment URL for the old ID
                    $old_attachment_url = wp_get_attachment_url($old_id);
                    
                    if ($old_attachment_url) {
                        // Try to find the new attachment ID based on the same filename
                        $filename = basename($old_attachment_url);
                        $new_attachment = get_posts(array(
                            "post_type" => "attachment",
                            "post_status" => "inherit",
                            "fields" => "ids",
                            "meta_query" => array(
                                array(
                                    "value" => $filename,
                                    "compare" => "LIKE",
                                    "key" => "_wp_attached_file"
                                )
                            )
                        ));
                        
                        if (!empty($new_attachment)) {
                            $new_id = $new_attachment[0];
                            $new_id_array[] = $new_id;
                            
                            // Replace in content based on shortcode type
                            if ($shortcode === "vc_single_image") {
                                $content = preg_replace(
                                    "/(\[vc_single_image[^\]]*image=\")" . $old_id . "\"/",
                                    "$1" . $new_id . "\"",
                                    $content
                                );
                            } elseif ($shortcode === "vc_gallery") {
                                $old_ids_pattern = preg_quote($old_ids, "/");
                                $new_ids = implode(",", $new_id_array);
                                $content = preg_replace(
                                    "/(\[vc_gallery[^\]]*images=\")" . $old_ids_pattern . "\"/",
                                    "$1" . $new_ids . "\"",
                                    $content
                                );
                            }
                            
                            $modified = true;
                        }
                    }
                }
            }
        }
    }
    
    // Update post content if modifications were made
    if ($modified) {
        wp_update_post(array(
            "ID" => $post_id,
            "post_content" => $content
        ));
        
        // Clear any caches
        clean_post_cache($post_id);
    }
}

I added this function to the Function Editor which is available from within the WP All Import Pro process.

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

79173004

Date: 2024-11-09 14:48:27
Score: 0.5
Natty:
Report link

Hey to create a promotion with the Shopify API, you use the Discounts API. First, authenticate and get the necessary permissions. Then, create a discount rule by making a POST request to /admin/api/2024-01/price_rules.json, where you can define the promotion’s conditions (e.g., percentage discount, minimum purchase, or free shipping). After that, link a discount code to the rule by making a POST request to /admin/api/2024-01/discount_codes.json. Shopify also offers an easy-to-use admin panel for creating promotions without needing to use the API directly.

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

79173001

Date: 2024-11-09 14:46:26
Score: 10
Natty: 8
Report link

Any Solution found at this time?

Reasons:
  • Blacklisted phrase (1.5): Any Solution
  • RegEx Blacklisted phrase (2): Any Solution found at this time?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28212906

79173000

Date: 2024-11-09 14:46:25
Score: 0.5
Natty:
Report link

HERE IS A QUICK SIMPLE GUIDE YOU CAN FOLLOW

I was facing the same problem ( whenever i do a fresh windows install and i install vscode in it) the following steps worked for me.

  1. Go to Extension Tab.
  2. Type "@buildin" in search bar
  3. Find "Microsoft Account" Extension.
  4. Now disable it and again enable it.
  5. Try to sign in NOW.

HOPEFULLY YOUR PROBLEM IS SOLVED 😊

Reasons:
  • Whitelisted phrase (-1): worked for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: JashanDev-47

79172989

Date: 2024-11-09 14:41:24
Score: 0.5
Natty:
Report link

The answer is a subfolder should be added to the PATH variable, the working script is as follows

FROM rocker/rstudio:latest

# Install depencendcies

RUN apt-get update \

   && apt-get upgrade -y \

   && apt-get install -y 
 
#install tinytex 
RUN mkdir -p /tinytex
RUN Rscript -e ' install.packages("tinytex");tinytex::install_tinytex(dir="/tinytex",force=TRUE)'
ENV PATH="${PATH}:/tinytex/bin/x86_64-linux"

RUN tlmgr update --self
RUN tlmgr update --all
RUN tlmgr install \
        koma-script \
        caption \
        pgf \
        environ \
        tikzfill \
        tcolorbox \
        pdfcol


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

79172985

Date: 2024-11-09 14:41:24
Score: 5.5
Natty:
Report link

There is a GLTF file with animated camera and some moving parts and it works fine when the default camera is reassigned by glft.cameras[0] at GLTFLoader.load() and the initial model and camera positions are absolutely as it was designed in Blender.

enter image description here

camera = gltf.cameras[0].clone();
                     
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
camera.needsUpdate = true;

However, the task it to have an interactive OrbitControls mode allowing users to freely rotate/scale and move the platform while holding SHIFT key. And to do this, I’m re-initializing controls by this line at keydown event listener.

controls = new OrbitControls(camera, renderer.domElement);

And the model jumps to another position.

enter image description here

I have tried to play with camera.lookAt vector as well as controls.target, but it doesn’t help me. It seems that this issue occurs due to the difference between the origin coordinates in the GLTF and ThreeJS scene.

The working code is available here.

const URL = {
    name: '3non-sliding',
    prefix: 'assets/models/'
};

import * as THREE from 'three';

import { AnimationMixer } from 'three';

import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
import { DebugEnvironment } from 'three/addons/environments/DebugEnvironment.js';

let container, renderer, scene, camera, controls, group, gltf, mixer, freeMode = false, verify = true, clock = new THREE.Clock();

inits();

function inits() {

    container = document.createElement('div');
    document.body.appendChild(container);

    renderer = new THREE.WebGLRenderer({
        antialias: true
    });
    renderer.toneMapping = THREE.ACESFilmicToneMapping;
    renderer.setPixelRatio(window.devicePixelRatio);
    renderer.setSize(window.innerWidth, window.innerHeight);
    container.appendChild(renderer.domElement);

    camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 64);

    scene = new THREE.Scene();

    const loader = new THREE.TextureLoader();
    scene.background = loader.load('assets/checkboxGrey4x4.png');

    const pmremGenerator = new THREE.PMREMGenerator(renderer);
    pmremGenerator.compileCubemapShader();

    const generativeEnvironment = new DebugEnvironment(new THREE.Color(0xDDDDDD));

    scene.environment = pmremGenerator.fromScene(generativeEnvironment).texture;

    controls = new OrbitControls(camera, renderer.domElement);
    controls.enableDamping = true;
    controls.dampingFactor = 0.1;
    controls.enabled = false;

    const geometry = new THREE.SphereGeometry(0.25, 8, 8);
    const material = new THREE.MeshBasicMaterial({
        color: 0xFF00FF
    });
    const sphere = new THREE.Mesh(geometry, material);
    scene.add(sphere);

    const onProgress = function(xhr_) {

        if (xhr_.lengthComputable) {

            const percentComplete = xhr_.loaded / xhr_.total * 100;

            console.log(`${URL.name}.glb : ${percentComplete.toFixed( 2 )}%`);

        }

    };

    new GLTFLoader().setPath(URL.prefix).load(new URLSearchParams(window.location.search).get('id') != null ? `${new URLSearchParams(window.location.search).get('id')}.glb` : `${URL.name}.glb`, function(gltf_) {

        gltf = gltf_;

        mixer = new THREE.AnimationMixer(gltf.scene);

        scene.add(gltf.scene);

        camera = gltf.cameras[0].clone();

        camera.aspect = window.innerWidth / window.innerHeight;
        camera.updateProjectionMatrix();
        camera.needsUpdate = true;

    }, onProgress);

    window.addEventListener('resize', onWindowResize);

    document.addEventListener('keydown', (event_) => {

        if (event_.keyCode == 16 && verify) {

            freeMode = true;
            verify = false;
            controls.enabled = true;
            console.log('OrbitControls mode enabled');

            controls = new OrbitControls(camera, renderer.domElement);

        }

    });

    document.addEventListener('keyup', (event_) => {

        freeMode = false;
        verify = true;
        controls.enabled = false;
        console.log('OrbitControls mode disabled');


    });

    render();

}

function onWindowResize() {

    camera.aspect = window.innerWidth / window.innerHeight;
    camera.updateProjectionMatrix();

    renderer.setSize(window.innerWidth, window.innerHeight);

}

Any ideas why it's jumping and how to solve it?

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): Any ideas
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (1.5): how to solve it?
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: VVK

79172984

Date: 2024-11-09 14:41:23
Score: 1
Natty:
Report link
SELECT tripad_order, tourad_order
FROM (
    SELECT tripad_order, tourad_order
    FROM tripdetails 
    LEFT JOIN tripaddresses ON tripaddresses.trip_id = tripdetails.trip_id
    LEFT JOIN touraddresses ON touraddresses.tripad_id = 
     tripaddresses.tripad_id AND touraddresses.tour_id = tripdetails.tour_id
    WHERE tripde_id = 39780

    UNION ALL

    SELECT tripad_order, tourad_order
    FROM tripdetails 
    LEFT JOIN touraddresses ON touraddresses.tour_id = tripdetails.tour_id 
    LEFT JOIN tripaddresses ON tripaddresses.tripad_id = 
    touraddresses.tripad_id AND tripaddresses.trip_id IN (0, 
     tripdetails.trip_id)
    WHERE tripde_id = 39780 AND tripad_type IS NOT NULL
) t
GROUP BY tripad_order, tourad_order
ORDER BY 
    CASE WHEN tripad_order = 0 THEN NULL ELSE tripad_order END,
    CASE WHEN tourad_order IS NULL THEN 1 ELSE 0 END, 
    tourad_order;

https://admirable-smakager-729141.netlify.app/post/6

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

79172972

Date: 2024-11-09 14:34:22
Score: 5.5
Natty:
Report link

Thanks! I see that this code is working and it help's me to reduce the times of using useAutoAlgorithm to two times.

But can I reduce of using it to one time, for example by referring to the variable name in the right side of the code?

So don't want to write

useAutoAlgoritm = sec.get("useAutoAlgoritm")

But I want write something like

useAutoAlgoritm = sec.get(useAutoAlgoritm.getVariableName())

Can I do it?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Can I do
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jjqwe Jfjfbtuy

79172965

Date: 2024-11-09 14:28:21
Score: 0.5
Natty:
Report link

Ok, I found the missing method:

        Optional<UserRepresentation> user = foundUsers.stream().findFirst();
        if (user.isPresent()) {
            Map<String, List<String>> attribs = user.get().getAttributes();
            if (attribs.containsKey("language")) {
                attribs.get("language").set(0,"hu");
                userResource.get(user.get().getId()).update(user.get());
            }
        }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Papp Zoltán

79172964

Date: 2024-11-09 14:27:21
Score: 0.5
Natty:
Report link

I was missing queueConn.start(); to start the transaction. Why the way I had it, it did not return a message, I have no idea. If you are a JMS expert, please comment on this.

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

79172959

Date: 2024-11-09 14:22:19
Score: 3.5
Natty:
Report link

I forgot what I did, but now it works. I think it was something with the venv, but I'm absolutely not sure

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

79172957

Date: 2024-11-09 14:21:19
Score: 1.5
Natty:
Report link

GitHub Copilot often stops working when you're using an outdated version of Copilot. I often had issues and just to update and restart copilot (and maybe the IDE) fixed the problem for me.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Semjon Mössinger

79172954

Date: 2024-11-09 14:20:19
Score: 2.5
Natty:
Report link

This error is from Pydroid on Android. Unfortunately Rustup cannot be installed on Android as it's not supported.... boooo Maybe I'll solve this and get an update.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hairy-Cheese

79172953

Date: 2024-11-09 14:18:18
Score: 0.5
Natty:
Report link

When you drop columns, pandas doesn't automatically clean up unused levels in the MultiIndex. The levels still contain all original values even if they're no longer used.

If you print the df.columns you can see that the requested "AAPL" has been removed. To update the FrozenList that the df.columns.levels returns you will need to remove the unused levels.

tickers = ['AAPL', 'TSLA', 'AMZN', 'GOOGL', 'MSFT', 'META', 'NVDA', 'PYPL', 'ADBE', 'NFLX']

data = yf.download(tickers, period="1y", interval="1wk", group_by='ticker')

# I have changed the code here for readability.
data = data.drop(columns="AAPL", axis=1, level=0)

data.columns = data.columns.remove_unused_levels()

pandas.MultiIndex.remove_unused_levels

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

79172940

Date: 2024-11-09 14:12:17
Score: 0.5
Natty:
Report link

Yes, you just forgot return:

    def __await__(self):
         # Just do exactly what ten() does
        return (yield from self.ten().__await__())

This is the classic way, and return (yield from awaitable.__await__()) is equivalent to return await awaitable in an asynchronous function.

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

79172936

Date: 2024-11-09 14:11:17
Score: 5.5
Natty:
Report link

use this library which provides same function as smarteist-autoImageSlider https://github.com/antwhale/AntwhaleImageSlider

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

79172920

Date: 2024-11-09 14:00:14
Score: 1.5
Natty:
Report link

Serialization and deserialization in python is done following these rules: python - json:

dict - object list - array tuple - array str - string int - number float - number True - true False - false None - null

You should not expect any other values, most of the time you should know if the json data is a dictionary, a list of dictionary or whatever.

If your problem is typing you could verify that loading your data returns a dictionary or a list and returning that add dict or list as typing

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

79172910

Date: 2024-11-09 13:57:14
Score: 2.5
Natty:
Report link

The whole problem was wrong config of acl at the receiving end, the actual messages were denied, only allowing the log messages, which need the above parsing. When actual messages are received as well, the payload is available in those messages as it should.

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

79172907

Date: 2024-11-09 13:55:13
Score: 0.5
Natty:
Report link

This works for Mac

brew install freetds openssl
export LDFLAGS="-L/opt/homebrew/opt/freetds/lib -L/opt/homebrew/opt/openssl@3/lib"
export CFLAGS="-I/opt/homebrew/opt/freetds/include"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
python -m pip install pymssql
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Balaji Rajendran

79172899

Date: 2024-11-09 13:52:10
Score: 9.5 🚩
Natty:
Report link

i have a similar question. First, I want to save the decode text in a variable and Second, send that variable to another page (another script). The code is exactly the same as @neongmr.

thank in advance. @ricpar123

Reasons:
  • RegEx Blacklisted phrase (3): thank in advance
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): i have a similar question
  • User mentioned (1): @neongmr
  • User mentioned (0): @ricpar123
  • Low reputation (1):
Posted by: Ricardo Caballero

79172887

Date: 2024-11-09 13:45:08
Score: 3.5
Natty:
Report link

you can do it much easier

Open Notpad

Start with @echo off. Then start each line with Start, space, then add the full link to the site. when done save it as a .bat file. It should look like this.

@echo off

Start https://www.youtube.com/

Start https://www.twitch.tv/

Adding other browsers is simple also. Name the browser before the link

@echo off

Start Chrome https://www.youtube.com/

Start Firefox https://www.twitch.tv/

Reasons:
  • Blacklisted phrase (1): youtube.com
  • No code block (0.5):
  • User mentioned (1): @echo
  • User mentioned (0): @echo
  • User mentioned (0): @echo
  • Low reputation (1):
Posted by: kyle langlois

79172884

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

This was an issue in the polyfill es-module-shims and is fixed in v1.10.1 (github issue)

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

79172882

Date: 2024-11-09 13:41:07
Score: 2.5
Natty:
Report link

Instead of DataGrid.UnselectAllCells() just call:

setRowSelectionModel([]);

after your deletion.

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

79172881

Date: 2024-11-09 13:41:07
Score: 1
Natty:
Report link

Simply use ->paginate(5)->withQueryString()

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: csandreas1

79172869

Date: 2024-11-09 13:31:05
Score: 5
Natty:
Report link

Add C:\Program Files\PostgreSQL\'YOUR VERSION'\lib and C:\Program Files\PostgreSQL\'YOUR VERSION'\bin to your PATH. Restart PC. Run cargo clean. Run cargo build. Have same error on windows 10.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): Have same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: WeAreNotEternal

79172856

Date: 2024-11-09 13:24:03
Score: 2
Natty:
Report link

The equivalent seems to be -Wl,-dead_strip.

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

79172851

Date: 2024-11-09 13:23:03
Score: 0.5
Natty:
Report link

If you don't want to add a secret manually, the CSI driver will use the kubelet identity, which is a user-assigned managed identity created by AKS at cluster creation (unless you specified your own). This managed identity is primarily used by the kubelet to access Azure Container Registry (ACR), but it can also be used for authentication to Azure storage for persistent volume mounting.

To view the kubelet identity details:

az aks show --resource-group <your-resource-group> --name <your-cluster-name> --query "identityProfile.kubeletidentity"

You need to assign the correct role to the kubelet identity to allow it to retrieve storage access keys.

To assign the Storage Account Key Operator Service Role:

az role assignment create --assignee <kubelet-identity-client-id> --role "Storage Account Key Operator Service Role" --scope /subscriptions/<your-subscription-id>/resourceGroups/<storage-resource-group>/providers/Microsoft.Storage/storageAccounts/<your-storage-account>

Ensure that you do not have a secret named azure-storage-account-{accountname}-secret in the pod namespace and omit the nodeStageSecretRef field in the persistent volume configuration, because as the the azurefile-csi-driver doc says:

  • if the nodeStageSecretRef field is not specified in the persistent volume (PV) configuration, the driver will attempt to retrieve the azure-storage-account-{accountname}-secret in the pod namespace.
  • If azure-storage-account-{accountname}-secret in the pod namespace does not exist, the driver will use the kubelet identity to retrieve the account key directly from the Azure storage account API, provided that the kubelet identity has reader access to the storage account.

Additionally,I want to make clear that, when you create an AKS cluster, it sets up two managed identities by default:

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

79172849

Date: 2024-11-09 13:21:02
Score: 1
Natty:
Report link

To elaborate on @luk2302's answer

In Python, when you say

temp_nums = [] or temp_nums = list(), you've created an empty list for the sole purpose of "growing" (appending) it later.

An array is a collection of data values in contiguous (next to each other) memory locations. Therefore, you can only index elements you have explicitly added to the collection.

Say,

temp_nums = list()

temp_nums[0] = 5 //This is going to fail

temp_nums.append(5) 
temp_nums[0] = 10   // This will now work since the array has "grown" in the previous step

If the number of elements you will be storing in the array is predetermined, then you can fill those elements with your custom default values so indexing will work.

temp_nums = [-1] * 5// This will create temp_nums = [-1, -1, -1, -1, -1]
temp__nums[0] = [9]  // This will be [9, -1, -1, -1, -1]

If the number of elements is dynamic, rewrite your code to follow the append() mechanism shown above.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @luk2302's
  • Low reputation (1):
Posted by: chandanbsd

79172840

Date: 2024-11-09 13:15:00
Score: 4.5
Natty:
Report link

have anyone solved this problem, i have getting this same error

Reasons:
  • Blacklisted phrase (1): anyone solved
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sawan Kumar Chouhan

79172833

Date: 2024-11-09 13:12:59
Score: 3
Natty:
Report link

Sometime it might be due to Ip address but usually it is due to the node js version. So please install the latest node js version from its official website.

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

79172822

Date: 2024-11-09 13:04:58
Score: 1.5
Natty:
Report link

The above solution is correct, but please note that you MIGHT need to add "use client" on top of this login.tsx page. Fouund out here: https://github.com/vercel/next.js/discussions/59483

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

79172821

Date: 2024-11-09 13:04:58
Score: 1.5
Natty:
Report link

Looks like this is an issue of scope, so you should be able to resolve it by importing and configuring dotenv within cloudinar.js

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

79172820

Date: 2024-11-09 13:03:58
Score: 2.5
Natty:
Report link
<div class="h-64 bg-red-500 [@media(min-width:711px)]:bg-green-500"></div>
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: LeulAria

79172802

Date: 2024-11-09 12:56:57
Score: 2.5
Natty:
Report link

I was able to resolve this by upgrading numpy, then using the "Start Locally" page of pytorch to install pytorch and all its correct dependencies.

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

79172793

Date: 2024-11-09 12:51:56
Score: 0.5
Natty:
Report link

.Net Framework (older) and .Net Core (current) are the two different implementations of .Net from Microsoft.

.Net Framework is for developing Windows and Web application for the Windows platform.

.Net Core (now .NET) is a cross-platform and open source framework for building applications which can run on Mac, Linux or Windows. It is not an extension of the older .Net framework, but is completely rewritten.

The below release versions table may help to understand the version nos. used for the two frameworks.

enter image description here

.Net Standard is a set of .NET APIs that are available on multiple .NET implementations. You use .Net Standard only when you have to share code between older .Net frameworks and the newer .Net versions. For more info refer: https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-1-0

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

79172791

Date: 2024-11-09 12:50:55
Score: 1.5
Natty:
Report link

From Hibernate Query Spaces - Optimizing Flush and Cache Operations:

Since Hibernate 5.3.20 and 5.4.24, you can also provide the query space as a query hint. The main benefit of this approach is that you can use it with JPA’s Query interface. You no longer need to cast it to one of Hibernate’s proprietary interfaces.

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

79172789

Date: 2024-11-09 12:49:55
Score: 3
Natty:
Report link

Apparently, I was overcomplicating it with the build request Also, need to provide triggerId instead of trigger name

The updated buildRequest:

const buildRequest = {
    name: `projects/${projectId}/locations/${triggerLocation}/triggers/${triggerId}`,
    source: {
        substitutions: buildSubstitutions
    }
}

Good idea to do a getBuildTrigger if facing a similar issue:

const { CloudBuildClient } = require('@google-cloud/cloudbuild');
const cloudBuildClient = new CloudBuildClient();

const request = {
   name: `projects/${projectId}/locations/${triggerLocation}/triggers/${triggerId}`
};

const response = await cloudBuildClient.getBuildTrigger(request);
console.log(response);
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing a similar issue
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Piyush Agarwal

79172781

Date: 2024-11-09 12:46:54
Score: 3.5
Natty:
Report link

Just use the StartSelect() function, it'll automaticlly allow you to drag a frame

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

79172770

Date: 2024-11-09 12:41:53
Score: 2.5
Natty:
Report link

in cookie there is more asynchronous behaviour, so your server cpu and bandwidth is consumed more

in session based asynchronous behaviour is less

this is the big diffrence

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: web devlopment king

79172761

Date: 2024-11-09 12:37:52
Score: 1
Natty:
Report link

Another way to do it is like this and works perfectly

(cat payload; cat) | nc 127.0.0.1 8001

Replace the IP and port to your requirements

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

79172738

Date: 2024-11-09 12:25:50
Score: 1
Natty:
Report link

MacOS 10.15

Python 3.10.10

pip 24.3.1

I was able to install an earlier version:

pip install pyarrow==15.0.1
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: STEM FabLab

79172728

Date: 2024-11-09 12:20:49
Score: 2.5
Natty:
Report link

Could not build gradle build: Message: Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache [in thread "Daemon worker"

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

79172717

Date: 2024-11-09 12:15:48
Score: 2.5
Natty:
Report link

may be this could be happen because of Your Application backend. I got the same error .It's because I used @ResponseStatus(HttpStatus.FOUND) annotaion.The Error solved When I change it to @ResponseStatus(HttpStatus.OK).If your backend is java this will work.

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

79172704

Date: 2024-11-09 12:07:45
Score: 8.5 🚩
Natty: 5.5
Report link

I have the same error. Help me

Reasons:
  • Blacklisted phrase (1): Help me
  • RegEx Blacklisted phrase (1): I have the same error
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): I have the same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: Trần Gia Ngọc Phú

79172702

Date: 2024-11-09 12:06:44
Score: 1.5
Natty:
Report link

You can configure the deno.enablePaths option in .vscode/settings.json to enable it specifically for a designated path.

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

79172692

Date: 2024-11-09 12:01:43
Score: 0.5
Natty:
Report link

I think you will have to use window.open(your_url, "_blank") in your ts file...

Alternatively, you can use < a > tag with target="_blank" to open the link in new window.

If still it is not working then need to check with the routing file as zdd suggested

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Atul Agrawal

79172690

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

I've fixed this now.

There was an erroneous extra line at the start of /etc/mandos/mandos.conf which was preventing it running, but even after correcting that I still had the same error.

I deleted /lib/systemd/system/mandos.service and did 'systemctl enable mandos.service' to recreate it, and that fixed it.

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

79172688

Date: 2024-11-09 11:59:42
Score: 4
Natty:
Report link

enter image description here just like thie,define the transpiled circuit and use run replacing the execute

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: rat fat

79172684

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

Command Prompt flutter doctor

Microsoft Windows (Version 10.0.19045.50111 (c) Microsoft Corporation. All rights reserved.

C:\Users\user>flutter doctor

Doctor summary (to see all details, run flutter doctor -):

Flutter (Channel stable, 3.24.4, on Microsoft Windows [Ve Windows Version (Installed version of Windows is version Android toolchain develop for Android devices (Android Xcmdline-tools component is missing

Run path/to/sdkmanager-install "cmdline-tools; latest See https://developer.android.com/studio/command-line fo X Android license status unknown.

Run flutter doctor-android-licenses to accept the SD See https://flutter.dev/to/windows-android-setup for more

[V] Chrome develop for the web Visual Studio - develop Windows apps

X Visual Studio not installed; this is necessary to develop

Download at https://visualstudio.microsoft.com/downloads/ Please install the "Desktop development with C++" workload

( ✔) Android Studio (version 2024.2) [✓] VS Code (version 1.95.1)

te Connected device (the doctor check crashed)

X Due to an error, the doctor check did not complete. If the about this issue at https://github.com/flutter/flotter/issu X Error: Unable to run "adb", check your Android SDK installa

C:\Users\user\AppData\Local\Android\sdk\platform-tools\adb.

Error details: Process exfted abnormally with exit code 259

With [1] Network resources-

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

79172682

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

What you are doing seems a little bit convoluted, I have a few things to add.

const [isnavMenuClicked, setMobileViewNav] = useState(false);

Even tho react use state hook doesn’t require that the variable and setter names match, conventionally, it’s common to name them similarly tho ease the understanding process

const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);

Then, if this function does not have any other logic in it you don't really need it:

function isMobileMenuClicked(value) {
    setMobileViewNav(value);
}

if you remove it then you could pass the state setter to the navbar directly

<Navbar isMobileMenuClicked={() => setMobileMenuOpen(prev => !prev)} isnavMenuClicked={isMobileMenuOpen} />

and then in the navbar

<button className='w-8 md:w-10 lg:hidden' onClick={isMobileMenuClicked}>

This should now toggle on each click

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What you are
  • Low reputation (1):
Posted by: Cristian-Alexandru SANDU

79172669

Date: 2024-11-09 11:44:38
Score: 3
Natty:
Report link

.... And supplying a commit message fixes it. That feels like something the GUI should catch & supply a clearer error message for.

Or just have a default message, like committing via the GitHub web interface does.

Still, thanks for the help! :-)

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

79172649

Date: 2024-11-09 11:35:37
Score: 3
Natty:
Report link

XCOMs are there to exchange data between tasks. xcom push from branch task and xcom pull from is_accurate task

https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/xcoms.html

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

79172642

Date: 2024-11-09 11:32:36
Score: 4
Natty:
Report link

My version is Version 17.11.5 as being the latest version. Where ı can download 12 and above? For the other solution; How can we do your solution Sarah? I couldn't find it to do.

Reasons:
  • Blacklisted phrase (1): How can we
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: mustafa

79172640

Date: 2024-11-09 11:32:36
Score: 0.5
Natty:
Report link

A simple solution is to remove the nn.Sequential() wrapper from self.fnn

self.fnn = nn.Linear(7*7*64, 10, bias=True)

nn.init.xavier_uniform_(self.fnn.weight)
Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: cbspace

79172616

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

You can intercept an executable before it runs by using the Image File Execution Options (IFEO) in the Windows Registry. This feature lets you specify a debugger that launches whenever a particular executable is run. By setting your app as the debugger for the target executable, you can capture the command-line parameters before the original program starts.

Add a new key in the registry under

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\

with the name of the executable you want to intercept, inside that key, you create a Debugger string value and set it to the path of your VB.NET application.

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

79172612

Date: 2024-11-09 11:13:32
Score: 3.5
Natty:
Report link

work@tech doesn't handle inputs very well. You can still do it by selecting "Custom input" under your code, and type your input in the textbox which is appearing:

enter image description here

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

79172605

Date: 2024-11-09 11:10:31
Score: 1
Natty:
Report link

From version 1.7.0-alpha06 on the new non-Experimental way to do that is:

LazyColumn {
    items(...) { 
        Card(
            modifier = Modifier.animateItem(),
            ...
        ) {
          ...
        }
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ivan Carracedo

79172602

Date: 2024-11-09 11:09:31
Score: 1
Natty:
Report link

I am a bit late (nearly a year), i had issues with RDS proxy for postgres and I was able to successfully connect to the DB using the proxy by modifying some settings in the proxy:

Also make sure the security group rules allow the traffic to pass between the proxy and the db

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

79172599

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

    // Fill in IP header
    iph->ip_v = 4; // IPv4
    iph->ip_hl = IP_HEADER_SIZE / 4; // Header length in 32-bit words
    iph->ip_tos = 0; // Default Type of Service
    iph->ip_len = htons(IP_HEADER_SIZE + TCP_HEADER_SIZE); // Total length of the packet
    iph->ip_id = 0; // Identification (random value or 0)
    iph->ip_off = 0; // Fragment offset
    iph->ip_ttl = 255; // Time to Live
    iph->ip_p = IPPROTO_TCP; // Protocol (TCP)
    iph->ip_src.s_addr = src.sin_addr.s_addr; // Source IP address
    iph->ip_dst.s_addr = dst.sin_addr.s_addr; // Destination IP address

    // Calculate IP header checksum
    calculate_ip_checksum(iph);

that's how i build the IP headers.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: נהוראי יפרח

79172583

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

Inside the "settings.gradle.kts" file, move "mavenCentral()" above "google()"

repositories {
        mavenCentral()
        google {
            /*stuff here*/
        }
        gradlePluginPortal()
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: confusedScreamer

79172580

Date: 2024-11-09 10:56:27
Score: 4
Natty:
Report link

mv[mv['title'].str.contains('toy',na=False,case=False)==True]

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

79172579

Date: 2024-11-09 10:56:27
Score: 0.5
Natty:
Report link

In my case the S character inside the connection string value from appsettings.json was not escaped correctly.

I had "Data Source=MYACER\SQL2022MYDB...." and after correcting the \ character to be double \ it worked ok.

There was also an error indicated in Visual Studio for appsettings.json file about this which I did not notice initially. So this falls into incorrect syntax in appsettings.json for the connection string, make sure the syntax is ok in there.

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Low reputation (1):
Posted by: florinfmp

79172565

Date: 2024-11-09 10:48:25
Score: 2.5
Natty:
Report link

You need to set up the run configuration with exec:java, not exec:exec. This was the problem for me at least.

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

79172556

Date: 2024-11-09 10:43:24
Score: 2
Natty:
Report link

I had to debug an open-source PE analyzer to find out how it's calculated. The formula is:

Offset (actual address) = DataRVA - Section.VirtualAddress + Section.PointerToRawData

where Section.VirtualAddress <= DataRVA < (Section.VirtualAddress + Section.VirtualSize).

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

79172553

Date: 2024-11-09 10:40:23
Score: 2
Natty:
Report link

Another thing I found out is that, even if you set lockVisible: true to prevent hiding the column when dragged out, it still shows the crossed eye icon which can be confusing since the functionality is disabled. To fix this, you can edit the library by searching for "hide: create", and replace the created icon by "dropNotAllowed". It will now show the not allowed icon instead.

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

79172543

Date: 2024-11-09 10:33:22
Score: 1
Natty:
Report link

I have long way to plot the contour in basemap after masking what ever data LAND or OCEAN that you wanted with global_land_mask follows (pardon for forgetting the original thread) for this as follows. I am also looking the fastest way on how to do this. Maybe our friends here can help us.

import numpy as np
import glob
from global_land_mask import globe

##### searching current folder path 
path0 = os.getcwd()
print(path0)


################################################         
path1=path0+'/50-Merging/'
##os.makedirs(os.path.dirname(path1), exist_ok=True)

path3=path0+'/90-Masking-OCEAN/'
os.makedirs(os.path.dirname(path3), exist_ok=True)

folder1=glob.glob(path1+'Corr-*.dat') 
#folder1=glob.glob(path1+'Corr-APR.dat') 


for files1 in folder1:
    print (files1)
    dates=files1[-7:-4]

    print(dates)

    data4=np.loadtxt(files1)
    lat=data4[:,0]
    lon=data4[:,1]
    rain_ave=data4[:,2]
    print(max(rain_ave))
    
    lat_min=min(lat)
    lat_max=max(lat)
    lon_min=min(lon)
    lon_max=max(lon)

    lats=[]
    lons=[]
    # for y,x in zip(lat,lon):
    #     land=globe.is_land(y,x)
    #     if land == True:
    #         lats.append(y)
    #         lons.append(x)           

    for y,x in zip(lat,lon):
        ocean=globe.is_ocean(y,x)
        if ocean == True:
            lats.append(y)
            lons.append(x)

    in_lats1=lats
    in_lons1=lons
 
########## methods finding 3rd value using closer points #################        
    ind=[]
    for i in range(len(in_lats1)):
        dist=(lat-in_lats1[i])**2+(lon-in_lons1[i])**2
        ind.append(np.where(dist==np.min(dist))[0][0])
    
        lat2=lat[ind]
        lon2=lon[ind]
        param_model2=rain_ave[ind]
       
    data3=np.array([lat2,lon2,param_model2])
    data3=np.transpose(data3)
    
 
    fmt1='%s'
    np.savetxt(path3+'90-Masking-OCEAN-'+dates+'.dat',data3,fmt=fmt1,delimiter='\t')

Finally you can plot contour using regular methods from data3 the one you saved above. Hope it helps. sample of masking LAND for rainfall

Reasons:
  • Blacklisted phrase (2): I am also looking
  • Whitelisted phrase (-1): Hope it helps
  • RegEx Blacklisted phrase (1): help us
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Azam

79172540

Date: 2024-11-09 10:31:21
Score: 3.5
Natty:
Report link

These issues will help to get insights:

PS: it is old post but anwer will help anyway to others

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

79172539

Date: 2024-11-09 10:29:21
Score: 2
Natty:
Report link

When you want to use a ` inside a template literal, you need to escape it with \, otherwise it ends the literal. You have several places in your code where you've written `` inside a template literal without escaping it; this ends the literal and then tries to use it as the tag for a new one, thus the error that a string is not a function.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Pixievolt No. 1

79172535

Date: 2024-11-09 10:25:20
Score: 2.5
Natty:
Report link

Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur doloremque eveniet sapiente provident, adipisci hic quos officia facere laboriosam libero molestiae quis praesentium dignissimos voluptatibus expedita aliquam asperiores eaque odit https://bestgrowthpartners.com/[enter link description here]1

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

79172518

Date: 2024-11-09 10:15:18
Score: 2
Natty:
Report link

The Spark UI provides information about the application's execution, including the classpath of the executors. You can analyze this information to identify potential dependency issues.

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

79172514

Date: 2024-11-09 10:12:17
Score: 0.5
Natty:
Report link

Installing mysqlclient on macOS

If you encounter this error on macOS, first install MySQL and pkg-config using Homebrew:

brew install mysql pkg-config

Then install mysqlclient using pip:

pip install mysqlclient

reference: mysqlclient repository on GitHub

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

79172507

Date: 2024-11-09 10:06:16
Score: 2
Natty:
Report link

Here's the full response with the additional line included:


First, check your environment variables to ensure the paths are set correctly:

  1. Check Environment Variables:

    • Open the terminal and run:

      echo $JAVA_HOME
      
    • This should display the path to Java 17 (e.g., C:\Program Files\Java\jdk-17 on Windows).

    • If you're on Windows, check the JAVA_HOME path in the Environment Variables section:

      • Go to Control Panel > System > Advanced system settings > Environment Variables
      • Ensure that JAVA_HOME points to the Java 17 path (C:\Program Files\Java\jdk-17) and not Java 21.
  2. Verify Path Variable:

    • Check if the Path environment variable includes JAVA_HOME\bin.
    • Remove any references to the old Java 21 path if present.
  3. Invalidate Gradle Cache:

    • Run the following command to clear the Gradle cache:
      ./gradlew --stop
      ./gradlew clean
      
  4. Restart the Terminal or IDE:

    • Sometimes, the terminal or IDE needs a restart to recognize updated environment variables.
  5. Verify Gradle JDK Configuration:

    • In Android Studio, navigate to File > Project Structure > SDK Location and ensure that the JDK location points to the Java 17 installation path.
    • Additionally, check File > Settings > Build, Execution, Deployment > Build Tools > Gradle and make sure the Gradle JVM is set to Java 17.

After these steps, running ./gradlew signingReport should ideally pick up the Java 17 path and generate the SHA key.

If this answer helps you, please give it a like!

Reasons:
  • RegEx Blacklisted phrase (2.5): please give
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sagor samadder

79172504

Date: 2024-11-09 10:05:15
Score: 0.5
Natty:
Report link

The way of getting the server icon url changed. The icon is stored as an Asset in guild.icon, if an icon is set. The URL of an Asset is stored in the url field.

def get_logo_url(guild: discord.Guild) -> Optional[str]:
    if guild.icon is not None:
        return guild.icon.url
    return None
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: micharaze

79172500

Date: 2024-11-09 10:03:15
Score: 2.5
Natty:
Report link

from langchain_experimental.prompt_injection_identifier import hugging_face_identifier.

i m getting this error: TypeError: cannot pickle 'classmethod' object

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Koushik On Strings

79172494

Date: 2024-11-09 09:58:14
Score: 0.5
Natty:
Report link

I had to call aspectRatio before .frame() so the image doesn't stretch

Image(imageName)
    .resizable()
    .aspectRatio(contentMode: .fill)
    .frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height/2)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aleksey Khokhrin

79172492

Date: 2024-11-09 09:56:13
Score: 3.5
Natty:
Report link

Split fridge service and repair ka kam kiya jata ha càll kare

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

79172487

Date: 2024-11-09 09:53:12
Score: 4.5
Natty: 5
Report link

This works! Thank you online stranger!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shafiq Ramli

79172486

Date: 2024-11-09 09:52:11
Score: 2.5
Natty:
Report link

1.Trim whitspace- ensure numStr doesn't contain any leading space 2. Handle Errors- add exception handling to catch invalid strings

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

79172484

Date: 2024-11-09 09:52:11
Score: 1
Natty:
Report link

I've resolved my issue, that produced the very same error message by updating a dependency:

I use esp32-wifi-manager, originally from https://github.com/tonyp7/esp32-wifi-manager, which doesn't seem to be maintained any more and isn't compatible with idf 5.

I changed my version to https://github.com/huardti/esp32-wifi-manager, now the inlclude works. So, maybe one of your dependencies is causing the problem.

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

79172477

Date: 2024-11-09 09:46:10
Score: 1.5
Natty:
Report link

use destructuring of the object

const { page, poster, title } = item;

And also check with the dev tools on Brower by ctrl+shift+i for proper availability of link.

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

79172476

Date: 2024-11-09 09:46:10
Score: 1
Natty:
Report link

These are not the same thing, because Kotlin is statically typed language.

In the first case, you declare the variable result as Int, because x*2 is of Int type, as far as x is of Int type. And later try to assign a String value to it. Of course, this causes a type mismatch exception.

In the second case, you declare the variable as String from the very beginning, and assign a String to it latet. Everything is fine here. No error occurs.

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

79172475

Date: 2024-11-09 09:46:10
Score: 0.5
Natty:
Report link

The reason of this issue is that after the 20240727 MSYS release changed the way command line arguments are translated from the wide char.

Original reply on the MSYS Github page: https://github.com/msys2/MINGW-packages/issues/22462#issuecomment-2465927832

Patch which changes behaviour: https://github.com/mingw-w64/mingw-w64/commit/0d42217123d3aec0341b79f6d959c76e09648a1e#diff-32a4eaf3a9253a85d560f22d0c4ff81f12df6ef6977450bba36be2415dd425a3R148

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-2):
Posted by: Nickolay Olshevsky

79172472

Date: 2024-11-09 09:45:10
Score: 1
Natty:
Report link

My issue was that I am in Europe and the France node of GitHub was incredibly slow. I connected using VPN to US, and then it finished in a couple of seconds.

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

79172467

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

first add a class to v-data-table, then:

.my-table-class thead:first-child{
background-color: red;

}

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

79172466

Date: 2024-11-09 09:41:09
Score: 2.5
Natty:
Report link

Review your transformations with Explain Plan to ensure they are deterministic. Avoid operations that rely on random number generation or system time, as these can introduce indeterminacy.

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

79172463

Date: 2024-11-09 09:39:09
Score: 2
Natty:
Report link

There are default migrations inside apps. When you start an app you should first install it inside the 'settings.py' file and then perform the 'python manage.py migrate'. Your problem is that you've first performed the 'migrate' and then installed the app.

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

79172459

Date: 2024-11-09 09:36:08
Score: 0.5
Natty:
Report link

You can add envinronment variables(system variables) to change default location of nuget package. For this add(if your system do not have it otherwise edit that) NUGET_PACKAGES system varible into your system environment variables as bellow images.

enter image description here

Then you can test it with this cli command:

dotnet nuget locals -l all

As bellow image global-package must be change to your new location. enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Ali Rasouli