Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~32.3K People Reached
Favorite Tags
Member Avatar for sha11e

My top-level package is "com.gmail.email.aviersproject". In .aviersproject have a class that holds my main method and a package "summonerdata". In that package I want a class that gets summoner data by screen scraping. My question is what a good name would be? I was thinking SummonerDataScreenScraper or SummonerDataScraper but it …

Member Avatar for JamesCherrill
0
170
Member Avatar for sha11e

I have a jar file that I have converted to an .exe file(With Launch4J, tried bunch of other programs as well). I can open the exe file with WinRaR and see all the class files and a .properties file. I can open the .properties file and edit it, then winrar …

Member Avatar for sha11e
0
143
Member Avatar for sha11e

I installed the program and it installed the drivers. When I put in the USB device in my computer it first said that "A USB device is not recognized" and it seems it tried to install drivers sincde it said "Failed to install drivers"-but the program had already done that. …

Member Avatar for MK_RN
0
90
Member Avatar for sha11e

I used the wireless adapter(Netgear - WG111v3) on my computer for weeks without any trouble at all. (At the time i installed it, I remember I found out it didn't work/didn't work well on windows 7 so I downloaded some driver or something -- Don't really remember -- and it …

Member Avatar for caperjack
0
133
Member Avatar for sha11e

What I want to do is 1. Take strings from the user and store it in a vector<string> 2. Loop through each string, typing each letter of the string How would I go about doing this? Robot r = new Robot(); [CODE]char letter = 'a'; r.keyPress( (int) letter )[/CODE] Won't …

Member Avatar for stultuske
0
2K
Member Avatar for sha11e

My client-server program seemed to work fine, I could send and receive messages. But if I don't send any messages for a while (sometimes 2 minutes is enough, other times it takes an hour..) and then try to send one, I get the error "Software caused connection abort: recv failed" …

Member Avatar for sha11e
0
300
Member Avatar for sha11e

I remember someone telling me that there is the heap, the stack and something else. methods are stored in ..something.. and variables somewhere - and even if they're not currently storing anything in the memory location - it's still "reserved"? 1. Does that mean it doesn't matter if I do …

Member Avatar for ~s.o.s~
0
142
Member Avatar for sha11e

I have seen some people talking about it and my question is... I have a program that opens a input and output stream, when the program gets the message '#end' it should terminate the program. Does it really matter if I close the in-and output streams and then close the …

Member Avatar for JamesCherrill
0
129
Member Avatar for sha11e

I'm trying to make a cllient-server chat that only needs to be able to handle 1 connection. First, I have a data-type question: 1. At the moment I am using this code to get messages [CODE] BufferedReader ins = new BufferedReader(new InputStreamReader(sock.getInputStream()));[/CODE] And this code to send messages [CODE] PrintStream …

Member Avatar for babu15
0
183
Member Avatar for sha11e

I found a client/server code and I am getting this error: [QUOTE]java.net.SocketException: Software caused connection abort: recv failed[/QUOTE] Server code: [CODE] import java.net.*; import java.lang.*; import java.io.*; public class Server{ //port number should be more than 1024 public static final int PORT = 1025; public static void main( String args[]) …

Member Avatar for DavidKroukamp
0
312
Member Avatar for sha11e

1. Now with ARC, how would a simple little program like this look like with ARC?: [CODE] #import <Foundation/Foundation.h> #import "FakeClass.h" int main(int argc, const char* argv[]) { NSAutoreleasePool *pool = [ [NSAutoreleasePool alloc] init]; FakeClass *object = [ [FakeClass alloc] init]; //do some stuff [object release]; [pool drain]; return …

Member Avatar for ChrisPadgham
0
101
Member Avatar for sha11e

When reading or writing to files, what should you have in a try-catch? And should you have a finally? Should I have everything in the try? Like.. maybe create a File variable to check if a file with that name exists etc and throw errors if they do. And then …

Member Avatar for sha11e
0
139
Member Avatar for sha11e

I downloaded mysql-connector-java-5.1.18 and put it on my USB drive. I brought my USB drive to school and opened up Eclipse, in there I added an external .jar (the mysql-connector-java-5.1.18.jar). Then I wrote this java code: [CODE] import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.Scanner; public class Main …

Member Avatar for ~s.o.s~
0
208
Member Avatar for sha11e

[CODE] //Creating a variable for the connection called //"con" Connection con = DriverManager.getConnection("jdbc:mysql://IP_ADDRESS:3306/DATABASE_NAME", "USERNAME", "PASSWORD"); ... [/CODE] If I don't want at least the username and password to be shown in clear text... is there something I can do? Have them in a file thats encrypted or... I don't know.. …

Member Avatar for ~s.o.s~
0
103
Member Avatar for sha11e

I need a program that presses down the space bar, I found this for SHIFT [CODE] #include <iostream> #include<windows.h> #include<fstream> #include<iomanip> #include<time.h> using namespace std; int main() { keybd_event(VK_SHIFT,0x10,0,0); //shift press cin.get(); keybd_event(VK_SHIFT,0x10,KEYEVENTF_KEYUP,0);// shift release return 0; } [/CODE] But I can't seem to find the VK_? and 0x?? codes …

Member Avatar for sha11e
0
207
Member Avatar for sha11e

The book I'm using says it should look something like this [CODE] import java.io.*; public class main { public static void main(String[] argv) { String fil = "CormeOn.bat"; FileWriter fw = null; try { fw = new FileWriter(fil); } catch(FileNotFoundException fnf) { System.out.println("Yea...."+fnf); } catch (IOException e) { e.printStackTrace(); } …

Member Avatar for JamesCherrill
0
124
Member Avatar for sha11e

If I need a string or an int from the user, how can I make sure that that is what they inputted? The lame way of putting EVERYTHING in strings and then somehow check? Or maybe throw-catch? I tried the try-catch but had a few problems. The examples I saw …

Member Avatar for NormR1
0
291
Member Avatar for sha11e

I made this tiny code: [CODE] public class main { public static void main(String[] argv) { System.out.println("Hey"); } } [/CODE] It compiles and run fine in eclipse, but when i go into cmd and do javac main.java it created a main.class then I did java main.class but I get errors.. …

Member Avatar for JamesCherrill
0
359
Member Avatar for sha11e

Can you input a string of text from the console window into a char array? Or do you have to save it in a string, and then do a "s1.getChars( 0, 5, charArray, 0 );" Also, I noticed that you can't initiate a char array using the same syntax as …

Member Avatar for JamesCherrill
0
3K
Member Avatar for sha11e

I made a scanner, took asked the user to input an int, then a String and then another String. But after I put in an int and press enter, it skips the 2 String inputs. Why? How can I fix it?

Member Avatar for NormR1
0
133
Member Avatar for sha11e

Hi there, I am new to Java and have a question about user input. In my book they use Keyboard.readInt() etc A tutorial I watch does Scanner input = new Scanner(system.in) I also saw a few videos doing, well I don't remember exactly but something like... I remember they imported …

Member Avatar for OblibSystems
0
173
Member Avatar for sha11e

I couldn't do a xmlhttp.open("GET","website.com", true) The problem was something along the lines of the script not being allowed to call a page from another domain or something.. Is there some way to make it work anyway? =(

Member Avatar for Airshow
0
90
Member Avatar for sha11e

* How does stringstream work? Someone kind of explained it like, in cout it sends it to "standard out stream" or something, and using stringstream, you stream it into that instead. [CODE]stringstream a; int b=12; a << b;[/CODE] * How can it convert characters into int and such? [CODE] char …

Member Avatar for Narue
0
193
Member Avatar for sha11e

I found a page saying that int a = 12; and int a (12); do the same thing. But is there something special with the int a (12); way of initializing a variables? Like, you can do: string test(5, '-'); which would make test = ----- I couldn't seem to …

Member Avatar for Narue
0
96
Member Avatar for sha11e

OK....sigh... I need to link to lwinmm to use playsound and stuff Looked around and looked like I needed to do it like this: I'm using Codeblocks [CODE] #include <iostream> #include<windows.h> #include <mmsystem.h> #pragma comment (lib, "winmm.lib") using namespace std; int main() { PlaySound((LPCWSTR) "c:\\Snap ya fingers.wav", NULL, SND_FILENAME | …

Member Avatar for saeedmmmm
0
5K
Member Avatar for sha11e

[CODE] #include <iostream> using namespace std; void someFunction(bool& a); int main() { bool a = true; someFunction(a); if( a ) cout <<"a = true"; else cout <<"a = false"; } void someFunction(bool& a) { a = false; } [/CODE] This will print out "a = false". bool& a in the …

Member Avatar for pseudorandom21
0
265
Member Avatar for sha11e

I made myself a little autoclicker in c++, but after it's done, I want the console window to come up again, so the user can decide wether to do it again, or end the program. How do I do that?

Member Avatar for m4ster_r0shi
0
1K
Member Avatar for sha11e

Is it possible to do this: Print out something on the screen, when the user presses enter, it should print out something else, but on the same line: cout <<"Hello "; -wait for an enter- cout <<"there"; with it looking like this: Hello there ?

Member Avatar for mike_2000_17
0
210
Member Avatar for sha11e
Member Avatar for sha11e

I've been playing around with c++ a bit, and made a "encrypt"-"decrypt" thing. Just basically taking the int value of the letters and adding x to them - becomming a new character/letter. This is the code where it asks the user for an input: [CODE] void decryptonise() { string text2; …

Member Avatar for NathanOliver
0
645