Batman Unmasked – psychological analysis
- December 26th, 2014
- Write comment
Myth 4: Drinking out of aluminum cans or cooking in aluminum pots and pans can lead to Alzheimer’s disease.
Reality: During the 1960s and 1970s, aluminum emerged as a possible suspect in Alzheimer’s. This suspicion led to concern about exposure to aluminum through everyday sources such as pots and pans, beverage cans, antacids and antiperspirants. Since then, studies have failed to confirm any role for aluminum in causing Alzheimer’s. Experts today focus on other areas of research, and few believe that everyday sources of aluminum pose any threat.
[insert_php]
$channel_name = ‘TEDxTalks’;//Be sure to change this to your channel
$count = 8;//# of videos you want to show (MAX = 20)
$em_width = 420;//width of embedded player
$em_height = 315;//height of embedded player
$wrap_class = ‘video’;//class name for the div wrapper
//The output…
$sxml = simplexml_load_file(“http://gdata.youtube.com/feeds/api/users/$channel_name/uploads?max-results=$count”);
foreach ($sxml->entry as $entry) {
$vidKey = substr(strrchr($entry->id,’/’),1);
echo ”
“;
}
[/insert_php]
exiftool and a way to rename your pictures into something sensible
ExifTool is probably your best start:
http://www.sno.phy.queensu.ca/~phil/exiftool/
I second exiftool. Lots of options to rename files. If you rename files based on createtime and perhaps other fields like resolution you will end up with unique filenames and then you can filter the duplicates
Here is a quick command which will rename every file in a directory according to createDate
exiftool "-FileNameCreateDate" -d "%Y%m%d_%H%M%S.%%e" DIR
If the files were all captured with the same device it is probably super easy since the exif info will be consistent. If the files are from lots of different sources…good luck.
#!/bin/sh
OUTF=rem-duplicates.sh;
echo "#! /bin/sh" > $OUTF;
find "$@" -type f -print0 |
xargs -0 -n1 md5sum |
sort --key=1,32 | uniq -w 32 -d --all-repeated=separate |
sed -r 's/^[0-9a-f]*( )*//;s/([^a-zA-Z0-9./_-])/\\\1/g;s/(.+)/#rm \1/' >> $OUTF;
chmod a+x $OUTF; ls -l $OUTF
It should be straightforward to change “md5sum” to some other key — e.g. EXIF Date + some other EXIF fields.
(Also, isn’t this really a question for superuser.com or similar?)
Same thing, but faster…
You md5sum everyfile, but you only need to do it for files with the same size:
#/bin/bash
find "$@" -type f -not -empty -printf "%-32i%-32s%p\n" \
| sort -n -r \
| uniq -w32 \
| cut -b33- \
| uniq -D -w32 \
| cut -b33- \
| xargs -0 -d"\n" -l1 md5sum \
| uniq --all-repeated=separate -w32 \
| cut -b35-
Looks like it would make short work of turning pallets into usable lumber.
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Follow Me!