Annuities, a note on price theory

While researching my articles on the UK 2014 budget, I wanted to write a quick note on Annuity prices, yields and interest rates, I came across nothing easy to find, but did come across these,

There is a companion wiki article on the UK 2014 Budget.

A loan involves a bank giving someone a wedge of cash in exchange for an agreed periodic payment.

An annuity involves a bank giving someone an agreed periodic payment in exchange for a wedge of cash.

They are the same thing! So we should be able to price them the same way.

Log Rotate and *NIX

This has changed since my days at Pyramid. There has been quite a lot of thinking and engineering about dealing with daemon logs. The places to look are via the syslogd, newsyslog project, you can see a the newsyslog man pages and using the keyword “rotate log”. The idea is that logs are rotated, although the names are not and that old logs are deleted. So the newest is called mypackage or mypackage.0 and the older logs increment the counter. Logs are generally kept in /var/log or /var/log/package_name and not in the package or product install tree. What a nob? There is a command ‘logrotate’; it can be installed using macports. It needs a a configuration file. Continue reading “Log Rotate and *NIX”

Scripting on the Mac

It’s UNIX, how hard can it be? I want to run some Macports uodate scripts regularly. To me the obvious programming language is bash, but I got excited and decided I want to notify that the script had run, and run OK.

There are two schemes, Growl and OSX Notification system. These both have language bindings.

See also the wikipedia Growl page and the Growl home page

So most roads lead to Applescript, and here is the Apple developer resource, and here is the man osascript page which allows applescript calls from the command line, and hence from within a script. I have bookmarked the applescript manual.

The shell call osascript takes a program file argument.