Archive for the 'Everydot' Category

flickr Doomsday Clock Moves 1 minute closer to midnight

Friday, April 6th, 2012

With the announcement of 2000 firings, and the statement that 2000 firings was “a drop in the bucket“, the Union of Concerned Photographers moves the flickr Doomsday Clock one minute closer to midnight. “Every round of indiscriminate firings at Yahoo! increases the possibility of the extinction of flickr, or worse yet, the possibility flickr might be bought by Microsoft and turned into Windows Live Photos 8.”

“Downlinking” hardlinked files without unlink()ing them

Wednesday, March 28th, 2012

Do you use hard links for organizing files but still find them a bit dangerous? Here’s a bash function that will delete files only if their link count is greater than 1.

dnl() {
  err=0
  for x in "$@" ; do
    if [[ -f "$x" && `stat -f %l "$x"` -gt 1 ]] ; then
      unlink "$x" || err=1
    else
      err=1
    fi
  done

  return $err
}

One thing: this operation is not atomic — if that is important in your use case, please do not use this.

Palermo, North Dakota

Monday, February 27th, 2012


Palermo, North Dakota, originally uploaded by afiler.

Palermo, North Dakota

Monday, February 27th, 2012


Palermo, North Dakota, originally uploaded by afiler.

Palermo, North Dakota

Monday, February 27th, 2012


Palermo, North Dakota, originally uploaded by afiler.

Fillmore, North Dakota

Saturday, February 18th, 2012


Fillmore, North Dakota, originally uploaded by afiler.

Lonetree, North Dakota

Sunday, November 27th, 2011


Lonetree, North Dakota, originally uploaded by afiler.

Fort Rice, North Dakota

Sunday, November 27th, 2011


Fort Rice, North Dakota, originally uploaded by afiler.

Ryder, North Dakota

Thursday, November 24th, 2011


Ryder, North Dakota, originally uploaded by afiler.

Benedict, North Dakota

Thursday, November 24th, 2011


Benedict, North Dakota, originally uploaded by afiler.