2013-03-24

Graviton has been finished

I'm a bit late with this post, as finishing Graviton and my paper had happened a few weeks ago already... It doesn't matter though, here are some of my results.

New features include:

  1. Fourth order Runge-Kutta integrator
  2. 3D mathematics instead of 2D
  3. Minimal mode with no graphics
  4. Orbit display
  5. More bodies and accurate data from HORIZONS in the default solar_system file
  6. A user module and a primitive event system, where the user may override various event handlers for information extraction and custom reports
  7. Enhanced reports (ETA calculation, important dates (beginning, end), timers, extensible via the user module)
  8. Improved control over the simulation (via CLI arguments)
  9. Tested saving methods

In addition to all these new features, I've ran a lot of test for an astronomy project of mine. One of the tests I've ran was simulating from the year 2006, 23 years, into the year 2029, in order to compare my results (the distance between Earth and the asteroid 99942 Apophis) with NASA's. In short, it seems like my work is pretty solid, as I've my results deviate from NASA's only by 0.505%.

The code is a complete mess, though, and has to be reworked. I blame Python.

2013-02-19

Playing with Box2D and SFML

The project stack will soon overflow... But this is so much fun!

2013-02-16

How to: Steam on Linux (Debian 7.0)

Today I've successfully, and without much trouble, installed Steam on my Debian Wheezy PC.

This goes without saying, but honestly, I never thought I'd see the day. Running Half Life nice and smooth... On Linux. Wow.

Although there were really no actual problems with the installation process, there were some annoyances, so I've decided to compile a short list of steps that you should follow in order to use Steam on Debian. Please note that these only solve problems which I myself have encountered, and that they are usually solved for you if you use Ubuntu.

The list is quite short, but I'll keep adding more items to it. Make sure you read through all of them though, because they might not be in the order of occurrence!

  1. Download: steam_latest.deb
  2. Installation

    After you have downloaded "steam_latest.deb" into your ~/Downloads directory or wherever, open up a terminal, execute cd ~/Downloads and then just invoke the Debian package manager in order to install it: sudo dpkg -i steam_latest.deb.

  3. Missing dependencies

    The installation will probably fail, and complain about missing dependencies.
    In order to fix issues like this one, not just with Steam but with any package you're installing manually, run sudo apt-get -f install.

  4. Wrong architecture

    It's quite possible that you're running a x64 (64 bit) system, like I am. The current Steam Debian package only supports the x86 (32 bit), and you will have to enable i386 (fancy Intel name for 32 bit) packages. Don't worry, Linux handles both architectures flawlessly, and your 64 bit programs keep using 64 bit libraries.

    To add the i386 arch execute: sudo dpkg --add-architecture i386 && sudo apt-get update and wait for it to finish. You should now be able to install Steam.

  5. Missing GLIBC_2.5

    This is quite an annoying one, that I encountered just after the installation.

    1. cd
    2. mkdir steamlibs
    3. nano .bashrc
      Add the following lines:
      STEAMLIBS=${HOME}/steamlib
      LD_LIBRARY_PATH=${STEAMLIBS}
      
      export STEAMLIBS
      export LD_LIBRARY_PATH
      
    4. wget http://security.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.15-0ubuntu10.2_i386.deb
    5. dpkg -x libc6_2.15-0ubuntu10.2_i386.deb /tmp/libc/
    6. mv /tmp/libc/lib/i386-linux-gnu/* ${STEAMLIBS}
  6. No sound in game

    When I first started Half Life, it was muted. I'm using ALSA as the sound server, however, so this fix will not work for PulseAudio users (who shouldn't have the problem in the first place).

    1. Quit Steam.
    2. Execute sudo nano /usr/bin/steam.
    3. Get to the bottom of the page, and add export SDL_AUDIODRIVER=alsa before the last comment (line starting with a '#').
    4. Run Steam again and your games should have audio.
  7. Running Steam from a desktop launcher (at least in Xfce)
    1. Right click on desktop
    2. Create launcher...
    3. Start writing "Steam" into the name box, and then select it from the suggestion.
    4. Create

    Try to run it! I doesn't work, does it? Well, neither did mine, but I've figured out how to fix it:

    1. sudo mousepad /usr/bin/steam
    2. After the line that begins with a '#!' (shebang) add:
      STEAMLIBS=${HOME}/steamlib
      LD_LIBRARY_PATH=${STEAMLIBS}
      
      export STEAMLIBS
      export LD_LIBRARY_PATH
      
    3. Completely quit Steam.
    4. Try your new launcher.
    5. Xfce is a nice and minimal desktop environment for your Linux system. I suggest you try it.

  8. Uninstalling Steam

    If it so happens that you don't want Steam on your computer anymore, you can uninstall it with sudo dpkg -r steam. This will not remove the previously added i386 arch, to do so, execute sudo dpkg --remove-architecture i386.

F.A.Q.

  1. Q: does Steam run background processes even after I quit it? A: No! If you want to check, do this: ps -e | grep steam.

2013-02-07

Distro-hopping

For the past few days I've mostly been fiddling around various Linux distributions. I've also gained a new hobby: collecting obscure (or just not well known) operating systems and playing with them in a virtual machine (I'm using Virtualbox).

I haven't tried out many distros though, as I've settled with vanilla Debian quickly.

Currently running 7.0 with Xfce.