Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
g%2b%2b
- Page 1
Question Answering with YouTube Videos Using RAG in LangChain
Programming
Computer Science
5 Days Ago
by usmanmalik57
…-Y", "https://www.youtube.com/watch?v=DNNMS7l6A-
g
", "https://www.youtube.com/watch?v=1rh-P2N0DR4…
pass data to another asp page
Programming
Software Development
3 Days Ago
by Fergus_1
… as the url and use it make further queries. Thanks
G
Re: What is the Best Marketing Platform For E-commerce Website?
Digital Media
Digital Marketing
5 Days Ago
by AndyBeohar
… Ads * Instagram Ads * Email Marketing Platforms (e.
g
., Mailchimp) * Amazon Advertising * Content Management Systems (e.
g
., WordPress, Shopify) * Social Media Management Tools…
Re: Determine if email address is used by scammer
Digital Media
Digital Marketing
Search Engine Strategies
6 Days Ago
by Dani
… GMail can follow up and take the appropriate action (e.
g
. shut down the GMail account).
Re: What's the most unexpected hobby or interest you have outside of coding?
Community Center
Geeks' Lounge
6 Days Ago
by toneewa
… great technologies for people to have a full mapping. E.
g
., Celiac disease, if you don't have the genes HLA…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
4 Days Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
4 Days Ago
by vortex_1
In my opinion, implementing a feature in a bouncing balls simulation where a new ball is created when two balls collide can add an interesting and dynamic element to the simulation. This feature can introduce a sense of complexity and unpredictability, making the simulation more engaging and challenging for users. It could also provide an …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Days Ago
by jprog1000
Great reply, vortex! Agree with all your points.
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Days Ago
by Digital_39
Hi, Its helpful for me. I got my answer.
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by toneewa
…repaint(); } public void paintComponent(Graphics
g
) { super.paintComponent(
g
); // Move the balls for (int….getRadius()); } // Display the collisionCount
g
.setColor(Color.black);
g
.drawString("Collision Count: " …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by toneewa
…repaint(); } public void paintComponent(Graphics
g
) { super.paintComponent(
g
);
g
.setColor(Color.red); // move the…getRadius()); } // display the collisionCount
g
.setColor(Color.black);
g
.drawString("Collision Count: " …
Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by jprog1000
…(ActionEvent e) { repaint(); } public void paintComponent( Graphics
g
) { super.paintComponent(
g
);
g
.setColor(Color.red); // move the balls for (int i… (int i = 0; i <b.length; i++){
g
.fillOval(this.b[i].getX(), this.b[i].getY() , this…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by toneewa
Yes, this is true. Overlapping ball spawns can do that causing a chain reaction. Something like that could be done. How you handle the spawning of the new ball is what I played with a bit before. You will see better collision detection changing to:
g
.fillOval(ball.getX(), ball.getY(), 1 * ball.getRadius(), 1 * ball.getRadius());
VB2010- why i get a different vertical size\color on RayCasting?
Programming
Software Development
2 Weeks Ago
by cambalinho
…(RayHeight * 4), RayCounts, 5) imgverticalline.ForeColor(RGB(VertColor.R, VertColor.
G
, VertColor.B)) imgverticalline.DrawLine(RayCounts, imgverticalline.Height / 2 - RayHeight \ 2…
Slaying Unicorns: How Europe Sabotages Its Own Economic Future
Community Center
3 Weeks Ago
by Johannes C.
…they felt entitled to and became used to them. E.
g
. there is not a single gold mine in France, … Not to mention the loss caused by tight restrictions – e.
g
., due to limited insights because of the [GDPR](https://gdpr…of AI’, also voted to give themselves dystopian rights – e.
g
., [mass-surveillance with real-time facial recognition](https://www.greens…
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
4 Weeks Ago
by david.tigner
… returning false. The coding I'm using has worked (e.
g
. sent email with submitted info) for 13 years and now…
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
1 Week Ago
by david.tigner
….com where the code block shown below is stored: e.
g
. in the root directory are directories: PHPMailer, RNHindex, etc.). IONOS…
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
1 Week Ago
by Biiim
….com where the code block shown below is stored: e.
g
. in the root directory are directories: PHPMailer, RNHindex, etc.). IONOS…
Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain
Programming
Computer Science
3 Weeks Ago
by usmanmalik57
I was searching for Paris Olympics ticket prices for tennis games recently. The official website directs you to a [PDF document](https://tickets.paris2024.org/obj/media/FR-Paris2024/ticket-prices.pdf) containing ticket prices and venues for all the games. However, I found the PDF document to be very hard to navigate. To make things easier, I …
Re: Word Association Game
Community Center
Geeks' Lounge
3 Weeks Ago
by Dani
Seriously?! I need to go twice in a row b/c after almost two decades of this thread staying alive, no one's posted in 4 years? OK, fine ... snobby --> princess
Re: DomContentLoaded vs jQuery Ready fn
Programming
Web Development
4 Weeks Ago
by jkon
… it dynamically after DOMContentLoaded or onLoad in older browsers. e.
g
.: var _fncl=false//if the loader function has called ,_fnc…
Re: How NOT to do business online
Digital Media
Digital Marketing
2 Weeks Ago
by Dani
… wants to convert it into utilizing a payment API (e.
g
. something that accepts credit cards). This takes a decent amount…
Re: Improve HAVING BY performance
Programming
Databases
2 Weeks Ago
by Dani
… the PHP code *and* send it over the wire (e.
g
. including network latency). When I said I was able to…
Re: Improve HAVING BY performance
Programming
Databases
2 Weeks Ago
by Dani
… rendered. We do that with DaniWeb Connect business cards e.
g
. https://www.daniweb.com/connect/users/view/1 because figuring…
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
3 Weeks Ago
by Salem
First, let's prepare two tar files using different compression schemes for demo purposes. $ cat foo_1.txt This is file 1 $ cat foo_2.txt This is file 2 This is file two This is file too # Three tar files, two compressed and one uncompressed for reference $ tar -j -c -f foo.tar.bz2 foo_1.txt foo_2.txt…
Re: How Build video-player in html And css ?
Programming
2 Weeks Ago
by Kirubel_2
body{ /* background: url(../img/w11.png); */ background: url(../img/m.jpg); background-size: cover; background-repeat: no-repeat; margin: 0; padding: 0; height: 101vh; overflow-y: hidden; } .container button{ background: transparent; …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by jprog1000
Thank you so much for your reply and additions! It is certainly working as I wanted. I will read through the code you have added and ask you any questions I might have. I hope you don't mind. Regards
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by Dani
I’ll mark this question solved :)
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by Dani
… oh, sorry, missed the bit about you still needing clarifications. Feel feee to ask :) I’ll now unmark this topic as solved. /facepalm
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by jprog1000
Hello, Thank you again so much! All your additions are clear, but it seems like whenever two balls collide, more than one ball is added to the arraylist and painted. Any way to have just one ball added to the panel for every collision? Have some kind of a toggle flag in paintcomponent? Regards
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC