Posts tagged ‘Web’

smartphone market share android iphone blackberry

  • How To: Bulletproof Server Backups with Amazon S – old, but good manual about S3 backup
  • HOW TO: Backup Your Website to Amazon S3 – detailed help about using S3Sync for backup
  • Server Backup with Amazon S3 (Howto) – good manual ( using bash and crontab )
  • List of S3 backup tools
  • For those who like to use Azure instead of AWS :

  • Backup files using CloudBerry
  • AWS related links :

    Okay, we have text file with list of urls and want to have firefox’s screenshots from this pages and also we need to have this screenshots in some normalized resolution ( like all images should be in 300×400 – thumbnails ). First of all you need to install Command line print Firefox add-on. Then create some simple script which will run firefox with needed url, print screenshot and close ( in my case via kill – may be it’s too brutal ) firefox in cycle. It may look like this ( url_list.txt – file with urls – each url on its own line :-)), after running this script you will have many *.png files which is screenshots for ulrs – 0.png – for first url in urls_list.txt, 1.png for second and so on.

    while read line
    firefox -print $line -printmode png -printdelay 10 -printfile ${id}.png
    ps ax | grep firefox | awk '{ print $1 }' | xargs kill -9 ;
    done < urls_list.txt

    And now then we have screenshots ( all this guys are in different resolution in common ) then we need to normalize them – to create thumbnails for all images in 300×400 resolution – convert helps!

    for f in *.png;
    convert -thumbnail 300x400! ${f} thumb_${f}

    And we have many thumb_*.pn with 300×400 resolution all. A little note – using resolution without ! sign will work in another way – resize will be processed proportionally with using resize only for one dimension ( bigger one ).