This is the personal webiste of Sakari Bergen. I'm a fourth year Communications Engineering student at the Helsinki University of technology. Most material on this site is related to my hobbies, specifically software, electronics and music. I hope you find something useful and enjoy your visit!
Making binary packages in Linux
2008-01-16My school c++-project work was a game that uses ClanLib. I tried to show it to my friends, but it seems most distros don't have ClanLib version 0.8.0 available. The next obvious thing to do was to build a package with the libraries in it. I'm not quite sure I did it the best way possible, but at least I got the job done. This is how I did it:
Just built it like always, copied all necessary .so-files to ./libs and made a script for starting it:
(Where ./binary is your executable)
#!/bin/bash
export LD_LIBRARY_PATH=./libs
./binary
I spent quite a long time searching for examples on how to do this, but didn't find anything. Hopefully this helps someone...
CSS fix for IE
2008-01-15OK, so now the site should look about the same with IE (6 and 7) as it does with Firefox and some other browsers I've tested. Some hover-effects don't work, but this shouldn't affect the sites usability much.
Most bugs I was already familiar with, but one was new to me: the negative margin bug. You can run into it even if you don't use negative margins, but the fix is the same: Specifying three rules (that shouldn't do anything) on the buggy element:
position: relative;
zoom: 1;
margin-top: 0;
Note that "margin-top: 0;" is not part of the fix in the above mentioned article, but fixes alignment at some places (actually moving the element down, not up, as one might expect).
More handy info on CSS bugs can be found at Position Is Everything and hasLayout.
Site now "officially" up :)
2008-01-14So, after many times of thinking about making myself a website, I finally got it done. Part of the credit belongs to the Drupal community for providing a great CMS!
There's not much content on the site yet, but I'll try to get lots of stuff up in the near future. Also my theme will probably need some small modifications for it to work nice with IE.
Enjoy the site!