Blog changeover notice
5 months ago
Searching the Answer to Life, the Universe and Everything.
EXT2-fs error (device sda6):
ext2_new_blocks: Allocating block in system zone - blocks from 35586561, length 1
No space left on device.
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 92G 6.9G 81G 8% /
tmpfs 1.5G 0 1.5G 0% /lib/init/rw
varrun 1.5G 120K 1.5G 1% /var/run
varlock 1.5G 0 1.5G 0% /var/lock
udev 1.5G 152K 1.5G 1% /dev
tmpfs 1.5G 832K 1.5G 1% /dev/shm
lrm 1.5G 2.2M 1.5G 1% /lib/modules/2.6.28-16-generic/volatile
/dev/sda5 184G 139G 36G 80% /home
/dev/sda6 16T 16T 0 100% /mnt/media
/dev/sda1 489G 258G 231G 53% /media/disk
name@gollum:/mnt/media$ du -hs name
du: cannot access `name/.gimp-2.6/.idlerc': Stale NFS file handle
du: cannot access `name/.gimp-2.6/Anwendungsdaten': Stale NFS file handle
du: cannot access `name/.gimp-2.6/AppData/.idlerc': Stale NFS file handle
du: cannot access `name/.gimp-2.6/AppData/Anwendungsdaten': Stale NFS file handle
du: cannot access `name/.idlerc': Stale NFS file handle
du: cannot access `name/Anwendungsdaten': Stale NFS file handle
du: cannot access `name/AppData/.gimp-2.6/.idlerc': Stale NFS file handle
du: cannot access `name/AppData/.gimp-2.6/Anwendungsdaten': Stale NFS file handle
du: cannot access `name/AppData/.idlerc': Stale NFS file handle
du: cannot access `name/AppData/Anwendungsdaten': Stale NFS file handle
19T name
name@gollum:/mnt/media$ du -hs lost+found
2.0T lost+found
Python 2.x:--- map_test.py (original)
+++ map_test.py (refactored)
@@ -1,1 +1,1 @@
-map(None, [1, 2, 3], [1, 2, 3, 4])
+list(map(None, [1, 2, 3], [1, 2, 3, 4]))
Python 3.x:>>> map(None, [1, 2, 3], [1, 2, 3, 4])
[(1, 1), (2, 2), (3, 3), (None, 4)]
>>> list(map(None, [1, 2, 3], [1, 2, 3, 4]))
Traceback (most recent call last):
File "", line 1, in
TypeError: 'NoneType' object is not callable
>>> list(map(lambda *a: a, [1, 2, 3], [1, 2, 3, 4]))
[(1, 1), (2, 2), (3, 3)]
>>> list(map(lambda *a: a,
... *zip(*itertools.zip_longest([1, 2, 3], [1, 2, 3, 4]))))
[(1, 1), (2, 2), (3, 3), (None, 4)]