Apache has "Allow From" and "Deny From" directives that can control access based on the DNS of a connecting IP (found by a reverse lookup). I was wondering if IIS has an equivalent to this capability.
I haven't yet seen anything in this forum regarding the recently discovered vulnerability in DNS. Considering the scope and nature of this thing, I think a warning is in order.
Dan Kaminsky has discovered a serious flaw in DNS. Cache poisoning is easier than previously believed, and exploits...
I have a system (inherited) acting as a file server; it is a NetStor WSS running Server 2003 attached via SCSI to a SecurStor XRS RAID. I have an ongoing issue where the OS locks up when it sees the RAID device.
If the RAID is powered on when the server boots, it usually just blinks the LEDs on...
Occasionally, I'll need to write a script that does something for each letter in the alphabet. I used do something like:
for x in a b c d e f g h i j k l m n o p q r s t u v w x y z; do
echo $x
done
That's tedious to type, and it always seemed like there should be a better way, like a seq...
The following is a sentence I might write.
My "grammar sense" tells me that the comma is supposed to go there (perhaps optionally), but I can't explain why, and I can't find any rules supporting that use of a comma.
Can someone please point me to some rule that says I can/should/shouldn't use...
Can someone point me to a utility that can convert a binary file into a C (or C++) header? A Unix utility would be preferred, but a Windows one will work, too.
For example, such a utility might generate output similar to the following:
#ifndef XXXXX
#define XXXXX
const char xxxxx_data =...
This is the title of an article:
Recursive Make Considered Harmful
It's about the pitfalls of using the recursive features of the software build tool "Make."
Of course, without knowing "Make" is a noun, not a verb, the title of the article seems like a bad translation!
Considering that, in...
I can never understand why people sometimes write or type a word that was clearly intended to be a contraction like "didn't" or "couldn't," but completely leave off the "n't."
Examples:
I would want to be in that mess.
I waited for hours but he did show up.
I was late because I could find my...
I seem to remember a utility or shell builtin that allows you to execute a command and "fake" the program invocation name (that is, what would go in a C program's argv[0]).
This facility exists because many programs behave differently based on how they are invoked. Most shells, for example...
This question isn't specific to C++, but there's no "linkers" forum, and this seems like a reasonable place to ask.
I've come across a situation where it would be useful to be able to statically link object files with a library to form an executable (most likely only needs to be...
Is the following guaranteed to be doable in just plain, pre-C99 ANSI C? (Without C++, and without compiler-specific tricks).
/* hidden.h */
#ifndef GLAH_H
#define GLAH_H
struct hidden;
typedef struct hidden hidden_t;
void foo_hidden( hidden_t*, int );
#endif
/* hidden.c */
typedef...
Boost, a set of libraries that's as good as a second C++ Standard, just released a new official version. If you've seen it before, check it out again; you might find something new or improved to your liking. If you haven't seen it before, now's as good a time as any: www.boost.org.
I installed Red Hat 8.0 a few days ago. Everything seems to be working fine except for the Network Notification Tool. It continually turns to a grey question mark icon with tool tip "Error connecting to RHN" and gives me the error: "Network Error -3: Temporary failure in name...
I keep hearing about "the legendary YASLI" (Yet Another Standard Library Implementation), which is supposed to be the most efficient C++ Standard Library thus far.
However, for something that's legendary, I can't find any resources on it anywhere (aside from a bunch of Turkish...
I can't tell why VC++ doesn't like this code:
#include <string>
class Foo : public std::string
{
public:
Foo()
: string()
{}
};
VC++ seems to think that string is not a base or member of Foo. Putting "std::" before "string" in the initializer list produces...
I can't tell why VC++ doesn't like this code:
#include <string>
class Foo : public std::string
{
public:
Foo()
: string()
{}
};
VC++ seems to think that string is not a base or member of Foo. Putting "std::" before "string" in the initializer list produces...
I've been asked to write a program that allows a user with the proper permissions to change a group of users' passwords to a default temporary password (e.g. when a bunch of students return to school and have all forgotten their passwords). It needs to be able to do them all in one quick sweep...
When I write an applet using Swing and compile it using JDK 1.3.1, it runs fine in appletviewer, but it fails to load in any browser I've tried (including the most recent).
Is there a trick to using Swing I should know about? Do I just need to use a more recent version of Java? Do I need to get...
I know this question would be better suited to one of the more general C++ forums, but I didn't get any answers there, so I'm trying my luck here.
Say I have:
template< class T >
class SmartPtr
{
public:
...
T *operator->() { return ptr; }
private:
T *ptr;
};
This works (and...
Say I have:
template< class T >
class SmartPtr
{
public:
...
T *operator->() { return ptr; }
private:
T *ptr;
};
This works (and is apparently the/a correct way of doing it), but I don't understand the logic behind having the operator return a pointer.
Given:
SmartPtr<...
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.