<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.5.1" -->
<rss version="0.92">
<channel>
	<title>Erik A. Hanson</title>
	<link>http://www.eahanson.com</link>
	<description>My weblog</description>
	<lastBuildDate>Tue, 24 Jun 2008 05:12:52 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>New Test Runner for JsUnit</title>
		<description>Christian Williams created a new test runner for JsUnit. More info here. </description>
		<link>http://www.eahanson.com/2008/05/18/new-test-runner-for-jsunit/</link>
			</item>
	<item>
		<title>A Rake Task to Concatenate and Compress Javascript Files</title>
		<description>A while ago, I wrote about a Ruby script to concatenate and compress Javascript files for my wshlst application. I've changed things around a bit since that article, so I thought it was time for an update.

Background
wshlst uses a lot of Javascript. When developing, I want to have all of ...</description>
		<link>http://www.eahanson.com/2008/03/02/a-rake-task-to-concatenate-and-compress-javascript-files/</link>
			</item>
	<item>
		<title>Firing mouse events in tests</title>
		<description>The Bad News
Sending mouse events such as click and mouseover in JsUnit tests can be really hard.

More Bad News
Prototype doesn't make it any easier. Sam Stephenson says:


We would very much like to support it in the future.  It's fairly complicated to implement native event firing across all supported browsers, ...</description>
		<link>http://www.eahanson.com/2008/01/01/firing-mouse-events-in-tests/</link>
			</item>
	<item>
		<title>My time zone solution: RelativeDate.js and ServerTime.js</title>
		<description>For my wshlst.com project, I needed to show when each item or comment was created or edited. My initial implementation was to just show the time and date of the change, but people who aren't in the same time zone as my server didn't like the fact that it showed ...</description>
		<link>http://www.eahanson.com/2007/10/31/my-time-zone-solution-relativedatejs-and-servertimejs/</link>
			</item>
	<item>
		<title>wshlst.com: A Webapp With A Pure-Javascript UI</title>
		<description>I created a little wish list website called wshlst.com for my family to use. (Read more about it here.) I worked on it a little bit before Christmas last year, and a little bit again this year.

It's been a lot of fun to write, and one reason is that the ...</description>
		<link>http://www.eahanson.com/2007/10/25/wshlstcom-a-webapp-with-a-pure-javascript-ui/</link>
			</item>
	<item>
		<title>Introducing wshlst.com</title>
		<description>wshlst.com is a wish list website I created for my family to use. 

It differs from other wish list sites in a few ways: it's group-oriented, it allows people to add items to other peoples' wish lists (secretly, if desired), and it allows people to discuss wish list items (again, ...</description>
		<link>http://www.eahanson.com/2007/10/24/wshlstcom/</link>
			</item>
	<item>
		<title>A Ruby Script to Concatenate and Compress Javascript Files</title>
		<description>I've got an HTML page that includes a bunch of Javascript files, which makes development easy but which hurts performance in production.

The standard solution is to concatenate all the Javascript files into one big file and then compress it. I wanted it to be automated of course, and I wanted ...</description>
		<link>http://www.eahanson.com/2007/10/16/a-ruby-script-to-concatenate-and-compress-javascript-files/</link>
			</item>
	<item>
		<title>Big New Feature In JsUnit 2.2 alpha 25</title>
		<description>In order to run all test functions in a test page, JsUnit naturally needs to know what those test functions are. It's able to get a list of those functions from Firefox, Safari and Opera, but it's not able to get them from Internet Explorer. 

So in IE, JsUnit has ...</description>
		<link>http://www.eahanson.com/2007/08/13/big-new-feature-in-jsunit-22-alpha-25/</link>
			</item>
	<item>
		<title>An AppleScript to Clean Up My Downloads Folder</title>
		<description>My downloads folder always gets so full after a while that I have a hard time finding things. I like to keep stuff around for a little while in case I need it again, and if I have the space, I like to keep things around for a long time, ...</description>
		<link>http://www.eahanson.com/2007/08/11/an-applescript-to-clean-up-my-downloads-folder/</link>
			</item>
	<item>
		<title>Minor New Features In JsUnit 2.2alpha24</title>
		<description>I added a few new features to JsUnit and tagged it as version 2.2 alpha 24. Browse the new version at SourceForge or check it out like this:

  svn co https://jsunit.svn.sf.net/svnroot/jsunit/tags/v2_2alpha24/jsunit/ jsunit


Show Log
There's now a "Show Log" button that opens a window with a log of what JsUnit has ...</description>
		<link>http://www.eahanson.com/2007/08/09/minor-new-features-in-jsunit-22alpha24/</link>
			</item>
	<item>
		<title>A Ruby Script To Generate a JsUnit Suite</title>
		<description>I've got a bunch of JsUnit tests for a project I'm working on and I wanted an easy way to create a JsUnit suite that can run all the tests but also run any individual test page.

Also, I wanted to be able to view any test page so I could ...</description>
		<link>http://www.eahanson.com/2007/05/26/a-ruby-script-to-generate-a-jsunit-suite/</link>
			</item>
	<item>
		<title>Element.stylize via Prototype.js</title>
		<description>I often want to add a bunch of styles to an element, so I wrote a stylize method so I can do something like this:

$("foo").stylize({
  color: red,
  background-color: green,
  text-decoration: underline
});
Implementing stylize is easy with Prototype's Element.addMethods() method:

var ElementExtensions = {
  stylize: function(element, styles) {
  ...</description>
		<link>http://www.eahanson.com/2007/05/25/elementstylize-via-prototypejs/</link>
			</item>
	<item>
		<title>Installing termios gem on Mac OS X</title>
		<description>When installing Capistrano, you should install the termios gem so that your password isn't echoed when you type it.
Easier said than done
Here's the error I got:

$sudo gem install termios
Attempting local installation of 'termios'
Local gem file not found: termios*.gem
Attempting remote installation of 'termios'
Updating Gem source index for: http://gems.rubyforge.org
Building native extensions.  ...</description>
		<link>http://www.eahanson.com/2007/02/03/installing-termios-gem-on-mac-os-x/</link>
			</item>
	<item>
		<title>Free Website Monitoring</title>
		<description>I was looking around for a good website monitoring service or script, and I found Montastic which is a free website monitoring service.

There's even a Monstatic Widget for Yahoo Widgets.

I only wish it had Jabber notification in addition to email notification.

I also read about dwatch but I figured a service ...</description>
		<link>http://www.eahanson.com/2007/01/14/free-website-monitoring/</link>
			</item>
	<item>
		<title>Debugging a JsUnit Test With Firebug</title>
		<description>Sometimes I find that I want to debug a JsUnit test because I'm not quite sure what's going on in the browser.

FireBug has a nice debugger, but I couldn't get it to work with the JsUnit test runner. I could set breakpoints in JsUnit itself, but any breakpoints in my ...</description>
		<link>http://www.eahanson.com/2006/11/16/debugging-a-jsunit-test-with-firebug/</link>
			</item>
	<item>
		<title>A Bold Prompt in Bash</title>
		<description>I wanted my Bash prompt to be bold and red so I could find my one line of input amongst the million lines of output in my terminal. I'm no Unix nerd, so I don't really know offhand where to look for this info. After a bunch of Googling, I ...</description>
		<link>http://www.eahanson.com/2006/02/12/a-bold-prompt-in-bash/</link>
			</item>
	<item>
		<title>Join Tables with Attributes in Rails</title>
		<description>I had a little trouble today with join tables that contain attributes. 

Creating the join table
Starting with tables foos and bars, I created a join table bars_foos. (Rails expects the join table's name to be a concatenation of the two table names in alphabetical order). 

Reading attributes
I added an attribute ...</description>
		<link>http://www.eahanson.com/2006/02/12/join-tables-with-attributes-in-rails/</link>
			</item>
	<item>
		<title>Setting XSL Parameters from Javascript in AJAXSLT</title>
		<description>Google's AJAXSLT library is very nice, but it is lacking in documentation and sometimes hard to figure out.

Recently, I was trying to pass some info from my Javascript into my XSL stylesheet. Here's how I finally did it:

(Quick note: in real life, I don't name variables &#34;myThis&#34; and &#34;myThat&#34;; I'm ...</description>
		<link>http://www.eahanson.com/2005/10/23/setting-xsl-parameters-from-javascript-in-ajaxslt/</link>
			</item>
	<item>
		<title>A Mac OS X Web Browser for JavaScript Testing</title>
		<description>I was playing with a very JavaScript-heavy web page and wanted my automated tests to use a real web browser. I tried running them inside Safari, but it's a bit annoying to have my tests take control of my browser. Plus, there were caching issues. So I wrote a very ...</description>
		<link>http://www.eahanson.com/2005/10/02/writing-a-mac-os-x-web-browser-for-javascript-testing/</link>
			</item>
	<item>
		<title>How To Use Google&#8217;s Ajaxslt Library</title>
		<description>Google has written an open-source library called Ajaxslt that implements XPath and XSLT in Javascript.

It took a bit of playing to get it to work. Here's some sample code. (I forgot to write it up when I did it, so I might have left something out.)

Setup

First, include the scripts. Note: ...</description>
		<link>http://www.eahanson.com/2005/09/30/how-to-use-googles-ajaxslt-library/</link>
			</item>
	<item>
		<title>Writing a Ruby Test Suite that RDT and Test::Unit Can Understand</title>
		<description>I'm working on a Ruby project using Eclipse and RDT. RDT provides a couple useful features, including support for running unit tests with Test::Unit. Unfortunately, it's pretty primitive at the moment.

One big problem is that it can't run all your tests. So we wrote a test suite class that runs ...</description>
		<link>http://www.eahanson.com/2005/09/20/writing-a-ruby-test-suite-that-rdt-and-testunit-can-understand/</link>
			</item>
	<item>
		<title>Installing Ruby on Rails on Mac OS X 10.4 (Tiger)</title>
		<description>I had a hell of a time getting Ruby on Rails to work on Mac OS X 10.4 (Tiger).

Here's what ended up working for me. It's based on the instructions on Jamie's Blogomatic.

1. Install the XCode tools from the Tiger DVD.

2. Download and run the Ruby on Rails installer from: ...</description>
		<link>http://www.eahanson.com/2005/09/07/instaling-ruby-on-rails-on-mac-os-x-104-tiger/</link>
			</item>
</channel>
</rss>
