<?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"
	>

<channel>
	<title>So Many Fish</title>
	<atom:link href="http://www.lisasawin.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lisasawin.com</link>
	<description>...which is pretty cool when you think about it...</description>
	<pubDate>Sun, 17 Aug 2008 17:04:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Privacy, caching and making Safari behave</title>
		<link>http://www.lisasawin.com/2008/08/privacy-caching-and-making-safari-behave/</link>
		<comments>http://www.lisasawin.com/2008/08/privacy-caching-and-making-safari-behave/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 17:01:22 +0000</pubDate>
		<dc:creator>somanyfish</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.lisasawin.com/?p=9</guid>
		<description><![CDATA[One of the sites I&#8217;m working on has health related information, which is very important to keep private.  In particular, after the user logs out, we have to make its pages unavailable via the Back button.  it took some work to convince all browsers we meant it, but here&#8217;s what works for Safari [...]]]></description>
			<content:encoded><![CDATA[<p>One of the sites I&#8217;m working on has health related information, which is very important to keep private.  In particular, after the user logs out, we have to make its pages unavailable via the Back button.  it took some work to convince all browsers we meant it, but here&#8217;s what works for Safari 3, Firefox 2 &amp; 3 (Mac OS 10.4 Intel), IE 7, Firefox 2 &amp; 3 (Win XP and Vista), IE 6 (Win 2K):</p>
<p>Set the response headers in an after_filter:</p>
<blockquote><p>
def set_header<br />
   #Date in the past<br />
   headers[&#8221;Expires&#8221;] = &#8220;Mon, 26 Jul 1997 05:00:00 GMT&#8221;<br />
   #always modified<br />
   headers[&#8221;Last-Modified&#8221;] = &#8220;Mon, 26 Jul 1997 05:00:00 GMT&#8221;<br />
   headers[&#8221;Cache-Control&#8221;] = &#8220;no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0&#8243;<br />
   #HTTP/1.0<br />
   headers[&#8221;Pragma&#8221;] = &#8220;no-cache&#8221;<br />
 end<br />
</blockquote >
To make Safari behave, add this to all pages:</p>
<blockquote><p>
&lt;iframe style=&#8221;height:0px;width:0px;visibility:hidden&#8221; src=&#8221;about:blank&#8221;&gt;<br />
This frame prevents back forward cache in Safari.<br />
&lt;/iframe&gt;<br />
</blockquote >
]]></content:encoded>
			<wfw:commentRss>http://www.lisasawin.com/2008/08/privacy-caching-and-making-safari-behave/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Switched to WordPress</title>
		<link>http://www.lisasawin.com/2008/06/switched-to-wordpress/</link>
		<comments>http://www.lisasawin.com/2008/06/switched-to-wordpress/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 12:04:12 +0000</pubDate>
		<dc:creator>somanyfish</dc:creator>
		
		<category><![CDATA[Hosting]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.lisasawin.com/?p=6</guid>
		<description><![CDATA[Typo just wasn&#8217;t making me happy.  There were little bugs I had to fix and annoyances with posting code snippets.  I poked around the internet a little, gathering up opinions and decided to give WordPress a try. You can install it on cPanel via Fantastico De Luxe, which made it easy to get started.  My [...]]]></description>
			<content:encoded><![CDATA[<p>Typo just wasn&#8217;t making me happy.  There were little bugs I had to fix and annoyances with posting code snippets.  I poked around the internet a little, gathering up opinions and decided to give WordPress a try. You can install it on cPanel via Fantastico De Luxe, which made it easy to get started.  My next step is to understand manual installation and get it under git.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.lisasawin.com/2008/06/switched-to-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Yikes&#8230;.dangling commit!</title>
		<link>http://www.lisasawin.com/2008/06/yikesdangling-commit/</link>
		<comments>http://www.lisasawin.com/2008/06/yikesdangling-commit/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 19:43:39 +0000</pubDate>
		<dc:creator>somanyfish</dc:creator>
		
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://www.lisasawin.com/?p=5</guid>
		<description><![CDATA[ 
 I discovered today what happens when you add and commit with git while you are not on any branch.  You get a dangling commit and it looks for all the world like there is no way to get that work back.  But all is not lost!  Between  this great post in Mathieu Martin’s blog and Eric available [...]]]></description>
			<content:encoded><![CDATA[<p> </p>
<p> I discovered today what happens when you add and commit with git while you are not on any branch.  You get a dangling commit and it looks for all the world like there is no way to get that work back.  But all is not lost!  Between  <a href="http://programblings.com/2008/06/07/the-illustrated-guide-to-recovering-lost-commits-with-git/"><span><strong>this great post</strong></span></a> in <a href="http://programblings.com/"><span><strong>Mathieu Martin’s blog</strong></span></a> and Eric available just when I needed him even though he’s over in France, I figured out that you can use &#8220;git fsck –lost-found&#8221; to get the sha code and then &#8220;git rebase sha&#8221; to merge that commit into your working branch.  Phew.  I had a ton of tiny, picky changes and was really not looking forward to redoing them all!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lisasawin.com/2008/06/yikesdangling-commit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Running Rspec tests in TextMate</title>
		<link>http://www.lisasawin.com/2008/05/running-rspec-tests-in-textmate/</link>
		<comments>http://www.lisasawin.com/2008/05/running-rspec-tests-in-textmate/#comments</comments>
		<pubDate>Sat, 24 May 2008 16:45:56 +0000</pubDate>
		<dc:creator>somanyfish</dc:creator>
		
		<category><![CDATA[Rspec]]></category>

		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://www.lisasawin.com/?p=4</guid>
		<description><![CDATA[For a while I had a problem running my Rspec tests using the TextMate bundle.  It was calling the wrong lib for Ruby, even though I had the shell variables set correctly in the TextMate preferences.  When I tried to run a spec in TextMate, I got this:
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:377:in
`report_activate_error’: Could not find RubyGem rails (&#62;= 0)
(Gem::LoadError) [...]]]></description>
			<content:encoded><![CDATA[<p>For a while I had a problem running my Rspec tests using the TextMate bundle.  It was calling the wrong lib for Ruby, even though I had the shell variables set correctly in the TextMate preferences.  When I tried to run a spec in TextMate, I got this:</p>
<blockquote style="overflow:scroll"><p>/usr/lib/ruby/site_ruby/1.8/rubygems.rb:377:in<br />
`report_activate_error’: Could not find RubyGem rails (&gt;= 0)<br />
(Gem::LoadError) from<br />
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:309:in `activate’ from<br />
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:76:in<br />
`active_gem_with_options’ from<br />
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:50:in `gem’ from<br />
/Users/lisasawin/Rails Web Applications/CHC/config/boot.rb:39 from<br />
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in<br />
`gem_original_require’ from<br />
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’<br />
from /Users/lisasawin/Rails Web Applications<br />
/CHC/config/environment.rb:11 from<br />
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in<br />
`gem_original_require’ … 15 levels… from<br />
/Users/lisasawin/Library/Application<br />
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:31:in<br />
`chdir’ from<br />
/Users/lisasawin/Library/Application<br />
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:31:in<br />
`run’ from<br />
/Users/lisasawin/Library/Application<br />
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:14:in<br />
`run_file’ from /tmp/temp_textmate.zQ2Hv1:4</p></blockquote>
<p> </p>
<p>I just couldn’t get TextMate to use the library in usr/local/bin/ruby instead  of looking in usr/lib/ruby,  I gave up for a while and ran tests manually in a shell, but that was a pain.  Another web search led me to <a href="http://blog.dnite.org/2007/8/28/textmate-and-your-environment-variables/comments/7006#comment-7006"><span><strong>dnite’s blog</strong></span></a>.  He described how to set up a new ~/.MacOSX/environment.plist with the correct PATH definition:</p>
<blockquote style="overflow:scroll"><p> &lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt; &lt;!DOCTYPE plist PUBLIC &#8220;-//Apple Computer//DTD PLIST 1.0//EN&#8221;<br />
 &lt;plist version=&#8221;1.0&#8243;&gt;<br />
 &lt;dict&gt;<br />
     &lt;key&gt;PATH&lt;/key&gt;<br />
  &lt;string&gt;/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin&lt;/string&gt;<br />
 &lt;/dict&gt;<br />
 &lt;/plist&gt;</p></blockquote>
<p>Don’t forget to log out &amp; in for it to take effect.  Worked for me!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lisasawin.com/2008/05/running-rspec-tests-in-textmate/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Getting Started</title>
		<link>http://www.lisasawin.com/2008/05/getting-started/</link>
		<comments>http://www.lisasawin.com/2008/05/getting-started/#comments</comments>
		<pubDate>Mon, 19 May 2008 11:24:35 +0000</pubDate>
		<dc:creator>somanyfish</dc:creator>
		
		<category><![CDATA[Hosting]]></category>

		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://lisasawin.com/?p=3</guid>
		<description><![CDATA[A blog has seemed like a good idea for a long time.  Now I’m getting started.
Getting it up and running with Typo hosted by HostingRails was a snap.  I was a little concerned that fastcgi would be a problem, since the Typo install page didn’t mention it up front.  Down the page was info on how [...]]]></description>
			<content:encoded><![CDATA[<p>A blog has seemed like a good idea for a long time.  Now I’m getting started.</p>
<p>Getting it up and running with Typo hosted by HostingRails was a snap.  I was a little concerned that fastcgi would be a problem, since the <a href="http://typosphere.org/2007/08/26/install-typo"><span><strong>Typo install page</strong></span></a> didn’t mention it up front.  Down the page was info on how to make it work, but it seemed like there might be some hitches.  The excellent forums over a HostingRails <a href="http://www.hostingrails.com/forums/wiki_thread/3"><span><strong>mentioned</strong></span></a>:</p>
<p>If you don’t have dedicated memory with your account you need instead just download the typo.tgz and install it like any other rails application.</p>
<p>So, I just downloaded typo.tgz and followed the <a href="http://www.hostingrails.com/forums/wiki_thread/1"><span><strong>regular tutorial</strong></span></a> on getting a Rails app deployed.  It worked perfectly!  Now I just need to figure out the whole caching thing, which may or may not be a problem with typo via fastcgi.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lisasawin.com/2008/05/getting-started/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
