Question Answering with YouTube Videos Using RAG in LangChain Programming Computer Science by usmanmalik57 … = [] for url in urls: docs.extend(YoutubeLoader.from_youtube_url(url, add_video_info=True).load()) print("=====================================") print(f"Total number of… '30% of Activities Performed by Humans Could Be Automated with AI' Community Center by Johannes C. … qualities. Logical reasoning and statistical patterns are one thing — but true connection involves nuanced insight into complex psychological dynamics. No amount… Re: This is me venting Community Center Meta DaniWeb by jkon … and respond with a concrete answer. Programming is not always true or false , it is what you want to do , how… Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 Got it. Thank you so much! Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development 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 by jprog1000 Great reply, vortex! Agree with all your points. Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by Digital_39 Hi, Its helpful for me. I got my answer. Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by toneewa …this.yUp = false; b.xUp = true; b.yUp = true; return true; } else if (this.x <… false; this.yUp = true; b.xUp = true; b.yUp = false; return true; } return false; }… Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by toneewa …this.yUp = false; b.xUp = true; b.yUp = true; return true; } else if (this.x <…= false; this.yUp = true; b.xUp = true; b.yUp = false; return true; } return false; }… Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 … false; this.yUp = false; b.xUp = true; b.yUp = true; } else if (this.x <= b…b.y){ this.xUp = false; this.yUp = true; b.xUp = true; b.yUp = false; } } public void … Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development 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()); Using Natural Language to Query SQL Databases with Python LangChain Module Programming Computer Science by usmanmalik57 …Finally, we set the `verbose` attribute to `True` to see how the agent processes the input …LLM, db=db, agent_type="openai-tools", verbose=True) response = agent_executor.invoke(query) return response ``` ## Generating… Lots of new members but no one posts Community Center Meta DaniWeb by Dani As [you can see here](https://www.daniweb.com/stats/members?country=&filter=&sort=timestamp), we get lots of new members signing up every day, but nearly no one posts. This has been true for decades and decades now. Anyone care to hypothesize why all these people sign up if not to contribute? #Lurker Create And Install Windows Service Step By Step In C# Programming Web Development by Rabiya_1 …(string[] args) { LogService("Service is Started"); timeDelay.Enabled = true; } protected override void OnStop() { LogService("Service Stoped"); timeDelay… Re: How to disable the automatic swipe effect on the product page? Programming Web Development by Dani …slidesPerView: 4, spaceBetween: 15, loop: true, pagination: { el: ".swiper-…, slidesPerView: 4, freeMode: true, watchSlidesProgress: true, }); var swiper2 = new… Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim …'; //Set the SMTP server to send through $mail->SMTPAuth = true; $mail->SMTPSecure = 'tls'; $mail->Username = 'enquiry@…From; // //Suppress listing signed header fields in signature, defaults to true for debugging purpose // $mail->DKIM_copyHeaderFields = false; //Optionally you… Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner … //Set the SMTP server to send through $mail->SMTPAuth = true; $mail->SMTPSecure = 'tls'; $mail->Username = 'david…; // //Suppress listing signed header fields in signature, defaults to true for debugging purpose // $mail->DKIM_copyHeaderFields = false; //Optionally … Re: DomContentLoaded vs jQuery Ready fn Programming Web Development by jkon … loader function has called ,_fnc=function() // the loader function { _fncl=true; //I load here the minified JavaScript file that contains jQuery… Re: Improve HAVING BY performance Programming Databases by Dani … as saving resources on the hosting platform, while that's true, the other thing to consider here is the almighty SEO… Re: Do you participate in any other communities? Community Center Geeks' Lounge by Salem Yeah, there are sub-reddits for most languages and programming in general. I'm spending way too much time in https://www.reddit.com/r/C_Programming/ for example. There's the usual collection of helpful people, pedants, trolls and idiots - but that's true anywhere. The mods seem to be keeping it ticking over nicely. Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development 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 by Dani I’ll mark this question solved :) Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development 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 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: 88 Business-Growing Strategies Digital Media Digital Marketing by henrymorgan9522 A growth strategy is an organization's plan for overcoming current and future challenges to realize its goals for expansion. Examples of growth strategy goals include increasing market share and revenue, acquiring assets, and improving the organization's products or services. Re: Lots of new members but no one posts Community Center Meta DaniWeb by pritaeas Spammers? Perhaps auto-deleted? Re: Lots of new members but no one posts Community Center Meta DaniWeb by Dani I can confirm that's not happening. I can confirm they're just signing up and then leaving, and can also confirm they're not bots. There can't be *that* many people creating sleeper accounts for future spam attacks, so I'm ruling that out too. Plus, it's always been this way. Re: Create And Install Windows Service Step By Step In C# Programming Web Development 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. Fine Tuning Google Gemma Model for Text Classification in Python Programming Computer Science by usmanmalik57 …sizes to 4 bits. ``` bnb_config = BitsAndBytesConfig( load_in_4bit=True, bnb_4bit_quant_type="nf4", bnb_4bit_compute_dtype=torch.bfloat16 ) ```…warmup_steps=2, max_steps=100, learning_rate=2e-4, fp16=True, logging_steps=1, output_dir="outputs", optim=&… PDF Image Table Extractor Web App with Google Gemini Pro and Streamlit Programming Computer Science by usmanmalik57 …[prompt] responses = model.generate_content( input, generation_config= config, stream=True, ) full_response = "" for response in responses: full_response… = st.file_uploader("Choose images", accept_multiple_files=True, type=['jpg', 'png']) ``` Next, we will…