0
votes
0
comments
1,569
views
Puppet agent can’t find server
I’m new to puppet, but picking it up quickly. Today, I’m running into an issue when trying to run the following: It would appear the agent doesn’t know what server to connect to. I could just specify --server on the command line, but that will be of no use to me when this runs as […]0
votes
0
comments
1,359
views
Avoiding Nagios commands.cfg
Nagios comes with a set of pre-installed check commands. They are installed at /usr/libexec/nagios or /usr/local/nagios/libexec (anyway, the $USER1$ is expanded to the right place) In that folder you can find several check_whatever commands, most of them are binary files, some are shell or perl scripts. If there is not a suitable check program to […]0
votes
0
comments
767
views
Need to improve urlencode function
I need a way to URL encode strings with a shell script on a OpenWRT device running old version of busybox. Right now I ended up with the following code: This works more or less fine but there’re a few flaws: Some characters are skipped, like “”, for example. Result is return character by character […]0
votes
0
comments
1,001
views
Passing variable urlname to url tag in django template
What I’d like to do (for a recent changes ‘widget’ – not a django widget in this case) is pass a urlname into my template as a variable, then use it like so: {% url sitechangeobject.urlname %} Where urlname is a string containing a valid name for a url. Is this possible? The template keeps […]0
votes
0
comments
4,211
views
Writing a tokenizer in Python
I want to design a custom tokenizer module in Python that lets users specify what tokenizer(s) to use for the input. For instance, consider the following input: Q: What is a good way to achieve this? A: I am not so sure. I think I will use Python. I want to be able to provide […]0
votes
0
comments
4,179
views
Maintaining Logging and/or stdout/stderr in Python Daemon
Every recipe that I’ve found for creating a daemon process in Python involves forking twice (for Unix) and then closing all open file descriptors. (See http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ for an example). This is all simple enough but I seem to have an issue. On the production machine that I am setting up, my daemon is aborting – […]0
votes
0
comments
649
views
Should I be disabling Java?
First it was Apple, now it’s the US government… U.S. urges users to disable Java; Apple disables some remotely New malware exploiting Java 7 in Windows and Unix systems How serious is this “unspecified vulnerability”? Should all users be disabling Java until we know things have been patched? Ali Ahmad Apple apparently takes this […]0
votes
0
comments
459
views