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

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  

My datatable not showing in laravel project

I'm working on inventory management project in laravel but currently my datatable is not showing for sales order list SalesController.php <?php namespace App\Http\Controllers\Transaction; use App\Http\Controllers\Controller; ...

Help please

You are given the following data for agents  agent is_available available_since (the time since the agent is available) roles (a list of roles the user has, e.g. spanish speaker, sales, support etc.)    When an...

How to write the following Java Program

design and implement the following structure for your organization. You must follow the instructions given below 1 – Name of you organization is your surname. For example, if your name is “john wicki”, then “wicki”...

Need an Illusion module In wordpress donation Website

I hope all of you are fine. I am making a donation website in WordPress. There will be a charity account creation that has 4 different amounts in cents. Users will create their account and donate to that charity. It will be recurring based....

How to resolve unreadable response using plsql code in oracle

I'm using oracle 19c database character set AR8MSWIN1256 ON WINDOWS I have used UTL_HTTP to get a soap response but I am getting invalid characters also i have switched to AMERICAN_AMERICA.AL32UTF8on another database but with n...

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...
prev 1 3 22
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: