<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<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/"
	>

<channel>
	<title>blog.claudenix.com</title>
	<link>http://blog.claudenix.com</link>
	<description>stuff, or something</description>
	<pubDate>Fri, 30 Jan 2009 09:00:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>script/generate&#8230; fail</title>
		<link>http://blog.claudenix.com/2008/06/17/9/</link>
		<comments>http://blog.claudenix.com/2008/06/17/9/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 07:58:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[rails]]></category>

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

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

		<guid isPermaLink="false">http://blog.claudenix.com/2008/06/17/9/</guid>
		<description><![CDATA[I was reading some of the hype last night about Sproutcore and decided I&#8217;d install it and tinker around some.  The docs said there was a gem, so I installed it that way.  Fast forward to today, and I&#8217;m sitting here working on a rails app.  I need a new controller, so [...]]]></description>
			<content:encoded><![CDATA[<p>I was reading some of the hype last night about <a href="http://sproutcore.com">Sproutcore</a> and decided I&#8217;d install it and tinker around some.  The docs said there was a gem, so I installed it that way.  Fast forward to today, and I&#8217;m sitting here working on a rails app.  I need a new controller, so I do the usual:</p>
<pre><code>script/generate controller general</code></pre>
<p>and I get:</p>
<pre><code>uninitialized constant RubiGen</code></pre>
<p>Gross - wtf could have caused that?  I pop over to google, and after some digging, I found this <a href="http://groups.google.com/group/rubigen/browse_thread/thread/d41f41f740cdf604?fwc=1">post</a> where <i>Kevin D</i> says:</p>
<blockquote><p>
All I had to do was uninstall sproutcore and the related executables (sc-build, sc-gen, sc-server, sproutcore).
</p></blockquote>
<p>Hmm&#8230;</p>
<pre><code>sudo gem uninstall sproutcore</code></pre>
<p>Boom - generator works again.  I&#8217;m not sure why, nor do I care at this point.  I&#8217;ll play with Sproutcore when it plays nice with the rest of my installed gems.  In the meantime, with the attention that Sproutcore is getting after WWDC, I would imagine a lot of folks will encounter the same issue in the coming weeks, so I hope this helps somebody.</p>
<p><strong>Update: </strong> Sproutcore pushed out a new <a href="http://www.sproutcore.com/2008/06/18/sproutcore-0910-community-releasefuspr/">patch</a> on 6/18/08 that solves this and a few other issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.claudenix.com/2008/06/17/9/feed/</wfw:commentRss>
		</item>
		<item>
		<title>@stupid_users.each do &#124;slap&#124;</title>
		<link>http://blog.claudenix.com/2007/11/06/stupid_userseach-do-slap/</link>
		<comments>http://blog.claudenix.com/2007/11/06/stupid_userseach-do-slap/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 16:39:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[IMAP]]></category>

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

		<category><![CDATA[mail.app]]></category>

		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://blog.claudenix.com/2007/11/06/stupid_userseach-do-slap/</guid>
		<description><![CDATA[In my last post I wrote about a horrifying experience I had with Gmail, Mail.app(Leopard) and IMAP. As it turns out, if you have your mail client set up to store drafts on the Gmail server, it will save each copy as a new &#8220;sent&#8221; message. For Apple&#8217;s Mail.app, hit Command , to get to [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://blog.claudenix.com/2007/11/06/gmail-imap-leopard-omg-asdf-wtf/">last post</a> I wrote about a horrifying experience I had with Gmail, Mail.app(Leopard) and IMAP. As it turns out, if you have your mail client set up to store drafts on the Gmail server, it will save each copy as a new &#8220;sent&#8221; message. For Apple&#8217;s Mail.app, hit Command , to get to your preferences, click the IMAP account, and make sure this box is unticked:</p>
<p><img src="http://blog.claudenix.com/images/imap_settings.png" alt="IMAP Settings Screenshot"/></p>
<p>I thought about deleting the other post, but I figure someone else is bound to get the same scare at some point, so I&#8217;m just going to update it and link it to here. Thanks goes out to <a href="http://blog.codahale.com">Coda Hale</a> for informing me of this odd behavior.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.claudenix.com/2007/11/06/stupid_userseach-do-slap/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Gmail + IMAP + Leopard = OMG ASDF WTF?!</title>
		<link>http://blog.claudenix.com/2007/11/06/gmail-imap-leopard-omg-asdf-wtf/</link>
		<comments>http://blog.claudenix.com/2007/11/06/gmail-imap-leopard-omg-asdf-wtf/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 03:58:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[IMAP]]></category>

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

		<category><![CDATA[mail.app]]></category>

		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://blog.claudenix.com/2007/11/06/gmail-imap-leopard-omg-asdf-wtf/</guid>
		<description><![CDATA[I seriously hope that I&#8217;m the only person that&#8217;s having this problem, but somehow, I doubt it. The last week in October, the box that had my mailserver sitting on it blew up, and took DNS with it. I don&#8217;t live and die by email, but I certainly use it a lot, so this was [...]]]></description>
			<content:encoded><![CDATA[<p>I seriously hope that I&#8217;m the only person that&#8217;s having this problem, but somehow, I doubt it. The last week in October, the box that had my mailserver sitting on it blew up, and took DNS with it. I don&#8217;t live and die by email, but I certainly use it a lot, so this was a big problem.  Fortunately, google launched the new IMAP beta for Gmail the same day. So, I headed over to google accounts, singed up, did all the fiddly bits of redirecting DNS, and after about an hour of screwing around with it, I had Google Accounts hosting my mail for a domain that I own, and activated IMAP.  I configured Mail.app on all of my machines, and life was good.</p>
<p>Over the following days, I was having connectivity issues, mostly with Mail.app in Leopard. (I still have Tiger on a machine too, and did not have those problems on that install) So when I was having a problem with Mail.app, I just popped on over to the webform, composed my emails there, and sent them off. That&#8217;s supposed to be the beauty of IMAP, after all, right? It&#8217;ll show up in my Sent Mail folder in Mail.app the next time it&#8217;s able to connect, so, not THAT big of a deal.</p>
<p>Turns out, it was a bigger deal than I had realized. Gmail likes to autosave a draft for you at some interval, so that you don&#8217;t lose a message. Seems reasonable. You can even work on a draft in the webform, and come back to it later in your desktop client, because, after all, that&#8217;s the POINT of IMAP. So, where am I going with all of this? Well, there appears to be a bug somewhere in this process, and I&#8217;m not sure where or what it is yet. I discovered today that EVERY time the gmail webform saved a draft of an email, that draft was actually being SENT. What&#8217;s worse, is Gmail uses AJAX for sending mail, which tends to leave a user somewhat uninformed of what&#8217;s going on on the server side of the job, and wondering if the mail they intended to send actually went through or not. I left it alone for about ten minutes the other night, while it was seemingly hanging, and when I came back, it had done nothing, so I clicked the send button a few times to get the damn thing to go. I wound up sending 19 duplicate emails to a guy that I don&#8217;t even know. How humiliating!</p>
<p>So, I don&#8217;t know if the problem is always on the Gmail side of this, or with Gmail and Mail.app in Leopard syncing up, but flooding people&#8217;s inboxes is bad bad bad.  It&#8217;s even worse when they&#8217;re getting flooded with drafts. I deleted my Gmail account from Mail.app in Leopard, and am going to set it up again, to see if it continues to misbehave. It hadn&#8217;t connected for over an hour when I decided to just delete it, and I didn&#8217;t want to risk flooding the inboxes of any more unsuspecting strangers. I&#8217;ll post more when I know more, but in the meantime, if anyone stumbles across this post and is experiencing similar issues, I&#8217;d love to hear about them.</p>
<p><strong>UPDATED!</strong> If you&#8217;re having this problem, fear not - it&#8217;s not really a big deal. Check the <a href="http://blog.claudenix.com/2007/11/06/stupid_userseach-do-slap/">follow up</a> to this post for an explanation and a solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.claudenix.com/2007/11/06/gmail-imap-leopard-omg-asdf-wtf/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Photography is Like Wine</title>
		<link>http://blog.claudenix.com/2007/11/04/photography-is-like-wine/</link>
		<comments>http://blog.claudenix.com/2007/11/04/photography-is-like-wine/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 06:24:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[black and white]]></category>

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

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

		<guid isPermaLink="false">http://blog.claudenix.com/2007/11/04/photography-is-like-wine/</guid>
		<description><![CDATA[And that&#8217;s why I love it so much.  See, wine is an organic experience, if you will.  No two bottles are the same.  Wine is a living, and breathing thing.  You can get two bottles of wine, that are from the same vintner, of the same vintage, and the same varietal, [...]]]></description>
			<content:encoded><![CDATA[<p>And that&#8217;s why I love it so much.  See, wine is an organic experience, if you will.  No two bottles are the same.  Wine is a living, and breathing thing.  You can get two bottles of wine, that are from the same vintner, of the same vintage, and the same varietal, even the same barrel, but if you uncork them at different times, even a minute, you&#8217;re likely to get a completely different juice.  </p>
<p>Photography is the same way.  You can go someplace where thousands have been before you, and bust out your camera, and take a picture, and no matter WHAT, your picture will NEVER look like another.  The sun is different, or the sky is different, or the subject is different (as in moving water, etc).  I am probably pointing out the obvious here, but still, it brings me joy to observe it.</p>
<p>I started screwing around with HDR for the first time today, and while HDR is capable of bringing amazing color to images, I found myself most impressed with what I was able to do with a black and white image&#8230;</p>
<p><a href="http://flickr.com/photos/seadated/1849356643/" target="_blank"><img src="http://farm3.static.flickr.com/2253/1849356643_f737acc312.jpg?v=0" alt="Black and White Shot of the Russian River"/></a></p>
<p>I have a lot to learn, not only about photography, and post production too, but I can&#8217;t help but be ELATED with this shot.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.claudenix.com/2007/11/04/photography-is-like-wine/feed/</wfw:commentRss>
		</item>
		<item>
		<title>dev_rails - An AppleScript for Quicksilver - to Start Your Rails Development Environment</title>
		<link>http://blog.claudenix.com/2007/11/01/dev_rails-an-applescript-for-quicksilver-to-start-your-rails-development-environment/</link>
		<comments>http://blog.claudenix.com/2007/11/01/dev_rails-an-applescript-for-quicksilver-to-start-your-rails-development-environment/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 09:11:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[applescript]]></category>

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

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

		<guid isPermaLink="false">http://blog.claudenix.com/2007/11/01/dev_rails-an-applescript-for-quicksilver-to-start-your-rails-development-environment/</guid>
		<description><![CDATA[I&#8217;ve been wanting a script for a while now, that would pop a bunch of terminals, change to some useful directories, start services, and sit where I want them&#8230; oh, and be the size that I want them too&#8230; oh, and open up my app in TextMate too.  I googled around for a while, but [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been wanting a script for a while now, that would pop a bunch of terminals, change to some useful directories, start services, and sit where I want them&#8230; oh, and be the size that I want them too&#8230; oh, and open up my app in TextMate too.  I googled around for a while, but never really came up with much, so I decided to take some time this morning, and figure it out.  As it turns out, Applescript it isn&#8217;t terribly complicated, and with a little bit of time spent reading the docs, I was able to bust this out.  Check the link below for Apple&#8217;s official documentation:</p>
<p><a href="http://developer.apple.com/documentation/applescript/conceptual/applescriptlangguide/" target="_blank">applescript docs</a></p>
<p>So, I&#8217;ll start with how to run the thing, and then go into some details about configuring it for your particular setup.  You should know though, that the script makes a few assumptions about your development environment:</p>
<ul>
<li>You&#8217;re on a Mac (duh)</li>
<li>You&#8217;re gonna download the script (get it <a href="http://blog.claudenix.com/files/dev_rails.tgz">here</a>)</li>
<li>You use Quicksilver (if not, get it <a href="http://www.blacktree.com" target="_blank">here</a>, it&#8217;s free)</li>
<li>You use TextMate (if not, get it <a href="http://www.macromates.com" target="_blank">here</a>, there&#8217;s a free trial)</li>
<li>You have a sane structure to your project directory, and keep them in ~/work (This is easily changed, if you wish)</li>
<li>You like a terminal for your server, log, and console, and keep them all on the same display/desktop (again, you can change this)</li>
</ul>
<p>Okay, with all of that out of the way, let&#8217;s get on with it.  The way this baby works is simple.  You invoke Quicksilver (usually ctrl + space) and hit . (the period key) to enter some text.  Type out the FULL name of the folder of the app you want to start.  Assuming you&#8217;re set up with the defaults above, your app called &#8220;codeFoo&#8221; would live in ~/work/codeFoo, and you would simply type <code>codeFoo</code> in the input field of quicksilver.  Next you&#8217;ll hit tab to move to the action pane, and type <code>dev</code> or <code>dev_r</code> or something to that effect, to get Quicksilver to look up the script for you.  (If you&#8217;re not already aware, quicksilver learns the stuff you use and like, and will eventually move that to the top of the list of actions, if it&#8217;s not already there.  Just use the same string every time to get it.)  Once you&#8217;ve got the script, hit return, and watch it go!  It will fire up three shells for you, start a server, a console, tail the development log, and open your app in TextMate.  Productivity bliss, I tell you!</p>
<p>So now that you&#8217;re frothing at the mouth to get started using this thing, you need to know how to install it.  Again, simple.  Just download the script, untar it, and stick it in ~/Library/Application Support/Quicksilver/Actions.  If the Actions directory doesn&#8217;t exist yet, go ahead and create it now.  I&#8217;ll wait&#8230;  Done?  Ok, sweet.  Just restart Quicksilver (or rescan the catalog, but it seems that doesn&#8217;t always work) to pick up the changes, and you&#8217;re on your way!</p>
<p>Now, I know you&#8217;re anxious to get to work and all, and this script will work with the defaults, but you&#8217;ll likely want to do some customization of your own to make it fit your setup just right.  To tweak it out, just open it up in the AppleScript Editor, and follow the instructions.  You can control the placement of your terminals, change their sizes, change the directory it looks in for your rails apps, etc.  If you want, you can even add some arguments to make your terminals different colors, but I didn&#8217;t include that in this release.  (Just look at the dictionary for termial in the script editor)  The default placement of the terminals assumes you are running dual displays, with the secondary to the left, running 1280&#215;1024, and will drop all of your terminals there.  If you don&#8217;t like that, or you don&#8217;t have a secondary display, you should either hit up craigslist, or change this before you use the script. (I haven&#8217;t tested it on just a single display to see where the terminals will go with the default settings.)</p>
<p>I had hoped to set this up so that you could navigate directly to the folder you wanted to act on, without having to type in the full name manually, but as of this writing, Quicksilver and AppleScript don&#8217;t get down like that, so the only thing we can access is the text you input.  Hopefully, one day, in the not so distant future, we&#8217;ll have that capability.  I&#8217;m also looking into what can be done with Spaces (the new, but somewhat sketchy multiple desktop feature in Leopard) via AppleScript, but for now, this stuff will all open on the same &#8220;desktop&#8221;, and I don&#8217;t know how to change it. So, for now, enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.claudenix.com/2007/11/01/dev_rails-an-applescript-for-quicksilver-to-start-your-rails-development-environment/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
