Skip to main content
 

Stitch 3 projections in 3 directions together

for i in $(seq 98); do v=$(printf '%05d' $i); echo Doing $v; montage -mode concatenate -tile 2x info_$(print $v)_Slice_{x,y,z}_density.png info_$(echo $v)_Slice_density.png; done

 

cat info_000*_x*.png | ffmpeg -framerate 10 -i - -c:v libvpx-vp9 -pix_fmt yuva420p -lossless 1 info_Slice_x_density.avi

 

Extract figures + tables from latex file:

\usepackage[active,tightpage,graphics,floats]{preview}
\renewcommand\caption[1]{}
\PreviewBorder=0pt\relax

 

A Package in a league of its own: <code>Helm</code> http://tuhdo.github.io/helm-intro.html#sec-7

 

My .emacs http://home.thep.lu.se/~karlf/emacs.html#sec-7-14

Useful info about .emacs configuration file

 

Making an AirPlay receiver from a Raspberry Pi – Chickens in Envelopes http://www.chickensinenvelopes.net/2016/01/raspberry-pi-airplay-receiver

 
 
 

Automatically open remote files in local emacs – Andy Skelton on WordPress https://andy.wordpress.com/2013/01/03/automatic-emacsclient

 

Use modern Fortran

1 min read

Here are some links about using modern Fortran:

  1. "Object Oriented Programming with Fortran 2003", from pgroup.com. They wrote 4 very good tutorial for a comprehensive dive-in into modern Fortran developping, especially focused on OOP programmation
    1. Object Oriented Programming with Fortran 2003 Part 1: Code Reusability
    2. Object Oriented Programming with Fortran 2003 Part 2: Data Polymorphism
    3. Object-Oriented Programming in Fortran 2003 Part 3: Parameterized Derived Types
    4. Object-Oriented Programming in Fortran 2003 Part 4: User-Defined Derived Type Input/Output
    5. and also Fortran Array Attributes: Pointer and Allocatable, Contiguous and Target that explains why you should use 'allocatable' instead of 'pointer' whenever it's possible.
  2. "Fortran Best Practices", a sort of cook-book to prevent bad coding practices in Fortran. http://www.fortran90.org/src/best-practices.html