Scripting

Start/Stop script for a prosess run as another user

#!/bin/sh # rc.flexlm – Init.d start/stop script for the FlexLM License Manager # Variables: LM_DIR=”/usr/local/matlab71/etc” LM_BIN=”lmgrd” PROG_BIN=”$LM_DIR/glnx86/$LM_BIN” LICENSE_FILE=”$LM_DIR/license.dat” RUN_AS=flexlm LOG_FILE=”/var/log/flexlm.log” PROG_ARGS=”-c $LICENSE_FILE -l $LOG_FILE” # Sleep time for restart. SLEEP=1 start() { echo -n “Starting FlexLM License Manager ($LM_BIN): ” # already running? PID=$(pidof -s $PROG_BIN) if [ -z $PID ]; then # Initialize log […]

Read More
Photo etc

Nikon and capture image function from remote PC

I just figured out another nifty feature! The D70 has two USB connection modes, “mass storage” where the camera pretends to be an external hard drive, and PTP, which is an industry standard camera-computer USB protocol. Using PTP, it does not seem possible to download the camera contents with gphoto2, as I had with my […]

Read More
Windows

dcraw examples

dcraw is a linux/Windows command line tool. It can convert RAW-files and that does also include Nikons NEF-files. Raw photo decoder “dcraw” v8.73 by Dave Coffin, dcoffin a cybercom o net Usage: dcraw [OPTION]… [FILE]… -v Print verbose messages -c Write image data to standard output -e Extract embedded thumbnail image -i Identify files without […]

Read More
Linux

Profiles in Gentoo

Supported profiles You can view the list of profiles on your architecture officially supported by Gentoo developers when you emerge eselect and then run the following command:

Read More