|
I'm using a view ("UsersActive") against my table ("Users"). The view has only one filter, it checks if DateTime Users.DeletedOn is NULL; it basically contains all Users that are not deleted.
If I now execute Linq queries against the view instead of the...
Started by Alex on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
The view if not indexed....
If you have enterprise edition of the SQL Server you can also use indexed views .
You can see this by looking at the query plans .
Most of the time, SQL Server Query Optimizer is smart enough to use the indexes on the base table .
|
|
Recently a script called "slowloris" has gained attention. The basic concept of what slowloris does is not a new attack but given the recent attention I have seen a small increase in attacks against some of our Apache websites.
At the moment there does...
Started by KPWINC on
, 14 posts
by 12 people.
Answer Snippets (Read the full thread at serverfault):
Marcus,
I have yet to make a successful attack against a properly configured nginx.
To test nginx...
|
|
Using any external USB drive under Windows XP, how to encrypt/decrypt files on the fly, but without too much slow-down from the overhead.
Most of the obvious solutions like Truecrypt won't work because with these the host system needs to have first had...
Started by Rob Kam on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at serverfault):
It....
The public partition contains the software to access the private part, so make sure you use a strong pass phrase .
The key have 2 partitions, one that is accessible by anyone, and one that is encrypted .
We use Lexar JumpDrive Secure for our USB keys.
|
Ask your Facebook Friends
|
Possible Duplicates:
Gracefully avoiding NullPointerException in Java
Multilingual fields in DB tables
Exact duplicate
http://stackoverflow.com/questions/963936/gracefully-avoiding-nullpointerexception-in-java
What do you like more? I just hate seeing...
Started by Tommy on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
The first one will throw a NullPointerException if the randomtext is null while the second one won... .
Contrary to what some people think, these two are not functionally equivalent .
I'd say the general opinion would go toward the first, it's more readable .
|
|
When I first discovered the Strategy pattern, I was amazed of the seemingly endless possibilities it offered to me and my programs. I could better encapsulate my models' behaviour and even exchange this behaviour on the fly. But the strategy could also...
Started by mstrobl on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Further, policies are generally a C++ concept, and don't apply to other languages, while strategy pattern is available to many (most?)... .
Policies are largely set at compile time, while strategies are set at runtime .
I thought they were the same thing.
|
|
Between it's endless wars abroad and its suppression of its people at home, America has gone too far. The US is already making use of the NDAA: Indefinite detention and torture: NDAA in action . H.R. 3166: Enemy Expatriation Act has been proposed, which...
Started by Randomizer on
, 23 posts
by 7 people.
Answer Snippets (Read the full thread at xkcd):
Even an Air Strike campaign would likely be far more costly against Iran than against Lybia, and thus any form of air strike will require action against Iran's radar and anti-air as a prerequisite with drones, to industrial....
|
|
BEWARE: LONG
First of all, no unjustified, or snarky remarks, please be civilized.
Allow me to begin by stating three points:
1.) I am 16 years of age, so not a lot of credibility here.
2.) I am certainly NO scientist, and do not have the full perspective...
Started by Mainerd on
, 14 posts
by 11 people.
Answer Snippets (Read the full thread at gaiaonline):
Thumper? No one gives a flying *** Being biased against Christianity, I felt no desire to read of excommunication from the Church for going against the church's wishes was how the Catholic Church controlled so heard against assumptions....
|
|
How do I do a regexp search against a Mandarin string?
Started by Vanson Samuel on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
No different that against any other string; of course.
In pinyin and do a regexp search of this string .
|
|
What are the arguments for and against business logic in stored procedures?
Started by Gern Blandston on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Or, be prepared to manage concurrent....
Against stored procedures: business logic in programming.
To connect to database
-: Logic is not organized well
Personally I'm against it, but I had to use it once those benefits were not so big anymore.
|
|
I need to validate an XML string (and not a file) against a DTD description file.
How can that be done in python?
Started by Paul on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
A simple example taken from the lxml site:
from StringIO import StringIO from lxml import etree dtd = etree.DTD(StringIO... .
PyXML will do the trick http://pyxml.sourceforge.net/
Another good option is lxml's validation which I find quite pleasant to use .
|