<?xml version="1.0" encoding="utf-8"?>
<!-- generator="wordpress/2.0.3" -->
<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/"
	>

<channel>
	<title>alt-tag.com</title>
	<link>http://alt-tag.com/blog</link>
	<description>Thoughts on everything from education and politics to internet usability, and programming.</description>
	<pubDate>Fri, 06 Jun 2008 22:26:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.3</generator>
	<language>en</language>
			<item>
		<title>State Board of Education Candidates Named for Election</title>
		<link>http://alt-tag.com/blog/archives/2008/06/state-board-of-education-candidates-named-for-election/</link>
		<comments>http://alt-tag.com/blog/archives/2008/06/state-board-of-education-candidates-named-for-election/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 22:26:06 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
		
	<category>Education</category>
	<category>Utah Politics</category>
		<guid isPermaLink="false">http://alt-tag.com/blog/archives/2008/06/state-board-of-education-candidates-named-for-election/</guid>
		<description><![CDATA[The press release from the governor&#8217;s office is below.  I don&#8217;t have time for commentary at the moment, other than to say I&#8217;m given to understand the governor simply took the ranked order from the nominating committee as his selection.  Sara Brate over at the Accountability blog complied a list of the committee&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>The press release from the governor&#8217;s office is below.  I don&#8217;t have time for commentary at the moment, other than to say I&#8217;m given to understand the governor simply took the ranked order from the nominating committee as his selection.  Sara Brate over at the <a href="http://accountabilityfirst.blogspot.com/">Accountability blog</a> complied a <a href="http://spreadsheets.google.com/pub?key=pGrlKebn2aTmgFKqCBMQzHg">list of the committee&#8217;s votes</a>. </p>
<blockquote><p>Salt Lake City - Utah Governor Jon Huntsman has announced the Utah State Board of Education candidates as recommended by the State Board of Education Nominating and Recruiting Committee. The candidates&#8217; names have been sent to the Lt. Governor&#8217;s office to be included on the November ballot [below].</p>
<p>&#8220;These men and women were chosen from an extremely well qualified group of individuals,&#8221; Governor Huntsman said. &#8220;I am confident that each of these candidates would serve as exceptional board members and I wish them the best in the upcoming election.&#8221;</p>
<p>The candidates who were selected are as follows:</p>
<p>District 1<br />
Shelly Locke<br />
Susie Campbell Ashilman</p>
<p>District 4<br />
Dave Thomas<br />
Chris L. Dallin</p>
<p>District 7<br />
Randall A. Mackay<br />
Leslie Brooks Castle</p>
<p>District 8<br />
Janet Cannon<br />
Trent Kaufman</p>
<p>District 11<br />
Ted H. Heap<br />
Dave Crandall</p>
<p>District 12<br />
Mark Cluff<br />
Carol A. Murphy</p>
<p>District 13<br />
Kyle Bateman<br />
C. Mark Openshaw</p></blockquote>
]]></content:encoded>
			<wfw:commentRSS>http://alt-tag.com/blog/archives/2008/06/state-board-of-education-candidates-named-for-election/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Filed Version of SB2 Lawsuit</title>
		<link>http://alt-tag.com/blog/archives/2008/06/filed-version-of-sb2-lawsuit/</link>
		<comments>http://alt-tag.com/blog/archives/2008/06/filed-version-of-sb2-lawsuit/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 05:24:37 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
		
	<category>Education</category>
	<category>Utah Politics</category>
		<guid isPermaLink="false">http://alt-tag.com/blog/archives/2008/06/filed-version-of-sb2-lawsuit/</guid>
		<description><![CDATA[The suit suit filed contesting the constitutionality of Senate Bill 2 (2nd Substitute) has been in the news and come up in the bloghive.  I haven&#8217;t seen anyone post a copy of the complaint&#8212;I happen to have one, so here it is.

Complaint [pdf]

The two constitutional sections at play are Article VI Section 22 and [...]]]></description>
			<content:encoded><![CDATA[<p>The suit suit filed contesting the constitutionality of <a href="http://le.utah.gov/~2008/htmdoc/sbillhtm/SB0002S02.htm">Senate Bill 2 (2nd Substitute</a>) has been in the news and come up in the bloghive.  I haven&#8217;t seen anyone post a copy of the complaint&#8212;I happen to have one, so here it is.</p>
<ul>
<li><a href="/blog/blogdata/SB2complaint-filed.pdf" class="pdf">Complaint [pdf]</a></li>
</ul>
<p>The two constitutional sections at play are <a href="http://le.utah.gov/~code/const/htm/00I06_002200.htm">Article VI Section 22</a> and <a href="http://le.utah.gov/~code/const/htm/00I10_000300.htm">Article X Section 3</a>.</p>
<h3>Complainants</h3>
<p>The news media hasn&#8217;t listed all <strike>37</strike> 38 of the complainants (the <em>Trib</em> reported there were 38 [<strong>UPDATE:</strong> The <em>Trib</em> called me on it&#8212;their count was correct, the paragraphs were numbered oddly]), which has allowed some defenders of the bill to claim this is a partisan action.  Feel free to grab the complaint and read about each of them; I think you&#8217;ll find the complaint is a bipartisan effort.</p>
<p>The numbers below don&#8217;t add up to <strike>37</strike> 38, as some people fall into multiple categories (e.g. Kim Burningham is both a current USBE member and a former Republican legislator).</p>
<ul>
<li>7 former Republican members of the Utah House of Representatives, including a former Speaker of the Utah House, and a former majority leader of the Utah House</li>
<li>5 current members of the Utah House (4-D, 1-R)</li>
<li>1 current and 1 former member the Utah Senate (both Democrats)</li>
<li>a former Chief Clerk of the House</li>
<li>6 current and 2 former members of the State Board of Education</li>
<li>a former State Superintendent of Public Education</li>
<li>7 current or former members (not including members of USBE)	of the Utah School Boards Association, a group comprised of local school board members</li>
<li>2 members of the PTA (a former president, and a former legislative vice-president)</li>
<li>3 current or former members of the UEA former (including a former president)
</li>
<li>a former member of Office of Legislative Research and General Council</li>
<li>1 person listed as a &#8220;community advocate&#8221; for education issues</li>
<li>a former district superintendent and a former school administrator</li>
</ul>
<h3>Editorials</h3>
<p>Reader&#8217;s should note the following editorials which oppose the omnibus approach and support the suit:</p>
<ul>
<li><em>SLTrib</em>, 2008-04-19, &#8220;Power and politics: Court should throw light on omnibus&#8221;</li>
<li><em>SLTrib</em>, 2008-05-30, <a href="http://www.sltrib.com/opinion/ci_9431795">&#8220;Forcing the issue: SB2 must not be allowed to set precedent&#8221;</a></li>
<li><em>DesNews</em>, 2008-04-19, <a href="http://webserver.desnews.com/article/1,5143,695271784,00.html">&#8220;Omnibus bill tips power&#8221;</a></li>
<li><em>Standard Examiner</em>, 2008-06-01, <a href="http://www.standard.net/live/opinion/editorials/134315/">&#8220;Legislative grab-bagging&#8221;</a></li>
<li><em>Standard Examiner</em>, 2008-03-09, <a href="http://www.standard.net/live/opinion/editorials/127727/">&#8220;2008 legislative report card&#8221;</a></li>
</ul>
<p>The <em>Herald</em> also put out an editorial (2008-06-01, <a href="http://www.heraldextra.com/content/view/268497/57/">&#8220;Let Omnibus Roll Along&#8221;</a>); they&#8217;re the only media outlet I&#8217;ve seen so far to oppose the suit.  I found the editorial poorly written, ignoring facts (like the Utah constitution), and willfully exaggerating in an attempt to make the suit seem ridiculous.</p>
<p>The next closest thing to a media outlet defending the omnibus bill was yesterday&#8217;s <a href="http://www.clippertoday.com/link.asp?smenu=126&#038;twindow=Default&#038;sdetail=27097&#038;mad=No&#038;wpage=1&#038;skeyword=&#038;sidate=">point</a>/<a href="http://www.clippertoday.com/link.asp?smenu=126&#038;twindow=Default&#038;sdetail=27099&#038;mad=No&#038;wpage=1&#038;skeyword=&#038;sidate=">counter-point</a> in the <em>Davis County Clipper</em>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://alt-tag.com/blog/archives/2008/06/filed-version-of-sb2-lawsuit/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Two Excellent Education Articles</title>
		<link>http://alt-tag.com/blog/archives/2008/03/two-excellent-education-articles/</link>
		<comments>http://alt-tag.com/blog/archives/2008/03/two-excellent-education-articles/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 17:58:48 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
		
	<category>Education</category>
		<guid isPermaLink="false">http://alt-tag.com/blog/archives/2008/03/two-excellent-education-articles/</guid>
		<description><![CDATA[Two excellent articles dealing with public education on a national level (hat tip to Mark Peterson for sleuthing them out):
&#8220;Texas&#8217; 10% admission could teach colleges a thing or two,&#8221; USA Today. An interesting article about increasing the diversity in public universities without giving racial preference scores.  The article doesn&#8217;t address it, but the suggestion [...]]]></description>
			<content:encoded><![CDATA[<p>Two excellent articles dealing with public education on a national level (hat tip to Mark Peterson for sleuthing them out):</p>
<li><a href="http://blogs.usatoday.com/oped/2008/03/post-6.html">&#8220;Texas&#8217; 10% admission could teach colleges a thing or two,&#8221;</a> <em>USA Today</em>. An interesting article about increasing the diversity in public universities without giving racial preference scores.  The article doesn&#8217;t address it, but the suggestion also has the potential to increase <em>economic</em> diversity (just as important, in my mind), without the hassle and overhead of evaluating family income.  Would something like this work for Utah?</li>
<li><a href="http://www.quickanded.com/2008/03/lawless-policymaking.html">&#8220;Lawless Policymaking,&#8221;</a> <em>The Quick and the Ed</em>. The U.S. Dept of Education is going out on a limb, and away from the (universally despised) black letter requirements of NCLB.  The changes are generally accepted as positive, but a) is it legal, and b) will states that don&#8217;t get to participate in (common sense) programs make a stink and spoil the party?</li>
]]></content:encoded>
			<wfw:commentRSS>http://alt-tag.com/blog/archives/2008/03/two-excellent-education-articles/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>State Board of Education</title>
		<link>http://alt-tag.com/blog/archives/2008/03/state-board-of-education/</link>
		<comments>http://alt-tag.com/blog/archives/2008/03/state-board-of-education/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 15:04:56 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
		
	<category>Education</category>
	<category>Utah Politics</category>
		<guid isPermaLink="false">http://alt-tag.com/blog/archives/2008/03/state-board-of-education/</guid>
		<description><![CDATA[Today is the final day to file for elected office.
After some deliberation, I decided last year to not seek a second term on the Utah State Board of Education. (District 13)  The decision was made for several reasons, and more recent events have only solidified my decision.
A list of current candidates may be found [...]]]></description>
			<content:encoded><![CDATA[<p>Today is the final day to file for elected office.</p>
<p>After some deliberation, I decided last year to not seek a second term on the Utah State Board of Education. (District 13)  The decision was made for several reasons, and more recent events have only solidified my decision.</p>
<p>A <a href="http://elections.utah.gov/2008Candidates.htm#school">list of current candidates</a> may be found at <a href="http://elections.utah.gov">elections.utah.gov</a>.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://alt-tag.com/blog/archives/2008/03/state-board-of-education/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Cancer and Christmas</title>
		<link>http://alt-tag.com/blog/archives/2007/12/cancer-and-christmas/</link>
		<comments>http://alt-tag.com/blog/archives/2007/12/cancer-and-christmas/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 10:02:29 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
		
	<category>Tobin</category>
		<guid isPermaLink="false">http://alt-tag.com/blog/archives/2007/12/cancer-and-christmas/</guid>
		<description><![CDATA[I&#8217;m overwhelmed by the positive response from friends, colleagues, and even casual acquaintances and strangers. We&#8217;re being well cared for. I don&#8217;t know that I will ever be able to properly thank everyone.
The day we found out about Tobin&#8217;s cancer, I phoned my study group to let them know.  They immediately promised to cover [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/blog/blogimages/Tobin_and_santa_20071221.jpg" rel="lightbox[20071222-135000]" style="display:block;float:right; width:204px"><img src="/blog/blogimages/Tobin_and_santa_20071221_tn.jpg" alt="Tobin gets a visit from Santa Claus" /></a>I&#8217;m overwhelmed by the positive response from friends, colleagues, and even casual acquaintances and strangers. We&#8217;re being well cared for. I don&#8217;t know that I will ever be able to properly thank everyone.</p>
<p>The day we found out about Tobin&#8217;s cancer, I phoned my study group to let them know.  They immediately promised to cover my portion of our group assignments, and asked if they could tell others about our situation.  With my consent, they contacted the MBA administration and the MBA Spouses Association (MBASA)&#8212;who are better organized than any church organization I&#8217;ve ever seen.  The following evening, a calendar had been posted on Google and families had signed up to bring us dinner through the end of the year. A day later, a group of the spouses came and cleaned our house from top to bottom.</p>
<p>In the past couple of days, MBA students and spouses, through many anonymous contributions, showered us with cards, presents, blankets, and a very sizable (and unexpected) donation of cash which will be used for gas to and from the hospital. Even some professors have chipped in.</p>
<p><a href="/blog/blogimages/Cosmo_and_boys_20071219.jpg" rel="lightbox[20071222-135000]" style="display:block;float:right; width:204px"><img src="/blog/blogimages/Cosmo_and_boys_20071219_tn.jpg" alt="My other sons with Cosmo &quot;Claws&quot;" /></a>On hearing of Tobin&#8217;s cancer, one of the MBA spouses contacted an organization called <a href="http://www.ksl.com/?nid=294&#038;sid=2343117">Children with Cancer for Christmas</a>. We were immediately invited as guests, and told to pick out gifts for all of our children. (The party included Cosmo, in a blue santa outfit, and Santa himself, wearing red.) The generosity of our community again overwhelmed me. Tobin is getting a Fisher-Price basketball stand; my middle son is getting a bicycle. (Our oldest son can read, so I won&#8217;t spoil his surprise.) Wow.</p>
<p>I&#8217;m lucky to also have strong family support. I have three siblings in Utah who have variously spent hours (even overnight) with Tobin in the hospital, or babysat our other sons while we visited Tobin. Two sisters on opposite sides of the country (Seattle and Pennsylvania) have sacrificed, despite their own significant troubles (one is pregnant and on bed-rest), to fly my mother out to visit so we could spend more time at the hospital.  My mother-in-law (who lives close by) has helped too, even though she is disabled and not ambulatory.</p>
<p>One of the up-sides of doing some little work for state government is that I&#8217;m able to participate in a pretty good health insurance plan.  Between our insurance and other programs Tobin qualifies for, I believe our medical costs will be covered.</p>
<p><a href="/blog/blogimages/trooper_animal.jpg" rel="lightbox[20071222-135000]" style="display:block;float:right; width:146px"><img src="/blog/blogimages/trooper_animal_tn.jpg" alt="A stuffed &quot;thing&quot; from the Utah Highway Patrol" /></a>If one has to have cancer, Christmas is the best time of year to be stuck in the hospital. The Utah Grizzlies stopped by to visit. The Utah Highway Patrol came and dropped off the most hideous stuffed animal I have ever seen (right)&#8212;but it made Tobin laugh, and that&#8217;s what counts.  Even Santa Claus himself has come by several times.</p>
<p>I&#8217;ve had many people email, call, or even stop by the hospital asking how they can help.  We&#8217;ve received more than I could have ever asked for, and help continues to pour in. Tobin&#8217;s hospital room is decorated in Christmas lights, and his bed is covered in stuffed animals. The only thing I can ask is that you pray for us.  Pray for peace, and that God&#8217;s will may be done.</p>
<p>If you still wish to share, consider contributions to worthy charities, including the <a href="http://www.uw.org/General/Give-Now.html">United Way</a>, <a href="http://www.ksl.com/?nid=256&#038;sid=2218390">KSL&#8217;s Quarters for Christmas</a>, or the <a href="http://www.huntsmancancerfoundation.org/donate.php?type=merchandise">Huntsman Cancer Foundation</a>.</p>
<p>As inadequate as my gratitude is, I can only offer my thanks, and promise that I will pay it forward.  Thank you.  Thank you.</p>
<p>May God bless each of you, and may your Christmas be merry.</p>
<p><script type="text/javascript"> //< ![CDATA[<br />
TagLoader.load('litebox');//<br />
//]]&gt;</script>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://alt-tag.com/blog/archives/2007/12/cancer-and-christmas/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Discovering Tobin&#8217;s cancer</title>
		<link>http://alt-tag.com/blog/archives/2007/12/discovering-tobins-cancer/</link>
		<comments>http://alt-tag.com/blog/archives/2007/12/discovering-tobins-cancer/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 08:19:22 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
		
	<category>Tobin</category>
		<guid isPermaLink="false">http://alt-tag.com/blog/archives/2007/12/discovering-tobins-cancer/</guid>
		<description><![CDATA[My three-year old son has cancer.
Tobin had been sick for a few weeks, with a cough that wouldn&#8217;t go away.  Multiple trips to the doctor&#8217;s office offered no respite. Antibiotics didn&#8217;t work. An inhaler didn&#8217;t improve his breathing.  He visited the doctor&#8217;s office again on Monday, December 10th, and was seen by a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/blog/blogimages/Tobin_200712_2.png" rel="lightbox[20071219-231300]" style="width: 146px;float:right"><img src="/blog/blogimages/Tobin_200712_2_tn.jpg" alt="" /></a>My three-year old son has cancer.</p>
<p>Tobin had been sick for a few weeks, with a cough that wouldn&#8217;t go away.  Multiple trips to the doctor&#8217;s office offered no respite. Antibiotics didn&#8217;t work. An inhaler didn&#8217;t improve his breathing.  He visited the doctor&#8217;s office again on Monday, December 10th, and was seen by a &#8220;substitute&#8221; physician (the doctor was out for some reason).</p>
<p>A quick test showed his blood-oxygen level was insufficient (low 80s, if I recall correctly), and we were advised to take him over to the emergency room at UVRMC. There, the triage nurse confirmed the low oxygen saturation, and fast-tracked him in to the ER, where he was immediately put on oxygen.</p>
<p>They did a chest X-ray (because he was having trouble breathing, they moved him to the front of the line). The doctor concluded he has a &#8220;raging&#8221; case of <a href="http://en.wikipedia.org/wiki/Pneumonia">pneumonia</a>, and his labored breathing was caused by a significant amount of fluid in his right lung, rendering it almost useless.  Draining it would require surgery to insert a chest tube. They sent us by ambulance up to <a href="http://intermountainhealthcare.org/xp/public/primary/">Primary Children&#8217;s Medical Center (PCMC)</a>.</p>
<p>Shortly after arriving at PCMC, they gave him a <a href="http://en.wikipedia.org/wiki/CT_scan">CT scan</a>. During that scan, it was clear something was abnormal, because there were six people crowded in a small room studying the monitor intently.</p>
<p>Only a few minutes later the doctor came in and told me Tobin has cancer, most likely <a href="http://en.wikipedia.org/wiki/Neuroblastoma">neuroblastoma</a> (the neuroblastoma diagnosis was later confirmed as stage 4). My wife arrived as we were discussing it (she had stopped to make arrangements for our other children), and we started the conversation over.</p>
<p>Tobin was admitted to the Pediatric ICU (PICU), where he stayed overnight before being transferred to the cancer ward the following day.</p>
<p>(I realize this is a rather depressing place to end, but I&#8217;m tired.  I&#8217;ll write more in the coming days.)</p>
<p><script type="text/javascript"> //< ![CDATA[<br />
TagLoader.load('litebox');//<br />
//]]&gt;</script>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://alt-tag.com/blog/archives/2007/12/discovering-tobins-cancer/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Blogging and cancer</title>
		<link>http://alt-tag.com/blog/archives/2007/12/blogging-and-cancer/</link>
		<comments>http://alt-tag.com/blog/archives/2007/12/blogging-and-cancer/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 06:52:28 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
		
	<category> General</category>
	<category>Tobin</category>
		<guid isPermaLink="false">http://alt-tag.com/blog/archives/2007/12/blogging-and-cancer/</guid>
		<description><![CDATA[It&#8217;s been nearly six months since I last posted.  Some have suggested I&#8217;ve fallen off the face of the earth. &#8216;Tis not so. I&#8217;m still here.
In July and August I was able to finish up work with the startup I&#8217;d been developing for, helping them see their first profitable quarter. The long hours hunched [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been nearly six months since I last posted.  Some have suggested I&#8217;ve fallen off the face of the earth. &#8216;Tis not so. I&#8217;m still here.</p>
<p>In July and August I was able to finish up work with the startup I&#8217;d been developing for, helping them see their first profitable quarter. The long hours hunched over a computer quickly transitioned to long hours studying, as I quit work to go back to grad school full-time.</p>
<p>During these past few months, I&#8217;ve been wanting to blog about several things, including:</p>
<ul>
<li><a href="http://le.utah.gov/interim/2007/pdf/00001975.pdf" class="pdf">Draft legislation</a> [pdf] (as yet unnumbered), as discussed by the <a href="http://le.utah.gov/asp/interim/Commit.asp?Year=2007&#038;Com=INTEDU">Joint Education Interim Committee</a> on 14 Nov, which proposes to make the State Board of Education partisan, and increase its elected membership from 15 to 29 (a bad idea)</li>
<li><a href="http://headrush.typepad.com/creating_passionate_users/2005/01/rubberducking_a.html">Rubber ducking</a> (aka &#8220;Talk to the duck&#8221;)</li>
<li><a href="http://prototypejs.com">Prototype</a>, <a href="http://script.aculo.us">script.aculo.us</a>, and Christophe Porteneuve&#8217;s <a href="http://www.amazon.com/gp/product/1934356018?ie=UTF8&#038;tag=alttag-20&#038;linkCode=xm2&#038;camp=1789&#038;creativeASIN=1934356018">excellent book</a>, which I was privileged to review</li>
<li><em><a href="http://www.amazon.com/gp/product/0787960756?ie=UTF8&#038;tag=alttag-20&#038;linkCode=xm2&#038;camp=1789&#038;creativeASIN=0787960756">The Five Dysfunctions of a Team</a></em>, by Patrick M. Lencioni, particularly the part about how effective teams encourage controversy</li>
</ul>
<p><a href="/blog/blogimages/Tobin_200712_1.jpg" rel="lightbox[20071219-230406]" style="display:block;float:right"><img src="/blog/blogimages/Tobin_200712_1_tn.jpg" alt="" /></a></p>
<p>Life threw another curve-ball last week: we learned our three-year-old son, Tobin, has cancer. The response from family, friends, colleagues, and even strangers has been overwhelming.  Despite this new trial, I feel truly blessed.</p>
<p>I&#8217;ve avoided delving much into personal matters thus far, but I&#8217;m gong to break my own rule, and chronicle Tobin&#8217;s treatment in future posts. (Subscribe to the <a href="/blog/category/tobin/feed">Tobin-specific RSS feed <img src="/images/feed-icon-14x14.png" /></a>.)<br />
<script type="text/javascript"> //< ![CDATA[<br />
TagLoader.load('litebox');//<br />
//]]&gt;</script></p>
]]></content:encoded>
			<wfw:commentRSS>http://alt-tag.com/blog/archives/2007/12/blogging-and-cancer/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Hand-rolled gallery automation</title>
		<link>http://alt-tag.com/blog/archives/2007/07/hand-rolled-gallery-automation/</link>
		<comments>http://alt-tag.com/blog/archives/2007/07/hand-rolled-gallery-automation/#comments</comments>
		<pubDate>Fri, 13 Jul 2007 05:59:56 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
		
	<category>Programming</category>
		<guid isPermaLink="false">http://alt-tag.com/blog/archives/2007/07/hand-rolled-gallery-automation/</guid>
		<description><![CDATA[The Senate Site  asked about a good way to quickly post a gallery of images. I&#8217;m a programmer, so I answered the query by rolling my own solution. (If your only tool is a hammer&#8230;)
I happen to like Litebox, although it requires a bit of manual setup: moving specific files to the web server. [...]]]></description>
			<content:encoded><![CDATA[<p>The Senate Site  <a href="http://senatesite.com/blog/2007/07/photo-album.html">asked about a good way to quickly post a gallery of images</a>. I&#8217;m a programmer, so I answered the query by rolling my own solution. (If your only tool is a hammer&#8230;)</p>
<p>I happen to like <a href="http://www.doknowevil.net/litebox/">Litebox</a>, although it requires a bit of manual setup: moving specific files to the web server. Don&#8217;t worry about the setup instructions on the Litebox site. We automate the file interactions below.</p>
<h3>Getting Ready</h3>
<p>The following requires OS X 10.4, and uses Automator.</p>
<p>Download the following supporting files, and put them on your web server. I put my CSS files in &#8220;/css&#8221; and my javascript files in &#8220;/js&#8221;. It&#8217;s up to you.
<ul>
<li><a href="/js/TagLoader.js">TagLoader.js</a> &#8212; Inside this file, you&#8217;ll need to change the two hard-coded file paths to match the paths to the js and css folders on your server. Change the following lines to match your setup:<code class="codeblock">&nbsp;&nbsp;BASE_JS: &#039;/js/min/&#039;,<br />
&nbsp;&nbsp;BASE_CSS: &#039;/css/&#039;,</code></li>
<li><a href="/js/litebox-1.0.js">litebox-1.0.js</a></li>
<li><a href="/js/prototype.lite.js">prototype.lite.js</a></li>
<li><a href="/js/moo.fx.js">moo.fx.js</a></li>
<li><a href="/js/lightbox.css">lightbox.css</a></li>
</ul>
<p>Add the following to your site/theme CSS file.  (Feel free to modify this CSS as you prefer. These values suited me.)<code class="codeblock">ul.thumbs {<br />
&nbsp;&nbsp;text-align:center;<br />
&nbsp;&nbsp;list-style-type: none;<br />
}<br />
ul.thumbs li {<br />
&nbsp;&nbsp;display:inline;<br />
&nbsp;&nbsp;padding: 0;<br />
&nbsp;&nbsp;margin: 0 5px;<br />
&nbsp;&nbsp;list-style-type: none;<br />
}</code></p>
<p>Build the following Automator action (or just <a href="/blog/blogdata/ThumbnailsToHtml.workflow.zip">download the complete version</a>)</p>
<ol>
<li>Finder : <strong>Get Selected Finder Items</strong></li>
<li>Preview : <strong>Create Thumbnail Images</strong> &#8212; I left the sized at 128. Leave the suffix as &#8220;_tn&#8221;; it&#8217;s important later on.</li>
<li>Automator : (For some reason, WordPress is mangling the following code&#8212;it&#8217;s not showing the escaped quotes properly.)<br />
<pre style="overflow:auto"><code class="codeblock">JS_FOLDER=&quot;/js/&quot;
IMG_FOLDER=&quot;/images/&quot;
LB_TAG=$(date &quot;+%Y%m%d-%H%M%S&quot;)
echo &quot;&lt;script type=&quot;text/javascript&quot; src=&quot;${JS_FOLDER}TagLoader.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt; //&lt;![CDATA[ 
TagLoader.load(&#039;litebox&#039;);//
//]]&gt;&lt;/script&gt;
&lt;ul class=&quot;thumbs&quot;&gt;&quot;
for tn in &quot;$@&quot;
do
&nbsp;&nbsp;#Get img base name (i.e. w/o path)
&nbsp;&nbsp;tn=${tn##*/}
&nbsp;&nbsp;#Guess at original image name
&nbsp;&nbsp;img=${tn%_tn.*}.${tn##*.}

&nbsp;&nbsp;echo &quot;&lt;li&gt;&lt;a href=&quot;${IMG_FOLDER}${img}&quot; rel=&quot;lightbox[${LB_TAG}]&quot;&gt;&lt;img src=&quot;${IMG_FOLDER}${tn}&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/li&gt;&quot;
done

echo &quot;&lt;/ul&gt;&quot;</code></pre>
</li>
<li>System : <strong>Copy Text To Clipboard</strong></li>
<li>(optional) TextEdit : <strong>New Text File</strong> &#8212; Pop down the options. Check &#8220;Show action when run&#8221; and &#8220;Show entire action&#8221;</li>
</ol>
<p>Within the Automator action you just built (and, of course, saved appropriately), you&#8217;ll need to modify some code to match your server file paths. Change JS_FOLDER and IMG_FOLDER (the top two lines of the Bash script) to match the file paths.<code class="codeblock">JS_FOLDER=&quot;/js/&quot;<br />
IMG_FOLDER=&quot;/images/&quot;</code></p>
<p>Save your Automator action to &#8220;<code>~/Library/Workflows/Applications/Finder/</code>&#8221;</p>
<p>You now have an Automator action that takes selected image files, automatically makes thumbnails, generates the HTML snippet needed to load Litebox and display the thumbnails. The HTML is copied to the clipboard for easy pasting, Nifty.</p>
<p>If you want to dig further into Automator, you get bonus points for using the &#8220;Finder : Get Folder Contents&#8221; action instead of having to select individual files.  Extra bonus points for integrating the <a href="http://www.apple.com/downloads/macosx/automator/uploadtoftp.html">Upload to FTP Automator Action</a>. (Hint: You might have to add it twice: once before the thumbnails are created, and once after.)</p>
<h3>Using our new tool</h3>
<p>To use the Automator action, select the files you wish to insert/thumbnail/etc. Right-click, pick &#8220;Automator&#8221;, and from the pop-out menu, pick your new action.  It&#8217;ll take a moment to run (depending on how many images you selected), and prompt to save the generated html file when it&#8217;s completed.</p>
<p>FTP the image files and newly created thumbnails to your web server. Paste the generated HTML into your blog. You&#8217;re done!</p>
<h3>One bug</h3>
<p>One bug I discovered when building this, is that my script assumes the original image file has the same file extension as the thumbnail.  If the initial image is a png, Automator will output the thumbnail as a jpg, so you might have to do some find/replace.</p>
<h3>The output</h3>
<p>I ran my Automator action on three images, and followed the process above.  This is the output (I had to manually fix the png file extensions, per my bug, above). Click the images to see Litebox in action!</p>
<p><script type="text/javascript" src="/js/min/TagLoader.js"></script><script type="text/javascript"> //< ![CDATA[<br />
TagLoader.load('litebox');//<br />
//]]&gt;</script></p>
<ul class="thumbs">
<li><a href="/blog/blogimages/Tobin_2006.png" rel="lightbox[20070712-231645]"><img src="/blog/blogimages/Tobin_2006_tn.jpg" alt="" /></a></li>
<li><a href="/blog/blogimages/TJ_2006.png" rel="lightbox[20070712-231645]"><img src="/blog/blogimages/TJ_2006_tn.jpg" alt="" /></a></li>
<li><a href="/blog/blogimages/Tyson_2006.png" rel="lightbox[20070712-231645]"><img src="/blog/blogimages/Tyson_2006_tn.jpg" alt="" /></a></li>
</ul>
<div class="seeAlso"><strong>UPDATE:</strong> I had some problems with one of my Javascripts in IE when I first posted.  It should be fixed now.</div>
]]></content:encoded>
			<wfw:commentRSS>http://alt-tag.com/blog/archives/2007/07/hand-rolled-gallery-automation/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
