Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
string.xml
- Page 1
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
5 Days Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
5 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
4 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
4 Days Ago
by Digital_39
Hi, Its helpful for me. I got my answer.
Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
1 Week Ago
by usmanmalik57
…` class. Then, you must pass the database connection
string
to the `from_uri()` method of the `SQLDatabase` class…. For PostgreSQL, the syntax of the connection
string
is as follows: ``` f"postgresql+psycopg2://postgres…PostgreSQL. The only thing that changes is the connection
string
, whose syntax should be as follows: ``` '…
Create And Install Windows Service Step By Step In C#
Programming
Web Development
1 Week Ago
by Rabiya_1
…void WorkProcess(object sender, System.Timers.ElapsedEventArgs e) {
string
process = "Timer Tick " + count…LogService(process); count++; } protected override void OnStart(
string
[] args) { LogService("Service is Started&…
Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain
Programming
Computer Science
4 Weeks Ago
by usmanmalik57
… a `StrOutputParser` object that you can use to directly retrieve
string
responses without using the `content` attribute, as shown in the…
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
3 Weeks Ago
by usmanmalik57
… enter queries as console inputs. If the input contains the
string
`bye`, we empty the `chat_history` list, print a goodbye message…
Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by jprog1000
… javax.swing.JFrame; public class Frame{ public static void main(
String
args[] ) { JFrame frame = new JFrame( "Bouncing Balls" ); Ball…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by toneewa
… javax.swing.JFrame; public class Frame{ public static void main(
String
[] args) { JFrame frame = new JFrame( "Bouncing Balls" ); Ball…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by toneewa
… javax.swing.JFrame; public class Frame { public static void main(
String
[] args) { JFrame frame = new JFrame("Bouncing Balls"); Ball…
Re: Improve HAVING BY performance
Programming
Databases
2 Weeks Ago
by toneewa
…stmt->getResultSet(); while (result1->next()) {
string
name = result1->getString("ProductName"); double…stmt->getResultSet(); while (result2->next()) {
string
name = result2->getString("ProductName"); double…
Re: Create And Install Windows Service Step By Step In C#
Programming
Web Development
1 Week Ago
by rproffitt
Since the answer would be many pages long, read https://learn.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer and consider the two other pages noted there.
Re: i don´t understand this syntax error when using OpenCV
Programming
Databases
4 Weeks Ago
by Audun
I tried that using Thonny, and I´m getting the same result. I tried the same in the "CMD" that opens when I press Python 3.12, and what happened was, it just said nothing and went back to an empty "line", or whatever. I suppose that´s a good sign? It says syntax error a lot on there too. What sort of programs do you use …
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
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());
Odoo : report creation from JSON data
Programming
Web Development
1 Month Ago
by codewasher
…. I have my custom module, I created a model and
xml
file inside it, thats I have done so far thanks
Converting PDF Image to CSV Using Multimodal Google Gemini Pro
Programming
Computer Science
2 Months Ago
by usmanmalik57
…` module. Each Part object contains the base64-encoded
string
and the mime type of an image. ``` def…= img_b64.decode() # convert the base64 bytes to a
string
img_b64 = Part.from_data(data=img_b64, mime_type="image/jpeg… need to split the response into lines using the
string
object's `strip()` and `split()` methods. This…
Re: i don´t understand this syntax error when using OpenCV
Programming
Databases
1 Month Ago
by Reverend Jim
…\pica.webp') Using `r'` in front of a
string
indicates a raw
string
and the backslashes will not be interpreted as special… unless the backslash is the final character in the
string
. You could also use image = cv2.imread(C:\\Users\\Audun…
C++ programming error
Programming
2 Months Ago
by sammieb
I am trying to enter a single
string
in C++ in which I give a URL citation. the … single quotes instead of double quotes before and after my
string
. But when I replace them with double quotes, I get…
PDF Image Table Extractor Web App with Google Gemini Pro and Streamlit
Programming
Computer Science
2 Months Ago
by usmanmalik57
… base64 img_b64 = img_b64.decode() # convert the base64 bytes to a
string
img_b64 = Part.from_data(data=img_b64, mime_type="image/jpeg"…
i don´t understand this syntax error when using OpenCV
Programming
Databases
1 Month Ago
by Audun
… -c $EDITOR_CONTENT Traceback (most recent call last): File "<
string
>", line 6 image = cv2.imread(“C:\Users\Audun…
7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM
Programming
Computer Science
1 Month Ago
by usmanmalik57
…. We will extract the response text only by splitting the
string
using the `[/INST]` substring. ``` def generate_response(input_text, response_tokens, temperature): messages…
Re: How to submit sitemap in Search Console?
Digital Media
Digital Marketing
Search Engine Strategies
2 Months Ago
by Dani
….txt file as so: Sitemap: https://www.mysite.com/sitemap.
xml
Re: Is there anything special I should pay attention to when doing SEO?
Digital Media
Digital Marketing
Search Engine Strategies
2 Months Ago
by KomalBhatt
…**: Build high-quality backlinks from reputable sites. **Technical SEO**: Understand
XML
sitemaps, robots.txt, and fix crawl errors. Analytics: Use tools…
Re: Which Python PDF writing library is best?
Digital Media
UI / UX Design
2 Months Ago
by cored0mp
… 1, due to unknown error But it works with a
string
(using from_string), yielding a decent-looking PDF, provided that my…
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Reverend Jim
…'] The expression `.+?` does a lazy match (returns the shortest possible
string
that matches the pattern.
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