if for example, you want to apply a unique index, but you can’t because there’s duplicates in the table.
SELECT name FROM mytable GROUP BY name HAVING COUNT(*) > 1;
if for example, you want to apply a unique index, but you can’t because there’s duplicates in the table.
SELECT name FROM mytable GROUP BY name HAVING COUNT(*) > 1;
new site…
svn propset svn:executable on
rngd -f -r /dev/urandom
This sends the output from the fast-but-not-very-random PRNG as input into /dev/random. Useful when testing and speed is more important than security.
I needed to get at the request in a template which had been called ‘direct_to_template’. To make the request available, you need to modify the TEMPLATE_CONTEXT_PROCESSORS variable.
Add this to your settings file
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.request',
)
Then you can use {{ request }}
It seems that browser refuse to install cookies for a TLD. So for example, if your local network is .internal, then you won’t be able to set a domain in a cookie for .internal. Add another layer into the domain e.g. .level2.internal, and the cookie will work fine.
Common problem when migrating from 0.96 to 1.0…
cd
python setup.py bdist_egg
This creates the egg file in the dist directory.
Ref: Section 3.5 Zenoss Dev Guide (V2.3.0)
Define it in the class in __init__.py in the ZenPack’s home directory.
Ref: Section 3.4.1 “Base ZenPack Class” of the Zenoss Developers Guide. (V2.3)