Wiki

libtinfo.so on Void Linux

GHC-7.8.4 depends on libtinfo.so, which is apparently bundled into libncurses.so on Void Linux. Problems related to this can be fixed by symlinking libncurses to libtinfo:

cd /usr/lib; sudo ln -s libncurses.so.5.9 libtinfo.so.5


Fixing Hip Impingment

See comment about existing conditions.

https://www.reddit.com/r/Fitness/comments/3dqy8d/a_brief_guide_to_preventing_hip_impingement/


24 bit truecolor in the terminal and vim.


How to learn the Haskell Foreign Function Interface (FFI):

This post from codygman on the haskell reddit:

If you want to try writing some bindings yourself to mp4v2, here are some resources:

http://book.realworldhaskell.org/read/interfacing-with-c-the-ffi.html

https://en.wikibooks.org/wiki/Haskell/FFI

The only part that I didn't find immediately obvious was the need to sometimes block the Haskell RTS.

example in mysql library

https://ghc.haskell.org/trac/ghc/wiki/Commentary/Rts/Signals

Here's the effect of not blocking the Haskell RTS in FFI code:

http://stackoverflow.com/questions/15226806/importing-c-delay-function-into-haskell-using-ffi

Some more resources on Haskell/FFI:

https://wiki.haskell.org/IO_inside#Interfacing_with_C.2FC.2B.2B_and_foreign_libraries_.28under_development.29

Haskell ffi basics presentation


Dual Booting DragonflyBSD

My grub confiog with Debian as the first partition and DragonflyBSD on the second. Both use dm-crypt/luks full disk encrytpion:

menuentry "DragonflyBSD" {
	set root='(hd0, 3)'
	chainloader +1 (hd0,2)
}

I wish I could remember how I figured this out.