- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 12
- Posts with Downvotes
- 5
- Downvoting Members
- 8
Hi. Just ask me for more info.
- Interests
- Anything interesting.
- PC Specs
- Toshiba P105-S6177 stock with Win 7.
Is it possible to OCR an image using java? Any links to logic or examples or APIs would be appreciated. |
|
I am sending a file over datagram sockets, all of the packets arrive perfectly fine except the last one, since it does not fill the buffer of bytes when it is sent through the network those bytes in the array which didn't have data now have junk information that corrupt … |
|
Is there any way I can make this select case more efficient? Select Case cboBoard.SelectedIndex Case 0 To 1 If intDaysRented = 0 Then If intHoursRented > 3 Then lblCost.Text = FormatCurrency(arrDailyRates(cboBoard.SelectedIndex), , TriState.True, TriState.True) Else lblCost.Text = FormatCurrency((arrHourlyRates(cboBoard.SelectedIndex) * intHoursRented), , TriState.True, TriState.True) End If Else If intHoursRented > … |
|
Is there any way to format the datetimepicker so that it only shows hourly intervals? I already put it so it only shows time... And when I try dtmPicker.CustomFormat = "HH" it doesnt work. I want the user to only be able to pick from hourly intervals without having to … |
|
So I have the following. peer1 netblock 64.96.192.0/24 nexthop 61.40.0.11 AS path 600 3001 6001 5001 4001 i peer2 netblock 64.96.192.0/23 nexthop 61.40.0.12 AS path 600 40000 4001 i With my knowledge I think the algorithm would choose peer2 because it has a shorter AS path, but I want to … |
|
I am trying to understand the concept of ICMP and ARP... I made up the following network... and am having a tcpdump Ws1 and pinging Ws2. So by what I understand assuming all arp caches are empty and only looking at the packets that Ws1 will pick up.. Ws1 makes … |
|
My ws0 is trying to ping 10.xx.2.1 and doesnt have an arp cache. I understand what the first redirect is for since my BR is sending the ws0 to look for that ip at R3, what is the second redirect for? |
|
I have a webservice that draws a line chart, first line: an range of dates and their stock values. Second line: a moving average of the dates, so if I input a value of 5 it will give me the same data as line 1 but with 5 day intervals. … |
|
I am working on a web service. I have a form with a button. When I click the button it calls my service class and I populate a list from an xml document with stock information. Then from the form class it calls another method inside the service class to … |
|
So I am making an application on visual studios and I wrote a method to return a double after going through a list of data. I printed the list and know its there but the method pretends its not there and returns the code i initialize the variable with. Help? … |
|
So basically I am writing a tic tac toe program in java which is peer to peer using tcp sockets. The data I am transferring has to be encrypted and checksummed. I know how to implement both, yet I do not know in what order to do it in. Should … |
|
I am running centos on my VMware server console, and I want to know how to make a second virtual hard disk on which I can expand the size of the primary logial volume AND and a third to hold two other file systems # fdisk -l Disk /dev/sda: 12.8 … |
|
DatagramSocket SERVERSOCKET = new DatagramSocket(9999); byte[] receiveData = new byte[2000]; while (true) { DatagramPacket receivePacket = new DatagramPacket(receiveData, receiveData.length); SERVERSOCKET.receive(receivePacket); String LINE = new String( receivePacket.getData()); InetAddress iPAddress = receivePacket.getAddress(); int port = receivePacket.getPort(); } Ok I have this right now, I have been googling, yet I do not know … |
|
I am trying to decimal format a group of numbers into a 2D array and I keep getting an Error in Netbeans. It says where I have the d.format(0.0); that I need a double and have a String when then input present is 0.0. This is driving me insane and … |
|
Hi everyone! So, I hereby hope to show that I've made progress in coding java (largely due to the help of this great community). I want to thank everyone for dealing with me (especially James). :) The goal: The code below is supposed to seed a layout of boats into … |
|
I am making a battleship game with 2 boards, each is on a JFrame, but I do not know how to get them to close when a button is pressed in order to show the new one. package battleship; import java.awt.Color; import java.awt.GridLayout; import java.awt.Toolkit; import java.awt.event.WindowEvent; import javax.swing.JButton; import … |
|
Is there any way I can place a video in a JFrame/JPanel? Can someone point me to a tutorial, I can't find anything useful through Google. |
|
Ok I am making a user interface for Battleship and want a Frame to appear on the side with the title and instructions of the game in a disabled JTextArea. With the code I have now I can get the JFrame to open blank. The JTextArea only appears if I … |
|
package battleship; public class BattleShip { public static void main(String[] args) { Addons a = new Addons(); Board b = new Board(); Computer c = new Computer(); Human h = new Human(); LinkedList list = new LinkedList(); while(a.intro()) { a.sleep(1); a.countDown(5); b.prepareBoard(); do { h.play(b.getBoard()); a.checkWinner(b.getBoard()); System.out.println("How the Board stands."); … |
|
package battleship; import sun.audio.*; import java.io.*; public class Sound // Holds one audio file { public void playIntro() { AudioStream bGM; try{ bGM = new AudioStream(new FileInputStream("intro.wav")); AudioPlayer.player.start(bGM); } catch (IOException error){} } } I have that on one of my games and the music doesnt run, any help? If … |
|
I have this assignment for my java class, it runs fine, but the professor wants us to incorporate a private gradeExam method, which I don't know how it work fit, since I cannot call it from the DriverTest class which contains my main. package project6; /* A demonstration of how … |
|
I have a running calculator on VC++ and don't know how to get an exit button to work. (The X on top right works fine, but want an exit button) I have tried OnOK(); this->CloseWindow(); And other things. Still not managing to close the program from the button. Any tutorials … |
|
I am working with a tabbedpane with two panels on netbeans... I have a button action which switches panels, "setVisible()", but when it switches the panels the buttons on the first panel show if you roll the cursor over them. Any settings I can change in order to have my … |
|
I am making an ATM machine and trying to get my accounts from a .csv file to an ArrayList and am having all sorts of issues. Can I get help? It is giving me problems on line 52 of the class where I read and put the items into Arraylist. … |
|
I am making a Gui for an inventory. And I want for each time a person presses my next button, the jLabels to display the next item in the arrayList. Right now I'm stuck as it only displays the last element, Any help please? [CODE] // action on the button … |
|
I am writing a program that gives and grades a test. Currently I am working on reading in the text from a file to administer the test, but am running into limitations. So I have a couple of questions. Is there any way I can read in a segment of … |
|
I made an arraylist of objects which contain a question and an answer... How can I display just the question? Sooooo confused. Tutorials or anything will help, thanks in advance. [CODE] /* text file */ T Which Java keyword is used to define a subclass? extends S What is the … |
|
I am doing Gui's on Netbeans and am writing a program that sells flower ornaments and such. I have everything added to an arraylist. But when it comes to showing, I am on another tab and need to pass the arraylist to that method for display, any help? Link me … |
|
Hello All, I have stuck in a problem. There are set of strings of different length. I have to remove repeated elements from all the strings except from the string in which it appeared first. For example say the input strings are "3 4 7 2 15 10" "5 7 … |
|
This is the hardware section so I guess I wanna try something. I have a spare Surfboard modem sitting around my house, anything I can do with it? I mean turn into something useful... I try to look stuff up, but can't find anything that calls my attention. Any ideas … |