passwd: cannot update password file /etc/shadow

Okay.. I got my pogoplug last week and I have been playing around with it and it is now time to change the root password… so guess what happened…
bash-3.2# passwd
Changing password for root
New password:
Retype password:
passwd: cannot update password file /etc/shadow
bash-3.2#

The good news, the file system is read-only, so it was pretty simple to work around, just use mount…


bash-3.2# mount -o rw,remount /
-bash-3.2# passwd
Changing password for root
New password:
Retype password:
Password for root changed by root
-bash-3.2# mount -o ro,remount /

Reflection and COBOL

For the last couple of months I have working on Visual Studio 2010 and this include Microsoft CLR v4 and I was recently asked how to write a test that determines at runtime which CLR is being used and what assemblies it uses. I replies would use reflection. So I dropped my friend a mega simple demo… and here it is.


$set ilusing"System.Reflection"

01 myAssembly type "Assembly".
01 usedAssemblyName type "AssemblyName".

set myAssembly to type "Assembly"::"GetExecutingAssembly"

display "My exe is " myAssembly::"FullName"
display "and is using CLR " myAssembly::"ImageRuntimeVersion"
display "and is loaded from " myAssembly::"Location"
display "the initial method of this program was "
myAssembly::"EntryPoint"::"Name"

display "This assembly references -> "
perform varying usedAssemblyName
through myAssembly::"GetReferencedAssemblies"
display "-> " usedAssemblyName
end-perform

And the output of the program is:


My exe is clrver, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
and is using CLR v2.0.50727
and is loaded from d:clrver.exe
the initial method of this program was _MF_ENTRYThis assembly references ->
-> mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-> MicroFocus.COBOL.Runtime, Version=3.6.0.0, Culture=neutral,
PublicKeyToken=0412c5e0b2aaa8f0

iRiver Story – Fonts

The iRiver Story allows the user to install their own fonts, these fonts can truetype fonts (ones with the .ttf extensions).

To install the fonts, connect  your iRiver Story device via your USB cable, then select mount/drive etc..

Then browse via your explorer/finder to the font’s directory and just drag/drop/copy the .ttf to it, then disconnect.

Then goto ‘Settings/Change Fonts’, then when goto your Diary/Memo the font will have take affect.

Unfortunately I can seem to make it work for pdf files!

Sample fonts i played with are: