jump to navigation

Small fixes January 15, 2010

Posted by Elfi in Computers.
trackback
  • The live-coding environment Fluxus did not compile on my Arch box, but it was quick to fix it. Compiling fluxus 0.16rc3 against drscheme 4.2.3 and g++ 4.4.2 goes on as follows:
    1. Grab the latest source fluxus-0.16rc3.tar.gz,
      dive into the directory
      src/fluxus-0.16rc3/libfluxus/src/
      and add the line
      #include <stdio.h>
      to these files:

      • OBJPrimitiveIO.cpp
      • SkinningPrimFunc.cpp
      • SkinWeightsToVertColsPrimFunc.cpp
      • GenSkinWeightsPrimFunc.cpp
      • GLSLShader.cpp
      • PolyPrimitive.cpp
    2. makepkg -e
    3. pacman -U fluxus-0.16rc3-1-i686.pkg.tar.gz
  • Easy backup of regular files I have created/modified during last few days. The sample shows how to limit the size and exclude on the hidden files and/or an EXCLUDE pattern.

    find /home/elf \
      \( ! -regex ".*/$EXCLUDE/.*" \) \
      \( ! -regex '.*/\..*' \) \
      -type f \
      -mtime -$DAYS \
      -size -$SIZE \
      -exec cp {} //media/usbstick/daily-backups/$DAYDIR/ \;

    .. and just in case, a list of those files and their respective and total size

    find /home/elf \
      \( ! -regex ".*/$EXCLUDE/.*" \) \
      \( ! -regex '.*/\..*' \) \
      -type f \
      -mtime -$DAYS \
      -size -$SIZE \
    | tr '\n' '\0' \
    | xargs -0 du -ch
Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s