All Questions
23,919,992
questions
0
votes
0
answers
3
views
ERROR: Invalid configuration for file "/Users/hello/Documents/projects/hello_world/.eslintrc.json"
I'm getting this error message when I run the npm run format command in the root directory of my nextjs project:
[error] Invalid configuration for file "/Users/hello/Documents/projects/...
0
votes
0
answers
5
views
How to create a comment system in Laravel similar to WordPress (with and without user Auth)
I want to create a comment system for my Laravel blog site.
I want all users to be able to post their comments even without logging in and registering (exactly similar to the WordPress comment system)....
0
votes
0
answers
6
views
Faced with the problem of calculating the quantity and amount of a particular product in the basket
I have a "Pay" button and I want that when I click on it, I can get data about each item in the basket (the quantity of each item separately and the amount of each item separately). How it ...
0
votes
0
answers
4
views
The method hasMany not working in laravel
I have 2 tables, users and languages. One user can have multiple languages assigned to it.
nocat: the primary key is a string concatenation example: nocat=A242023
class Users extends Model
{
...
0
votes
0
answers
4
views
Webkit Scrollbar
I'm try to find the documentation that explain what is valid property that can be used with webkit selector but many documentation doesn't explain this, Because I don't know where else to look for the ...
0
votes
0
answers
8
views
Does slicing perform a copy in numpy?
Take this MWE:
import numpy as np
A = np.random.randint(-1, 5, (50, 10**6))
B = A[48][:10**6-1]
r = np.sum(B)
Does the line A[48][:10**6-1] perform an explicit copy of that row of the matrix? In ...
0
votes
0
answers
4
views
How to load data on scroll in autocomplete Dropdown?
I have created search dropdown using jQuery UI Autocomplete widget which gets dynamic data using ajax through Laravel query.
Due to large amount of data on autocomplete suggestions. I want to load 10 ...
0
votes
0
answers
6
views
Calculating Chao-Shen corrected Jensen-Shannon Divergence
I am trying to calculate JS divergence of two distributions P and R with Chao-Shen correction (https://link.springer.com/article/10.1023/a:1026096204727). P and R are simple arrays where each element ...
-1
votes
0
answers
9
views
web scrape internet site [closed]
Hi I would like to web scrape this internet site text
I did something like that but get an error message which is:
JSONDecodeError: Expecting value: line 4 column 1 (char 6)
I do not why and I would ...
-1
votes
0
answers
4
views
v14 print command to bot
I made a command for my discord bot, in this command, the bot will write the same text that the user writes to the channel, but there is an error and I cannot solve it, can you help me?`
const Discord ...
0
votes
0
answers
5
views
Realtime (reactivity) issue Vue js 3 and Supabase
I have an issue with reactivity in my component created using Vue js 3 and Supabase, input and fetching is working, "Realtime" is turned on in table settings. I have an input and "ul&...
1
vote
0
answers
7
views
How can i Create a TextBox that Contains three Other TextBoxes to Collect Date, Month and year from the User Respectively in WPF?
I am new to WPF and Control Templating. Here is my Problem, anybody who helps will be highly appreciated.
I have a MaterialDesignFloatingHintTextBox which displays a "Date of Birth" hint to ...
0
votes
0
answers
4
views
How to change the value of a variable in GetIt?
While researching GetIt, I came across the following problem.
I have a class for queries
class Query {
// late String query;
// String? query;
String query = 'Obama';
final String elonMusk = '...
0
votes
0
answers
4
views
Dropzone is created but do not show drag and drop box
May be it's a very simple task but there is unexpected behavior in my project!
I'm creating a form and want to use Dropzone in my form inside blade file of my Laravel 10 project.
I added CSS and JS ...
0
votes
0
answers
4
views
API doesn't work when I use generateStaticParams() with Nextjs
When I try to build the project without using generateStaticParams() I get this error:
Error: Page "/api/like/[id]" is missing "generateStaticParams()" so it cannot be used with &...
0
votes
0
answers
7
views
Unable to change Android Bottom Nav bar Background color
How i can change Home Icon background Ripple Color or Remove it?
app:itemRippleColor="@color/primary" - is not working
0
votes
0
answers
6
views
How To download a functioning pdf in django using wkhtmltopdf?
I have a django project, where i download the template as a pdf using wkhtmltopdf.The pdf is downloaded when i click the download button, However when i open the pdf it says, "Error
Failed to ...
0
votes
0
answers
6
views
Keras - making a model more complex after some time?
I have a Keras-based model and trained it for some time. I saved the model and its weights to a file. Is it possible to make the model more complex, i.e., add additional layers (maybe even remove a ...
0
votes
0
answers
19
views
comparator for c++ sort function giving errors
Following is solution of leetcode problem called Merge Intervals using compare function inside a sorting function
class Solution {
public:
static bool compare(vector<int> t1,vector<int> t2)...
0
votes
0
answers
7
views
ASP.NET vb.net "The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value."
I'm using calendar from tool box of VS IDE, and I want to get data from database according to selected date from calendar between 20/7/2020 to 20/7/2021, but I got an error
The conversion of char ...
0
votes
0
answers
5
views
Django StreamingHttpResponse for text is getting buffered
I am having trouble with streaming a simple text response with django. it's a very straight-forward demo.
python3.11.4
django4.2.5
python serve a text generator with delay
@csrf_exempt
def testPost(...
0
votes
0
answers
5
views
cannot install anyjson even have downgraded setuptools==57.5.0
I cannot install anyjson even have downgraded setuptools==57.5.0,
Here is what I have run.
% pip install setuptools==57.5.0
% pip install anyjson==0.3.3
Collecting anyjson==0.3.3
Using cached ...
0
votes
0
answers
6
views
r tiled plot of effect estimates
I like to learn how to reproduce this plot. I dont know what this is called but I am interested to recreate this using this dataset where X is a my predictor variable and M1 is my grouping variable.
...
0
votes
0
answers
18
views
Return types with templates in C++
I'm in the process of re-writing a project originally written in C# into C++ as part of my assignment. While C# provides a convenient .Length method to determine the size of arrays, C++ lacks a direct ...
0
votes
0
answers
5
views
Flutter: How to implement on screen Numpad for multiple TextFormFields in Flutter?
I have created a custom Numpad widget in my Flutter app.
class NumPadCheckout extends StatelessWidget {
final TextEditingController controller;
final Function delete;
final Function onSubmit;...
0
votes
0
answers
7
views
Multiple Regex Validation in Gallery rows based on Product Type
I need to validate the textbox (code.Text) in the gallery based on regex + Product type (dropDownList)..
so I have a SharePoint list with the product type column and Regex associated with it.. sadly, ...
0
votes
0
answers
3
views
Alternative way of writing complex ETLs in Synapse Analytics
We have a Synapse Analytics workspace where we have a number of simple data flows and pipelines which perform simple transformations (ETLs, ELTs). Usually, they read from a data lake (ADLS Gen2) and ...
0
votes
0
answers
3
views
City with dashed border using angular and google maps component
I need to implement google maps on my angular application for user to search for a city and it has to be shown in a diffrent color and its border dashed, just like when using google maps website.
Is ...
0
votes
1
answer
18
views
How to solve a KeyError problem in Pandas
enter code here
Gender Value Year Measure
Name
Ma girl 0 1997 Rank
Nabiha girl 1204 2014 Rank
Muad. boy 1749 2009 ...
0
votes
0
answers
7
views
I want to insert the selected value of radio button in razor pages
I want to create the exam paper but while user select the radio button and submit the form the value isn't inserted into the database.
This is my code:
<div class="container1">
<...
0
votes
0
answers
9
views
Wrong on summation of two columns
I have created Table production_report
pro_id
pro_stage_id
pro_model_id
pro_qty
1
1
44
420
2
1
44
200
3
1
44
430
Table production_defects_report
pdr_id
prd_modet_id
pdr_stage_id
pdr_defect_id
...
0
votes
0
answers
4
views
IOS Swift Storekit 2 How to get renewalInfo?
I want to gain pieces of information about Product.SubscriptionInfo.RenewalInfo.
How to get to the renewalInfo data in Swift?
I tried this code:
let status: [Product.SubscriptionInfo....
-2
votes
0
answers
17
views
How can i remove this line? [closed]
How can I remove the line shown in this image?
0
votes
1
answer
7
views
Array color to multiple values
Is there any way to shorten this using only two colors but having the second color fill the remaining values? I have a sorted 21 value table consisting of 1 variable color and 20 fixed colors.
color[] ...
0
votes
0
answers
12
views
How can I avoid Chrome to load a page in quirks mode, I can't specify the DOCTYPE because I need PHP code
I'm working on a PHP page, that has a GoogleMaps API. Sometimes it loads correctly, but normally I have to reload it 5 times untill the Map appears again.
Initially a banner pops that says that Some ...
0
votes
1
answer
5
views
date-fns how to convert a non-standard date string without timezone into another format?
I have a string date formatted in the form of dd-MM-yyyy, which I want in the form of yyyyMMdd. I tried using the parseISO function but it says the date is invalid.
format(parseISO(date, 'dd-MM-yyyy'),...
0
votes
1
answer
13
views
How to remove all numbers from a list in LISP
I am learning LISP and have a problem where I have to remove all the numbers from a list, which also has nested lists. For example:
(REMOVE-NUM '(2 A (3 B) C D))
will output:
(A (B) C D)
I am not ...
0
votes
1
answer
14
views
How to use an object from a class in useState
I found a piece from code from net
let [state,setState] = useState({
user : {
email: '',
password: ''
}
});
Rather than using it like above, I'll like to create a object. ...
0
votes
0
answers
16
views
why do I keep getting 'newUser.save is not a function'?
I have this file here:
import React, { useState, useEffect } from 'react';
import { View, Text, TouchableOpacity, Image, ImageBackground, TextInput } from 'react-native';
import { COLORS, assets } ...
0
votes
0
answers
11
views
username constant returning null?
So i have an EJS that i use for generating the interface for CRUDS operations on my web app,
on this specific problem the table for existing users in the DB is rendered properly with the correct ...
0
votes
0
answers
3
views
Uninstall Driver: VAud_WDM.sys (VSC)
Trying to uninstall this driver but cannot find it in Device Manager.
Anyone know how to find this to remove?
Device manager by name. Nothing showing under that name. (Any reason there isn't an .inf ...
0
votes
0
answers
13
views
Swiper does not handle loop: true correct
In the Swiper library, loop: true is processed incorrectly if slidesPerView is not an integer but a half, for example 2.5. If there are 2 slides, then looping works well, if there are 2.5, then ...
0
votes
0
answers
5
views
Linux MOUNTPOINT "/" run out of space but `du -sh` says not
I want to compile one project, but I got "no space left on device error"(mainly /tmp)
My project is under /data00/<my-projct-name>, and here's some output info:
IIUC, "/" ...
0
votes
0
answers
8
views
How yt-dlp provides faster search results
Below is a search code
def search(query, max_results=5):
command = [
'yt-dlp',
'ytsearch{}:{}'.format(max_results, query),
'--dump-json',
'--...
0
votes
0
answers
12
views
Unclear syntax ...state. What does it do?
I saw this code. What does ...state mean and do?
let updateInput = (e) =>{
setState({
...state,
user: {
...state.user,
[e.target....
0
votes
0
answers
13
views
Tkinter tab not opening again and again [duplicate]
I want to open this login window again and again but its not opening again and again how to do it?
It is ending after 2 times. Is there any alternative way to do this?
import login
import tkinter as ...
0
votes
0
answers
6
views
How to handle clicks for native ads
I managed to display a native add nicely within my app. I am currently struggling to understand how to add a click handler to it. From what I'm reading I'm left with the impression that this should ...
0
votes
0
answers
6
views
Valid phone number field in Azure Data factory
I am having customer data in csv file and in that I have one column phone number. I need to clean the phone number field. I am getting the phone number column value like below
98377657 (valid phone ...
0
votes
0
answers
7
views
Convolutional networks: remove useless features?
I'm new to convolutional neural networks and have two related questions:
If all the filters would have the same weights initially, they would all detect the very same feature - so it would be useless ...
1
vote
1
answer
52
views
What does this shared_ptr snippet say?
void del(void(*)()) {}
void fun() {}
int main()
{
std::shared_ptr<void()> ee(fun, del);
(*ee)();
}
This is a piece of code found on cppreference.com, I am trying to understand ...