Created
June 29, 2011 03:43
-
-
Save meltzerj/1052999 to your computer and use it in GitHub Desktop.
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
Command failed: /rubyprograms/search --format jpg http://www.mtv.com/music/artist/lil_wayne/artist.jhtml -: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:67:in `exec': Permission denied - /rubyprograms/search (Errno::EACCES) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:67:in `popen3' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:53:in `fork' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:53:in `popen3' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:51:in `fork' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:51:in `popen3' from /Library/Ruby/Gems/1.8/gems/imgkit-1.3.1/lib/imgkit/imgkit.rb:77:in `to_img' from /rubyprograms/search/app/workers/image_generator.rb:6:in `perform' from /Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/job.rb:127:in `perform' from /Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/worker.rb:163:in `perform' from /Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/worker.rb:130:in `work' from /Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/worker.rb:116:in `loop' from /Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/worker.rb:116:in `work' from /Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/tasks.rb:27 from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `call' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `each' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `each' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:62:in `run' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:in `run' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/bin/rake:32 from /Library/Ruby/Gems/1.8/bin/rake:19:in `load' from /Library/Ruby/Gems/1.8/bin/rake:19 | |
/Library/Ruby/Gems/1.8/gems/imgkit-1.3.1/lib/imgkit/imgkit.rb:87:in `to_img' | |
/rubyprograms/search/app/workers/image_generator.rb:6:in `perform' | |
/Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/job.rb:127:in `perform' | |
/Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/worker.rb:163:in `perform' | |
/Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/worker.rb:130:in `work' | |
/Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/worker.rb:116:in `loop' | |
/Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/worker.rb:116:in `work' | |
/Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/tasks.rb:27 | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `call' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `each' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `each' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:62:in `run' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:in `run' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/bin/rake:32 | |
/Library/Ruby/Gems/1.8/bin/rake:19:in `load' | |
/Library/Ruby/Gems/1.8/bin/rake:19 |
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
/Library/Ruby/Gems/1.8/gems/imgkit-1.3.1/lib/imgkit/imgkit.rb:87:in `to_img' | |
/rubyprograms/search/app/workers/image_generator.rb:6:in `perform' | |
/Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/job.rb:127:in `perform' | |
/Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/worker.rb:163:in `perform' | |
/Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/worker.rb:130:in `work' | |
/Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/worker.rb:116:in `loop' | |
/Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/worker.rb:116:in `work' | |
/Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/tasks.rb:27 | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `call' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `each' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `each' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:62:in `run' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:in `run' | |
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/bin/rake:32 | |
/Library/Ruby/Gems/1.8/bin/rake:19:in `load' | |
/Library/Ruby/Gems/1.8/bin/rake:19 |
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
class ImageGenerator | |
@queue = :image_queue | |
def self.perform(url, search_term, page_number, result_number) | |
image = IMGKit.new("#{url}").to_jpg | |
end | |
end |
krainboltgreene
commented
Jun 29, 2011
[email protected] thanks!!!
I think this Gem is just all sorts of screwed up. Here, I've submitted an issue: csquared/IMGKit#7
## You'll probably have to look for an alternative.
Kurtis Rainbolt-Greene
Hacker, Designer, Author, & Father
718 Mill Street
Springfield, OR
(202) 643 2263
…On Tuesday, June 28, 2011 at 9:05 PM, meltzerj wrote:
***@***.*** thanks!!!
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/1052999
Yeah, he did mention it was his first gem: http://www.chriscontinanza.com/2010/12/12/Introding-IMGKit.html
I originally used PhantomJS (http://www.phantomjs.org/) and it pretty much worked fine. I wanted to try this out because it was Ruby specific, could be run on Heroku, and thought it might perform faster. I don't think there's a way to install PhantomJS on Heroku so I'll have to get familiar with Linode or AWS (never used these before).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment