Tag: Software

  • Redo in “vi”

    So, I’ve known for a long time that “undo” in the vi editor can be accomplished by pressing escape, then the “u” key. But how to “redo” eluded me this morning. I tried various things before resorting to a Google search: escape, “U” (capital “u”); escape, “r”, etc. Turns out it’s the Control-R. Duh.

  • How to convert a bunch of files from Simplified Chinese into Unicode

    Converted 154 files from Chinese to Unicode today. Here’s how I ended up doing it on my OS X box: find . -name “*.cfg” -exec sh -c ‘iconv -f GBK -t UTF-8 “$1” > “../new/zh_CH/$1″‘ — {} \; lhunath‘s answer to this question on Stack Overflow was instrumental in getting the syntax right. The other…

  • iPhoto import crash

    iPhoto import crash

    This occurred mid-way through a photo import (happening at the same time as a sync operation via iTunes).  Result was no photos imported (but they were all still on the phone, so nothing lost). The phone disappeared from iPhoto, but was still present in iTunes. Console says: 4/10/12 12:18:08.983 AM com.apple.launchd.peruser.501: ([0x0-0x3e13e1].com.apple. PTPCamera[8973]) Job appears…