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

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...

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...
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: