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

How to build a semi-fat jar using maven in JAVA

For my project, I have used the below configuration to generate the thin jar   <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configurat...

How to upload an app over maximum size?

Hi, I'm new to Android world and I got a problem when I try to upload my first game which is 350 MB to Google Play Console. I have searched for many days but I still have no idea what is the right way to handle it. It seems like Dynamic Deliv...

How to solve this C++ program

Skill-based Matchmaking You are given N players who want to play an M vs M match. Each Player has an attribute Score which is a positive integer. The program needs to find possible unique matches of M vs M players depending on their Score...

Problems in writing sql queries anyone who can write following queries?

1. List all the directors who directed a film in a leap year by using SELECT statement 2. Find the film(s) with the largest cast using SELECT statement 3. Find all actors who acted only in films before 1960 using SELECT state...

How to calculate the ranking for students in a classroom using arrays only and sorting techniques

Hi there. I have a task to Calculate the ranking for students in a classroom. For example, if Remi's score is 14, Yan's score is 2 and Maria's score is 20 then Remi's ranking is 2 since he has the second-highest score, ...

SQLite query of SELECT is not working on jupyter notebook.

""" INSERT INTO ACTOR VALUES (             { aid = '1', fname = "fname1", lname = "lname1", gender = "male" },    &nb...

how to generalize this by changing the line I have specified?

I have created a SQLite database in a folder which if I move somewhere else from the location which I have specified below is not going to work as only one location is specified in the code not all in general. I cannot use the database after copy...

Displays Profiles with a Similar Job Title and Industry in php

What I want: When I click the First Name a profile.php will open and in one place of a profile.php displays Profiles with a Similar Job Title and Industry Example Click Steven and Neena, Lex, and Alexander's profile will display in p...

What went wrong in my simple code?

# A very simple python program to compare two numbers using functions  from sys import exit def main(): check() compare(x, y) def check(): # prompt user for two numbers x = input("x: ") y = input("y: ") ...

I need help making JavaScript remember user input

I used HTML and JavaScript to allow a user to enter text and then push submit. When the user pushes submit, his text is displayed on the page. The problem is that when the page is reloaded, the text goes away. Obviously. Here is the code I have: ...

Which one would be faster in Python I = I + 1 or I += 1 ?

I know these two expressions produce same results but I would like to know which one is faster and why. If I were to use them in two different loops with each loop iterating about hundred times, which loop will finish executing first and by what ...

How do I get the selected ID for the second dropbox based on the first dropbox in PHP with a refresh?

I am building an editor for a blog. Each post will be categorised. When the user clicks on a post title from the first dropdown menu and presses Ga (go in Dutch), then the page reloads with the second category dropbox selected to the category ...

How to Solve Partition Error in Window

When I am moving from Window to Linux then Partition option not found, Please let me know how i can find it.

help need please quick

Implement a C program that, using a modular structure, is able to handle simple strings. For that, implement the following functions. A function with the prototype int CountSpaces(char *str) that, making use of pointer notation on...

Wolfram Cloud programming

Hello can you please help me how to write correctly in Wolfram Cloud this system of equations(Wolfram just does not see it as a system of equations) {Limit[l[n][u[n]],u[n]->0]==0,Limit[p[n][h[n]],h[n]->0]==0,v[n]==v[n-1]+x[n-1],v[n]==u[n...

find the largest palindrome made from the product of 3 digit numbers java

Can some one please explain what is done in the following code. I found it in in Stack overflow.  I asked the question in the same web site and got the following reply Stackoverflow isn't meant for the purpose of explaining code . Sin...

Java Check whether username already exists or not

I am having a file called customersinfo.txt this is how my file structure looks like ID FirstName LastName Email Mobile UserName PassWord ConPassWord 1 John Sam JS@gmail.com 0123 JhonSam12 1234 1234 2 ---- ------ ----------- ---- ----- ------ ...

How to fix my code in C language programming

Hello i am doing an exercise that states:  A 3000 lb  vehicle travelling on a road at 100 ft/sec requires a force equal to its mass times its acceleration to stop ( F = ma). The acceleration is given by a=  (v_o^2-v_i^2)/2...

How to Assign Roles to Users in a Dataset?

I have a dataset with 912 users, with unique employee ids and 37 other variables.   Each user has specific roles to them.   So my requirement is whn a new user is entered in the dataset the model should recommend roles which...

Can you Spot the Error in this PHP Code?

<?php class Post { private $user_obj; private $con; public function __construct($con, $user){ $this->con = $con; $this->user_obj = new User($con, $user); } public function submitPost($body, $user_to) { $body = strip_tags($...

How to Parse json Using Java to Get Desired Output

I am new to java development. I am learning JSON parsing. I got JSON response something like this.     1 "sizePrices": [ { "cargoHandoverPrice": 0.00, &q...

How to Group Json Response with Keys in Java

 I am new to java development. I am learning JSON parsing. I got JSON response something like this.     1 "sizePrices": [ { "cargoHandoverPrice": 0.00, "sizeC...

How to Add Custom Product Attributes on Cart Page in Woo-commerce?

Hello Everyone,   As i am trying to display custom attributes into cart page by using the below code, but i am getting the output as "Array" in the cart page. Kindly help me out with this issue.   $product = w...

How to Combine Stochastic Hodgkin Huxley Model Code with Voltage Dependent Calcium Channel

I have written a python script for Hodgkin huxley model as well as for a voltage dependent calcium channel. I want to combine both the code together and want that the voltage given by hodgkin huxley model should be the input for voltage dependent...

How to Communicate with an IOT Device in Python Program

Hi, I have an IoT device which I connected via websockets. Once the two way communication is set up, I would like to send a command to the device via my IT admin site (For Example shutdown IoT).   How do I accomplish that? &nbs...

How to Count the Combination of Addition of Numbers in C

Jojo, Lili, and Bibi is playing game about addition. Of course, addition is not a big problem for those who understand about how simple the addition is. But, they don’t want to add certain numbers, but they want to count how many combinatio...

How to Set Previous Title of a Fragment When Back Pressed in Java?

I have created a activity in which I placed a fragment and inside fragment I have used a card view. when I click on card view it moves to next fragment and set title of card view to next fragment toolbar. The problem is when I press back button...

How to Read Data from Firebase in NoSQL?

//Signup const signupForm = document.querySelector("#signup-form"); signupForm.addEventListener("submit", e => { e.preventDefault(); // feel free to change the object keys to match your data model db.ref("users/").push({ ch...

How to Use a Variable's Result in Another Formula in Javascript?

Hi All,   My first post and I'm not a programmer.   I've already spent a lot of time on this without any success.   I'm trying a retrieve the value of a variable, calculated earlier in the js, so I can...

How to Solve UI UX Problem on My Webpage Design

Im facing with a problem , im going to design the first page of the site and Uiux,  The thing is I cannot solve this problem as this is a brand new idea of mine so  it is difficult for me to manage and solve the problem. I mean i c...

How to Create Server for Multi-user Quiz using HTML, CSS, & JavaScript?

I am designing one quiz for my team members using HTML, CSS, and JavaScript but don't know how to make it available to multiple users at the same time. I want to build a real-time quiz as we have in any online entrance exam.   I kn...

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured in ...

I got failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured in spring boot   I am working on spring boot import batch processing with gradle, YML properties file, but ...

Help Me Understand Hangman Game Breakdown in Python

My question is with regards to the below code its a hangman game. I got this code online and trying to reverse engineer it so i can understand it better. My question is specifically regarding two lines , i need to understand the individual line...

How to Delete Duplicates from Tables with Relationship

http://stackoverflow.com/questions/58952607/trying-to-delete-duplicates-from-tables-with-relationship   I would like to know how to delete duplicate cases in a database with tables that are joined through the use of primary key and a f...

How to Split String From a Javascript File into Two Array String

I want split string from file into two array string......   file contain this-   Bangladesh= 109.408 India= 92.7478 Pakistan= 200.550 USA= 1.29221 Europe= 1.16989 UK= 1 SA= 4.85180 Australia= 1.90035 Can...

How to Solve Beginner Batch File Problem for Windows App

So i've got multiple exercises to do in I have absolutely no idea how to make this script :    The script must create a file named files.txt and display its contents. The file must contain all the names (only) in the %windir%\...

How to Correct or Get The Mistake in This Python Code?

def greedy_cow_transport(cows,limit=10): train = [] while sum(cows.values()) > 0: cart = [] total = 0 for cow, value in sorted(cows.items(), key=lambda x:x[1], reverse=True): if cows[cow] != ...

How to Multiply Custom Weight to TFIDF Value Created by Word Vectors from Tweet Text in Python

How to Multiply Custom Weight to TFIDF Value Created by Word Vectors from Tweet Text in Python   Need a lil help with Python coding. I have a data frame as: Tweet Text   word1 word2 word3 word4 Tweet1    &nbs...

How to Implement a Logic in PHP for Fight App?

Please take a look at the code below. We've got a class FightService, which implements a logic of a fight between two heroes. After the fight one of the hero may lose some health points.   Please implement a test for FightService::...

How to Display Power Set of 2 Sets of Fibonacci Series n and m?

Firstly the Fibonacci series is 1,2,3 not 5,8,2 it is not getting corrected. Secondly the correct power set is not getting generated. In the last is I want to generate two Fibonacci series of n and m (they can be same) and generate the power set ...

Can You Please Spot the Error in the Following Python Code?

How to display a powerset using the following code? what is the mistake and where? why the output is not getting displayed? What to do to display the output?   def power_set(items): N = len(items) # enumerate the 2 ** N pos...

How to Remove Default Route in Ubuntu - Linux Query

I am using Ubuntu and I need some complex networking configuration like removing existing default route.   Thanks

How to Write Python Code (2.7 version) for the following Problem?

Write python code(2.7 version) for the following and also explain the logic because i am not understanding please explain.   Eight houses ,represented as cells , are arranged in a straight line.Each day every cell competes with its adj...

How to Get Coordinates of Shapes Like Triangle, Polygon On Canvas in JS?

See Below Code:   import { Component, OnInit } from '@angular/core'; import { fabric } from "fabric/dist/fabric.js"; @Component({ selector: 'app-p-five', templateUrl: './p-five.component.html', styleUr...

How to Convert Jquery Code in Javascript?

See Below:    var min = 99; var max = 999999; var polygonMode = true; var pointArray = new Array(); var lineArray = new Array(); var activeLine; var activeShape = false; var canvas $(window).load(function(){    ...

Meteor SocketIO Client-server Connection Not Established

I’m trying to connect a client app locally deployed to a server app I deployed to heroku, using socket.io. The app works great locally but I can’t establish the web sockets when deployed to heroku.   My server code: &nbs...

How to Start Developing a Web Application?

Hi there,   I am trying to create a Web Application but not sure where to start! Any ideas or any link for article or tutorial/video/post?   I know HTML, CSS, JS, Python, C and C++   Also, PHP, MySQL and MongoDB ...

Why Validation Accuracy Doesn't Change in Classification Using Stateful LSTM - Python

I am trying to classify some video into 3 different classes. Each video has different length of frame. The training data has the shape of (104, None, 528) where:     - 104 = Number of videos  - None = number of frames f...

How to Check If Bootstrap Last Column is Even or Odd

Im new to this forum and new to php too… hope i get some help… I have bootstrap column in while loop, what i want is if bootstrap last column is odd then i want column to be 12 (col-12), i found the way to check number even or ...
prev 1 2 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: