|
What is the best way to prevent someone abusing access to your site using scripts?
Started by Yogi on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Trying to prevent webscraping itself is a folly -- a computer put your web ... .
Mod_evasive can block people who neglect to add in a sleep routine and flood your servers .
Provide a sensible API , and heavily hint at guidelines for acceptable web scraping .
|
|
Abusing the JK victim, really abusing it :)
well I have had the honor to be part of a pass around where John wanted us to beat on a blade of his. it's a very nice profile and a great little knife. specs below.
9 1/2" overall length
5" blade
1/8" O1 tool...
Started by grunt soldier on
, 17 posts
by 10 people.
Answer Snippets (Read the full thread at bladeforums):
Maybe even a couple vids lol
Last edited by grunt soldier; Yesterday at... .
Jk punches through no problem
some more batoning and what nots
and hell a few more even .
I'm really digging this blade for sure
who needs a freaking pop top .
And here is some more.
|
|
I'm looking for an easy way to build an array of strings at compile time. For a test, I put together a class named Strings that has the following members:
Strings(); Strings(const Strings& that); Strings(const char* s1); Strings& operator=(const char*...
Started by miked on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
E.g., the same way that you can write:
int a=3, b=4
It seems to me that you are essentially writing:
Strings s="... .
I think that the comma in your second example is not the comma operator but rather the grammar element for multiple variable declarations .
|
Ask your Facebook Friends
|
Coming from Sourcesafe, I have primarely been using git as a major undo feature. I tend to work in the master branch, code happily away for some time, commit here and there and move on.
While I'm coding my brains out, I sometimes wish to drop what I'm...
Started by Lieven on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
I know little about git, and struggle each time I have to ... .
Edit: If you need to go back further than HEAD, you can always do a git checkout specifying the start point to get a new branch starting from any given commit in master .
Check out git-stash.
|
|
I see a lot of questions, both here on SO and elsewhere, about "maintaining common libraries in a VCS". That is, projects foo and bar both depend on libbaz, and the questioner is wondering how they should import the source for libbaz into the VCS for ...
Started by William Pursell on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
As I understand it, the basic advantages are guaranteeing a stable API and uniformity of libraries for all developers, and the ability to control... .
The use of vendor branches to control 3rd party dependencies is discussed in some depth in the Subversion book .
|
|
In our app, we ask people to specify a file share. These files are analyzed, usually 1-5. Someone apprently specified \localhost\c$\windows. It's one thing that it's a intranet app.
Question is what is a good approach to prevent such misuse?
Started by tful on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In addition ....
Two things that come to mind right away are 1) whitelisting machines and/or shares (only allow certain inputs to pass) or 2) putting some sort of sanity check on the input (if (files.Count > 10) throw new JerkException("u r a jerk")) .
|
|
GUIDs are typically used for uniquely identifying all kinds of entities - requests from external systems, files, whatever. Work like magic - you call a "GiveMeGuid()" (UuidCreate() on Windows) function - and a fresh new GUID is here at your service.
Given...
Started by sharptooth on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Some implementations of GUID....
It depends.
Not that it really invites you to do so, which is one of the characteristics around Guid's that I really like .
The only way I can see of misusing a Guid is trying to interpret the value in some logical manner .
|
|
Hello.
I need to parse a xml file which is practically an image of a really big tree structure, so I'm using the XmlReader class to populate the tree 'on the fly'. Each node is passed just the xml chunk it expects from its parent via the ReadSubtree()...
Started by Trap on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
For example....
This might be important if the code you pass the subtree to thinks it is getting a standalone xml document .
This new reader appears to consumers as a complete document .
ReadSubTree() gives you an XmlReader that wraps the original XmlReader .
|
|
Hello,
I think understand the definition of State / Interaction based testing (read the Fowler thing, etc). I found that I started state based but have been doing more interaction based and I'm getting a bit confused on how to test certain things.
I have...
Started by eyston on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you....
What matters most is that your API does what you want it to, and that is what you need to test .
I agree.
I think Roy Osherove recently twitted that as a rule of thumb, your tests should be 95 percent state-based and 5 percent interaction-based .
|
|
So my clients iphone app has balloned from 5 or so classes to over 25 in the last few weeks. With such a large (for the iphone anyway) class structure I've been utilizing the Singleton class for accessing global variables. The problem is that whenever...
Started by ennuikiller on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I have done a detailed analysis....
In some cases, such as NSWorkspace, it would seem that they had trouble figuring this out for themselves .
Apple/NeXT defined numerous singletons, each with its own focus, and usually referred to as a "manager" of something .
|