Quantcast
Channel: Recent Questions - Stack Overflow
Browsing all 12111 articles
Browse latest View live
↧

How to Integrate AWS Pretrained Model for JavaScript Code Generation from...

I am unable to generate the JavaScript code from my natural language prompt. I will give some instructions in natural language and in response i want JavaScript code that described in prompt.I don't...

View Article


Image may be NSFW.
Clik here to view.

Lighthouse couldn't run because "The page did not paint any content" (NO_FCP)

I'm having an issue running a Lighthouse test on a page I'm testing. I think I've found the root of the problem - but I don't fully understand why it is causing a problem at the exact same script works...

View Article


python + SQLAlchemy: deleting taking 250,000x longer than querying the same data

I am accessing a PostGres database using python and SQL ALchemy. I can't figure out how to delete in a timely manner. The query is fast, the delete takes 250,000x longerI have a table, 'RP', that has...

View Article

Text classification with ML

I am currently working on my very first ML project at my new work. Task is to classify incoming emails to 4 separate mailbox by ML model to reduce costs. My model that I have succesfully trained is...

View Article

pandas dataframe group columns extract first row of values

In this dataframe I want to create a column 'desired_output' that takes the first value of 'lumpsum' from the 'index' of each 'ID'.data = [ [1, 12334, 1, 12334], [1, 12334, 1, 12334], [1, 12334, 1,...

View Article


How to conditionally turn on/off collisions in Phaser 3?

I'm making a simple flick type basketball game. The game is 2D, but the ball scales smaller after you launch it to give the 3d effect.Where the ball spawns, the rim of the hoop is directly above it on...

View Article

Using flutter_maps package, intercative polygons drawn are not all shown ,...

I have used flutter_map package:https://github.com/fleaflet/flutter_mapI have already modified it for my own project in such a way that a user can use 1 click to start drawing, simplifying hovering...

View Article

How can I filter from several params in data-id

I'm trying to make filter from several divs:<div class="sgmt" data-id="orange, apple">First one</div> <div class="sgmt" data-id="onion, apple">Second one</div> <div...

View Article


Image may be NSFW.
Clik here to view.

Plot too Wide in Patchwork (R)

I've been struggling to understand the patchwork package in R. The barchart on the right of the plot should be much thinner, like the one on top of the scatter plot. Below is my code. Any...

View Article


Why invalid method of parent class is called?

In laravel 10 / PHP 8.2 app I made an interface classnamespace App\Library\Services\Interfaces;use App\Models\News;use Carbon\Carbon;/*** Interface of Class to calculate rating of news*/interface...

View Article

How drop unused column with dbms_redefinition in Oracle database?

I don't really understand how to delete columns using the dbms_redefinition utility. All the time there are some strange errors and data overwriting. Disabled foreign keys appear in other tables and...

View Article

std::jtrhead doesn't seem to invoke class member function

I'm struggling to re-learn C++ and I'm playing around with jthread at the moment. I seem to have got things working when calling a class member function that I want on its own thread. However, the...

View Article

Is it recommended to use indexed view on static columns in a frequent...

I am learning indexed views in SQL Server, and I know some general limitation (like we can't do cross database joins etc) and in general, the benefit may not be that significant when the underlying...

View Article


Nginx Configuration: Proxy Next.js Frontend on Port 3000 and Node.js Backend...

I'm facing an issue with my project setup where I use Next.js for the frontend and Node.js for the backend. My Next.js application runs on port 3000 and the backend runs on port 8008. I want to...

View Article

Pascal Triangle leetcode question, logic mistake

class Solution: def generate(self, n: int) -> List[List[int]]: def fact(n): if n<2: return 1 return n*fact(n-1) res = [] for i in range(n): temp = list() for r in range(i+1): res1 =...

View Article


Which cultural festivals take place in Abu Dhabi?

Abu Dhabi FestivalDates: Typically held in March and April.Events: Includes performances by international orchestras, ballet companies, and contemporary artists.Venues: Various locations across Abu...

View Article

Is is an issue to have an XMLHTTPRequest in the frontend code?

This function is viewable in the browser. I'm worried someone could somehow access the folder and manipulate the db. Can I keep this open in the frontend or do I need to secure it in the...

View Article


JAX-RS Resource Not Automatically Collected Despite @Path Annotation

I'm encountering an issue with my JAX-RS application where a resource class annotated with @Path is not automatically collected by the server, resulting in a 404 error when attempting to access the...

View Article

Error when using required field in schema in mongoose

productModel.js:const mongoose = require("mongoose");const productSchema = new mongoose.Schema({ name: { type: String, required: true,//err here. },})There is an answer at link but those do not fix my...

View Article

How to config cmake for strip file

when I use cmake in Release mode I have the following binary:64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32,...

View Article
Browsing all 12111 articles
Browse latest View live