blognetnews.com
» Charlottesville

Dangosaur.us - Home

  • Moved...

    You can find my new posts over at http://jamieorc.wordpress.com/

    [...]
    Posted: June 30, 2008, 4:44pm EDT
    by jamie
  • Capistrano and Solaris

    Recently I’ve been using Capistrano to deploy projects to Solaris. One client uses a Joyent Accelerator (OpenSolaris) and another (University of Virginia) uses Solaris 5.8. The Accelerator is great as it has ZFS, the new Solaris Services, speed, etc. But Solaris is not the [...]

    Posted: May 10, 2007, 7:15pm EDT
    by jamie
  • Capistrano and Solaris

    Recently I’ve been using Capistrano to deploy projects to Solaris. One client uses a Joyent Accelerator (OpenSolaris) and another (University of Virginia) uses Solaris 5.8. The Accelerator is great as it has ZFS, the new Solaris Services, speed, etc. But Solaris is not [...]

    Posted: May 10, 2007, 7:15pm EDT
    by jamie
  • More on Should

    I was reading a post to Rails Studio mailing list today when I came across this:

    If you’re using mocha/stubba, you can say: @user_notifier.expects(:deliver_activation).never

    If you’re using flexmock, you can say: flexmock(@user_observer).should_receive(:deliver_activation).never

    Which would I rather use? Disregarding the frameworks, if you read my previous post, you know the answer: use the active verb! expects [...]

    Posted: May 07, 2007, 2:45pm EDT
    by jamie
  • More on Should

    I was reading a post to Rails Studio mailing list today when I came across this:

    If you’re using mocha/stubba, you can say: @user_notifier.expects(:deliver_activation).never

    If you’re using flexmock, you can say: flexmock(@user_observer).should_receive(:deliver_activation).never

    Which would I rather use? Disregarding the frameworks, if you read my previous post, you know the answer: use the active verb! [...]

    Posted: May 07, 2007, 2:45pm EDT
    by jamie
  • Hackety Hack: the Manifesto

    _why has started a new and interesting project: Hackety Hack: the Manifesto. The accompanying blog is http://hackety.org/.

    [...]
    Posted: May 04, 2007, 3:56pm EDT
    by jamie
  • Hackety Hack: the Manifesto

    _why has started a new and interesting project: Hackety Hack: the Manifesto. The accompanying blog is http://hackety.org/.

    [...]
    Posted: May 04, 2007, 3:56pm EDT
    by jamie
  • BDD: We shouldn't use "Should"

    I like behavior driven development. Even though I still using Ruby and Rails built-in testing framework, I write test names descriptive of behavior.

    But I have stopped using should.

    Should has become a bunch of noise in BDD that needs to be expunged. What’s wrong with test_should_move_resource_lower_and_return_to_edit_exhibit? One alone is fine, but [...]

    Posted: May 02, 2007, 12:33pm EDT
    by jamie
  • BDD: We shouldn't use "Should"

    I like behavior driven development. Even though I still using Ruby and Rails built-in testing framework, I write test names descriptive of behavior.

    But I have stopped using should.

    Should has become a bunch of noise in BDD that needs to be expunged. What’s wrong with test_should_move_resource_lower_and_return_to_edit_exhibit? One alone is fine, [...]

    Posted: May 02, 2007, 12:33pm EDT
    by jamie
  • Form Test Helper Plugin

    This week I found the FormTestHelper plugin by Jason Garber. It both enhances and simplifies form testing in Rails functional and integration tests. The great thing is the FormTestHelper tests the form, not just the submission of the form data. For example, if you try to set a [...]

    Posted: March 30, 2007, 10:31am EDT
    by jamie
  • Form Test Helper Plugin

    This week I found the FormTestHelper plugin by Jason Garber. It both enhances and simplifies form testing in Rails functional and integration tests. The great thing is the FormTestHelper tests the form, not just the submission of the form data. For example, if you try to set [...]

    Posted: March 30, 2007, 10:31am EDT
    by jamie
  • The Rails Edge

    Last week I attended The Rails Edge Reston. I can honestly say that it was the best workshop or conference I have attended. I’ve been to 3 or 4 No Fluff, Just Stuff conferences, Rails Conf, and Ruby Conf. It’s true that I’ve seen many of [...]

    Posted: January 29, 2007, 2:19pm EST
    by jamie
  • The Rails Edge

    Last week I attended The Rails Edge Reston. I can honestly say that it was the best workshop or conference I have attended. I’ve been to 3 or 4 No Fluff, Just Stuff conferences, Rails Conf, and Ruby Conf. It’s true that I’ve seen many [...]

    Posted: January 29, 2007, 2:19pm EST
    by jamie
  • Introducing Elemental

    HTML Element Names as Helper Methods Summary

    repository: http://svn.dangosaur.us/svn/elemental/

    Introduces builder-like syntax to rhtml:

    1
    2
    
    <%= p @item.content %>
    <%= p span @person.first_name, :id => dom_id(@person, "name_") %>
    or even
    1
    2
    3
    4
    
    <% table do @list.each do |item| tr do %>
     <%= td item.name %>
     <%= td item.content %>
    <% end end end %>

    Elemental allows you [...]

    Posted: January 26, 2007, 10:46am EST
    by jamie
  • Introducing Elemental

    HTML Element Names as Helper Methods Summary

    repository: http://svn.dangosaur.us/svn/elemental/

    Introduces builder-like syntax to rhtml:

    1
    2
    
    <%= p @item.content %>
    <%= p span @person.first_name, :id => dom_id(@person, "name_") %>
    or even
    1
    2
    3
    4
    
    <% table do @list.each do |item| tr do %>
     <%= td item.name %>
     <%= td item.content %>
    <% end end end %>

    Elemental allows [...]

    Posted: January 26, 2007, 10:46am EST
    by jamie
  • Out with Typo, In with Mephisto

    I finally finished the basic change-over to Mephisto tonight. Looks like I’ll need to restyle the code examples, as they are puny and lack any syntax-coloring.

    [...]
    Posted: December 30, 2006, 12:46am EST
    by jamie
  • Out with Typo, In with Mephisto

    I finally finished the basic change-over to Mephisto tonight. Looks like I’ll need to restyle the code examples, as they are puny and lack any syntax-coloring.

    [...]
    Posted: December 30, 2006, 12:46am EST
    by jamie
  • 88

    Today would be my father’s 88th birthday, if he were still alive. Happy Birthday, dad!

    Bill was a heavy-duty programmer in the early days of computing, contributing quite a lot to linear programming. He wrote a book on it and co-authored at least one article on the Simplex [...]

    Posted: September 13, 2006, 4:00am EDT
    by jamie
  • 88

    Today would be my father’s 88th birthday, if he were still alive. Happy Birthday, dad!

    Bill was a heavy-duty programmer in the early days of computing, contributing quite a lot to linear programming. He wrote a book on it and co-authored at least one article on the [...]

    Posted: September 13, 2006, 4:00am EDT
    by jamie
  • Dumping a Table to Yaml

    I decided I wanted all 356 rows of a table dumped to a fixture, but CSV was a disaster. So:

    1
    2
    3
    4
    5
    6
    7
    
    require 'yaml'
    js = Journal.find_all
    File.open ('dump.yml', "w") do |f|
     js.each do |j|
     f.print YAML.dump ({"j_#{j.id}" => j.attributes})
     end
    end

    (I actually did it from script/console.) The only caveat is I got a [...]

    Posted: August 31, 2006, 3:20am EDT
    by jamie
  • Dumping a Table to Yaml

    I decided I wanted all 356 rows of a table dumped to a fixture, but CSV was a disaster. So:

    1
    2
    3
    4
    5
    6
    7
    
    require 'yaml'
    js = Journal.find_all
    File.open ('dump.yml', "w") do |f|
     js.each do |j|
     f.print YAML.dump ({"j_#{j.id}" => j.attributes})
     end
    end

    (I actually did it from script/console.) The only caveat is I got [...]

    Posted: August 31, 2006, 3:20am EDT
    by jamie
  • MacBook Pro Battery Grows

    A couple of days ago my MacBook Pro started shutting down randomly while running on battery. I called Apple, they had me reset the power manager and the PRAM. The next day, it shut down again, so I called Apple and they agreed to ship a new battery. Yesterday, while [...]

    Posted: June 09, 2006, 10:58am EDT
    by jamie
  • MacBook Pro Battery Grows

    A couple of days ago my MacBook Pro started shutting down randomly while running on battery. I called Apple, they had me reset the power manager and the PRAM. The next day, it shut down again, so I called Apple and they agreed to ship a new battery. Yesterday, [...]

    Posted: June 09, 2006, 10:58am EDT
    by jamie
  • Prototype: bindAsEventListener()

    I’ve been working on some javascript code for a client site and found a good use for binding event listeners through javascript rather than inline. There are several pages I need to add javascript code to expand each textarea on focus and collapse it on blur. So I wrote this [...]

    Posted: May 16, 2006, 8:38am EDT
    by jamie
  • Prototype: bindAsEventListener()

    I’ve been working on some javascript code for a client site and found a good use for binding event listeners through javascript rather than inline. There are several pages I need to add javascript code to expand each textarea on focus and collapse it on blur. So I wrote [...]

    Posted: May 16, 2006, 8:38am EDT
    by jamie
  • Markaby Rules

    I’ve been playing with Markaby the past few nights. I love it! I’m in the camp that would rather write everything in Ruby rather than mix with html and ERb. I find reading this code:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    
    error_messages_for 'laptop'
    
    p do 
     label "Name", :for => "laptop_name"
     text_field 'laptop', 'name'
    end
    
    div do
     [...]	
    	
    Posted: May 06, 2006, 3:55pm EDT
    by jamie
  • Markaby Rules

    I’ve been playing with Markaby the past few nights. I love it! I’m in the camp that would rather write everything in Ruby rather than mix with html and ERb. I find reading this code:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    
    error_messages_for 'laptop'
    
    p do 
     label "Name", :for => "laptop_name"
     text_field 'laptop', 'name'
    end
    
    div [...]	
    	
    Posted: May 06, 2006, 3:55pm EDT
    by jamie
  • Class-level accessors in Ruby

    While looking at the source code for Capistrano today, I came across a nice idiom for making class-level accessors:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    
    class Actor 
     class << self
     attr_accessor :connection_factory
     attr_accessor :command_factory
     attr_accessor :transfer_factory
     attr_accessor :default_io_proc
     end
    
     self.connection_factory = DefaultConnectionFactory
     self.command_factory = Command
     self.transfer_factory = Transfer
    end

    Now you can use these class-level accessors:

    [...]
    Posted: April 26, 2006, 7:19am EDT
    by jamie
  • Class-level accessors in Ruby

    While looking at the source code for Capistrano today, I came across a nice idiom for making class-level accessors:

  • 1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    
    class Actor 
     class << self
     attr_accessor :connection_factory
     attr_accessor :command_factory
     attr_accessor :transfer_factory
     attr_accessor :default_io_proc
     end
    
     self.connection_factory = DefaultConnectionFactory
     self.command_factory = Command
     self.transfer_factory = Transfer
    end

    Now you can use these class-level [...]

    Posted: April 26, 2006, 7:19am EDT
    by jamie
  • Finally Upgraded Typo

    See my personal blog.

    [...]
    Posted: April 18, 2006, 2:34am EDT
    by jamie
  • Finally Upgraded Typo

    See my personal blog.

    [...]
    Posted: April 18, 2006, 2:34am EDT
    by jamie
  • Blog Info:
    Dangosaur.us - Home

    » http://blog.dangosaur.us/

    Categories

    BNN Traffic Index

    Alexa: No data
    0

    Compete: No data
    0

    Quantcast: No data
    0

    BNN Traffic Index: No data

    BNN Authority Index

    Technorati: 0

    Google: 0

    BNN Authority Index: No data

    » Subscribe to the Dangosaur.us - Home feed