<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>now that we got that out of the way



</description><title>I won't kill you</title><generator>Tumblr (3.0; @heidmotron)</generator><link>http://blog.heidmotron.com/</link><item><title>Gmail super slow on Safari 4</title><description>&lt;p&gt;If you&amp;#8217;re using Safari 4 and you also have the developer toolbar turned on, turn it off.&lt;/p&gt;

&lt;p&gt;Similar to Firebug a few versions back, when you enable resource tracking it&amp;#8217;s for all websites which is no good for Gmail or other sites that are noisy with the ajax requests.&lt;/p&gt;

&lt;p&gt;The latest webkit version allows you to turn of resource tracking and any other developer tabs by website.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://webkit.org/"&gt;http://webkit.org/&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/145522311</link><guid>http://blog.heidmotron.com/post/145522311</guid><pubDate>Mon, 20 Jul 2009 12:13:44 -0700</pubDate></item><item><title>Armsrock</title><description>&lt;iframe width="400" height="300" src="http://www.youtube.com/embed/O8mR2EYdVb8?wmode=transparent&amp;autohide=1&amp;egm=0&amp;hd=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;showsearch=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Armsrock&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/85899072</link><guid>http://blog.heidmotron.com/post/85899072</guid><pubDate>Thu, 12 Mar 2009 12:51:00 -0700</pubDate></item><item><title>Google code project for Radiohead</title><description>&lt;a href="http://code.google.com/creative/radiohead/"&gt;Google code project for Radiohead&lt;/a&gt;: &lt;p&gt;Radiohead’s House of Cards video was shot without cameras.  Google is hosting the data and processing code for the video, so you can go at it and try to make your own video. This like Nude stems but for geeks.&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/42212837</link><guid>http://blog.heidmotron.com/post/42212837</guid><pubDate>Mon, 14 Jul 2008 08:31:00 -0700</pubDate></item><item><title>Radiohead in Milan</title><description>&lt;img src="http://25.media.tumblr.com/sHXPsNc5nanni26hLLFqUIFt_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Radiohead in Milan&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/39801479</link><guid>http://blog.heidmotron.com/post/39801479</guid><pubDate>Wed, 25 Jun 2008 08:48:00 -0700</pubDate></item><item><title>Video</title><description>&lt;iframe src="http://player.vimeo.com/video/1186275" width="400" height="300" frameborder="0"&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;</description><link>http://blog.heidmotron.com/post/38734314</link><guid>http://blog.heidmotron.com/post/38734314</guid><pubDate>Tue, 17 Jun 2008 04:01:13 -0700</pubDate></item><item><title>Rails Form Authenticity Token with Ajax (Defensive Enhancement)</title><description>&lt;p&gt;
When sending POST through ajax with form security turned on with Rails can sometimes be a pain in the butt. However if you plan for your users to be able to do the same task without javascript, adding the Ajax goodness unobtrusively is a cinch and we still get the benefits of the authenticity token.

The example below is a simple form for a post. But Rails will automatically set the security token in the form plus the correct method to use for the object (POST or PUT). So if we didn&amp;#8217;t have javascript enabled this form would work without a problem.

With JS enabled, we can use a convenience method from &lt;a href="http://www.prototypejs.org/api/form/serialize"&gt;prototype JS library&lt;/a&gt; to serialize the form which includes the title of the post but the authenticity token as well.
&lt;/p&gt; 

 
&lt;pre&gt;
&lt;code&gt;
&amp;lt;%- form_for @post, :id =&amp;gt; 'post_form' do |f| -%&amp;gt;
  &amp;lt;div&amp;gt;
    &amp;lt;%= f.label :title %&amp;gt;
    &amp;lt;%= f.text_field :title %&amp;gt;
  &amp;lt;/div&amp;gt;
  
  &amp;lt;%= f.submit, :id =&amp;gt; 'submit' %&amp;gt;
&amp;lt;%- end -%&amp;gt;

&amp;lt;script type="text/javascript" charset="utf-8"&amp;gt;
  document.observe('dom:loaded',function(){
    // Remove button
    $('submit').hide()
    var form = $('post_form')
    // As you tab out or click somewhere else it 
    // submits via Ajax
    $('post_title').observe('blur', function(ev){
      new Ajax.Request(form.action, {
        // IMPORTANT PART
        parameters: form.serialize(),
        onSuccess: function(transport) {
          alert('Success')
        },
        onFailure: function(transport) {
          alert('Failure')
        }
      })
    })
  })
&amp;lt;/script&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;

&lt;p&gt;
The script does a few interesting things in addition to the submitting the authenticity token. For example it will remove the submit button and an event listener to see when focus leaves the text box to post the form via AJax.

This allows users to browsers that can not interpret JS to still work but gives added benefits to the browsers that can use javascript.
&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/37100491</link><guid>http://blog.heidmotron.com/post/37100491</guid><pubDate>Tue, 03 Jun 2008 22:08:00 -0700</pubDate></item><item><title>So sexy</title><description>&lt;img src="http://25.media.tumblr.com/sHXPsNc5n9syhecsJvz4DbHe_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;So sexy&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/37096536</link><guid>http://blog.heidmotron.com/post/37096536</guid><pubDate>Tue, 03 Jun 2008 21:16:16 -0700</pubDate></item><item><title>Photo</title><description>&lt;img src="http://24.media.tumblr.com/sHXPsNc5n9ciby75mcOL55R9_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;</description><link>http://blog.heidmotron.com/post/35808917</link><guid>http://blog.heidmotron.com/post/35808917</guid><pubDate>Fri, 23 May 2008 09:00:18 -0700</pubDate></item><item><title>Video</title><description>&lt;iframe width="400" height="300" src="http://www.youtube.com/embed/zmp4Y7YZvh8?wmode=transparent&amp;autohide=1&amp;egm=0&amp;hd=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;showsearch=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;</description><link>http://blog.heidmotron.com/post/35565217</link><guid>http://blog.heidmotron.com/post/35565217</guid><pubDate>Wed, 21 May 2008 08:22:59 -0700</pubDate></item><item><title>Long but absolutely crazy</title><description>&lt;iframe src="http://player.vimeo.com/video/993998" width="400" height="300" frameborder="0"&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Long but absolutely crazy&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/35275002</link><guid>http://blog.heidmotron.com/post/35275002</guid><pubDate>Sun, 18 May 2008 20:32:05 -0700</pubDate></item><item><title>Bangers &amp; Mash - Radiohead</title><description>&lt;a href="http://pitchfork.tv/node/468"&gt;Bangers &amp; Mash - Radiohead&lt;/a&gt;: &lt;p&gt;Dual drumming Thom &amp; Phil, weird…&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/31696584</link><guid>http://blog.heidmotron.com/post/31696584</guid><pubDate>Sun, 13 Apr 2008 23:55:10 -0700</pubDate></item><item><title>Rails Tip: Labels with form_for</title><description>&lt;p&gt;
If you use &amp;#8220;form_for&amp;#8221; you may have noticed in Rails 2.0 that there is now a label method to create html label tags:

This is great for two reasons:
&lt;/p&gt;

&lt;ol&gt;&lt;li&gt;It syncs the label tag&amp;#8217;s &amp;#8220;for&amp;#8221; attribute with the &amp;#8220;id&amp;#8221; of whatever input field you create. This awesome for standards and accessibility!
&lt;/li&gt;
&lt;li&gt;
It will automatically create label text based off the method argument you pass in.&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;So instead of doing this:&lt;/p&gt;
&lt;pre&gt;
  &lt;code&gt;
&amp;lt;%- form_for @post do |f| -%&amp;gt;
  &amp;lt;div&amp;gt;
      &amp;lt;label for="post_title"&amp;gt;Title&amp;lt;/label&amp;gt;
      &amp;lt;%= f.text_field :title %&amp;gt;
  &amp;lt;/div&amp;gt;
...
  &lt;/code&gt;
&lt;/pre&gt;



&lt;p&gt;You can now do this! Which will take the method argument (:title) and create the label text (&amp;#8220;Title&amp;#8221;).&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;
&amp;lt;%- form_for @post do |f| -%&amp;gt;
  &amp;lt;div&amp;gt;
      &amp;lt;%= f.label :title %&amp;gt;
      &amp;lt;%= f.text_field :title %&amp;gt;`
  &amp;lt;/div&amp;gt;
...
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Also, if you have label text that doesn&amp;#8217;t quite match the method of your object or maybe you need the string to be translated in a different language. You can do this as well:&lt;/p&gt;

&lt;pre&gt;
  &lt;code&gt;
&amp;lt;%- form_for @post do |f| -%&amp;gt;
  &amp;lt;div&amp;gt;
    &amp;lt;%= f.label :title, _('Title') %&amp;gt;
    &amp;lt;%= f.text_field :title %&amp;gt;
  &amp;lt;/div&amp;gt;
...
  &lt;/code&gt;
&lt;/pre&gt;</description><link>http://blog.heidmotron.com/post/28517613</link><guid>http://blog.heidmotron.com/post/28517613</guid><pubDate>Mon, 10 Mar 2008 22:00:00 -0700</pubDate></item><item><title>Neh Meh Yeh - Now with more features</title><description>&lt;ul&gt;&lt;li&gt;Friends&lt;/li&gt;
&lt;li&gt;Stats&lt;/li&gt;
&lt;li&gt;Love&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;a href="http://nehmehyeh.com"&gt;&lt;a href="http://nehmehyeh.com"&gt;http://nehmehyeh.com&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/26281886</link><guid>http://blog.heidmotron.com/post/26281886</guid><pubDate>Wed, 13 Feb 2008 19:24:00 -0700</pubDate></item><item><title>Sell it you two sexy devils.

aparticularpath:

this is from...</title><description>&lt;img src="http://25.media.tumblr.com/XHWjMZB7o5bl1jooz9ppojjt_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Sell it you two sexy devils.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://log.matthewgist.com/post/26120168"&gt;aparticularpath&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;this is from last weeks Refresh Phoenix Demo Night - Adam Mollmeyer is the photographer, click through to his flickr page or type in the web address on the photo you lazy bastards. oh, and sign up for &lt;a href="http://www.nehmehyeh.com" title="http://www.nehmehyeh.com" target="_new"&gt;nehmehyeh.com&lt;/a&gt; &lt;/p&gt;
&lt;p&gt; via http://www.flickr.com/photos/acmeextra/2259134825/&lt;/p&gt;&lt;/blockquote&gt;</description><link>http://blog.heidmotron.com/post/26211192</link><guid>http://blog.heidmotron.com/post/26211192</guid><pubDate>Tue, 12 Feb 2008 23:18:00 -0700</pubDate></item><item><title>Don't throw cats</title><description>&lt;p&gt;Just some words of wisdom.&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/22693801</link><guid>http://blog.heidmotron.com/post/22693801</guid><pubDate>Sun, 30 Dec 2007 22:21:14 -0700</pubDate></item><item><title>ul·ti·ma·cy</title><description>&lt;p&gt;1&amp;#160;: the quality or state of being ultimate&lt;/p&gt;

&lt;p&gt;2&amp;#160;: the ultimate intimacy&lt;/p&gt;

&lt;p&gt;Used in a sentence:
Matt has taken intimacy to the next level, &lt;strong&gt;ultimacy&lt;/strong&gt;&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/21495993</link><guid>http://blog.heidmotron.com/post/21495993</guid><pubDate>Thu, 13 Dec 2007 07:13:00 -0700</pubDate></item><item><title>Share More Controller Specs with do_action</title><description>&lt;p&gt;For most projects, our controllers tend to have some shared behavior that inherits from a base controller. Such as before filters for authentication or finding an AR model.  RSpec also has a similar concept know as &amp;#8220;shared behaviors&amp;#8221;.&lt;/p&gt;

&lt;p&gt;But it&amp;#8217;s kind of difficult to do something like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;it 'should redirect to login if not logged in' do
  do_post
  response.should redirect_to(new_sessions_path)
end
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;because it might be a do_get, do_put, or do_delete.&lt;/p&gt;

&lt;p&gt;do_action let&amp;#8217;s you push common controller specs into a shared context without having to specify the exact action being called. add this to your spec_helper.rb&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;def do_action
  %w(get post put delete render).each do |action|
    self.send "do_#{action}" if self.respond_to?("do_#{action}")
  end
end
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And now you can put the previous code in a shared login spec&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;it 'should redirect to login if not logged in' do
  do_action
  response.should redirect_to(new_sessions_path)`
end
&lt;/code&gt;&lt;/pre&gt;</description><link>http://blog.heidmotron.com/post/20720963</link><guid>http://blog.heidmotron.com/post/20720963</guid><pubDate>Mon, 03 Dec 2007 02:25:00 -0700</pubDate></item><item><title>Tango + Italy + Chicken = Best Weekend Evar!</title><description>&lt;p&gt;This, by far, was one of the best weekends ever.  Not only was there a gratuitous amounts of over-sleeping, but there was Tango!  Nope, I did not tango but I watched.&lt;/p&gt;

&lt;p&gt;The Tango Buenos Aires  troupe performed at the &lt;a href="http://www.mesaartscenter.com/EventDetail.aspx?eventID=910"&gt;Mesa Arts Center&lt;/a&gt; and it was awesome. The music was amazing and probably the first time ever I tip my hat to the according player. The Tango Argentino style performed was extremely sensual and incredibly technical not at all Ballroom style I was expecting.&lt;/p&gt;

&lt;p&gt;After the performance, we had an excellent assortment of  Belgium Chocolate and tea from our friends who invited us out.  And around 3am that night, I looked at my RSS reader and saw that the Radiohead had went on sale in Milan, Italy. Then proceeded to wake up my girlfriend and tell her were going to Italy!!!&lt;/p&gt;

&lt;p&gt;Not saying it&amp;#8217;s coincidence, but the next day she cooked the best chicken ever.&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/20713087</link><guid>http://blog.heidmotron.com/post/20713087</guid><pubDate>Sun, 02 Dec 2007 23:33:22 -0700</pubDate></item><item><title>Refresh Phoenix &amp; Blueprint</title><description>&lt;p&gt;&lt;a href="http://matthewgist.com"&gt;Matt Gist&lt;/a&gt; and myself will be presenting &lt;a href="http://code.google.com/p/blueprintcss/"&gt;Blueprint&lt;/a&gt; a CSS framework at &lt;a href="http://refreshphoenix.org"&gt;Refresh Phoenix&lt;/a&gt; on Nov 6th.&lt;/p&gt;

&lt;p&gt;Other resources:&lt;/p&gt;

&lt;ol&gt;&lt;li&gt;Blueprint Grid CSS Generator &lt;a href="http://kematzy.com/blueprint-generator/"&gt;&lt;a href="http://kematzy.com/blueprint-generator/"&gt;http://kematzy.com/blueprint-generator/&lt;/a&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Google Groups &lt;a href="http://groups.google.com/group/blueprintcss"&gt;&lt;a href="http://groups.google.com/group/blueprintcss"&gt;http://groups.google.com/group/blueprintcss&lt;/a&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><link>http://blog.heidmotron.com/post/21148625</link><guid>http://blog.heidmotron.com/post/21148625</guid><pubDate>Mon, 05 Nov 2007 21:00:00 -0700</pubDate></item><item><title>Rubinius For Ruby Developers</title><description>&lt;p&gt;At Ruby Conf 07, &lt;a href="http://blog.fallingsnow.net/"&gt;Evan Phoenix&lt;/a&gt; the project lead for &lt;a href="http://rubini.us"&gt;rubini.us&lt;/a&gt; gave a great talk about rubini.us vm. The key takeaway for myself, was ability to contribute to the language using the language itself.&lt;/p&gt;

&lt;p&gt;What an obvious concept right? Use Ruby to make Ruby. Unfortunately this has not been the case with any implementation the Matz Ruby Implementation(MRI), JRuby, or Iron Ruby using C, Java, and C#, respectively. Most languages need a way to bootstrap itself, but MRI has still not shed it&amp;#8217;s shackles of it&amp;#8217;s C implementation.&lt;/p&gt;

&lt;p&gt;Another concept, that this project has pushed forward with, is that the language should have an executable spec (using a rspec compatible suite). Now if certain aspects of the language seem to behave in a peculiar way, you can now look up the spec and see if ruby code is producing the desired behavior. This will hopefully drive an increase in development towards Ruby.&lt;/p&gt;

&lt;p&gt;An aside, while at tbe conference there was a push to define the specification. Even while, most of the core ruby developers are Japanese with limited English.&lt;/p&gt;</description><link>http://blog.heidmotron.com/post/21148681</link><guid>http://blog.heidmotron.com/post/21148681</guid><pubDate>Sun, 04 Nov 2007 21:00:00 -0700</pubDate></item></channel></rss>

