December 30

Time Machine Restorer

I recently switched from OSx86 back to Linux. In OS X I had Time Machine backing up to my other drive. After some investigation into the format of backups it uses, I decided to just nuke the main drive and write up a script to restore from my TM backup drive. Here it is. Change the BACKUP and TO constants, and call the script with the path to whatever file/directory you want to restore from the drive. It will go through, restore files, and find the data that any (invalid in Linux) hardlinks point to (which is how Time Machine does incremential backups; by hardlinking to the latest if nothing has changed), and copy them over, recursively.

Source

Example usage:

cd /media/backup/Backups.backupdb/localhost/Latest/OS X/Users/Alex
sudo python restore.py Music
02:03 PM | 0 Comments
December 01

A Japanese programming language

Just toying with this idea, exploring how programming languages could translate across human languages.

Declarationnumber := 1numberは1
Assignmentnumber = 1numberが1
Statementprint "Hello, world!"「Hello, World!」をprint
Function callprint("1", "2", "3")「1」、「2」、「3」をprint
AttributeX.AXのA
Attr. Decl.X.A := YXのAはY
Attr. AssignX.A = YXのAがY
Func. Decl.
func Z(x, y) {
    print x;
    print y;
}
Z(x、y)は:
  xをprint、
  yをprint。

Thoughts:

  • Katakana, Romaji, and Kanji for identifiers.
  • Hiragana, as particles for language syntax.
  • Pretty much looks and acts like a postfix language.
  • Probably wouldn’t want this to be statically typed.
  • Switching between the writing systems would probably be a bitch.
  • This is just a braindump, not to be taken seriously. Just a neat concept.
12:14 AM | 0 Comments
November 28

10:10 PM | 0 Comments
August 23

10:47 AM | 0 Comments
August 05

Super Mario AI. Awesome.

02:56 PM | 0 Comments
Next → Page 1 of 10