Latest Questions

powershell regex replace using variable parameters when calling replace

I wondering how to make the following powershell code work with regular expressions. For example I want to call it like this: rename_file -OneFile proj1_file.t

How to apply max function in a join query?

I am new to SQL Server, I have 3 tables consider an employee table empid name location 1 abc USA 2 efg UK Another table named location-table location holida

How do i use chartjs in react project properly?

Im trying to use chartjs in my react project but it doesnt work. What am i doing wrong? You can see console logs here: logs import styled from "styled-compo

How to serialize protobuf message with schema id [closed]

Looking for a library or algorithm that implements serialization of a message in protobuf format with schema version which retrieved from conf

Finding distance between 2 coordinates in solidity

It is said that distance is equal to the following formula: distance = sqrt( (x2 - x1)**2 + (y2 - y1)**2 ) I do this exact formula in the function below. Howev

Issues on importing multiple files

I am new to R. Currently I have spent hours on Youtube videos looking to import a folder of CSV files for my data analytics project. The following are my codes:

With the YouTube API, how can I get the Unique viewer for a YouTube video?

It's confusing some doc says it's deprecated but other pages explains how to see it in the web interface. If it's visible from studio.youtube.com it should be a

Admob Banner randomly changing from BANNER to FULL_BANNER size with Jetpack Compose

I am integrating Admob's banners in my app, this app runs both in AndroidTV and Android, where it's running in mobile the dimensions must be 320x50(BANNER) whic

Low accuracy after testing hyperparameters

I am using VGG19 pre-trained model with ImageNet weights to do transfer-learning on 4 classes with keras. However I do not know if there really is a difference

HTTP Status 500 – Internal Server Error while uploading multipart/form-data

I am getting error when i uploading 20 MB Size of csv file in Spring MVC by using CommonsMultipartResolver library. I have done following setting in Config File

Creating Python zip for AWS Lambda using Bazel

I've a monorepo that contains a set of Python AWS lambdas and I'm using Bazel for building and packaging the lambdas. I'm now trying to use Bazel to create a zi

Issue with Spring batch metadata tables

I created the spring batch metadata tables using the following link in my own oracle database https://github.com/spring-projects/spring-batch/tree/main/spring-b

LiquiBase changeset: how do build a where clause based on ANOTHER table's column

Building upon the question How to build a WHERE-clause in a LiquiBase changeset, I would like to choose the default value of a column based on the value of a co

Apache Beam with Dataflow: flag 'ignore_unknown_columns' for WriteToBigQuery not working

I am building a streaming pipeline using Apache Beam (Python SDK version 2.37.0) and Google Dataflow to write some data I receive via Pubsub to BigQuery. I proc

Can't cast database type character to Guid

I updated my solution from .Net 3.1 to .Net 6. Also updated the Npgsql nuget package from 5.0.10 to 6.0.4 as part of this upgrade. Since then, I am receiving an

plotly dash link to local html file

i want to link a local HTML file to a plotly dash table. from dash import Dash from dash_table import DataTable import pandas as pd df = pd.DataFrame( {

How can I repair this error that occurs occasionally when my code is running?

Sometimes the code runs till the end without any errors while other times it stops in the middle and gives me this error Thread 1: EXC_BAD_ACCESS (code=EXC_I386

Caused by: java.net.SocketTimeoutException: Accept timed out

I am getting this error while running pyspark package in pycharm using python 3.9 using this below code. from pyspark.sql import SparkSession from pyspark.sql.t

How Blazor Server AOP logging?

I would like to implement and use an AOP logging in my Blazor Server .NET 5 (C# 9) application, for generic enter-exit-exception scenarios for the marked method

Hacking a site with wddl, CAEj and LsBb?

On occasion our site will get hit with what looks like a series of attempted attacks. The comments on our blog posts will look like this: "wddL" - 5057 said on

Thymeleaf + spring save new object instead of update

I am asking for a hint. I searched the internet for a long time for a solution to the problem, but I'm already desperate. I would like the update operation to u

Jetpack compose deeplink handling branch.io

I'm using branch.io for handling deep links. Deep links can contain custom metadata in a form of JsonObject. The data can be obtained by setting up a listener,

Remove punctuation at end of line in responsive text block

I have a list of a large number of Things divided by bars, i.e. Thing 1 | Thing 2 | Thing 3. They're in a responsive container and so I have no way of knowing w

How to Deploy Nuxt.Js Application on cPanel

I Have Created a Nuxt Application and I want to Deploy it on my client's Domain. The Domain was purchased from Namecheap.com and Hosting was Purchased from Couc

Is that posssible to post method use in 2 server side url

I added a form and from this value all I set in const then post in API express js server with MongoDB how can I post method use post in 2url const handleSubmi

Django : Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0

Error When Click Button for send data. Please Helping me to solve problem. Error When Click Button for send data. Please Helping me to solve problem. Error When

Pytest logging ignores dependency warnings

I have a simple python script that leads to a pandas SettingsWithCopyWarning: import logging import pandas as pd def method(): logging.info("info") l

Is there a way to exclude the "partitioned by" column from the hive?

I created the table by entering the command below. create external table test (A STRING, C STRING, D FLOAT) partitioned by (B STRING) ROW FORMAT DELIMITED FIELD

C++ Lua access violation when table size is above treshold

Recently I became Lua expert in my team due to an issue occurring when we want to send a large table to the following function: int native_sl_shootlaserpulse(

Add padding RSA PKCS#1 after hash SHA256 and before calling API of signature

In order to use a certificate stored in a distant HSM (using cloud signature), I'm actually trying to use an API that generates a PKCS#1.5 signature given a SHA