The Little Prince – A photo series by Matej Peljhan

Muscular dystrophy is a disorder that weakens a person’s muscles over time. Those who have the disease gradually lose the ability to do things people normally take for granted—such as walking, playing basketball, dancing and even swimming.
A photographer based in Slovenia named Matej Peljhan took photos of a 12-year-named Luka who suffers from muscular dystrophy depicting the child doing things he’s unable to because of his condition. After talking to Luka about his wish to do activities boys his age enjoy like skateboarding and swimming, the photographer created the non-digitally manipulated series which both show sense of humor and an undying spirit. Rather than use some type of digital trickery to make this dream a reality, Peljhan decided to simply use a different perspective.
Created by laying cloth and everyday objects on the ground, and photography trickery, Peljhan helped Luka turn his dreams (and drawings from a notebook) into reality.
These poignant pictures also send a message about the disorder, and remind viewers to appreciate life and live it to the fullest.
You can find larger versions of these photographs in this online gallery.
How to check if a directory exists in a shell script
To check if a directory exists and is a directory use the following syntax:
[ -d "/path/to/dir" ] && echo "Directory /path/to/dir exits." || echo "Error: Directory /path/to/dir does not exits."
The following version also check for symbolic link:
[ -d "/path/to/dir" && ! -L "/path/to/dir" ] && echo "Directory /path/to/dir exits." || echo "Error: Directory /path/to/dir exits but point to $(readlink -f /path/to/dir)."
OR
[ -d "/path/to/dir" && ! -h "/path/to/dir" ] && echo "Directory /path/to/dir exits." || echo "Error: Directory /path/to/dir exits but point to $(readlink -f /path/to/dir)."
Finally, you can use the traditional if..else..fi:
if [ -d "/path/to/dir" ] then echo "Directory /path/to/dir exits." else echo "Error: Directory /path/to/dir does not exits." fi
Shell script examples to see if a ${directory} exists or not
#!/bin/bash dir="$1" [ $# -eq 0 ] && { echo "Usage: $0 dir-name"; exit 1; } if [ -d "$dir" -a ! -h "$dir" ] then echo "$dir found and setting up new Apache/Lighttpd/Nginx jail, please wait..." # __WWWJailSetup "cyberciti.biz" "setup" else echo "Error: $dir not found or is symlink to $(readlink -f ${dir})." fi
In this example, create directories if does not exits:
# Purpose: Setup jail and copy files # Category : Core # Override : No # Parameter(s) : d => domain name # action => setup or update __WWWJailSetup(){ local d="$1" local action="${2:setup}" # setup or update??? local index="$d
$d
" # default index.html local J="$(_getJailRoot $d)/$d" # our sweet home local _i="" [ "$action" == "setup" ] && echo "* Init jail config at $J..." || echo "* Updating jail init config at $J..." __init_domain_config "$d" [ "$action" == "setup" ] && echo "* Setting up jail at $J..." || echo "* Updating jail at $J..." [ ! -d "$J" ] && $_mkdir -p "$J" for _i in $J/{etc,tmp,usr,var,home,dev,bin,lib64} do [ ! -d "$_i" ] && $_mkdir -p "$_i" done for _i in $_lighttpd_webalizer_base/$d/stats/{dump,out} do [ ! -d "$_i" ] && $_mkdir -p "$_i" done for _i in $_lighttpd_webalizer_prepost_base/$d/{pre.d,post.d} do [ ! -d "$_i" ] && $_mkdir -p "$_i" done ## truncated }
Summary
Use the following to check file/directory types and compare values:
- -L "FILE" : FILE exists and is a symbolic link (same as -h)
- -h "FILE" : FILE exists and is a symbolic link (same as -L)
- -d "FILE" : FILE exists and is a directory
- -w "FILE" : FILE exists and write permission is granted
Liberty University Chancellor: ‘We’re Trying To Create Tens of Thousands of Kirk Camerons’
Kirk Cameron partnering with Liberty University for film about human suffering.
(To read the story, click image or here; For a related video, click herehttp://christiannightmares.tumblr.com/post/41804738378/an-awesomely-awful-christian-pro-abstinence-sex)
Related articles
- Film Partnership Between Liberty University and Kirk Cameron Announced (prweb.com)
- Kirk Cameron Returns to Liberty University Campus, Offers Advice to Film Students (virtual-strategy.com)
- Former child star Kirk Cameron tells Piers Morgan that homosexuality is ‘destructive … to civilization’ (miamiherald.typepad.com)