Latest Questions

Error when using CreatedAtRoute in ASP.NET Core minimal API

I'm trying to use CreatedAtRoute in minimal API. app.MapGet("/clients/{id:int}", [EndpointName("GetClientById")] async (int id, ClientsContext db) => await

Get Syntax Error: Expected end of input but got keyword ORDER at [5:1]: in BigQuery

When I run the following I get the error Syntax Error: Expected end of input but got keyword ORDER at [5:1]: SELECT purchase_price FROM test-project-349410.cust

typescript + eslint + babel issue in expo project: lots of Parsing errors

eslint is giving me a really hard time > Parsing error: The keyword 'const' is reserved. :eslint > Parsing error: The keyword 'import' is reserved. :esli

Please explain the purpose of the bitwise or in this javascript function

I am converting a javascript function to java, and don't understand the purpose of the bitwise ors in the code below: (Math.tan(PHId)) ^ 2) - is this ensuring t

How do I update a record using the put API?

As you can see in the React Js code I am trying the Reduce one by one quantity when clicking the Delivered button. When the Click Delivered button quantity bec

Nuxt.js using Vuetify and Vite causes "__createCJSModule__(...) is not a function" error

The problem: When creating a new Nuxt.js project using Yarn as the package manager and using Vuetify and Vite as build modules I get the following error in the

Is it possible to create a tile 2x2 mosaic using Sharp Node?

Using Image Magick I was able to use montage to make this: With this code: montage -density 300 -tile 2x0 -geometry 150x150^ -gravity center -crop 150x150+0+0

lines repeat in List python

I need your help with the next problem, i need that a python recieve an string "EEEEDDSGES" and the output would by the sum of charactes that repeat in line, E

Which C/C++ data type should I use for PHI(N) calculator?

I found a source code online for calculating PHI. I made some small adjustments to the variable types, such as using an unsigned long int, however I am limited

check variable null is not in stdout_lines

I have this output: - name: list image exist on nexu debug: var: check_image_exist.stdout_lines tags: - check_image_exist ok: [workstation] =>

How to add mixpanel to my SSR quasar project

I was able to add my mixpanel integration by creating a boot file described here import { boot } from 'quasar/wrappers'; import mixpanel from 'mixpanel-browser'

Uncaught ReferenceError: process is not defined after upgrading from vue cli v4 to v5

I'm working on an app where I've updated the frontend to use vue cli v5 from v4 and am getting a runtime error: Uncaught ReferenceError: process is not defined.

asdf ASDF_DOWNLOAD_PATH: unbound variable for nodejs

when I try to install nodejs 12.13.0 with asdf install nodejs 12.13.0 I receive /Users/john.doe/.asdf/plugins/nodejs/bin/install: line 52: ASDF_DOWNLOAD_PATH: u

python code not understand. Step by Step explanation of this code

a,b=1,2 a,b=b,a=a,b print(a,b) # 2 1 If someone could give me a line by line explanation of this code, help me plz

redirect 301 url htaccess /do.php?id=15 to download15.html [duplicate]

I hope everyone is fine. I want to convert links like this /do.php?id=15 to /download15.html I applied this step but it doesn't work Redire

spark-shell commands throwing error : “error: not found: value spark”

problem screenshot :14: error: not found: value spark import spark.implicits._ ^ :14: error: not found: value spark import spark.sql ^ here is my enviroment con

Return the string having repetitive substrings consecutively more than x times

I’d like to get the string having repetitive substrings consecutively more than x times. The substrings has more than y characters. For example, when x=4,

Data binding causes memory leak even the binding has been nullified

I've done my research on memory leak when using Data Binding. Every posts said that one should assign null to binding object to resolve this issue. However, it

how to display custom hierarchies in same visual?

I have a specific hierarchy that I have developed: I was expecting it to be: level 6 ( )level11 ( )( )Account description level 3 ( )Account description But I

mysql return 360 degrees returned with strengths

I have a table of wind directions and strengths over a 24 hour period, sample data at the bottom of this question. only directions that have strengths are store

ERROR "nonstatic member reference must be relative to a specific object

#ifndef WORLD_H_ #define WORLD_H_ using namespace std; class World{ public: friend class DoodleBug; friend class Ant; friend class Organism; i

Switching to normal mode requires Shift in addition to ESC [closed]

I have always used <Esc> for switching mode to Normal mode (from Insert mode). Now I have a new macbook and I need to use <shift-Esc&

Find rows with duplicate values in two columns where at least one value in one column is a specific value

So, I'm not sure how it works and I haven't found a sufficient answer by googleing (probably not using the right buzz words). So here it comes: Let's say I have

python - write to txt file. the problem: some file names are ok, some file names get error

for example: testdata.txt - is fine datatest.txt - fail it happens with a lot of file names, some names are just fine a lot of other names fail. examples on scr

How to set up multiple HTTPS connections in Java

I'm using HTTPS to connect to web services. The problem is that I need to connect to 2 web services and then they have different certificates. In this class the

Unable to create @manyToMany realtion ship in mikro-orm

I have issue with my @manyToMany relationship in mikro-orm framework. I created this entity: enum NotificationCategory { REPORT = "report", PARKING = "p

Visual Studio Code (version 1.67.1) --- Quick Actions Issue

I was facing a issue in Visual Studio Code, version 1.67.1 (updated recently in 2022) --- Issue is that i have quick action active, but its giving very limited

Error cannot find "%>%" when knitting to html?

Sorry I am quite a beginner with R: It runs in the R-markdown, but when I want to knit it to html, it gives this: Error in pdb %>% filter(human, canonical_ma

AWS Amplify 503 error when using Next.js getStaticProps revalidate

I have tried to use Nextjs getStaticProps function on a page and deployed it on AWS Amplify. However when I gave the option 'revalidate' AWS cloudfront occurred

WPF Binding in textblock does not work but in its tooltip does

I have a weird issue. In my application (witten with C# .net framework 4.8 with Microsoft's MVVM toolkit) I have a ListView bound to a BindingList<VisualMach