Blog posts

Blog full archive

Installation and configuration of EAGLE 7 licencing server

File download

The links on the cadsoft page were broken when I did this. The licencing setup files were found at:

ftp://ftp.cadsoft.de/eagle/licensing/7.0.0/

The later version directories only contain the lichostid files (also included in the full install). You do need this for the hostid – it doesn’t just work off the MAC address!

Install (Windows)

Put the unzipped file tree somewhere convenient – on REDACTED it’s just stuck in C:

Read more...

A nice way of configuring linux system-wide login notifications using PAM

There are several ways to have a linux box email you when someone logs in to it. Most of these use a script in either the local profile files (for individual users) or the system-wide profile (and/or in sshrc). Another nice way is to use the pam authentication system to do the job. A setup is given at:

http://blog.stalkr.net/2010/11/login-notifications-pamexec-scripting.html

Brief setup

Assuming Debian here.

Make sure the system is set up to talk to an email server and has some way of sending emails from the command line. The script here assumes the mailx package is installed.

Read more...

Wireless problems with Ubuntu 13.10 and self-signed certificates

Ubuntu 13.10 (and possibly 13.04) seem to have a problem with self-signed certificates when authenticating to wireless radius servers (i.e. the GUPHYSICS wifi). This is discussed in a variety of places:

https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1104476

The problem seems to be that the Network Manager setup is adding the line:

system-ca-certs=true

to

/etc/NetworkManager/system-connections/GUPHYSICS

even if you tick ignore when the system asks about certs the first time. Changing the value of the setting to false seems to fix this, although there is a possibility that it might get changed back by NM. (or delete the setting entirely, which seems to have happened on this laptop. Hmmm)

Read more...

How the php array_multisort function works

The array_multisort function in php allows you to sort several arrays at the same time. How it works is:

  1. Sort first array by key value (depending on arguments)
  2. If there are any identical keys in the first array, sort these by the keys in the second array (assuming it is specified)
  3. etc.

The documentation for this isn’t particularly clear.

Test of dokuwiki mathjax plugin

(Copied from https://www.dokuwiki.org/plugin:mathjax)

NOTE that the default configuration uses $ (dollar signs) to delimit TeX formulas. This may cause trouble if you have $ characters in any pages. The default configuration also lets you escape the dollar signs, however, by changing them to ”$”. This should correct any problems you might have.

Once the plugin is installed, you can write TeX formulas in your wiki with the following syntax (by default — all delimiters are configurable):

Read more...