| Using the Flick API with Jquery plug-ins
|
|
Written by Administrator
Monday, 04 August 2008 10:04 |
 |
 |
 |
|
|
This demo loads a users photos from flickr.com and applies the lightbox functions.
|
|
Here's the code that was used:
Underlying Code for this page
-
<style>
-
.gallery ul {
-
list-style: none;
-
}
-
.gallery ul li {
-
display: inline;
-
padding: 2px;
-
}
-
</style>
- <script src="/includes/js/jquery-1.2.6.js" type="text/javascript"></script>
-
<script src="/includes/js/jquerylitebox-min.js" type="text/javascript">
-
</script>
-
<script src="/includes/js/jquery.flickr-1.0.js" type="text/javascript">
-
</script>
-
<script type="text/javascript">
-
jQuery(function(){
-
jQuery("#gallery-flickr").flickr({
-
api_key: "XXXXXXXXX", // use your own Flickr API key
-
photoset_id: '72157606451996192',
-
type: 'photoset',
-
thumb_size: 't',
-
per_page: 5,
-
callback: liteboxCallback
-
});
-
});
-
function liteboxCallback(el){
-
jQuery(el).litebox({nz:'0.8em',oc:'white'});
-
}
-
</script>
-
<p>
-
This demo loads a users photos from <a href="http://www.flickr.com">flickr.com</a> and applies the lightbox functions.
-
</p>
-
<p id="gallery-flickr" class="gallery">
-
</p>
|
|
| Last Updated ( Monday, 11 August 2008 09:14 ) |
|
| rsync saved my life
|
|
Written by CJB
Friday, 07 December 2007 12:06 |
 |
 |
 |
|
|
...not really but it's a really powerful file back up and sync tool lurking under the hood in OSX and most Linux systems.
here's a simple command line to backup and subsequently (going forward) one folder to another
$ rsync -vrup /path_to_folder_source /destination_path_to_folder_backup
-
// insert your own source and destinations paths
-
Other functions
-
$ man rsync
-
-v, --verbose increase verbosity
-
-q, --quiet decrease verbosity
-
-c, --checksum always checksum
-
-a, --archive archive mode, equivalent to -rlptgoD
-
-r, --recursive recurse into directories
-
-R, --relative use relative path names
-
--no-relative turn off --relative
-
--no-implied-dirs don't send implied dirs with -R
-
-b, --backup make backups (see --suffix & --backup-dir)
-
--backup-dir make backups into this directory
-
--suffix=SUFFIX backup suffix (default ~ w/o --backup-dir)
-
-u, --update update only (don't overwrite newer files)
-
--inplace update the destination files inplace
-
-K, --keep-dirlinks treat symlinked dir on receiver as dir
-
-l, --links copy symlinks as symlinks
-
-L, --copy-links copy the referent of all symlinks
-
--copy-unsafe-links copy the referent of "unsafe" symlinks
-
--safe-links ignore "unsafe" symlinks
-
-H, --hard-links preserve hard links
-
-p, --perms preserve permissions
|
|
| Last Updated ( Monday, 04 August 2008 12:06 ) |
|
| Data Mining 101
|
|
Written by CB
Wednesday, 28 November 2007 00:25 |
 |
 |
 |
|
| |
| Last Updated ( Sunday, 11 October 2009 19:51 ) |
|
|
|
|
|
|
Page 5 of 6 |