Posted on December 17, 2009, 13:54, by stefan, under
misc.
Just copying a VirtualBox .vdi file and the opening it results in the error:
Cannot register the hard disk ‘myhd.vdi’ with UUID {ABCD} because a hard disk ‘myhd2.vdi’ with UUID {ABCD} already exists in the media registry (‘path/VirtualBox.xml’).
The solution is to generate a new UUID for the copy. This is done using:
VBoxManage internalcommands setvdiuuid myhd2.vdi
Posted on December 10, 2009, 12:31, by stefan, under
coding,
web.
Getting the value of a the currently selected radio button may be done in a couple of ways. This is one approach using YUI 3.
Here is the HTML:
<input type="radio" name="myoptions" value="one"> First
<input type="radio" name="myoptions" value="two"> Second
<input type="radio" name="myoptions" value="three"> Third
Get the currently selected value using only one line of code:
var value = Y.one(‘[name=myoptions]:checked’).get(‘value’);
Unfortunately, this does [...]