Archive for the 'Uncategorized' Category

Perf tool on debian with experimental kernel.

June 13, 2013

If you are running an experimental debian kernel the perf tool isn’t working out of the box. If you run the perf command it will tell you to install the package linux-tools-<kernel-version> which is nonexisting for experimental kernels. The solution is to manually install the perf tool.

Compiling perf is straightforward, use apt-get source <kernel-package> to download the source for your running kernel. Then goto the directory tools/perf and do a make install.

 

Advertisements

Compiling boost thread using mingw64

March 5, 2011

A short note on crosscompiling boost for 64bit windows using mingw64.

First get a build of mingw64 eg. from

http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/

I did use mingw-w64-bin_i686-linux_20110206.tar.bz2 since the build system is 32bit linux.

Get a recent version of the boost libraries.
Update the path to reflect where mingw64 was put.
Unpack boost and add a corresponding definition of gcc to tools/build/v2/user-config.jam
Mine was

using gcc : mingw64 : x86_64-w64-mingw32-g++ : 4.6 ;

Then build boost with bjam.

./bootstrap.sh
./bjam --layout=versioned --tolset=gcc-mingw64 define=BOOST_USE_WINDOWS_H address-model=64 threadapi=win32 target-os=windows --with-thread stage

The define=BOOST_USE_WINDOWS_H is crucial else the compilation will fail.

Baconpandekager

November 20, 2009

Ingredienser:

  • Baconmel af en pakke bacon
  • 4 æg
  • 5 dl mælk
  • 5 dl mel
  • ½ tsk kardemomme
  • ½ tsk vaniljesukker
  • 2 tsk sukker
  • ½ tsk salt
  • 3 spsk olie
  • Revet appelsinskal
  • Lidt øl

Fremgangsmåde:

Alle ingredienser undtagen mel blandes sammen. Melet røres langsomt i dejen. Dejen sættes i køleskabet i 15 minutter. Dernæst tilberedes pandekagerne, det er ikke nødvendigt at bruge olie mellem stegningerne da der er olie i dejen. Serveres med vaniljeis.

Resultat:

Billede af dejen!

Det færdige resultat smager awesome!

Baconmel

November 20, 2009

I diverse retter, som fx pandekager har man altid brug for bacon, men desværre passer baconstykker ikke så godt hertil. Derfor er jeg blevet motiveret til at lave baconmel.

Ingredienser: Bacon.

Fremgangsmåde:

  • Baconen steges på en pande.
  • Det stegte bacon finhakkes til det er finthakket nok!

Resultat: