Latest Questions

Can you run the Opacus privacy engine with pytorch SequenceTaggingDataset?

I am trying to adapt a pytorch Named Entity Recognition model to incorporate differential privacy with the Opacus library. My model uses torchtext to build the

Change background color in Bootstrap 5 multi level dropdown menu

anyone tried to changed the background color in multi-dropdown menu in bootstrap 5? the original code is here https://bootstrap-menu.com/demos/multilevel.html I

Python function to iterate each unique column and transform using pyspark

I'm building the following global function in Pyspark to go through each column in my CSV that is in different formats and convert them all to one unique format

GET method gives success but PUT method gives 401 despite same credentials

The problem Overview When getting products using a GET method everything works when trying to update a product using PUT method I get 401 unauthorized I use sam

Having trouble using List.js to filter student profiles in JavaScript?

I am trying to filter student profiles via an input field. JavaScript grabs the data via an API and then using a return function I display the data on an HTML p

razor pages culture value is lost after redirecting to identity pages

I have created razor pages web application with multiple language support, it is reading the first part of URL and tries to show the content with the correspond

Fake client behaviour when mocking k8s for testing

I am using the fake clientset to perform some mocking in a k8s cli tool I am creating. Therefore I am creating a Job resource jobs := clientset.BatchV1().Jobs(m

Check if "Remove permissions if app is unused" is disabled for a particular app

How can I programmatically determine whether the "Remove permissions if app is unused" setting is enabled or disabled for a particular app?

How to delete multiple records from different classes in django?

It seems that whenever I run it and delete records I get server error (500) but it deletes the the data of class Bscs1_1 but for the rest of the classes it does

Parent Process Directory not recognized by the Icon and Background Image fields in Windows Terminal

Windows Terminal version 1.12.10732.0 Windows build number 19043.1645 Issue Forgive me if this has been addressed already somewhere else, but I realized that wh

Displaying Cooldown In Seconds in On_Message in Discord.py

EDIT: I solved it, I just simply looped the asyncio.sleep and set a variable for the cooldown in seconds. :) I'm new to discord.py and I just started developing

Scanning log file using ForEach-Object and replacing text is taking a very long time

I have a Powershell script that scans log files and replaces text when a match is found. The list is currently 500 lines, and I plan to double/triple this. the

Gnuplot: Use of "graph 0" and "graph 1" when drawing rectangles

I'd be happy about some enlightenment on the use of "graph 0" and "graph 1": Goal is to draw rectangles into a graph, but while painting the whole background wo

Use an SSIS parameter inside of an Execute Operation

I have an SSIS package with a parameter параметром $[Project::MyParam]. Inside the SSIS package I ha

"Hello from the pygame community"

When I executed the following code, instead of an error it said "Hello from the pygame community. https://www.pygame.org/contribute.html". It would be easier fo

Regular expression to match pattern and text afterwards until that pattern occurs again, then repeat

I'm trying to write a regex for my Kotlin/JVM program that satisfies: Given this line of text {#FF00FF}test1{#112233}{placeholder} test2 It should match: Match

Compare two controls value validation

About I am trying to compare the value of password and confirm password and if found mismatch then message to be shown. Due to some reasons it shows nothing. Am

blogger authentication issues in android

I am working on blogger api and i am using this method to request blogger accesstoken, but problem is if user not select Manage your blog option and continue th

why this code isn't working in real-time pleace cheack this code [closed]

this code isn't working in real-time.. it works only whenever I restart/refresh the app. I am using Cloud Firestore. plzz change code am noob

Error occurs in pycharm debugger is gone when `print()` is added

The code below fails only in pycharm debugger when the print statement is commented out and a breakpoint is placed on the last line containing a pass. It works

How to verify ReCAPTCHA token in js?

I have written the following function in js to verify a ReCAPTCHA token: export async function validateHuman(token) { const secret = "funny_little_secret";

Unity3D New Input System: Is it really so hard to stop UI clickthroughs (or figure out if cursor is over a UI object)?

Even the official documentation has borderline insane recommendations to solve what is probably one of the most common UI/3D interaction issues: If I click whil

Can't watch object instance with Riverpod

In a Flutter web project, I'm having this issue with Riverpod: Consumer( builder: (context, watch, child) { final om=watch(human); return Text(om.na

Rust application using GTK3 compiles without errors but run give error msg

I have a small application that if I do a println!("Hello World"); compiles and runs properly. If I change the source to ... let app = Application::bui

how to fix 404 not found error nginx on docker?

I'm trying to make docker file run in to react app.react app all ready successfully deploy but page reload get an error 404 nginx error. this is my docker file

Python modify the path of url without hacky string interpolation [closed]

How to use urllib.parse in python to modify the path of URI? I know I can use substring and index but I am wondering what is the right way to

Java Selenium register and handle unexpected notification element

In an effort to make my test project more robust, I'm trying to deal with an issue where an unexpected notification element on the page messes with my interacti

Error while loading the pytest module in Django project

I am trying to run pytest in a django project with it is showing me error of no module loading. I have created init.py in test folders, but that also not worked

How to validate data received via the Telegram's Web App

I'm trying to validate WebApp data but the result is not what I wanted. Telegram documentation: data_check_string = ... secret_key = HMAC_SHA256(<bot_token&g