<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6.3" -->
<rss version="0.92">
<channel>
	<title>Sketchpad - Dan Sketcher's personal blog</title>
	<link>http://www.dansketcher.com</link>
	<description>Dan Sketcher on Rails, computers, and other junk</description>
	<lastBuildDate>Wed, 09 Apr 2008 15:10:07 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Running one migration by hand</title>
		<description>Sometimes, you want to run a single migration by hand (to test it maybe...)

You can do this from the command line:


ruby script/runner 'require "db/migrate/005_create_blogs"; CreateBlogs.migrate(:down)'
ruby script/runner 'require "db/migrate/005_create_blogs"; CreateBlogs.migrate(:up)'
 </description>
		<link>http://www.dansketcher.com/2008/03/25/running-one-migration-by-hand/</link>
			</item>
	<item>
		<title>DRYing up Actions with a page_errorhandler</title>
		<description>When I am developing page actions, I quite often find myself approaching a standard get/post action in the same way. This is particularly because I want to validate a number of ActiveRecord models, only progressing if they are ALL valid, and showing all errors at once

Of course, that means that ...</description>
		<link>http://www.dansketcher.com/2008/03/09/drying-up-actions-with-a-page_errorhandler/</link>
			</item>
	<item>
		<title>Master Pages for Rails (or, Heirarchial Layouts)</title>
		<description>One of the things that I like about the .net web application setup is the concept of Master Pages. The most common usage of this is if you have a Home Page that has a slightly different layot from the rest of the site, but you want to share the ...</description>
		<link>http://www.dansketcher.com/2008/03/07/master-pages-for-rails-or-heirarchial-layouts/</link>
			</item>
	<item>
		<title>Guide to Electronic Music</title>
		<description>I found this Guide to Electronic Music - it's so comprehensive it makes my head spin... but now when someone ask me what I think of weird music variants I'll be able to give them an answer ;)

 </description>
		<link>http://www.dansketcher.com/2007/08/11/guide-to-electronic-music/</link>
			</item>
	<item>
		<title>ZFS Boot with NextentaOS</title>
		<description>Little bit behind the 8-ball on posting this, but I came across this post at AspiringSysadmin.com - ZFS boot without having to manually set it up like you currently have to do with OpenSolaris.

NexentaOS is a GNU operating system that uses apt on top of the OpenSolaris kernel and runtime. ...</description>
		<link>http://www.dansketcher.com/2007/08/09/zfs-boot/</link>
			</item>
	<item>
		<title>JRuby-OpenSSL and HTTP request timeouts (in ActiveSalesforce)</title>
		<description>So, JRuby looks pretty cool, and I've got some code written that uses a weird BouncyCastle encryption implementation going in my rails app. Works well, the WAR deployment works (with goldspike) and everything's going swimmingly.

Until, of course, I tried to integrate with Another Project that uses the ActiveSalesforce. Behind the ...</description>
		<link>http://www.dansketcher.com/2007/07/20/jruby-openssl-and-http-request-timeouts-in-activesalesforce/</link>
			</item>
	<item>
		<title>Integrating Log4r and Ruby on Rails</title>
		<description>Aaaaaaaages ago, I wrote a message on the mailing list (before it moved to Google Groups!) about how to integrate Rails and Log4r. Since then a little bit has changed and that way may or may not entirely work any more. Since then, aaaaages ago Jason Rimmer asked me to ...</description>
		<link>http://www.dansketcher.com/2007/06/16/integrating-log4r-and-ruby-on-rails/</link>
			</item>
	<item>
		<title>Rails composite primary key support</title>
		<description>I am working with a legacy database. Usually, the built in rails stuff for table prefixing and primary key changes is enough. Sometimes, it's not.

I had a problem with a join table that has Foreign Key names that are tablename_id, but the tables they reference is tablename_id as well. The ...</description>
		<link>http://www.dansketcher.com/2007/06/13/rails-composite-primary-key-support/</link>
			</item>
	<item>
		<title>Wordpress &#60;code&#62; and &#60;pre&#62; formatting</title>
		<description>After the last paste-heavy post, I finally got around to doing something about wordpress's formatting of code blocks. This site was very helpful:

http://tjulo.blogspot.com/2007/03/wordpress-and-source-code-posts.html

So, edit the file wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js.

Comment out the section that replaces pre content:


/* var startPos = -1;
while ((startPos = content.indexOf('', startPos+1);
var innerPos = content.indexOf('>', startPos+1);
var chunkBefore = content.substring(0, innerPos);
var ...</description>
		<link>http://www.dansketcher.com/2007/06/07/wordpress-code-and-pre-formatting/</link>
			</item>
	<item>
		<title>Rails ActionWebService SOAP error &#8220;No valid method call - missing method name&#8221;</title>
		<description>For a Salesforce.com integration project, I need to create a SOAP server to accept messages from Salesforce. Seeing as there is no way directly import a wsdl into ActionWebService, I instead used wsdl2ruby from the soap4r distribution to generate server stubs. Then, I used ActionWebService to emulate the same service. ...</description>
		<link>http://www.dansketcher.com/2007/06/06/rails-actionwebservice-soap-error-no-valid-method-call-missing-method-name/</link>
			</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.469 seconds -->
