December 27th, 2007
A few friends of mine running Vista have had troubles installing the NVIDIA hotfix described in KB940105. The hotfix is downloadable as Windows6.0-KB940105-x86.msu and can be installed using the following steps:
Unpack the hotfix
expand -f:* "Windows6.0-KB940105-x86.msu" %TEMP%
Apply the hotfix (you will be prompted about whether to allow or not)
pkgmgr.exe /n:%TEMP%Windows6.0-KB940105-x86.xml
Posted in Writing | No Comments »
November 13th, 2007
If you’re anything like me, you heavily rely on splitting things up. Even the simplest application needs to be separated into individual files for functions, database calls and user interface. The files are usually named and placed so that they are easily accessible for the index file and inconvenient to find for the potential attacker.
If the attacker where to reveal their path it would not necessarily pose a serious threat to the application’s security, assuming executing the individual file on its own does not give away any useful debugging information. To avoid helping people exploit your applications you may consider to turn off the standard PHP behaviour of throwing out all possible information as soon as something goes wrong: Either set “error_reporting†to “0†in php.ini or through your .htaccess-file.
Additionally you might consider isolating your files from even executing on their own. The easy way to do this is to:
define a function in the main file (index.php) only allow execution of additional files if the defined function is able to execute
index.php
<?php function LoadedCorrectly() { return true; } ?>
database.php
<?php LoadedCorrectly() or die(); ?>
Posted in Writing | No Comments »
October 14th, 2007
A close friend of mine recently visited Paris, France equipped with his brand new Nikon D40.
![[image]](http://mowser.com/img?url=http%3A%2F%2Ffarm3.static.flickr.com%2F2035%2F1560274098_0adcd04e3d.jpg%3Fv%3D0)
![[image]](http://mowser.com/img?url=http%3A%2F%2Ffarm3.static.flickr.com%2F2353%2F1560261572_515910e517.jpg%3Fv%3D0)
Posted in Writing | 2 Comments »
October 7th, 2007
Running games such as Quake III, Enemy Territory or Return To Castle Wolfenstein on Linux will sometimes fail to initialize sound. After modifying a generic fix for this problem I wrote this:
APP="${1}.x86"
echo "${APP} 0 0 disable" > /proc/asound/card0/pcm0c/oss
echo "${APP} 0 0 direct" > /proc/asound/card0/pcm0p/oss
echo "${APP} 0 0 disable" > /proc/asound/card0/pcm1c/oss
To use it, simply run the script with the game binary’s name as an argument:
# Fix sound for RTCW single player
sh sound-fix.sh wolfsp
# Fix sound for Enemy Territory
sh sound-fix.sh et
Posted in Writing | 1 Comment »
September 30th, 2007
I think I’ve finally figured what I want to do for the rest of my life. My humble dream is to get a Master of Science degree in Chemical Engineering, probably at Lund university or Chalmers (Gothenburg).
Some fields I think would be very fun to research:
Bio-fuel: Creating more efficient production methods and cheaper ways to “upgrade” the gas. Nuclear waste management: How to dispose of nuclear waste as safe and reliable as possible. Chemical computing: Initial attempts of creating a computer made out of chemicals has already been done successfully. In the future computers may consist of chemicals replacing the electronic grinds used to perform calculations today. Hydrogen-fuel: Better methods of extracting hydrogen for fuel-cells and engines.
Posted in Writing | No Comments »
September 19th, 2007
Gmail said: You are currently using 666 MB (22%) of your 2902 MB.
Posted in Twitter | No Comments »
September 15th, 2007
Finally got my terminal server back!
Posted in Twitter | No Comments »
August 27th, 2007
Finally online again after more than a week without a working computer.
Posted in Twitter | No Comments »
August 13th, 2007
Home for lunch, last week on my summerjob where I’ve mostly been lawn mowing. Mowing the same spots for six weeks is sort of frustrating.
Posted in Twitter | No Comments »
August 12th, 2007
Chatting with blogosphere-king MenZa while talking with my girlfriend on the phone.
Posted in Twitter | No Comments »
August 12th, 2007
Just put together http://nlindblad.org/projects just to realise I haven’t really done anything impressive. :(
Posted in Twitter | No Comments »
August 12th, 2007
Watching a sweet demo of what we might expect in the future from *NIX desktops: http://tinyurl.com/2ypxa4
Posted in Twitter | 2 Comments »
August 12th, 2007
Trying to blog through twitter!
Posted in Twitter | No Comments »
August 10th, 2007
Preparing to re-install my terminal server, the file system is all cluttered and APT is broken.
Posted in Twitter | No Comments »
August 8th, 2007
Trying to solve Project Euler problem 47
Posted in Twitter | No Comments »