Categories
Archives
Blogroll
Category Archives: Programming
Neptune’s Pride Battle Calculator
I got introduced to Neptune’s Pride a little while ago by a friend… It is a simple 4X game, with small games for 8 players in each in the free ones. The game uses some simple math to calculate the outcome of battles, and since I am lazy I got tired of doing that math [...]
Also posted in JavaScript, web Tagged battle calculator, javascript, Neptunes pride, php 11 Comments
Making international characters searchable in LaTeX documents
By default LaTeX generates some international characters in a weird way when building a PDF and so on. For example, the norwegian Å will be represented as ˚A, and thus making any word containing the letter impossible to find when searching for it. This can be solved by using the package fontenc, with the parameter T1 [...]
Useful BASH-command: !!
When ever you use the terminal in Linux or OS X, and forget to add sudo in front of a command that needs the privileges, you can simply type sudo !! to run the same command with sudo. awesome. “!!” Will repeat the last issued command, and can probably be used for other useful things, [...]
Prepared Statements in Java
Her er den fantastisk lærerike videoen til Tobias som jeg lovte å legge ut på siden min, etter at han maste så lenge om det.
Neptune’s Pride Battle Calculator v0.3