79348156

Date: 2025-01-11 13:19:56
Score: 1.5
Natty:
Report link

the newest method in Kotlin is this (not deprecated): after find your Image, use imageAlpha:value between 0 to 255

    img=findViewById(R.id.img1)
    img.imageAlpha=125
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Baharvand

79348155

Date: 2025-01-11 13:18:56
Score: 2
Natty:
Report link

Tested on GNOME Shell 42.9 on Ubuntu 22.04 LTS

Install dconf-editor then go to org/gnome/evince/defaut/zoom and set org.gnome.Evince allow-links-change-zoom to false

screenshot from dconf-editor

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

79348124

Date: 2025-01-11 13:01:52
Score: 1.5
Natty:
Report link

Wonderfox HD Video Converter Factory Pro Crack + License Key Download 2025

Wonderfox HD Video Converter Factory Pro Crack can change video and music formats and devices to more than 300. It works with every movie and audio format on the market. Many types can be changed, such as MKV, AVI, MTS, FLV, HTML5, TOD, and VOB. One example is that if you have a movie, your devices and format might not be able to play it.

DOWNLOAD LINK

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

79348122

Date: 2025-01-11 13:00:52
Score: 1
Natty:
Report link

I tried all of above options but nothing is working for me.

my appilication.properties

spring.application.name=spring-cloud-config-server
spring.cloud.config.server.git.default-label=main
server.port=8888
spring.cloud.config.server.git.uri=file:///C:/Java/Project/git-localconfig-repo
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sharayus

79348115

Date: 2025-01-11 12:58:52
Score: 3
Natty:
Report link

It seems the problem is that the Google Docs API doesn't allow access to published docs, only to docs that are shared with the appropriate permissions. So a workaround for accessing a published doc is to copy its contents to a shared doc and then access this doc instead.

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

79348107

Date: 2025-01-11 12:54:51
Score: 1
Natty:
Report link

You can do it by updating this 2 transform in CSS. You can also add transform-origin if needed

.dropdown-menu {
    transform: scaleY(0) translateX(-25%);
  }
  
.dropdown-menu.show {
    transform: scaleY(1) translateX(-25%);
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bhargav Tibadiya

79348105

Date: 2025-01-11 12:53:50
Score: 1
Natty:
Report link

To Slava.In,

In TypeScript $ is used to do interpolation for literals.

For example,

type World = "world";
type Greeting = `hello ${World}`;

is equivalent to

type Greeting = "hello world"

reference

Template Literal Types

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

79348095

Date: 2025-01-11 12:46:49
Score: 0.5
Natty:
Report link

It works on Google Colab (you can try on https://colab.research.google.com/):

import torchvision
import torchvision.transforms as transforms
trainset = torchvision.datasets.EMNIST(root="emnist",
                                   split="mnist",#letters #digits 
                                   train=True,
                                   download=True,
                                   transform=transforms.ToTensor())

Produces:

Downloading https://biometrics.nist.gov/cs_links/EMNIST/gzip.zip to emnist/EMNIST/raw/gzip.zip
100%|██████████| 562M/562M [00:10<00:00, 52.9MB/s]
Extracting emnist/EMNIST/raw/gzip.zip to emnist/EMNIST/raw
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kęstutis

79348094

Date: 2025-01-11 12:46:48
Score: 4
Natty: 4
Report link

To solve, you need to Add #include<stdio.h>

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

79348073

Date: 2025-01-11 12:34:46
Score: 0.5
Natty:
Report link

I think a combination of solutions is needed here. But it is certain that the "Ring/Silent switch" is controlled via "Audio Session Categories".

import SwiftUI
import AVFoundation

#if os(iOS)
    let AV_SESSION = AVAudioSession.sharedInstance()
#endif

@main struct app: App {

    var body: some Scene {
        WindowGroup {
            ...
        }
    }

    init() {
        #if os(iOS)
            try! AV_SESSION.setActive(true)
            try! AV_SESSION.setCategory(.playback)
        #endif
    }

}

Links:

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

79348070

Date: 2025-01-11 12:33:46
Score: 2
Natty:
Report link

Open VS Code. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac) and search for "Python: Select Interpreter". Select the Python interpreter where Streamlit and NumPy are installed. Save your changes and restart VS Code.

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

79348062

Date: 2025-01-11 12:25:44
Score: 5.5
Natty: 4.5
Report link

I want to plus my variables a = 10 b = 10 c = input("Enter number: ") print(c)

if I enter: a, b output = 10, 10 but I want output = 20 how?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: پایا بادلی

79348053

Date: 2025-01-11 12:21:42
Score: 4.5
Natty:
Report link

I'm encountering the exact same problem :(

Reasons:
  • Blacklisted phrase (1): :(
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hilton Sewell

79348047

Date: 2025-01-11 12:17:42
Score: 2.5
Natty:
Report link

I made a VSCode Extension for this. Mostly for myself but feel free to use it.

mouse-scroll

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Lowe Löwing

79348044

Date: 2025-01-11 12:15:41
Score: 2
Natty:
Report link

Get the country with max GDP in Europe via the inner query and then use outer query to get countries having more GDP than the result obtainer from inner query.

select name from world where gdp> ( select max(gdp) from world where continent='Europe' )

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

79348038

Date: 2025-01-11 12:13:41
Score: 1
Natty:
Report link

The factorial function is preferred over factorial_v2 because:

Direct Return vs. Variable Update:

factorial returns the result directly from the recursive call, which is more efficient and simple. factorial_v2 stores the result in the variable n and then returns it, which adds unnecessary complexity and potential inefficiency. Efficiency:

factorial is more memory-efficient because it uses the return value directly, while factorial_v2 stores intermediate results in a variable, which could lead to unnecessary memory overhead. Simplicity:

factorial is simpler and more readable as it immediately returns the result of the multiplication. In summary, factorial is the preferred version because it is more efficient, straightforward, and easier to understand.

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

79348036

Date: 2025-01-11 12:13:40
Score: 5
Natty:
Report link

I think Ubuntu 24.04 is using GTK4, I didn't know Ubuntu Budgie is using GTK3, but it's an issue for me to distribute in different packages in the same repository for this difference (Maybe someone could help).

Could you check this? Sorry for Google Drive, I don't want to upload this kind of tests to Github.

Best regards and thank you for the feedback!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • RegEx Blacklisted phrase (3): someone could help
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Costales

79348033

Date: 2025-01-11 12:11:40
Score: 1.5
Natty:
Report link

Finally, adding this simple chunck works fine after having created the intents variable:

intents.message_content = True

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

79348031

Date: 2025-01-11 12:11:40
Score: 0.5
Natty:
Report link

Same error on Google Colab.

Code:

!pip install extra-keras-datasets from extra_keras_datasets import emnist (input_train, target_train), (input_test, target_test) = emnist.load_data(type='mnist')

Error:

Downloading data from http://www.itl.nist.gov/iaui/vip/cs_links/EMNIST/matlab.zip
109889/109889 ━━━━━━━━━━━━━━━━━━━━ 0s 2us/step
---------------------------------------------------------------------------
BadZipFile                                Traceback (most recent call last)
 in ()
      1 from extra_keras_datasets import emnist
----> 2 (input_train, target_train), (input_test, target_test) = emnist.load_data(type='mnist')

2 frames
/usr/lib/python3.10/zipfile.py in _RealGetContents(self)
   1337             raise BadZipFile("File is not a zip file")
   1338         if not endrec:
-> 1339             raise BadZipFile("File is not a zip file")
   1340         if self.debug > 1:
   1341             print(endrec)

BadZipFile: File is not a zip file

This does not help !rm ~/.keras/datasets/*

Even !wget http://www.itl.nist.gov/iaui/vip/cs_links/EMNIST/matlab.zip !unzip matlab.zip

Produce error:

Archive: matlab.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of matlab.zip or matlab.zip.zip, and cannot find matlab.zip.ZIP, period.

Reasons:
  • RegEx Blacklisted phrase (1): Same error
  • Long answer (-1):
  • Has code block (-0.5):
  • Filler text (0.5): ━━━━━━━━━━━━━━━━━━━━
  • Filler text (0): ---------------------------------------------------------------------------
  • Low reputation (0.5):
Posted by: KęstutisV

79348015

Date: 2025-01-11 11:58:38
Score: 0.5
Natty:
Report link

That's expected. You slow down by factor 10 every time you reach a larger number of digits. Numbers with k+1 digits take about ten times longer to find than numbers with k digits. Because their first k digits are equally hard to find but then there's only a 10% chance that the extra digit also matches.

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

79348009

Date: 2025-01-11 11:55:37
Score: 3
Natty:
Report link

Your Network request is not completing properly, look for any CORS-related errors in the console. If you see such errors, you may need to Configure Your CORS

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

79348006

Date: 2025-01-11 11:53:37
Score: 0.5
Natty:
Report link

i successfully decided this problems!

views.py

i correct this stroke to transfer the reverse form to the template

return render(request, 'users/registration.html', {'form': form})

and correct this stroke

user = form.save()

as a result, the function looks like this

def registration(request):
    if request.method == 'POST':
        form = UserRegistrationForm(request.POST)
        if form.is_valid():
            user = form.save()  
            auth.login(request, user) 
            messages.success(
                request, f'{user.username}, Successful Registration'
            )
            return HttpResponseRedirect(reverse('user:login'))
    else:
        form = UserRegistrationForm()
    
    return render(request, 'users/registration.html', {'form': form})
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: bensoproglib

79348004

Date: 2025-01-11 11:53:37
Score: 3.5
Natty:
Report link

Found it, in the datasettings field in reportserver.dbo.Subscriptions

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

79348000

Date: 2025-01-11 11:50:36
Score: 0.5
Natty:
Report link

Firstly these can be better stored, when you come to search these lists for the value it will currently be O(n). The data can be better stored in the form of a Bag (a set which is a set that allows duplicates) of patterns, or a dictionary where the keys are the patterns. These are likely to be implemented with a binary tree or a hash table, leading to O(log n) or O(1) searches.

You will need to iterate over the patterns stored in both bags, a language agnostic way to achieve this would be to form a set (so you don't get duplicates) of all the patterns in both bags. However with many languages you may manage to avoid storing a new set by writing a custom iterator or generator with knowlege of both bags.

When it comes to interpret the results of the comparison, this will vary by how detailed an output you want, do you just want to know if there is any difference, or a count of total differences, or to know which patterns differ, or the total differences by pattern, and do you need to know which list has more/less of each pattern?

Assuming you just want the total differences the algorithm would be to:

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Neil Butcher

79347999

Date: 2025-01-11 11:50:35
Score: 7.5
Natty: 7
Report link

I have the same problem: CMD+SHIFT+RETURN no longer works!! Help!

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29153395

79347998

Date: 2025-01-11 11:50:35
Score: 1
Natty:
Report link

The input saudiArabia geojson is invalid because it's wound the wrong way. According to the spec polygons must follow the right hand rule.

The winding is likely being fixed (reversed from where you're standing) at some layer within Turf to make sure the output is valid geojson.

If you don't want your result wound according to the spec, it might be of help to note Turf has a rewind() function that includes a reverse option.

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

79347995

Date: 2025-01-11 11:48:34
Score: 4
Natty:
Report link

Thank you for your reply. Sorry for not posting clearly. The thing is there are already two rows displayed. I just need to copy all data of first row then paste into the content of second row

enter image description here

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Hung Pham

79347992

Date: 2025-01-11 11:46:33
Score: 2.5
Natty:
Report link

There's a great explanation of what can happen and why in the other answer, but for me it was simply that I named the Python file the same as the module name I was trying to import (as I was trying out multiple PDF readers).

This answer on another post gave me my correct answer: https://stackoverflow.com/a/77149577/1168168

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Craig

79347990

Date: 2025-01-11 11:44:33
Score: 3.5
Natty:
Report link

Warning you are getting that 6781972fa25a3e577395c444 is not valid UUID is correct its should look something like this e58ed763-928c-4155-bee9-fdbaaadc15f3, you can read more here https://www.baeldung.com/java-uuid

_id : ObjectId(6781972fa25a3e577395c444)

this is object identifier used by mongo which kind of suggests that uuid is not being mapped to your _id field,

May you share complete code for better understanding ?

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

79347979

Date: 2025-01-11 11:39:31
Score: 0.5
Natty:
Report link

If you encounter the issue of needing React hooks e.g. usePathname() in Axios interceptors but run into React’s rules of hooks error, you can resolve it by creating a React component. This approach leverages React states, effects, and hooks correctly while integrating them with Axios interceptors.

Example Solution

Below is an example of how to achieve this by wrapping your Axios interceptor in a React component:


import { PropsWithChildren, useEffect } from "react";

import { router, usePathname } from "expo-router";

import { useNotification } from "@/components/ui/notification";

import { api } from "./api";

export const AxiosInterceptor = ({ children }: PropsWithChildren) => {
  const route = usePathname();
  const unguardedRoutes = ["/login", "/register"];
  const isGuardedRoute = !unguardedRoutes.includes(route);

  useEffect(() => {
    /* ======================================== SUCCESS RESPONSE INTERCEPTOR */
    const responseInterceptor = (response: any) => {
      return response.data;
    };

    /* ======================================== ERROR RESPONSE INTERCEPTOR */
    const errorInterceptor = (e: any) => {
      /* ======================================== REDIRECT */
      const status = e.response?.status;
      const unauthenticatedStatus = [401, 403, 409];
      const isUnauthenticated = unauthenticatedStatus.includes(status);

      if (isGuardedRoute && isUnauthenticated) {
        router.replace("/login");
      }

      /* ======================================== RETURNS */

      return Promise.reject(e);
    };

    const interceptor = api.interceptors.response.use(responseInterceptor, errorInterceptor);

    return () => {
      api.interceptors.response.eject(interceptor);
    };
  }, [isGuardedRoute]);

  return children;
};


Usage

Wrap your root layout in the AxiosInterceptor component:


import { AxiosInterceptor } from "./AxiosInterceptor";

const RootLayout = () => {
  return (
    <AxiosInterceptor>
        <Stack>
            <Stack.Screen name="(tabs)" />
            <Stack.Screen name="(auth)" />
            <Stack.Screen name="+not-found" />
        </Stack>
    </AxiosInterceptor>
  );
}



Reasons:
  • Blacklisted phrase (1): how to achieve
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fathul Fahmy

79347977

Date: 2025-01-11 11:39:31
Score: 2
Natty:
Report link

You can save a script to create SPs to a text file and call this.Execute.EmbeddedScript

Execute.EmbeddedScript("script.sql");

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

79347975

Date: 2025-01-11 11:36:30
Score: 0.5
Natty:
Report link

You can use $(Configuration) and the VS build system will expand it during the build time.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Behnam Azizi

79347973

Date: 2025-01-11 11:34:30
Score: 1.5
Natty:
Report link

adding to knittl's answer: You can jump to a line number with

[line number] + capital G or end-key

and mark the line with y

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

79347961

Date: 2025-01-11 11:26:28
Score: 3
Natty:
Report link

I was having this same issue, tried running npm install @clr/ui @clr/angular @cds/core --force and I was able to install clarity.

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

79347960

Date: 2025-01-11 11:26:28
Score: 0.5
Natty:
Report link

After you modify the field of a widget you should call its Refresh() method.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: andy.xyz

79347955

Date: 2025-01-11 11:24:27
Score: 2
Natty:
Report link

Try vstack(spacing:0) to avoid spacing in between them . Or another way could be vstack(spacing:0){ spacer() lottieview Lottieview Spacer() } this is make sure you have the vstack and the images in center of the device

You said you want images on top of each other in that case you need zstack

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

79347946

Date: 2025-01-11 11:20:26
Score: 0.5
Natty:
Report link

I know it's late but I got a working version using setRawMode and overwriting process.stdout.write every time I need to disable/enable keyboard input.

const readline = require("readline");
const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
});
process.stdin.setRawMode(true)
process.stdin.resume()
KHGO={};
process.stdin.on('keypress', (str, key) => {
    KHGO[key.name] = true;
    setTimeout(() => {
        KHGO[key.name] = false;
    }, 100);
});

const originalWrite = process.stdout.write;
function disableKeyboard() {
    process.stdout.write = () => {};
}
function enableKeyboard() {
    process.stdout.write = originalWrite;
}


async function spell(string, ms){
    enableKeyboard()
    process.stdout.write("\n");
    disableKeyboard()
    let skipped = false;
    const characterArray = string.split("");

    //Write character by character if space is pressed write everything
    for (let i = 0; i < characterArray.length; i++) {
        enableKeyboard();
        process.stdout.write(string[i]);
        disableKeyboard();
        if (!skipped) await sleep(ms);
        if (KHGO.space) skipped = true;
        KHGO.space = false;
    }

    //wait until space is pressed to continue
    while(!KHGO.space){
        await sleep(1);
    }
    enableKeyboard();
}

function sleep(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}

(async function(){
    await spell("Example text",40);
    await spell("Example text2",40);

    process.stdin.setRawMode(false)
    process.stdin.pause()
})();

This way it's possible to disable writing to the terminal using disableKeyboard();and enable it withenableKeyoard();

Note that disabling the keyboard also prevents the program from writing. You must enable it again just before writing output.

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

79347945

Date: 2025-01-11 11:18:24
Score: 6 🚩
Natty:
Report link

Did you find a solution? I am interested in the same thing: getting incoming SMS'es transferred to the PC (R-script).

Reasons:
  • RegEx Blacklisted phrase (3): Did you find a solution
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you find a solution
  • Low reputation (0.5):
Posted by: Søren ONeill

79347940

Date: 2025-01-11 11:16:23
Score: 2
Natty:
Report link

if you have python installed then use

set PYSPARK_PYTHON=python else if you have python3 installed use python3 instead to check which one installed you can try python --version or python3 --version

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

79347936

Date: 2025-01-11 11:12:22
Score: 1
Natty:
Report link

In the Tool Bar on the top, go to Git, and a drop-down menu will appear. Click on Branches (or use the Shortcut Key Ctrl + Shift + ` ). A menu will appear regarding the branches of your repositories.

*In the newer versions of IntelliJ, you have to click on the 3 dots in the top left corner and then the Tool Bar will appear where you will find Git *

Under the Remote, you would have two branches, main and master. Click on the side arrow and delete it...

And you're all set. Next time you Commit and Push something, it will automatically be pushed to the main branch!!!

(To check if it works, after doing whatever I mentioned, click "Ctrl + Shift + K" and the Commit and Push window will appear. There, you will find "main -> origin : main" which is loudly telling out that it is going to push the changes to the main branch)

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

79347935

Date: 2025-01-11 11:11:21
Score: 1
Natty:
Report link

If you’re looking for a free and straightforward API for currency conversion, you can try Imhotep Exchange Rate API. It’s completely free and offers cached exchange rates updated every 3 hours, ensuring you get reliable data without exceeding limits. Example Usage:

To fetch the latest rates, make a GET request to:

https://imhotepexchangeratesapi.pythonanywhere.com/latest_rates/YOUR_API_KEY/USD

Example Response:

{ "meta": { "base_currency": "USD", "last_updated_at": "2025-01-10T00:00:00Z" }, "data": { "EUR": 0.85, "GBP": 0.74, "JPY": 110.25 } }

It’s free, easy to use, and works well for most mobile and web development use cases. You can learn more and sign up here: Imhotep Exchange Rate API.

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

79347930

Date: 2025-01-11 11:08:20
Score: 3
Natty:
Report link

Error suggest that your entity is being updated more than one place at a time. you can restrict this to happen by introducing @version on id.

You can follow below link. click here

To understand use of version annotation. click here

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @version
  • Low reputation (1):
Posted by: Sarmad Chandio

79347929

Date: 2025-01-11 11:07:20
Score: 3.5
Natty:
Report link

You need to save the updated list locally every time there is change in the order.

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

79347927

Date: 2025-01-11 11:02:19
Score: 2
Natty:
Report link

var filterdocument.querySelector("#turbulence' var frames = 0;var rad Math.PI/ 180;function freq Animation() {bfx = 0.005;bfy = 8.005;frames += .5;bfx + 0.0025 Math.cos (frames rad);bfy + 0.0025 Math.sin(frames rad);bf bfx.toString() + bfy.toString(); filter.setAttributeNS (null, 'baseFrequency', bf);window.requestAnimation Frame (freq Animation);}window.requestAnimationFrame (freq Animation);

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

79347917

Date: 2025-01-11 10:54:18
Score: 0.5
Natty:
Report link

If somebody has issues with creating/updating a record in SF after it was created in Heroku database you need to have a field that is Unique and External ID in SF object you map to Heroku DB. Also of course you need to add the field to mapping and check Write database updates to Salesforce using... and select the field. enter image description here

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Igor Vasylevskyi

79347901

Date: 2025-01-11 10:41:14
Score: 11.5
Natty: 7.5
Report link

I'm having the same problem. Have you found a solution?

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • RegEx Blacklisted phrase (2.5): Have you found a solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Feyz

79347900

Date: 2025-01-11 10:40:14
Score: 1.5
Natty:
Report link

to access the file you need the service account to have acces to the file you can do it by

Find your service account email from your JSON credentials file - it looks like: [email protected]

Open your Google Doc in the browser

Click the "Share" button in the top right

Add the service account email as an editor/viewer

Make sure to check these settings:

"Notify people" should be unchecked Click "Send" or "Share" to confirm

hopes it work

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: HAREL RAZ fightersheep

79347899

Date: 2025-01-11 10:38:12
Score: 4
Natty:
Report link

I am having the same issue now. When I try to go to https://github.atom.io/login I got redirected to https://github.blog/news-insights/product-news/sunsetting-atom/ That says:

January 30, 2023 Update: Update to the previous version of Atom before February 2 [...]These versions of Atom will stop working on February 2. To keep using Atom, users will need to download a previous Atom version.1.63.1 / 1.63.0

Mine is 1.60.0 x64

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Low reputation (1):
Posted by: Sidney

79347895

Date: 2025-01-11 10:37:12
Score: 3.5
Natty:
Report link

jangkrik belalang sapi kumbang badak

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

79347887

Date: 2025-01-11 10:30:10
Score: 0.5
Natty:
Report link

This is not the correct answer but just try this approach

    json["data"] != null && json["data"] is Map<String, dynamic>
  ? Data.fromJson(json["data"])
  : null
Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Кемал Каландаров

79347885

Date: 2025-01-11 10:30:10
Score: 2.5
Natty:
Report link

In my case I discovered that the SDK is intalling the wrong version of Simconnect dlls. (?!@!)

So their examle of SimvarWatcher was compiling and my projects were not. After questioning my sanity (no point to question Microsoft's sanity) I just copied the correct dlls, from SimvarWatcher.

At voila!

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

79347876

Date: 2025-01-11 10:25:09
Score: 2
Natty:
Report link

const run() { requestAnimationFrame(run); lete elems[0]; const ax=(Math.cos(3 frm) rad=width) / height; const ay (Math.sin(4* frm) * rad=height) / width; e.x += (ax + pointer.xe.x) / 10; e.y + (ay + pointer.ye.y) / 10; for (let i=1; i < N; i++) { lete=elems[i]; let ep elems [11]; const a Math.atan2(e.yep.y, e.xep.x); e.x += (ep.xe.x (Math.cos(a) * (1001)) / 5)/4; e.y + (ep.y- e.y + (Math.sin(a)*(1001))/5)/4; const s (162+4 (11)) / 50; e.use.setAttributeNS( null, "transform", translate($((ep.x + e.x) / 2}, ${(ep.y + e.y) / 2}) rotate(${ (180/Math.PI)*a }) translate(${0},${0}) scale(${s},${s})

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

79347863

Date: 2025-01-11 10:11:06
Score: 1.5
Natty:
Report link

Why not use:

 <a href="javascript:myJsFunc()">Run JavaScript Code</a>

Or am I missing a downfall with this method? I know its an old post but still people are looking for this.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why not use
Posted by: Henry

79347861

Date: 2025-01-11 10:10:06
Score: 2.5
Natty:
Report link

recursive set can, regular can not,

rec {
   a = 1;
   b = a;
}

vs

{
   a = 1;
   b = a;
}

https://nix.dev/manual/nix/2.17/language/constructs#recursive-sets

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

79347858

Date: 2025-01-11 10:06:05
Score: 2.5
Natty:
Report link

Thanks a lot for sharing this knowledge, not just this. Trainer class of hugging face has a lot of issues. Their evaluation loop involves first storing all the predictions and then computing the metrics. For NLP, this can take up a lot of memory and one may even face out of memory errors. It is best to write your own pytorch training loop.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Radhika Desai

79347857

Date: 2025-01-11 10:05:05
Score: 1
Natty:
Report link

The URL( https://app.snowflake.com/europe-west4.gcp) that you are using is Snowsight UI specific. To connect through a client or driver you must need account URL with .snowflakecomputing.com host.

Please follow the below syntax for building the Snowflake account identifier-

  1. account_locator.cloud_region_id or account_locator.cloud_region_id.cloud

For example, if your account locator is xy12345: If the account is located in the AWS US East (Ohio) region, additional segments are required, and the account identifier would be xy12345.us-east-2.aws

  1. orgname-account_name

For example, if your orgname is ab6789 and your account_name is xy1234 then, your account identifier would be ab6789-xy1234

Please refer to the below documentation for more information related to Snowflake account identifier- https://docs.snowflake.com/en/user-guide/admin-account-identifier

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

79347852

Date: 2025-01-11 10:00:04
Score: 1
Natty:
Report link

Many times when we encounter this error, we immediately think the problem is with the Module. In fact, many people believe the solution is to delete the node_modules folder and then run npm install, but that's not the solution. To fix this issue, it's quite easy—just disable your antivirus.

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

79347851

Date: 2025-01-11 10:00:04
Score: 2
Natty:
Report link

You can go to updated issues by you, and change the filter of Status to any. It will show all the updated issues by you. This assumes that you have updated only those tickets that were assigned to you.

It will give an estimate of all the tickets ever assigned to you.

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

79347849

Date: 2025-01-11 09:59:04
Score: 2.5
Natty:
Report link
  1. Delete node_modules
  2. Include "@testing-library/react": "^16.1.0" dependency in package.json
  3. npm i
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Luiz Imbroisi

79347848

Date: 2025-01-11 09:59:03
Score: 4.5
Natty: 4
Report link

A reply of mine was deleted, how to find out why? Presumably, as I was searching for an ffmpeg solution for days, caught in that tunnel, it was off-topic (not directly related to ffmpeg)?

I don't mind to be downvoted for good reasons, but it would be great (and fair) if one could find out why, so to do better next time. Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): why?
  • RegEx Blacklisted phrase (2): downvote
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: charlie

79347842

Date: 2025-01-11 09:56:02
Score: 3
Natty:
Report link

I finally solved this issue.

The UiPath CLI doesn't like the env.vars within the github pipeline, so using ${{ secrets.example }} is the way to go.

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

79347838

Date: 2025-01-11 09:53:01
Score: 0.5
Natty:
Report link

The culprit is the line:

this._div.innerHTML += "some info";

It destroys (and then recreates) all child elements of this._div so the event listener associated with the original button is lost.

If you replace this line with say:

let contentDiv = L.DomUtil.create("div", "info-content", this._div);
contentDiv.innerHTML = "some info";

the button will work as intended.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: the.real.gruycho

79347837

Date: 2025-01-11 09:52:01
Score: 3.5
Natty:
Report link

i just run "watchman" on my terminal and its working for me.

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

79347815

Date: 2025-01-11 09:29:55
Score: 1
Natty:
Report link

I solved this by adding ts-ignore

// @ts-ignore

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @ts-ignore
Posted by: Victor Odiah

79347807

Date: 2025-01-11 09:24:54
Score: 4.5
Natty:
Report link

from this link

you need to add /usr/bin/nologin to /etc/shells

enter image description here

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

79347805

Date: 2025-01-11 09:23:53
Score: 1.5
Natty:
Report link

That's a fascinating issue! Since the tag appears correctly in the browser's source code, it's likely a problem with how PageSpeed Insights is analyzing the page. Here are some potential solutions:

  1. Ensure Correct HTML Structure Verify that the tag is correctly placed within the section of your HTML document.

  2. Check for Dynamic Rendering Blazor Server uses dynamic rendering, which might cause issues with PageSpeed Insights. Try using the @page directive with the title attribute to set the title.

  3. Use the Meta Tag Add a tag with the name attribute set to "title" and the content attribute set to your desired title. This might help PageSpeed Insights detect the title.

  4. Disable Dynamic Rendering for PageSpeed Insights You can add a meta tag to disable dynamic rendering specifically for PageSpeed Insights:

However, this might affect your page's indexing.

  1. Test with a Different Tool Try analyzing your page with a different SEO tool, like Ahrefs or SEMrush, to see if the issue persists.

  2. Verify PageSpeed Insights Configuration Ensure that PageSpeed Insights is configured correctly and that the analysis is being run on the correct page.

  3. Report the Issue If none of the above solutions work, consider reporting the issue to the PageSpeed Insights team or seeking help from the Blazor community.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @page
  • Low reputation (1):
Posted by: user29151877

79347801

Date: 2025-01-11 09:18:52
Score: 3
Natty:
Report link

In the "suivant_callback," try editing the response outside of an "if" block directly to see what happens.

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

79347797

Date: 2025-01-11 09:16:52
Score: 0.5
Natty:
Report link

Just set the ANSI_NULLS option to OFF and it will be all right:

 SET ANSI_NULLS OFF;

Remember that disabling this role is not a good option, but we can use it to preserve performance.

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

79347793

Date: 2025-01-11 09:13:51
Score: 0.5
Natty:
Report link

This is Typescript solution and it works only for simple types as number, string:

function arrSameElements<T>(arr1: T[], arr2: T[]): boolean {
  if (arr1.length !== arr2.length) {
    return false;
  }

  const arrSet = new Set([...arr1, ...arr2]);
  return arrSet.size === arr1.length;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nenad Jeremic

79347787

Date: 2025-01-11 09:10:50
Score: 2
Natty:
Report link

By default Spark restart policies for both executor and driver pods are set to "Never" and that will override all Kubernetes configurations: link.

In the case, you need to restart, I guess you have to do with bash, kubectl scripts.

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

79347781

Date: 2025-01-11 09:05:49
Score: 0.5
Natty:
Report link

I had the same problem. I had a bad import. It must be like this

import "github.com/jackc/pgx/v5/pgconn"

var pgErr *pgconn.PgError
if errors.As(err, &pgErr) {
   // code ...
}
Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tomas Svojanovsky

79347778

Date: 2025-01-11 09:03:49
Score: 3
Natty:
Report link

Azure OpenAI Service quotas and limits are in this link: https://learn.microsoft.com/en-us/azure/ai-services/openai/quotas-limits

For different LLMs, the rate limits vary slightly. The limits consist of two components:

Below is the rate limit for GPT-4 and 4o model's rate limit:

GPT-4 and 4o model's rate limit

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: alibobo

79347776

Date: 2025-01-11 08:59:48
Score: 0.5
Natty:
Report link

I would say the best way to generically wrap all methods of a class, regardless the method is staticmethod, classmethod or any already-decorated method, is to use the Descriptor protocol.

You can read more about my solution in the blog post: https://asyncmove.com/blog/2025/01/all-decorators-systematically-decorating-python-class-methods/

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

79347771

Date: 2025-01-11 08:58:47
Score: 2.5
Natty:
Report link

Based on comments, it seems clear that what I’m trying to do simply isn’t possible with Rust. The lifetimes of the references I’m trying to use can’t be proven safe, so Rust won’t allow it. I need to switch to some design involving heap allocations and moves/copies of some data.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: abingham

79347767

Date: 2025-01-11 08:55:47
Score: 1.5
Natty:
Report link

I found an easy and perfect sln. Feel free to check, here are my files For reference check on git (https://github.com/bytechtechnologies/Create-CustomUser-in-Django) or YouTube (https://youtu.be/W11uZ8cbWuE)

models.py file

from django.contrib.auth.base_user import BaseUserManager, AbstractBaseUser
from django.db import models


class MyUserManager(BaseUserManager):
    def create_user(self, username, phone, password=None):
        user = self.model(
            username=username,
            phone=phone
        )

        user.set_password(password)
        user.save(using=self._db)
        return user

    def create_superuser(self, username, phone, password=None):
        user = self.create_user(
            username=username,
            phone=phone,
            password=password
        )

        user.is_admin = True
        user.save(using=self._db)
        return user


class CustomUser(AbstractBaseUser):
    username = models.CharField(
        max_length=150,
        unique=True
    )
    phone = models.IntegerField()
    is_active = models.BooleanField(default=True)
    is_admin = models.BooleanField(default=False)

    objects = MyUserManager()

    USERNAME_FIELD = "username"
    REQUIRED_FIELDS = ["phone"]

    def __str__(self):
        return self.username

    def has_perm(self, perm, obj=None):
        return True

    def has_module_perms(self, app_label):
        return True

    @property
    def is_staff(self):
        return self.is_admin

admin.py file

from django import forms
from django.contrib import admin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.contrib.auth.models import Group
from django.core.exceptions import ValidationError
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin

from .models import CustomUser


class UserCreationForm(forms.ModelForm):
    password1 = forms.CharField(label="password", widget=forms.PasswordInput)
    password2 = forms.CharField(label="password confirmation", widget=forms.PasswordInput)

    class Meta:
        model = CustomUser
        fields = ["username", "phone"]

    def clean_password2(self):
        password1 = self.cleaned_data.get("password1")
        password2 = self.cleaned_data.get("password2")

        if password1 and password2 and password1 != password2:
            raise ValidationError("passwords do not match")

        return password2

    def save(self, commit=True):
        user = super().save(
            commit=False
        )

        user.set_password(self.cleaned_data["password1"])
        if commit:
            user.save()

        return user


class UserChangeForm(forms.ModelForm):
    password = ReadOnlyPasswordHashField()

    class Meta:
        model = CustomUser
        fields = ["username", "phone", "password", "is_active", "is_admin"]


class UserAdmin(BaseUserAdmin):
    form = UserChangeForm
    add_form = UserCreationForm

    list_display = ["username", "phone", "is_admin"]
    list_filter = ["username"]
    fieldsets = [
        (None, {"fields": ["username", "password"]}),
        ("Personal info", {"fields": ["phone"]}),
        ("Permissions", {"fields": ["is_admin"]},
         ),
    ]

    add_fieldsets = [(
        None, {
            "classes": ["wide"],
            "fields": ["username", "phone", "password1", "password2"],
        },
    ),
    ]

    search_fields = ["username"]
    filter_horizontal = []
    ordering = ["username"]


admin.site.register(CustomUser, UserAdmin)

admin.site.unregister(Group)

settings.py file

# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'project1app'   # the name of your start app for example I named mine 'project1app'
]

AUTH_USER_MODEL = "project1app.CustomUser"  # name of your start app and name of user class for example my app name is 'project1app' and user class is CustomUser

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user24834406

79347765

Date: 2025-01-11 08:54:46
Score: 3
Natty:
Report link

I have it working with =IF(B2="Period 01",SUM(F6),IF(B2="Period 02",SUM(F6,I6),IF(B2="Period 03", SUM(F6,I6,L6))))

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

79347757

Date: 2025-01-11 08:46:44
Score: 3.5
Natty:
Report link

in my case to simplify resistor value

=IF(B1>=1000000; TEXT(B1/1000000; "0.0") & "M"; IF(B1>=1000; IF(MOD(B1;1000)=0;TEXT(B1/1000; "0") & "k";TEXT(B1/1000; "0.#") & "k"); B1))

Resistor k M converter

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

79347739

Date: 2025-01-11 08:32:42
Score: 4.5
Natty:
Report link

Same problem, just wannt import a custom function and git the same error. This sucks.

Reasons:
  • RegEx Blacklisted phrase (1): Same problem
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yannick Gogolin

79347733

Date: 2025-01-11 08:29:39
Score: 7 🚩
Natty: 5.5
Report link

I has same problem in Chisel 6.6.0, has you fixed the problem ?

Reasons:
  • RegEx Blacklisted phrase (1.5): fixed the problem ?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Chichi

79347731

Date: 2025-01-11 08:28:39
Score: 1.5
Natty:
Report link
text = "This is string, remove text after second comma, to be removed."
print(",".join(text.split(",")[:2]))

# result: This is string, remove text after second comma
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Сергей C

79347727

Date: 2025-01-11 08:25:38
Score: 4.5
Natty:
Report link

This likely to be a dependency issue. Which Sedona jar did you use? What environment are you using?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jia Yu - Apache Sedona

79347722

Date: 2025-01-11 08:18:36
Score: 1
Natty:
Report link

1.Check your Python version: Ensure that you are using a compatible Python version. The error message mentions Python 3.12, which is not an official Python release. Check the version of Python installed on your system by running python3 --version.

2.Update your system packages: Try updating the system packages, including the package manager (e.g., apt, yum, dnf) and the pip package. This may help resolve any underlying compatibility issues.

Update the package manager

sudo apt-get update sudo apt-get upgrade

Update pip

python3 -m pip install --upgrade pip

  1. and if it fails Reinstall Python
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: niyigena mike

79347718

Date: 2025-01-11 08:16:36
Score: 0.5
Natty:
Report link

git config --global http.postBuffer 157286400 git config --global http.maxRequestBuffer 1048576000

i tried this and it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user482401

79347704

Date: 2025-01-11 08:03:34
Score: 2.5
Natty:
Report link

Please check the devworkspace first

$ oc get devworkspace

If found, delete the DevWorkspace resource instead of the deployment directly

$ oc delete devworkspace <workspace-name>

Please check the potential parent resources

$ oc get all -l component=workspace036c85e5c44e4207

Also, please share the below files further discussion

$ oc get deployment workspace036c85e5c44e4207 -o yaml | grep -A 5 ownerReferences
$ oc get events --sort-by='.lastTimestamp' | grep workspace036c85e5c44e4207

Dr Vivek Yoganand, #openshift +9197864365245

Reasons:
  • RegEx Blacklisted phrase (2.5): please share
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dr Vivek Yoganand PhD-Red Hat

79347694

Date: 2025-01-11 07:51:31
Score: 1
Natty:
Report link

An alternative to setTimeout for managing animation state in React is to use React's state and effects along with requestAnimationFrame or a library like react-spring or framer-motion. Here's a simple explanation and example:

Using useEffect and State

You can manage animation state using React's useState and useEffect without relying on setTimeout.

import React, { useState, useEffect } from "react";

function AnimatedComponent() {
  const [isAnimating, setIsAnimating] = useState(false);

  useEffect(() => {
    if (isAnimating) {
      const timer = setTimeout(() => {
        setIsAnimating(false); // End animation after 2 seconds
      }, 2000);
      return () => clearTimeout(timer); // Cleanup timeout
    }
  }, [isAnimating]);

  return (
    <div>
      <button onClick={() => setIsAnimating(true)}>Start Animation</button>
      <div className={isAnimating ? "animate" : ""}>Animation Box</div>
    </div>
  );
}

Using Animation Libraries

Libraries like react-spring or framer-motion provide declarative and smoother animation management without handling timers directly.

Example with framer-motion:

import { motion } from "framer-motion";

function AnimatedComponent() {
  return (
    <motion.div
      initial={{ opacity: 0 }}
      animate={{ opacity: 1 }}
      transition={{ duration: 2 }} // Animation duration of 2 seconds
    >
      Animation Box
    </motion.div>
  );
}

Why Avoid setTimeout?

So friends, that's all for this post. For more tech-related information, visit our website TechGrabber, where we provide the latest tech reviews and updates in Hindi Language.

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: TechGrabber

79347684

Date: 2025-01-11 07:43:30
Score: 1
Natty:
Report link

Spark starts a Python process inside the worker nodes, and the UDF will run inside that Python environment. At this point, there are two processes running inside each worker:

  1. The JVM process, which executes the other transformations written in Spark SQL or PySpark.

  2. The Python process, which processes the UDF logic.

For the Python process to execute the UDF, the data must be transferred between the JVM process and the Python process. This involves serializing the data in the JVM process before sending it to the Python process. After the UDF processes the data row by row, the results are sent back to the JVM process. During this transfer, the data is deserialized in Python and then sent back again to JVM.

This movement of data between the JVM and Python processes, along with the serialization and deserialization, is the root cause of the slow behavior of Python UDFs in Spark.

For more information checkout the LinkedIn post: Why Python UDFs are slow in Spark

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

79347683

Date: 2025-01-11 07:42:30
Score: 4.5
Natty: 5
Report link

Thanks to everyone for matching

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nathan VOGLOSSOU

79347680

Date: 2025-01-11 07:36:28
Score: 0.5
Natty:
Report link

Qualify the username with server, like this:

$usr = 'DBF\netfiles'

And run elevated, otherwise your result will be "Access Denied".

That was all.

Funny how it works without server name qualification when using the non-global normal mapping call. That inconsistency threw me off.

I can make the mapping permanent (survives reboot) by using the Persistent argument.

Also, the drive letter created is accessible by Scheduled Tasks, even ones that have "Do not store password" enabled.

For reference the complete commands I used and that worked were:

$usr = 'DBF\netfiles'
$pwd = ConvertTo-SecureString -AsPlainText -Force 'the-password-for-this-user'
$rpa = '\\DBF\Movies'
$lpa = 'M:'
$creds = New-Object System.Management.Automation.PSCredential ($usr, $pwd)
New-SmbGlobalMapping -Persistent $true -Credential $creds -RemotePath $rpa -LocalPath $lpa
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Scott-In-The-Weeds

79347672

Date: 2025-01-11 07:26:26
Score: 1
Natty:
Report link

For me it was using both

implementation project(':react-native-gesture-handler') and

implementation 'com.swmansion.gesturehandler:react-native-gesture-handler:2.22.0'

in my app\build.grradle. When I added both, Gradle was trying to resolve the module from two different sources, which ledto conflicts. In particular, it might not find the version 2.22.0 if it’s not available in the configured repositories or if the project path resolves differently. I hope this helps! Thanks ChatGPT!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): hope this helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nickoli Parkinson

79347670

Date: 2025-01-11 07:24:26
Score: 0.5
Natty:
Report link

The solution is to use a drop-in replacement for the gym package, the gymnasium. The team switched all development there, and according to its GitHub page, the gym has not been developed since 2021.

https://farama.org/Announcing-The-Farama-Foundation
https://github.com/Farama-Foundation/Gymnasium

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

79347655

Date: 2025-01-11 07:09:23
Score: 4
Natty:
Report link

If it's not working, then you can manually verify the JWT token and then authorize. Here is the solution you can be found at:

https://medium.com/@shuvadebnathbd/how-to-manually-validate-a-jwt-token-in-middleware-for-asp-net-core-3d0df72d8885

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

79347652

Date: 2025-01-11 07:08:23
Score: 1
Natty:
Report link

I encounter the same error creation of the table and after having a long day, I mistakenly add String as type instead of Long

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private **String** id; <-- Long id;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DiaMaBo Dev

79347638

Date: 2025-01-11 06:59:21
Score: 1
Natty:
Report link

To create an href WhatsApp link to a number, you can use the official WhatsApp URL scheme. The format for the link is https://wa.me/, where you replace with the phone number in international format, excluding spaces or symbols. For example, if the WhatsApp number is +1234567890, the link would look like this: Message on WhatsApp. This link allows users to open a chat directly with the specified WhatsApp number. Ensure that the phone number is active on WhatsApp and that users clicking the link have WhatsApp installed on their device for a seamless experience.

Reasons:
  • Blacklisted phrase (1): This link
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Info team

79347637

Date: 2025-01-11 06:58:21
Score: 3
Natty:
Report link

I am using Django Channels to manage sessions for all chat requests. I recommend using a WebSocket connection instead of APIs for better performance and real-time communication.

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

79347634

Date: 2025-01-11 06:56:21
Score: 0.5
Natty:
Report link

You can use pinput package, it offers code input fields with options like autofill, haptics, obscure characters, etc.

pinput: ^5.0.0 Link: https://pub.dev/packages/pinput

I have used this in sevaral projects, works good to me in Android & iOs.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Devarshi Patel

79347609

Date: 2025-01-11 06:40:18
Score: 3.5
Natty:
Report link

Turns out the problem is that my phone was on power saving mode. Either turn it off or change the app's battery option to "Unrestricted".

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

79347605

Date: 2025-01-11 06:33:16
Score: 0.5
Natty:
Report link

Perhaps try using the path /testProp/array[2] rather than /testProp[2].

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Conal Tuohy

79347600

Date: 2025-01-11 06:24:15
Score: 0.5
Natty:
Report link

autorun.inf

[autorun]
icon=(`Image file here`)
label=The Name of Drive and stuff

This may not be script-like like the question might want, but it's simpler the JSON(, I might add!)

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

79347590

Date: 2025-01-11 06:08:13
Score: 0.5
Natty:
Report link

You can use tools like codeant.ai to automate AUTOSAR compliance.

Also you can refer to this simple guide for AUTOSAR to understand: https://www.codeant.ai/blogs/simple-guide-autosar-cpp14

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Rushabh Agarwal

79347588

Date: 2025-01-11 06:07:12
Score: 1.5
Natty:
Report link

It's useful when you disable nullable on a project file (<Nullable>disable</Nullable>) and you have to explicitely mark a reference as nullable.

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