User:Carl Boettiger/Notebook/Comparative Phylogenetics/2010/09/01
Comparative Phylogenetics | Main project page Previous entry Next entry |
Entry titleAutomated scripts for image uploads. Tag-based generation of a slideshow:
./flickr_slideshow *.png Creates the html code that can be embedded into the notebook for a slideshow those images. Images only get the date-time tag as a unique id. <html> <object width="400" height="300"> <param name="flashvars" value="offsite=true&lang=en-us&page_show_url=%2Fphotos%2Fcboettig%2Ftags%2F20100901141512%2Fshow%2F&page_show_back_url=%2Fphotos%2Fcboettig%2Ftags%2F20100901141512%2F&user_id=46456847@N08&tags=20100901141512&jump_to=&start_index="></param> <param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=71649"></param> <param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/slideshow/show.swf?v=71649" allowFullScreen="true" flashvars="offsite=true&lang=en-us&page_show_url=%2Fphotos%2Fcboettig%2Ftags%2F20100901141512%2Fshow%2F&page_show_back_url=%2Fphotos%2Fcboettig%2Ftags%2F20100901141512%2F&user_id=46456847@N08&tags=20100901141512&jump_to=&start_index=" width="400" height="300"></embed></object> </html>
This one uses the mediawiki plugin. More formatting options could be incorporated of course. (Creates the thumbnail images down the right-hand side). <html> <script src="http://gist.github.com/561256.js?file=flickr_to_mediawiki.sh"></script> </html> <flickr>4948495209|t</flickr> <flickr>4948495397|t</flickr> <flickr>4948495377|t</flickr> <flickr>4949084108|t</flickr> <flickr>4948495319|t</flickr> <flickr>4949084050|t</flickr> <flickr>4949084018|t</flickr> <flickr>4949084074|t</flickr> <flickr>4948495433|t</flickr> Good practice/brush up on my regular expressions and bash scripting anyway. Scripts re-upload images each time, even if the image hasn't changed. Makes the photostream confusing but that's only temporary. Could simply add the figures to the version management, might be easier, though doesn't enable things like the slideshow or the social options on a particular figure. Maybe just as well that it's a free account, duplicates whose urls I don't track will be lost to the ether.
Adaptive Dynamics RunsAbove figures correspond to these analytic approximations and coexistence simulations Now Re-running coexistence simulations on the (-0.2, 0.2) grid and plotting side-by-side with analytics on same parameters; code.
|