<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>alexonrails.net</title>
	<atom:link href="http://www.alexonrails.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.alexonrails.net</link>
	<description>knowledge amplification, everything is about timing kid</description>
	<lastBuildDate>Sun, 05 Sep 2010 20:24:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>NOMACHINE &#8211; Accesso Remoto / Virtual Desktop GNU/Linux</title>
		<link>http://www.alexonrails.net/387/nomachine-accesso-remoto-virtual-desktop-gnulinux</link>
		<comments>http://www.alexonrails.net/387/nomachine-accesso-remoto-virtual-desktop-gnulinux#comments</comments>
		<pubDate>Sun, 05 Sep 2010 19:25:29 +0000</pubDate>
		<dc:creator>atejeda</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[nomachine. linux]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[tutorial. básico]]></category>

		<guid isPermaLink="false">http://www.alexonrails.net/?p=387</guid>
		<description><![CDATA[Tutorial de como instalar y configurar nomachine en maquinas linux Fedora, Ubuntu para una conexión a escritorio remoto. NOMACHINE o NX es una sistema de virtualización de escritorios en forma remota mediante conexiones SSH o SSH-KEY.]]></description>
			<content:encoded><![CDATA[<p><em>www.alexonrails.net<br />
Todo el contenido del post está bajo Creative Common CC-NSA<br />
</em></p>
<p><em>Autor: alexonrails.net<br />
Nivel de dificultad: Básico</em></p>
<h3>Antes de comenzar</h3>
<p>NOMACHINE o NX, es una aplicación que permite conectarde mediante cuenta SSH, llaves o Key-SSH, etc.. etc.. a un escritorio remoto GNU/Linux, esta aplicación puede ser descargada desde <a title="http://www.nomachine.com" href="http://www.nomachine.com" target="_blank">www.nomachine.com</a> o desde los repositorios de tu sistema.</p>
<div id="attachment_394" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.alexonrails.net/wp-content/uploads/2010/09/nomachine11.jpg" rel="lightbox[387]"><img class="size-medium wp-image-394" title="Captura de pantalla - NOMACHINE" src="http://www.alexonrails.net/wp-content/uploads/2010/09/nomachine11.jpg" alt="Captura de pantalla - NOMACHINE" width="300" height="187" /></a><p class="wp-caption-text">Captura de pantalla - NOMACHINE</p></div>
<h3>Objetivos</h3>
<div id="_mcePaste">Instalar y configurar NOMACHINE en una máquina remota y accesar mediante SSH a un escritorio remoto Gnome.</div>
<p><br/></p>
<h3><strong>Requisitos</strong></h3>
<ul>
<li>Conocimientos básicos de Gnu/Linux.</li>
<li>Tener instalado y funcionando el servicio <strong>sshd</strong>.</li>
</ul>
<h3>Recursos</h3>
<ul>
<li><a title="http://www.nomachine.com" href="http://www.nomachine.com" target="_blank">NOMACHINE NX</a></li>
<li>Cliente QtNX (instalable mediante repositiorios)</li>
</ul>
<p>La instalación de NOMACHINE es bastante rutinaria debido a que existe los paquete precompilados para Debian y RedHat entre otros, estos paquete pueden ser descargados desde la web de nomachine o instalados mediante repositorio del sistema, si la opción es instalarlo mediante repositorio el paquete se llama <strong>freenx</strong>.</p>
<li>Fedora: sudo yum instal freenx</li>
<li>Ubuntu: sudo apt-get install freenx</li>
<p>Una vez instalado puedes se debe configurar el servicio, ya sea para que el usuario se identifique mediante una cuenta SSH, una llave SSH (key-ssh) o por una base de datos propia de NX.</p>
<p>Edita el archivo de configuración con un editor de texto, vi, vim o gedit:</p>
<blockquote>
<p style="text-align: left;">/etc/nxserver/node.conf</p>
</blockquote>
<p style="text-align: left;">Si el puerto SSH es diferente debes editar la linea:</p>
<blockquote>
<p style="text-align: left;"><em>SSHD_PORT=587</em></p>
</blockquote>
<p>Edita el sistema de autentificación, en este caso será mediante SSH y comenta las lineas de PASSDB, SU, USERMODE y USER:</p>
<blockquote>
<p style="text-align: left;">ENABLE_SSH_AUTHENTICATION=&#8221;1&#8243;</p>
</blockquote>
<p style="text-align: left;">Editamos /etc/gdm/custom.conf añadiendole:</p>
<blockquote>
<p style="text-align: left;">[xdmcp]</p>
<p style="text-align: left;">Enable=true</p>
</blockquote>
<p style="text-align: left;">Reiniciamos el servicio:</p>
<blockquote>
<p style="text-align: left;">/etc/init.d/freenx restart</p>
</blockquote>
<p style="text-align: left;">Descargamos e instalamos el cliente de <a title="http://www.nomachine.com/download.php" href="http://www.nomachine.com/download.php" target="_blank">http://www.nomachine.com/download.php</a> (Windows, Mac, Linux).</p>
<p style="text-align: left;">
]]></content:encoded>
			<wfw:commentRss>http://www.alexonrails.net/387/nomachine-accesso-remoto-virtual-desktop-gnulinux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Full Circle Notifier for Fedora</title>
		<link>http://www.alexonrails.net/375/full-circle-notifier-for-fedora</link>
		<comments>http://www.alexonrails.net/375/full-circle-notifier-for-fedora#comments</comments>
		<pubDate>Thu, 19 Aug 2010 22:15:02 +0000</pubDate>
		<dc:creator>atejeda</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[full circle]]></category>
		<category><![CDATA[notifier]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://atejeda.backorg.com/?p=375</guid>
		<description><![CDATA[Now i&#8217;m working in the Full Circle Magazine Notifier to run on Fedora distro&#8217;s, Full Circle is a great Ubuntu magazine that every linux dude has to read. Some screenshots: Currently now the project is in development, more news about this follow the blog.]]></description>
			<content:encoded><![CDATA[<p>Now i&#8217;m working in the <a href="http://fullcirclemagazine.org" target="_blank">Full Circle Magazine </a>Notifier to run on Fedora distro&#8217;s, Full Circle is a great Ubuntu magazine that every linux dude has to read.</p>
<p>Some screenshots:</p>
<div id="attachment_376" class="wp-caption aligncenter" style="width: 310px"><a href="http://atejeda.backorg.com/wp-content/uploads/2010/08/Screenshot.png.jpg" rel="lightbox[375]"><img class="size-medium wp-image-376" title="Full Circle Notifier Running" src="http://atejeda.backorg.com/wp-content/uploads/2010/08/Screenshot.png-300x190.jpg" alt="Full Circle Notifier Running" width="300" height="190" /></a><p class="wp-caption-text">Full Circle Notifier Running</p></div>
<div id="attachment_377" class="wp-caption aligncenter" style="width: 310px"><a href="http://atejeda.backorg.com/wp-content/uploads/2010/08/Screenshot-2.png.jpg" rel="lightbox[375]"><img class="size-medium wp-image-377" title="Full Circle i686 RPM" src="http://atejeda.backorg.com/wp-content/uploads/2010/08/Screenshot-2.png-300x92.jpg" alt="Full Circle i686 RPM" width="300" height="92" /></a><p class="wp-caption-text">Full Circle i686 RPM</p></div>
<p>Currently now the project is in development, more news about this follow the blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexonrails.net/375/full-circle-notifier-for-fedora/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webcam &#8211; OpenCV &#8211; Python</title>
		<link>http://www.alexonrails.net/357/webcam-opencv-python</link>
		<comments>http://www.alexonrails.net/357/webcam-opencv-python#comments</comments>
		<pubDate>Fri, 23 Jul 2010 17:16:25 +0000</pubDate>
		<dc:creator>atejeda</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://atejeda.backorg.com/?p=357</guid>
		<description><![CDATA[Have to explain the code ? : # Author:Alexis Tejeda &#60;alexis.tejeda@gmail.com&#62; # Copyright: Alexis Tejeda - www.backorg.com # License: GPLv3 # Date: Sep, 17 2009 # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free [...]]]></description>
			<content:encoded><![CDATA[<p>Have to explain the code ? :</p>
<pre class="brush: python">
# Author:Alexis Tejeda &lt;alexis.tejeda@gmail.com&gt;
# Copyright: Alexis Tejeda - www.backorg.com
# License: GPLv3
# Date: Sep, 17 2009
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
#
# About to: This program is capable to connect to a DLink IP camera
# DCS-2102 through HTTP  to get the images or frame of the camera
# streaming in multipart/x-mixed-replace format.

#OpenCV Cameron Test Python Dependencies

from opencv import highgui
from opencv.highgui import cvNamedWindow, cvCreateCameraCapture, cvShowImage,\
    cvQueryFrame, cvSetCaptureProperty, cvWaitKey
from opencv.cv import cvGetSize

i = 0
win = &#039;OpenCVTest&#039;

camera = cvCreateCameraCapture(0)
cvNamedWindow(win, highgui.CV_WINDOW_AUTOSIZE)
cvSetCaptureProperty(camera, highgui.CV_CAP_PROP_FRAME_WIDTH, 640)
cvSetCaptureProperty(camera, highgui.CV_CAP_PROP_FRAME_HEIGHT, 480)  

while 1:
    frame = cvQueryFrame(camera)
    cvShowImage(win, frame)
    if frame is None:
            break
    k = cvWaitKey(10)

    if k == 0x1b: # ESC
        print &#039;ESC pressed. Exiting ...&#039;
        break
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alexonrails.net/357/webcam-opencv-python/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Python &#8211; get Multipart/x-mixed-replace in HTTP response</title>
		<link>http://www.alexonrails.net/322/python-get-multipartx-mixed-replace-in-http-response</link>
		<comments>http://www.alexonrails.net/322/python-get-multipartx-mixed-replace-in-http-response#comments</comments>
		<pubDate>Tue, 20 Jul 2010 19:50:56 +0000</pubDate>
		<dc:creator>atejeda</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[dlink]]></category>
		<category><![CDATA[multipart]]></category>

		<guid isPermaLink="false">http://blog.alexonrails.net/?p=322</guid>
		<description><![CDATA[Working on my project, i decided to use ruby on rails or python as the system back end, for that reason i have to make a driver for the Dlink IP Camera in <a href="http://atejeda.backorg.com/189/ruby-get-multipartx-mixed-replace-in-http-response/">ruby</a> and python  that connects to the camera and get the jpg streaming frames..
<div align="center"><a href="http://svn.alexonrails.net/DlinkDriver/trunk/screen_shoot_0.jpg"><img title="Dlink Python Driver" src="http://svn.alexonrails.net/DlinkDriver/trunk/screen_shoot_0.jpg" alt="Dlink Python" width="448" height="336" /></a></div>
The usage is very simple, just create the object and connect, instantly would be downloading the images on your file system like this...]]></description>
			<content:encoded><![CDATA[<p>Working on my project, i decided to use ruby on rails or python as the system back end, for that reason i have to make a driver for the Dlink IP Camera in <a href="http://atejeda.backorg.com/189/ruby-get-multipartx-mixed-replace-in-http-response/">ruby</a> and python  that connects to the camera and get the jpg streaming frames..</p>
<div align="center"><a href="http://svn.alexonrails.net/DlinkDriver/trunk/screen_shoot_0.jpg" rel="lightbox[322]"><img title="Dlink Python Driver" src="http://svn.alexonrails.net/DlinkDriver/trunk/screen_shoot_0.jpg" alt="Dlink Python" width="448" height="336" /></a></div>
<p>The usage is very simple, just create the object and connect, instantly would be downloading the images on your file system like this&#8230;</p>
<pre class="brush: python">c = BaseDlinkDriver(&#039;admin&#039;,&#039;cameron1&#039;, &#039;http://my.url.com:80/video/mjpg.cgi&#039;)
c.get_frames</pre>
<pre class="brush: python">
&#039;&#039;&#039;Driver for DLink IP Camera DCS-2102&#039;&#039;&#039;
# Author:Alexis Tejeda
# Copyright: Alexis Tejeda - www.backorg.com
# License: GPLv3
# Date: Sep, 17 2009
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see .
#
# About to: This program is capable to connect to a DLink IP camera
# DCS-2102 through HTTP  to get the images or frame of the camera
# streaming in multipart/x-mixed-replace format.

import time
import urllib2
from urllib2 import HTTPError

class BaseDlinkDriver:
    &quot;&quot;&quot;Class Driver for DLink IP Camera DCS-2102&quot;&quot;&quot;

    def __init__(self, user, password, uri):
        &quot;&quot;&quot;Constructor&quot;&quot;&quot;
        self.user = user
        self.password = password
        self.uri = uri
        self.auth = None
        self.http = None
        self.setup_connection()
        self.last_frame_time = time.time()
        self.iterator = 0
        self.events = []
        self.fps = None
        self.frame = None

    def setup_connection(self):
        &quot;&quot;&quot;Setup the initial connection&quot;&quot;&quot;
        self.auth = urllib2.HTTPPasswordMgrWithDefaultRealm()
        self.auth.add_password(None, self.uri, self.user, self.password)
        handler = urllib2.HTTPBasicAuthHandler(self.auth)
        opener = urllib2.build_opener(handler)
        opener.open(self.uri)
        urllib2.install_opener(opener)

    def get_frame(self):
        &quot;&quot;&quot;Get the camera frame, return the binary data in a byte array&quot;&quot;&quot;
        try:
            response = urllib2.urlopen(self.uri)
            content_length = None

            #find the content length
            while 1:
                line =  response.readline()
                if line.split(&#039;:&#039;)[0] == &quot;Content-Length&quot;:
                    content_length = line
                    response.readline()
                    break

            frame_length =  int(content_length.strip().split()[1])
            self.frame = response.read(frame_length)
            self.calculateFPS()
            return  list(bytearray(self.frame))
        except HTTPError, exception:
            print exception.code
            return None

    def calculateFPS(self):
        &quot;&quot;&quot;Calc the fps per second&quot;&quot;&quot;
        self.fps =  round((1/(time.time() - self.last_frame_time)),2)
        self.last_frame_time =  time.time()
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alexonrails.net/322/python-get-multipartx-mixed-replace-in-http-response/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How setup OpenCV in Fedora 11-12-13</title>
		<link>http://www.alexonrails.net/313/how-setup-opencv-in-fedora-11-12-13</link>
		<comments>http://www.alexonrails.net/313/how-setup-opencv-in-fedora-11-12-13#comments</comments>
		<pubDate>Wed, 02 Jun 2010 01:15:12 +0000</pubDate>
		<dc:creator>atejeda</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[11]]></category>
		<category><![CDATA[12]]></category>
		<category><![CDATA[13]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[opencv]]></category>
		<category><![CDATA[setup]]></category>

		<guid isPermaLink="false">http://blog.alexonrails.net/?p=313</guid>
		<description><![CDATA[Install OpenCV devel librarys. [atejeda@backorg ~]$ sudo yum install opencv-devel -y The edit your bash profile adding this line in the end of the file (in this case edited with VI). [atejeda@backorg ~]$ vi ~/.bash_profile export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH Then include in uour script the header files located in : /usr/include/opencv/]]></description>
			<content:encoded><![CDATA[<p>Install OpenCV devel librarys.</p>
<pre lang="bash" line="1">
[atejeda@backorg ~]$ sudo yum install opencv-devel -y
</pre>
<p>The edit your bash profile adding this line in the end of the file (in this case edited with VI).</p>
<pre lang="bash" line="1">
[atejeda@backorg ~]$ vi  ~/.bash_profile
export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
</pre>
<p>Then include in uour script the header files located in :<br />
/usr/include/opencv/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexonrails.net/313/how-setup-opencv-in-fedora-11-12-13/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora 13 &#8211; Repositiories &#124; Livna &#124; Rpm-fusion</title>
		<link>http://www.alexonrails.net/309/fedora-13-repositiories-livna-rpm-fusion</link>
		<comments>http://www.alexonrails.net/309/fedora-13-repositiories-livna-rpm-fusion#comments</comments>
		<pubDate>Thu, 27 May 2010 14:35:54 +0000</pubDate>
		<dc:creator>atejeda</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[13]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fusion]]></category>
		<category><![CDATA[livna]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://blog.alexonrails.net/?p=309</guid>
		<description><![CDATA[Once you have installed Fedora 13 in your computer, you will notice that they are no media support, so you will have to install some repositories (Livna, Rpm-fusion free and non free) list for download codecs, apps, etc.. etc..: Open a terminal or console and install the RPM under superuser(su) or sudo mode : RPM [...]]]></description>
			<content:encoded><![CDATA[<p>Once you have installed Fedora 13 in your computer, you will notice that they are no media support, so you will have to install some repositories (Livna, Rpm-fusion free and non free) list for download codecs, apps, etc.. etc..:<br />
Open a terminal or console and install the RPM under superuser(su) or sudo mode :</p>
<p>RPM FUSION (also for F11, F12)</p>
<pre class="brush: bash">
su -c &#039;rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm&#039;
su -c &#039;rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm&#039;
</pre>
<p>LIVNA</p>
<pre class="brush: bash">
su -c &#039;rpm -Uvh http://rpm.livna.org/repo/13/i386/livna-release-1-1.noarch.rpm&#039;
su -c &#039;rpm -Uvh http://rpm.livna.org/repo/13/i386/libdvdcss-1.2.10-1.i386.rpm&#039;
</pre>
<p>Update with : yum update, and that’s it, the repositories are for 32 or i386 machines.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexonrails.net/309/fedora-13-repositiories-livna-rpm-fusion/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Yes! you can build flash based sites using open source frameworks !</title>
		<link>http://www.alexonrails.net/307/yes-you-can-build-flash-based-sites-using-open-source-frameworks</link>
		<comments>http://www.alexonrails.net/307/yes-you-can-build-flash-based-sites-using-open-source-frameworks#comments</comments>
		<pubDate>Mon, 24 May 2010 08:44:22 +0000</pubDate>
		<dc:creator>atejeda</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[frameworks]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[sites]]></category>

		<guid isPermaLink="false">http://blog.alexonrails.net/?p=307</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.alexonrails.net/307/yes-you-can-build-flash-based-sites-using-open-source-frameworks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create POSTFIX accounts using Ruby On Rails in Adobe Flex</title>
		<link>http://www.alexonrails.net/305/create-postfix-accounts-using-ruby-on-rails-in-adobe-flex</link>
		<comments>http://www.alexonrails.net/305/create-postfix-accounts-using-ruby-on-rails-in-adobe-flex#comments</comments>
		<pubDate>Fri, 21 May 2010 15:39:24 +0000</pubDate>
		<dc:creator>atejeda</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Proyectos]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[on]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[virtual]]></category>

		<guid isPermaLink="false">http://blog.alexonrails.net/?p=305</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.alexonrails.net/305/create-postfix-accounts-using-ruby-on-rails-in-adobe-flex/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deploy Ruby on Rails Applications in production enviroment on Apache</title>
		<link>http://www.alexonrails.net/303/deploy-ruby-on-rails-applications-in-production-enviroment-on-apache</link>
		<comments>http://www.alexonrails.net/303/deploy-ruby-on-rails-applications-in-production-enviroment-on-apache#comments</comments>
		<pubDate>Sun, 16 May 2010 00:14:38 +0000</pubDate>
		<dc:creator>atejeda</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[on]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[seliux]]></category>

		<guid isPermaLink="false">http://blog.alexonrails.net/?p=303</guid>
		<description><![CDATA[Install the passenger gem in ruby: [atejeda@backorg ~]$ sudo gem install passenger Install the passenger apache module: [atejeda@backorg ~]$ sudo passenger-install-apache2-module Add this lines to httpd.conf: LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15 PassengerRuby /usr/bin/ruby Add a virtual host in httpd.conf (example): &#60;virtualhost *:80 &#62; ServerName atejeda.backorg.com DocumentRoot /var/www/html # RailsEnv development # RailsBaseURI /atejeda &#60;Directory /var/www/html&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Install the passenger gem in ruby:</p>
<pre class="brush: sh">
[atejeda@backorg ~]$ sudo gem install passenger
</pre>
<p>Install the passenger apache module:</p>
<pre class="brush: sh">
[atejeda@backorg ~]$ sudo passenger-install-apache2-module
</pre>
<p>Add this lines to httpd.conf:</p>
<pre class="brush: sh">
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15
PassengerRuby /usr/bin/ruby
</pre>
<p>Add a virtual host in httpd.conf (example):</p>
<pre class="brush: xml">
&lt;virtualhost *:80 &gt;
        ServerName atejeda.backorg.com
        DocumentRoot /var/www/html
        # RailsEnv development
        # RailsBaseURI /atejeda
        &lt;Directory /var/www/html&gt;
                # AllowOverride all
                # Options -MultiViews
                Options Indexes FollowSymLinks
                Order allow,deny
                Allow from all
        &lt;/Directory&gt;

        RailsBaseURI /atejeda
        &lt;Directory /var/www/html/atejeda&gt;
                Options -MultiViews
        &lt;/Directory&gt;
&lt;/virtualhost&gt;
</pre>
<p>Create the symbolic link</p>
<pre class="brush: sh">
[atejeda@backorg ~]$ ln -s /home/atejeda/www/blogs/public  /var/www/html/blog
</pre>
<p>Restart the service (graceful o full restart):</p>
<pre class="brush: sh">
[atejeda@backorg ~]$ sudo service httpd graceful
</pre>
<p>or</p>
<pre class="brush: sh">
[atejeda@backorg ~]$ sudo service httpd restart
</pre>
<p>An important note: This only works when the ruby app is in the <strong>production</strong> enviroment !!.</p>
<p>And config the SELinux to Permissive or Disable, how to to this: <a href="http://www.crypt.gen.nz/selinux/disable_selinux.html">http://www.crypt.gen.nz/selinux/disable_selinux.html</a></p>
<p>More info can be found: <a href="http://www.modrails.com/documentation/Users%20guide%20Apache.html">http://www.modrails.com/documentation/Users%20guide%20Apache.html</a></p>
<p>Symlink problem fix: <a href="http://www.zsoltmolnar.hu/blog/tech/2006/07/symbolic-link-not-allowed-or-link.html">http://www.zsoltmolnar.hu/blog/tech/2006/07/symbolic-link-not-allowed-or-link.html</a></p>
<p>A good syadmin, always check the log&#8217;s file, check yours in case of any errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexonrails.net/303/deploy-ruby-on-rails-applications-in-production-enviroment-on-apache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux &amp; Ruby &amp; Axel, download them all &#8230; easy</title>
		<link>http://www.alexonrails.net/301/linux-ruby-axel-download-them-all-easy</link>
		<comments>http://www.alexonrails.net/301/linux-ruby-axel-download-them-all-easy#comments</comments>
		<pubDate>Wed, 05 May 2010 02:44:44 +0000</pubDate>
		<dc:creator>atejeda</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[axel]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[downloader]]></category>

		<guid isPermaLink="false">http://blog.alexonrails.net/?p=301</guid>
		<description><![CDATA[Axel is a download accelerator for linux, it&#8217;s almost the same like wget, but, makes 3 or 4 connections to download a file. So, i have a bunch URL in a text file, that i want download, so, i&#8217;ve created a ruby script to download each file with axel. #!/usr/bin/env ruby begin file = File.new(ARGV[0], [...]]]></description>
			<content:encoded><![CDATA[<p>Axel is a download accelerator for linux, it&#8217;s almost the same like wget, but, makes 3 or 4 connections to download a file.<br />
So, i have a bunch URL in a text file, that i want download, so, i&#8217;ve created a ruby script to download each file with axel.</p>
<pre lang="ruby" line="1">
#!/usr/bin/env ruby
begin
file = File.new(ARGV[0], "r")
	while (line = file.gets)
		system("axel -a #{line}")
	end
rescue
	puts "Theres a problem to open the file..."
end
</pre>
<p>Easy to use : </p>
<pre lang="bash" line="1">
./downloader.rb MyTexFileWithURL.txt
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alexonrails.net/301/linux-ruby-axel-download-them-all-easy/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
