2,967 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for Tomi1988

Hi! I am not too expert in C++ programming. I created a class (Pig), then I created an object (Jack the Pig). In the function Kill, I call the destructor, but it doesnt't "kill" (destroy) my Jack the Pig, because in the next line, I can feed him. So my …

Member Avatar for S_915
0
5K
Member Avatar for Divyansh_5

I am new to PHP and I need some help in the below code. The below code is working fine but I need to add a "Functionality to be added in the below code, so that if any New File is uploaded it should auto increment in a series. For …

Member Avatar for gce517
0
131
Member Avatar for kaykayandcoffee

I need help on how to calculate the total work hours in a 12 hour format. I have a database that has the columns for the time in and time out as well as the total hours. Try If txtSCANRFID.Text = "" Then Else reloadtxt("SELECT * FROM students WHERE RFIDNumber= …

Member Avatar for Schol-R-LEA
0
95
Member Avatar for Wafflez

I want to open JFrame (created from NetBeans) using the java class, but the JFrame is not showing up. I run the code from Eclipse. Here my class: (line 67) import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.util.Scanner; import javax.swing.JButton; …

Programming java
Member Avatar for Wafflez
0
95
Member Avatar for Wafflez

I'm trying to get a text at the customer.txt to validate if the customer has already registered Here is my code: import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.util.Scanner; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPasswordField; import …

Member Avatar for Wafflez
0
88
Member Avatar for Wafflez

Hello, May I know why the frame pops up double when I call it? Thank You! Login.java (line 63); import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.FileReader; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JTextField; public class Login{ JFrame frame = new JFrame(); JButton loginButton = …

Programming java
Member Avatar for JamesCherrill
0
40
Member Avatar for mile.joncevski

Hi guys, I am relatively new to Python and have been working on a calculator application. It is relatively simple, but I would like to share it with everyone here in the group. I hope that there is someone in Daniweb who can guide me through Python. As I read …

Programming python
Member Avatar for Dani
1
108
Member Avatar for Reverend Jim

My son uses Anaconda so I thought I'd install it so we could collaborate. I downloaded and installed the latest version. When I ran Anaconda Navigator, the first thing it told me was "there is a new version available". That's when I started having misgivings, but I downloaded and installed …

Programming python
Member Avatar for Reverend Jim
0
99
Member Avatar for Mr.M

Hi DW. Anyone who knows how can I achieve this? `List<String> dynamic[i];` The reason why I need this is that I'm creating a dynamic list with nested lists so there's no fixed number of data the list can be, this is inside the `for` statement which receive the json data …

Member Avatar for Mr.M
0
174
Member Avatar for fx.eko

Hi everyone I have a problem when I run the vb.net program on VS2010 the following error appears: Error while trying to run project: Unable to start program 'G:\TREEVIEW_uc_cr\bin\debug\Treeview_UC.exe' Please help in solving this problem. Thank for advance

Member Avatar for rproffitt
0
171
Member Avatar for mihailbog245

I don't get what's the problem with this Dictionary created using Arraylist and Socket . I get SocketException error I don't know why also I tried to created a method to read.... ClientCode: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.Socket; import java.util.Scanner; import java.net.SocketException; public class Client …

Member Avatar for JamesCherrill
0
150
Member Avatar for jwatson

I am looking for a tool for create CSV flat files for my eBay abd Alibaba stores. Can anyone please guide me for a best solution? Thanks

Member Avatar for pritaeas
0
43
Member Avatar for ezeiruchibuike

Hello there, I created a "users" table on MySQL and created a few columns namely "accountbalance", "ledgerbalance" and "dailybalance" (all three: BIGINTs). I created a test user and added some random figures. I am trying to retrieve the value of this columns (unique to the user) and them pasted separately …

Member Avatar for Dani
0
384
Member Avatar for dimitrilc

## Introduction ## In Android projects, **DataSource** classes act as entry points to interacting with local or remote data sources. Their dependencies tend to be HTTP clients, the database, or DAOs, and their dependents are usually **Repository** classes. In this tutorial, we will learn how to provide a fake **DataSource** …

3
659
Member Avatar for dimitrilc

## Introduction ## In this tutorial, we will learn how to create an instrumented test for Navigation Components. ## Goals ## At the end of the tutorial, you would have learned: 1. How to test Navigation Components. ## Tools Required ## 1. Android Studio. The version used in this tutorial …

1
850
Member Avatar for EpifaniaPersons

Hi Everyone! I am new here, and the main purpose of joining this community is getting some help. Actually, I am designing a PHP website where I need to fetch US vehicles data into PHP. I have already used this source to get the vehicle's dataset from here https://www.back4app.com/database/back4app/car-make-model-dataset. Still, …

Member Avatar for RayPalmer
1
345
Member Avatar for Snehashish Das

## Traversal In Binary Tree : ## **Preorder traversal (NLR) :** 1. Visit the root(N) 2. Traverse the left subtree of root in preorder(L) 3. Traverse the right subtree of root in preorder(R) **Inorder Traversal (LNR) :** 1. Traverse the left subtree of root in inorder(L) 2. Visit the root(N) …

1
128
Member Avatar for Aisha_sg

hey I'm beginner learning php have hard time to Insert data to product in database with image because the category I did make it work but now I need to update data the same style that I add it with the Insert Code: <?php include('./pro_crud/config.php'); $sql_cat = "SELECT * FROM …

0
169
Member Avatar for palak231

Hi this is Palak, I am in third year of my engineering and my interest and strength is python, to enhance my skills into next level I need more study in this field therefore I want to know which python course will be best for me to enhance my skills …

Programming python
Member Avatar for Reverend Jim
0
129
Member Avatar for FarrisFahad

I have a couple of scripts from the same template but different version. I am using php and mysql. I need to know how to update the mysql database and the script from version 1 to version 2 with a single click.

Member Avatar for Dan Fredeinburg
0
99
Member Avatar for Khadiiijah

So I'm new to programming and currently, I'm creating a school project with Visual Basic and .NET, I know that I might either have a problem with formatting or converting or assigning a value(which I don't know how to do) but whatever I try the multiplied result always gives me …

Programming vb.net
Member Avatar for rproffitt
0
96
Member Avatar for Navarro_1

I'm making a book system, although I'm stuck. My goal is to let a user input again after the user inputs. ex. User inputs Book 1 then User wants to input another and make it Book 2. Also, I want to let the user return to the main menu if …

Member Avatar for rproffitt
0
90
Member Avatar for Mercy254

Create a program that displays the result of a sales transaction. The calculation requires three numbers. The first number represents the product price. The second number is the salesperson commission. These two numbers should be added together. The third value represents a customer discount; subtract this third from the result …

Programming c++
Member Avatar for Reverend Jim
0
63
Member Avatar for kamaid

Hi, I'm new here and pretty new to c++ and programming in general. During one of my first excercises I tried to work with classes but I don't know how to output an class object in another class. Here is my Code with the text in [] (Circle.cpp) where I'm …

Programming c
Member Avatar for Schol-R-LEA
0
61
Member Avatar for Chris_70

Disclaimer: this is a project work. I might be having issues with the follow but here is what I am doing: push changes to github travils builds image and pushes to docker AWS EKS pulls the image and starts container now my issue is the following variable is undefined: const …

Member Avatar for pavanbits1990
0
46
Member Avatar for Dani

I just racked my brain for the past hour trying to fix a bug, and learned something new in the process. I always thought that the jQuery function `.data('key')` was a wrapper for `.attr('data-key')`. It turns out that's not the case! Take the example: `<div data-key="foo">`: I can use `data('key', …

Member Avatar for Dani
7
265
Member Avatar for Yacine Si Tayeb

# Introduction # As we move into 2022, businesses will continue to look for ways to become more data-driven. This means that knowing how to use Structured Query Language, commonly called SQL or 'Sequel', will remain an essential skill for data scientists, analysts, and developers. In this post, we'll provide …

1
106
Member Avatar for martin5211

FPDF is a class that provides a useful way to deal with PDF documents using dynamic content. Sometimes, according to a special circumstance, also would be valuable to send directly the PDF as attachment e.g. send an invoice automatically after processing a payment. In this example we use a html …

Member Avatar for Dani
0
22K
Member Avatar for dimitrilc

## Introduction ## When working with Espresso tests, you might have found it hard to make Espresso wait for background tasks to complete before performing other actions or assertions. Fortunately, the classes in the Espresso **idling** package exist to cover this use case. In this tutorial, we will learn how …

1
467
Member Avatar for dimitrilc

## Introduction ## In this tutorial, we will learn how to load data asynchronously into a **ListAdapter** (*a subclass of **RecyclerView.Adapter***). ## Goals ## At the end of the tutorial, you would have learned: 1. How to serve asynchronous data to a **ListAdapter**. ## Tools Required ## 1. Android Studio. …

1
299

The End.