32,199 Topics

Member Avatar for
Member Avatar for vivan_1

I'm trying to manage Splunk with Chef and ran across a problem when using Chef to programmatically start/stop/restart the Splunkforwarder service: The request did not respond to the start or control request in a timely fashion. - ControlService: The service did not respond to the start or control request in …

3
64
Member Avatar for nouraaaaa

1. Methods to search for a book If the user chooses that option he should be asked of he wants to search for it using the book’s title (or part of it) or using the name of one of the authors (or part of the name) Depending on that search …

Member Avatar for zemiak
0
80
Member Avatar for mikewyatt

I have a very complex java program written with net beans 7.1. It consists of 1 .java file that has a main(), and over 25 supporting .java files (most used for routines inside of tabs). In addition there are 15 different databases (embedded) associated with it. The program is virtually …

Member Avatar for Charls_1
1
866
Member Avatar for jspence29

I am writing a program that makes hands of five cards, and tests them against poker combinations. Wikipedia says you have a 1/254 chance in getting a straight, but I get an abysmally small mount of straights in each run. (around 50 in one million hands). Can anyone tell me …

Member Avatar for Prasanna_9
1
1K
Member Avatar for Rocky_6

I'm looking for help on CloudFormation Template for Glue Jobs orchestration for below scenario: Suppose I have 10 AWS Glue Jobs, 4 jobs should be executed parallel and 6 jobs should be executed sequentially. If any job failure, send Workflow "Failure" notification along with the failed Glue Jobname. Job1 Job2----job5-->job6-->job7 …

Member Avatar for rproffitt
0
34
Member Avatar for Hoàng_32

Thank you for your help! My code was: package com.Main.tile; import com.Main.GamePanel; import com.Main.UtilityTool; import javax.imageio.ImageIO; import java.awt.*; import java.awt.image.BufferedImage; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; public class TileManager { GamePanel gp; public Tile[] tile; public int mapTileNum[] []; public TileManager(GamePanel gp){ this.gp = gp; tile = new …

Member Avatar for JamesCherrill
0
138
Member Avatar for Hoàng_32

Here is my code: package com.Main.tile; import com.Main.GamePanel; import com.Main.UtilityTool; import javax.imageio.ImageIO; import java.awt.*; import java.awt.image.BufferedImage; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; public class TileManager { GamePanel gp; public Tile[] tile; public int mapTileNum[] []; public TileManager(GamePanel gp){ this.gp = gp; tile = new Tile[10]; mapTileNum = new …

Member Avatar for gce517
0
221
Member Avatar for oriakhiosamu1

Good day all, am new here, probably don't know if am doing it right. My import.java.util.Scanner is not working on my intelliJ IDEA, thanks in advance!! ![input_error_2.jpg](https://static.daniweb.com/attachments/4/a3559e4109e7b37341894da7cab56cb9.jpg) ![input_error_1.jpg](https://static.daniweb.com/attachments/4/bdf4e9756da594dd786c6d889f35d009.jpg)

Member Avatar for JamesCherrill
0
57
Member Avatar for Poweratgamer

I need help "error: file not found: C:\Program Files\Java\jdk-18\JCreatorV4\MyProjects\main.java Usage: javac <options> <source files>" this and this-"Error: Could not find or load main class main Caused by: java.lang.ClassNotFoundException: main" keep popping up the code I'm using is the simple hello world for java the name is main.java public class main …

Member Avatar for jwenting
0
142
Member Avatar for TimTheCoder

Is there a way to print out numbers for pre-order, post-order and in-order traversals of trees using just recursion and a number. The trees are binary and n is the number of nodes from the parent to al children. Can anyone help me write the function to print the numbers …

0
25
Member Avatar for SA_361

I am using intellij for the java coursework which is related to clients and databases. I am receiving the following error Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null at java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:232) at client.Interface.$$$setupUI$$$(Interface.java) at client.Interface.<init>(Interface.java:54) at client.Application.main(Application.java:317) This is the code: ` ` package client; //region …

Member Avatar for JamesCherrill
0
802
Member Avatar for dsmush

[SIZE=4][FONT=Arial]Hi, I'm creating an application that makes use of the GridBagLayout as it is the most useful layout manager for what I need. I made a JPanel and added it to the frame. The result I'm currently getting during run-time is a JFrame with a JPanel placed in the center. …

Member Avatar for Toby_6
1
3K
Member Avatar for dgrovespdxdgpdx

I want to create a java pane with a canvas on the left and column of other components on the right. I did this long ago but lost that code. Can anyone point me in the right direction to do this?

Member Avatar for jwenting
0
114
Member Avatar for priyamtheone

I'm broadcasting an intent in my app and receiving it with a broadcast receiver. I can handle the broadcasting and receiving. No problem with that. However, I want to register the receiver completely programmatically instead of doing it in the manifest file. Notice, that in the manifest file, there are …

Member Avatar for priyamtheone
0
72
Member Avatar for ASH_534

I have a problem with a DnD program, so when I add 2 or more images and apply a filter to one of the images (using a right click), it only appears on the last image added. I think i have to store the image in an Array while waiting …

0
81
Member Avatar for Pallavi_15

Hi All, I have a list of claim ids, and I want to add previous and next button in the jsp . 1. ClaimSerachResults page have the search list of claim ids. (Proposed claim/Generated Claim). After clicking on any claimid it display the full record details. Then user can modify …

0
17
Member Avatar for Nicole_18

How to draw this cat with: Rendering fill Suitable primitives Aligned texture ![Screenshot_20220402-020429_Office.jpg](https://static.daniweb.com/attachments/4/e9a4f2eda3f42e689b0de42dcd9465ba.jpg)

1
295
Member Avatar for priyamtheone

In Microsoft Visual Studio Professional 2017, when I edit a JavaScript or CSS file, the Intellisense Quick Info for Members, Objects and other keywords don't appear. However, when I open the same files in Visual Studio Code 1.66.0, Intellisense Quick Info is shown properly. This results in me failing to …

Member Avatar for rproffitt
0
25
Member Avatar for phie1313

could anyone help me Write a java program that can add, show, update and delete item(s) in the inventory. Applying any OOP principles in this program. The program will display a menu with the following selection: Inventory Program • Add Item to Inventory • Display Current Inventory • Update Item …

Member Avatar for JamesCherrill
0
42
Member Avatar for Gashaw_1

i am gashaw gebrie, computer engineering student at debre-markos university from ethiopia. i am frontend web devloper,know i study backend devloper course .

Member Avatar for pritaeas
0
12
Member Avatar for Hugh Nelsons

import random money = 0 finmoney = 0 turns = 0 colturns = 0 finturns = colturns + turns print(""" 1 2 3 4 5 6 7 8 9 10 red black every guess = - 1$ every colour = - 5$ every correct = + 10 The goal is …

Member Avatar for JamesCherrill
-1
62
Member Avatar for Ahmed_152

Hi Am new at programming . I ask about how I but button that onclick it's guide me to form this form had submitted page I need to make this form when fellup the data that the user it's sind to my java SQL . Can any one help me …

0
37
Member Avatar for Mriel

Do you think that the structured programming is still useful now on day (for developing)?

Member Avatar for Schol-R-LEA
0
70
Member Avatar for Abeiyh

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 …

Member Avatar for Dani
0
52
Member Avatar for Just_3

I want to ask. I have 3 textfield. For example I just have 2 number so I fill at the first and second textField. But, if I want to calculate the value of this textfield, I need to enter 0 to the third textfield. So, I want to ask about …

Member Avatar for JamesCherrill
0
75
Member Avatar for aouinasara77

hello everyone , please can anyone help me !! I have a list of keywords i used TextRank algorithme, and i have list of all words ,I want to combine Adjacent kaywords into a multi-word keyword depending on their position in the list of all words with java. For exemple …

Member Avatar for JamesCherrill
0
56
Member Avatar for EmiLynn

First, my apologies, I couldn't tag this as kotlin and I figured Java was the next closest thing. This is homework, I'm not looking for someone to do it for me, just a little help. So the first thing is that I've got a sealed interface with some subclasses (all …

Member Avatar for dimitrilc
0
55
Member Avatar for ivy.inc.Hugh
Member Avatar for Dani
0
20
Member Avatar for ____

hi there i have a python http post request with no request but theres the code: requests.post("https://api.i66v1xg2.org/v3/moderate/+" + userid + "/") i dont know how to make it in java and in okhttp3 help pls thanks

Member Avatar for JamesCherrill
0
99
Member Avatar for Giyuuu

Develop an interactive java program to count the number of student who score grade A, B, C and D based on the list of marks given by a user. Display the number of students for each grade. Add in the feature to repeat or exit the program. Hint: Input Teachers …

Member Avatar for ivy.inc.Hugh
0
135

The End.