Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
string.format
- Page 1
Re: Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
8 Hours Ago
by aishamushtaq
very helpful
Re: how to create a simple elevator simulation?
Programming
Software Development
1 Day Ago
by trueframe
To make a basic elevator simulation, first, identify the floors and the elevator's capacity. Then, use loops and conditionals in programming to mimic its movement. Include buttons for users to call the elevator and select floors. Test thoroughly for accuracy.
Question Answering with YouTube Videos Using RAG in LangChain
Programming
Computer Science
1 Week Ago
by usmanmalik57
… transcript of each video is stored in a LangChain document
format
, as you can see from the following script. ``` type(docs….base.Document ``` Once you have text in the LangChain document
format
, you can split it using any LangChain splitter, create text…
Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
2 Weeks 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
2 Weeks 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 Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
4 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
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: Improve HAVING BY performance
Programming
Databases
3 Weeks Ago
by Biiim
… restructuring the sub-queries to give it in the right
format
or it just isn't a problem that it takes…
Re: Read file properties of video files in C++
Programming
Software Development
3 Weeks Ago
by pritaeas
… video info, as this info is different for each video
format
. With the Windows Property System you can read some information…
Re: Read file properties of video files in C++
Programming
Software Development
3 Weeks Ago
by Thomasio
… I already guessed that may be because of a file
format
Windows cannot read correctly. But then for the video files…
Re: Read file properties of video files in C++
Programming
Software Development
3 Weeks Ago
by toneewa
…\n"); return -1; } // dump info on input or output
format
. av_dump_format(fmt_ctx, 0, "snow.mp4", 0); // Close an…
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: A Utility App for my organisation
Hardware and Software
Cloud-based Apps
4 Weeks Ago
by Dani
I would recommend Wordpress.
Re: A Utility App for my organisation
Hardware and Software
Cloud-based Apps
4 Weeks Ago
by Yito
Do you need someone or company to provide quote and develop it?
Re: A Utility App for my organisation
Hardware and Software
Cloud-based Apps
4 Weeks Ago
by Dani
Rahul, do you mean a mobile app for iPhone or Android? Wordpress can build some incredibly powerful web apps.
Re: Create And Install Windows Service Step By Step In C#
Programming
Web Development
2 Weeks 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: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 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
2 Weeks Ago
by Dani
I’ll mark this question solved :)
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 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
2 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
2 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
1 Week Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week 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 Week 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 Week Ago
by aishamushtaq
Hi, Its helpful for me. I got my answer.
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… information we need in CSV
string
format
. The last step is to convert this
string
into a CSV file. ##…
Re: i don´t understand this syntax error when using OpenCV
Programming
Databases
2 Months 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… the
string
. You could also use image = cv2.imread(C:\\Users\\Audun Nilsen\\Pictures\\pica.webp') but I prefer the raw
string
format
.
PDF Image Table Extractor Web App with Google Gemini Pro and Streamlit
Programming
Computer Science
2 Months Ago
by usmanmalik57
…, while the latter converts images to Google Gemini Pro compliant
format
. ``` def get_jpg_file_paths(directory): jpg_file_paths = glob.glob(os.path.join(directory… 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"…
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