jueves, 17 de diciembre de 2009

How to install Ruby on Rails on a windows PC


Note: Tutorial targeted at n00bs and is for a purely developer environemnt not suitable for a production environment (can be used as one but not recommended).

Ruby on Rails or just Rails is a framework for building web applications and is quite famous among the developers, first of all for the use of the wonderful language Ruby and next Rails itself is a wonderful piece of software in itself. Ruby is so english like and has a smooth learning curve especially for those new to programming than those who are used to some other language. Ofcourse when you are used to some language every other language seems to be strange.

Install Guide:
First of all you need to Download a few packages
Ruby Windows Installer - http://rubyforge.org/frs/?group_id=167
MySQL - http://dev.mysql.com/downloads/mysql/5.0.html#win32
 
The next thing you need depends on weather you have internet access on your developer machine or not, incase you have internet access, just use the following commandafter you have installed Ruby

gem install rails –include-dependencies 

Incase you have problem installing using this command because you are currently on the plane or in the desert waging war against terror or may be worse behind a restrictive corporate proxy server, you need to download the gem files and install them individually.

First of all download the latest Rails gem from
http://rubyforge.org/frs/?group_id=307
donwload the file with the .gem extension and then run this command

gem install gem-name-x.x.x –local
example - gem install rails-1.2.3 –local
 
The gem file should be in the path or else change to the directory where you put the file and then run the command else you are going to get gem file not found error

When you enter the above command it gives an error message saying rail-1.2.3 needs some-other-gem-1.x.x , these are called dependencies, you need these installed before you install rails, so you need to download these gem packages too, so search for the gem file missing at the rubyforge site

I have made a list of dependecnies for the latest version of rails - rails-1.2.3

rake (>= 0.7.2)
http://rubyforge.org/projects/rake/
activesupport (= 1.4.2)
http://rubyforge.org/frs/?group_id=570&release_id=10359
activerecord (= 1.15.3)
http://rubyforge.org/frs/?group_id=182&release_id=10363
actionpack (= 1.13.3)
http://rubyforge.org/frs/?group_id=249&release_id=10360
actionmailer (= 1.3.3)
http://rubyforge.org/frs/?group_id=361&release_id=10365
actionwebservice (= 1.2.3)
http://rubyforge.org/frs/?group_id=567&release_id=10366
grab the latest release of gem files at these project pages and install them using the common command
gem install gemname-1.x.x –local 
 
Once you get rails installed, you can be sure that is has succesfully installed along with all the dependencies. You might wonder, dont these things need a web server like Apache? The answer is yes and no, its actually not necessary but sure is an optio. Ruby has a build in web server WEBrick, which lets you get started and running with just one command, no install needed!

Now that you have a developer Rails environemnt setup, you can go whip a new rails application in minutes with this tutorial at IBM Developer Works

jueves, 26 de noviembre de 2009

Mininova Deletes All Infringing Torrents and Goes ‘Legal’

Fuente: TorrentFreak.com

Mininova, the largest torrent site on the Internet, has removed all torrents except those that were uploaded through its content distribution service. Mininova’s founders took the drastic decision after they lost a civil dispute against Dutch anti-piracy outfit BREIN, and were ordered to remove all infringing torrents from the site.

mininovaMininova’s decision to delete all infringing torrents from its index marks the end of an era that started five years ago.

In December 2004, the demise of the mighty Suprnova left a meteor crater in the fledgling BitTorrent landscape. This gaping hole was soon filled by the dozens of new sites that emerged to fulfil the public’s increasing demands for torrents. Mininova became the most successful of all.

Mininova was founded in early 2005 by five Dutch students, just a month after Suprnova closed its doors. The site started out as a hobby project created by tech-savvy teenagers, but in the years that followed the site’s founders managed to turn it into a successful business that generated millions of dollars in revenue.

With increased popularity also came numerous complaints from copyright holders, who saw their intellectual property being shared by users of the site. For years Mininova has complied with these takedown requests, but earlier this year the Dutch anti-piracy outfit BREIN decided to take the torrent site to court nonetheless, demanding that the operators proactively filter torrents pointing to copyrighted material.

The case went to court in June and a few weeks later the verdict was announced. The judge ruled that Mininova is not directly responsible for any copyright infringements, but ordered it to remove all torrents linking to copyrighted material within three months, or face a penalty of up to 5 million euros.

To avoid having to pay these penalties, the Mininova team saw no other option than to disable access to all torrents except those that were uploaded to their content distribution platform. This means that only approved uploaders can share torrents through the site for now.
During the last few months, Mininova has extensively tested several filtering techniques, but none of these proved 100% effective. “It’s very unfortunate that we’re forced to take this action, but we saw no other option,” Mininova co-founder Niek told TorrentFreak.

Mininova still hasn’t decided yet whether they will appeal the verdict, Niek further told TorrentFreak. They have appealed the verdict pro-forma, which gives the company more time to decide whether they will indeed continue with the appeal. As it looks now, a successful appeal is the only option for Mininova to bring all torrents back.

The implications of Mininova’s decision will have a huge impact on the BitTorrent community. The millions of Mininova users and uploaders have to look for a new home, but perhaps even more importantly, Mininova had the largest collection of user-submitted torrents that were used by dozens of smaller torrent indexers.
More information on the consequences and background of Mininova’s decision will be addressed in a follow up article.

lunes, 23 de noviembre de 2009

¿Y dónde quedaron los antropólogos?

Mientras más cambian las cosas más siguen siendo lo mismo.

Hoy leía en el metro una gorra que decía algo así como "queremos paz, la historia no siempre se repite", lo que inevitablemente trae a la memoria la frase de "sólo aquel que no conoce su historia está condenada a repetirla", que si mal no recuerdo es de Goethe... sin embargo, siendo objetivos, la historia siempre se repite. Es como una de esas malas telenovelas del canal 2 donde básicamente siempre pasa lo mismo.

El fin de semana leía sobre AMLO y sus propuestas para salir del hoyo. Todo él es un ejemplo de la historia repetida, y lo peor, su ideología y sus propuestas son refritos de otros tiempos. Esto es un poco como todo en México, un chingo de ideología, pero nada de ideas. Cero planes. Todo dejado a la improvisación.

El movimiento agrario, la izquierda, el zapatismo, el comunismo, la onda hippie, los liberales, los conservadores. Pura desorganización al servicio de la desorganización. No me parece tan raro que en esta sociedad comencemos a darnos un valor referido a nuestros estados de cuenta, inmersos en un consumismo que al parecer es lo único que nos brinda una respuesta, en lugar de un eco devuelto ante un grito en un cuarto enorme pero vacío, donde no existe nada más allá de nosotros mismos, y unos zapatos nuevos.

¿No era igual en el Renacimiento, en la Edad Media, en Roma? La propiedad privada no es un invento del hombre. Los animales guardan su territorio y a sus hembras... ¿dónde quedaron los antropólogos? Esto me suena más a una cuestión natural que netamente humana (social). Creo me parecen ahora más apreciables las opiniones de los biólogos, que de los sociólogos.

viernes, 20 de noviembre de 2009

El ostentoso recurso de la planosecuencia

Detengámonos a pensar un instante. Vemos. Somos seres visuales, homo videns, el 80% de la información que procesamos proviene de los ojos.

Hace rato veía una escena de Goodfellas (1990). Ray Liota entra con su chica, la futura Dra. Melfi de Los Sopranos. Él es un mafioso italoamericano, que detiene su auto frente al restaurante Copacabana. Entra por la cocina, evade a algunos meseros, cocineros, un ejército de personas, entra al área de restaurante y se la ha pasado saludando, y la gente le hace reverencias. Él reparte propinas de 20 dólares a diestra y siniestra, mientras va con su chica, tomada de su brazo, encantada. Los meseros se apuran a improvisarle una mesa, igual de bien decorada como cualquier otra, con una pequeña lamparita eléctrica. Dos sillas, a un metro de la pista donde se prepara una variedad musical. Sus colegas lo saludan del otro extremo de la pista, y le envían una botella.

Todo este recorrido a tenido un tercer acompañante: una cámara, que no ha hecho un solo corte.

Sólo queda decir que el cine utiliza este recurso para enfatizar situaciones, haciéndonos ver la narrativa cinematográfica como aquella narrativa inherente al hombre, y que se va contando a sí misma una historia, todos los días, mientras vivimos nuestras vidas, así, sin cortes. Y por supuesto, sin guiones.


viernes, 6 de noviembre de 2009

Windows 7

Me gustaría conocer cineastas libres, independientes, estudiantes incluso, pero cineastas. Me gustaría hacer un youtube, pero dedicado al cortometraje mexicano, y ponerle una marca. Tal vez no sea sustentable, tal vez sí, pero la difusión que se tendría sería increíble.
Incluso no meter cualquier cosa, y sí tener un filtro de calidad. Si es bueno, se queda, y los que estén todos podrán votar si son buenos, malos, regulares o una mierda que debería ser borrada de la faz de la tierra.
En fin... se me ocurrió ahorita... por un mail que me llegó de yei lo.

carpe noctem :-)