<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.8.4" -->
<rss version="0.92">
<channel>
	<title>Pennysmalls</title>
	<link>http://pennysmalls.com</link>
	<description>A blog about Ruby, Rails and other tech.  Mostly.</description>
	<lastBuildDate>Thu, 04 Mar 2010 07:24:12 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Much faster Rails tests if you use MyISAM</title>
		<description>Here's a little insight I had the other day.

If you use MyISAM tables, and there are various performance related reasons you might, then you've been stuck having to turn transactional fixtures off in your tests.

But unless you are using some special feature of MyISAM that is not present in InnoDB, ...</description>
		<link>http://pennysmalls.com/2009/11/05/much-faster-rails-tests-if-you-use-myisam/</link>
			</item>
	<item>
		<title>FastImageInline &#8211; inline images in your html code</title>
		<description>You may not know this, and I didn't until recently, but you can place images directly in your img tags.  Not just the address of them, but the whole binary data - base 64 encoded.

The technique is based on the Data URI scheme.

Take a look at the source of ...</description>
		<link>http://pennysmalls.com/2009/09/23/fastimageinline-inline-images-in-your-html-code/</link>
			</item>
	<item>
		<title>Recent code &#8211; FastImage resize, Scrooge and Read From Slave</title>
		<description>A roundup of some of my projects that may be of interest:

1. FastImage Resize

This builds on my work on FastImage to provide an image resize facility.  The resize code calls libgd to do the work of resampling and resizing the image - this is a library that is very likely ...</description>
		<link>http://pennysmalls.com/2009/07/14/recent-code-fastimage-resize-scrooge-and-read-from-slave/</link>
			</item>
	<item>
		<title>FastImage finds image dimensions fast using minimal resources</title>
		<description>I just released a gem to find image dimensions and type information fast.  I have previously done some work in this area, but this is a much more comprehensive solution, and fixes problems with certain jpegs.

FastImage finds the size or type of an image given its uri by fetching ...</description>
		<link>http://pennysmalls.com/2009/06/11/fastimage-finds-image-dimensions-fast-using-minimal-resources/</link>
			</item>
	<item>
		<title>Ferret on Ruby 1.9.1</title>
		<description>I took the trouble to port ferret to ruby 1.9.1 yesterday evening.  I have it working on my mac.

Here's a gem for you to try - I have labelled it 0.11.6.19.  If you use it let me know how it runs, but it's at your own risk, I haven't extensively ...</description>
		<link>http://pennysmalls.com/2009/03/24/ferret-on-ruby-191/</link>
			</item>
	<item>
		<title>Rails 2.3 breakage and fixage</title>
		<description>Rails 2.3 will be with us soon, so I took the time to update our app to be compatible.  It's a reasonably large app (26,000 LOC), so there's bound to be some issues.

The first thing to notice is that the PStore store for sessions has completely gone away.  ...</description>
		<link>http://pennysmalls.com/2009/03/04/rails-23-breakage-and-fixage/</link>
			</item>
	<item>
		<title>Using acts as ferret with phusion passenger / mod_rails</title>
		<description>The passenger manual makes it clear that you need to close and reestablish your connections to things like memcached after it forks to avoid inadventently sharing file handles.  The reason is well and clearly explained there.

The api to do this is simple - just place this kind of code ...</description>
		<link>http://pennysmalls.com/2009/03/02/using-acts-as-ferret-with-phusion-passenger-mod_rails/</link>
			</item>
	<item>
		<title>Yum refuses to update</title>
		<description>I happens that I wish to upgrade apache, and I know there is an update available.
So, I follow the advice given:

# yum update httpd
Setting up Update Process
Could not find update match for httpd
No Packages marked for Update

Ok, that's not working.  Let's try this:

# yum clean all
Cleaning up Everything
# yum ...</description>
		<link>http://pennysmalls.com/2009/02/24/yum-refuses-to-update/</link>
			</item>
	<item>
		<title>Breakage and fixage in Rails 2.2</title>
		<description>Finally our app is completely Rails 2.2 ready.

Some quick notes on some issues and things that needed to be fixed:

1. Default error messages

This call is no good any more


ActiveRecord::Errors.default_error_messages


Use this instead:


I18n.translate('activerecord.errors.messages')



2. Use ActiveSupport::Inflector rather than Inflector

The warning tells you all you need to know:


DEPRECATION WARNING: Inflector is deprecated! 
Use ActiveSupport::Inflector ...</description>
		<link>http://pennysmalls.com/2008/11/29/breakage-and-fixage-in-rails-22/</link>
			</item>
	<item>
		<title>Backup now</title>
		<description>Ever seen a shattered hard disk?



It happened to a friend.  So backup your data.  Now! </description>
		<link>http://pennysmalls.com/2008/11/21/backup-now/</link>
			</item>
</channel>
</rss>
