0
votes
0
comments
1,622
views

Puppet agent can’t find server

0 votes, 0.00 avg. rating (0% score)
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,390
views

Avoiding Nagios commands.cfg

0 votes, 0.00 avg. rating (0% score)
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
790
views

Need to improve urlencode function

0 votes, 0.00 avg. rating (0% score)
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,034
views

Passing variable urlname to url tag in django template

0 votes, 0.00 avg. rating (0% score)
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,248
views

Writing a tokenizer in Python

0 votes, 0.00 avg. rating (0% score)
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,221
views

Maintaining Logging and/or stdout/stderr in Python Daemon

0 votes, 0.00 avg. rating (0% score)
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
668
views

Should I be disabling Java?

0 votes, 0.00 avg. rating (0% score)
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
491
views

Tracking hours on a project

0 votes, 0.00 avg. rating (0% score)
Other than the following, are there any helpful (to programmers) reasons to track hours/time on a project down to the “accurate number of hours per week” level? Reasons: Beneficial to see how estimates vs. actuals came out (to improve estimation) Management said so (for contractual or business reasons) This is a bit tongue in cheek, […]