Latest Questions

How to fix loading spinner when using useEffect Hooks with dependency list?

I am facing one problem when trying to add a spinner. My problem is when I add "product" dependency in useEffect hooks then my loading spinner always spinning a

Python Sdk Code Example for Splittable Dofns in Apache Beam

I am creating a dataflow pipeline in python in which i need to use FileIO because i want to access and keep track of the filenames processed. Everything is work

Angular Web Component routing reroutes to last component routed when we get back to the web component

We have built a web component with angular elements and consumed in a parent angular application. But the problem seems to be with the web component routing. It

using Moment with Angular library 13 causes an error

When i use the moment.js (latest version) in an angular library, i am facing the following problem: vendor.js:sourcemap:106713 ERROR TypeError: (moment__WEBPACK

Can I mix C++ and Swift in the same swift package, using the Swift Package Manager?

I would like to write one module in C++, and make some functions in C that are accessible in Swift. I am somewhat baffled, because no matter what I do, the SPM

Why converted images now shown as grayscale?

I am working on image compression problem, i want to convert the images from 3 channel to 1 channle , i used tf.image.rgb_to_grayscale(img_data_array, name=None

Question about the declaration about the aliasing constructor for `std::shared_ptr`

I think the 8th constructor of the std::shared_ptr<T> should be decalared as template< class T, class Y > shared_ptr<T>( const shared_ptr<Y

EF Core 5.0 Many-To-Many delete from nested collection

My models are like this (simplified): public class Request { public string Id { get; set; } public List<Tag> Tags { get; set; }

laravel jetstream login and register layout is spoiled

enter image description hereI want to create login and registration with the help of jetstream in laravel. i followed all steps perfectly but my jetstream logi

HardHat Unable to download compiler versions list

So this is my first interaction with hardhat. I created a sample project using npx hardhat but for some reason, when I try to Run: npx hardhat test I get the f

How to test onDismissRequest attribute of AlertDialog?

In its simplest form I have this dialog: @Composable fun MyDialog( showDialogState: MutableState<Boolean> ) { if (showDialogState.value) {

Java 7 Zip-JBinding Truncated zip file extracted from ISO

I am using below code (link to full code) to extract zip file which is inside iso file using 7-zip-JBinding. for (ISimpleInArchiveItem item : simpleInArchiv

Live normalized stacked area chart in Google Colab

I am training a neural network for binary classification on Google Colab. Each epoch, I evaluate it on the validation dataset and calculate the percentages of t

mkdir(): Permission denied error in php docker nginx

Im getting mkdir(): Permission denied error in dockerised php. I need to create folder dynamically inside /app , tried with mkdir('/app/images/' 0777, true) cho

How do I Import and run 2 scripts in SS 2.x?

I have a suitescript that imports 2 scripts. When the user presses a button it is supposed to run the first script and then the 2nd script. My issue is that onl

heroku: src refspec master does not match any

I'm hosting on Heroku. When I push: git push master Heroku I get the error: error: src refspec master does not match any. error: failed to push some refs to 'g

How to Deploy a ClearML Agent in a k8s setting?

I want to deploy a ClearML agent in the kubernetes environment while using the ClearML's Free Tier Demo server. I was able to deploy the Agent pod in the k8s cl

Right way to save timestamps to database in laravel?

As part of a standard laravel application with a vuejs and axios front-end, when I try to save an ISO8601 value to the action_at field, I get an exception. clas

Having Problems Plotting a 3D Map in R

I am having problems plotting a 3D map in Rstudio. Here is the code I used; plot_ly(myLocalClean, x = ~date, y = ~median, z = ~sales, opacity=0.5) #3D my resul

How to bypass "if" operator restriction and draw "hline"

trying to draw (and switch between) three lines above and below my base value. But I can't get it to work because "if" operator unable to use "line". Tried to r

ASP.NET Core Web API - How to implement optional validation using Fluent Validation

I have this validator using Fluent Validation in ASP.NET Core-6 Web API : public TransactionValidator() { RuleFor(p => p.Token) .Cascade(CascadeM

flutter_launcher_icons not working Unhandled exception: FormatException: Invalid number (at character 1)

I want to change my app icon in flutter using flutter_launcher_icons: ^0.9.2 It shows me errors while I'm running Command flutter pub run flutter_launcher_icon

How to make it so that the user cannot modify the sqlite3 database when distributing

I have created a python script that uses a database, which I have to pass in the file when compiling the .exe to a file. I would like to know if it is possible

i can't open IntelliJ IDEA 2021.3.1(FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed)

I have installed idea, and I cannot open idea by double-clicking the .exe file, so there is no response at all. If I choose to open idea.bat with the command li

how to change the directline secret key in a python bot on the Microsoft Botframework

I have a python chatbot (Bot framework) and I want to switch the conversation from the user and the bot to the user and a live agent using a secret key to the l

Ms Access Date function not passing in LIKE query

I want to query records from the access database that matches the current date (system date) The following query works fine if I enter the date literally. SELEC

Extra learners in mlr3 [closed]

I cannot use models in mlr3 other than random forest, part, knn, svm, gbm etc. I am using mlr3extralearners package but still it seems there a

Execute script on Azure Windows VM via Azure pipeline

I am using third party software for master data management. This software does not have API's to perform deployment across environment. It has command line util

Replacement for require in Vuejs 3 with Vite for image array

I'm currently switching to vite with vuejs and have the following problem: I have a component in debugging that displays images from a folder: imageArray: [

Simple app for tvOS - but not simple for me. Looping my movie

I'm total newbie in coding and are trying to make a small app for my own. This is working as I want but I've no idea how to make the movie loop? Tried to look e