So sweet… Even more when you hear rumors claiming Billy was just there sitting and watching his evil deeds rising up.
Hope at least the machine carrying Li Ning around was running a real operating system…
More hilarious detailed info here.
So sweet… Even more when you hear rumors claiming Billy was just there sitting and watching his evil deeds rising up.
Hope at least the machine carrying Li Ning around was running a real operating system…
More hilarious detailed info here.
A quick reference on how to debug Python applications (this is of course specific to shell environment, no IDEs involved).
Python features a debugging module called, unsurprisingly, pdb (Python DeBugger).
To activate the debugger add this at the beginning of your program:
import pdb
You can then set one or more break points by placing the following text:
pdb.set_trace()
Start the program as usual, once the break point is reached the interpreter will stop and wait for your input, you can then enter:
Please note that:
Happy debugging.
Some days ago i performed a dist-upgrade command on a Debian Etch server with two disks RAID1+LVM and it ended up with a new 2.6.25 factory kernel.
After a reboot it was stuck in BusyBox unable to mount the root filesystem…
I then rebooted and selected the previous kernel, same story (failsafe kernels as well)…
I realized (thanks Linux for being so verbose) there was a problem in creating the /dev/mapper directory and therefore no chance to be able to mount my raid.
A deeper inspection revealed that the mdadm script in BusyBox to mount the raid used the command “mkdir –parent” but long arguments have been deprecated in recent versions of BusyBox. Even worse: the correct syntax would be “–parents” (they even lost the trailing “s”), shame on you Debian mantainers.
I therefore had to manually extract my initrd (which is a gzipped cpio archive), edit the mdadm script and recreate the initrd with mkinitramfs.
It worked but i’m quite disappointed i haven’t found yet an “official” clean solution about it.
CentOS 2 – 0 Debian