Finally I released my flashcards project. Here it is:
The signup function is the only missing piece. By the time google finds the site, it should be ready. After that, I will optimize and enhance it gradually, and based on user growth.
Get up your ass and go build your vocabulary!
Downloaded a bunch of c++ books but the files were in DAA format. Found a neat utility called daa2iso developed by some dude, but it didn’t work. The only alternative at the moment was PowerISO, a windows tool. I thought it’s time to give
wine a shot. And it worked brilliantly too.
wine (didn’t have it yet)
wine PowerISO38.exe. A window popped up, looking like a regular windows installation, went along with it, installed it in “Program Files”, not even knowing what that means in
wine. The installer complained at the end, but decided to ignore for now.
wine ~/.wine/drive_c/Program Files/PowerISO/PowerISO.exe and behold, it just worked. Located the daa file and extracted it into my usual books folder.
- Felt like it’s time for a different kind of wine, to celebrate 😉
My raid1 array with two 120G disks was getting filled up lately, so when usage reached 90% I decided it’s time to upgrade. To my great surprise prices have gone much lower than I expected: I got two 1T disks for the same price as the old 120G disks — $100 apiece.
It’s been a long time since I setup my raid1 array so I had to read up on
man mdadm and
- Created a full backup of the old disks:
cd /storage; tar cvpf disk200/raid1.tar raid1
- Powered down the machine, replaced the disks, checked in BIOS they are recognized correctly.
- Started up the machine, created a single primary partition on the two new disks with
cfdisk, set the filesystem size to
1000G. This left a few hundred MB free space at the end of the disk, a safe thing to do in my experience.
- Created the raid1 md device:
mdadm --create /dev/md0 -l1 -n2 /dev/sdc1 /dev/sde1
- The resyncing of two 1T disks takes time. An easy way to monitor the progress is with
watch cat /proc/mdstat. It was more convenient for me to have a notification email sent to my mobile phone with
while cat /proc/mdstat | grep resync; do sleep 60; done; cat /proc/mdstat | mail -s mdstat email@example.com
- Once the resync is done I created filesystem on it:
/etc/fstab filesystems are identified by UUID, not by traditional names like
/dev/md0. To follow this new practice I updated the UUID in
/etc/fstab for the partition according to the output of
mount -a complained about
/dev/disk/by-uuid/... missing. This is fixed by restarting udev:
- Mounted the partition with
mount -a, and restored the files:
cd /storage; tar xvpf disk200/raid1.tar
I’ve installed Plone in Ubuntu dozens of times. Ever since hoary (possibly even from warty), this was a matter of
apt-get install plone-site. Something is broken in hardy because this step doesn’t create a Zope instance (the container instance for Plone) but it should. That is, the directories
/var/lib/zope2.10/instance/ were both empty, so when starting zope, it would complain about no instances, and obviously Zope cannot work without files. I could fix this and get going with the following steps.
dzhandle -z2.9 make-instance plone-site -m manual
dzhandle -z2.9 add-product plone-site CMFPlone
The above steps will generate a brand new Zope instance in
/var/lib/zope2.9/instance/plone-site. The configuration file for the instance will be in
/etc/zope2.9/plone-site/zope.conf, you might want to change
HTTPPORT from 9673 to 8081 (the Ubuntu default).
1. cd to the directory that you want to archive
find . -xdev -print0 | cpio -oa0V | gzip > path_to_save.cpio.gz
Restore from archive:
1. cd to the directory into which you want to restore the files
gzip -cd path_to_save.cpio.gz | cpio -imV
See? Easy as abc 😉
Sometimes the mouse wheel just doesn’t work for me in vmware. Then I remembered I used to have to add some options for that in the X11 configuration file about 5-10 years ago. In modern native installations no such tricks should be needed, but I guess things are different when you run in vmware. So in case you ever need, the magic lines to put in
Option “Protocol” “IMPS/2”
Option “ZAxisMapping” “4 5”