- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 3
- Downvoting Members
- 3
21 Posted Topics
Hi, I am trying to copy all contents from one directory over to another directory. This is the code I have so far: [CODE] #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #define MAXNAME 80 #define R_FLAGS O_RDONLY #define W_FLAGS (O_WRONLY | … | |
Hi, I am practicing MySQL JOINs and was hoping I could get some insight on how to do a particular problem. I am using the World database, it has a table called City with name, population, country code. It also has a table called Country, with Code and Name. What … | |
Hi, I'm trying to send a MySQL query string from a C# application to a PhP submission page via POST. The problem I am receiving is when I try to use the WHERE clause it hangs up at the string I'm trying to compare to. [B]The Query[/B] SELECT * FROM … | |
Hi all, My question pertains to the reading of a text document. Currently I am reading a text file searching for certain syntax and once it finds it then it uses that line. The thing is, I am currently doing this: [CODE] while (reader.readLine() != null) { DOSTUFF(); } [/CODE] … | |
Hi, [B]Problem At Hand:[/B] Include my [I]config.php[/I] file which contains the string variables I want to use inside my [I]global.php[/I] file which contains a connect() method which I am trying to use. [B]What's Going Wrong:[/B] It successfully is including the [I]config.php[/I] file but it doesn't seem to have access to … ![]() | |
Re: Beginning of your page you can see if the user has the correct access level. If they do: Let them stay and load the page. If they don't: Redirect them to whichever page you'd like. Below is just pseudo-code, but you should get the idea: [CODE] <?php if ($userAuth < … | |
Hi, I'd like to copy one directory to another, including subdirectories. Each file that is copied over needs to have its own thread and each following thread must wait for the previous one to finish and exit before being created. The directory names are passed in *arg separated by a … | |
Hi all, I have a question about moving through the elements in a web browser via C#. I currently am trying to get a checkbox to become unchecked using the HtmlElementsCollection... I have so far been able to implement putting text into a message box that is on a webpage, … | |
Hi I'm just trying to input two string variables into 2 fields of a database that are VarChars. [CODE] $name = "jear"; $pass = "jartt2"; $query = 'INSERT INTO `user` (`id`, `name`, `password`, `char_name`) VALUES (NULL, '$name', '$pass', 'test')'; $result = mysql_query($query); [/CODE] This is the snippet of code that … | |
Hi, I have an application that is going to be loading in about 30,000 files (very very small ones). These will be saved into memory (predicting about ~30MB of memory needed), and right now I just have them loaded in one at a time..I'll find a better algorithm for loading … | |
I have 2 variables that should be global within its own file. I am attempting to access their set information from a function within that file but I receive nothing but an error. When I hardcode in the information into the function instead of retrieving from the variables, it works … ![]() | |
Hi, I'm trying to write a short/simple function that will get the information that is in a COOKIE and return it. I have a COOKIE that is called [B]auth[/B]. This COOKIE is properly set as I can do an [I]echo $_COOKIE['auth'];[/I] and it will show the proper number. The problem … | |
Hi, I'm trying to just grab a small column of data from a Database and return it. This is a function called getAccessLevel(), it returns the Access level which is an integer. There is a table called users in the DB and the column access holds either 0, 1, or … | |
I am developing a class called AVLtree, this class contains the methods get(), put(), remove(), and ascend(). This class allows multiple keys to be the same. My questions are: How would you be able to get() if there are multiple same keys? How would you get something that is passed … | |
Hi, I understand how there are events for things such as buttons and other form objects, but I was curious as to if it is possible to create an event for when a variables value is changed. Thus if I have an integer variable named MyInt with value 0, it … | |
Hi, I was wondering if it is possible through C# to get all the directories of a website. Example: A website called example.com/ has the directories example.com/john, example.com/jill, example.com/pinkelephantsocks, and I searched for the directories of example.com/ it would return those 3 directories. Sorry if this isn't clear enough, any … | |
Hello all, I am working on a little side project for my own amusement and learning that involves moving throughout a webpage and doing things (ie login, going to pages, clicking links, posting forms, etc) on it's own. This project will be similar to programs such as FriendBlaster, which logs … | |
Re: Yes you can. I installed WoW, Crysis, and various other games onto my 160GB WD flash drive and they all play smoothly. Note that in some cases you must install the game through your computer onto your flash drive, and it won't be portable (i.e. you can't unplug and go … | |
I need to print out the following values on std-out: -CPU Type and Model -Kernel Version -Amount of time since the system was last booted, in the form dd:hh:mm:ss This is all on Ubuntu 8.04 I have looked through my Linux Kernel book but it is very vague about how … | |
I have been given an assignment where I have to create a small shell that the user will be able to enter in a path and 2 parameters. The shell must be able to process this input and run the program at the given path using execvp, and must also … | |
Re: I would suggest using NetBeans IDE. It has an easy to use editor interface and gives you syntax options much like you'd find in Visual Studio. I have found NetBeans to be a great compiler for my C work. (Never use Eclipse for C, worst one I've found) |
The End.