VLC for Windows Phone | Windows Phone Apps+Games Store (United States)
- January 5th, 2015
- Write comment
Archive for the ‘Technology’ Category
Legal Consulting Firm Believes Artificial Intelligence Could Replace Lawyers by 2030 | Hacked.
First they came for the factory workers but I didn’t care because I wasn’t a factory worker
Then they came for the clerks, but i didn’t care because I wasn’t a clerk.
Later they came for the lawyers, but screw those guys…
Watch a live feed from the ISS. Watch the world go by…
The future is not in code, but in farming…
Future of Work: Why Teaching Everyone to Code Is Delusional | Singularity HUB.
http://www.ruf.rice.edu/~mobile/publications/ubicomp07banerjee.pdf.
[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-
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!