Latest Questions

JSX code formart break on save using NextJS

I'm Facing a problem someone already posted here but there was no absolute answer. here is the question I'm facing exact problem. here is the broken code on git

How to insert this values into the database properly?

I have a file name log.txt It's structure it's kind of like this: 2022-04-28 22:33:02,290\\INFO\\Database connection established 2022-04-28 22:33:07,470\\INFO\\

python random_sample to generate values

I am currently using random_sample to generate weightage allocation for 3 stocks where each row values add up to 1 and I rounded them to 2dp. weightage=[] n = 0

Create Azure Data factory linked service or integration runtime directly in git mode wit rest api

I am trying to create linkedservices with restapi in gitmode but the linked service is still created in live mode. My API code was PUT https://management.azure.

Updating a Single Column In Room Database

That's the function I'm using for updat private fun updateSettingsDatabase(settingsDao: SettingsDao) { lifecycleScope.launch { settingsDao.u

Searching for matching attributes

My special objects have one list of attribute-values (that is a varying list of abbreviated strings of short but differing length meaning some capabilities of a

Narrowing down / speeding up search in extracted outlook shcedule

I am trying to find a specific subject in a shared outlook calendar on a specific date. The subject, the date and the shared calendar is passed as arguments. Th

How to extract data from Excel and output in txt file along with modified string using Python?

I have excel file with 2 tabs. First tab is "Summary" and 2nd tab is "Employee". The format of excel looks like below. Please note that below excel is for showc

Searching for matching attributes

My special objects have one list of attribute-values (that is a varying list of abbreviated strings of short but differing length meaning some capabilities of a

Firebase getting ID for specific node to delete/update

first time using Firebase and pretty new to android studio, i'm trying to make a schedule app where a user can create many schedules and it would be associated

How to draw a vertical line with double left click while using blitting in matplotlib?

I'm trying to write a program which would let user to create vertical line on the chart in the place of double left click. Actually I already can write this kin

Create new column using keys pair value from a dataframe column

I have a data frame with many column. One of the column is named 'attributes' and in it has a list of dictionary with keys and values. I want to extract each ke

NodeJS heapUsage unchanged when using fs.readFile vs streams

I've been learning about memory management in Nodejs and I'm trying to understand why the following two behaviors occurs: PS: I'm using the following utility fu

How do have modal pop up when hovering over bootstrap 5 card?

I was following a template I found online to have a modal pop up when hovering over my cards with bootstrap 5. This is my code so far: class SavedEpisodes exten

How to exclude tagged commit

I have a build pipeline in Azure Pipelines with trigger: branches: include: - '*' tags: include: - v/* In other words: I build all branches

Does Python API support SDT compression algorithm in the Apache IoTDB?

I use the Python API to access the Apache IoTDB.The statement is below session.create_time_series( "root.sg_test_01.d_01.s_03", TSDataType.FLOAT, TSEncoding.PL

React Router Link is not working. The Route changes but the component doesn't get rendered [duplicate]

This is the code in App.js import React, { Component } from 'react' import { BrowserRouter as Router, Route, Switch} from 'react-router-dom';

Popover in chrome extension using js

My goal is I want to create a chrome extension like Toucan Extension. I want to highlight some paragraphs in random site then translate it to specific language.

How to deal with mysqli problems? mysqli_fetch_array(): Argument #1 must be of type mysqli_result

In my local/development environment, the MySQLi query is performing OK. However, when I upload it on my web host environment, I get this error: Fatal error: Ca

Rename image that has been picked by imagepicker for flutter

I would like to rename the file that i already pick from my gallery by image picker, i already try the below method using renameAsync String dir = path.dirname(

python converting a list of strings into variable names [duplicate]

Ok so Basically I have this list. pets = ["mypets","herpets","hispets"] and as this list was generated from reading the lines of a text file t

how to change prettier format for react native

my code formatting prettier didn't works well for react native, i don't understand where to config it but it works well with flutter from this code import

How do you attach a TextFormatter to a TextField?

I am making a simple score sheet and I'm at the phase where I want to let the user create a custom sheet. Obviously I don't want them to just put in any integer

pivot_wider does not keep all the variables

I would like to keep the variable cat (category) in the output of my function. However, I am not able to keep it. The idea is to apply a similar function to m &

how to fill a complete column with arrayformula and containing Vlookup of base on a single cell criterion

I need this exact formula into V1:V column =VLOOKUP('Target Sheet'!$G$1,IMPORTRANGE("MYLIST","FileLInktoAgent!$A$2:$C$45"),2,0) That formula works perfectly fo

How to use Vite HMR API with Pixi.js

I'm trying to use the Vite HMR API to create a Pixi.js app that hot reloads without resetting its state. The high-level idea: main.js initializes Pixi.js so an

How to change current time in audio playback?

I am trying to play an audio file with an offset of 10 seconds into the recording: const audio = new Audio('audio.mp3'); audio.currentTime = 10 console.log('cur

C# - Adding condition to func results in stack overflow exception

I have a func as part of specification class which sorts the given iqueryable Func<IQueryable<T>, IOrderedQueryable<T>>? Sort { get; set; } W

MSB4018 Task Failed Unexpectedly when I run a blazor web app solution

Recently I try make my web pages with blazor webassembly because I want to make my web page more interactives, but when I run the solution, VS throw me the erro

x and y can be no greater than 2D, in the graph

fixing an error ValueError: x and y can be no greater than 2-D, but have shapes (23,) and (23, 12, 1) and to make my original graph with prediction graph line