my email is andreas at nyback.com
Från fotoalbumet
Noel Nyback

Noel Nyback

Date: 03/10/03

nätfavoriter
Mackes sida
språk/language
Logga in

Registrera nytt konto

Begär nytt lösenord

23 Jan 2011
Mera gamla foton

Jul i västerås 2007

08 Jan 2011
Nya (gamla) foton

Alla från farmor och farfars kamera

Höst i täby 2008

Februari 2009

Gabriella 2 år

Angelicas student

April 2009

Maj 2009

Juni 2009

Juli 2009

Augusti 2009

September 2009

Oktober 2009

November 2009

December 2009

 

 

06 Nov 2010
Deleting left over raw/nef image files

My camera is set to save both a jpg and a raw nef files for every photo i take.
When i process my photos i do it on the jpg files. A lot of them gets deleted as they are not worth to keep.

When i am done there is a lot of nef files with their corresponding jpg deleted. To simply just delete all the nef files that have no corresponding jpg file i run this bash script:

for file in *.nef; do
if [ ! -e $name.jpg ]; then
rm $name.nef
fi
done

Or enhanced version to show the list of orphaned nef files and ask for confirmation:

renamexm -l *
len=${#files[*]}
i=0
while [ $i -lt $len ]; do
name=${files[$i]%\.*}
if [ ! -e "$name.jpg" ]; then
echo "$name.nef"
fi
let i++
done
read -n1 -p "Want to delete those? (y/n) "
if [[ $REPLY =~ ^[Yy]$ ]] ; then
echo
echo deleting...
i=0
while [ $i -lt $len ]; do
name=${files[$i]%\.*}
if [ ! -e "$name.jpg" ]; then
rm "$name.nef"
fi
let i++
done
else
echo
echo none deleted
fi
19 Mar 2010
skoluppgift
När jag fick nobelpriset i fred och teknik
25 Oct 2009
clean up your old files

These are handy to clean up your home folder.

To list all files older then 1 year:

 

find . -type f -mtime +356 -ls

 

To delete them:

 

find . -type f -mtime +356 | xargs rm

 

To list all empty folders:

 

find -depth -type d -empty

 

To delete all the empty folders:

 

find -depth -type d -empty -exec rmdir {} \;

 

To "touch" all files in a folder recursively:

 

find [foldername] -print0 | xargs -r0 touch

 

To list only the top name of hidden files or folders older then one year:

 

find . -maxdepth 1 -mtime +356 \( -iname ".*" \) -ls

To remove all dead links in a folder:

find -L /usr/lib/ -maxdepth 1 -type l -delete
20 Apr 2009
Bilder
Bilder från Melvins 1-års kalas.
22 Mar 2009
Bilder

jul 2007
4 små filmer bergö sommaren 2007
Andreas 40
5 systrar
Bergö
Några fler historiska

22 Nov 2008
xsane preview window broken
If the preview window is blank or corrupted in xsane: Start xsane, then open preview window. If its broken, close the main xsane window without closing the preview window first. Then restart xsane and when you open the preview window it looks fine.
31 Oct 2008
Bad picture quality in Firefox

If you experience bad quality on images inside your firefox and they look pixelated, there may be a simple solution:

View > Zoom > Zoom text only

31 Oct 2008
Många nya bilder!

Valborgsförberedelser
Valborg
Kalas hos Freddy o Marika 
Ulrika o Helena fyller år
torpet
Macke o Jennys bröllop

  |<   <   1   2   3   4   5   >   >|

Sortera efter Datum Titel Läsningar
Alternativ:
Visa artikelkarta
Visa arkiven