If you need to calculate an average user's rating or sum up a number of votes, consider using the activerecord-reputation-system gem. Here I will cover the basics and also briefly present a from-scratch solution.
Earlier today I checked in a patch that adds streaming zlib processing to Ruby. This allows you to process a stream without needing to allocate space to hold the entire result. To add the streaming support I changed #inflate and #deflate to accept a block. A handful of other methods (...
July 6th, 2012 In today's episode, Ruby 1.8.7 gets a final bit of love, a text editor poll, stubbing your constants, performing sorcery on your images, the Twitter gem goes 3.0 and Protocolist. July 3rd, 2012 We scope out our scopes with Periscope, Ruby Open Source Challenge calls on ...
#365 Thread-Safety Jul 09, 2012 | 10 minutes | Rails 4.0 , Performance , Production The config.threadsafe! option will likely be enabled by default in Rails 4.0. Here you will learn what this option does, how it affects production, and some tips on thread safety. Subscribe to Watch Ep...
Twelve-factor apps also do not rely on the implicit existence of any system tools… While these tools may exist on many or even most systems, there is no guarantee that they will exist on all systems where the app may run in the future, or whether the version found on a future system w...
-XX:+UseParallelGC turns on the parallel young-generation garbage collector. This is a stop-the-world collector that uses several threads to reduce pause times. There's also -XX:+UseParallelOldGC to use a parallel collector for the old generation, but it's generally only useful if you...
Tuesday, July 10, 2012 at 5:51AM Considering whether to pitch a business plan involving support of 'curmudgeonly coding.' hovercraft - Server to automatically overlay a RESTful API on a directory of ActiveRecord models. collide - Collaborative IDE written in Java, so far just experime...
2012-07-09 @ 16:51 Crouching Tiger, Hidden Salami I’ve been learning how to cure meat, and I thought I should share my setup. I’m currently on my third batch of meat (second time curing salami). Curing meat requires control of the environment, external and internal to the meat. This p...
Git Basics: Cleaning up excess branches Posted by xfitzyx on July 10, 2012 — 0 comments Rails app repository getting out of hand? Learn how to clean up all that excess . Comments Post a Comment Comment abilities for non registered users are currently deactivated, pending time to a...
$ sudo dtrace -q -s calls.d -c'rake environment' Array hash /Users/aaron/.local/lib/ruby/1.9.1/rubygems/requirement.rb 255 Mutex unlock <internal:prelude> 365 Fixnum ^ /Users/aaron/.local/lib/ruby/1.9.1/rubygems/specification.rb 493 Array - /Users/aaron/git/rails/activesupport/lib/act...
Rails 2.1.x is available with Ruby 1.8.7. http://weblog.rubyonrails.org/2008/6/26/this-week-in-rails-june-26-2008 so, in RedmineInstall Notes: * Rails has some compatibility issues with ruby 1.8.7. *The supported ruby version is 1.8.6*. should be as follows, Notes: * Rails 2.0.x has s...
Pivotal Tracker has been in the Google Apps marketplace for a few weeks, and we’re excited to see that it’s already in the Top New Apps list! Thanks to everyone who jumped right in, and for all the great reviews! For the most part, provisioning Tracker for a Google Apps domain is stra...
Amusing exercise: compile a list of OS vendors who, by default, ship a non-Unicode-capable ("narrow") build of Python. Posted by Jacques Distler at 20:34 I gather that I’m one of the lucky ones: $ python Python 2.7.3 (default, Apr 20 2012, 22:39:59) [GCC 4.6.3] on linux2 Type "help", ...
A minimalistic Ruby client for the Public Streams of Twitter Streaming API
memcached 1.4.3 An interface to the libmemcached C client. install gem install memcached Download Subscribe Stats Authors Evan Weaver 235,290 total downloads 68 for this version Owners Links Homepage Source Code Documentation Bug Tracker Gemfile gem "memcached", "~> 1.4.3" Versions 1....
Everybody loves the way you can just git push origin master in a Heroku project and see your changes live on the web right away. If you're on EC2, Slicehost, or any other non-Heroku environment, it's exceptionally easy to hack that functionality into your own project. This is literall...
Clearing out previous values from content_for By default, content_for :thing appends whatever you put in your block to the previous value of :thing. In some cases, you’d like to clear out :thing rather than append to it. I just posted a way to do this on my blog: http://stevechanin.bl...