Latest Questions

typescript conditionaly set function parameter

Im building api in my next app, this api will send message using firebase fcm admin. This is my code import type { NextApiRequest, NextApiResponse } from "next"

create a binary file after sorting a numbers with names

I'm trying to wirte a C Program, which sorting list of numbers with names from txt file and write it in a bin file but the problem is that i can't write the bin

Hapijs running test ignoring the leaks

I am building a web application using HapiJS. I am writing tests for my application. I am running the test using the following command: lab -v test/**/*.test.js

How to resolve 'getUserByAccount is not a function' in next-auth?

I've updated Nextjs to it's newest version and also updated next-auth and the prisma adapter as specified by the docs. However, when I try to authenticate in th

How to simulate api calls in C# using php file

I have an online reports viewer application that stores patients records as follows: Web application view: I have created a C# application that is meant to cap

Deployment gaps at fast pace growing application [closed]

Some context: I have little experience with ci/CD and manage a fast paced growing application since it saw the light of the day for the first

Parsing error: Cannot read file '\tsconfig.json' eslint after following Firebase Cloud Functions initialization instructions

Problem Right after my TypeScript project initialization in VSCode using firebase tools for composing Firebase Cloud Functions following the official documentat

Insert into multiple input fields using select2 and ajax in laravel

I am trying to use a single select request to retrieve data from database based on the search term "name" and populate my input fields using select2 so that i d

Error while building Bottom Navigation Bar Flutter

I'm new to Flutter and I'm trying to learn by imitating an app so please do not bash me too hard. First of all, I have this main_page.dart that looks like this.

Intellij - Gradle - Unable to build - Failed to apply plugin [id 'org.ajoberstar.grgit']

I am working on Intellij 2019.2.4 with Java 11.0.13 JDK and gradle 7.3.3 in settings. Gradle-wrapper.properties file has - distributionUrl=https://services.grad

Google Sheets Split function with Array

I have a table of current work hours in column A. Column B has newly assigned work hours. Column C just sums up the first two columns to show the new work hours

How to detect UI-Interactions in VS-Code using the extension API?

Is there a way to detect (listen to) UI-interactions that the user performs in VS-Code? Like for example clicking the "run" button directly in the editor window

Open the same app after downloading an a update

i'm doing a application update, and i've already code the part thats download and extracts content. now, i need to close current app, and open the same, but wit

Generate Xamarin.iOS bindings for HERE SDK 4

I'm trying to create the Xamarin.iOS bindings for the HERE SDK 4: sudo xcode-select -s /Applications/Xcode_12.4.app cd heresdk-navigate-ios-4.11.0.0.8

How to add TypeScript types to request body in Next.js API route?

Problem One of the primary reasons I like using TypeScript is to check that I am passing correctly typed params to given function calls. However, when using Nex

Android Studio memory profiler have some serious memory issues

I am trying to fix some memory leaks in my apps but I am always fighting with memory profiler instability itself instead of being able to focus on my task. Inte

Cosmos Nested JSON Query

This is the fist time that I work with CosmosDB and I am trying to create a Query to get some details about this JSON: { "Status": "Uploaded", "ProvidedOn": "20

GMB - Removal of LocationState object in Business Information API

Google deprecated the old GMB API v4.9 account.locations.get endpoint, and replaced it with Business Information API v1 locations.get. Code change that affects

SIM 7000e shield and Arduino UNO

I'm pretty new to Arduino, especially in terms of shields for it. I'm using a SIM7000 shield for Arduino from DFRobot. I was working on project to send SMS to m

VSCode API TreeView not getting children of elements

In providing a treeview to VSCode, it seems to get all the parent elements but fail to get the children of these parent elements, I've added a debug point into

Cypress won't show an array contents into the console

I'm trying to add the titles of an iframe header into an array to then print the array with it's element into the console. The elements are added just fine, the

How to Display Variable content

Is there a way to display my CSS-Variable's Content to my HTML webpage? My Variable's name is --pick-container-width and its Content is 5vh. Now I want (for tes

Group by Day of Month

Say I have a table logins with just the bigint id ,a date_login of type datetime, and fk_user of type bigint. I need to select the first and last logins for eac

GSheets Forumula Stalls on Tie Score Number

Background Information I am trying to setup a 1st, 2nd and 3rd rank/scoring system on Google Sheets. The sheet is setup by row and once a week a new row is adde

issues with spawn id <idx> not open when executing script from iTerm2

I am trying to write a script and execute under iTerm2 profile. However whenever I open the new tab i run into this error. but I execute the same script on Term

socket.io POST error and CORS policy error when sending messages too fast

In my frontend app I implemented mechanism which splits file into chunks and then sends their parts in a for loop like this (chunks is an array of strings - con

Athena count/Sum column divided by count/Sum column returns zero

I am trying to find percentage based on id column. issue - I am trying to use count(column)/select count(column) from table which is giving output as 'Zero' Tab

How to make search bar in iOS 15 appear by default?

I started to develop an application using iOS15 and the new .searchable modifier. I have a simple layout with some placeholder results on the main page and a se

Google Sheets Batch Update payload Limits

So I'm doing a batchUpdate for a lot of data. Personally, I'd love to upload all of it in one shot. However, I suspect there might be some limitations as to the

How to reference nested JSON within PyFlink SQL when JSON schema varies?

I have a stream of events I wish to process using PyFlink, where the events are taken from AWS EventBridge. The events in this stream share a number of common