It is given that @mrb prefers the inverse of c && s && n && !y. To calculate his musical preference regarding combinations of the set g = {c, s, n, y}, we apply DeMorgan's law to c && s && n && !y, producing: !c || !s || !n || y. This implies that @mrb will be happy given the presence of y in any combination, but if y is not present, neither can c, s, or n.
| # | |
| # Ideas stolen from lograge and brought to Rails 2.3 | |
| # https://github.com/mattmatt/lograge/blob/master/lib/lograge/log_subscriber.rb | |
| # | |
| module ImprovedControllerLogging | |
| def self.included(base) | |
| base.alias_method_chain :log_processing, :fixup | |
| base.inject_alias_method_chain :perform_action, | |
| :perform_action_with_benchmark, |
| #!/usr/bin/env ruby | |
| # | |
| # vidsampler – extract audio samples from online video | |
| # | |
| # for OSX only | |
| # | |
| # Usage: | |
| # | |
| # ruby vidsampler.rb [youtube url] [minute:second] [duration] | |
| # |
When working with large, high volume, low latency systems, it is often the case that processing data sequentially becomes detrimental to the system's health. If we only allow 1 process to work on our data we run into several challenges:
- Our process may fall behind resulting in a situation which it is impossible for our process to catch up.
- Our singleton process could crash and leave our system in a degraded state.
- The average latency of data processing could be dramatically affected by outlying cases.
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| source :rubygems | |
| gem 'webmachine' | |
| gem 'rack' |
The Stockturm. Long-Distance Song Effects
Dr. Hornstetter, the lady doctor who drops in on me almost every day just long enough to smoke a cigarette, who is supposed to be taking care of me but who, thanks to my treatment, leaves the room after every visit a little less nervous than she was when she came, a retiring sort who is intimate only with her cigarettes, keeps insisting that I suffered from isolation in my childhood, that I didn’t play enough with other children. Well, as far as other children are concerned, she may be right. It is true that I was so busy with Gretchen Scheffler’s lessons, so torn between Goethe and Rasputin, that even with the best of intentions I could have found no time for ring-around-a-rosy or post office. But whenever, as scholars sometimes do, I turned my back on books, declaring them to be the graveyards of the language, and sought contact with the simple folk, I encountered the little cannibals who lived in our building, and after brief association with them, felt very glad
| The pizza recipe is based on the book "My Bread" by Jim Lahey, which I | |
| HIGHLY recommend. It has bunch of recipes based around the idea of | |
| "no knead" bread - basically long fermentation times take place of | |
| lengthy, annoying kneading. You can make great loaves with a similar | |
| technique to the pizza recipe below. This is a kind of "Roman" style | |
| pizza where you stretch the dough very thin on two 13" x 18" sheet | |
| pans, cut the ingredients very thinly, layer it, and bake it hot for | |
| about 25 minutes. To make two pies: | |
| 3 3/4 cups or 500 grams Bread Flour |
| From 4237aa29a9771208a2206ff2f7ec4745caee0cbf Mon Sep 17 00:00:00 2001 | |
| From: Aaron Patterson <aaron.patterson@gmail.com> | |
| Date: Mon, 13 Feb 2012 10:40:06 -0800 | |
| Subject: [PATCH 1/2] mkmf should abort if the user is missing libhashring | |
| --- | |
| ext/hash_ring/extconf.rb | 2 +- | |
| 1 files changed, 1 insertions(+), 1 deletions(-) | |
| diff --git a/ext/hash_ring/extconf.rb b/ext/hash_ring/extconf.rb |