Apple keyboard M0110A key fix

  • Posted on: 7 November 2016
Apple keyboard M0110A key fix

Recently I have bought an Apple Macintosh Plus. Everything was working except one key on the keyboard. The previous owner just glued it permanently to disguise the damage. The key in question is the "Clear" key. It is not used very frequently, that is of course if you are not a heavy user of the Calculator Application. Nevertheless I wanted a fully functional keyboard, so I decided it to fix it.

Writing single sided MSX2 floppy images on PC

  • Posted on: 2 November 2016

To create single sided disks on a PC (Windows XP) we will need a floppy drive that is connected to the FDD controller. The tests that I have done with USB floppy drive failed. It simply did not want to recognize single sided (360K) formatted floppy disks.

I still had an old computer with a copy of Windows XP on it. And actually I am writing this blog on this computer inside Chrome browser, so I guess it is still usable.

Merge permissions of Drupal roles

  • Posted on: 25 November 2015

Merge permissions from multiple Drupal roles

First specity the new role which will be the source and destination for the merge

$source_role_names = array('blogger', 'editor')
$dest_role_name = 'merged';

Fetch the rid from the names

foreach ($source_role_names as $name) {
  $rid = user_role_load_by_name($name)->rid;
  $source_role_ids[$rid] = $rid;

Create the role if necessary.