Friday, September 11, 2015

More Windows 10

Removing OneDrive from windows 10

http://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_files/how-to-uninstall-onedrive-completely-in-windows-10/e735a3b8-09f1-40e2-89c3-b93cf7fe6994?auth=1

Remember to clean up the registry afterwards.

Sunday, August 16, 2015

Windows 10

I've been updating my computers to windows 10.

Good:  generally works.  Particularly, on the slowest machine, seemed to work better.

Bad:  some driver issues.   bluetooth confused (thought it was USB, had to uninstall and reinstall a few time).

Bad: lots of advertising.

to get rid of stupid metro aps:

http://www.howtogeek.com/224798/how-to-uninstall-windows-10s-built-in-apps-and-how-to-reinstall-them

used the following commands

Get-AppxPackage *3dbuilder* | Remove-AppxPackage
 Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
 Get-AppxPackage *officehub* | Remove-AppxPackage
 Get-AppxPackage *skypeapp* | Remove-AppxPackage
 Get-AppxPackage *getstarted* | Remove-AppxPackage
 Get-AppxPackage *zunemusic* | Remove-AppxPackage
 Get-AppxPackage *windowsmaps* | Remove-AppxPackage
 Get-AppxPackage *solitairecollection* | Remove-AppxPackage
 Get-AppxPackage *bingfinance* | Remove-AppxPackage
 Get-AppxPackage *zunevideo* | Remove-AppxPackage
 Get-AppxPackage *bingnews* | Remove-AppxPackage
 Get-AppxPackage *onenote* | Remove-AppxPackage
 Get-AppxPackage *people* | Remove-AppxPackage
 Get-AppxPackage *windowsphone* | Remove-AppxPackage
 Get-AppxPackage *photos* | Remove-AppxPackage
 Get-AppxPackage *windowsstore* | Remove-AppxPackage
 Get-AppxPackage *bingsports* | Remove-AppxPackage
 Get-AppxPackage *soundrecorder* | Remove-AppxPackage
 Get-AppxPackage *bingweather* | Remove-AppxPackage
 Get-AppxPackage *xboxapp* | Remove-AppxPackage
Get-AppxPackage *travel* | Remove-AppxPackage
Get-AppxPackage *reading* | Remove-AppxPackage
Get-AppxPackage *camera* | Remove-AppxPackage

Friday, February 20, 2015

Bash script for Cygwin to read in camera images from SD card

#this script does a nice job of reading in DCIM cards
#run with ./get_picts title
#it creates a folder with a date if the name is defaulted, appends drive name, then title.


#!/bin/bash
thisTitle=$*
getlabel() {
$(cygpath --sysdir)/cmd /c dir ${1}:\\ | \
    tr \\r \\n | \
    sed -n -e '1s/^ Volume in drive . is //p'
}

cd /cygdrive/c/DCIM
cd ~/DCIM
for i in e f g h i j k l m
#
#DIRS=`ls -d /media/matt/*/DCIM`
#echo $DIRS
#for thisTarget in $DIRS
do

    thisTarget="/cygdrive/${i}/DCIM"
    if [ -d "$thisTarget" ]; then
        driveName=`getlabel ${i}`
        echo  $driveName
        thisDate=$(date +%y%m%d)
        #echo $thisDate
        #echo $thisTitle
        thisDate=$thisDate"_"$driveName"_"$thisTitle
        echo $thisDate
        #read -p "Press [Enter] key to start copy..."

        if [ -d "$thisTarget/101ND610" ]; then
            mv "$thisTarget/101ND610" "$thisTarget/$thisDate"
        fi
        if [ -d "$thisTarget/101D3200" ]; then
            mv "$thisTarget/101D3200" "$thisTarget/$thisDate"
        fi
        if [ -d "$thisTarget/100D3200" ]; then
            mv "$thisTarget/100D3200" "$thisTarget/$thisDate"
        fi
        mv -f $thisTarget/1* .
        for jj in $(ls -d $thisTarget/* | xargs -n1 basename)
        do
            for kk in _1 _2 _3 _4 _5 _6 _7 _8
            do
                if [ -d $jj$kk ]; then
                    echo $jj$kk
                else
                    mv -f $thisTarget/$jj  $jj$kk   
                    break
                fi
            done
        done
        rmdir $thisTarget
    fi
done
find . -type d -exec rmdir --ignore-fail-on-non-empty -p {} \;
find . -name "DSC*.JPG" -ls -exec exifautotran {} \;
find . -name "IMG*.JPG" -ls -exec exifautotran {} \;
find . -name "DSC*.JPG" -ls -exec exiftool  -d %Y.%m.%d-%H.%M.%S%%-c '-filename<$CreateDate-$filenumber.%e' {} \;
find . -name "DSC*.NEF" -ls -exec exiftool  -d %Y.%m.%d-%H.%M.%S%%-c '-filename<$CreateDate-$filenumber.%e' {} \;
find . -name "IMG*.PEF" -ls -exec exiftool  -d %Y.%m.%d-%H.%M.%S%%-c '-filename<$CreateDate-$filenumber.%e' {} \;
find . -name "IMG*.PEF" -ls -exec exiftool  -d %Y.%m.%d-%H.%M.%S%%f%%-c '-filename<$CreateDate.%e' {} \;
find . -name "IMG*.CR2" -ls -exec exiftool  -d %Y.%m.%d-%H.%M.%S%%-c '-filename<$CreateDate-$filenumber.%e' {} \;
find . -name "IMG*.DNG" -ls -exec exiftool  -d %Y.%m.%d-%H.%M.%S%%-c '-filename<$CreateDate-$filenumber.%e' {} \;
find . -name "IMG*.DNG" -ls -exec exiftool  -d %Y.%m.%d-%H.%M.%S%%f%%-c '-filename<$CreateDate.%e' {} \;
find . -name "IMG*.JPG" -ls -exec exiftool  -d %Y.%m.%d-%H.%M.%S%%-c '-filename<$CreateDate-$filenumber.%e' {} \;
find . -name "IMG*.JPG" -ls -exec exiftool  -d %Y.%m.%d-%H.%M.%S%%f%%-c '-filename<$CreateDate.%e' {} \;
find . -name   "P*.JPG" -ls -exec exiftool  -d %Y.%m.%d-%H.%M.%S%%-c '-filename<$CreateDate-$filenumber.%e' {} \;
find . -name   "P*.JPG" -ls -exec exiftool  -d %Y.%m.%d-%H.%M.%S%%f%%-c '-filename<$CreateDate.%e' {} \;