rulururu

post Vim & LaTeX on a mac

February 26th, 2008

Filed under: mac — zedr0n @ 9:38 pm

Since I’ve moved to mac not so long ago, I was happy that most of the apps I normally use are ported to os x.
As I’ve been writing a lot of mathematical stuff in LaTeX it soon got quite annoying constantly recompiling, closing previous Preview.app instance and opening it again so that the pdf file gets properly reloaded(on Windows dvi viewer reloaded automatically). Seems like this wasn’t only my problem as there turned out to be a pdf/dvi viewer out there with automatic reloading - Skim.

I’ve also learned about pdfsync which is quite neatly handled in Skim - just Shift-Command-Click and it opens Vim at the corresponding line in tex file, nice…

While at it, I’ve switched to MacVim because of better integration with pdfsync, along with nicer aqua interface, tab support etc…

post Cave story - multiple saves

February 21st, 2008

Filed under: mac — zedr0n @ 12:44 am

There is a very old-skool platformer style game called Doukutsu Monogatari or Cave story. You can read more about it here. It has multiple endings but the main drawback is that it has very limited save support - there is only one save slot available - which is quite similar to another old-skool game ADOM.
But it doesn’t take a super-guru to right things for this one. Here is a quick-coded bash script which adds the capability for multiple saves. It’s based on the fact that the save progress is stored in file ~/Library/Preferences/com.nakiwo.Doukutsu.plist
What is done precisely is just saving the current file to a Save directory with a description supplied by the user.

Installation:
- Download doukutsu script here
- chmod +x doukutsu in case it’s not executable
- create a directory named Saves in the directory where you put doukutsu script
- you are done

The usage is straightforward, just follow the instructions when running the script.

P.S. It will locate the Cave Story .app file on its own if it has been put in /Applications folder

ruldrurd
© quant0r.com , Designed by Stealth Settings
Entries (RSS) and Comments (RSS)