tag:blogger.com,1999:blog-64905333619252268812024-03-13T20:58:55.717-06:00Blog de Luis Hernández MonroyMuchas gracias por visitar y leer mi blog. Publicaré notas de programación, tecnología,, linux y muchas cosas sobre el mundo online. Espero que esta información sea de tu interés.Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.comBlogger32125tag:blogger.com,1999:blog-6490533361925226881.post-48817832680223806182021-11-01T13:30:00.002-06:002021-11-01T23:50:22.521-06:00¿Qué significan las luces LED de los altavoces Alexa de Amazon?<p style="text-align: justify;"><span style="color: #444444; font-family: helvetica; font-size: medium;">En esta entrada de blog les compartiré lo que <b>significan las diferentes luces que muestran los altavoces Alexa de Amazon</b>. Si aún no conoces como funcionan estos dispositivos o quieres saber más de ellos, te invito a leer mi blog.</span></p><span style="color: #444444; font-family: helvetica; font-size: medium;"><div style="text-align: justify;">Bien, pues vamos directo a lo que nos interesa...</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Todos los <b>altavoces Alexa</b>, cuentan con <b>una luz LED que nos indica el estado de nuestro dispositivo</b>, es decir, es una forma en la que el dispositivo se comunica con nosotros, permitiéndonos identificar si nos esta escuchando o tratando de decir algo.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Estos estados puedes identificarlos por los colores, amarillo, azul, rojo, naranja, verde, morado y blanco.</div><div style="text-align: justify;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-lMicMLKZm6o/YYA_aILdvdI/AAAAAAAAcpo/a5Tdw_Ep4gsHOX7PE8Bwo-UiXEaP2kFjACLcBGAsYHQ/s512/alexa-blue-light.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="348" data-original-width="512" height="270" src="https://1.bp.blogspot.com/-lMicMLKZm6o/YYA_aILdvdI/AAAAAAAAcpo/a5Tdw_Ep4gsHOX7PE8Bwo-UiXEaP2kFjACLcBGAsYHQ/w396-h270/alexa-blue-light.png" width="396" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div style="text-align: justify;"><br /></div></span><div><span style="color: #444444; font-family: helvetica; font-size: medium;"><div style="text-align: justify;"><b>Amarillo</b></div><div style="text-align: justify;">Una <b>luz amarilla nos indica que Alexa está tratando de comunicarse con nosotros</b>. Para saber qué nos quiere decir, tan solo debemos preguntarle <b>“Alexa ¿Qué notificaciones tengo?”</b> o <b>“Alexa ¿Qué mensajes tengo?”</b>.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><b>Azul</b></div><div style="text-align: justify;">Una <b>luz azul nos indica que Alexa está escuchándonos</b>, además, si comienza a dar vueltas <b>significa que está procesando la solicitud</b>.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><b>Rojo</b></div><div style="text-align: justify;">La <b>luz roja aparece cuando presionamos el botón de encender o apagamos el micrófono</b>. Si está en este color significa que está desactivado y que Alexa no esta escuchándonos.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><b>Naranja</b></div><div style="text-align: justify;">La <b>luz naranja nos indica que se encuentra en modo ‘Configuración’</b> o está intentando de <b>conectarse a Internet</b>.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><b>Verde</b></div><div style="text-align: justify;">Cuando la <b>luz verde está parpadeando, significa que el usuario está recibiendo una llamada</b> en el dispositivo Alexa. Para responderla, podemos decir <b>“Alexa, responde”</b> y así dar inicio a la conversación con nuestro contacto, además, la luz empezará a girar hasta que finalicemos la llamada.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><b>Morado</b></div><div style="text-align: justify;">La <b>luz morada se mostrará cuándo la función ‘No molestar’ se encuentre activada,</b> así pues, aparecerá de manera breve dicha luz si recibe una orden. Por otro parte, también se mostrará la <b>luz morada si existe algún problema con la red WiFi cuando realizamos la configuración inicial de nuestro dispositivo</b>.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><b>Blanco</b></div><div style="text-align: justify;">La <b>luz blanca significa que estamos ajustando el volumen del altavoz</b> desde los botones que se encuentran en el dispositivo Alexa.</div></span></div>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-60548030775921333932015-04-10T00:46:00.000-05:002015-04-10T00:46:32.660-05:00Comprimir archivos PDF desde tu Mac con la terminal<h2 class="article-heading" style="box-sizing: border-box; font-size: 2.4rem; line-height: 1.2; margin: 0px 0px 1rem; text-align: left;">
</h2>
<div style="-webkit-text-stroke-width: 0px; background-color: white; box-sizing: border-box; color: #555555; font-family: sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; margin: 0px 0px 1rem; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Después de probar una infinidad de programas de escritorio para comprimir archivos PDF y en su mayoría de pago, ninguno me convencía o cumplía con mis necesidades, así que llegué a la siguiente solución; utilizar Ghostscript para comprimir archivos PDF muy pesados.<br />
<br />
<b>Y... ¿Qué es Ghostscript?</b><br />
<br />
Ghostscript es un interprete de PostScript, archivos PDF y una librería de gráficos, disponible bajo la licencia de <a href="http://www.gnu.org/licenses/agpl-3.0.html" style="background-color: white; color: #99004c;">GNU GPL Affero license</a> la cual nos permite usarla sin costo alguno.<br />
<br />
Para instalar Ghostscript en Mac es muy simple, la instalación se puede realizar utilizando el instalador de paquetes Homebrew, para esto abrimos una terminal y escribimos el siguiente comando:<br />
<br />
<b>brew install ghostscript</b><br />
<br />
Una vez instalado Ghostscript ya es posible comprimir archivos PDF, ahora escribimos en la terminal:<br />
<br />
<b>gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -dPDFSETTINGS=/screen -dCompatibilityLevel=1.1 -sOutputFile=miarchivocomprimido.pdf miarchivooriginal.pdf</b><br />
<br />
Dependiendo del tamaño del archivo PDF original, este proceso puede demorar algunos segundos o minutos, una vez termine, como resultado tendremos un archivo PDF comprimido y con calidad de impresión para la web.<br />
<br />
Listo! pero... recordar un comando con tantos parámetros puede ser algo difícil y poco productivo, para automatizar este proceso lo recomendable es generar una función que pueda hacer esta tarea mucho más fácil, para generar la función abrimos la terminal y editamos el archivo ~/.bash_profile, para esto escribimos:<br />
<br />
<b>sudo vi ~/.bash_profile</b><br />
<br />
Una vez en modo edición, hasta el final del contenido del archivo, creamos la función comprimepdf() de la siguiente manera:<br />
<br />
<b>comprimepdf(){</b><br />
<b> gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -dPDFSETTINGS=/${3:-"screen"} -dCompatibilityLevel=1.1 -sOutputFile=$2 $1</b><b>}</b><br />
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; box-sizing: border-box; color: #555555; font-family: sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; margin: 0px 0px 1rem; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Ahora, para probar que la función esta trabajando de forma correcta, salimos del mode edición del archivo ~/.bash_profile y escribimos en la terminal el siguiente comando para poder recargar el shell y tener disponible la función.<br />
<br />
<b>source ~/.bash_profile </b><br />
<br />
Ahora si! ejecutamos la función:<br />
<br />
comprimepdf mi-archivo-original.pdf mi-archivo-comprimido.pdf</div>
Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-2099099501956482782013-02-18T15:07:00.002-06:002013-02-18T15:07:55.972-06:00Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column - [RESUELTO]<br />
<span style="font-family: Courier New, Courier, monospace;">Por seguridad cuando se trabaja con <b>MySQL Workbench</b> no se permite hacer un <b>DELETE,UPDATE o TRUNCATE</b> sin usar la clausula <b>WHERE</b>, si se intenta ejecutar alguna de las siguientes sentencias obtenemos el siguiente error:</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<b><span style="font-family: Courier New, Courier, monospace;">Error Code: 1175</span></b><br />
<b><span style="font-family: Courier New, Courier, monospace;">You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column</span></b><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">Cuando se esta trabajando sobre una base de datos remota esta bien que la tengamos habilitada porque así podemos evitar una catastrofe en nuestra base de datos, pero cuando estamos trabajando sobre una base de datos local en nuestro entorno de desarrollo no necesitamos tanta seguridad, por ello hoy les comparto esta </span><br />
<span style="font-family: Courier New, Courier, monospace;">sencilla forma de deshabilitar la opción por defecto:</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">Antes de usar <b>DELETE, UPDATE o TRUNCATE</b>, escribimos:</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<b><span style="font-family: Courier New, Courier, monospace;">SQL_SAFE_UPDATES=0;</span></b><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">Listo !!! ahora ya podemos hacer Actualizar , eliminar o vaciar nuestra tabla.</span><br />
Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-26023477016449604652012-12-31T16:03:00.001-06:002013-01-08T09:07:16.621-06:00Error Parse error: syntax error, unexpected $end en CentOS 6.3<br />
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">Hoy el último día del 2012 me encontraba programando una aplicación web con soporte para iniciar sesión con Google Apps, Gmail, Facebook y Twitter con PHP, pero me encontre con un problema que me quito un par de horas resolver ya que en el navegador solo aparecia el tan común error 500, revisando un poco más a fondo en los Logs de Apache encontre un poco más a detalle el error me mostraba lo siguiente:</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><b>Error Parse error: syntax error, unexpected $end in /var/www/html/miproyecto/index.php</b></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">EL error indica que hay un error de sintaxis al final del código, pero revisando mi código veo que todo se encuentra bien, entonces porque el error???, muy simple... me encuentro usando CentOS como distro y por default esta distro se encuentra configurada para entornos productivos, así que para corregir el problema es muy sencillo (de verdad es muy sencillo), solo hay que modificar una directiva en el archivo <b>php.ini</b> para corregir el problema.</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">La directiva que hay que modificar es <b>short_open_tag</b> que por dafault como comentaba en CentOS se encuentra desactivada, lo que tenemos que hacer es buscar la directiva short_open_tag y habilitarla.</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">Lo primero que tenemos que hacer es abrir el archivo php.ini con el siguiente comando:</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<blockquote class="tr_bq">
<span style="font-family: Courier New, Courier, monospace;"><b>sudo vi /etc/php.ini</b></span></blockquote>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">Enseguida buscar ela directiva short_open_tag y habilitarla con el valor on.</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<blockquote class="tr_bq">
<span style="font-family: Courier New, Courier, monospace;"><b>short_open_tag = on</b></span></blockquote>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">Esta directiva determina cuando php reconoce los tags la forma en que deben de ser procesados entre <b><? y ?></b> o <b><?php ?></b> ,es recomendado no usar los tags cortos de php, si no más bien usar , de esta forma evitar que php confunda y termine de analizar el código de forma incorrecta.</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">Espero les sea de ayuda este sencillo tip, este es mi último post del 2012.</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<h2>
<span style="font-family: Courier New, Courier, monospace;">Feliz año nuevo.</span></h2>
Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-31040007758273713812012-12-29T19:44:00.002-06:002012-12-29T19:44:58.011-06:00Autocompletar en la terminal en CentOS 6.3<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">Después de 3 dias de usar CentOS todo iba de maravilla,pero hoy me di cuenta de un detalle tan pequeño pero tan importante para mi productividad, cuando me encontraba en la terminal escribiendo no me autocompletaba los comandos al pulsar la tecla TAB.</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">Esto es debido a que las distros basadas en Red Hat no tienen activada/instalada la característica de autocompletado por default como las distros basadas en Debian que si lo tienen activo.</span></div>
<div style="text-align: justify;">
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<span style="font-family: Courier New, Courier, monospace;"><div style="text-align: justify;">
Para instalar el paquete que nos permita el autocompletado realizamos los siguientes pasos:</div>
</span>
<div style="text-align: justify;">
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<span style="font-family: Courier New, Courier, monospace;"><div style="text-align: justify;">
1.- Abrimos nuestra terminal</div>
</span>
<span style="font-family: Courier New, Courier, monospace;"></span><br />
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">2.- Como es una instalación, debemos hacerlo con un usuario root con privilegios escribiendo en la terminal el comando:</span></div>
<blockquote class="tr_bq" style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><b>su</b></span></blockquote>
<span style="font-family: Courier New, Courier, monospace;"><div style="text-align: justify;">
3.- Una vez cambiamos de usuario escribimos el siguiente comando para instalar el paquete:</div>
</span><blockquote class="tr_bq" style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><b>yum install bash-completion</b></span></blockquote>
<span style="font-family: Courier New, Courier, monospace;"><div style="text-align: justify;">
4.- Por último solo tenemos que cerrar nuestra terminal para que los cambios se apliquen, enseguida volver a abrir la terminal y escribimos una parte del comando y al presionar la tecla TAB nos realizara el autocompletado.</div>
</span>
<div style="text-align: justify;">
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<span style="font-family: Courier New, Courier, monospace;"><div style="text-align: justify;">
Espero les sea de ayuda... es algo tan pequeño pero verdaderamente increible ya que nos ayuda a ser más productivos. </div>
</span>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-19338861591472092792012-12-28T13:22:00.003-06:002012-12-28T13:22:52.193-06:00Descomprimir archivos rar en CentOS 6.3<div style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 20px; text-align: justify;">
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div style="background-color: white; color: #444444; line-height: 20px; text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">Para descomprimir archivos rar en CentOS utilizaremos el paquete unrar,lo p</span><span style="font-family: 'Courier New', Courier, monospace;">rimero que tenemos que hacer es descargar el paquete usando el comando wget</span></div>
<div style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 20px; text-align: justify;">
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 20px; text-align: left;">
<span style="font-family: 'Courier New', Courier, monospace;"><b>wget ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/unrar-4.1.4-1.el4.rf.i386.rpm</b></span></div>
<div style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 20px; text-align: justify;">
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 20px; text-align: justify;">
<span style="font-family: 'Courier New', Courier, monospace;">Una vez que descargamos el paquete, nos posicionamos en el directorio donde lo descargamos y escribimos el siguiente comando para instalarlo</span></div>
<div style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 20px; text-align: justify;">
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<blockquote class="tr_bq" style="text-align: justify;">
<span style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-family: 'Courier New', Courier, monospace;"><b>rpm -Uvh unrar-4.1.4-1.el4.rf.i386.rpm</b></span></span></blockquote>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;">Para ver el contenido del archivo rar sin descomprimir utilizamos el siguiente comando:</span></div>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><br /></span></div>
<div>
<blockquote class="tr_bq" style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><b>unrar l miarchivo.rar</b></span></blockquote>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;">Para descomprimir el contenido del rar en el mismo directorio utilizamos el siguiente comando:</span></div>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><br /></span></div>
<blockquote class="tr_bq" style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><b>unrar e miarchivo.rar</b></span></blockquote>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;">Para conocer más opciones del comando unrar solo tenemos que escribir lo siguiente en la terminal</span></div>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><br /></span></div>
<blockquote class="tr_bq" style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><b>man unrar</b></span></blockquote>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="color: #444444; font-family: Courier New, Courier, monospace;"><br /></span></div>
<div>
<div style="text-align: justify;">
<span style="color: #444444; font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<br />
<div style="text-align: justify;">
<span style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;"><span style="font-family: 'Courier New', Courier, monospace;"><br /></span></span></div>
</div>
</div>
Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-86087198390427131332012-12-28T01:56:00.001-06:002012-12-28T01:56:20.362-06:00Saber la versión de Centos<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><span style="line-height: 24px;"><i>A veces necesitamos saber la versión de la distro que usamos.. es por eso que quiero compartir un comando muy sencillo pero verdaderamente útil.</i></span></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><span style="line-height: 24px;"><i><br /></i></span></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><span style="line-height: 24px;"><i>Si lo que necesitamos es conocer la versión de nuestro CentOS, solo tenemos que abrir la terminal y escribir el siguiente comando: </i></span></span></div>
<div style="text-align: justify;">
<em style="background-color: white; font-size: 16px; line-height: 24px;"><span style="font-family: Courier New, Courier, monospace;"><br /></span></em></div>
<blockquote class="tr_bq" style="text-align: justify;">
<em style="background-color: white; font-size: 16px; line-height: 24px;"><span style="font-family: Courier New, Courier, monospace;"><b>cat /etc/redhat-release</b></span></em></blockquote>
<div style="text-align: justify;">
<em style="background-color: white; font-size: 16px; line-height: 24px;"><span style="font-family: Courier New, Courier, monospace;"><br /></span></em></div>
<div style="text-align: justify;">
<em style="background-color: white; font-size: 16px; line-height: 24px;"><span style="font-family: Courier New, Courier, monospace;">Como resultado obtendremos la versión que usamos de CentOS, por ejemplo en mi caso me devuelve el siguiente resultado:</span></em></div>
<div style="text-align: justify;">
<em style="background-color: white; font-size: 16px; line-height: 24px;"><span style="font-family: Courier New, Courier, monospace;"><br /></span></em></div>
<div style="text-align: center;">
<em style="background-color: white; font-size: 16px; line-height: 24px;"><span style="font-family: Courier New, Courier, monospace;"><b>"</b></span></em><span style="font-family: Courier New, Courier, monospace;"><span style="line-height: 24px;"><i><b>CentOS release 6.3 (Final)"</b></i></span></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><span style="line-height: 24px;"><i><br /></i></span></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><span style="line-height: 24px;"><i>Espero les sea de mucha ayuda este simple comando.</i></span></span></div>
Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-35910906020692457022012-12-28T01:32:00.004-06:002012-12-28T01:32:53.957-06:00Instalar Rhythmbox en CentOS 6.3<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">Con este post iniciare a escribir acerca de CentOS, específicamente sobre la versión 6.3, mi intención es contribuir a mejorar la cantidad de información en español acerca de CentOS, no me adentrare a explicar la instalación de esta distro ya que en internet existen algunos tutoriales muy bien explicados con el procedimiento de la instalación, <a href="http://www.alcancelibre.org/staticpages/index.php/procedimiento-instalar-centos6" rel="" target="_blank">AQUÍ</a> pueden leer uno en español.</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">Bueno pues como primer post de CentOS me gustaria explicarles como instalar Rhythmbox Music Player.</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">Para los que ya estan familiarizados con otra distro, podran comprobar que es verdaderamente sencillo realizar instalaciones, por ejemplo el comando sudo sigue siendo utilizado para realizar tareas con privilegios, la diferencia es que en CentOS tenemos un comando llamado <b>YUM</b>.. que nos servira para instalar, actualizar o eliminar paquetes de nuestra distro.</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">Lo primero que tenemos que hacer es abrir nuestra terminal y escribir el siguiente comando:</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<blockquote class="tr_bq">
<span style="font-family: Courier New, Courier, monospace;"><b>sudo yum install rhythmbox</b></span></blockquote>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;">A continuación nos preguntara si aceptamos la instalación, para ello escribimos la letra <b>"y"</b> <b>(SIN LAS COMILLAS)</b> y presionamos la tecla enter para iniciar la instalación del paquete.</span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Courier New, Courier, monospace;"><b>Listo!!!</b> ahora ya estamos listos para reproducir nuestra colección de música.</span></div>
<div style="text-align: justify;">
<br /></div>
Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-60210706793229619932012-12-27T16:56:00.000-06:002012-12-27T16:56:02.383-06:00Adios Ubuntu... Bienvenido CentOS [TUTORIALES Y MAS]<div style="text-align: justify;">
Despues de usar Ubuntu por más de 5 años he tomado la decisión de que ya es hora de cambiar de distro... razones.. hay varias, pero una de las principales razones es unity, sigue sin convencerme y además de que me traido demasiados dolores de cabeza ya que frecuentemente tengo problemas con mi interfaz gráfica, ubuntu es maravilloso!!! probe con cinnamod un entorno muy ligero y padre, pero ya es tiempo de probar otras distros.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Es por eso que ahora decidi cambiar a CentOS como distro principal, porque CentOS se preguntaran muchos.. bueno pues elegí CentOS por una nueva oportunidad laboral que se me presento y pues CentOS es la distro por elección que se usa en m nuevo trabajo.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
En los siguientes dias estare publicando todo lo relacionado a CentOS, desde como instalar aplicaciones, configuraciones, pero sobre todo tutoriales de desarrollo web, desarrollo movíl y nuevas tecnologías.</div>
Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-69795660056136089002012-11-07T22:02:00.001-06:002012-11-07T22:02:33.864-06:00Convertir archivos XPS a PDF en Ubuntu 12.04<span style="font-family: Courier New, Courier, monospace;">Antes de comenzar con la explicación de como podemos convertir un archivo con formato XPS a PDF, explicare que es formato XPS.</span><br />
<span style="background-color: white;"><span style="font-family: Courier New, Courier, monospace;"><br /></span></span>
<span style="background-color: white; color: #515151; line-height: 21px;"><span style="font-family: Courier New, Courier, monospace;">El formato XPS es un archivo desarrollado por Microsoft basado en el stándar XML.</span></span><br />
<span style="background-color: white; color: #515151; line-height: 21px;"><span style="font-family: Courier New, Courier, monospace;"><br /></span></span>
<span style="background-color: white;"><span style="font-family: Courier New, Courier, monospace;"><span style="color: #212121; line-height: 23px; text-align: left;">Este formato, muy similar al PDF</span><qmcjx style="color: #212121; line-height: 23px; text-align: left;"> de Adobe, garantiza que cuando el archivo se ve en línea o se imprime, conserva exactamente el formato deseado y los datos del archivo no se pueden cambiar fácilmente</qmcjx><qmcjx style="line-height: 21px; text-align: left;"><span style="color: #515151;">.</span></qmcjx></span></span><br />
<span style="background-color: white;"><span style="font-family: Courier New, Courier, monospace;"><qmcjx style="line-height: 21px; text-align: left;"><span style="color: #515151;"><br /></span></qmcjx></span></span>
<div style="text-align: left;">
<span style="color: #515151; font-family: Courier New, Courier, monospace;"><span style="line-height: 21px;">Bueno.. después de esta breve explicación ya estamos listos para instalar nuestro convertidor de formatos.</span></span></div>
<div style="text-align: left;">
<span style="color: #515151; font-family: Courier New, Courier, monospace;"><span style="line-height: 21px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;">Y más fácil no podria ser.. abrimos nuestro terminal y escribimos el siguiente comando:</span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<blockquote class="tr_bq">
<span style="font-family: Courier New, Courier, monospace;"><b>sudo apt-get install libgxps-utils</b></span></blockquote>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;">Actualizamos nuestros repositorios escribiendo:</span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<blockquote class="tr_bq">
<span style="font-family: Courier New, Courier, monospace;"><b>sudo apt-get update</b></span></blockquote>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;">Listo!!! ya podemos convertir los documentos XPS a formato PDF, para ello solo necesitaremos escribir el siguiente comando:</span></div>
<div style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<blockquote class="tr_bq">
<span style="font-family: Courier New, Courier, monospace;"><b>xpstopdf /ruta_del_archivo_a_convertir/miarchivo.xps</b></span></blockquote>
<div style="text-align: left;">
<br /></div>
<br />Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-91477541422301507022012-09-25T10:58:00.000-05:002012-09-25T10:58:54.128-05:00Instalar Webmin en ubuntu server 12.04<span style="font-family: Courier New, Courier, monospace;">El día de hoy explicare como instalar webmin en ubuntu server 12.04, existen varias formas de realizar la instalción, en este post explicare la forma más rápida.</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">Antes de comenzar con la instalación del webmin necesitamos instalar algunas dependencias para quue funcione de forma correcta, para ello escribimos lo siguiente en nuestra terminal:</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<br />
<b>git config core.sharedrepository 1 && git config receive.denyNonFastforwards true && find objects -type d -exec chmod 02770 {} \;</b>
<br />
<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">Una vez que ya instalamos las dependencias ahora si ya estamos listos para instalar webmin, para ello descargaremos el arhivo .deb usando el comando wget..</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><b>wget http://www.webmin.com/download/deb/webmin-current.deb</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">en mi caso yo lo descargue en la ruta /home/miusuario/downloads , se puede guardar en la ruta que ustesdes quieran.</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">Una vez que descargamos el .deb, desde la terminal nos dirigimos al directorio donde lo guardamos y escribimos el siguiente comando:</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><b>sudo dpkg --install webmin-current.deb</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">Listo!! ya tenemos instalado webmin en nuestro ubuntu server, para verificar que esta funcionando de forma correcta vamos a abrir el navegador web en otro equipo que este en nuestra red y escribimos en el navegador la dirección https://ipdelservidor:10000 si todo esta bien tendremos que ver en el navegador una pantalla como la siguiente en donde iniciaremos con las credenciales de acceso del servidor.</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-fnIvop4C3as/UGHSc3iFCtI/AAAAAAAAFy0/8JX_o5LDJW0/s1600/Login+to+Webmin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-fnIvop4C3as/UGHSc3iFCtI/AAAAAAAAFy0/8JX_o5LDJW0/s1600/Login+to+Webmin.png" height="133" width="400" /></a></div>
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-73209339955355021252012-08-29T12:46:00.001-05:002015-07-12T16:19:26.516-05:00Instalar la última versión de PHP en ubuntu 12.04<span style="font-family: 'Courier New', Courier, monospace;">Bueno.. el día de hoy les comparto este post en el que explico como tener instalada la ultima versión de PHP en Ubuntu 12.04, este procedimiento funciona también en ubuntu 11.10.</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span>
<span style="font-family: 'Courier New', Courier, monospace;">Como siempre.. lo primero que tenemos que hacer es abrir nuestra terminal y escribimos lo siguiente:</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span>
<span style="font-family: 'Courier New', Courier, monospace;">Agregamos el repositorio parara tener al día PHP</span><br />
<blockquote class="tr_bq">
<em style="background-color: white; font-size: 14px; line-height: 21px;"><span style="font-family: 'Courier New', Courier, monospace;"><b>sudo add-apt-repository ppa:ondrej/php5</b></span></em></blockquote>
<em style="background-color: white; font-size: 14px; line-height: 21px;"><span style="font-family: 'Courier New', Courier, monospace;">Actualizamos nuestros repositorios</span></em><br />
<blockquote class="tr_bq">
<em style="background-color: white; font-size: 14px; line-height: 21px;"><span style="font-family: 'Courier New', Courier, monospace;"><b>sudo apt-get update</b></span></em></blockquote>
<em style="background-color: white; font-size: 14px; line-height: 21px;"><span style="font-family: 'Courier New', Courier, monospace;">Y por último... instalamos PHP</span></em><br />
<blockquote class="tr_bq">
<em style="background-color: white; font-size: 14px; line-height: 21px;"><span style="font-family: 'Courier New', Courier, monospace;"><b>sudo apt-get install php5</b></span></em></blockquote>
<em style="background-color: white; font-size: 14px; line-height: 21px;"><span style="font-family: 'Courier New', Courier, monospace;">Lo que hace el último comando que escribimos, si ya tenemos instalada alguna versión de PHP lo actualizara en caso contrario realizara la instalación desde cero.</span></em>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-25257159200926281732012-08-07T15:44:00.001-05:002012-08-07T15:44:23.639-05:00Snippet - Crear usuarios con MySQL<span style="font-family: 'Courier New', Courier, monospace;">Cuando trabajamos con MySQL por buena practica es recomendado trabajar con diferentes usuarios y permisos para cada una de las base de datos de los proyectos,hay muchos desarrolladores que por descuido o rapidez usan el usuario root para conectarse a la base de datos en productivo, el usuario root se puede aplicar a un entorno de desarrollo de forma local pero cuando los proyectos se pasan a un entorno productivo lo ideal es que cada uno tenga su usuario y permisos especificos para la base de datos, el siguiente snippet que quiero compartir con ustesdes tiene como proposito crear un usuario diferente a root con todos los permisos asigandos.</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span>
<span style="font-family: 'Courier New', Courier, monospace;">Lo primero que tenemos hacer es crear al usuario y para ello escribiremos lo siguiente:</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span>
<b><span style="color: #0b5394; font-family: 'Courier New', Courier, monospace;">CREATE USER 'nombreUsuario'@'localhost' IDENTIFIED BY 'password';</span></b><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span>
<span style="font-family: 'Courier New', Courier, monospace;">Una vez que ya se creo el usuario, procedemos a asignar los permisos que tendra, con la siguiente línea estamos asigando todos los permisos al usuario nombreUsuario, esto va a variar dependiendo las necesidades de cada uno.</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span>
<b><span style="color: #0b5394; font-family: 'Courier New', Courier, monospace;">GRANT ALL PRIVILEGES ON *.* TO 'nombreUsuario'@'localhost';</span></b><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span>
<span style="font-family: 'Courier New', Courier, monospace;">Espero les sirvan estos pequeños snippets que en muchas ocaciones son una verdadera Joya. </span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span>
<br />Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-45854273351728584332012-08-07T15:27:00.000-05:002012-08-07T15:27:04.204-05:00Snippet - Clonando una tabla en MySQL<div>
<span style="font-family: 'Courier New', Courier, monospace;">El siguiente Snippet tiene como finalidad el crear una tabla nueva con las mismas columnas de una tabla existente, el clonado de tablas lo podemos hacer con MySQl haciendo uso de la sentencia CREATE con LIKE y si queremos que la tabla nueva contenga los mismos registros utlizaremos la sentencia INSERT de forma compuesta.</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Para clonar una tabla sin registros lo podemos hacer de la siguiente manera:</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<span style="color: #0b5394; font-family: 'Courier New', Courier, monospace;"><b>CREATE TABLE tabla_nueva like tabla_existente;</b></span><div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Para copiar los registros de una tabla a otra lo podemos hacer de la siguiente manera:</span><div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="color: #0b5394; font-family: 'Courier New', Courier, monospace;"><b>INSERT INTO tabla_nueva SELECT * FROM tabla_existente;</b></span></div>
</div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<b><span style="color: #e06666; font-family: 'Courier New', Courier, monospace;">Nota: La estructura de la "tabla_nueva" será exactamente igual a la "tabla_existente" con 2 excepciones:</span></b></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<ul>
<li><span style="font-family: 'Courier New', Courier, monospace;">No copia las claves foráneas</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace;">No copia datos o indices de directorios que pueda tener uso de la tabla_existente</span></li>
</ul>
</div>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-91781307836187373262012-08-07T14:19:00.000-05:002012-08-07T14:19:24.969-05:00Uso de Snippets<span style="font-family: 'Courier New', Courier, monospace;">Cuantas veces cuando estamos programando nos hemos encontrado con el pequeño detalle de que por alguna razón necesitamos escribir un pequeño script de forma rápida para realizar una tarea y en ese momento o no tenemos mucho tiempo o se nos olvido alguna sentencia o que se yo... algo sucede.</span><br />
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Por eso el día de hoy hablaremos de Snippets.</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<b><span style="font-family: 'Courier New', Courier, monospace;">Que es un Snippet ?</span></b></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Es un término del idioma ingles que se utiliza en programación para referirse a pequeñas partes reusables de código fuente, texto o código binario.</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Bien.. ahora que ya sabemos que es un snippet, es momento de crear nuestro primer snippet para ello escribiremos uno muy simple que realize un redireccionamiento para este ejemplo utilizare PHP pero puede ser cualquier otro.</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span>
<span style="font-family: 'Courier New', Courier, monospace;"></span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><?php<br /></span><br />
<span style="font-family: 'Courier New', Courier, monospace;">// Se define el nombre del sitio</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><b>Header( "Aquí va el nombre del sitio" );</b></span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span>
<span style="font-family: 'Courier New', Courier, monospace;">// Se define la URL a donde se redireccionara<br /><b>Header( "Location: https://interactivewebzone.com.mx/" );</b></span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br />?></span><br />
<br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><code><b>
</b>
</code>
</span><br />
<span style="font-family: 'Courier New', Courier, monospace;">Con este post iniciare una nueva serie de post dedica a snippets de todo tipo.. espero les sean de utilidad. </span></div>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-89424770613333420292012-07-25T22:49:00.001-05:002012-07-25T22:49:40.713-05:00Como usar ps2pdf en ubuntu 12.04<span style="font-family: 'Courier New', Courier, monospace;">A veces mientras estamos trabajando (me incluyo) y requiere de hacer una tarea en específico, lo primero que hacemos es buscar algun software para apoyarnos a realizar esa tarea.</span><br />
<span style="font-family: 'Courier New', Courier, monospace;">Pero.... cuantas de esas veces en lugar de ayudarnos lo único que pasa es que o el software no cumple nuestras expectativas o solo esta disponible para algunos sistemas operativos o hay que disponer de una licencia para poder usar todas las funcionalidades, yo se que no soy el único que a pasado por esto.</span><br />
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Por eso el día de hoy me gustaria compartir con todos los que como yo usan linux como sistema operativo, una herramienta llamada ps2pdf que ya se encuentra instalada por default en nuestro sistema.</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Que es ps2pdf ?</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="background-color: white; font-family: 'Courier New', Courier, monospace; font-size: 13px; text-align: justify;">Es una herramienta para convertir archivos PS y EPS a formato PDF, no depende de la tecnología del Controlador de Impresoras de Windows (Windows Printer Driver) ni de ningún otro producto. Postcript to PDF Converter puede ejecutarse como un programa de línea de comando y se lo puede incluir en archivos de lotes (scripts) muy fácilmente.</span><br />
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Bien !!! ahora que ya sabemos que es, explicare el funcionamiento.</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br />
<span style="font-family: 'Courier New', Courier, monospace;">Como mencioné anteriormente ps2pdf ya se encuentra instalado por default en linux, por lo cual para usarlo es simplemente fácil... lo único que tenemos que escribir en la terminal es lo siguiente</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Con el siguiente ejemplo lo que hacemos es obtener la ayuda del comando <b>SCP</b> que nos proporciona el comando <b>man</b> desde la terminal, la diferencia es que obtendremos un archivo PDF.</span><br />
<b style="background-color: white;"><span style="font-family: 'Courier New', Courier, monospace;"><br /></span></b><br />
<b style="background-color: white;"><span style="font-family: 'Courier New', Courier, monospace;">man -t scp | ps2pdf -> /home/devkio/Documents/scpCommandHelp.pdf</span></b></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br />
<span style="font-family: 'Courier New', Courier, monospace;">Espero les sea de ayuda este pequeño pero a la vez grandiosa herramienta.</span></div>
</div>
</div>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-51210749955922391582012-06-13T12:45:00.001-05:002012-06-13T12:45:49.209-05:00Instalar converseen en ubuntu 12.04<h2>
<span style="font-family: 'Courier New', Courier, monospace;"><b>Que es converseen?</b></span></h2>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Converseen es un herramienta que nos permite convertir, comprimir y cambiar el tamaño de las imagenes de forma masiva, ahora que ya sabemos que es converseen vamos a proceder con su instalación en ubuntu 12.04, como ya es costumbre la instalación la realizaremos vía PPA.</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><b>Agregamos el PPA escribiendo el siguiente comando:</b></span></div>
<blockquote class="tr_bq">
<span style="font-family: 'Courier New', Courier, monospace;"><span class="e" style="background-color: #fdfdfd; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; white-space: pre;">sudo </span><span class="i" style="background-color: #fdfdfd; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; white-space: pre;">add</span><span class="o" style="background-color: #fdfdfd; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; white-space: pre;">-</span><span class="i" style="background-color: #fdfdfd; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; white-space: pre;">apt</span><span class="o" style="background-color: #fdfdfd; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; white-space: pre;">-</span><span class="e" style="background-color: #fdfdfd; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; white-space: pre;">repository </span><span class="i" style="background-color: #fdfdfd; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; white-space: pre;">ppa</span><span class="o" style="background-color: #fdfdfd; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; white-space: pre;">:</span><span class="i" style="background-color: #fdfdfd; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; white-space: pre;">faster3ck</span><span class="o" style="background-color: #fdfdfd; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; white-space: pre;">/</span><span class="i" style="background-color: #fdfdfd; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; white-space: pre;">converseen</span></span></blockquote>
<div>
<span class="i" style="background-color: #fdfdfd; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; white-space: pre;"><span style="font-family: 'Courier New', Courier, monospace;"><br /></span></span></div>
<div style="text-align: left;">
<span style="line-height: 15px; white-space: pre;"><span style="font-family: 'Courier New', Courier, monospace;"><b>Actualizamos nuestros repositorios escribiendo</b></span></span></div>
<blockquote class="tr_bq">
<span style="line-height: 15px; white-space: pre;"><span style="font-family: 'Courier New', Courier, monospace;">sudo apt-get update</span></span></blockquote>
<div style="text-align: left;">
<span style="line-height: 15px; white-space: pre;"><span style="font-family: 'Courier New', Courier, monospace;"><br /></span></span></div>
<div style="text-align: left;">
<span style="line-height: 15px; white-space: pre;"><span style="font-family: 'Courier New', Courier, monospace;"><b>Y por último instalamos converseen con el siguiente comando</b></span></span></div>
<blockquote class="tr_bq">
<span style="line-height: 15px; white-space: pre;"><span style="font-family: 'Courier New', Courier, monospace;">sudo apt-get install converseen</span></span></blockquote>
<div style="text-align: left;">
<span style="line-height: 15px; white-space: pre;"><span style="font-family: 'Courier New', Courier, monospace;"><br /></span></span></div>
<div style="text-align: left;">
<span style="line-height: 15px; white-space: pre;"><span style="font-family: 'Courier New', Courier, monospace;">Listo!!! ya tenemos instalado converseen en nuestro ubuntu 12.04,para ejecutarlo abrimos el dashbord y buscamos el programa.</span></span></div>
<div style="text-align: left;">
<span style="line-height: 15px; white-space: pre;"><span style="font-family: 'Courier New', Courier, monospace;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: Consolas, ConsolasRegular, 'Courier New', monospace;"><span style="font-size: 12px; line-height: 15px; white-space: pre;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1OOYClBHt8IvwGVvvkrfhvqPRQCl9LNmYaJTLrgqEMxkmzc7Wzfo116gt6XJwzR_P5naFtpAb3OOOc6xuFeWbyNaJReZCAnG3qSi2DjzZbablMTEua6nxaB_J9KTwd-LZ8R92xxt0I4ZU/s1600/converseen1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="245" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1OOYClBHt8IvwGVvvkrfhvqPRQCl9LNmYaJTLrgqEMxkmzc7Wzfo116gt6XJwzR_P5naFtpAb3OOOc6xuFeWbyNaJReZCAnG3qSi2DjzZbablMTEua6nxaB_J9KTwd-LZ8R92xxt0I4ZU/s400/converseen1.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFDY0hVwWJZJfIicZPcein_iZYcP-RKN3J4SZVg2b1qIaARBfHbo49hs3mtqT0sswQbbeXD-D5FIBI2vfrtHOYOttgI3Alrte9LQcJhHlFw4ZJmDpcjdaT8oRR8vD-xsni-soZt6zljCM8/s1600/converseen2.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="255" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFDY0hVwWJZJfIicZPcein_iZYcP-RKN3J4SZVg2b1qIaARBfHbo49hs3mtqT0sswQbbeXD-D5FIBI2vfrtHOYOttgI3Alrte9LQcJhHlFw4ZJmDpcjdaT8oRR8vD-xsni-soZt6zljCM8/s400/converseen2.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><br /></td></tr>
</tbody></table>
<br /><div style="text-align: left;">
<span style="font-family: Consolas, ConsolasRegular, 'Courier New', monospace;"><span style="font-size: 12px; line-height: 15px; white-space: pre;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: Consolas, ConsolasRegular, 'Courier New', monospace;"><span style="font-size: 12px; line-height: 15px; white-space: pre;"><br /></span></span></div>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-17240112574845559902012-05-31T09:40:00.000-05:002012-05-31T09:40:07.382-05:00Instalar Dropbox en Ubuntu 12.04<span style="font-family: 'Courier New', Courier, monospace;">Hoy explicare como instalar Drobox en ubuntu 12.04, como es costumbre la instalación la realizaremos desde nuestra terminal.</span><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><span style="font-family: 'Courier New', Courier, monospace;">Abrimos nuestra terminal <b>CTRL + ALT + T</b></span><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><span style="font-family: 'Courier New', Courier, monospace;">Ahora tenemos que agregar la llave escribiendo el siguiente comando<br /></span><br />
<b style="background-color: white; font-family: 'Courier New', Courier, monospace; line-height: 25px;">sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E</b><br />
<span style="background-color: white;"><span style="font-family: 'Courier New', Courier, monospace;"><br />A continuación agregamos el repositorio de Dropbox a nuestro Ubuntu</span></span><b style="background-color: white; font-family: 'Courier New', Courier, monospace;"><br /><br />sudo add-apt-repository "deb http://linux.dropbox.com/ubuntu $(lsb_release -sc) main"</b><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br />Antes de instalar Dropbox necesitamos actualizar nuestra lista de repositorios con el siguiente comando</span><span style="font-family: 'Courier New', Courier, monospace;"><br /><b><br />sudo apt-get update</b></span><span style="font-family: 'Courier New', Courier, monospace;"><br /><br />Procedemos con la instalación de Dropbo</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /><b>sudo apt-get install nautilus-dropbox</b></span><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><span style="font-family: 'Courier New', Courier, monospace;"><br />Listo!!! si seguiste los pasos, al terminar de ejecutarse el comando de instalación veras una ventana como esta, damos click en el Restart Nautilus y enseguida click en el boton Next:</span><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br />
<div>
<pre style="line-height: 25px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 575px;"><div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-McmSV473gCw/T8eBDgmsmrI/AAAAAAAAE54/UryMp1L_pyo/s1600/restarNautilus.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: 'Courier New', Courier, monospace;"><img border="0" height="200" src="http://2.bp.blogspot.com/-McmSV473gCw/T8eBDgmsmrI/AAAAAAAAE54/UryMp1L_pyo/s400/restarNautilus.png" width="400" /></span></a></div>
<span style="font-family: 'Courier New', Courier, monospace;">
</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"> Ya por último damos click en el boton Start Dropbox</span><br />
<span style="font-family: 'Courier New', Courier, monospace;">
</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-VlSMhFVDyR0/T8eBEOpND5I/AAAAAAAAE6A/akKMu5TFNSc/s1600/restartNautilus1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: 'Courier New', Courier, monospace;"><img border="0" height="201" src="http://2.bp.blogspot.com/-VlSMhFVDyR0/T8eBEOpND5I/AAAAAAAAE6A/akKMu5TFNSc/s400/restartNautilus1.png" width="400" /></span></a></div>
<br />
<span style="font-family: 'Courier New', Courier, monospace;">Listo!!! ya puedes comenzar a usar dropbox si ya tienes una cuenta solo tienes que iniciar sesión con tus credenciales.. de lo contrario create una cuenta.</span><br />
<span style="font-family: 'Courier New', Courier, monospace;">
</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-e4hg9I9N8bQ/T8eBElx9znI/AAAAAAAAE6I/-05xY7UqTMw/s1600/restartNautilus2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="color: black; font-family: 'Courier New', Courier, monospace;"><img border="0" height="396" src="http://1.bp.blogspot.com/-e4hg9I9N8bQ/T8eBElx9znI/AAAAAAAAE6I/-05xY7UqTMw/s400/restartNautilus2.png" width="400" /></span></a></div>
<pre style="font-family: consolas, 'Courier New', courier, monospace; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 574px;">
</pre>
</pre>
</div>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-23925631578667741632012-05-24T10:37:00.000-05:002012-05-24T10:37:05.721-05:00Instalar Kdenlive en ubuntu 12.04Uno de mis editores de video favoritos en Linux sin duda alguna es el tan ya conocido Kdenlive y hoy explicaré como instalarlo en Ubuntu 12.04. Los pasos que a continuación voy a describir también funcionan en Ubuntu 11.10.<div>
<br /></div>
<div>
Lo primero que tenemos que hacer es agregar el repositorio escribiendo el siguiente comando:</div>
<blockquote class="tr_bq">
<span style="background-color: white; font-family: arial, helvetica, sans-serif; line-height: 18px; text-align: left;"><b>sudo add-apt-repository ppa:sunab/kdenlive-release</b></span></blockquote>
<div>
<div style="text-align: left;">
<span style="font-family: arial, helvetica, sans-serif;"><span style="line-height: 18px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: arial, helvetica, sans-serif;"><span style="line-height: 18px;">A continuación actualizamos nuestros repositorios:</span></span></div>
<blockquote class="tr_bq">
<span style="font-family: arial, helvetica, sans-serif;"><span style="line-height: 18px;"><b>sudo apt-get update</b></span></span></blockquote>
<div style="text-align: left;">
<span style="font-family: arial, helvetica, sans-serif;"><span style="line-height: 18px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: arial, helvetica, sans-serif;"><span style="line-height: 18px;">Y por último instalamos Kdenlive con el siguiente comando:</span></span></div>
<blockquote class="tr_bq">
<span style="font-family: arial, helvetica, sans-serif;"><span style="line-height: 18px;"><b>sudo apt-get install kdenlive</b></span></span></blockquote>
<div style="text-align: left;">
<span style="font-family: arial, helvetica, sans-serif;"><span style="line-height: 18px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: arial, helvetica, sans-serif;"><span style="line-height: 18px;">Listo !!! ahora ya debemos tener instalado Kdenlive, al ejecutarlo por primera vez nos mostrara un wizard en donde seleccionaremos la carpeta donde se guardaran los proyectos y donde podremos configurar las opciones de salida del video.</span></span></div>
<div style="text-align: left;">
<span style="font-family: arial, helvetica, sans-serif;"><span style="line-height: 18px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: arial, helvetica, sans-serif;"><span style="line-height: 18px;"><br /></span></span></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-V3dJRKT83DU/T75UhHRPMuI/AAAAAAAAEz8/uH07l_u4ij8/s1600/Screenshot+from+2012-05-24+10:31:13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="197" src="http://2.bp.blogspot.com/-V3dJRKT83DU/T75UhHRPMuI/AAAAAAAAEz8/uH07l_u4ij8/s320/Screenshot+from+2012-05-24+10:31:13.png" width="320" /></a></div>
<div>
</div>
</div>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com3tag:blogger.com,1999:blog-6490533361925226881.post-3002790954673217202012-05-22T15:47:00.003-05:002012-05-22T15:47:41.748-05:00Creación de aplicaciones de escritorio con appJSCon <a href="http://appjs.org/" target="_blank"><b>appJS</b></a> podremos crear aplicaciones de escritorio sin tener que aprender un nuevo lenguaje de programación, <b>appJS</b> trabaja con <b>HTML, CSS y Javascript</b> por lo cual para los desarrolladores no va a ser un problema el crear aplicaciones.<br />
<br />
En este primer post explicaré como instalar <b>appJS</b> en <b>Linux</b>, como distro usaré Ubuntu 12.04.<br />
<br />
Existen 2 maneras de instalar <b>appJS</b>, la primera de ellas es usando <b>npm</b> y la segunda es usando el <a href="https://github.com/milani/appjs/" target="_blank">repositorio en github</a>, en este post lo explicaré usando <b>npm</b>.<br />
<br />
<h2>
<b>Que es npm?</b></h2>
<br />
<b>NPM (Node Package Manager) es un administrador de paquetes para node</b>, se puede utilizar para instalar y publicar los programas que desarrolles.Ahora si.. una vez que sabemos que es y para que sirve <b>npm</b> procedemos con la instalación.<br />
<br />
Para instalar <b>npm</b> escribimos el siguiente comando:<br />
<br />
<blockquote class="tr_bq">
<b>sudo apt-get install npm</b></blockquote>
<br />
A continuación actualizamos nuestros repositorios con el siguiente comando:<br />
<blockquote class="tr_bq">
<b>sudo apt-get update</b></blockquote>
<br />
Antes de proceder con la instalación de <b>appJS</b> necesitamos instalar la librería <b>libgtk2.0-dev</b>.<br />
<br />
Para instalarla lo podemos hacer con el siguiente comando:<br />
<br />
<blockquote class="tr_bq">
<b>sudo apt-get install libgtk2.0-dev</b></blockquote>
<br />
Llego el momento de instalar <b>appJS</b>, para ello usaremos <b>npm</b> para instalarlo:<br />
<blockquote class="tr_bq">
<b>npm install appjs </b></blockquote>
<br />
Listo!!! si seguiste los pasos debes de tener instalado <b>appJS</b>, en el siguiente post crearemos nuestra primer aplicación.<br />
<br />
Tambén puedes descargar el codigo del repositorio en <a href="https://github.com/milani/appjs/" target="_blank">github</a>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com2tag:blogger.com,1999:blog-6490533361925226881.post-12481478057664378492012-05-21T13:36:00.005-05:002012-05-21T13:36:58.173-05:00Instalar Cairo Dock 3.0 en Ubuntu 12.04Para instalar Cairo Dock 3.0 e Ubuntu 12.04 de una forma rápida y sencilla desde la terminal, realizamos lo siguiente:<br />
<br />
<b>Agregamos el repositorio con el siguiente comando:</b><br />
<blockquote class="tr_bq">
<span style="background-color: white; color: red; font-family: Arial, Verdana; font-style: italic; line-height: 20px; text-align: left;">sudo add-apt-repository ppa:cairo-dock-team/ppa</span></blockquote>
<br />
<b>Actualizamos nuestros repositorios:</b><br />
<blockquote class="tr_bq">
<span style="background-color: white; color: red; font-family: Arial, Verdana; font-style: italic; line-height: 20px; text-align: left;">sudo apt-get update</span></blockquote>
<span style="background-color: white; color: red; font-family: Arial, Verdana; font-style: italic; line-height: 20px; text-align: left;"><br /></span><br />
<b>Y por último instalamos Cairo Dock y sus Plugins:</b><br />
<blockquote class="tr_bq">
<span style="background-color: white; color: red; font-family: Arial, Verdana; font-style: italic; line-height: 20px; text-align: left;">sudo apt-get install cairo-dock cairo-dock-plug-ins</span></blockquote>
<span style="background-color: white; color: red; font-family: Arial, Verdana; font-style: italic; line-height: 20px; text-align: left;"><br /></span><br />
<span style="background-color: white; font-family: Arial, Verdana; font-style: italic; line-height: 20px; text-align: left;">LIsto!! ahora ya tenemos instalado la versión 3.0 de Cairo Dock en Ubuntu 12.04</span><br />Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-67797448770583921352012-05-18T10:55:00.000-05:002012-05-18T10:55:31.870-05:00Instalar GIMP 2.8 en ubuntu 12.04Para instalar GIMP 2.8 en Ubuntu 12.04 de una forma fácil y rápida vamos a hacerlo desde <a href="http://en.wikipedia.org/wiki/Personal_Package_Archive" target="_blank">PPA</a> en tan solo 3 pasos:<div>
<br /></div>
<div>
Abrir nuestra terminal y escribimos los siguientes comandos</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<b>Primero agregamos el repositorio desde PPA con la siguiente línea</b></div>
<blockquote class="tr_bq">
<span style="line-height: 20px; text-align: left;"><span style="font-family: inherit;">sudo add-apt-repository ppa:otto-kesselgulasch/gimp</span></span></blockquote>
<div style="text-align: center;">
<span style="line-height: 20px; text-align: left;"><span style="font-family: inherit;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: inherit;"><span style="line-height: 20px;"><b>A continuación actualizamos nuestros repositorios</b></span></span></div>
<blockquote class="tr_bq">
<span style="font-family: inherit;"><span style="line-height: 20px;">sudo apt-get update</span></span></blockquote>
<div style="text-align: left;">
<span style="font-family: inherit;"><span style="line-height: 20px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: inherit;"><span style="line-height: 20px;"><b>Por último instalamos GIMP con la siguiente línea</b></span></span></div>
<blockquote class="tr_bq">
<span style="font-family: inherit;"><span style="line-height: 20px;">sudo apt-get install gimp</span></span></blockquote>
<div style="text-align: left;">
<span style="font-family: inherit;"><span style="line-height: 20px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: inherit;"><span style="line-height: 20px;">Listo !!! Ahora ya tenemos instalado la última versión de GIMP, ya solo tienes que buscarlo en el Dashboard</span></span></div>
<div style="text-align: left;">
<span style="font-family: inherit;"><span style="line-height: 20px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-o4J25YuiWw4/T7Zw0g1SAfI/AAAAAAAAEv8/HyY3ryLO6IM/s1600/Captura+de+pantalla+de+2012-05-11+11-45-25.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-o4J25YuiWw4/T7Zw0g1SAfI/AAAAAAAAEv8/HyY3ryLO6IM/s1600/Captura+de+pantalla+de+2012-05-11+11-45-25.png" /></a></div>
<div style="text-align: left;">
<span style="font-family: inherit;"><span style="line-height: 20px;"><br /></span></span></div>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-70366472196477918492011-11-08T11:28:00.002-06:002011-11-08T11:34:19.571-06:00Solución al error “Kernel driver not installed (rc=-1908) Virtualbox<div style="text-align: justify;">
<span class="Apple-style-span" style="background-color: white; color: #222222; font-family: Helvetica; line-height: 18px;"><br /></span></div>
<div style="text-align: justify;">
<span class="Apple-style-span" style="color: #222222; font-family: Helvetica;"><span class="Apple-style-span" style="line-height: 18px;">Despues de una semana que no use mi Virtualbox, hoy al tratar de arrancar mi maquina virtual de Windows 7 me salio el mensaje <b>“Kernel driver not installed (rc=-1908)".</b>. a primera vista parece ser un problema grave, pero la solución es verdaderamente sencilla...</span></span></div>
<div style="text-align: justify;">
<span class="Apple-style-span" style="color: #222222; font-family: Helvetica;"><span class="Apple-style-span" style="line-height: 18px;"><br /></span></span></div>
<div style="text-align: justify;">
<span class="Apple-style-span" style="color: #222222; font-family: Helvetica; line-height: 18px;">Lo unico que hay que hacer es recompilar el Kernel, así que lo que hay que hacer, es abrir una terminal y ejecutar el siguiente comando: </span><br />
<span class="Apple-style-span" style="color: #222222; font-family: Helvetica; line-height: 18px;"><br /></span></div>
<span class="Apple-style-span" style="background-color: white; color: #222222; font-family: Helvetica; line-height: 18px;"></span><br />
<ul>
<li style="text-align: justify;"><b>sudo /etc/init.d/vboxdrv setup</b> </li>
</ul>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Si después de ejecutar el comando se sigue teniendo el mismo problema se puede reinstalar VirtualBox sin ningún problema ya que esto no afecta a la configuración de las maquinas virtuales que estén instaladas, para reinstalar VirtualBox se usa el siguiente comando:<br />
<br /></div>
<ul>
<li style="text-align: justify;"><b>sudo apt-get install --reinstall virtualbox</b> </li>
</ul>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Con esto ya debe estar solucionado el problema si tuviste que reinstalar VirtualBox y siguió el error simplemente vuelve a recompilar el Kernel como ya se explico.</div>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-341430487303123732011-10-18T09:08:00.002-05:002011-10-18T09:22:05.386-05:00Instalar Firefox 7 en ubuntu 11.04<br />
<pre style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 20px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;">El día de hoy les mostrare como instalar Firefox 7 vía PPA, no escribiré un post muy largo ya que a veces no necesitamos leer demasiado texto para instalar uno de nuestros navegadores favoritos, pues vamos al granos:</pre>
<pre style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 20px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;">Solo necesitamos de las siguientes líneas de comando para tener instaldo Firefox en Ubuntu</pre>
<pre style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 20px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><b>Agregamos el repositorio de versión estable:</b></pre>
<pre style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 20px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><ul>
<li>sudo add-apt-repository ppa:mozillateam/firefox-stable</li>
</ul>
</pre>
<pre style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 20px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><div style="font-size: 12px; text-align: justify;">
<b>Actualizamos nuestros repositorios:</b></div>
<div style="text-align: justify;">
<ul>
<li><span class="Apple-style-span" style="font-size: 12px;">sudo apt-get update</span></li>
</ul>
</div>
</pre>
<pre style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 20px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><b>Por último instalamos firefox:</b></pre>
<pre style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 20px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><ul>
<li>sudo apt-get install firefox</li>
</ul>
<div>
</div>
<div>
Como pueden ver, es realmente sencillo y rápido instalar Firefox 7.</div>
<div>
</div>
</pre>Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0tag:blogger.com,1999:blog-6490533361925226881.post-84901012504174555532011-10-11T13:27:00.002-05:002011-10-11T13:28:28.983-05:00Instalar Java en Ubuntu 11.0 4 Natty Narwhal<span class="Apple-style-span" style="color: #666666; font-style: italic; line-height: 21px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><b>Para instalar Java en Ubuntu 11.04 realizamos lo siguiente:</b></span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 21px;"><i><br /></i></span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 21px;"><i>Agregamos el siguiente PPA para Ubuntu Natty Narwhal, para estó abrimos la terminal y escribimos lo siguiente:</i></span></span><br />
<br />
<ul>
<li><span class="Apple-style-span" style="color: #666666; font-style: italic; line-height: 21px;"><b><span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">sudo add-apt-repository ppa:ferramroberto/java</span></b></span></li>
</ul>
<br />
<span class="Apple-style-span" style="color: #666666; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 21px;"><i>Escribimos lo siguiente para actualizar la lista de los repositorios:</i></span></span><br />
<br />
<ul>
<li><span class="Apple-style-span" style="color: #666666; font-style: italic; line-height: 21px;"><b><span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">sudo apt-get update</span></b></span></li>
</ul>
<br />
<span class="Apple-style-span" style="color: #666666; font-style: italic; line-height: 21px;"><span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">Por ultimo instalamos Java con la siguiente línea de comando:</span></span><br />
<br />
<ul>
<li><span class="Apple-style-span" style="color: #666666; font-style: italic; line-height: 21px;"><span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b>sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts</b></span></span></li>
</ul>
<br />
<span class="Apple-style-span" style="color: #666666; font-style: italic; line-height: 21px;"><span class="Apple-style-span" style="color: #333333; font-style: normal; line-height: 18px;"></span></span><br />
<div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">El comando anterior debería instalar todo lo necesario para activar Java. Durante la instalación tendrás que <b>“leer” y “aceptar”</b> la licencia del software. Debes hacerlo o la instalación se cerrará sin completarse.</span></div>
<div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">Una vez finalizada la instalación estaras listo. </span><span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">Pero, antes de asumir que todo está completo, vamos a comprobar nuestra instalación. La forma más fácil de probar la instalación es ejecutar el comando <code style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><b>java -versión</b></code> y deberías ver algo como:</span></div>
<div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="font-family: Arial, Helvetica, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<code style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /><span class="Apple-style-span" style="color: red;">java version “1.6.0.20″<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />Java(TM) SE Runtime Environment (build 1.6.0_20-b02)<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)</span></code></div>
<br />
<span class="Apple-style-span" style="color: #666666; font-family: Arial; font-size: 12px; font-style: italic; line-height: 21px;"><br /></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: Arial; font-size: 12px; font-style: italic; line-height: 21px;">Espero les sea útil</span><br />
<br />Luis Hernandezhttp://www.blogger.com/profile/00972889913759742591noreply@blogger.com0