Homebrew people have since included this in a recipe.
$ brew update
$ brew install mongodb
( follow the instructions given )
| // remove crappy contents from news.google.de | |
| $("div.source, span.source").filter(function() { return /(BILD|WELT ONLINE)/.test( $(this).text() ) }).parent().fadeOut(); | |
| $("h2.title > a").filter(function() { return /.*(welt.de|bild.de).*/.test( $(this).attr('href') ) } ).parents("div.story").fadeOut(); |
| ~$ ARCHFLAGS='-arch i386 -arch x86_64' | |
| ~$ rvm install 1.8.7 --debug --reconfigure -C --enable-shared=yes | |
| ~$ wget http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/1.0.0/RubyCocoa-1.0.0.tar.gz/download | |
| ~$ tar xzf RubyCocoa-1.0.0.tar.gz && rm RubyCocoa-1.0.0.tar.gz && cd RubyCocoa-1.0.0 | |
| ~/RubyCocoa-1.0.0$ ruby install.rb config --build-universal=yes | |
| ~/RubyCocoa-1.0.0$ ruby install.rb setup | |
| ~/RubyCocoa-1.0.0$ sudo ruby install.rb install |
| ⌘T – Go to File | |
| ⇧⌘T – Go to Symbol – This works in the same way as Go to File but for within a specific file. | |
| ⌘L – Go to Line | |
| ⇧⌘L – Select Line | |
| ⌃⌘ + ARROW – Move Code | |
| ⇧⌃⌥V – Send selected to Pastie – Send the selected code over to Pastie with a private URL for sharing the code. | |
| ⌃S – Simple Search – Most folks know about ⌘F as it’s the same in most applications. This shortcut allows you to do a quick search in the current file iteratively. | |
| ⌘] and ⌘[ – Block indentation. | |
| ⌥⌘[ - Format Selection. | |
| ⇧⌃T – To-do list – This feature scans the project for code marked as ‘FIXME’, ‘TODO’ and ‘CHANGED’. |
The -j option of the application generator accepts an arbitrary string. If passed "foo", the gem "foo-rails" is added to the Gemfile, and the application JavaScript manifest requires "foo" and "foo_ujs". As of this writing "prototype-rails" and "jquery-rails" exist and provide those files via the asset pipeline. Default is "jquery". [fxn]
jQuery is no longer vendored, it is provided from now on by the jquery-rails gem. [fxn]
Prototype and Scriptaculous are no longer vendored, they are provided from now on by the prototype-rails gem. [fxn]
The scaffold controller will now produce SCSS file if Sass is available [Prem Sichanugrist]
| /* | |
| Some simple Github-like styles, with syntax highlighting CSS via Pygments. | |
| */ | |
| body{ | |
| font-family: helvetica, arial, freesans, clean, sans-serif; | |
| color: #333; | |
| background-color: #fff; | |
| border: none; | |
| line-height: 1.5; | |
| margin: 2em 3em; |
| $ sequel postgres://mylogin:mypasswd@localhost/bddtest | |
| Your database is stored in DB... | |
| >> require 'memcache' | |
| => true | |
| >> MemCache | |
| => MemCache | |
| >> MemCache::VERSION | |
| => "1.5.0.1" | |
| >> CACHE = MemCache.new("localhost") | |
| => MemCache: 1 servers, 1 buckets, ns: nil, ro: false |
| ❷ > QUEUE=* rake resque:work --trace | |
| ** Invoke resque:work (first_time) | |
| ** Invoke resque:preload (first_time) | |
| ** Invoke resque:setup (first_time) | |
| ** Execute resque:setup | |
| ** Execute resque:preload | |
| rake aborted! | |
| No such file to load -- devise/confirmations_controller | |
| /Users/stefan/.rvm/gems/ruby-1.9.2-p290@my-rails-project/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:306:in `rescue in depend_on' | |
| /Users/stefan/.rvm/gems/ruby-1.9.2-p290@my-rails-project/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:301:in `depend_on' |
Fibur is a library that allows concurrency during Ruby I/O operations without needing to make use of callback systems. Traditionally in Ruby, to achieve concurrency during blocking I/O operations, programmers would make use of Fibers and callbacks. Fibur eliminates the need for wrapping your I/O calls with Fibers and a callback. It allows you to write your blocking I/O calls the way you normally would, and still have concurrent execution during those I/O calls.
Say you have a method that fetches data from a network resource: