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
~33.3K People Reached
Favorite Tags

51 Posted Topics

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
172
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
146
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
91
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
147
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
3K
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
304
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
146
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
133
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
199
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
325
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
107
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
144
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
209
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
107
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
211
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
127
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
304
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
364
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
138
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
178
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
93
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
304
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
101
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
272
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
244
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
659
Member Avatar for sha11e

Suddenly I have a VERY annoying problem with my dektop computer's wi-fi! Very often, I just stop being able to visit websites or ping websites (for example google.com). When this happends, I am connected to my ISR, I can ping other computers in my network and my router but I …

Member Avatar for carolyncole
0
181
Member Avatar for sha11e

Heard people say c# for big programs, c for fast programs and c++ is just something that failed at being object oreanting c is c++ useful?

Member Avatar for sergent
0
212
Member Avatar for sha11e

After some google-ing I found a page saying that .o files are " “Object Code” is just the translation of “Source Code”, which can be referred as machine language code." What .depend files are I didn't really understand. Someone said it... kinda... links to libraries or something? Else my exe …

Member Avatar for nezachem
0
180
Member Avatar for sha11e

I have a c++ program that uses the rand function and the srand function. It worked fine when I compiled it on my windows machine, but I got errors when trying to compile it on ubuntu linux. After I included cstdlib the program worked fine on the linux too. 1. …

Member Avatar for Narue
0
298
Member Avatar for sha11e

Going into device manager, then looking at my graphics card - It has 4 Memory Intervall and 3 I/O intervall and one IRQ. 1. Shouldn't it only have 1 of each? I mean, how can it have more than 1 I/O address? 2. Looking at other devices in the Device …

Member Avatar for caperjack
0
165
Member Avatar for sha11e

I found this function: I would like to use this for my program. [CODE] void gotoxy(int x, int y) { COORD coord; coord.X = x; coord.Y = y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); } [/CODE] First of all, is the "COORD coord" neccesary? :/ and "GetStdHandle(STD_OUTPUT_HANDLE), coord)" What's this part? What does it …

Member Avatar for sergent
0
9K
Member Avatar for sha11e

I've seen some programs made with ncurses, and I think it would be really cool to use it in my project for school. Problem is, I have no idea how it works and can't seem to find much, if even anything, about it. Can someone maybe help me a bit? …

Member Avatar for L7Sqr
0
80
Member Avatar for sha11e

How can I check that the user actually is inputting what I want them to? (For example letters or numbers); I need the user to input y or n, so here is how i tried to solve it: [CODE] char answer; do { system("cls"); cout <<"Want to play? <y/n>: "; …

Member Avatar for Derek Elensar
0
157
Member Avatar for sha11e

I want to make a project, have 3 files: main.cpp header.h declerations.cpp where i have all the function declarations. But I'm not sure how to link them all together. When I make a header file, it automatically types the #ifndef header_h but I thoguht that should be in the declerations.cpp?? …

Member Avatar for mike_2000_17
0
277
Member Avatar for sha11e

Hi, I've done something and now when I right click on my desktop -> New I can't create .txt files anymore. This is done with registry I've been told - but I forgot what to search for on google. I've had no luck finding anything. So how do I add …

Member Avatar for benmar
0
169
Member Avatar for sha11e

It's soon time for me to create some c++ program as a project for my class. But I have no idea what to do, any suggestions?

Member Avatar for floatingDivs
0
103
Member Avatar for sha11e

I sometimes see people code like std::cin and stuff and say that it's bad to use "using namespace std;" Why?.....

Member Avatar for Fbody
0
173
Member Avatar for sha11e

When writing this: [CODE] #include <iostream> #include <iomanip> using namespace std; int main() { float number = 2.12345; cout <<fixed <<setprecision(3) <<number; return 0; } [/CODE] I get 2.123 If I then cout another float variable that I want all decimal numbers at, and not setprecision(3)...... How do I do …

Member Avatar for sha11e
0
3K
Member Avatar for sha11e

1. Are memory adresses a certain size? I've seen some that have 6 characters after the 0x and some that have 8 after the 0x 2. A pointer like this: int *pointern does what exactly? Selects a location in the memory? Randomly? Or maybe like the first availible memory adress? …

Member Avatar for rubberman
0
213
Member Avatar for sha11e

I just re-installed XAMPP and I'm getting an error that I've never gotten before. Notice: Undefined index: username in C:\xampp\htdocs\acc_terminator\unicode.php on line 3 Notice: Undefined index: password in C:\xampp\htdocs\acc_terminator\unicode.php on line 4 Notice: Undefined index: account_level in C:\xampp\htdocs\acc_terminator\unicode.php on line 5 Those lines are: $xusername = $_SESSION['username']; $xpassword = $_SESSION['password']; …

Member Avatar for diafol
0
130
Member Avatar for sha11e

Hey, My codes asks for a number, if the user inputs something else it gives an error message and asked for a number again. If the user inputs a number, it should cout whatever number the user chose. But it doesn't work as intended... I get the error message the …

Member Avatar for subtracktor
0
151
Member Avatar for sha11e

If I write 1 letter, I get the error message once. If I write 3 letters, I get the error message three times...... How can I fix this :S? [CODE] #include <iostream> #include <stdio.h> #include <math.h> #include <cmath> #include <stdlib.h> using namespace std; int main() { //vars char user_numberr; //int …

Member Avatar for jonsca
0
110
Member Avatar for sha11e

I want it to do the following: Ask for a number between 1 and 5, if user inputs anything lower, higher, or something that isn't a number, it should give an error message and then ask for a input again. This code will spam the error message forever, what have …

Member Avatar for Jason Giggs
0
118
Member Avatar for sha11e

The error i get is: 'user:input' undeclared[first use this function] [CODE]#include <iostream> #include <cmath> using namespace std; int main() { // declaring variables \\ string user_input; // end of declaring variables \\ cout <<"Hello and welcome to Mr. Nightwish's lab of crazy!" <<endl <<endl <<"Please choose one of the following …

Member Avatar for mitrmkar
0
87
Member Avatar for sha11e

$fname = "Kevin"; $fname_match = preg_match('/^[A-Za-z]{2,20}$/', $fname); if($fname_match==true) { echo "All matches... true?"; } else { echo "All matches.. noo?"; } I should be getting the first one right? But i get the else message.... Why? 'Kevin' should match?

Member Avatar for hielo
0
107

The End.