All Questions
20,755,624
questions
0
votes
0answers
2 views
Unwanted left hand margin appears
I'm a newbie to web-development. I am building a mock-up site for online food delivery. I am following the instructor line-by-line in both HTML and CSS.
I have placed some photos onto the site. There ...
0
votes
0answers
2 views
Plot decision tree gives texts instead of an image
After I fit the tree for an 8-class dataset.
I tried to plot a tree but only texts coming out and Jupyter shows that the code is still running.
plt.figure(figsize= (15,15))
tree.plot_tree(clf,filled=...
1
vote
0answers
3 views
Laravel eloquent error expects parameter 1 to be string when trying to use sum
I used this query:
Product::whereId($item->id)->sum(function ($row) {
return $row->quantity * ($row->variable ?? 1);
});
But I got this error:
production....
0
votes
0answers
3 views
Trigger useEffect from a change in ref.current
I have created a popup that the user can use to add stuff to the application, every field is a separate component, because I need to reuse them in several places in different configruations.
I have ...
0
votes
0answers
4 views
JButton in JPanel with gridlayout
Is it possible to bring it into this shape using the gridlayout?
enter image description here
I use empty label to add this empty grid
enter image description here
This is my code:
import javax.swing.*...
0
votes
0answers
3 views
Doctrine with Microsoft SQL Server 2019 INSERT binary data type
I`m having major issues using Doctrine and SQL because Doctrine does not convert the right data type when inserting (I think).
In my project (symphony 5) I have already made drastic changes to my User ...
0
votes
0answers
4 views
Trying to get property 'id' of non-object using laravel 8
I am trying to show notification but unfortunately i am getting error if work permit table has not record how can i resolve this issue ? thnaks.
Trying to get property 'id' of non-object (View: /home/...
0
votes
0answers
4 views
Google Maps marker addListener event
Hello i am using google maps with markers and infowindow when i click the marker the goal is open the infowindow/popup and shows the info with a gallery rotation but when i click the first time the ...
0
votes
0answers
5 views
Run a Code When the Debug Stop Button is Pressed in C++
I wanted to know if it's possible to run a function when I click the "Stop" debugging button during a debugging sessions at C++. Basically I often debug a code in C++ and step-through each ...
0
votes
0answers
5 views
Add Animated GIF Overlay to a Still Image (In Python or ffmpeg)
how can I add a animated gif like Happy GIF as a overlay to a still like this
I would like to do it in either python or a CLI tool like ffmpeg or any other CLI tool.
Please Reply As Soon As Possible
0
votes
0answers
8 views
How do I add a specific letter to a variable and then make it a string
I am trying to make a hangman game and I am not fully sure on how to add a specific letter to a variable.
For example, adding a letter that someone chose through the pythons' input prompt to a ...
0
votes
0answers
4 views
Failed to create symlink to link phpmyadmin with Apache
Version:
OS lsb_release -a : Ubuntu 18.04.5 LTS
PHP php -v : 8.0.1
Apache apache2 -v : 2.4.29 (Ubuntu)
Problem:
I'm trying to install LAMP Stack using following article. However, I was getting HTTP ...
1
vote
0answers
10 views
How do I hide the status bar in Android
I use this following code to hide the status bar
window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_FULLSCREEN
Although this works but parts of this code are deprecated . I searched the net ...
-1
votes
0answers
8 views
How compiler knows which lambda to use in submit(Callable<T> task) or submit(Runnable task) in ExecutorService?
submit() method accepts both Runnable and callable as parameters. but
it returns Future when we send callable interface as a parameter.
So when just lambda posted
() -> {}
how compiler knows ...
0
votes
0answers
4 views
Geodirectory's map is not displayed on the add listing page to add a position
My form for adding a place was working fine then since yesterday, the map is no longer displayed on the form for adding. impossible to define the location on the map so
0
votes
0answers
7 views
How to push a value into an array inside of a object Mongoose
I'm coding a soccer API, and I'm trying to push some values inside a object in my mongoose model. Check out the model code:
teamOne: {
players: {
type:Array,
...
0
votes
0answers
5 views
Requesting parts of images from the browser without having to create tiles on the backend
Using a tilemap is a useful approach to limit the amount of data transferred if users only explore a small part of a large image on a website. There are Javascript libraries like Leaflet that take ...
0
votes
0answers
5 views
How to change Image of Bootstrap Carousel on Mobile View?
I have a Bootstrap Carousel in my project it works perfect in each and every view. But I want to change the carousel images of every slide in the Mobile View. I have tried everything but failed. ...
0
votes
0answers
4 views
Bootatrap carousel in rails 6
I'm trying to create a bootstrap carousel for the homepage of a blog that scrolls through the last three articles from the database. I got it working for a carousel that advances automatically but I ...
0
votes
0answers
5 views
System.Data.SqlClient.SqlException in Entity Frame work (Web API)
My Web Controller Code:
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using ...
0
votes
0answers
3 views
Removing upper margin in ConstraintLayout with bottom navigation
I have created Bottom Navigation Activity in Android Studio. Now I'm adapting all layouts to my needs but I have a severe problem with removing that margin between nav_host_fragment and it's parent ...
0
votes
0answers
5 views
React Material UI TextField FormHelperTextProps Styling Not Working
I'm trying to style the helper text that comes with the TextField Component given by Material UI ( found here). I'm using FormHelperTextProps (found here). However, it seems that, for some reason, ...
0
votes
0answers
6 views
How Storing and Retrieving Image in Sqlite3 with swift4
How Storing and Retrieving Image using sqlite3_bind_blob in swift4.
0
votes
0answers
4 views
Query Firebase using Map value, Flutter
I'm trying to query to my Firebase collection using the value inside of Array. I'm using arrayContains and then passing the value like shown in the code, but after querying, it returns a length of 0.
...
-1
votes
0answers
8 views
getting segmentation fault in local machine and online ides works perfectly for a dynamic programming solution
`#include <bits/stdc++.h>
using namespace std;
typedef priority_queue<int> maxHeap;
typedef priority_queue<int, vector<int>, greater<int>> minHeap;
#define endl "\n&...
0
votes
1answer
7 views
React Load Images and Dynamically Display in Component
I have been trying for a few hours to get a react component to load an image of a playing card depending on the prop passed in. I have been looking online and the answers I find to this issue are ...
-1
votes
1answer
12 views
How can I solve this problem in processing 3 java?
String l = String.valueOf(scoreLow);
String m = String.valueOf(scoreMed);
String h = String.valueOf(scoreHi);
println(l,m,h);
in processing,
Error ==>
Return type for the method is missing
0
votes
0answers
4 views
How to trigger push notifications in Flutter app using FCM without using the Firebase Console?
I want to create an event management app in which the admin can create new events and the client can book seats for the event.
What I want to achieve is that when the admin creates a new event, a push ...
0
votes
0answers
4 views
Has anyone integrated Trello or any other KanBan system with OpenProject
I am looking for the path of least resistance in integrating a KanBan system with OpenProject. I like Trello and I like Open Project so integrating them is my goal. However, if another KanBan system ...
0
votes
0answers
4 views
How to set Joi validations with custom messages?
I was trying to set some validations with some custom messages in Joi. So, for example, I have discovered that when a string must have at least 3 characters we can use "string.min" key and ...
0
votes
0answers
5 views
How to stop MS access 2019 ascending numbers in primary key?
I have a MS access database in which I have a Sale Rep ID with primary key. But when I'm trying to add data let's say sale rep id of 500, I want that it should stay on that specific place rather than ...
0
votes
0answers
8 views
Retrofit returns 200 response code but I'm receiving null when accessing fields
I'm using retrofit to make a network request to an api. The response code returns 200 but I am receiving null when trying to access the fields. I have checked out other solutions but cant seem to ...
0
votes
0answers
7 views
Calculator for time complexity of recursion functions
Is there an online tool that returns the time complexity of recursion functions?
For instance when I enter : T(n) = T(n/2) +n
I'd like to get: θ(n)
I tried using wolframalpha but it doesn't return the ...
0
votes
0answers
3 views
How to restart webxr session with all objects(only models) removed from the scene
currently when webxr session restarts 2 X previous objects are shown on the screen , I want to show clear screen just as if session restart , currently I write this:
for( var i = scene.children....
0
votes
0answers
8 views
C - Read A File and Store It In A String
I want my app to actually read a file as a string and store it in a string variable (const char*, char*, char[], etc.). I have do a research about this and nothing is work and just print or store a 1 ...
1
vote
0answers
7 views
How to stop strobing with fast moving view in SwiftUI
I'm trying to create a slider in SwiftUI (in the same style as the native Slider, but ultimately with more functionality). In the below gif I've got my slider on top and SwiftUI's native slider on the ...
0
votes
0answers
3 views
Admob interstitial ad still open when user comes back (to app) after clicking it
This is essentially the same question as this SO --> Admob interstitial ad still open when user comes back from clicking it
But that SO addresses Android and I would like the same solution for ...
0
votes
0answers
7 views
How to add values in sql? - postgresql
I want to add the val_col based header_id and bill_name
I want to add the val_col based header_id and bill_name
I want to add the val_col based header_id and bill_name
Input:
bill_name header_id ...
0
votes
0answers
6 views
Trying to remove the grave character “ ` ” that gets prefixed to an expression while submitting from google form or appsheet
I'm trying to run a script after every edit to remove the ` character that may be added after the edit. The edit of context is an AppSheet (Google cloud) submit. (It was previously a google form that ...
0
votes
0answers
6 views
Flutter HttpServer cannot access from other computers on the LAN network
I want to implement feature that enables send data to the Flutter android app through http server. For example I want to make vibration on the app when my node.js app tasks running on Windows ends.
...
1
vote
1answer
22 views
Why are these two classes executed in python 3.x, They're just defined?
Why are these two classes executed? I just defined two base classes. I didn't use f = F () and g = G () to instantiate objects. Why are the two prints executed?
class F():
print("F....
0
votes
2answers
12 views
Find depth of a specific node in BST in C
Assume the following tree in preorder: 2, 9, 4, 7. I need to find depth of each node: node 2 - depth 0, node 9 - depth 1, node 4 - depth 2, node 7 - depth 3.
2
\
9
/
4
\
7
However, the output ...
-1
votes
1answer
12 views
How to get current Bitcoin rate by dollars
I would like to get the current Bitcoin price on Backend PHP code
I hope to use that as an global function on Laravel.
Thanks.
0
votes
0answers
4 views
Error connecting to VM service for Flutter DevTools
The message I get is:
Unable to connect to VM service at http://127.0.0.1:53932/pq_PklwHCMK=/:
getDartDevelopmentServiceVersio: (-32601)
Method not found,
getDartDevelopmentServiceVersio: (-32601)
...
0
votes
1answer
13 views
Extract elements of R data frame given their indices
I have 2 vectors, x and y, which hold the x and y coordinates (row and column positions) of a data frame, df, respectively. I would like to put the values in df that are associated to those positions ...
0
votes
0answers
5 views
React Formik ErrorMessage error always shwoing
render={({ errors, touched }) => (
<Form onSubmit={submitBook}>
<FormGroup>
<label htmlFor="Name">Full Name</label>
<...
-3
votes
1answer
15 views
Difference inheritance and interface in java or other programming languages [closed]
I just found these definitions of Inheritance and Interface. Honestly I do not understand it.
Inheritance offers feature of overriding. So why is it not considere losse coupling. Also you can exchange ...
0
votes
1answer
13 views
If the name of the main file in my project is changed from main.py to something else, will it make any difference?
If I change the name of the main python file in my project directory from main.py, will it make any difference? For example, if a project of mine has an image and two scripts main.py and side.py, and ...
1
vote
0answers
10 views
Why does User Defaults publisher trigger multiple times
I'm subscribing the the built-in User Defaults extension, but it seems to be firing multiple times unnecessarily.
This is the code I'm using:
import Combine
import Foundation
import PlaygroundSupport
...
0
votes
0answers
3 views
PHP convert a string with EMOJI UCS2->UTF8 (UCS2 -> UTF8)
I have a string
Hello 😀😀
I need to convert it from UCS2 to UTF8 and back to UTF8
but when I'm trying to convert
$text = mb_convert_encoding($text, "UCS-2BE", "UTF-8");
But I ...