2,528 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for kukuruku

Is it OK to have if statement in the constructor Thanks [CODE] public class CTime { private int start_hour; private int end_hour; private int start_minute; private int end_minute; public CTime(int h1,int m1,int h2,int m2){ if(h1>=7 && h2<17 && h2*60+m2>h1*60+m1){ setStartHour(h1); setStartMinute(m1); setEndHour(h2); setEndMinute(m2); } }[/CODE]

Member Avatar for Washington AM
0
9K
Member Avatar for usmanmalik57

Language modeling is the cornerstone of advanced natural language processing, forming the backbone for cutting-edge technologies like ChatGPT. At its core, it involves predicting words based on context, a fundamental principle underlying modern large language Models (LLMs). There are various techniques for language modeling, with attention mechanisms emerging as the …

Member Avatar for AndreRet
2
552
Member Avatar for Apoorva_K

THIS IS THE LINK FOR QUESTION:https://practice.geeksforgeeks.org/problems/subarray-with-given-sum/0 #include <iostream> using namespace std; int main() { long long int s,n,a[10000000000],e,d,l,flag=0,t; cin>>t; while(t--) { cin>>n>>s; e=0; flag=0; for(long long int i=0;i<n;i++) { cin>>a[i]; } for(long long int j=0;j<n;j++) { e=a[j]; for(long long int h=j+1;h<n;h++) { e+=a[h]; if(e==s) { l=j; d=h; flag=1; break; } …

Member Avatar for Ethanbrody
1
182
Member Avatar for marrywillson

AI is good for content writer. but some time AI have not perfect solution . so AI not good for future as a content writing prospective.

Member Avatar for Dani
0
50
Member Avatar for cored0mp

More programming fun! OK this time around I'm trying to create a table with the statement, CREATE TABLE tablename ( recnumber SERIAL PRIMARY KEY, recordvalues VARCHAR ( 500 ) NOT NULL, datecreated DATE ) And it basically works, and I can add records using the dba account. However when I …

Member Avatar for cored0mp
1
109
Member Avatar for Ethanbrody

I want to know about what is the importance of user experience (UX) and user interface (UI) design in web development.

Member Avatar for myresellerhome
0
205
Member Avatar for borobhaisab

Hello, I do not understand why the simplehtmldom is failing. This is the code: <?php ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting(E_ALL); //--- include_once('simplehtmldom_1_9_1/simple_html_dom.php'); //--- $url = "https://victoriousseo.com/sitemap_index.xml"; $html = new simple_html_dom(); $html->load_file($url); //-- foreach($html->find("a") as $link) { echo $link->href."< br />"; } ?> I got the simplehtmldom.php on the same directory as the …

Member Avatar for Dani
1
1K
Member Avatar for Ashley_31

1. Analyze the problem below and make a c++ program to enter on the keyboard the required data for process. Compute the time of flight of a projectile and its height above the ground when it reaches the target. Display all the inputed data and the processed or compute data. …

Member Avatar for Olive34
0
222
Member Avatar for usmanmalik57

In this tutorial, you will learn to fine-tune a [Hugging Face Transformers model](https://huggingface.co/docs/transformers/index) for video classification in PyTorch. The Hugging Face documentation provides an example of performing video classification using the Hugging Face Trainer with one of Hugging Face's built-in datasets. However, the process of fine-tuning a video transformer on …

2
370
Member Avatar for Olive34

I have been tasked at work, well actually I volunteered to create an MVC site (as a demo) that will eventually be the base for moving my employer's legacy C#/asp.net code to MVC. It's a large site, used globally, and we are a small team of 5 devs. Right now …

Member Avatar for jkon
0
95
Member Avatar for Syed Zubair

Dear Team, I am underprocess of a working for Tailor software where i need your kind and appreciation advise. I have fields of cloth like shirt and trouser of a customer, when i enter the records into database it is working well if single shirt or single trouser. **I want …

Programming visual-basic
Member Avatar for rproffitt
0
55
Member Avatar for Robinz
Member Avatar for usmanmalik57

Understanding facial expressions is crucial for various tasks, from recognizing emotions to enhancing security measures. While extracting faces from pictures is easy, doing the same in videos is tricky. Imagine creating videos with only highlighted facial expressions, offering a unique perspective on human interactions. Various tools are available for face …

Programming computer-vision python
1
2K
Member Avatar for anass_3
Member Avatar for Ethanbrody
0
61
Member Avatar for cored0mp

I'm working on an application, certainly not my first. Some aspects of my coding background are quite informal, for example I have only a rudimentary understanding of source code repositories. Take library formation, for example? I'm reasonably proud that my source is of sufficient quality and organization to pass an …

Programming python
Member Avatar for Dani
2
115
Member Avatar for cored0mp

How do I create a table in postgres that's associated with a specific database? Obviously from the command line one can do Create table tablename (); But how do I make sure that the table is associated with the correct database? CREATE table dbname.tablename(); is giving me the error: ERROR: …

Member Avatar for Dani
1
151
Member Avatar for cambalinho

using the Circle method and knowing the start angle(playerangle-30) and end angle (playerangle+30), in degrees, how can i draw the arc?

Programming visual-basic
Member Avatar for cambalinho
0
131
Member Avatar for dimitrilc

## Introduction ## In Android Studio, we can run multiple tests in parallel across multiple devices using the dropdown menu. ![Screen_Shot_2022-09-26_at_3.02.02_PM.png](https://static.daniweb.com/attachments/4/a7966192c6b1c265a65010a9d1fa236d.png) Running instrumented tests this way is very convenient during development, but there is a problem with this method when your tests are run on a remote build server: * …

Member Avatar for John_387
2
749
Member Avatar for Isis_1

Hi everyone, was wondering if maybe someone could help me. I'm new to coding and have an assignment to do. The assignment is as follows: Write a program that lets the user enter the total rainfall for each of 12 months into an array of doubles. The program should calculate …

Programming c++
0
129
Member Avatar for Coderunner

Hello What is wrong in the form validation. It always give me -> not OK -> red color I hope someone can help me with this. Thanks in advance. Best regard. <html> <head> <style> .error { font-family: Tahoma; font-size: 8pt; color: #FFFFFF; padding: 2px 172px 2px 172px; background-color: #FF0000; display:none; …

Member Avatar for Coderunner
0
90
Member Avatar for usmanmalik57

## Introduction ## In the realm of computer vision, [Vision Transformers (ViTs)](https://arxiv.org/abs/2010.11929) revolutionized image processing by employing self-attention mechanisms, allowing for a non-sequential analysis of images. ViTs are instrumental in capturing intricate patterns and long-range dependencies, making them invaluable for tasks like image recognition and object detection. Hugging Face, a …

1
994
Member Avatar for mnoizinum

I use apple's x code, my system is OS X 10.4.11 Im getting a warning you must be familiar: [CODE]"#ifdef __DEPRECATED #warning This file includes at least one deprecated or antiquated header. \ Please consider using one of the 32 headers found in section 17.4.1.2 of the \ C++ standard. …

Member Avatar for Dani
0
266
Member Avatar for shane1961

My textbox datatype is DateTime. Using the click event of a button, this code is placed following MyTableBindingSourceAddNew() Dim CurrentDateTime As DateTime = DateTime.Now.ToString("dd.MM.yy hh:mm:ss") Me.SaleDateTextBox.Text = CurrentDateTime I then update table with TableAdapter. On my form I have a dropdown combobox in a toolbar, display member being "SaleDate" This …

Member Avatar for rproffitt
0
76
Member Avatar for usmanmalik57

In one of my research projects, I needed to extract text from video files and create a CSV file that included sentiments expressed in the text. Manual extraction was time-consuming and costly. So, I explored Automatic Speech Recognition (ASR) systems and discovered OpenAI [Whisper](https://openai.com/research/whisper), known for its high accuracy in …

Member Avatar for Reverend Jim
1
812
Member Avatar for nathaliecolemadrigal.lopez
Member Avatar for LXSXX1024

I'm making a software similar to Grammarly in C++. I want to get data from the clipboard, then if a certain sequence of data that is a certain number of letters is contained in it, then it has to be replaced by a predefined string.

Member Avatar for Anthony6534
0
169
Member Avatar for usmanmalik57

In a previous article, I showed you [how to analyze sentiments using Chat-GPT and data augmentation techniques](https://www.daniweb.com/programming/computer-science/tutorials/540502/sentiment-analysis-with-data-augmentation-using-chatgpt#post2293643). Following that, some readers reached out, asking for a breakdown of fine-tuning a Chat-GPT model. In this article, I will guide you through fine-tuning your Chat-GPT model using your own data. First, I'll …

2
492
Member Avatar for Clif40RD

Hi Everyone 👋🏼, I'm in a bit of a pickle, hopefully someone can provide some guidance. I have stale Firebase notification tokens in a database for an existing Xamarin application, initially (years back) the application never contained logic to refresh notification tokens. With the most recent update to the application …

Member Avatar for Clif40RD
0
127
Member Avatar for sankar2000

Hello. I am trying to build a simple UDP multi-threaded echo server in `C` using `libhv` (library is using non-blocking events). Basically i am trying to combine https://github.com/ithewei/libhv/blob/master/examples/udp_echo_server.c with the threading of https://github.com/ithewei/libhv/blob/master/examples/multi-thread/one-acceptor-multi-workers.c I do this because i will have high amount of traffic and multiple threads will be needed …

1
215
Member Avatar for Mohammad_21

Hello I want to print some data that appear in Form. I print some data( image, labels....) then at point y = 415, I will print all rows of datagridview, at here all is right, but when i want to print rows that need more page, i had wrong result, …

Member Avatar for Hossein_7
0
705

The End.