Tags » Shell

Friday I'm in Love: Beach Finds

A lovely friend invited me to her place in Newport Beach recently. We ate, drank, cycled and walked on the beach…and picked up a few souvenirs…

Happiness Project

Pieter Schelte to be completed in Rotterdam

World’s biggest vessel, the Pieter Schelte, is to be completed in the port of Rotterdam. Owned and designed by Allseas, the vessel can install and remove topsides of offshore platforms weighing up to 48,000 metric tons and jackets up to 25,000 metric tons in a single lift.

via Pennenergy

Shell

pl - check for args

Use this to check for the number of arguments when running a perl script

die &mati if ($#ARGV+1 ne 2);
my $arg0 = shift;
my $arg1 = shift;

sub mati {
  print "n";
  print "Usage $0 arg0 arg1n";
}

sh - check for args

Use this to check for the number of arguments when running a bash script

# check for 1 arg
: ${1?"Usage: $0 arg0"}

# check for 2 args
: ${2?"Usage: $0 arg0 arg1"}

# check num args
if [ $# -eq 0 ]; then
  # no arg
fi

# check len $1 is 0 or null
if [ -z "$1" ]; then
  # $1 is blank or null
fi

(200) CEM 003174

The Musée des Civilisations de l’Europe et de la Méditerranée, Marseille has the first object found which may be tagged as ‘photograph’. It is a postal card, from the beginning of the 20th century, displaying ‘Carnaval de Nice’ [1]. 69 more words

Dextral

A Dessert For all you Sweet'tarts

Last week my friends the Riddles had a hootenanny at their house, which is basically a party but significantly better. I won’t go into the details of why it’s better, but suffice it to say that a hootenanny has moonshine and a way more exciting name than “party.” Because I got into the ‘nannying mindset a few hours before the party was scheduled to start, I decided to make a little sumthin’ sumthin’ to bring along, which turned out to be a Farmer’s Market strawberry tart. 325 more words

Pastries