Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to get id ("not name") of a radio button via POST request in Django?

<div class="form-check"> <input class="form-check-input" type="radio" name="q1" id="q1a"> <label class="form-check-label" for="q1a"> A story te...

How to solve ArrayIndexOutOfBoundsException in Java?

I want to insert a csv data into a MySQL table. When I run the code, I've got the following error message. Any suggestions? java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3     at BudgetTrackerCu...

Adjust the height of labels location and autosize to content

I create a user control. i have label (labe1, label2, label3). this labels have auto size property to false, and the user control scale base on the combine height of the three labels.  My problem is the height of the labels work fine but ...

Help me to this error in java I am new to coding

this is the code: import java.util.Scanner; public class Bill { public static void main(String[] args) { // smiley 30 strips 40 milk 20 Scanner sc = new Scanner(System.in); System.out.println("Choose one o...

Issue while Fetching Data from Firebase on Mat Table

i'm not able to fetch data from  firebase on mat table from component ts getAllStudent() { this.service.getAllStudent().subscribe((data: any)=>{ console.log(data.payload) this.students = data.map((e: { payload: { doc:...

Web Scraping Code Bug- Returning Empty List

hi i want to scrap all the pairs that kucoin support from the webpage but the code that i wrote just return a empty list. how should i correct it? from bs4 import BeautifulSoup from selenium import webdriver driver = webdriver.Chrome(e...

how to run this program in do while loop

Hi, I want to run the below program in do while loop, please help me. #include<stdio.h> int main() { int num; char another; do { printf("enter the number"); scanf("%d", &num); printf("the square is %...

Swift Firebase Firestore not able to get variable outside of embedded query

Note: This is not a swiftUI I have a collection called **teamMembers** and another one called **patients**. In the **patients** document is an array field with a list of the **teamMembers** (document id). I am trying to set a toggle switch to ...

Java code error: One curly brace is missing

Following is my code-  import java.util.Scanner; public class Sample { public static void main (String [] args){ Scanner myObj = new Scanner (System.in); System.out.println(Hello.Do you want to check your cuteness percentage...

How to make Async Requests to Paginated API

I want to make requests to an api that returns a response like so:  { totalRecords: 30,000, data: [{...}], links: { selfLink: 'http://example-api.com/data?api_key&page=0&size=10', nextLink: 'http://example-api.com/...

sqlite3.OperationalError: near group: syntax error in sqlite3

I use sqlite3 library for using database in python. When I want to make a table, I get this error: sqlite3.OperationalError: near "group": syntax error My function that does this: def connect(): conn = sqlite3.connect(dbpath) ...

How to save modification of a file in original file not a new one?

Dear all, I have a code to modify a file. This code make changes on my file and save it to a new file. But, I want to have changes(modifications) on my original file not a new one. I made attempts to change the code but it didn't work. How...

Can't use HTTPS to download from website with early Android versions

I have an Android app which downloads simple text files from my website using HTTPS. I have been testing it on emulators for every version from API18 onwards, and on real devices running API18 and API28. It works fine for API21 and above, but for...

How to resolve casting error in my Java program

I am trying to get data from a database using 3 Jcomboboxes and then put the data in a Jtable and i am getting a empID=(int)employees[selectedIndex-1][1];  public void updateTable() { int selectedIndex=employeeCmb.getSelectedInd...

Modal dialog getting closed on submit and without processing form

I have a modal that when opened through ajax displays a form with a submit button. The modal is getting opened successfully but when I am submitting the data in the form the modal disappears without doing the requisite function. I have tried m...

Data Structures: How to Remove Items?

Hi.  Is there an order of operations of sort when de-constructing or constructing arrays? Example: I have a n array with eight numbers. I want to .shift( ) the the first number in index "0" then .splice( ) the ...

Tabs in Angular Nativescript

I had two tabs as follows. <TabStriphighlightColor="#FFFFFF"class="tabStrip"unSelectedItemColor="#D0D2D4"selectedItemColor="#FFFFFF"> <TabStripItem> <Label[text]='tabManualMsgTxt|translate'class="activeTab"></Label...

How can I give a 3D dimension of a layer with Python?

I need your help with a problem regarding the 3d plot. I have created a layer T2 with the below code, and what I what it to do is to give this layer a volume with a third dimension. That means to be raised it, let's say 2 or 3 units, and from...

Dequeue remove from the tail using node

hey there! whenever i run my program it works well but when im at removeTail() it crashes at last value,it works to delete from the back when im at the last value it crashes,any help? hope it makes sense. import java.util.Scanner; public ...

How to Canvas HTML script Animate shapes

I have created a Canvas and I am working with HTML and inside the HTML script tags I have created shapes that I want to move to animate. I want to add an animation to my Canvas. I Want to animate the Triangle and the Hexagon so that they rotate a...

R2dbc Rest Api relation problem

Hi everyone, I am write simple project in Webflux Rest api not problem the response. My problem is that the code is working, but the response is wrong, so for example the label has 3 but 6 returns, the projects are repeated, I don't und...

How do I fix this life function code?

Please help me to fix the life function code.  #include <stdio.h> #include <stdbool.h> //I learned that you need to add stdbool.h to make the bool function work - Chris int main(void) { printf("You will have lif...

Python Programming Task Help

Hi please could you someone help me with this python question. Part of my uni course!!! Only have an hour till submission and totally lost. Thank you so much! Any help at this point would be appreciated.   TASK   A virus is ...

Bubble Sort Problem- Number of Passes

Write a Bubble Sort program that sorts the given input array in descending order and prints the number of swaps made after m passes in the algorithm.  Sample Input 1:  2  4 1 2 3 4 Sampl...

Help needed to read command line arguments in Nodejs

Hi, I am trying to accept input from the command line in Nodejs using process.argv in the code snippet, but currently getting an error when I run the following command on the terminal - node index.js "1 18" Error that I get - ...

cURL request problem

Hello, do people know anything about cURL queries? When I execute a query, I get back only a part of the HTML code of the page. When I compare the request with the HTML code directly on my browser, I notice two problems: - Some sections are ...

Help with Python Drills

// Have several things that you want to change into something else? Reduce it const fullNames = [["s", "peter"], ["p", "athena"]]; // -> ["Peter S", "Athena P"] const scores = [34, 33, 1, 0, 99, 123]; // 48.33 // with full names (from abo...

Error can't understand

#NiceHexSpiral.py import turtle colours=['red','purple','blue','green','yellow','orange'] t=turtle.pen () turtle.bgcolor ('black') for x in range (360): t.pencolor (colors[x%6]) t.for...

Rewrite hit_target() function

  Rewrite hit_target() function Existing hit_target() function uses a primitive algorithm to get the target coordinates. Your task is to rewrite hit_target() function with the most optimal algorithm to make as ...

java

Assume the central government wants to develop a GUI application to survey and estimate the awareness of the schemes among the people of India and promote the scheme which is least popular. Construct a GUI to get the Aadhar card number from the ...

How do I display the number of clients that placed an order for a particular product?

I'm a beginner in java and I want to display the number of clients that placed an order for a particular product on my MVC WebApp. I came up with a logical way of doing this but I stumbled upon a dead end. Here's what I tried to do. An...

How to create CDC for mongodb source in oracle golden gate?

I am new to the Oracle GoldenGate product. I want to understand if it is possible to create a CDC pipeline from MongoDB as Source to any RDBMS target or KAFKA using Oracle GoldenGate? Can anyone help me with any documentation for MongoDB as sourc...

Copying file content to other file

Hi, I have two files file1 an file2. I want to take each line from two files and compare with a keyword if the keyword matches in both the files. The complete line which matches from file1 should be written to file2 at the position below the m...

How to Use Calculation of an Aggregate Function as Filter Criteria?

I have tables on booking orders for trips. Bookings (booking_id, booking_time, driver_id, customer_id) Drivers (driver_id, name) I need to identify all customers who have had at least 60% of their bookings completed by the same driver within t...

How to return order_no where customers made concurrent bookings?

I have a table on booking orders for trips. Bookings (order_no, user_id, booking_time,cancel_time,complete_time) I try to write a query to return the order_no from all rows where customers made concurrent bookings (i.e. where a customer mad...

Using own Python classes with the runtime type and range checking feature of the library Pyadaaah

I am currently trying out pyadaaah - which works quite fine - until I try to use own classes in a vardef line. I then get the error message: Fatal error in VarDef.__init__: Fatal error in VarDef.__processTypeSection: evaluating type section &#...

How do I adjust the top position of a div with a dynamically fixed position?

I have a page with a fixed top bar and a section menu that fixes to the bottom of the viewport on small devices and at the top, below the top bar, on devices with viewports wider than 1080px. There's also an element at a certain point down...

Unable to display the screen as a video in the video tag using Javascript code

I am making a kind of proctoring website and for it I needed access to the user's screen and display it as a video to the proctor, so that he can monitor it. here is my code: <div id="userscreen"></div> <script> d...

How to create a program in python that will auto-fill forms?

Here is my HTML code: html <html> <div class="echo-chat-body" dir="ltr"> <div class="new-chat-form"> <div> <h1 class="echo-title desktop-only"> Topic? ...

numpy array: Python statement to find the sum of the eight array elements in the cube center

Consider the following Python code that generates a three-dimensional array. This array has 1,000 elements. Imagine that this array is a cube as shown blow. np.random.seed(7) a = np.random.randn(10, 10, 10) I need a Python statement to fin...

main.c:18:8: error: called object sum is not a function or function pointer

Please help me to solve the error main.c:18:8: error: called object ‘sum’ is not a function or function pointer, below is the code: #include<stdio.h> int sum(int*a,int*b) { int s=0; s=*a=*b; return s ; } ...

Background Image username + password fields buttons are not showing

My background Image username + password fields buttons are not showing how can I fix this. I did create two states one for the buttons and the other for the text field can someone please help me to fix this and how none of the 3 is showing ...

How to Convert Parallel Loop in Matlab to Python?

    T = 10 N = 100 % number of tasks parfor i = 1:N % initialize "t" for each "i" t(i) = 2; % keep track of t(i) for each "i" while t(i) < T ...

How to make these 2 rectangles collide and BOUNCE back

For the code below I managed to make these rectangles collide and bound at the Jpanel border, but why is that these rectangles do not bound each other when they collide, instead they overlapped each other? I think there is a problem in my action...

model.FindById using MVC express js MongoDB pug is not working

model.FindById using MVC express js MongoDB pug is not working(no error is also showing/id wise data is not being retrieved), please guide me. exports.getViewownerdata = (req,res,next)=> { const OwnerId= req.body._id; const mow...

JAVA program to calculate compound interest annually, semi-annually, quarterly, monthly and daily

problem : a Java program interest.class that calculates the total interest income on amount Taka 5 Lakhs in a period of 10 years. Show the results for simple interest, compounded interest when the compounding is done annually, semi-annually,...

help with minimax tic tac toe ai

hello i am creating a minimax tic-tac-toe ai. i finished my program but it doesn't work it keeps choosing the next available spot this is my got repo https://github.com/adam-kabbara/tic-tac-toe-ai   example of choosing...

How to set flag value in config.properties file and fetch the flag value in java class

I want to set flag value (0===AD login,1===nomad login,2 both way)in properties file of my spring project and in login.java file  how to set flag value from properties file as If flag value is set in properties file as 1 then authenticate...

Want to develop a Book review iOS application using php,mysql and Xcode, please help

1 In this tutorial, I am using the same hosting service (bluehost) in combination with wordpress. Does anyone know why the page is showing an error message when I input the url... aside from this issue. I am following along in this tutorial an...

Request for solving the following problem in Java

Given a list of Strings (that contains both palindromes and nonpalindromes), write a method that returns a list of all the palindrome strings. TIP: Use static method references of Functional Interfaces  
prev 1 3 23
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: