3,101 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for jprog1000

Hello, I have a program which creates multiple balls and bounces them off when they collide. This works fine. import java.awt.Rectangle; public class Ball{ private int x = 0; private int y = 0; private int radius; private int panelwidth = 500; private int panelheight = 500; private int xDx …

Member Avatar for Digital_39
2
94
Member Avatar for Nishi_2

The choice of programming language for developing a Ludo game will depend on the specific needs of the project, the skills of the development team, and the target platform. Here are some of the programming languages that can be used for Ludo game development: **C++:** C++ is a high-performance programming …

Member Avatar for polles
0
717
Member Avatar for Hussain_14

Hello, I would like to know how much time is taking to develop a game, you may ask why am I asking this question the reason is that I'm a newbie in this field and it will be my 1st project doing practically, I was a little bit confused about …

Member Avatar for kishanrg
2
382
Member Avatar for Pradeep_35

Identifying the purpose of your app is the first step in selecting the finest Mobile app development. Are you okay with the app sending you to push notifications? What are the characteristics that must be present for it to function

Member Avatar for evangelistapps
3
436
Member Avatar for nander

Hello I am trying to query a database to show records only for the current user using variable I get the correct data but only 1 row with results any guidance? // Query database to retrieve records associated with the user $sql = "SELECT * FROM table_name WHERE variable_name = …

Member Avatar for Chris_103
0
98
Member Avatar for david.tigner

About a year ago, I had a similar issue except then system would crash after pressing Submit. The issue was caused because of PHP 8 incompatibility problems. However, got the coding to fix all of that and things worked good again and with PHP 8. But now something new is …

Member Avatar for Biiim
0
172
Member Avatar for ndonetimok

Hello guys, please can someone explain to me how i can know the framework of any website on the internet. I know how i can detect wordpress but other framework are hard for me. Please i need assistance on this.

Member Avatar for Dani
0
24
Member Avatar for usmanmalik57

In previous articles, I explained how to use natural language to interact with [PDF documents](https://www.daniweb.com/programming/computer-science/tutorials/541732/paris-olympics-ticket-information-chatbot-with-memory-using-langchain) and [SQL databases](https://www.daniweb.com/programming/computer-science/tutorials/541771/using-natural-language-to-query-sql-databases-with-python-langchain-module), using the Python [LangChain module](https://python.langchain.com/docs/get_started/introduction) and [OpenAI API](https://openai.com/blog/openai-api). In this article, you will learn how to use LangChain and OpenAI API to create a question-answering application that allows you to retrieve information …

2
20
Member Avatar for Dani

What are some ways to improve MySQL performance on queries against large tables that include the HAVING BY clause. It's my understanding that anything in there doesn't benefit from table indexes.

Member Avatar for toneewa
0
414
Member Avatar for FarrisFahad

Hello, I am somewhat new to APIs. I have integrated PayPal payments successfully. With PayPal, I can send the user to the payment page using an HTML form. Here is an example ... <!-- PAYPAL --> <form action="https://www.paypal.com/cgi-bin/webscr" method="POST" name="_cart"> <input type="hidden" name="cmd" value="_cart" /> <input type="hidden" name="upload" value="1" /> …

Member Avatar for pritaeas
0
62
Member Avatar for FarrisFahad

I want to understand how I can add an SDK to my PHP projects to make APIs calls. I noticed that every software company have an SDK. I also noticed that most SDKs use Composer. I don't know what composer is and do I need to have it for every …

Member Avatar for rproffitt
0
33
Member Avatar for Thomasio

I want to figure out what Windows does when you right-click a video file and check properties and I would like to write a similar piece of code in C++. I should be able to figure out how to read the file type and size, but I'm lost in how …

Member Avatar for Thomasio
0
73
Member Avatar for usmanmalik57

The advent of large language models (LLM) has replaced complex scripts with natural language for automating various tasks. You can now use LLM to interact with your databases using natural language, which makes life easier for people who do not have sufficient SQL knowledge. In this article, you will learn …

2
32
Member Avatar for mx_983

Basic background information Mariadb Ver 15.1 District 10.11.6 MariaDB Glarea cluster, one with three nodes: Node1:192.168.18.78 Node2: 192.168.18.79 Node3: 192.168.18.80 Among them, Node1 node was restarted after a power outage of 1 hour, and after executing the system ctl start mariadb, it was stuck for a long time (running for …

Member Avatar for toneewa
1
50
Member Avatar for Mikekelvin

When working with RecyclerView, always utilize the ViewHolder pattern to improve performance by minimizing the number of findViewById() calls. public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> { public static class ViewHolder extends RecyclerView.ViewHolder { TextView textView; public ViewHolder(View itemView) { super(itemView); textView = itemView.findViewById(R.id.textView); } } @Override public ViewHolder onCreateViewHolder(ViewGroup parent, int …

0
20
Member Avatar for cambalinho

these is the VB6 function for RayCasting: Private Sub DrawRays() Dim StepX As Double Dim StepY As Double Dim VertX As Double Dim VertY As Double Dim HorizX As Double Dim HorizY As Double Dim MapX As Long Dim MapY As Long Dim HorizDist As Double Dim VertDist As Double …

1
22
Member Avatar for SHWOO

Hi, I am trying to get a cat walking back and forth between the screen using a left and right tileset of bitmaps. Also, I am supposed to be able to control two caveman sprites that appear to walk left and right as you press the left and right keys. …

Member Avatar for Pavel_11
0
306
Member Avatar for Kirubel_2

<head><title>navigation</title> <link rel="stylesheet" href="../css/nav.css"> <link rel="stylesheet" href="../css/tutorial.css"> <link rel="stylesheet" href="../css/vedio.css"> <link rel="stylesheet" href="../../ionicons-2.0.1/css/ionicons.min.css"> </head> <body> <div class="container"> <button onclick="unb()" id="but">&#9776</button> <ul> <li><a href="#">MyList</a></li> <li><a href="#">KitHub</a></li> <li><a href="#">Comment</a></li> <li><a href="#">Image</a></li> <li><a href="#">About</a></li> <li><a href="#">Help</a></li> <input type="search" name="search" placeholder="SEARCH TUTORIAL VIDEO" id="search"> </ul><br> <!-- <button>&#8998</button> close --> <i style="font-size: 49px; color: white;margin-right: …

Programming css java php
Member Avatar for Kirubel_2
0
15
Member Avatar for Hanginium65

I wrote a Python script that included the python-swiftclient module to connect to the OpenStack Object Storage and upload some files to the OpenStack Object Storage container It works great if I upload a file that ends with the extension .gz however, I’m getting an error regarding the ‘TarFile’ object …

Member Avatar for Salem
2
75
Member Avatar for usmanmalik57

In my previous article, I explained how I developed a simple chatbot using LangChain and Chat-GPT that can answer queries related to Paris Olympics ticket prices. However, one major drawback with that chatbot is that it can only generate a single response based on user queries. It can not answer …

2
65
Member Avatar for Kirubel_2

<!DOCTYPE html> <html style="font-size: 16px;" lang="en"><head> <title>Comment</title> <script src="js/jquery.js"></script> <link rel="stylesheet" href="sign.css"> </head> <body class="u-body u-overlap u-xl-mode" style="background: url(img/arcane.png);" data-lang="en"> <div class="container" style="text-align:left;margin-top: 10px;margin-bottom:30px; margin-left: auto; margin-right: auto;background: #fff;" > <div class="title">Registration</div> <form action="#" enctype="multipart/form-data" method="POST" > <div class="user-info"> <div class="input-box"> <span class="text">First name</span> <input type="text" name="firstname" placeholder="Enter Your firstname"> …

Programming css java php
0
10
Member Avatar for FarrisFahad

Hello webmasters, I am currently building a template that I am going to sell on different websites like Codester and CodeGrape. I want to build a business directory. Here is what I have come up with ... 1. users can register and add listings. 2. admin can create categories for …

Member Avatar for antwanlee
0
56
Member Avatar for Dani

I think that I understand the difference between: document.addEventListener('DOMContentLoaded', callback_fn); and: window.addEventListener('load', (event) => { ... }); However, as a jQuery user, what is the difference between DOMContentLoaded and the jQuery ready fn?

Member Avatar for jkon
0
122
Member Avatar for Read a Book

Hello everyone i want to disable the automatic swipe effect on my product page on this site https://kupisi.mk the lib is called lightgallery i am not able to find the line of code to turn it off for 2 days i need fresh pair of eyes !! :S i made …

Member Avatar for Dani
2
118
Member Avatar for Adolfo_1

I have problem with this htaccess in STATIC URL RewriteEngine On RewriteRule ^readlex/(.*)$/?$ readlex.php?slug=$1 [NC,L] **DINAMIC URL** work fine only with defined CONSTANT: Example <a href="<?php echo BASE_URL.READ_LEX ?>Le-mura-di-Lucca">Lucca</a> Result = localhost/mysite/readlex/Le-mura-di-Lucca **STATIC URL** not work (??) <a href="localhost/mysite/readlex.php?slug=Le-mura-di-Lucca">Lucca</a> Result = localhost/mysite/readlex.php?slug=Le-mura-di-Lucca">Lucca ***Unfortunately I can't insert the php CONSTANTS in …

Member Avatar for Dani
1
134
Member Avatar for snah19

RE: ffmpeg-4.4 Andrew Wu DJGPP CROSS COMPILER, GCC v12.2.0 Host Macbook Pro, macOS Monterey [Click Here](https://ffmpeg.org/platform.html#DOS) DJGPP Cross Compiler 12.2.0 Fails to Recognize "certain" Parameters in FFmpeg Source Code Hi, I am using the DJGPP cross compiler 12.2.0, developed by Andrew Wu, github, to build the FFmpeg source code, and …

Programming c
Member Avatar for toneewa
1
58
Member Avatar for Audun

This is the error message: >>> %Run -c $EDITOR_CONTENT Traceback (most recent call last): File "<string>", line 6 image = cv2.imread(“C:\Users\Audun Nilsen\Pictures\pica.webp”) ^ SyntaxError: invalid character in identifier >>> This is the code: import cv2 # OpenCV for image processing image = cv2.imread(“C:\Users\Audun Nilsen\Pictures\pica.webp”)

Member Avatar for Audun
1
49
Member Avatar for Audun

Hi I want to make use of GitHub-programs, and so I downloaded a bunch of Python-tools. When I run this command in "Python 3.12", which looks like CMD to me, I get a syntax error. "To create a virtual environment, Python supplies a built in venv module which provides the …

Member Avatar for Reverend Jim
1
45
Member Avatar for usmanmalik57

On March 4, 2024, [Anthropic](https://www.anthropic.com/) launched the [Claude 3 family of large language models](https://www.anthropic.com/news/claude-3-family). Anthropic claimed that its Claude 3 Opus model outperforms GPT-4 on various benchmarks. Intrigued by Anthropic's claim, I performed a simple test to compare the performances of Claude 3 Opus, [Google Gemini Pro](https://deepmind.google/technologies/gemini/#introduction), and [OpenAI's GPT-4](https://openai.com/research/gpt-4) …

2
68
Member Avatar for Troy

This is a simple to use, self-contained website slideshow utility. Do you have a monitor or TV setup in your lobby where you'd like to present web content automatically? With this HTML/Javascript page, simply edit an array of pages or "slides". You define a title, duration, and URL for each …

Member Avatar for PROSYS_1
0
15K

The End.