Posts Tagged ‘Bash’

TSP approximation algorithms

Wednesday, July 1st, 2009

Finally I’ve found some time to publish the code I wrote for my BSc thesys, wow! :)

The problem is not in releasing source code but mainly in my lazyness, because I’ve just found the time to write a bash script to download some other code which my code depends on (my ArgumentList library and BlossomV-1.0 from Vladimir Kolmogorov) and create the right objects.

If you want, you can download the script already as a file from there, the only thing you must change is the BASEDIR variable; after the execution of the script you have just to change the INCLUDE constant on the Makefile and use make to compile to source. It is necessary to have wget and git already installed.

The proper source code of my thesys is available, as you can see, from GitHUB; sorry but all the comments and strings are in Italian.

Exif thumbnails extractor

Wednesday, October 4th, 2006

I’ve heard only some weeks ago about extracting the original thumbnail (created by digital camera) from a jpeg picture.
It’s easy to realize that in a thumbnail you can find particulars that are being removed from the published version of the picture; you can find some examples of what i’m trying to say here and here.

I’ve made a simple bash script that uses the exif binary (so you need it to use that script), the script has three parameters:

exif_thumb_extractor.sh [-r] <pictures_dir> <target_dir>

* -r option it’s for new recursive mode!

Enjoy it and download :)