Test concurrent Ruby code

Posted Over 13 years ago by Tobias Kraze.

To test concurrent code, you will need to run multiple threads. Unfortunately, when you use blocking system calls (e.g. locks...

Concurrent Tests

Posted Over 13 years ago by Lexy.

Install gem and plugin sudo gem install parallel script/plugin install git://github.com/grosser/parallel_tests.git Adapt config/database.yml test: database: xxx_test<%= ENV...

Convert Haml to ERB

Posted Over 13 years ago by Henning Koch.

This is about converting Haml to ERB and not the other way round which you probably want! This process can...

How to install the date_performance gem

Posted Over 13 years ago by Henning Koch.

sudo gem install zip git clone git://github.com/rtomayko/date-performance.git cd date-performance rake package:build cd dist sudo gem install...

Clear a Solr index with acts_as_solr

Posted Over 13 years ago by Henning Koch.

ActsAsSolr::Post.execute(Solr::Request::Delete.new(:query => "#{Location.solr_configuration[:type_field]}:#{ModelClass}")) ActsAsSolr::Post.execute(Solr::Request::Commit.new)

Fixing "A copy of Klass has been removed from the module tree but is still active"

Posted Over 13 years ago by Henning Koch.

This can happen during development when classes without automatic reloading are pointing to classes with automatic reloading. E.g. some class...

Typical .gitignore

Posted Over 13 years ago.

tmp/* storage/* db/*.sqlite3 db/schema.rb db/structure.sql public/system .project .idea/ public/javascripts/all* public/stylesheets/all* public/stylesheets/*.css config/database.yml *~ *#* .#* .DS_Store webrat-*.html

Order of the state_machine callback chain

Posted Over 13 years ago by Henning Koch.
github.com

before transition before validation after validation before save after save after transition Aborting the callback chain See Cancel the ActiveRecord...

How to fix "Too many authentic authentication failures" with SSH and/or Capistrano

Posted Over 13 years ago by Henning Koch.

You are getting when connecting via SSH or deploying with Capistrano (which uses SSH): Too many authentication failures for username...

Why your all.js is empty on staging or production

Posted Over 13 years ago by Henning Koch.

When you include a non-existing Javascript file, you probably won't notice it during development. But with caching active...

Slugs with FriendlyId

Posted Over 13 years ago by Tobias Kraze.
github.com

Gem to provide nice looking urls ("/blog/the-greatest-bug-i-never-fixed"). If you don't need anything too special (like i18n for the urls...

YSlow for Firebug

Posted Over 15 years ago by Lexy.
developer.yahoo.com

YSlow analyzes web pages and tells you why they're slow based on the rules for high performance web sites...

Nicole Sullivan: "Design Fast Websites" on Yahoo! Video

Posted Over 15 years ago by Lexy.
video.yahoo.com

Web performance expert Nicole Sullivan discusses a set of best practices in the creation of supremely fast, visually impactful web...

Agile Ajax » ActionMailer Callbacks: In the Spirit of ActionController Filters » Pathfinder Development

Posted Over 15 years ago by Lexy.
pathf.com

A while back, I had a requirement to persist a record of which email addresses were sent an email through...

Squirrel

Posted Over 15 years ago by Lexy.
thoughtbot.com

Squirrel is an enhancement for ActiveRecord’s find method that allows programmers to query the database using a more Rubyish...

leethal's live-validations at master - GitHub

Posted About 15 years ago by Lexy.
github.com

Reads Active Record's validations and makes them available to live client side javascript

Tagaholic - Console Update With Your Editor

Posted About 15 years ago by Lexy.
tagaholic.me

Rails’ script/console makes it easy to fetch, view and edit your database records. But can you edit those records as...

The Bark Blog » Testing Rails Model Plugins

Posted About 15 years ago by Lexy.
bark.metacasa.net

Unfortunately, by default plugin tests are pretty bland. They use the plain unit test suite supplied by Ruby, and not...

Connecting to MSSQL with Ruby on Ubuntu - lambie.org

Posted About 15 years ago by Lexy.
lambie.org

I’m working on a problem for a client which involves connecting to a Microsoft SQL Server 2005 database from...

SourceForge.net: SWFRIP: Files

Posted About 15 years ago by Lexy.
sourceforge.net

SWFRIP is a Macromedia Flash resource extractor and editor. It can save resources in various formats, including SVG conversion from...

Google Summer of Code winner: ActiveModel for Ruby on Rails

Posted About 15 years ago by Lexy.
socghop.appspot.com

Finish the remainder of the ActiveModel todo list (observers, callbacks, validations, scoping, and serialization) in addition to associations. Also wire...

Record Filter - Replace named scopes with awesome.

Posted About 15 years ago by Lexy.
aub.github.com

Record Filter gives you the full power of ActiveRecord's query building tools with a heaping helping of DSL thrown...

Page Speed Home

Posted Almost 15 years ago by Lexy.
code.google.com

Page Speed is an open-source Firefox/Firebug Add-on. Webmasters and web developers can use Page Speed to evaluate the...

rubaidh's rubaidhstrano at master - GitHub

Posted Almost 15 years ago by Lexy.
github.com

Capistrano recipes for database backups before migrations, passenger deployment strategy, release tagging in Git repos.