Iniciar Sesion

Planet

Se necesitan colaboradores

¿Te gustaría colaborar con un proyecto de software libre? Es muy sencillo, y no necesitas ningún tipo de conocimiento. ¿Quiéres saber cómo? Pues entra en la sección de colaboración de YakiTo, donde se ha publicado una pequeña guía que explica cómo ayudar al proyecto de una forma muy sencilla.
Ayuda al software libre y comienza a formar parte del grupo de colaboradores de YakiTo. ¿A qué esperas?

Preparando el paso a fase alfa!

Buenas! Últimamente no he actualizado ni el repositorio de github, ni subversion, ni la forja, ni el blog… la razón es simple: estoy comenzando el paso a la versión alfa! Dado que en este preciso instante estoy siendo el único desarrollador del proyecto, me resulta mas cómodo trabajar los cambios que necesito arreglar antes del cambio a [...]

Creación de escenarios en formato DotScene con Blender

Como pudisteis ver en el anterior vídeo ya he conseguido cargar un escenario creado con Blender. En este artículo pretendo explicar porqué he escogido Blender como editor de escenarios y cómo funciona el sistema de carga y gestión de niveles. Como veremos, aún me quedan puntos por implementar pero no quería abarcarlo todo desde el

Liberada la primera versión funcional de YakiTo

Me enorgullezco de poder comunicaros que la primera versión de YakiTo ha sido liberada. Debéis saber que la aplicación aún está en una fase temprana de desarrollo, por lo que es posible que no sea 100% estable. Pero parece que cumple con su funcionalidad más o menos bien, por lo que ya podéis descargarla desde aquí. Por supuesto, se distribuye en 3 versiones: una para Windows, otra para GNU/Linux, y otra para cualquier sistema operativo.
Así mismo, he aprovechado la ocasión para estrenar nuevo diseño en la web del proyecto. Espero que os guste.

The Ruby programmer stack 2: Installing Passenger with Nginx using Homebrew and RVM in Mac OS X

Summary:

  • Install RVM.
  • Install Nginx with Homebrew.
  • Install Passenger from RVM.
  • Configure the couple.
  • Setup a Rails Project.

Introduction
Running rails s every time we want to start a Ruby on Rails server is a waste of time and terminal tabs. The best way is to use Phusion Passenger. Phussion Passenger enables us to just go to http://davinci.dev and find the server. It is automatically started. On demand.
Install RVM
$ bash < < ( curl http://rvm.beginrescueend.com/releases/rvm-install-latest )

Add this snippet to the end of your .bash_profile or .zshrc

# This loads RVM into a shell session.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

Close the shell and open a new one.
Install ruby 1.9.2
$ rvm install 1.9.2

Set as default
$ rvm --default 1.9.2

Install Passenger from RVM
Install passenger and bundler in the global gemset
$ rvm 1.9.2@global gem install passenger bundler

Install Nginx from Homebrew
Install Nginx
$ brew install nginx --with-passenger

The install outputs instructions to make Nginx lauch at login:
$ cp /usr/local/Cellar/nginx/1.0.0/org.nginx.plist ~/Library/LaunchAgents/
$ launchctl load -w ~/Library/LaunchAgents/org.nginx.plist

Configure the couple
Decompress the source of Nginx.
$ cd $HOME/Library/Caches/Homebrew
$ tar xvf nginx-1.0.0.tar.gz

Now install the Nginx module
$ passenger-install-nginx-module

Do chose to customise your own Nginx installation.
Your Nginx source code is located here (change it to you user name):
/Users/Nerian/Library/Caches/Homebrew/nginx-1.0.0

Chose to install Nginx to:
/usr/local/Cellar/nginx/1.0.0/sbin

Click intro in the next two questions.
At the end of the install it says that it modified Nginx config file. Don’t use that file. Edit /usr/local/etc/nginx/nginx.conf and add the code snippet. Change user name and/or passenger version.
http {
...
passenger_root /Users/Nerian/.rvm/gems/ruby-1.9.2-p180@global/gems/passenger-3.0.6;
passenger_ruby /Users/Nerian/.rvm/wrappers/ruby-1.9.2-p180/ruby;
...
}

Set up a Rails Project
Add an entry to /usr/local/etc/nginx/nginx.conf. Notice that we can set the rails_env. In my case, I like to start the server on the development environment, that way the sources are reloaded every request. Very handy on the development machine.
server {
listen 8081;
server_name davinci.dev;
root /Users/Nerian/NetBeansProjects/DaVinci/public;
passenger_enabled on;
rails_env development;
}

Create a .rvmrc file on the root of your project. Change username and project name.
if [[ -s "/Users/Nerian/.rvm/environments/ruby-1.9.2-p180@DaVinci" ]] ; then
. "/Users/Nerian/.rvm/environments/ruby-1.9.2-p180@DaVinci"
else
rvm --create use "ruby-1.9.2-p180@DaVinci"
fi

Set up load paths in your Rails 3 project. This is config/setup_load_paths.rb
if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm')
begin
rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME']))
rvm_lib_path = File.join(rvm_path, 'lib')
$LOAD_PATH.unshift rvm_lib_path
require 'rvm'
RVM.use_from_path! File.dirname(File.dirname(__FILE__))
rescue LoadError
# RVM is unavailable at this point.
raise "RVM ruby lib is currently unavailable."
end
end

How do I see the logs of my application?
$ cd yourapp/
$ tail -f log/development.log

How do I restart my application?
$ touch yourapp/tmp/restart

The Ruby programmer stack 2: Installing Passenger with Nginx using Homebrew and RVM in Mac OS X

Summary:

  • Install RVM
  • Install Nginx with Homebrew
  • Install Passenger from RVM
  • Configure the couple.
  • Setup a Rails Project.

Introduction
Running rails s every time we want to start a Ruby on Rails server is a waste of time and terminal tabs. The best way is to use Phusion Passenger. Phussion Passenger enables us to just go to http://davinci.dev and find the server. It is automatically started. On demand.
Install RVM
$ bash <<(curl http://rvm.beginrescueend.com/releases/rvm-install-latest)

Close the shell and open a new one.
Install ruby 1.9.2
$ rvm install 1.9.2

Set as default
$ rvm --default 1.9.2

Install Passenger from RVM
Install passenger and bundler in the global gemset
$ rvm 1.9.2@global gem install passenger bundler

Install Nginx from Homebrew
Install Nginx
$ brew install nginx --with-passenger

The install outputs instructions to make Nginx lauch at login:
$ cp /usr/local/Cellar/nginx/0.8.54/org.nginx.plist ~/Library/LaunchAgents
$ launchctl load -w ~/Library/LaunchAgents/org.nginx.plist

Configure the couple
Decompress the source of Nginx.
$ cd $HOME/Library/Caches/Homebrew
$ tar xvf nginx-0.8.54.tar.gz

Now install the Nginx module
$ passenger-install-nginx-module

Do chose to customise your own Nginx installation.
Your Nginx source code is located here (change it to you user name):
/Users/Nerian/Library/Caches/Homebrew/nginx-0.8.54

Chose to install Nginx to:
/usr/local/Cellar/nginx/0.8.54/sbin

Click intro in the next two questions.
At the end of the install it says that it modified Nginx config file. Don’t use that file. Edit /usr/local/etc/nginx/nginx.conf and add the code snippet. Change to your user name.
http {
...
passenger_root /Users/Nerian/.rvm/gems/ruby-1.9.2-p180@global/gems/passenger-3.0.3;
passenger_ruby /Users/Nerian/.rvm/wrappers/ruby-1.9.2-p180/ruby;
...
}

Set up a Rails Project
Add an entry to /usr/local/etc/nginx/nginx.conf. Notice that we can set the rails_env. In my case, I like to start the server on the development environment, that way the sources are reloaded every request. Very handy on the development machine.
server {
listen 8081;
server_name davinci.dev;
root /Users/Nerian/NetBeansProjects/DaVinci/public;
passenger_enabled on;
rails_env development;
}

Create a .rvmrc file on the root of your project. Change username and project name.
if [[ -s "/Users/Nerian/.rvm/environments/ruby-1.9.2-p180@DaVinci" ]] ; then
. "/Users/Nerian/.rvm/environments/ruby-1.9.2-p180@DaVinci"
else
rvm --create use "ruby-1.9.2-p180@DaVinci"
fi

Set up load paths in your Rails 3 project. This is config/setup_load_paths.rb
if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm')
begin
rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME']))
rvm_lib_path = File.join(rvm_path, 'lib')
$LOAD_PATH.unshift rvm_lib_path
require 'rvm'
RVM.use_from_path! File.dirname(File.dirname(__FILE__))
rescue LoadError
# RVM is unavailable at this point.
raise "RVM ruby lib is currently unavailable."
end
end

How do I see the logs of my application?
$ cd yourapp/
$ tail -f log/development.log

How do I restart my application?
$ touch yourapp/tmp/restart

Cambios menores

Buenas a tod@s un día más. Hoy no traigo la descripción de ninguna clase, únicamente vengo a comentar algunas actualizaciones menores que he ido haciendo a algunas clases. Para empezar, clase Screen ahora puede dibujar un cuadro de textura invertido respecto al eje vertical a partir de una textura que no se modifica; por lo [...]

Tag Clouds

Thanks to the good job done by django-tagging, it is really easy to create your own tag clouds. They have already implemented a method that gives you a list of Tag objects. I’m going to explain what you have to … Continue reading →

IMU v0.0.2 (alpha 2)

Segunda versión de la IMU, se han añadido algunas cosas (señalización, etc.), se han corregido algunos errores y sobretodo se ha cambiado de micro. Ahora usaremos un ATmega1280.
El enlace: http://blogs.webdearde.com/nsdprobe/files/2011/02/IMUv002.pdf
El cambio al procesador ATmega1280, entre otras razones ha sido porque lo usa el Arduino Mega lo cual da juego a la hora de programar la sonda, ya que, a parte de los compiladores de ATmel, ahora se podrá hacer con el IDE del Arduino.

Cormoran supports the candidature!

Cormoran project supports Free and Open Source Software Community as a candidate for the Prince of Asturias Awards 2011 in the International Cooperation category.

Distribuir contenido

Colabora