<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jason Lancaster &#187; Programming</title>
	<atom:link href="http://jasonplancaster.com/category/technology/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://jasonplancaster.com</link>
	<description>Dancing, Lindy Hop, technology, web applications, programming, design, user interfaces, climbing, and bouldering.</description>
	<lastBuildDate>Sat, 26 Mar 2011 03:38:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>OS X bash script to download entire picasaweb albums</title>
		<link>http://jasonplancaster.com/2008/os-x-bash-script-to-download-entire-picasaweb-albums/</link>
		<comments>http://jasonplancaster.com/2008/os-x-bash-script-to-download-entire-picasaweb-albums/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 18:55:34 +0000</pubDate>
		<dc:creator>Jason Lancaster</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[picasaweb]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://jasonplancaster.com/2008/02/18/os-x-bash-script-to-download-entire-picasaweb-albums/</guid>
		<description><![CDATA[I found this great tool to download an entire picasaweb album except it didn&#8217;t work in OS X. After a quick search on a couple of man pages I found the difference when using OS X&#8217;s mktemp and fixed things. Now I can easily grab my favorite albums from friends and family and load them [...]]]></description>
			<content:encoded><![CDATA[<p>I found this <a href="http://blue-gnu.biz/content/bash_script_quickly_download_entire_picasaweb_albums" target="_new">great tool to download an entire picasaweb album</a> except it didn&#8217;t work in OS X. After a quick search on a couple of man pages I found the difference when using OS X&#8217;s mktemp and fixed things. Now I can easily grab my favorite albums from friends and family and load them into iPhoto. What a huge time-saver!</p>
<blockquote><p><code><br />
#!/bin/bash<br />
# Distributed under the terms of the GNU General Public License v3 or later<br />
# AUTHOR: Lo?c Cerf<br />
# e-mail: magicbanana@gmail.com<br />
WGET_OPT="-q -T 180 -t 3 -c"<br />
EX_USAGE=64<br />
EX_NOHOST=68<br />
if [ -z "$1" -o "$1" = "--help" -o "$1" = "-h" ]<br />
then<br />
echo "Usage: $0 url [destination]"<br />
exit<br />
fi<br />
page=${1#*picasaweb.google.*/}<br />
if [ "$page" = "$1" ]<br />
then<br />
echo "\"$1\" is not the URL of a PicasaWeb album or gallery" 1&gt;&amp;2<br />
exit $EX_USAGE<br />
fi<br />
tempfoo=`basename $0`<br />
temp=`mktemp ${tempfoo}.XXXXXX` || exit 1<br />
if wget $WGET_OPT -O $temp "$1"<br />
then<br />
finalPage=${page#*/}<br />
if [ -z "$finalPage" -o "$finalPage" = "$page" ]<br />
then<br />
# $temp is a gallery<br />
if [ -z "$2" ]<br />
then<br />
destination=`grep -m 1 "^var _user" $temp`<br />
destination=${destination##*nickname:\"}<br />
set "$1" "${destination%%\"*}"<br />
fi<br />
mkdir -p "$2"<br />
cd "$2"<br />
grep -E -o "$1"[/]?[[:alnum:]:.%~_-]+ $temp | sort | uniq |<br />
while read album<br />
do<br />
"$0" $album &amp;<br />
done<br />
else<br />
# $temp is an album<br />
if [ -z "$2" ]<br />
then<br />
destination=`grep -m 1 "^var _album" $temp`<br />
destination=${destination##*title:\"}<br />
set "$1" "${destination%%\"*}"<br />
fi<br />
grep -E -o {id:\"[0-9]+\",s:\"[[:alnum:]:\\.%~_-]+ $temp |<br />
while read picture<br />
do<br />
picture=${picture##*\"}<br />
picture=${picture/\x2Fs144/}<br />
wget $WGET_OPT -P "$2" ${picture//\x2F//} &amp;<br />
done<br />
fi<br />
else<br />
exit $EX_NOHOST<br />
fi<br />
rm $temp<br />
</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://jasonplancaster.com/2008/os-x-bash-script-to-download-entire-picasaweb-albums/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP random password generator, randomPassword.php</title>
		<link>http://jasonplancaster.com/2005/php-random-password-generator-randompasswordphp/</link>
		<comments>http://jasonplancaster.com/2005/php-random-password-generator-randompasswordphp/#comments</comments>
		<pubDate>Tue, 08 Mar 2005 07:16:20 +0000</pubDate>
		<dc:creator>Jason Lancaster</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I wanted to be able to control the strings a random password generator used and couldn&#8217;t find anything that let me use only the strings I specified. While it might not be completly random, I&#8217;m not a big fan of having []&#8216;s or / or ? or any other ugly characters. I just like having [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to be able to control the strings a random password generator used and couldn&#8217;t find anything that let me use only the strings I specified. While it might not be completly random, I&#8217;m not a big fan of having []&#8216;s or / or ? or any other ugly characters. I just like having the abc/ABC/123/!@# combinations.</p>
<ul>
<li><a href="http://jasonplancaster.com/projects/random_password/randomPassword.php">See a working example</a>.</li>
<li><a href="http://jasonplancaster.com/projects/random_password/randomPassword.phps">View the source</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jasonplancaster.com/2005/php-random-password-generator-randompasswordphp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proper method for unlimited form inputs in a user interface</title>
		<link>http://jasonplancaster.com/2004/proper-method-for-unlimited-form-inputs-in-a-user-interface/</link>
		<comments>http://jasonplancaster.com/2004/proper-method-for-unlimited-form-inputs-in-a-user-interface/#comments</comments>
		<pubDate>Thu, 23 Dec 2004 23:49:53 +0000</pubDate>
		<dc:creator>Jason Lancaster</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[You probably don&#8217;t notice how counterintuitive some forms are, but in one of my new projects I needed a method to properly maintain an unlimited amount of relational data in a html user interface. I couldn&#8217;t find any tutorials or examples that properly managed (at least in my mind!) an unlimited amount of data so [...]]]></description>
			<content:encoded><![CDATA[<p>You probably don&#8217;t notice how counterintuitive some forms are, but in one of my new projects I needed a method to properly maintain an unlimited amount of relational data in a html user interface. I couldn&#8217;t find any tutorials or examples that properly managed (at least in my mind!) an unlimited amount of data so I created my own.</p>
<p>There&#8217;s very little involved to accomplish this. No funky php &#8212; just a little bit of javascript concatenation. I&#8217;d like to prevent the data from having to be hard-coded in the javascript function but I can&#8217;t come up with a method that prevents it for now.</p>
<p><a href="http://jasonplancaster.com/tutorials/addnewline">Working example and howto</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jasonplancaster.com/2004/proper-method-for-unlimited-form-inputs-in-a-user-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/19 queries in 0.035 seconds using disk: basic
Object Caching 287/324 objects using disk: basic

Served from: jasonplancaster.com @ 2012-02-08 10:36:39 -->
