Re: Printing multiple integers EASY SOLUTION Programming Software Development by Bunker A straightforward solution to printing multiple integers is to use a loop. For example, in Python, you could use a "for" loop to iterate through a list of integers and print each one. This method is simple and effective. Re: Eero plus vs NextDNS Hardware and Software by rproffitt Network level? My answer would be a VPN. Re: Shared Printer Problem Hardware and Software Microsoft Windows by Bunker Network hiccup, paper jam, or driver glitch - troubleshooting the shared printer quandary demands patience, tech-savvy finesse, and perhaps a dash of printer exorcism. Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 Hello, I have a program which creates multiple balls and bounces them off when they collide. This works fine. import java.awt.Rectangle; public class Ball{ private int x = 0; private int y = 0; private int radius; private int panelwidth = 500; private int panelheight = 500… Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by toneewa Some minor syntax fixes. Some things to consider are the collision and distance of drawing the next ball. A ball inside a ball's radius will cause numerous collisions. Even the starting ball locations can be already causing collisions. I added a collision counter display. Increased the maximum balls to make to 50. The timer delay can also impact … Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by toneewa I cleaned up the code some more. Removed some things that were not being used. I ran into a couple problems which caused the freeze you mentioned. It was memory heap space and array allocating. E.g., if x or y becomes negative, and also infinite recursion. I added a x/y coordinate display for a ball, and tinkered with the placement of the … Re: Word Association Game Community Center Geeks' Lounge 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 VB2010- why i get a different vertical size\color on RayCasting? Programming Software Development by cambalinho these is the VB6 function for RayCasting: Private Sub DrawRays() Dim StepX As Double Dim StepY As Double Dim VertX As Double Dim VertY As Double Dim HorizX As Double Dim HorizY As Double Dim MapX As Long Dim MapY As Long… Re: Improve HAVING BY performance Programming Databases by Dani … ISP servers, anything else running on my computer or home network, etc. Remember, we aren't shaving 50ms off of something… code *and* send it over the wire (e.g. including network latency). When I said I was able to shave off… Re: Mariadb10.11.6 Glarea single failed node startup stuck failure Programming Databases by toneewa … is DHCP on? It reminds me of the time a network printer that stopped working, after the power went out. Other… devices connected to the network after it's setup. Then, after rebooting, it got a… Re: Improve HAVING BY performance Programming Databases by Dani I'm too exhausted for an in depth explanation right now but 90% of web development is optimizing for performance. The average DaniWeb page takes anywhere from 80ms up to 250ms to load the HTML (when dealing with low network latency), depending on the type of page, so shaving 50ms off of that is a huge win. Re: Improve HAVING BY performance Programming Databases by Reverend Jim … ISP servers, anything else running on my computer or home network, etc. As for point #3, personal satisfaction is a big… Re: Improve HAVING BY performance Programming Databases by Biiim … to date without needing to wait for data over the network. My work line might be a bit different since I… Re: Getting my foot in the door? Community Center by trueframe Networking, training and demonstrating the necessary skills are key to getting started. Attend industry events, network with professionals, and find job opportunities and internship opportunities. Increase your chances of success by showcasing your strengths and demonstrating your passion and commitment to the field. Re: Improve HAVING BY performance Programming Databases by Dani … to date without needing to wait for data over the network. DaniWeb uses Redis for a handful of things here, but… Re: ASUS Laptops - my experience Hardware and Software by Reverend Jim … infinite loop of 1. Oops. Something went wrong. Check your network connection (actual message) 2. Automatic retry in 60 seconds Thinking… Re: How Build video-player in html And css ? Programming 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; … Mastering the Social Symphony: A Guide to Strategic Social Media Management Digital Media Digital Marketing by Nandini_7 In today's digital age, social media has become an indispensable tool for businesses and individuals alike. With billions of active users across various platforms, the potential reach and impact of social media cannot be overstated. However, effectively managing social media accounts requires more than just posting content sporadically. It demands … Re: Mastodon Community Center Geeks' Lounge by Dani I just stumbled upon this and had no idea that Mastodon was even a thing 6 years ago, pty! I first became aware of them back when Elon bought Twitter (ahem, X) and everyone fled ship trying to find an alternative. Sorry no one replied to this thread until now. Guess you were just too ahead of your time. ;) Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development 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 by Dani I’ll mark this question solved :) Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development 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 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 Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development 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()); Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 Got it. Thank you so much! Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development 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 by jprog1000 Great reply, vortex! Agree with all your points. Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by Digital_39 Hi, Its helpful for me. I got my answer. Re: Fantastic word game Community Center Geeks' Lounge by Dani It's been a year so I'll go twice in a row. Corner that burglar before he gets away! Re: Word Association Game Community Center Geeks' Lounge by Salem princess -> castle