James McDaniels

Ranch Hand
+ Follow
since Jul 21, 2022
Merit badge: grant badges
For More
London, United Kingdom
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
12
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by James McDaniels

I have solved my problem.
2 months ago
Hello,

I am coding in Python, using Jupyter Notebook. I am also using Pandas and Beautiful Soup libraries for the tables.

I have already imported the relevant libraries at the top of my notebook.

I want to merge three data frames. I am doing research for a module I am taking.


1st data frame: Educational stage. https://en.wikipedia.org/wiki/Educational_stage

2nd data frame: Education in Canada. https://en.wikipedia.org/wiki/Education_in_Canada

3rd data frame: (r'E:\Umar Khan\UoL\Level 5 Modules\Programming with Data\Mid-Term\Umar-Khan-Research\global_education_data.csv')



As you can see from my attached image, I am getting NaN Values. I want data from the merge data there.

Thank you
2 months ago
Hi Piet,

Step 4: In sketch.js complete the isInside() function that takes the location of two circles and their diameters and returns true if they overlap, false otherwise. You could check it works, by creating a dummy circle around the mouse and checking if isInside() returns true.


I need Step 4 to work in the sketch, js file only.
The three primary functions the code should be in are function setup(), function draw(), & function isInside(locA, sizeA, locB, sizeB) .






9 months ago
I can't get it to run in CodePen for some reason.
So it's better to copy all the code into your IDE.
9 months ago
Step 4: In sketch.js, complete the inside () function that takes the location of two circles and their diameters and returns true if they overlap, and false otherwise. You could check it works by creating a dummy circle around the mouse and checking if inside () returns true.

Working on this step above.
JavaScript(P5.js library)
9 months ago
Hello,

Sorry, let me post all my code.
Check my code below.

Asteriods Games Clone

Thank you
9 months ago
Hello,
I hope everyone is doing well.

I am making a game called asteriodGameClone in JavaScript using the P5.js library.
I have 11 steps to get my game running correctly, as expected.
I have successfully completed 3 of my steps.  

I need help with the fourth step, which is mentioned below.

Step 4: In sketch.js, complete the inside () function that takes the location of two circles and their diameters and returns true if they overlap, and false otherwise. You could check it works by creating a dummy circle around the mouse and checking if inside () returns true.

The problem with my code is it only returns false when the circles do not overlap, but when the circle overlaps, nothing is returned to my console.

My code and the image of my console are below.



Thank you
9 months ago
Yes, I modified the code as you suggested above

These are all the errors from the compiler error are in the screenshot below.

1 year ago
The error is below:
The terminal says this about the third error
warning C4996: 'juce::URL::createInputStream': New code should use the method which takes an InputStreamOptions argument instead.

Error see declaration of 'trackLen'      Line 278

Error cannot deduce 'auto' type Line 279

Error       identifier "InputStreamOptions" is undefined Line 279




I'm still getting the same two errors, I tried to fix it but I can't.
1 year ago
What else can I do to fix the error?
1 year ago
I tried to replace it and it's showing an error.
1 year ago
Is this how it should be?

1 year ago
The first two errors are now fixed.
Thanks

The terminal says this about the third error
warning C4996: 'juce::URL::createInputStream': New code should use the method which takes an InputStreamOptions argument instead.

Third Error see declaration of 'trackLen'      Line 278

Check the code below

1 year ago
First Error lnt-integer-float-division Integer division result is truncated before cast to floating point. PlaylistComponent.cpp     Line 55

Second Error lnt-integer-float-division Integer division result is truncated before cast to floating point. PlaylistComponent.cpp     Line 56

Third Error see declaration of 'trackLen'      Line 278

Line 55 for my code is below:


Line 56 for my code is below:


Line 278 for my code is below:


Thank you
1 year ago
Hi John,
I've fixed the bracket problem that I was having before.

Now I've got three more problems.
1 year ago