I have an application where I have to read in large quanties of data from a file. The records are mixed binary and ascii having no standard format save a 4 charachter delimiter at both the beggining and end of a record. The delimiter is assummed but not garunteed to only occur there and not in...
I am processing files of our SAN, to minimize network load and load on the SAN (it is an issue in my enviornment) I want to cache the entire file to memory when it's opened. Writing my own file class is what I'm doing right now, but I am finding out how much of a pain it is. The file is part...
I am trying to write a program to verify that a hard drive can store data without corrupting it.
I have written a class called randomData that is filled with a std::vector of 1k std::strings. The program prompts you for how big you want to make the class and then how times you want to repeat...
recently I've had to write a couple of apps that parsed text files that were a couple of gigs apiece. I wanted to output to the user that some progress is beeing made, but I don't wan't do it every line. I've come up with two solutions and was wonering which one is closer to whatever the...
I'm trying to make a cgi program that will clean up and validate the requests before passing them on to the appropriate script. After a post, how do I put the string back into stdin so a program that I call using system will have it waiting for it?
WR
How do I verify wheather or not a file that i know exists is open by another program. I was thinking of opening a std::ifstream with sharing set to filebuf::sh_none and checking to see if that failed. That is from the old implementation of ifstream though. I was wondering how do I do it with the...
I taught myself c++. I know most of the language. I don't know any API's of substenace. What are some of the resources worth spending time on to improve. I have Soustrop's book and Meyers book. Meyers book is an exellent read, but I also need a resource that goes over the basics like: global...
I have to configure an LDAP server so iplanet can authenticate users. It seems like it's a database that has a hirarchy. So here are some questions pertaining to the technology in general.
1:Why can't I store the data in an actual RDBMS or an XML file? What solutions does LDAP provide?
2:some...
I have a win2k professional SP3 system. It is not part of a domain. It has a corperate baseline loaded, that has been configured so that password complexity requirements and lockout policy applies to the administrator account. When I try to log on it says the administrator account has been...
Does anyone know how to enumerate tcp connections and the associated pids. I looked at the IP helper API but I couldn't find anything that would give me PID's.
WR
I am not a dba, but its what I'm stuck doing right now so I have some questions.
I have a DB with a couple hundred million records that i need to come up with a backup strategy for.
The target is to be at that same point time that the failure occured at within 1 day.
Taking the db down for...
I was brushing up on sorting algorithims so I went and wrote a quick sort.It runs successfully and its fast. I looked at some source code online and my code bore no resemlence whatsoever to it so I will post it and ask the following questions.
1:Is this a correct implementation of the quicksort...
I just got my hands on visual c++.net 2002. I am aware that it ships without the optimising compiler but will someone explain why that release build of
#include <iostream.h>
int main()
{
cout << "Hello world";
return 0;
}
compiles to 40k and the release build of
#include...
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.