This file contains hidden or 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
ruby 1.9.2p280 | |
rake spec 110.95s user 11.04s system 83% cpu 2:25.35 total | |
ruby 1.9.3p0 | |
rake spec 76.11s user 8.13s system 77% cpu 1:48.27 total |
This file contains hidden or 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
~/projects/zaarly_admin % launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist | |
Bug: launchctl.c:2325 (23930):13: (dbfd = open(g_job_overrides_db_path, O_RDONLY | O_EXLOCK | O_CREAT, S_IRUSR | S_IWUSR)) != -1 | |
launch_msg(): Socket is not connected |
This file contains hidden or 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
, [2011-11-17T16:45:52.838402 #20294] DEBUG -- : Logging enabled | |
D, [2011-11-17T16:45:53.935004 #20294] DEBUG -- : worker initialized | |
D, [2011-11-17T16:45:53.935130 #20294] DEBUG -- : worker running exp. backoff algorith max_attempts=5 | |
D, [2011-11-17T16:45:53.935183 #20294] DEBUG -- : database initialized | |
D, [2011-11-17T16:45:53.935218 #20294] DEBUG -- : database top_boundry=9 | |
D, [2011-11-17T16:45:53.935251 #20294] DEBUG -- : database table_name=queue_classic_jobs | |
D, [2011-11-17T16:45:53.935732 #20294] DEBUG -- : database uri=postgres://bobbyw:!oap4781d@localhost/batch_upload_production | |
D, [2011-11-17T16:45:53.935776 #20294] DEBUG -- : worker table=queue_classic_jobs | |
D, [2011-11-17T16:45:53.935811 #20294] DEBUG -- : worker fork=false | |
D, [2011-11-17T16:45:53.935846 #20294] DEBUG -- : worker listen=false |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'forever' | |
require 'queue_classic' | |
require_relative '../workflow.rb' | |
Forever.run do | |
QC::Worker.new.start | |
end |
This file contains hidden or 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 'sinatra/base' | |
require 'haml' | |
class App < Sinatra::Base | |
get '/' do | |
haml :index | |
end | |
post '/' do | |
tempfile = params['file'][:tempfile] |
This file contains hidden or 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
upload zip file | |
- upload file to tempdir | |
- unzip archive | |
process images | |
- recurse through directories | |
- apply transformations to images (resize/crop) | |
- put processed images in a directory | |
create archive of images | |
- zip processed image directory | |
- upload to s3 |
This file contains hidden or 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
2011-07-19T18:04:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sequel-3.25.0/lib/sequel/adapters/postgres.rb:220:in `initialize': PGError: could not connect to server: Connection refused (Sequel::DatabaseConnectionError) | |
2011-07-19T18:04:32+00:00 app[web.1]: Is the server running on host "localhost" and accepting | |
2011-07-19T18:04:32+00:00 app[web.1]: TCP/IP connections on port 5432? | |
2011-07-19T18:04:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/sequel-3.25.0/lib/sequel/adapters/postgres.rb:220:in `new' | |
2011-07-19T18:04:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/sequel-3.25.0/lib/sequel/adapters/postgres.rb:220:in `connect' | |
2011-07-19T18:04:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/sequel-3.25.0/lib/sequel/database/misc.rb:45:in `block in initialize' | |
2011-07-19T18:04:32+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/sequel-3.25.0/lib/sequel/connection_pool.rb:92:in `call' | |
2011-07-19T18:04:32+00:00 app[web.1]: from /app/vendor/bundl |
This file contains hidden or 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
An exception occurred running /Users/bobbywilson/projects/git_accessories/git-status-report | |
StackError (StackError) | |
Backtrace: | |
[0;31m String#[] at kernel/common/string.rb:244[0m | |
[0;34m IO.parse_mode at kernel/common/io.rb:267[0m | |
[0;34m IO.sysopen at kernel/common/io.rb:622[0m | |
[0;34m File#initialize at kernel/common/file.rb:71[0m | |
[0;34m Class#new at kernel/alpha.rb:94[0m | |
[0;34m IO.open at kernel/common/io.rb:249[0m |
This file contains hidden or 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
commit c506653d35249bb4738bb139c24362e1ae724bc1 | |
tree 24fdcd4d25b8e0fd14c4074f3ef3673d3c7f6eb3 | |
parent 0a0b7a5f7a043d86a95990d3227cf7e823ae52ac | |
author Eric Dumazet <[email protected]> 1295903776 -0800 | |
committer David S. Miller <[email protected]> 1295903776 -0800 | |
net: arp_ioctl() must hold RTNL | |
Commit 941666c2e3e0 "net: RCU conversion of dev_getbyhwaddr() and | |
arp_ioctl()" introduced a regression, reported by Jamie Heilman. |
This file contains hidden or 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
package main | |
import "fmt" | |
func step() (func() int) { | |
var a, b int = 0, 1 | |
return func() int { | |
fmt.Print(a,b, " ") | |
a = a + b |