Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
program
- Page 1
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Days Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Day 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
1 Day 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
1 Day Ago
by Digital_39
Hi, Its helpful for me. I got my answer.
ABC for Github-programs and Python
Programming
Software Development
3 Weeks Ago
by Audun
…´s going on. It says it´s included in the
program
, so.. Any clue? P.S. If you know of a… dream being to have like a "test-
program
", as in a blank
program
with basic stuff in place, like a…-compatibility, and stuff like that; a
program
that looks just like a normal Windows-
program
, only you can put stuff in it…
Re: GCC Fails to Recognize Parameters
Programming
3 Weeks Ago
by toneewa
… decided to install the ffmpeg library and do a test
program
another way. For me, the declarations worked changing: #include "….h" #endif #include "libavformat/url.h" This
program
reads and prints the information of a mp4 file. extern…
Installing programs from Github
Programming
Software Development
3 Weeks Ago
by Audun
Hi I downloaded Tkinter Designer, but there´s no exe there. I´ve used Thonny as a "compiler" for running scripts, and I used it to "make" a a simple
program
, but I don´t know how to save as an exe, and I don´t know how I would put these files into Thonny. Am I even using the right
program
?
Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by jprog1000
Hello, I have a
program
which creates multiple balls and bounces them off when they … then called the move and the fill oval methods, the
program
froze. Can you tell me why? What is the proper…
Re: Installing programs from Github
Programming
Software Development
3 Weeks Ago
by rproffitt
> Python is an interpreted language, which means the source code of a Python
program
is converted into bytecode that is then executed by the Python virtual machine. As such the .exe would be the Python virtual machine and not your Python apps.
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
3 Weeks Ago
by david.tigner
… addresses need to be authenticated and a new STMP PHPmailer
program
needs to be used. In generic coding I got for…
Re: Read file properties of video files in C++
Programming
Software Development
1 Week Ago
by Thomasio
How would that help me? That's just another
program
that does more or less the same Windows does, but …
Re: Read file properties of video files in C++
Programming
Software Development
1 Week Ago
by Thomasio
… guess in the end it comes down to ..... that MediaInfo
program
will also use just API commands, even if wrapped in…
Re: Improve HAVING BY performance
Programming
Databases
1 Week Ago
by toneewa
…. I setup a server, a database, and wrote a C++
program
to connect to it. It measures the times for 3…
Re: ABC for Github-programs and Python
Programming
Software Development
3 Weeks Ago
by Reverend Jim
I have an apps folder on D: where I keep all my portable/homegrown software. Let's say I want to create a virtual enviromnent in `D:\apps\MyVirtual`. To do this I open a command shell and do D:\>cd apps D:\apps>python -m venv MyVirtual If I install any packages in this session, they will be installed in the virtual python. …
Re: ABC for Github-programs and Python
Programming
Software Development
3 Weeks Ago
by Reverend Jim
I have developed a number of GUI applications in python. I found that the wxpython package was far better than tkinter. wxpython is based on wxwidgets which is essentially windows controls. Because wxwidgets are compiled for each major system, controls rendered by wxpython look like the native controls for whatever system is hosting.
Re: Installing programs from Github
Programming
Software Development
3 Weeks Ago
by Reverend Jim
Further... Python gets converted to byte code which is then cached in a sub-folder. As long as the source code and packages have not changed there is no need to reconvert so subsequent runs should start faster. Also, I strongly recommend that you look into wxpython as a much better alternative to tkinter. Wxpython is a wrapper for wxwidgets …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
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
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 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: 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
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());
Re: Trying to animate sprite using DirectX9
Programming
Software Development
3 Weeks Ago
by Pavel_11
Hello, it is unneccessarily to use right movex or leftmovex , because it is to much variables. You should to use one variable movex to make it with minus or plus sign in your update function; by pressing left or right keys; because the one thing which is changable is a picture; I mean in global sense; variables like leftx, right x should be one…
Why am getting different syntax errors when running a Python script
Programming
Software Development
2 Months Ago
by Tom_45
…Python class dealing with popular baby names. I have the
program
running properly when using only one filename, but when I… files I get differing errors every time I run the
program
. Here is the problem code: matches = re.findall('<… male name, female name) in it. When I ran the
program
last night on a single file, I got the results…
GCC Fails to Recognize Parameters
Programming
1 Month Ago
by snah19
… \ || exit 1 # Compile a hello world
program
for testing echo "Compiling hello world
program
for testing..." cat > helloai.c…
How do I fix a 403 error with C# when trying to access SharePoint?
Programming
Software Development
2 Months Ago
by complete
Using the Microsoft.SharePoint.Client namespace in a C# code, I am trying to access a SharePoint List but I am getting a 403. Is it because the Microsft List I am trying to access is on a different computer on the internet and the
program
has to be on the same "ecosystem"? Is there a way around this?
Re: what's the correct way of learning programming?
Programming
1 Month Ago
by Reverend Jim
… large number of languages over many years and I now
program
exclusively in Python. It give me fast turnaround and is… is an excellent resource. Keep in mind that learning to
program
is not just about learning a language. It is also…
Re: Is Coding About Authoring or Achieving a Specification?
Programming
2 Months Ago
by rproffitt
… C. Not even C++. To make that more fun, the
program
lead wanted to replace the hardware system with "something…
Re: Applying PySide's QAbstractTableModel
Programming
Software Development
1 Month Ago
by Mark_94
Even although this topic is 11 years old (in 2024), it's still very helpfulby showing how to properly
program
in Python3. I've readily translated it to PySide6 and it works fine except for one tiny prob: sorting the MP column with "TypeError: '<' not supported between instances of 'str' and 'float'". I'm not sure how to fix it.
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