- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- 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.
63 Posted Topics
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 … | |
Re: Seems Like we are working on the same project my good sir. | |
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 … | |
Re: I agree with Ezzaral, please name your variables something significant... Lol break down the strings using split, make string arrays and use a removeSimilar method once you got 2 arrays to compare... It's not that difficult of a process. | |
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 … | |
Any tutorials on how to use CFile or any other, to open a text file, get what's inside into memory, e.x Link List, and then put it back into text file when done? Please link me or guide me through this problem. Trying to get a Payroll system going. | |
Tomorrow I have to recover some information for someone on a non-working computer running windows 7. I can't get to safe mode, get it to boot normally or do a working startup repair, but I can get to the command prompt using a program I have. How would I use … | |
I am running Windows 7 Ultimate 32 bit with 4 GB RAM... My Intel Core Duo 1.73 GHz doesn't support 64 bit. I have been looking into a Intel Core 2 Duo, but don't know if my computer's motherboard is compatible. I have a Toshiba P105-s6177. [URL="http://ark.intel.com/Compare.aspx?ids=27232,33099,"]http://ark.intel.com/Compare.aspx?ids=27232,33099,[/URL] Here are the … | |
I don't know how to get the program to display properly any tips? Also would anyone guide me on how the logic works for deallocating all this memory please. [CODE]#include <iostream> #include <cstdlib> #include <windows.h> using namespace std; struct Entry { char name[23]; int age; Entry *next; }; // Prototype … | |
Re: You forgot the header... [CODE]#include <idiotproof.compiler>[/CODE] | |
The code works, I just want to see if someone can help me cut lines in main only. [CODE]#include <iostream> #include <sstream> #include <windows.h> #include <time.h> #include <string> using namespace std; struct tm * timeinfo; // Holds information about time in form of struct class Date { public: int m_nMonth; … | |
I want to use Ncurses on Dev-Cpp but don't know how to install it. I have downloaded the ndk for it, any help? | |
Re: Please read :) [url]http://www.learncpp.com/cpp-tutorial/135-stream-states-and-input-validation/[/url] | |
Next week I am going to begin learning about linked list, I know very little currently. Are there any well written explanations of linked list online? Or can someone explain the logic to me. Want to have a background before I start learning it from my professor. | |
| |
Re: Read up on Input validation please :D [url]http://www.learncpp.com/cpp-tutorial/135-stream-states-and-input-validation/[/url] | |
Re: Please don't resurrect old posts, use a loop, place a counter and use the modulus operator ^.^ | |
Re: To start, you can't use endl in cin, use it only for cout, cin automatically moves you to newline. And remembr to pass symbol argument other function :D | |
Re: [url]http://www.cplusplus.com/reference/clibrary/cstring/strncpy/[/url] If I am not mistaken you have to strncpy when trying to put a "string" into a structure. Or just fill it implicitly... [CODE]struct variable = {"...", "... ", "..."};[/CODE] | |
Re: Count your number of items in array and set a constant. [CODE]const int SIZE =21; double t[SIZE]={...,...,...,...};[/CODE] Then just pass SIZE to the function if you set it locally or just use SIZE if you declare it globally. | |
I really don't know how to capture the information from the bitmap file when talking about the pixelArray, I know what I have to do it when I capture it to turn it negative, but each time I run my code it crashes when I run the code I think … | |
I am writing a program which asks the user for input, how many digits to use, on 2 numbers which will multiply themselves. A loop will multiply all combinations of that number digits and determine the largest palindrome. I know how to do palidnromes with strings, but don't know if … | |
Re: Lol... your code is most likely missing a system("pause"); | |
Re: Preferably use Ancient Dragon's response. Or instead of pointers use reference. [CODE]int method (char &a, char &b, int &c);[/CODE] [CODE]char a, b; int c; method(a,b,c);[/CODE] |
The End.