Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
add
- Page 1
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
6 Days Ago
by Biiim
… there is probably a solution for it, like you can
add
a "replyto:" header to be able to reply…
Re: APIs and SDKs in a PHP project
Programming
Web Development
2 Days Ago
by Dani
In the context of PHP, an API's SDK is a PHP-based library that is used to access what is typically a JSON-based API. Composer is a dependency manager for PHP, but you typically don't *need* to use it. What API are you trying to connect to?
Re: APIs and SDKs in a PHP project
Programming
Web Development
1 Day Ago
by pritaeas
> I am also using PHP procedural programming and I noticed that these SDKs use OOP. > Can someone help me make my first API call using an SDK? Do you understand OOP and can you write code using it? If so, continue to the next step. I'd advise against the other way around.
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Weeks Ago
by toneewa
…collisionY = b.get(i).getY(); //
Add
a new ball when a collision occurs and…; // Example: Move 80 pixels up b.
add
(new Ball(collisionX, collisionY, 25)); // You…} BallPanel bp = new BallPanel(b); frame.
add
(bp); frame.setSize(520, 540); // Set …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Weeks Ago
by toneewa
…get(j))) { collisionCount++; // Increment collisionCount here //
Add
a new ball when a collision occurs and the …x, y, 40); } BallPanel bp = new BallPanel(b); frame.
add
( bp ); frame.setSize( 500, 500 ); frame.setVisible( true );…
Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Weeks Ago
by jprog1000
… Ball (14, 10,40); BallPanel bp = new BallPanel(b); frame.
add
( bp ); frame.setSize( 500, 500 ); frame.setVisible( true ); } }…(), this.b[i].getRadius()); } } } I would like to
add
a new ball when two balls collide in the Ball…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by vortex_1
… a new ball is created when two balls collide can
add
an interesting and dynamic element to the simulation. This feature… the simulation [mod manager](https://vortexmodmanager.me/). While it can
add
an element of complexity and excitement, it's important to…
APIs and SDKs in a PHP project
Programming
Web Development
3 Weeks Ago
by FarrisFahad
I want to understand how I can
add
an SDK to my PHP projects to make APIs calls. …
How do I swap out the mesh on a humanoid armature in Unity 3D?
Programming
Game Development
2 Weeks Ago
by Michael_80
… layered individually onto the game object? I have attempted to
add
a mesh filter (Man_BodyMesh) and used the root which was…
Re: Improve HAVING BY performance
Programming
Databases
3 Weeks Ago
by Biiim
… indicates you don't have one: ALTER TABLE `products`
ADD
PRIMARY KEY(`ProductID`),
ADD
INDEX `Price` (`Price`); You should also specify your…
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
3 Weeks Ago
by david.tigner
…// $mail->DKIM_copyHeaderFields = false; //Optionally you can
add
extra headers for signing to meet special requirements //$mail->…$mail->setFrom('david.tigner@RadiantNewHorizonHomes.com', 'David Tigner'); /*
Add
a recipient. */ $mail->addAddress('david.tigner@RadiantNewHorizonHomes.com'); …
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
1 Week Ago
by david.tigner
…// $mail->DKIM_copyHeaderFields = false; //Optionally you can
add
extra headers for signing to meet special requirements //$mail->…$mail->setFrom('david.tigner@RadiantNewHorizonHomes.com', 'David Tigner'); /*
Add
a recipient. */ $mail->addAddress('david.tigner@RadiantNewHorizonHomes.com'); …
Re: What are the key components of an effective email marketing campaign?
Digital Media
Digital Marketing
1 Week Ago
by KomalBhatt
… campaign have been covered most ! However I would like to
add
a few key points Here’s a more simplified explanation…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Weeks 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
3 Weeks Ago
by Dani
I’ll mark this question solved :)
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Weeks 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
3 Weeks 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
3 Weeks 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: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks 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
2 Weeks Ago
by aishamushtaq
Hi, Its helpful for me. I got my answer.
Re: APIs and SDKs in a PHP project
Programming
Web Development
3 Weeks Ago
by rproffitt
> A software development kit is a collection of software development tools in one installable package. As such your last question doesn't make sense. The SDK installs your software development tools and your code would be where the API is called but not a call to the SDK!
Add property to standard object
Programming
Web Development
2 Months Ago
by Dani
I, very hackily, create an object of type stdClass as so: $arr = array( 'foo' => 'bar', 'baz' => 'bat' ); $obj = json_decode(json_encode($arr)); How can I now quickly
add
a third property to $obj without PHP getting angry?
Re: Add property to standard object
Programming
Web Development
2 Months Ago
by jkon
I completely agree with you with the "hackily" part , but here it is: $arr = [ 'foo' => 'bar', 'baz' => 'bat' ]; $obj = json_decode(json_encode($arr)); $obj->newProperty = "something"; var_export($obj); exit;
Re: Add property to standard object
Programming
Web Development
2 Months Ago
by Dani
> $obj->newProperty = "something"; For some reason I thought that PHP didn't allow that without throwing an error?! (Hence the reason for me posting this question). I'm on PHP 8.2/8.3.
Re: What more i can add to this website?
Programming
Web Development
1 Month Ago
by rproffitt
Just a tip. Take a few minutes to complete your DANIWEB profile to
add
your site and maybe get your tagline working. Welcome to DANIWEB.
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
… In this article, I will explain how to
add
memory to this chatbot and execute conversations where the…In the next section, you will see how to
add
memory to your chatbot to track past conversations. ## … `AIMessage` objects using the user queries and chatbot responses and
add
them to the `chat_history` list. ``` chat_history = [] def …
ChatGPT ‘Lobotomized’? Performance Crash Sees Users Leaving in Droves
Community Center
2 Months Ago
by Johannes C.
… case. ## How OpenAI is Planning to Make Things Worse ## To
add
pain to injury, OpenAI just announced plans to **[put watermarks…
Fine Tuning Google Gemma Model for Text Classification in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
… end of the review, we insert a new line and
add
the text `Sentiment:` followed by the review sentiment. ### Fine Tuning…
7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM
Programming
Computer Science
1 Month Ago
by usmanmalik57
… the following script. ``` input_text = "Write a Python fuction to
add
two numbers" response = generate_response(input_text, 200, 0.1) print…
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
Forums
Top Members
Meet People
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