Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
add
- Page 1
Re: Display specific html tag on specific pages
Programming
Web Development
15 Hours Ago
by ianhaneybs
Thank you so much for the code Dani, that does look a lot cleaner and better than what I have
Display specific html tag on specific pages
Programming
Web Development
3 Days Ago
by ianhaneybs
… computer shop basildon page but I'm unsure how to
add
the homepage into that code, the homepage is called index…
Re: Display specific html tag on specific pages
Programming
Web Development
3 Days Ago
by ianhaneybs
Just got it working with the following code <?php $currentpage = $_SERVER['REQUEST_URI']; if($currentpage=="/" || $currentpage=="/index.php" || $currentpage=="/index" || $currentpage=="" || $currentpage=="/computer-shop-basildon.php" || $currentpage=="/…
Re: Display specific html tag on specific pages
Programming
Web Development
1 Day Ago
by Dani
Glad you got it figured out. Here is a cleaner way of presenting the above code so it doesn't look so messy: <?php // Retrieve the current page $currentpage = $_SERVER['REQUEST_URI']; // Most pages have this CSS class $class = 'testimonial-two'; // Array of pages $array = array( '/',…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 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…
How do I swap out the mesh on a humanoid armature in Unity 3D?
Programming
Game Development
3 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: Online subission forms not sending emails of submitted info
Programming
Web Development
2 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: What are the key components of an effective email marketing campaign?
Digital Media
Digital Marketing
2 Weeks 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: Online subission forms not sending emails of submitted info
Programming
Web Development
1 Week Ago
by Biiim
… there is probably a solution for it, like you can
add
a "replyto:" header to be able to reply…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
4 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
3 Weeks Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 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
3 Weeks Ago
by aishamushtaq
Hi, Its helpful for me. I got my answer.
Re: APIs and SDKs in a PHP project
Programming
Web Development
1 Week 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 Week 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.
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 …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Month 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
1 Month 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
1 Month 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…
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…
What would you like to see in a business directory?
Programming
Web Development
1 Month Ago
by FarrisFahad
… I have come up with ... 1. users can register and
add
listings. 2. admin can create categories for users to select…
How to effectively promote blogger challenge games on the internet?
Digital Media
Digital Marketing
1 Month Ago
by smsi
… images to the gallery of this game, as well as
add
images, photos or avatars for greeting screens and splash screens…
APIs and SDKs in a PHP project
Programming
Web Development
1 Month Ago
by FarrisFahad
I want to understand how I can
add
an SDK to my PHP projects to make APIs calls. …
What more i can add to this website?
Programming
Web Development
1 Month Ago
by futurmagnussen
I have develop a website for now its on wordpress i will move on to more custom an secure option can any of you help me decide if to ad more services or not to it....just for your info me and my friends are freelancer and each of my friend have a different skill set.
Re: How to Code a Load More Button?
Digital Media
Digital Marketing
Search Engine Strategies
1 Month Ago
by MarkMarketer
…('div'); div.textContent = data[i]; div.classList.
add
('hidden'); content.appendChild(div); } } // Function …hidden'); } } // Load initial data loadData(); //
Add
event listener to load more button document.getElementById('loadMore').…
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