Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
connect java with mysql
- Page 1
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
20 Hours Ago
by Digital_39
Hi, Its helpful for me. I got my answer.
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
6 Days Ago
by Biiim
… out an email from an SMTP server you need to
connect
to it and logon with a password to an SMTP… at `smtp.ionos.com` so with PHPMailer, you need to
connect
to an SMTP server with the correct connection details and… to the point, you only need one SMTP account to
connect
with PHPmailer and send emails, you don't need 4…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
6 Days 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
6 Days 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 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: How to query database using variable and get all results not just one row
Programming
Web Development
6 Days Ago
by Biiim
logically, it would be because `WHERE variable_name = :variable_name` matches 1 row in your table maybe try a `var_dump(str_replace(':variable_name',"'some_value'",$sql));var_dump($records);`? run the sql on whichever way you use to access your DB directly I don't use PDO so i'm not too familiar on how it returns results, either …
Re: How to query database using variable and get all results not just one row
Programming
Web Development
5 Days Ago
by Chris_103
To retrieve all records associated with the current user, you can use the fetchAll() method instead of fetch(). Here's how you can modify your code: ```php // Query database to retrieve records associated with the user $sql = "SELECT * FROM table_name WHERE variable_name = :variable_name"; $stmt = $conn->prepare($sql); $stmt->…
Re: Shared Printer Problem
Hardware and Software
Microsoft Windows
6 Days Ago
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.
Re: Improve HAVING BY performance
Programming
Databases
1 Week Ago
by toneewa
…
MySQL
in the past day. I setup a server, a database, and wrote a C++ program to
connect
…comment(lib, "mysqlcppconn.lib") // For
MySQL
Connector/C++ version 6 #pragma comment(lib, "…5){ try { driver = sql::
mysql
::get_mysql_driver_instance(); con = driver->
connect
("tcp://127.0.0.1:3306…
Re: Improve HAVING BY performance
Programming
Databases
1 Week Ago
by Dani
… rendered. We do that with DaniWeb
Connect
business cards e.g. https://www.daniweb.com/
connect
/users/view/1 because figuring out…
Re: Improve HAVING BY performance
Programming
Databases
2 Weeks Ago
by Biiim
> I don't have experience with MariaDB, but in
MySQL
, something like that will work as long as I do ….* and the creator continued developing MariaDB and Oracle took
MySQL
- so that's why they are very similar as in … are insanely fast, I remember the speed jump of my
MySQL
server back circa 2008-2010 from a HDD to SSD…
Re: Improve HAVING BY performance
Programming
Databases
2 Weeks Ago
by Dani
…; 10 I don't have experience with MariaDB, but in
MySQL
, something like that will work as long as I do…
Re: Improve HAVING BY performance
Programming
Databases
1 Week Ago
by toneewa
… MAX(Price). With a database over 305K rows, 3 columns,
MySQL
Workbench is unstable importing. Took over 2 hours. WHERE is…
Re: Improve HAVING BY performance
Programming
Databases
1 Week Ago
by Biiim
… impact on the speed You can also fine tune the
MySQL
system variables to better handle the queries you want to…
Re: Improve HAVING BY performance
Programming
Databases
1 Week Ago
by toneewa
… your mentioned alter table index. Took 4.375 secs in
MySQL
Workbench. It did speed up the results. I'll have…
Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by jprog1000
… 500 ); frame.setVisible( true ); } } import
java
.awt.event.ActionListener; import
java
.awt.event.ActionEvent; import javax.swing.JPanel; import… javax.swing.Timer; import
java
.awt.Graphics; import
java
.awt.Color; public class BallPanel extends …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by toneewa
… <= radius * radius; } } BallPanel.
java
: import
java
.awt.event.ActionListener; import
java
.awt.event.ActionEvent; import javax.swing.JPanel; import….swing.Timer; import
java
.awt.Graphics; import
java
.awt.Color; import
java
.util.ArrayList; import
java
.util.Arrays; public class…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by toneewa
…getBounds().intersects(b.getBounds()); } } BallPanel.
java
: import
java
.awt.event.ActionListener; import
java
.awt.event.ActionEvent; import javax.swing.JPanel….swing.Timer; import
java
.awt.Graphics; import
java
.awt.Color; import
java
.util.ArrayList; import
java
.util.Arrays; public class…
i need to transform specific code for mltiplr classes to GUI
Programming
Software Development
1 Week Ago
by JILA
if i provide you with my project OOP
java
can you transform him for me to GUI
Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
1 Week Ago
by usmanmalik57
…Importing Required Libraries To
connect
your Python application with PostgreSQL and
MySQL
, you must install the PostGreSQL and
MySQL
connectors. Execute the following…. ``` # connector for PostgreSQL !pip install psycopg2 # connector for
MySQL
!pip install
mysql
-connector-python ``` ## Defining the LLM and Agent As previously…
Mariadb10.11.6 Glarea single failed node startup stuck failure
Programming
Databases
1 Week Ago
by mx_983
…; evs.user_send_window = 2; evs.view_forget_timeout = PT24H; gcache.dir = /var/lib/
mysql
/; gcache.keep_pages_size = 0; gcache.keep_plaintext_size = 128M; gcache.mem_size = 0; gcache….log --pid-file=/run/mariadb/mariadb.pid --socket=/var/lib/
mysql
/
mysql
.sock --wsrep_start_position=20c1183c-e5c5-11ee-9129-97e9406cb3f8:7183126' WSREP_SST: [INFO…
How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
3 Weeks Ago
by Hanginium65
… a Python script that included the python-swiftclient module to
connect
to the OpenStack Object Storage and upload some files to…
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
3 Weeks Ago
by Biiim
… = '1234567890abcdefg!'; //SMTP password $mail->Port = 587; //TCP port to
connect
to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS…
Re: ASUS Laptops - my experience
Hardware and Software
3 Weeks Ago
by Reverend Jim
… when I tried to install the driver I could not
connect
to the internet. Also, the Bluetooth would not pair to…
Re: Things I hate about TV shows
Community Center
Geeks' Lounge
2 Weeks Ago
by Reverend Jim
… long approaching each others lips and just before they finally
connect
they are interrupted. The "it's complicated" explanation…
Re: ASUS Laptops - my experience
Hardware and Software
2 Weeks Ago
by Reverend Jim
… through the initial setup. All I had to do to
connect
to wifi was select my connection and enter my password…
Re: Why does Dell hate Linux so much?
Hardware and Software
Linux and Unix
2 Weeks Ago
by mickeydoodle
I've just acquired a Dell laptop, it seems to hate Linux! Touch pad doesn't work properly, Wireless won't
connect
and it's sooo slow! Works fine with Windows!
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
2 Weeks Ago
by david.tigner
… get a Command Line PHP.exe file, requires SSH to '
Connect
to Webspace'. They use Linux web hosting packages and said…
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