This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mbc$ knife cookbook upload -a | |
INFO: ** activemq ** | |
INFO: Saving activemq | |
INFO: Validating ruby files | |
INFO: Validating templates | |
INFO: Syntax OK | |
INFO: Generating Metadata | |
WARN: HTTP Request Returned 404 Not Found: No routes match the request: //sandboxes | |
/Users/mbc/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/net/http.rb:2097:in `error!': 404 "Not Found" (Net::HTTPServerException) | |
from /Users/mbc/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.6/lib/chef/rest.rb:217:in `api_request' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def logtext (read-lines logfile)) | |
(count logtext) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require ::File.expand_path('../../../config/environment', __FILE__) | |
# No memory leak | |
loop do | |
Mkt::Task.all.each do |t| | |
puts t | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
executing command | |
** Fetching git://github.com/cavalle/steak.git | |
** Fetching source index for http://gemcutter.org/ | |
** Installing rake (0.8.7) | |
** /usr/local/jruby/lib/ruby/site_ruby/1.8/rubygems/format.rb:37:in `from_file_by_path': can't convert nil into String (TypeError) | |
** from /usr/local/jruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb:118:in `initialize' | |
** from /usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/source.rb:99:in `new' | |
** from /usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/source.rb:99:in `install' | |
** from /usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/installer.rb:55:in `run' | |
** from /usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/spec_set.rb:12:in `each' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2010-08-27 13:58:16] make | |
file.c: In function ‘ruby_find_basename’: | |
file.c:3451: warning: ‘f’ may be used uninitialized in this function | |
file.c: In function ‘file_expand_path’: | |
file.c:2844: warning: ‘b’ may be used uninitialized in this function | |
process.c: In function ‘ruby_setreuid’: | |
process.c:4022: warning: comparison between signed and unsigned | |
process.c:4023: warning: comparison between signed and unsigned | |
process.c:4026: warning: comparison between signed and unsigned | |
process.c: In function ‘p_uid_change_privilege’: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/mbc/webpop/prim-soup/lib/image_processing.rb:187: [BUG] Segmentation fault | |
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0] | |
-- control frame ---------- | |
c:0081 p:---- s:0432 b:0432 l:000431 d:000431 CFUNC :from_blob | |
c:0080 p:0091 s:0428 b:0428 l:000427 d:000427 METHOD /Users/mbc/webpop/prim-soup/lib/image_processing.rb:187 | |
c:0079 p:0025 s:0418 b:0418 l:000417 d:000417 METHOD /Users/mbc/webpop/prim-soup/lib/image_processing.rb:118 | |
c:0078 p:0012 s:0412 b:0412 l:000402 d:000411 BLOCK /Users/mbc/webpop/prim-soup/lib/image_attachment.rb:41 | |
c:0077 p:---- s:0408 b:0408 l:000407 d:000407 FINISH | |
c:0076 p:---- s:0406 b:0406 l:000405 d:000405 CFUNC :each |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.users.insert({"name": "Pepe", "projects": [{"id": "123", "role": 1}, {"id": "234", "role": 1}, {"id": "345", "role": 2}, ...]}); | |
var user = db.find({"projects.id": "234"}); | |
// Any way to get just: user: | |
{ | |
"name": "Pepe", | |
"projects": [{"id": "234", "role": 1}] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject appengine-test-app "1.0.0-SNAPSHOT" | |
:description "FIXME: write" | |
:dependencies [[org.clojure/clojure "1.2.0"] | |
[org.clojure/clojure-contrib "1.2.0"] | |
[net.cgrand/moustache "1.0.0-SNAPSHOT"] | |
[hiccup "0.3.0"] | |
[ring/ring-core "0.2.0"] | |
[ring/ring-jetty-adapter "0.2.0"] | |
[uk.org.alienscience/form-dot-clj "0.0.3"]] | |
:dev-dependencies [[appengine-magic "0.3.2"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Graphics.Transform.Magick.Images | |
main :: IO () | |
main = do | |
initializeMagick | |
img <- readImage "/home/mbc/design-quiz-1.png" | |
writeImage "/home/mbc/testing.png" img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var path = "/Users/mbc/Downloads/ubuntu-10.04.1-server-amd64.iso"; | |
var stream = fs.createReadStream(path); | |
var out = fs.createWriteStream('tmp/testing.iso'); | |
stream.on('data', function(data) { | |
console.info("Streaming data "+data.length); | |
out.write(data); |