2,987 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for jkon

Hello , I always had a distant relationship with C++ (writing in it small programs (or libs for other languages) only when performance really matters) but I have found myself writing more and more C++ bots. I learned that you need to separate the definition of the class (interface in …

Member Avatar for jkon
1
119
Member Avatar for techlifelk

I get the following exception Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null My code is java.net.URL auth = getClass().getResource("auth.jpg"); Icon auth1 = new ImageIcon(auth); java.net.URL alert = getClass().getResource("alert.jpg"); Icon alert1 = new ImageIcon(alert); java.net.URL insuf = getClass().getResource("insuf.jpg"); Icon insuf1 = new ImageIcon(insuf); java.net.URL inva = …

Programming java
Member Avatar for Dani
0
31K
Member Avatar for bxdobs

Warning ... I am not a JAVA programmer so please be kind ... thanks for any help you can provide. Retired bit basher looking for a bit of help with a non-profit project. The code listed below was based on an online example that I found on js fiddle dot …

Member Avatar for john_111
1
86
Member Avatar for facarroll

I have a web page that loads images with a modal, and at the same time is meant to inhibit image piracy by delivering a transparent overlay when a user attempts to make a screen copy of the image. I have two php lines of image scripts which work OK …

Programming classes modal php
Member Avatar for AndreRet
1
77
Member Avatar for narayanabhilash

Dear All, In my Application i am downloading a file. on button click using servlet. after clicking the button servlet called and download dialog box opens with open / save and cancel button. i want to trace these button events. on open or save i want to update status 'true' …

Member Avatar for Aliyan_1
0
1K
Member Avatar for Dani

The Google Analytics javascript tag we use in our HTML <head> is: <script async src="https://www.googletagmanager.com/gtag/js?id=G-3BQYMGHE7E"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-3BQYMGHE7E'); </script> Then, there are a handful of `gtag()` calls elsewhere on the page. I'm confused by how async works in this context. …

Member Avatar for Dani
1
131
Member Avatar for mexabet

I have a two-step login form. In the first step, I have "username" as "id" and "name" of the text input. I also have "password" as id and "name" of the second input field, where the user is prompted to enter username and password. In the second step, I have …

Member Avatar for Dani
0
61
Member Avatar for Cameron_12

Hey guys, so I've been trying to create a website that allows users to update and delete records through the database I've set up in SQLyog. In my update confirmation file I've added location theme description to be updated and changed for all users. but for some reason its unable …

Member Avatar for AndreRet
3
143
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
166
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
518
Member Avatar for Sunnyfish

Hello all. I'm relatively new to libcurl C++, and I have been hopelessly stuck. Bit of a background for this app. It is very legacy, having been made in the early 2000s. LPSTRs abound. It looks in FTPs for files from suppliers (who have an SFTP they interact with and …

Member Avatar for Dani
2
238
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
8K
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
48
Member Avatar for Mr.M

Hi DW, I've faced an issue with my project, it has been working these years till I think last year or the other year. When I sync it fails saying unable to resolve dependency no matter which version I try I get similar error differs with version number.

Member Avatar for rproffitt
1
52
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
91
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
196
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
91
Member Avatar for Robinz
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
230
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
211
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-6
Member Avatar for rproffitt
0
53
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
976
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
109
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
128
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-6
Member Avatar for cambalinho
0
72
Member Avatar for anass_3
Member Avatar for Ethanbrody
0
58
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
111
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
624
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
74

The End.