Currently I have my windows 2003 server configured to accept VPN connections. I have a laptop with Win XP Home...I know pro would be better but this is all I have. I am able to create a new VPN network connection on my laptop. When I launch it and enter the ip address of my server at home I...
Does anyone know of any simple programs or scripts that will email a computers ip address to a specified email. Here is why I would like to use it. I currently have a webserver that I am just playing around with but I have a dynamic ip address that changes about every 8 days. So what I would...
Hey Guys,
Here is what I would like to do, I currently have a home network with a bunch of computers (mostly running xp pro) and what I want to do is to be able to connect to this network via any computer on the internet. I know there is remote desktop but that is not really what I am looking...
I have a EVO D500 Compaq and I am geting the following error during the post: 514: cpu or chassis fan not detected, and press F1 to continue. The fans do work and I even tried replacing them and I still get the message. No where in the BIOS do I see an option to turn off the fan warning or...
I am working on using semaphores to keep two threads from writing to the same variable but this is now working correctly, I beleive that the semaphore is created correctly can anyone tell if this is right:
int p(){
//sem is the sembuf struct
//x is the semid
sem.sem_op = -1;
semop(x, &sem...
Does anyone know how to create a make file? For example, I have 3 c programs: myprog1.c, myprog2.c and myprog3.c. How do I creat a make file that will compile all of these programs by 1 command and make them executable???
I am using the fork command to run 2 progmrams at the same time, the ls command. I then pass in at the command line 2 args so that the first arg goes to the first ls and the second arg goes to the second ls. That works fine, the problem is I am getting too many program running, all I want to...
Does anyone know how to use file tree walk, ftw() to list all of the files and directories and the directories files? I want to create a quick little program like the other one I was trying to write that displays everything recursivly with ftw().
I want to create a method to search for a given file(or directory) in a given directory, here is what I came up with but it always says that it was not found even if the file exists.
void search ( char *filename , char *dirname ){
struct dirent *dirPointer;
DIR *d;
d = opendir( dirname...
Does anyone know how to use the Stat system calls to check if a file is a directory or just a file? I checked the man page and I found that you need to use S_ISDIR(m) but it does not say how to use it, does anyone know?
I would like to write a C program that will read all of the files in a given directory, one that will be passed in from the command line arg. I want all of the files and directorys printed to the screen. I was thinking of using the opendir function. Does anyone have any ideas on how to get...
Does anyone know how to sort a JTable? I have a table with a column of strings, one of ints and one of doubles. I need to be able to sort them by columns.
How do you use Buffered reader to read from a file. I have a class set up with a few variables. And I have a file where every line would be a new instance of this class and there are 5 things in each line seperated by tabs. Each thing on each line would be stored in the different variables...
I am trying to create an array of Element objects for use in a JTable. I am having problems creating this array and I am not sure why. Here is what I am trying to do:
Element e = new Element("Mercury", "Hg", 80, 200.59,356.7 );
Element[][] data = {
{e.getName(), e.getSymbol()...
This is the first C program that I will be writing, it is pretty simple but I can't seem to get started on it, here is what I need to do:
I need to have a user enter 2 numbers that represent the rows and colums of an array. It will then print the numbers starting from 0 at position (1,1) and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.