Latest Questions

Any idea how i can versioning my graphql API?

In rest API , we could version our APIS like this : example.com/api/v1/ And what is the idea when using a single GraphQL endpoint ? Thanks.

Convert datetime column to UNIX epoch timestamp using SSIS

I have a column from a CSV that stores datetime. I need to be able to do some simple calculations on the seconds of that datetime field. I want to know how I ca

DiscordJS V13 Mentioning a role

Can someone help me with these code? What I want to happen here is when an admin mentions a role, I want it to do nothing or maybe send a reply like "You mentio

17 renderings before showing view - React JS

I'm starting in React. I'm working on an old project that does 17 renderings before showing a view. I have no idea where the problem is. Has anyone ever experie

Where to find Base64-encoded Certificate on Twilio?

I received WhatsApp approval to use the WhatsApp Business API via Twilio, but can't seem to find the Base64 on my Twilio account. Following the instructions her

How to get VUEX's value

vuex store/modules/cafes.js import CafeAPI from "../../apis/cafe.js"; export const cafes = { //status = 0 -> 数据尚未加ů

How can I solve a "MongoError: E11000 duplicate key error collection" error in Mongo?

I have created a new Mongo collection to a new project, but when I try to create a new user, I get the following error: MongoError: E11000 duplicate key error c

Is there a way to use Tesseract OCR for Java without specifying the path of the image?

I am currently creating a spring boot application that allows the user to store a database of books to organize and search throughout. I have added a feature wi

Pandoc Matching Intellij Preview

When I'm building the markdown files, the preview looks really good. But, when I run the following pandoc command, it doesn't look good at all! pandoc --from m

collaborating address columns from multiple tables into one column (3million rows)

I have a table that looks like this common_id table1_address table2_address table3_address table4_address 123 null null stack building12 null 157 123road stree

Send heavy data through protobuf. Custom field

I'm developing the API for the application using protobuf and grpc. I need to send the data with the arbitrary size. Sometimes it is small, sometimes huge. For

How to Initialize 2d ArrayList with 0 in one line

How to Initialize all the element of 2d Array List in Java with 0 in single line of code without using for lop. ArrayList of m rows and n columns. How to initia

AppSync wrong id for schema in DynamoDB

I am using a graphql API with AppSync that receives post requests from a lambda function that is triggered by AWS IoT with sensor data in the following JSON for

set.seed in for loop

I'm doing some analysis and I had to impute some values. To do so, I write this chunk of code: A) set.seed(1) for (i in 2:length (Dataset[-c(8,11)])) { D

Generating a Non Linear equation in Python like an excel output

I have some sample data below: Freemium: 0.5, 0.3333 , 0.1666, 0.0466, 0.0466, 0.1, 0.1666, 0.3333, 0.5 Minutes:0, 60, 120 ,180 ,240 ,300 ,360 ,420, 480 I want

ASP.NET Web API work cors with identity server 4

I try to connect the ASP.NET Web API (not .NET Core) with identity server. I use owin as startup but I get a cors error. Why does cors app.UseCors(Microsoft.Owi

Is it possible to use wildcard_constraints to exclude certain keywords from being matched Snakemake?

I have a rule that calculates new variables based on a set of variables, these variables are separated into different files. I have another rule for calculating

How to filter a Django model to display only the logged-in user's data?

Trying to solve this for a week now. How do I filter my model to display only the data assigned to the specific logged-in user? My views.py code below is not wo

How to address the "Lock was destructed while held" Visual C++ runtime assertion

In a program that uses DirectX to render a 3D component I use a dedicated rendering thread that apparently gets created if I call DispatcherQueueController::Cre

Flutter screen size without AppBar and BottomNavigationBar

I am trying to get the exact size of the screen without taking into account the AppBar and BottomNavigationBar Here is the code: double screenSize = MediaQuery.

Where to find CPANEL object file Path on Localhost and Live server

sorry if my question might sound silly. I am trying to create an email address with Cpanel UAPI with LiveAPI.php but I seem to be lost on some codes. The docume

JSON Database doesn't work correctly as per REST technique

I created a JSON server and this is the data that I'm using. However, when I'm trying to query the examlist and relate it to the students (i'd like to receive t

Bootstrap table with "Filter Control: and server site

I try use bootstrap-table with Filter Control. After I change filter value and load data from ajax my filter value is cleared. <table id="table" data-tog

Why doesn't AWS DMS successfully migrate GMT/BST timestamps from and to RDS PostgreSQL databases?

I'm using AWS DMS 3.4.6 to migrate a PostgreSQL 13.6 database to another PostgreSQL 13.6 database, both in AWS RDS. One particular column in my database is a ti

Go from long to wide using tidyr's pivot_wider

I have a simple long df where every element in the fi column should be a new column in the wide df. So the new df should have 10 columns A:J. The wide df should

SNP_SESSION Table shows value null in ERROR_MESSAGE column

I tried fetching error message from the snp_session table in ODI 12C. I have explicitly inserted erroneous data in order to get an error. But that error is not

'The "path" argument must be of type string. Received null' in electron-json-storage

I'm using eletron-json-storage like this: settings.js: const storage = require('electron-json-storage'); const defaultStoragePath = storage.getDefaultDataP

.NET MAUI Build Error somerandomstuff1084

When I run my MAUI Blazor project without any packages installed, it runs fine. The trouble starts when I try to download EF Core packages (specifically base, t

Is it worth adding zeros to rows of uneven number of columns in a list of lists?

I have a working Haskell example of how to do it when we want to add zeros to the left and to the right of a list as two separate functions, and I did it becaus

Blazor Razor Class Library (RCL) No CSS Intellisense

I have a razor class library (RCL) that contains all the pages from my blazor application. The CSS intellisense does not seem to work within the RCL unless I ch