NLog and maxArchiveDays - nlog

I have NLog setup and I'm using maxArchiveDays="30" and archiveNumbering="DateAndSequence". My questions is will that work, per https://github.com/NLog/NLog/wiki/File-target maxArchiveDays is not supported with archiveNumbering="Sequence", since they didn't say "DateAndSequence" will it work?

YES the documentation is correct. MaxArchiveDays will work for archiveNumbering="DateAndSequence" and archiveNumbering="Date".
AND it will also work for archiveNumbering="Sequence" when not having specified a custom archiveFileName="..." path (NLog v5.0 will remove this restriction).

Related

lock preferences in firefox 45.5 on RHEL

I am required to make a custom FireFox profile on a RHEL based system.
most of the configuration are changed inside the FireFox inside the about:config menu.
When I try and lock parameter values using the "mozilla.cfg" file and the "lockPref("", )" function the browser doesn't seem to read those files, I place the file both in: "~/.mozilla/firefox/" and "/usr/lib64/firefox/". I used the http://kb.mozillazine.org/Lock_Prefs guide and some more and still I have no one answer about where those function should be written and how do I check that those functions were loaded.
I would like some clear instructions or a definitive guide that I just couldn't manage to find.
Thanks!
This came up fairly high in a Google search when I was asking the same question, but did not have an answer at the time.
I found the following reference:
https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment
On RHEL7, the files needed to be added to the following locations:
/usr/lib64/firefox/defaults/preferences/autoconfig.js (root:root, 644)
/usr/lib64/firefox/mozilla.cfg (root:root, 644)

Ezjail and /etc/jail.conf in FreeBSD 10.2

I have a question regarding the following warning when using
Ezjail-3.4.1 on FreeBSD 10.2
/etc/rc.d/jail: WARNING: Per-jail configuration via jail_* var "enter code here" iables is obsolete. Please consider to migrate to /etc/jail.conf "enter code here"It is my understanding that this has changed in FreeBSD 9.0 but since 10.2 the new way is the default method and that warning is being generated.I haven't been able to find any information about this on google, a lot of users mentioning the errors but ignoring them because their jails still work.AFAIK in 10.0 the rc.d/jail script converts the old-style jail_
variables into a temporary jail.conf to handle the jail. So the warning
is generated by rc.d/jail
Regards
Mr-Hill
As you found out, jails on FreeBSD 10.x use a new configuration method. From /usr/src/UPDATING:
20131010:
The rc.d/jail script has been updated to support jail(8)
configuration file. The "jail_<jname>_*" rc.conf(5) variables
for per-jail configuration are automatically converted to
/var/run/jail.<jname>.conf before the jail(8) utility is invoked.
This is transparently backward compatible. See below about some
incompatibilities and rc.conf(5) manual page for more details.
These variables are now deprecated in favor of jail(8) configuration
file. One can use "rc.d/jail config <jname>" command to generate
a jail(8) configuration file in /var/run/jail.<jname>.conf without
running the jail(8) utility. The default pathname of the
configuration file is /etc/jail.conf and can be specified by
using $jail_conf or $jail_<jname>_conf variables.
Please note that jail_devfs_ruleset accepts an integer at
this moment. Please consider to rewrite the ruleset name
with an integer.
ezjail was never updated to use this new method, but that's ok: FreeBSD still accepts the previous method. You can ignore this warning.

How to specify a run timeout with VSTest.Console?

With MSTest.exe, you can specify a total timeout for a test run by setting the /TestSettings/Execution/Timeouts/#runTimeout attribute in a .testsettings file.
With VSTest.Console.exe, the .testsettings has been deprecated in favor of .runsettings, which apparently has a completely different schema (with, ahem, sparse documentation). I know that I can configure the .runsettings file to use legacy MSTest mode (thereby allowing me to use a .testsettings file), but I would prefer to avoid that if possible.
Is there a way to set a run timeout in the .runsettings file? Or is there a different way to get the same effect?
Yes, there is. Please see RFC here: 0011-Test-Session-Timeout.md

how do I get form_start and submit_row working in Silex?

The Symfony documentation for twig mentions using form_start but when I try this in Silex I get this error
Twig_Error_Syntax: The function "form_start" does not exist
Is it possible to use this in Silex?
Other form function like form_row() and form_widget() work.
Edit: I am using symfony/form dev-master (945f91ee8729a8f16e5d5c87c4920694e6b10475)
and symfony/twig-bridge 2.2.x-dev (6ddcb37ae4b7275c14baf365c7513b9ffdd6e31c)
You're using a version of twig-bridge where it is not yet present.
form_start and form_end have been introduced by commit d0b896, and github tells us that 2.3.0 is the first release including it.
Also note that while you're using 2.2, you're browsing the docs for 2.3.

How do I turn off E_INFO in pocketsphinx?

E_INFO is printing a bunch of logs. I don't know how I can turn that off. I searched E_INFO from all source files in pocket/base sphinx but I was not able to find where it set up the flag.
Configuration option
-logfn /dev/null
Windows
-logfn nul
turns off logging.
If you are using API you can also use
err_set_logfile(char *filename)
If you are using the API, this is what I did:
// turn off pocketsphinx output
err_set_logfp(NULL);
err_set_debug_level(0);
The API given by the accepted answer didn't work for me.
i use the API,and add
err_set_logfp(NULL);
before using
ps_init(config);
and it will work without any "INFO"log
In Python:
config = Decoder.default_config()
config.set_string('-logfn','nul')

Resources