Category: General

Memory-mapped files using the boost library 12

Memory-mapped files using the boost library

The objective of memory mapping files is to increase I/O performance. Memory mapping a file creates a pointer to a segment in virtual memory and the actual loading is performed by the Operating System...

Measuring runtime in milliseconds using the C++ 11 chrono library 1

Measuring runtime in milliseconds using the C++ 11 chrono library

I have been playing around with the new C++ 11 standard. It includes a nice new library called chrono which includes some useful clocks and timers. Below is an example of some macros you...

Getting started with Google Test (GTest) on Ubuntu 40

Getting started with Google Test (GTest) on Ubuntu

Google test is a framework for writing C++ unit tests. In this short post, I explain how to set it up in Ubuntu. Start by installing the gtest development package: sudo apt-get install libgtest-devsudo...

Modell av hamar domkirke - del 1 3

Gjenskapingen av Hamar domkirke – Del 2

Da var faget Eksperter i Team over og jeg og resten av gruppa mi er stolte over å presentere resultatet av vårt arbeid. Som sagt i et tidligere blogginnlegg gikk oppgaven vår ut på...

Modell av hamar domkirke - del 1 5

Gjenskapingen av Hamar domkirke – Del 1

I det obligatoriske faget Eksperter i Team har jeg og en gruppe på 3 andre valgt oppgaven med å gjenskape Hamar domkirke i virtuell virkelighet. Det vil si at vi skal modellere den i...

Pseudo-random numbers and sampling from probability distributions 12

Pseudo-random numbers and sampling from probability distributions

One often needs a source of random numbers for use in stochastic simulations. Since a computer is deterministic, it can’t generate real random numbers, unless one happen to have a quantum random generator at...

Fix for HTTP Error when uploading images in WordPress 2.8 4

Fix for HTTP Error when uploading images in WordPress 2.8

When installing this wordpress blog I encountered a problem when trying to upload files. When googling the problem I found that some had been trying to mess around with the .htaccess file. I tried...