<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>How Sharper Than a Dragon's... - Home</title>
  <id>tag:blog.dragonsharp.com,2010:mephisto/</id>
  <generator version="0.8.0" uri="http://mephistoblog.com">Mephisto Drax</generator>
  <link href="http://blog.dragonsharp.com/feed/atom.xml" rel="self" type="application/atom+xml"/>
  <link href="http://blog.dragonsharp.com/" rel="alternate" type="text/html"/>
  <updated>2009-12-03T22:20:28Z</updated>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-12-03:639</id>
    <published>2009-12-03T22:02:00Z</published>
    <updated>2009-12-03T22:20:28Z</updated>
    <category term="Ruby &amp; Rails"/>
    <category term="3rdrail"/>
    <category term="acts_as"/>
    <category term="mac"/>
    <category term="rails"/>
    <category term="ruby"/>
    <category term="snowleopard"/>
    <category term="subclipse"/>
    <category term="svn"/>
    <link href="http://blog.dragonsharp.com/snow-leopard-bites-me-on-the-a-again" rel="alternate" type="text/html"/>
    <title>Snow Leopard bites me on the a$$ again</title>
<content type="html">
            &lt;p&gt;
Twice, actually.
&lt;/p&gt;
&lt;p&gt;
First, there was the, I think, Ruby 1.8.7 upgrade.  Suddenly, my home-grown acts_as_my_thing plugin stops working.  The classes with &quot;acts_as_my_thing&quot; crash and burn when loading, saying that &quot;acts_as_my_thing&quot; doesn't exist.  Crap.  Now what?
&lt;/p&gt;
&lt;p&gt;
Eventually I managed to find the proper incantation.  I have an abstract super class for a bunch of my models.  It's called LabRecord.  In the file that defines my &quot;acts_as_my_thing&quot;, I had:&lt;br /&gt;
&lt;code&gt;
LabRecord.class_eval do
  include Lti::Acts::MyThing
end
&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;
I think there is a class-loading chicken-and-egg problem going on, so after trying a bunch of stuff like moving around &quot;requires&quot; in the environment.rb file, I eventually decided that I was &quot;doin it rong&quot;, and did this instead:&lt;br /&gt;
&lt;code&gt;
class LabRecord &amp;lt; ActiveRecord::Base
  include Lti::Acts::MyThing
...
&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;
But, that wasn't the end of my day.  I did say twice, didn't I?  A little while later I was diddling around with svn in my Rails project, and then BOOM.  3rdRail/Subclipse couldn't read my workspace anymore:&lt;br /&gt;
&lt;code&gt;
Unsupported working copy format
svn: This client is too old to work with working copy '/Users/lori/Documents/workspaces/labrador/dev2'.  You need
to get a newer Subversion client, or to downgrade this working copy.
See http://subversion.tigris.org/faq.html#working-copy-format-change
for details.
&lt;/code&gt;
I'm too tired for this shit.  Sigh.  At least if you follow the link, you can download the Python script which will convert your Subversion workspace back to 1.5 (Snow Leopard has SVN 1.6), and get back to it.
&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-11-01:637</id>
    <published>2009-11-01T21:30:00Z</published>
    <updated>2009-11-01T21:46:21Z</updated>
    <category term="bindings"/>
    <category term="interface builder"/>
    <category term="nsarraycontroller"/>
    <category term="pragprowrimo"/>
    <link href="http://blog.dragonsharp.com/interface-builder-hates-me" rel="alternate" type="text/html"/>
    <title>Interface Builder hates me - PragProWriMo</title>
<content type="html">
            &lt;p&gt;Since I've already tried the write-a-book thing before, and I &lt;strong&gt;know&lt;/strong&gt; I suck at it, I'm opting for the &quot;blog entry a day&quot; thing... which actually means more like &quot;blog entry a week&quot;.  I know that sounds bad, but when you consider how often I've been blogging, it's a vast improvement, so...
&lt;/p&gt;
&lt;p&gt;
To get down to it, maybe it's more like I hate Interface Builder... but not really.  It's just that I have not yet &quot;become one&quot; with my tool, and we have these little spats from time to time.
&lt;/p&gt;
&lt;p&gt;
I've been fighting with an Array Controller in IB, because it has no bindings listed.  If you know IB and Array Controllers, you will know why that is wrong/bad.  I can't bind any content into my array, and that's a big problem.  I finally noticed that the icon for my bad array controller didn't look like the icon for a different, working array controller.  This was a key breakthrough.  And I finally figured out what I did wrong.  When I added the array controller to my XIB file, I dragged in a plain old Object, and then changed the class to be my custom NoiseArrayController.  That was it.  What I shoulda done - drag in a generic ArrayController object, and then change IT to be my custom class.
&lt;/p&gt;
&lt;p&gt;
Simple error.  Hours of frustration.  So, if an Array Controller in your XIB file doesn't have any bindings, maybe you did what I did.  You have to get rid of it and start over with the correct base NSArrayController.  Then you'll be rockin.  Sigh.  
&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-09-17:636</id>
    <published>2009-09-17T05:14:00Z</published>
    <updated>2009-09-17T05:16:24Z</updated>
    <category term="cocoa"/>
    <category term="mac"/>
    <category term="version"/>
    <link href="http://blog.dragonsharp.com/pulling-out-your-mac-app-version-number" rel="alternate" type="text/html"/>
    <title>Pulling out your Mac app version number</title>
<content type="html">
            &lt;p&gt;
File this one under useful snippets for Mac Cocoa development.  How to extract the application version number out of your app's info.plist file.
&lt;/p&gt;
&lt;br /&gt;
&lt;code&gt;
[[NSBundle mainBundle] objectForInfoDictionaryKey:@&quot;CFBundleShortVersionString&quot;];
&lt;/code&gt;
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-09-05:635</id>
    <published>2009-09-05T15:04:00Z</published>
    <updated>2009-09-05T15:04:43Z</updated>
    <category term="application support"/>
    <category term="cocoa"/>
    <category term="files"/>
    <category term="mac"/>
    <link href="http://blog.dragonsharp.com/creating-application-support-files-on-the-mac" rel="alternate" type="text/html"/>
    <title>Creating application support files on the Mac</title>
<content type="html">
            &lt;br /&gt;
&lt;p&gt;
You are writing a Mac Cocoa application, and you know you want to store your user specific application support files in a predictable location, like &lt;code&gt;~/Library/Application Support/&amp;lt;Application&amp;gt;/&lt;/code&gt;.  So... how exactly do we do that?
&lt;/p&gt;
&lt;p&gt;
 Once again, Google to the rescue, and we find the answer at &lt;a href=&quot;http://www.cocoadevcentral.com/articles/000084.php&quot;&gt;Cocoa Dev Central&lt;/a&gt;.  This will not only construct the file name for you, but it will create the directory if it doesn't exist, too.
&lt;/p&gt;
&lt;code&gt;
&lt;pre&gt;
- (NSString *) pathForDataFile { 
    NSFileManager *fileManager = [NSFileManager defaultManager]; 

    NSString *folder = @&quot;~/Library/Application Support/MyApplication/&quot;; 
    folder = [folder stringByExpandingTildeInPath]; 

    if ([fileManager fileExistsAtPath: folder] == NO) { 
        [fileManager createDirectoryAtPath:folder attributes: nil]; 
    }

    NSString *fileName = @&quot;MyApplication.mysettings&quot;; 
    return [folder stringByAppendingPathComponent: fileName];
} 
&lt;/pre&gt;
&lt;/code&gt;
&lt;p&gt;
Again, an example that &lt;b&gt;just works&lt;/b&gt;.  I'm on a roll today.
&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-09-02:634</id>
    <published>2009-09-02T21:28:00Z</published>
    <updated>2009-09-02T21:37:05Z</updated>
    <category term="cocoa"/>
    <category term="interface builder"/>
    <category term="mac"/>
    <category term="sheets"/>
    <link href="http://blog.dragonsharp.com/cocoa-sheets" rel="alternate" type="text/html"/>
    <title>Cocoa Sheets</title>
<content type="html">
            &lt;p&gt;
I was struggling with my Photoshop plugin again.  The plugin window is modal.  But then I need to pop up a modal window, in order to prompt the user for new name/description for the user-saved presets.  I was puzzling and Googling, and then I stumbled across a reference to &quot;sheets&quot;.  Bingo!
&lt;/p&gt;
&lt;p&gt;
This page has the &lt;b&gt;best&lt;/b&gt; little example of &lt;a href=&quot;http://www.cocoadev.com/index.pl?DisplayingSheets&quot;&gt;sheet usage&lt;/a&gt;.  I was able to copy/paste and then a couple of tweaks, and a couple IB bindings and it all &lt;b&gt;just worked&lt;/b&gt;. 
&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;&lt;pre&gt;
- (IBAction)openSheet:(id)sender
{
	[NSApp beginSheet: theSheet
			modalForWindow: theParent
			modalDelegate: self
			didEndSelector: @selector(sheetDidEnd: returnCode: contextInfo:)
			contextInfo:NULL];
}

- (IBAction)theSheetOK:(id)sender
{
	[NSApp endSheet:theSheet returnCode: NSOKButton];
	[theSheet orderOut:nil];
}

- (IBAction)theSheetCancel:(id)sender
{
	[NSApp endSheet:theSheet returnCode: NSCancelButton];
	[theSheet orderOut:nil];
}

- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo
{
	if (returnCode == NSOKButton)
		NSBeep();
}
&lt;/pre&gt;&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;
I really love code examples that just work.
&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-07-08:633</id>
    <published>2009-07-08T20:24:00Z</published>
    <updated>2009-07-08T20:27:19Z</updated>
    <category term="carbon"/>
    <category term="cocoa"/>
    <category term="interface builder"/>
    <category term="mac"/>
    <link href="http://blog.dragonsharp.com/interesting-endless-loop" rel="alternate" type="text/html"/>
    <title>Interesting endless loop</title>
<content type="html">
            &lt;p&gt;
Cocoa-in-Carbon application.  Note to self.  Do NOT &quot;freeze-dry&quot; a controller object in your NIB file, especially if your controller object opens your NIB file in it's init method.
&lt;p&gt;
Just sayin.
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-06-22:632</id>
    <published>2009-06-22T18:36:00Z</published>
    <updated>2009-06-22T18:38:39Z</updated>
    <category term="cyborg"/>
    <category term="fun"/>
    <link href="http://blog.dragonsharp.com/my-cyborg-name-is" rel="alternate" type="text/html"/>
    <title>My cyborg name is...</title>
<content type="html">
            &lt;p&gt;&lt;a href=&quot;http://cyborg.namedecoder.com&quot;&gt;
&lt;/a&gt;
&lt;br /&gt;&lt;a href=&quot;http://cyborg.namedecoder.com&quot;&gt;&lt;small&gt;Get Your Cyborg Name&lt;/small&gt;&lt;/a&gt;&lt;/p&gt;
&lt;br /&gt;
Because sometimes, you need to just have fun, too.  BTW, My &lt;a href=&quot;http://phasorburn.com/index.php/archive/hi-my-cyborg-name-is/&quot;&gt;husband&lt;/a&gt; made me do it!
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-06-19:631</id>
    <published>2009-06-19T17:36:00Z</published>
    <updated>2009-06-19T18:09:24Z</updated>
    <category term="mac"/>
    <category term="parallels"/>
    <category term="partition"/>
    <category term="windows"/>
    <link href="http://blog.dragonsharp.com/resizing-windoze-parallels-hdd-files" rel="alternate" type="text/html"/>
    <title>Resizing Windoze Parallels hdd files</title>
<content type="html">
            &lt;br /&gt;
&lt;p&gt;
Parallels provides a nice tool for resizing the file you have chosen as your hard drive for your virtual machine, called the Parallels Image Tool.  Unfortunately, Windows is not quite so cooperative, and will not just recognize the resized file as a larger HDD automagically.  You need to resize your partition, and Windows doesn't provide any easy ways of doing this.
&lt;/p&gt;
&lt;p&gt;
Googling for a solution, I discovered this very detailed &lt;a href=&quot;http://uneasysilence.com/archive/2007/01/9404/&quot;&gt;example&lt;/a&gt; using Gparted - the Gnome Partion Editor Tool with Parallels.   Unfortunately, it is old, and when I tried it the Gparted image refused to boot cleanly, with some sort of error on ... mouse detection, I think.  You should just go directly to &lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=115843&quot;&gt;the Gparted project at SourceForge&lt;/a&gt;, and find the most recent &lt;strong&gt;stable&lt;/strong&gt; ISO file to download.  While booting, most of the instructions from &lt;a href=&quot;http://uneasysilence.com/archive/2007/01/9404/&quot;&gt;uneasysilence&lt;/a&gt; no longer apply to the new version of Gparted, but I just went with the defaults, and it all worked.  Once GParted is up and running, then the instructions from &lt;a href=&quot;http://uneasysilence.com/archive/2007/01/9404/&quot;&gt;uneasysilence&lt;/a&gt; are useful again.
&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-06-15:630</id>
    <published>2009-06-15T22:00:00Z</published>
    <updated>2009-06-15T22:00:43Z</updated>
    <category term="Ruby &amp; Rails"/>
    <category term="blog"/>
    <category term="mephisto"/>
    <category term="plugins"/>
    <category term="rails"/>
    <category term="ruby"/>
    <category term="upgrade"/>
    <link href="http://blog.dragonsharp.com/who-needs-pagination-in-a-blog" rel="alternate" type="text/html"/>
    <title>Who needs pagination in a blog?</title>
<content type="html">
            &lt;br /&gt;
&lt;p&gt;
I don't really blog that often.  Even when I was going at full tilt, I rarely posted more than 10-12 times a month.  So... I don't care about the pagination plugin anymore.  I especially don't care when it involves 3 inter-related plugins, at different/conflicting versions!
&lt;/p&gt;
&lt;p&gt;
So I took the easy way out, I'm afraid.  Googling for alternatives, I discovered this example &lt;a href=&quot;http://pastie.org/117764&quot;&gt;pastie&lt;/a&gt;, which gives me the month-by-month archive in the sidebar you see now.
&lt;/p&gt;
&lt;div&gt;

&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;
See?  Who needs pagination?
&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-06-13:629</id>
    <published>2009-06-13T04:58:00Z</published>
    <updated>2009-06-13T05:08:32Z</updated>
    <category term="blog"/>
    <category term="mephisto"/>
    <category term="plugins"/>
    <category term="rails"/>
    <category term="ruby"/>
    <category term="upgrade"/>
    <link href="http://blog.dragonsharp.com/mephisto-upgrade-started" rel="alternate" type="text/html"/>
    <title>Mephisto upgrade started</title>
<content type="html">
            I've upgraded the blog to Mephisto 0.8.1 Drax.  I would have been in serious trouble, had it not been for &lt;a href=&quot;http://blog.robseaman.com/2009/1/15/upgrading-to-mephisto-0-8-1&quot;&gt;Rob Seaman's blog&lt;/a&gt;.  Waves!  Hi, Rob.  Thanks.
&lt;p&gt;
It wasn't just a simple upgrade, in fact, it was pretty freaking complicated.  But, since I worked so hard, it should be smooth sailing for the future.
&lt;p&gt;
&lt;ol&gt;
&lt;li&gt;Upgrade to new Mephisto, and learn more about Git at the same time (Rob's blog was really useful for that part)&lt;/li&gt;
&lt;li&gt;Moved from Nginx/Mongrel setup on a Nitix box, to Apache/Passenger on Solaris 10 (SunFire V100).  (More on that later)&lt;/li&gt;
&lt;li&gt;Capified the blog, for better/faster customizations and updates. (Yeeee!!!!!)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
Seems like a lot, doesn't it?  I thought so too.  There was even a couple of days of yak-shaving involved, as I attempted to &lt;b&gt;force&lt;/b&gt; certain plugins to work, which were not compatible with 0.8.1.  Never mind.  The blog is up and running, and it will survive for a day or two without a tag cloud, or pagination.  I'll &lt;b&gt;get&lt;/b&gt; to it.  Promise.
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-05-02:615</id>
    <published>2009-05-02T18:57:00Z</published>
    <updated>2009-05-02T20:20:18Z</updated>
    <category term="rails"/>
    <category term="railsconf"/>
    <category term="ruby"/>
    <link href="http://blog.dragonsharp.com/speaking-at-railsconf-2009" rel="alternate" type="text/html"/>
    <title>Speaking at RailsConf 2009</title>
<content type="html">
            I'll be going to RailsConf next week, and (surprise), I'll also be speaking.
&lt;br /&gt;
&lt;a href=&quot;http://en.oreilly.com/rails2009/public/schedule/detail/8772&quot;&gt;Discussion Panel: Women In Rails&lt;/a&gt;
&lt;br /&gt;
Feel free to comment here, if you aren't going to the conference, but have any good discussion points to add.
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-02-20:487</id>
    <published>2009-02-20T16:51:00Z</published>
    <updated>2009-02-20T17:06:52Z</updated>
    <category term="3rdrail"/>
    <category term="rails"/>
    <category term="ruby"/>
    <link href="http://blog.dragonsharp.com/3rdrail-and-custom-ruby-on-the-mac" rel="alternate" type="text/html"/>
    <title>3rdRail and custom Ruby on the Mac</title>
<content type="html">
            I was having a lot of problems with my humongous Rails project lately, with a lot of long delays, build problems, hangs, etc.  This all came to a head on Wednesday, when I couldn't do &lt;em&gt;anything&lt;/em&gt; without having 3rdRail go and hang on me.  But, one of my coworkers who also uses 3rdRail was not experiencing similar problems, so I had to come to the conclusion that the problem was... me.
&lt;p&gt;
I've been doing Rails development on my Mac for over 3 years now.  This was pre-Leopard, so I had an installed-from-source Ruby that I used.  I've been telling myself that this was just smart, because the Ruby that comes with Leopard now is subject to change, any time that Apple cares to issue a software update.  I prefer to have my development tools under my own control.
&lt;p&gt;
Unfortunately, it seems that this custom Ruby install was the primary difference between my coworker and I, so on Wednesday afternoon I bit the bullet and ripped /usr/local out of my system (bye-bye custom MySQL, Apache, Ruby), and started the painful process of re-installing all the gems I needed using Apple's Ruby (yes, including the Oracle drivers and RMagick.... it wasn't a pleasant afternoon).
&lt;p&gt;
Well, now, don't I feel stupid... 3rdRail now builds/rebuilds my project in a reasonable amount of time, without all the stutters and hangs.
&lt;p&gt;
So, I'm posting this as an FYI.  IF you run into build problems with 3rdRail, it might just be your Ruby install.
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-01-23:464</id>
    <published>2009-01-23T17:48:00Z</published>
    <updated>2009-01-23T17:49:40Z</updated>
    <category term="blackfish"/>
    <category term="dscacheutil"/>
    <category term="java"/>
    <category term="leopard"/>
    <category term="lookupd"/>
    <category term="mac"/>
    <link href="http://blog.dragonsharp.com/blackfish-install-on-mac-leopard" rel="alternate" type="text/html"/>
    <title>Blackfish install on Mac - Leopard</title>
<content type="html">
            This is old information, too, but I hope it is still useful.  When I was attempting to install the most recent version of Blackfish (successor to JDataStore) on my Macbook Pro with Leopard, the install failed.  Looking in the console for a clue as to what went wrong, I discovered:&lt;br /&gt;&lt;br /&gt;
&lt;code&gt;
08/08/03 12:03:02 PM [0x0-0x30b30b].jds_install[50294] sh: /usr/sbin/lookupd: No such file or directory 
&lt;/code&gt;
&lt;br /&gt;&lt;br /&gt;
This is not an uncommon problem for Leopard.  The &lt;strong&gt;lookupd&lt;/strong&gt; command was replaced by &lt;strong&gt;dscacheutil&lt;/strong&gt;.  I got around the problem, and got the install to complete successfully by doing this from a terminal:
&lt;br /&gt;&lt;br /&gt;
&lt;code&gt;&lt;pre&gt;
lori@draco ~
$ cd /usr/sbin
lori@draco /usr/sbin
$ sudo ln -s /usr/bin/dscacheutil lookupd
&lt;/pre&gt;&lt;/code&gt;
&lt;br /&gt;&lt;br /&gt;
Make sure you delete that &lt;strong&gt;lookupd&lt;/strong&gt; link when you are finished.  The syntax for &lt;strong&gt;dscacheutil&lt;/strong&gt; is similar, but not identical, and you might end up with other weird errors if you forget, and some application tries to use lookupd in a different way.
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-01-23:463</id>
    <published>2009-01-23T17:22:00Z</published>
    <updated>2009-01-23T17:22:38Z</updated>
    <category term="cloud"/>
    <category term="grid"/>
    <category term="hosting"/>
    <category term="it"/>
    <category term="saas"/>
    <category term="virtualization"/>
    <category term="web"/>
    <link href="http://blog.dragonsharp.com/the-blind-men-and-the-cloud" rel="alternate" type="text/html"/>
    <title>The Blind Men and the Cloud</title>
<content type="html">
            I know this article is old, but it's worth repeating... over and over.  Originally appeared on &lt;a href=&quot;http://www.theserverside.com/news/thread.tss?thread_id=50486&quot;&gt;The Server Side&lt;/a&gt;

&lt;pre&gt;
The Blind Men and the Cloud

It was six men of Info Tech
To learning much inclined,
Who went to see the Cloud
(Though all of them were blind),
That each by observation
Might satisfy his mind

The First approached the Cloud,
So sure that he was boasting
&quot;I know exactly what this is…
This Cloud is simply Hosting.&quot;

The Second grasped within the Cloud,
Saying, &quot;No it's obvious to me,
This Cloud is grid computing…
Servers working together in harmony!&quot;

The Third, in need of an answer,
Cried, &quot;Ho! I know its source of power
It's a utility computing solution
Which charges by the hour.&quot;

The Fourth reached out to touch it,
It was there, but it was not
&quot;Virtualization,&quot; said he.
&quot;That's precisely what we've got!&quot;

The Fifth, so sure the rest were wrong
Declared &quot;It's sass you fools,
Applications with no installation
It's breaking all the rules!&quot;

The Sixth (whose name was Benioff),
Felt the future he did know,
He made haste in boldly stating,
&quot;This *IS* Web 3.0.&quot;

And so these men of Info Tech
Disputed loud and long,
Each in his own opinion
Exceeding stiff and strong,
Though each was partly in the right,
And all were partly wrong!
&lt;/pre&gt;
          </content>  </entry>
  <entry xml:base="http://blog.dragonsharp.com/">
    <author>
      <name>lori</name>
    </author>
    <id>tag:blog.dragonsharp.com,2009-01-23:462</id>
    <published>2009-01-23T05:08:00Z</published>
    <updated>2009-01-23T05:08:24Z</updated>
    <category term="caching"/>
    <category term="performance"/>
    <category term="rails"/>
    <category term="ruby"/>
    <link href="http://blog.dragonsharp.com/rails-page-fragment-caching" rel="alternate" type="text/html"/>
    <title>Rails page fragment caching</title>
<content type="html">
            Our Rails application is very dynamic, so page and action caching are not really suitable.   But page fragment caching is quite useful.  I was implementing this yesterday, and using Greg and Ryan's very useful little &lt;a href=&quot;http://www.railsenvy.com/2007/3/20/ruby-on-rails-caching-tutorial-part-2#cachingconfig&quot;&gt;tutorial&lt;/a&gt;, when I ran into a little difficulty...
&lt;br /&gt;&lt;br /&gt;
Where the heck are the cached fragments?
&lt;br /&gt;&lt;br /&gt;
It was puzzling, but I just couldn't find them, and I was going nuts searching.  I thought maybe Passenger was overriding the default location, and stashing them somewhere under Apache.  Nope.
&lt;br /&gt;&lt;br /&gt;
Turns out, the answer is fairly simple.  The tutorial was written some time ago, and since then the default cache store has changed from :file_store to :memory_store.  So you can look for the cache files forever, but you ain't gonna find them.
&lt;br /&gt;&lt;br /&gt;
So, if you want to see caching files in your development environment, you need to have these lines in your config/environments/development.rb file:
&lt;br /&gt;&lt;br /&gt;
&lt;code&gt;
config.action_controller.perform_caching             = true
config.action_controller.cache_store = :file_store, RAILS_ROOT+&quot;/tmp/cache/&quot;
&lt;/code&gt;
          </content>  </entry>
</feed>
