Category: Compatibility

Recently, I’ve been playing Magic the Gathering after having last played it in 1998. I heard about this program called ‘cockatrice’ to test my decks, but couldn’t compile it on my Xubuntu 13.10 desktop. Finally I found out I could do it with the ‘clang’ compiler.

Here’s how to compile and install it:

Simply open a terminal (Ctrl + Alt + T) and copy a execute each command:

If you need the cards list or Windows/Mac binaries, go to Woogerworks.

A thing that makes a programmer produce faster is assigning tasks to shortcut keys.

Qliner Hotkeys

Qliner Hotkeys

I’ve always relied upon Qliner Hotkeys ( software to do this.

Unfortunately, Qliner Hotkeys doesn’t work on 64 bit systems and doesn’t seem to be updated anymore.

Fortunately, this is easy to solve:

  1. Download Qliner Hotkeys ( This article assumes the latest version is 2.0.1
  2. Open the installed hotkeys.exe file in your favorite hex editor
  3. At offset 0x1018 ($1018 if you prefer this notation :D), there should be a byte with the value ‘0x01’. Change it to ‘0x03’
  4. Reboot. Everything should be ok.

What we did here was adding a flag (00000001 -> 00000011) to tell the executable to load 64 bit libraries instead of 32 bit ones, when needed.

Have fun automating everything with your keyboard. 😉

Addendum (for those who never used a hex editor)

First download a hex editor at

Using the XVI32 program open hotkeys.exe and go to offset 0x1018

Select the value (0x01) with the left mouse button

Write ‘0’, ‘3’ using the keyboard

Save the file (Ctrl + S). If you get an error saving it is because you are editing the file under the ‘Program Files’ directory. First make a copy of the hotkeys.exe file into the desktop. Edit this file. Then copy back the file into the ‘Program Files\QLiner’ directory.

Editing hotkeys.exe

Editing hotkeys.exe