screengrab queda muerto

Uno de mis plugins favoritos de Firefox screengrab se queda en el camino. Screengrab es un cómodo y ligero plugin que permite capturar la imagen del navegador permitiendo capturar la página completa o sólmanete la parte visible. Es muy útil y práctico pero la salida de Firefox 6 y sucesivas versiones, han dejado el plugin inutilizable. Tal y como indica su creador Andy Mutton, la funcionalidad se ha roto y no dispone de tiempo para investigar. Además ha dejado de usar Firefox en favor de Chrome.

Andy Mutton comunica que no seguirá el desarrollo de screegrab

Como alternativas estoy probando :
pagesaver
Awesome Screenshot Capture & Annotate

Muchas gracias Andy Mutton por desarrollar screengrab !

Esto me hace pensar si algún día prohibirán a los desarrolladores tener familia para que sigan creando…

P.D.: Al final me quedo con “Awesome screenshot captue & anottate” es cómodo, práctico y permite agregar notas en las capturas de pantalla como esta :

 

rails + omniauth + omniauth-twitter

Llevo toda la tarde con el error :

[shell]
Error authenticating
/auth/failure?message=invalid_response
[/shell]

He estado siguiendo el manual de asciicast 241 241-simplemente-omniauth

y me faltó por crear el método create_with_omniauth

[shell]
/app/models/user.rb

class User < ActiveRecord::Base
def self.create_with_omniauth(auth)
create! do |user|
user.provider = auth[“provider”]
user.uid = auth[“uid”]
user.name = auth[“user_info”][“name”]
end
end
end
[/shell]

Ruby on Rails + Papercliip: cannot load such file — cocaine (LoadError)

Estoy usando Paperclip para asociar adjuntos y al generar el modelo casca este error :
[shell]
$ rails generate paperclip pet photo
/var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require’: cannot load such file — cocaine (LoadError)
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `block in require’
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `block in load_dependency’
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in’
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency’
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require’
from /home/jorge/Proyects/Clientes/elcielodelosgatos/vendor/plugins/paperclip/lib/paperclip.rb:45:in `
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require’
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `block in require’
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `block in load_dependency’
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in’
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency’
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require’
from /home/jorge/Proyects/Clientes/elcielodelosgatos/vendor/plugins/paperclip/init.rb:1:in `block in
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/plugin.rb:81:in `eval’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/plugin.rb:81:in `block in

from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:83:in `require’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:83:in `require_environment!’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:22:in `
from script/rails:6:in `require’
from script/rails:6:in `


[/shell]

Para solucionarlo, hay que instalar la gema cocaine ( A small library for doing (command) lines )

[shell]
gem install cocaine
[/shell]

Sige apareciendo el error así que hay que agregarlo a Gemfile
[shell]
echo “gem ‘cocaine'” >> Gemfile
[/shell]

y ya funciona.

`autodetect’: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)

Una de ruby + rails en Debian wheezy.
Estoy tocando ruby on rails de nuevo y al actualizar rails en debian he tenido que hacer unos retoques en la instalación.

Lo primero es instalar ruby1.9.3
[shell]
apt-get install ruby1.9.3
[/shell]

luego, rails a la última 3.1 hay que hacerlo con gem ya que en Debian aún no está disponible

[shell]
gem install rails
[/shell]

Pues bien, me he creado un proyecto nuevo y al ejecutar el servidor me aparece este mensaje:
[shell]
$rails server
/var/lib/gems/1.9.1/gems/execjs-1.2.12/lib/execjs/runtimes.rb:47:in `autodetect’: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
from /var/lib/gems/1.9.1/gems/execjs-1.2.12/lib/execjs.rb:5:in `
from /var/lib/gems/1.9.1/gems/execjs-1.2.12/lib/execjs.rb:4:in `
from /var/lib/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require’
from /var/lib/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require’
from /var/lib/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each’
from /var/lib/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require’
from /var/lib/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each’
from /var/lib/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require’
from /var/lib/gems/1.9.1/gems/bundler-1.0.21/lib/bundler.rb:122:in `require’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:52:in `require’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:52:in `block in
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap’
from /var/lib/gems/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:49:in `
from script/rails:6:in `require’
from script/rails:6:in `


[/shell]
Como hace mucho que no toco rails y ha cambiado bastante me he ido a buscar a google y encontré este enlace : http://www.ruby-forum.com/topic/1899392

La solución en mi caso ha sido moficando el fichero Gemfile
[shell]
echo “gem ‘execjs'” >> Gemfile
echo “gem ‘therubyracer'” >> Gemfile
bundle install
[/shell]

Con ‘bundle install’ rails se encarga de instalar lo que necesite, en mi caso ha funcionado correctamente.