VirtualTam's bookmarks

  1. :-)

    • An enhanced interactive Python shell.
    • A decoupled two-process communication model, which allows for multiple clients to connect to a computation kernel, most notably the web-based notebook
    • An architecture for interactive parallel computing.

    via http://sametmax.com/debugger-en-python-les-bases-de-pdb/

  2. Archive: https://web.archive.org/web/20130502090106/http://www.morleypedals.com/cwaes.pdf

    Done: short-circuit the 560K resistor... everything's gone fuzzy! TODO: replace the resistor

  3. A web based audio/video streaming application and file manager

  4.  1#!/bin/bash
     2# Check if a file needs to be downloaded
     3# Useful iff there is no checksum available to check a local file
     4url=http://test-url.com
     5
     6dl=1
     7if [[ -f $file_path ]]; then
     8    local_size=$(ls -l $file_path | awk '{print $5}')
     9    remote_size=$(wget --spider $url 2>&1 | awk '/Length/ {print $2}')
    10
    11    if [[ $local_size -eq $remote_size ]]; then
    12        echo "The file was previously downloaded"
    13        dl=0
    14    else
    15        echo "Corrupted file found, re-downloading..."
    16        rm -f $file_path
    17    fi
    18else
    19    echo "Downloading file..."
    20fi
    21
    22[[ $dl -eq 1 ]] && wget $url -O $file_path