<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3427651352535578972</id><updated>2024-11-06T00:03:29.210-03:00</updated><category term="php"/><category term="&quot;ubuntu 12.04&quot;"/><category term="apache"/><category term="curso php"/><category term="ubuntu"/><category term="&quot;el capitan&quot;"/><category term="&quot;mac os x&quot;"/><category term="&quot;node js&quot;"/><category term="&quot;tucuman valley&quot;"/><category term="homebrew"/><category term="html"/><category term="lamp"/><category term="linux"/><category term="mac"/><category term="mysql"/><category term="node"/><category term="openssl"/><category term="seminario"/><title type='text'>Desarrollo y otras yerbas</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3427651352535578972.post-4735303346372756489</id><published>2016-11-24T14:02:00.002-03:00</published><updated>2016-11-24T14:02:42.918-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="&quot;el capitan&quot;"/><category scheme="http://www.blogger.com/atom/ns#" term="&quot;mac os x&quot;"/><category scheme="http://www.blogger.com/atom/ns#" term="homebrew"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="openssl"/><title type='text'>OpenSSL y Mac OS X &quot;El Capitán&quot;</title><content type='html'>&lt;br /&gt;
&lt;br /&gt;
Apple removed the OpenSSL header files in &quot;El Capitan&quot;, making it hard to build OpenSSL-dependent libraries without modifying your system a little bit.&lt;br /&gt;
&lt;br /&gt;
Fortunately we have &lt;a href=&quot;http://brew.sh/&quot;&gt;Homebrew&lt;/a&gt;; if you don&#39;t have it yet, &lt;a href=&quot;http://brew.sh/#install&quot;&gt;go ahead and install it now&lt;/a&gt;. I&#39;ll wait here.&lt;br /&gt;
&lt;br /&gt;
Ready? Now, repeat after me:&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ brew doctor (now fix anything that it tells you to fix)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ brew update&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ brew upgrade
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We&#39;re just warming up with all that; it&#39;s good to stay current with things like OpenSSL, which tends to go stale fast. Now let&#39;s install it:&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ brew install openssl
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
And now we&#39;ll link it into our public area so you don&#39;t have to figure out the magic environment variable to set while building your favorite OpenSSL-backed library:&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ cd /usr/local/include&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ ln -s ../opt/openssl/include/openssl .
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
All done! Now you have an OpenSSL installed that you can build against easily and will stay up to date as often as you run brew update and brew upgrade.&lt;br /&gt;
&lt;br /&gt;
Fuente: https://solitum.net/openssl-os-x-el-capitan-and-brew/&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/4735303346372756489/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://docodigo.blogspot.com/2016/11/openssl-y-mac-os-x-el-capitan.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/4735303346372756489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/4735303346372756489'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/2016/11/openssl-y-mac-os-x-el-capitan.html' title='OpenSSL y Mac OS X &quot;El Capitán&quot;'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3427651352535578972.post-7510657901022660866</id><published>2015-04-28T12:40:00.002-03:00</published><updated>2015-04-28T15:44:34.925-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="&quot;node js&quot;"/><category scheme="http://www.blogger.com/atom/ns#" term="&quot;ubuntu 12.04&quot;"/><category scheme="http://www.blogger.com/atom/ns#" term="node"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Instalar última versión de Node JS en Ubuntu 12.04</title><content type='html'>Normalmente Node JS esta entre los repositorios de Ubuntu 12.04, pero no la última version.&lt;br /&gt;
Para eso debemos agregar un repositorio que nos permitirá instalar la última version &amp;nbsp;de este paquete.&lt;br /&gt;
&lt;br /&gt;
Para eso primero agregamos el repositorio de &lt;a href=&quot;https://launchpad.net/~chris-lea/+archive/node.js/&quot; target=&quot;_blank&quot;&gt;Launchpad de Chris Lea&lt;/a&gt;, desde una consola debemos correr los siguientes comandos:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 15px; line-height: 1.75; margin-bottom: 14px; overflow: auto; padding: 13.5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code class=&quot;no-highlight&quot; style=&quot;background: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; display: block; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: inherit; padding: 0px; white-space: pre-wrap;&quot;&gt;apt-get install python-software-properties
apt-add-repository ppa:chris-lea/node.js
apt-get update&lt;/code&gt;&lt;/pre&gt;
Instalamos Node JS:&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 15px; line-height: 1.75; margin-bottom: 14px; overflow: auto; padding: 13.5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code class=&quot;no-highlight&quot; style=&quot;background: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; display: block; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: inherit; padding: 0px; white-space: pre-wrap;&quot;&gt;apt-get install nodejs&lt;/code&gt;&lt;/pre&gt;
Check node.js version:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 15px; line-height: 1.75; margin-bottom: 14px; overflow: auto; padding: 13.5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code class=&quot;no-highlight&quot; style=&quot;background: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; display: block; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: inherit; padding: 0px; white-space: pre-wrap;&quot;&gt;node -v&lt;/code&gt;&lt;/pre&gt;
Salida:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 15px; line-height: 1.75; margin-bottom: 14px; overflow: auto; padding: 13.5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code class=&quot;no-highlight&quot; style=&quot;background: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; display: block; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: inherit; padding: 0px; white-space: pre-wrap;&quot;&gt;v0.10.20&lt;/code&gt;&lt;/pre&gt;
Instalacion de npm:&lt;br /&gt;
&lt;br /&gt;
Con la instalación de Node deberíamos tener ya instalado el gestor de paquetes.&lt;br /&gt;
&lt;br /&gt;
Chequeamos la versión instalada:&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 15px; line-height: 1.75; margin-bottom: 14px; overflow: auto; padding: 13.5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code class=&quot;no-highlight&quot; style=&quot;background: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; display: block; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: inherit; padding: 0px; white-space: pre-wrap;&quot;&gt;npm -v&lt;/code&gt;&lt;/pre&gt;
Salida:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 15px; line-height: 1.75; margin-bottom: 14px; overflow: auto; padding: 13.5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code class=&quot;no-highlight&quot; style=&quot;background: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; display: block; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: inherit; padding: 0px; white-space: pre-wrap;&quot;&gt;1.4.3&lt;/code&gt;&lt;/pre&gt;
Si por alguna razón no se instaló, podemos con el siguiente comando bajar e instalar el paquete:&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 5px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 15px; line-height: 1.75; margin-bottom: 14px; overflow: auto; padding: 13.5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;code class=&quot;no-highlight&quot; style=&quot;background: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; display: block; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: inherit; padding: 0px; white-space: pre-wrap;&quot;&gt;apt-get install npm&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
Fuente: https://rtcamp.com/tutorials/nodejs/node-js-npm-install-ubuntu/</content><link rel='replies' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/7510657901022660866/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://docodigo.blogspot.com/2015/04/instalar-ultima-verspon-de-node-js-en.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/7510657901022660866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/7510657901022660866'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/2015/04/instalar-ultima-verspon-de-node-js-en.html' title='Instalar última versión de Node JS en Ubuntu 12.04'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3427651352535578972.post-5980000435357007906</id><published>2013-12-12T16:15:00.001-03:00</published><updated>2015-04-28T15:50:36.716-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="&quot;ubuntu 12.04&quot;"/><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Cómo configurar Apache Virtual Hosts en Ubuntu 12.04</title><content type='html'>Vamos a explicar como crear un virtualhost en una pc para desarrollo.&lt;br /&gt;
Se tendrá como base un sistema operativo Ubuntu 12.04 con Apache y PHP&lt;br /&gt;
&lt;br /&gt;
¿Qué son los Virtual Hosts?Los Virtual Hosts son usados normalmente para correr mas de un dominio sobre una misma dirección IP. Esto es muy util para los que necesitan correr varios sitios en un solo VPS. Los sitios de muestran segun a que dominio solicitaron. No hay limities en cuanto a Virtual Hosts se pueden agregar en un VPS&lt;br /&gt;
&lt;br /&gt;
Set UpEn este paso vamos a requerir privilegios. Luego debemos tener instalado Apache en nuestro sistema o VPS:&lt;br /&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;sudo apt-get install apache2&lt;/pre&gt;
&lt;br /&gt;
Paso 1 -  Creamos nuestro directorio&lt;br /&gt;
&lt;br /&gt;
El primer paso será crear un directorio para nuestro Virtual Host donde alojaremos nuestro sitio.&lt;br /&gt;
&lt;br /&gt;
Este será nuestro Document Root en el archivo de configuracion virtual de Apache. Adicionando el parámetro -p nos creara el directorio y los padres en caso de no existeir para nuestro nuevo directorio.&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;sudo mkdir -p /var/www/&lt;span style=&quot;color: red;&quot;&gt;example.com&lt;/span&gt;/public_html&lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
Ahora necesitaras designar unos DNS o una IP para testear que el virtual host funciona. En este tutorial usamos el dominio example.com como placeholder.&lt;br /&gt;
&lt;br /&gt;
De todas formas, puedes usar un dominio inexistente para testear localmente el proceso, esto lo podremos ver en el Paso 7.&lt;br /&gt;
&lt;br /&gt;
Paso 2 - PermisosNecesitamos dar el ownership del directorio al usuarioWe need to grant ownership of the directory to the user, instead of just keeping it on the root system.&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt; sudo chown -R $USER:$USER /var/www/&lt;span style=&quot;color: red;&quot;&gt;example.com&lt;/span&gt;/public_html &lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
Ademas, es importante asegurarnos de que podamos acceder y leer los archivos&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt; sudo chmod -R 755 /var/www&lt;/pre&gt;
&lt;br /&gt;
Ahora si tenemos ya los permisos.&lt;br /&gt;
&lt;br /&gt;
Paso 3 - Crear el sitio o la pagina&lt;br /&gt;
&lt;hr style=&quot;border-bottom-color: rgb(255, 255, 255); border-bottom-style: solid; border-left-width: 0px; border-right-width: 0px; border-top-color: rgb(238, 238, 238); border-top-style: solid; box-sizing: content-box; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; height: 0px; line-height: 23px; margin: 0px 0px 13px !important;&quot; /&gt;
Con la configuración de nuestro directorio necesitamos crear un nuevo archivo llamado index.html&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;sudo nano /var/www/&lt;span style=&quot;color: red;&quot;&gt;example.com&lt;/span&gt;/public_html/index.html&lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
Podemos agregar algo de texto para poder visualizar  cuando nos redireccione al virtual hostWe can add some text to the file so we will have something to look at when the IP redirects to the virtual host.&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;&lt;span style=&quot;color: red;&quot;&gt;www.example.com&lt;/span&gt;&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;h1&amp;gt;Success: You Have Set Up a Virtual Host&amp;lt;/h1&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
Save and Exit&lt;br /&gt;
&lt;h2 style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 22.5px; font-weight: 500; line-height: 32px; margin: 30px 0px 2px; text-rendering: optimizelegibility;&quot;&gt;
Step Four—Create the New Virtual Host File&lt;/h2&gt;
&lt;hr style=&quot;border-bottom-color: rgb(255, 255, 255); border-bottom-style: solid; border-left-width: 0px; border-right-width: 0px; border-top-color: rgb(238, 238, 238); border-top-style: solid; box-sizing: content-box; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; height: 0px; line-height: 23px; margin: 0px 0px 13px !important;&quot; /&gt;
The next step is to set up the apache configuration. We’re going to work off a duplicate—go ahead and make a copy of the file (naming it after your domain name) in the same directory:&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt; sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/&lt;span style=&quot;color: red;&quot;&gt;example.com&lt;/span&gt;&lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
&lt;h2 style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 22.5px; font-weight: 500; line-height: 32px; margin: 30px 0px 2px; text-rendering: optimizelegibility;&quot;&gt;
Step Five—Turn on Virtual Hosts&lt;/h2&gt;
&lt;hr style=&quot;border-bottom-color: rgb(255, 255, 255); border-bottom-style: solid; border-left-width: 0px; border-right-width: 0px; border-top-color: rgb(238, 238, 238); border-top-style: solid; box-sizing: content-box; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; height: 0px; line-height: 23px; margin: 0px 0px 13px !important;&quot; /&gt;
Open up the new config file:&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt; sudo nano /etc/apache2/sites-available/&lt;span style=&quot;color: red;&quot;&gt;example.com&lt;/span&gt;&lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
We are going to set up a virtual host in this file.&lt;br /&gt;
The first step is to insert a line for the ServerName under the ServerAdmin line.&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;  ServerName &lt;span style=&quot;color: red;&quot;&gt;example.com&lt;/span&gt; &lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
The ServerName specifies the domain name that the virtual host uses.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
If you want to make your site accessible from more than one name (for example, with www in the URL), you can include the alternate names in your virtual host file by adding a ServerAlias Line. The beginning of your virtual host file would then look like this:&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt;VirtualHost *:80&amp;gt;
        ServerAdmin &lt;span style=&quot;color: red;&quot;&gt;webmaster@example.com&lt;/span&gt;
        ServerName &lt;span style=&quot;color: red;&quot;&gt;example.com&lt;/span&gt;
        ServerAlias www.&lt;span style=&quot;color: red;&quot;&gt;example.com&lt;/span&gt;
  [...]&lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
The next step is to fill in the correct Document Root. For this section, write in the extension of the new directory created in Step One. If the document root is incorrect or absent you will not be able to set up the virtual host.&lt;br /&gt;
The section should look like this:&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt; DocumentRoot /var/www/&lt;span style=&quot;color: red;&quot;&gt;example.com&lt;/span&gt;/public_html &lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
You do not need to make any other changes to this file. Save and Exit.&lt;br /&gt;
The last step is to activate the host, with the built in apache shortcut:&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt; sudo a2ensite &lt;span style=&quot;color: red;&quot;&gt;example.com&lt;/span&gt;&lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
&lt;h2 style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 22.5px; font-weight: 500; line-height: 32px; margin: 30px 0px 2px; text-rendering: optimizelegibility;&quot;&gt;
Step Six—Restart Apache&lt;/h2&gt;
&lt;hr style=&quot;border-bottom-color: rgb(255, 255, 255); border-bottom-style: solid; border-left-width: 0px; border-right-width: 0px; border-top-color: rgb(238, 238, 238); border-top-style: solid; box-sizing: content-box; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; height: 0px; line-height: 23px; margin: 0px 0px 13px !important;&quot; /&gt;
We’ve made a lot of the changes to the configuration, and the virtual host is set up. However none of the changes that we made will take effect until Apache is restarted. Use this command to restart apache:&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt; sudo service apache2 restart&lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
You may see an error along the lines of&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;Could not reliably determine the server&#39;s fully qualified domain name, using 127.0.0.1 for ServerName &lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
The message is just a warning, and you will be able to access your virtual host without any further issues.&lt;br /&gt;
&lt;h2 style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 22.5px; font-weight: 500; line-height: 32px; margin: 30px 0px 2px; text-rendering: optimizelegibility;&quot;&gt;
Optional Step Seven—Setting Up the Local Hosts&lt;/h2&gt;
&lt;hr style=&quot;border-bottom-color: rgb(255, 255, 255); border-bottom-style: solid; border-left-width: 0px; border-right-width: 0px; border-top-color: rgb(238, 238, 238); border-top-style: solid; box-sizing: content-box; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; height: 0px; line-height: 23px; margin: 0px 0px 13px !important;&quot; /&gt;
If you have pointed your domain name to your virtual private server’s IP address you can skip this step—you do not need to set up local hosts. Your virtual hosts should work. However, if want to try out your new virtual hosts without having to connect to an actual domain name, you can set up local hosts on your computer alone. &lt;br /&gt;
&lt;br /&gt;
For this step, make sure you are on the computer itself, not your droplet. &lt;br /&gt;
&lt;br /&gt;
To proceed with this step you need to know your computer’s administrative password, otherwise you will be required to use an actual domain name to test the virtual hosts.&lt;br /&gt;
&lt;br /&gt;
If you are on a Mac or Linux, access the root user (su) on the computer and open up your hosts file:&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;nano /etc/hosts &lt;/pre&gt;
&lt;br /&gt;
If you are on a Windows Computer, you can find the directions to alter the host file on the &lt;a href=&quot;http://support.microsoft.com/kb/923947&quot;&gt;Microsoft site&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You can add the local hosts details to this file, as seen in the example below. As long as that line is there, directing your browser toward, say, example.com will give you all the virtual host details for the corresponding IP address.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.14902); color: #333333; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 16px; margin-bottom: 1em; margin-top: 1em; padding: 7.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost

#Virtual Hosts 
&lt;span style=&quot;color: red;&quot;&gt;12.34.56.789    example.com&lt;/span&gt;&lt;/pre&gt;
&lt;br style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot; /&gt;
However, it may be a good idea to delete these made up addresses out of the local hosts folder when you are done to avoid any future confusion. &lt;br /&gt;
&lt;h2 style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 22.5px; font-weight: 500; line-height: 32px; margin: 30px 0px 2px; text-rendering: optimizelegibility;&quot;&gt;
Step Eight—RESULTS: See Your Virtual Host in Action&lt;/h2&gt;
&lt;hr style=&quot;border-bottom-color: rgb(255, 255, 255); border-bottom-style: solid; border-left-width: 0px; border-right-width: 0px; border-top-color: rgb(238, 238, 238); border-top-style: solid; box-sizing: content-box; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; height: 0px; line-height: 23px; margin: 0px 0px 13px !important;&quot; /&gt;
Once you have finished setting up your virtual host, you can see how it looks online. Type your ip address into the browser (ie. http://12.34.56.789)&lt;br /&gt;
&lt;br /&gt;
It should look somewhat similar to my handy&lt;a href=&quot;https://i.imgur.com/PoO8d.png&quot;&gt; screenshot&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Good Job!&lt;br /&gt;
&lt;h2 style=&quot;color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 22.5px; font-weight: 500; line-height: 32px; margin: 30px 0px 2px; text-rendering: optimizelegibility;&quot;&gt;
Creating More Virtual Hosts&lt;/h2&gt;
&lt;hr style=&quot;border-bottom-color: rgb(255, 255, 255); border-bottom-style: solid; border-left-width: 0px; border-right-width: 0px; border-top-color: rgb(238, 238, 238); border-top-style: solid; box-sizing: content-box; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; height: 0px; line-height: 23px; margin: 0px 0px 13px !important;&quot; /&gt;
To add more virtual hosts, you can just repeat the process above, being careful to set up a new document root with the appropriate domain name, and then creating and activating the new virtual host file.&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 23px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
Fuente: &lt;a href=&quot;https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts&quot;&gt;How To Set Up Apache Virtual Hosts on Ubuntu 12.04 LTS&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/5980000435357007906/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://docodigo.blogspot.com/2013/12/como-configurar-apache-virtual-hosts-en.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/5980000435357007906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/5980000435357007906'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/2013/12/como-configurar-apache-virtual-hosts-en.html' title='Cómo configurar Apache Virtual Hosts en Ubuntu 12.04'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3427651352535578972.post-6457252929144609263</id><published>2013-11-13T12:31:00.000-03:00</published><updated>2013-11-13T12:31:06.078-03:00</updated><title type='text'>Agrandar un disco virtual de VirtualBox  (vmdk o vdi)</title><content type='html'>Para ampliar (agrandar) un disco virtual de VirtualBox (usualmente vmdk o vdi) debemos proceder así:&lt;br /&gt;
a.- Si esta en vmdk lo primero es convertirlo en vdi. esto se hace desde la consola así:&lt;br /&gt;
VBoxManage clonehd –format VDI XP1.vmdk Windows_XP.vdi&lt;br /&gt;
b.- Comprobamos las características del nuevo disco clonado en formato vdi con:&lt;br /&gt;
VBoxManage showhdinfo  Windows_XP.vdi&lt;br /&gt;
La salida muestra esto:&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
golgito:/home/tonisoto/VirtualBox/XP1# VBoxManage showhdinfo  Windows_XP.vdi&lt;br /&gt;
UUID:                 3c263693-9bad-4ebf-8cd9-0755cb9f0139&lt;br /&gt;
Accessible:           yes&lt;br /&gt;
Logical size:         3500 MBytes&lt;br /&gt;
Current size on disk: 1827 MBytes&lt;br /&gt;
Type:                 normal (base)&lt;br /&gt;
Storage format:       VDI&lt;br /&gt;
Format variant:       dynamic default&lt;br /&gt;
In use by VMs:        XP1 (UUID: 21556a50-df2c-4a05-8a56-b294ade3f5e8)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Location:             /home/tonisoto/VirtualBox/XP1/Windows_XP.vdi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c.- Luego aumentamos el tamaño del disco físico al tamaño deseado así:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VBoxManage modifyhd Windows_XP.vdi –resize 10240&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ahora ya mostrará esto:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
golgito:/home/tonisoto/VirtualBox/XP1# VBoxManage showhdinfo  Windows_XP.vdi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UUID:                 3c263693-9bad-4ebf-8cd9-0755cb9f0139&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Accessible:           yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Logical size:         10240 MBytes [Aumentó el tamaño]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Current size on disk: 1699 MBytes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type:                 normal (base)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Storage format:       VDI&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Format variant:       dynamic default&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In use by VMs:        XP1 (UUID: 21556a50-df2c-4a05-8a56-b294ade3f5e8)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Location:             /home/tonisoto/VirtualBox/XP1/Windows_XP.vdi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
d.- Ahora tenemos que añadir este disco (Windows_XP.vdi) al anterior con el el que arrancábamos en Virtualbox (XP1.vdi) colocándolo como IDE Primario esclavo:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IDE primario maestro: XP1.dvi (en realidad ya podríamos eliminarlo y poner aquí el Windows_XP.dvi)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IDE Primario esclavo: Windows_XP.vdi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e.- Bajamos la ISO del Gparted-Live y configuramos el arranque del CD/DVD-ROM en primer lugar (luego el Harddisk) y para no tener que quemar la ISO del Gparted configuramos el CD en ‘Almacenamiento’ para que cargue esa ISO desde la carpeta del host donde está.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
f.- Arrancamos de nuevo el Windows XP en virtualbox y se cargará el Gparted. Nos mostrá los  discos conectados. Hacemos un ‘Resize’ del Windows_XP.vdi para que ocupe todo el tamaño disponible. Nos aseguramos que tiene la etiqueta (flag) de boot y salimos de Gparted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
g.- Ya está. Sólo queda dejar como maestro el nuevo :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IDE Primario maestro: Windows_XP.vdi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cambiar el orden de arranque a: 1º Harddisk  2º CD/DVD-ROOM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Eliminar la vinculación del CD/DVD-ROOM a la ISO del Gparted y en su lugar vincularlo a la lectora&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Borrar los *vdi’ que no utilicemos para que no ocupen espacio.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Actualizar lo necesario y tomar una instantánea.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Objetivo conseguido!&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Fuente:&amp;nbsp;&lt;a href=&quot;http://www.tonisoto.com/?p=29&quot;&gt;http://www.tonisoto.com/?p=29&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/6457252929144609263/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://docodigo.blogspot.com/2013/11/agrandar-un-disco-virtual-de-virtualbox.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/6457252929144609263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/6457252929144609263'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/2013/11/agrandar-un-disco-virtual-de-virtualbox.html' title='Agrandar un disco virtual de VirtualBox  (vmdk o vdi)'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3427651352535578972.post-6578487801626328083</id><published>2012-02-28T17:27:00.000-03:00</published><updated>2012-02-28T17:27:53.613-03:00</updated><title type='text'>Backup incremental con Git</title><content type='html'>Una forma realmente interesante de realizar backups de tus bases de datos (por ser trivial y muy potente) es usando &lt;a href=&quot;http://git-scm.com&quot;&gt;Git&lt;/a&gt;. El proceso es simple y se basa en la realización de los dumps de la base de datos de forma que cada fila de las tablas sea un insert aislado, de esa forma en cada commit solo estaremos salvando las diferencias respecto al último estado (tanto deletes como inserts, como updates).&lt;br /&gt;
&lt;br /&gt;
En el caso concreto de &lt;a href=&quot;http://www.mysql.com&quot;&gt;MySQL&lt;/a&gt; inicialmente haríamos algo como esto:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;shell&quot; name=&quot;code&quot;&gt;$ mkdir mydatabase &amp;&amp; cd mydatabase
$ mysqldump --skip-extended-insert &gt; data.sql
$ git init
$ git add data.sql
$ git commit -m &quot;Initial dump of mydatabase&quot;
&lt;/pre&gt;&lt;br /&gt;
A partir de entonces podemos automatizar el proceso con un script tan simple como este:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;sql&quot; name=&quot;code&quot;&gt;$ cat /usr/bin/git_backup_database
#!/bin/sh
BACKUP_DIRECTORY=$1
DATABASE=$2
 
cd $BACKUP_DIRECTORY &amp;&amp; \
mysqldump --skip-extended-insert $DATABASE &gt; data.sql &amp;&amp; \
git commit -am &quot;Updating dump `date +%Y_%m_%d__%H_%M`&quot;
&lt;/pre&gt;&lt;br /&gt;
Según el volumen de consultas que tenga tu base de datos, te será interesante ponerlo en cron con una frecuencia determina u otra. Adicionalmente sería recomendable ejecutar $ git gc para optimizar el repositorio. Por ejemplo, dos veces al día y una vez a la semana mantenimiento:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;sql&quot; name=&quot;code&quot;&gt;0 0 * * * /usr/bin/git_backup_database /path/to/mydatabase mydatabase
0 12 * * * /usr/bin/git_backup_database  /path/to/mydatabase mydatabase
0 1 * * 1 cd /path/to/mydatabase &amp;&amp; git gc
&lt;/pre&gt;&lt;br /&gt;
Además desde otro equipo nadie te impide hacer un $ git clone ssh://equipo:path/to/mydatabase y tener todo el historial de la base de datos en un plis (bueno eso es relativo, que ocupará lo suyo...) o incluso programar un $ git pull para tener varios backups en distintas maquinas. En definitiva, se abren un sinfín de opciones.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://bicosyes.com/backup-incremental-de-tu-base-de-datos-con-git/&quot;&gt;Fuente&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/6578487801626328083/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://docodigo.blogspot.com/2012/02/backup-incremental-con-git.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/6578487801626328083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/6578487801626328083'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/2012/02/backup-incremental-con-git.html' title='Backup incremental con Git'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3427651352535578972.post-8964151867742590705</id><published>2010-12-09T21:01:00.009-03:00</published><updated>2010-12-10T01:44:59.425-03:00</updated><title type='text'>Conexiones a MySQL desde PHP</title><content type='html'>&lt;b&gt;¿Qué es la Extensión MySQL de PHP?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Esta es la extensión original que interactúa con bases de datos MySQL. La extensión mysql proporciona una interfaz procedural. Pensada para usar sólo con versiones de MySQL anteriores a la 4.1.3. Se puede utilizar con versiones de MySQL &amp;gt; 4.1.3 no estarán disponibles todas las nuevas funcionalidades de MySQL.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;¿Qué es la extensión mysqli de PHP?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
La extensión mysqli, o como a veces se le conoce, la extensión de MySQL mejorada, se desarrolló para aprovechar las nuevas funcionalidades encontradas en los sistemas MySQL con versión 4.1.3 o posterior. La extensión mysqli viene incluida en las versiones PHP 5 y posteriores.&lt;br /&gt;
&lt;br /&gt;
Vamos a necesitar crear nuestra base de datos, tablas y registros. Para eso tenemos el siguiente script:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;sql&quot; name=&quot;code&quot;&gt;-- Creamos la base de datos
CREATE DATABASE  `blog` ;

-- Creamos una tabla autores
-- Clave primaria: id
-- Ademas al campo &#39;autor&#39; solo permitiremos valores unicos

CREATE TABLE  `blog`.`autores` (
 `id` INT NOT NULL AUTO_INCREMENT ,
 `autor` VARCHAR( 128 ) NOT NULL ,
 PRIMARY KEY (  `id` ) ,
 UNIQUE (`autor`)
) ENGINE = MYISAM ;


-- Creamos la tabla entradas

CREATE TABLE  `blog`.`entradas` (
 `id` INT NOT NULL AUTO_INCREMENT ,
 `titulo` VARCHAR( 256 ) NOT NULL ,
 `contenido` TEXT NOT NULL ,
 `autor_id` INT NOT NULL ,
 `fecha` DATETIME NOT NULL ,
 PRIMARY KEY (  `id` ) ,
 UNIQUE (`titulo`)
) ENGINE = MYISAM ;


-- Insertamos un par de autores
INSERT INTO  `blog`.`autores` (`autor`) VALUES (&#39;Luis Mender&#39;);
INSERT INTO  `blog`.`autores` (`autor`) VALUES (  &#39;Juan Perez&#39;);

-- Insertamos registros en la tabla entradas
INSERT INTO  `blog`.`entradas` (`titulo`, `contenido`,`autor_id`,`fecha`) VALUES (&#39;Segundo Post&#39;, &#39;Contenido del segundo post&#39;,1,TIMESTAMP());
INSERT INTO  `blog`.`entradas` (`titulo`, `contenido`,`autor_id`,`fecha`) VALUES (&#39;Tercer Post&#39;, &#39;Contenido del tercer post&#39;,1,TIMESTAMP());
INSERT INTO  `blog`.`entradas` (`titulo`, `contenido`,`autor_id`,`fecha`) VALUES (&#39;Cuarto Post&#39;, &#39;Contenido del cuarto post&#39;,2,TIMESTAMP());
&lt;/pre&gt;&lt;br /&gt;
Con la sentencia &lt;pre&gt;TIMESTAMP()&lt;/pre&gt;lo que haces es imprimir en el campo la fecha y hora de creacion del registro.&lt;br /&gt;
&lt;br /&gt;
Ahora podremos hacer consultas a nuestra base de datos &#39;blog&#39;:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;// Creamos un objeto con el recurso a mysql, de la clase mysqli
$conexion = new mysqli(&#39;localhost&#39;,&#39;root&#39;,&#39;password&#39;,&#39;blog&#39;);

// Hacemos una consulta, y esta nos devuelve
// un objeto de la clase mysqli_result
$resultado = $conexion-&amp;gt;query(&quot;select * from entradas&quot;);

/* array */
$filas = $resultado-&amp;gt;fetch_array(MYSQLI_NUM);
echo &quot;&amp;lt;pre&amp;gt;&quot;;
print_r($filas);

/* associative array */
$filas = $resultado-&amp;gt;fetch_array(MYSQLI_ASSOC);
echo &quot;&amp;lt;pre&amp;gt;&quot;;
print_r($filas);

/* associative and numeric array */
$filas = $resultado-&amp;gt;fetch_array(MYSQLI_BOTH);
echo &quot;&amp;lt;pre&amp;gt;&quot;;
print_r($filas);

/* liberamos la memoria */
$resultado-&amp;gt;close();

/* Cerramos la conexion */
$conexion-&amp;gt;close();

&lt;/pre&gt;&lt;br /&gt;
Ejemplo: Visualizamos datos extra como la cantidad de filas devueltas y filas afectadas.&lt;br /&gt;
Realizamos un bucle para acceder a cada fila y poder extraer la informacion.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;// Habilitamos todos los errores y advertencias
error_reporting(E_ALL);

$conexion = new mysqli(&quot;localhost&quot;, &quot;root&quot;, &quot;password&quot;, &quot;blog&quot;);

/* verificar conexion */

// Controlamos el numero de error
if (mysqli_connect_errno()) {
// Visualizamos la descripcion del error
echo &quot;Error enconexion: &quot;. mysqli_connect_error();
exit();
}

// Creamos la consulta
$sql = &quot;SELECT * FROM entradas&quot;;

// Hacemos la consulta
$resultado = $conexion-&gt;query($sql)
// Si la consulta fue exitosa:
if ($resultado) {

 /* fetch array asociativo*/
 // Por cada fila mostramos el contenido del campo titulo
 while ($fila = $resultado-&gt;fetch_assoc()) {
  echo $fila[&quot;titulo&quot;].&#39;
&#39;;
 }
        // Mostramos el numero de filas afectadas que genera la consulta
 echo &quot;El numero de filas afectadas es: &quot;. $conexion-&gt;affected_rows . &quot;
&quot;;
        // Mostramos la cantidad de filas devuelta por la consulta
 echo &quot;El numero de filas devueltas es: &quot;. $resultado-&gt;num_rows;
 
 /* liberamos la memoria asociada al resultado */
 $resultado-&gt;close();
}

/* cerramos la conexion */
$conexion-&gt;close();

&lt;/pre&gt;&lt;br /&gt;
Ejemplo de inserción en una tabla: Además obtenemos el último id generado. Esto siempre y cuando en mysql el campo id sea AUTO INCREMENT.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$sql = &quot;INSERT INTO autores (`autor`) VALUES (&#39;juan3&#39;)&quot;;

if ($resultado = $conexion-&gt;query($sql)) {
 echo &quot;El id creado es: &quot;. $conexion-&gt;insert_id;
 echo &quot;Filas afectadas : &quot;. $conexion-&gt;affected_rows;
}else
 echo &quot;Hubo un error &quot;.$conexion-&gt;errno.&quot; - &quot;.$conexion-&gt;error;

/* cerramos la conexion */
$conexion-&gt;close();
&lt;/pre&gt;&lt;br /&gt;
Ahora un ejemplo de creacion de Base de datos:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$sql = &quot;CREATE DATABASE test2 ;&quot;;

// Esta sentencia es para borrar la base de datos.
//$sql = &quot;DROP DATABASE test2 ;&quot;;

if ($resultado = $conexion-&gt;query($sql)) {

 echo &quot;Filas afectadas : &quot;. $conexion-&gt;affected_rows;
}else
 echo &quot;Hubo un error &quot;.$conexion-&gt;errno.&quot; - &quot;.$conexion-&gt;error;

/* cerramos la conexion */
$conexion-&gt;close();
&lt;/pre&gt;&lt;br /&gt;
Un último ejemplo de como obtener informacion de la tabla: Tipo de datos que tiene cada campo, que flags tienen cada campo (UNIQUE, AUTO INCREMENT, NOT NULL) Esta informacion puede ser útil a la hora de generar formularios automáticamente.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$query = &quot;SELECT * from entradas&quot;;

// get the result from the DB


if ($result = $conexion-&gt;query($query)) {

    /* Get field information for all columns */
    $finfo = $result-&gt;fetch_fields();

    foreach ($finfo as $val) {
     echo &quot;Name &quot;.$val-&gt;name.&quot;&lt;br /&gt;&quot;;
     echo &quot;Table &quot;.$val-&gt;table.&quot;&lt;br /&gt;&quot;;
     echo &quot;max. Len &quot;.$val-&gt;max_length.&quot;&lt;br /&gt;&quot;;
     echo &quot;Flags &quot;.$val-&gt;flags.&quot;&lt;br /&gt;&quot;;
     echo &quot;Type &quot;.$val-&gt;type.&quot;&lt;br /&gt;&quot;;
    }
    $result-&gt;close();
}
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/8964151867742590705/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://docodigo.blogspot.com/2010/12/conexiones-mysql-desde-php.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/8964151867742590705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/8964151867742590705'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/2010/12/conexiones-mysql-desde-php.html' title='Conexiones a MySQL desde PHP'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3427651352535578972.post-6752732761620438477</id><published>2010-11-13T05:14:00.005-03:00</published><updated>2010-11-13T11:12:42.554-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="curso php"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Ejemplo Arrays</title><content type='html'>Un array es una collecion de elmenetos. Es una de las estructuras de datos mas importantes de los lenguajes de programacion. A diferencia de otros lenguajes como C/C++ los vectores (asi se llaman es estos otros lenguajes) solo permiten arreglos/vectores con indices numérico.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
PHP nos permite crear ademas de un vector/arreglo ordinario, un arreglo asociativo, que consta en un arreglo de elementos &#39;clave-&amp;gt;valor&#39;. La clave o key es un string que identifica al elemento.&lt;br /&gt;
&lt;br /&gt;
Al tener key&#39;s ya no podemos usar los bucles while/for ya que su &#39;indice&#39; (en este caso key) no se lo puede recorrer con un indice al que en cada vuelta lo aumentamos uno en uno.&lt;br /&gt;
&lt;br /&gt;
Para eso usaremos el bucle foreach, que es exclusivo para array.&lt;br /&gt;
&lt;br /&gt;
Un ejemplo es:&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$mi_array = array(&#39;Luis&#39;,&#39;Carlos&#39;,&#39;Andrea&#39;,&#39;Maria&#39;);
  foreach ($mi_array as $clave =&amp;gt; $valor){
  echo &quot;Elemento 1: $clave =&amp;gt; $valor&quot;;
}
&lt;/pre&gt;&lt;br /&gt;
Como tambien veremos que podemos anidar los elementos de un array, con otros array. Veamos:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$alumno1 = array(&#39;Juan&#39;,&#39;Perez&#39;,20);
$alumno2 = array(&#39;Jose&#39;,&#39;Gonzalez&#39;,21);
$alumno3 = array(&#39;Carlos&#39;,&#39;Garcia&#39;,22);
$alumno4 = array(&#39;Maria&#39;,&#39;Alvarez&#39;,23);
$mis_alumnos(
  &#39;lu01&#39; =&amp;gt; $alumno1,
  &#39;lu02&#39; =&amp;gt; $alumno2,
  &#39;lu03&#39; =&amp;gt; $alumno3,
  &#39;lu04&#39; =&amp;gt; $alumno4
  );

$tabla = crearTabla($mis_alumnos);

echo $tabla;
&lt;/pre&gt;&lt;br /&gt;
Definamos crearFila():&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$filaTemplate = &quot;&amp;lt;tr&amp;gt;{celdas}&amp;lt;/tr&amp;gt;&quot;;  
$celdaTemplate = &quot;&amp;lt;td&amp;gt;{dato}&amp;lt;/td&amp;gt;&quot;;
$encabezadoTablaTemplate=&quot;&amp;lt;th&amp;gt;{dato}&amp;lt;/th&amp;gt;&quot;;
/* Pasamos un arrar de 1 dimensio */
function crearFila($datos){  
    global $filaTemplate;  
    global $celdaTemplate ; 
  // Creamos unas plantillas para las filas y las celdas  
   
  // Creamos un string vacio donde acumularemos las celdas  
  $celdas = &#39;&#39;;  
  // Creamos el html de las celdas, con el template de la celda  
  if(count($datos)&amp;gt;0 &amp;amp;&amp;amp; is_array($datos)){  
    foreach($datos as $dato)  
      // Reemplazamos {dato}  
      $celdas .= str_replace(&#39;{dato}&#39;,$dato,$celdaTemplate); // vamos concatenando con lo existente  
  } 
  //Ahora reemplazamos en la fila  
  $fila = str_replace(&#39;{celdas}&#39;,$celdas,$filaTemplate);  

  return $fila;
}  
  
function crearTabla($tabla){  
  global $filaTemplate;
  global $encabezadoTablaTemplate;
  $inicioTabla = &quot;&amp;lt;table&amp;gt;&quot;;  
  $finTabla = &quot;&amp;lt;/table&amp;gt;&quot;;
  $filas =&quot;&quot;;
  $columnas=&#39;&#39;;
  //Recorremos la tabla  
  foreach($tabla as $libreta =&amp;gt; $alumno){
    if($columnas==&#39;&#39;)
        $columnas= array_keys($alumno);
    array_unshift($alumno,$libreta) ; 
    $filas .= crearFila($alumno).&quot;\n&quot;  ;
  }
  array_unshift($columnas,&#39;libreta&#39;);
  
  //Crear encabezado
  $encabezadoCelda=&quot;&quot;;
  foreach($columnas as $columna){
      $encabezadoCelda .= str_replace(&#39;{dato}&#39;,strtoupper($columna),$encabezadoTablaTemplate);
  }
  
  $encabezado= str_replace(&#39;{celdas}&#39;,$encabezadoCelda,$filaTemplate);
  return $inicioTabla.$encabezado.&quot;\n&quot;.$filas.$finTabla;  
} 
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/6752732761620438477/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://docodigo.blogspot.com/2010/11/ejemplo-arrays.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/6752732761620438477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/6752732761620438477'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/2010/11/ejemplo-arrays.html' title='Ejemplo Arrays'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3427651352535578972.post-626336901376865351</id><published>2010-11-13T05:04:00.008-03:00</published><updated>2010-11-13T05:21:13.819-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="curso php"/><category scheme="http://www.blogger.com/atom/ns#" term="html"/><title type='text'>Ejemplos de formularios</title><content type='html'>Voy a dar unos ejemplos de formulario. En cuanto a este tema hay mucha tela para cortar.   &lt;br /&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&amp;lt;input name=&quot;vehicle&quot; type=&quot;checkbox&quot; value=&quot;Car&quot; /&amp;gt; I have a car 
&lt;/pre&gt;&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&amp;lt;form action=&quot;html_form_action.asp&quot; method=&quot;get&quot; name=&quot;input&quot;&amp;gt;
Username: &amp;lt;input name=&quot;user&quot; type=&quot;text&quot; /&amp;gt;
&amp;lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/pre&gt;&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&amp;lt;form action=&quot;&quot;&amp;gt;
&amp;lt;select name=&quot;cars&quot;&amp;gt;
&amp;lt;option value=&quot;volvo&quot;&amp;gt;Volvo&amp;lt;/option&amp;gt;
&amp;lt;option value=&quot;saab&quot;&amp;gt;Saab&amp;lt;/option&amp;gt;
&amp;lt;option value=&quot;fiat&quot;&amp;gt;Fiat&amp;lt;/option&amp;gt;
&amp;lt;option value=&quot;audi&quot;&amp;gt;Audi&amp;lt;/option&amp;gt;
&amp;lt;/select&amp;gt;
&amp;lt;/form
&lt;/pre&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&amp;lt;select name=&quot;cars&quot;&amp;gt;
&amp;lt;option value=&quot;volvo&quot;&amp;gt;Volvo&amp;lt;/option&amp;gt;
&amp;lt;option value=&quot;saab&quot;&amp;gt;Saab&amp;lt;/option&amp;gt;
&amp;lt;option selected=&quot;selected&quot; value=&quot;fiat&quot;&amp;gt;Fiat&amp;lt;/option&amp;gt;
&amp;lt;option value=&quot;audi&quot;&amp;gt;Audi&amp;lt;/option&amp;gt;
&amp;lt;/select&amp;gt;
&lt;/pre&gt;&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&amp;lt;textarea cols=&quot;30&quot; rows=&quot;10&quot;&amp;gt;The cat was playing in the garden.
&amp;lt;/textarea&amp;gt;
&lt;/pre&gt;&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&lt;form action=&quot;&quot;&gt;&amp;lt;input type=&quot;button&quot; value=&quot;Hello world!&quot; /&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/form&gt;&lt;/pre&gt;&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&amp;lt;input type=&quot;reset&quot; value=&quot;Clear the Form&quot; /&amp;gt;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/626336901376865351/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://docodigo.blogspot.com/2010/11/ejemplos-de-formularios.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/626336901376865351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/626336901376865351'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/2010/11/ejemplos-de-formularios.html' title='Ejemplos de formularios'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3427651352535578972.post-4828283146920195764</id><published>2010-05-30T20:02:00.010-03:00</published><updated>2010-05-30T20:32:37.471-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="lamp"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="seminario"/><title type='text'>Seminario Optimizacion y performance LAMP</title><content type='html'>Los invito a participar en este seminario que se realizara en la Facultad de Ciencias Exactas de la U.N.T. (Av. Independencia 1800) en el Anfiteatro A2.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;Requisitos&amp;nbsp;recomendados:&lt;/b&gt;&amp;nbsp;Nociones&amp;nbsp;básicas&amp;nbsp;de&amp;nbsp;Linux&amp;nbsp;(instalación&amp;nbsp;de&amp;nbsp;aplicaciones), Apache, PHP y MySQL.&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;Fecha y horario:&lt;/b&gt; Viernes 18 de Junio de 2010. 15 hs.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Duración: &lt;/b&gt;5 hs.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Lugar: &lt;/b&gt;Anfiteatro A2. Facultad de Ciencias Exactas y Tecnología. Universidad Nacional&amp;nbsp;de Tucumán.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Página web:&lt;/b&gt; &lt;a href=&quot;http://www1.herrera.unt.edu.ar/cursos_extension/&quot;&gt;http://www1.herrera.unt.edu.ar/cursos_extension/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2&gt;






Objetivos del seminario&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Al finalizar el seminario, los asistentes tendrán los conceptos teóricos y prácticos fundamentales sobre configuración y optimización para lograr una mejor performance en servidores web Apache con base de datos MySQL y con el lenguaje de programación PHP sobre servidores GNU/Linux. La combinación de estas tecnologías, también conocida por el acrónimo LAMP, es la plataforma Open Source para construir un servidor web más usado, e implementado en muchos de los sitios más importantes de Internet&amp;nbsp;como ser Yahoo!, Wikipedia, Youtube, Facebook, entre otros.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 24px; font-weight: bold;&quot;&gt;Temario Resumido&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
El seminario estará organizado según los temas siguientes:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Descripción del stack LAMP. Consideraciones generales&lt;/li&gt;
&lt;li&gt;Penetración en el medio de IT&lt;/li&gt;
&lt;li&gt;Elección del File System - performance&lt;/li&gt;
&lt;li&gt;Apache, consideración de seguridad y optimización&lt;/li&gt;
&lt;li&gt;Modulos de Apache para multiprocesamiento&lt;/li&gt;
&lt;li&gt;PHP y tecnologías de &quot;caching&quot; para optimización&lt;/li&gt;
&lt;li&gt;MySQL, configuración de parámetros del DBMS&lt;/li&gt;
&lt;li&gt;Optimización de MySQL desde el punto de vista del motor DB&lt;/li&gt;
&lt;li&gt;Test performance MySQL&lt;/li&gt;
&lt;li&gt;Test de performance del stack LAMP&lt;/li&gt;
&lt;li&gt;Monitoreo y disponibilidad de servidores LAMP&lt;/li&gt;
&lt;/ol&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 24px; font-weight: bold;&quot;&gt;Costo:&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;Miembros de UNT OSUM: 40$&lt;/li&gt;
&lt;li&gt;Público en general: 60$&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
El pago se deberá realizar en Asociación Cooperadora de la FACET&lt;/div&gt;
&lt;div&gt;
(Av. Independencia 1800 – Block Decanato) de Lunes a Viernes de 8.00 a 12.00 hs.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Más información:&amp;nbsp;http://www1.herrera.unt.edu.ar/cursos_extension/&lt;/div&gt;
&lt;div&gt;
Se entregará material y certificado de asistencia&lt;/div&gt;
&lt;div&gt;
Si querés ser parte de UNT OSUM, registrate en:&lt;/div&gt;
&lt;div&gt;
http://osum.sun.com/group/UNTOSUM&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL8pJx4sUTB-c2mSABOx9uBx1BPLs7CPBLt3Fm5wmtMELew6QDJkVGu4qxz0TtVhdjn8h59fdTJnK29JNPqYwCFISEnJEKKxLeEZubEP9pAQ7VIzi0D9mW6VEI47Ja2v6w1882FlWC5lk/s1600/seminario-performance-lamp.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL8pJx4sUTB-c2mSABOx9uBx1BPLs7CPBLt3Fm5wmtMELew6QDJkVGu4qxz0TtVhdjn8h59fdTJnK29JNPqYwCFISEnJEKKxLeEZubEP9pAQ7VIzi0D9mW6VEI47Ja2v6w1882FlWC5lk/s640/seminario-performance-lamp.jpg&quot; width=&quot;459&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/4828283146920195764/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://docodigo.blogspot.com/2010/05/seminario-optimizacion-y-performance.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/4828283146920195764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/4828283146920195764'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/2010/05/seminario-optimizacion-y-performance.html' title='Seminario Optimizacion y performance LAMP'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL8pJx4sUTB-c2mSABOx9uBx1BPLs7CPBLt3Fm5wmtMELew6QDJkVGu4qxz0TtVhdjn8h59fdTJnK29JNPqYwCFISEnJEKKxLeEZubEP9pAQ7VIzi0D9mW6VEI47Ja2v6w1882FlWC5lk/s72-c/seminario-performance-lamp.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3427651352535578972.post-1018336014199371353</id><published>2010-05-17T21:00:00.003-03:00</published><updated>2010-05-17T21:10:53.168-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="&quot;tucuman valley&quot;"/><title type='text'>Se vienen las 2da Mini-Charlas, Tucuman Valley</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 13px;&quot;&gt;El 2º ciclo de Minicharlas será para este próximo jueves &lt;b&gt;20 de Mayo a horas 20:00 en la Fundación del Tucumán&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 13px;&quot;&gt;Los temas a tratar serán:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;b&gt;Cloud Computing&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;b&gt;Ruby on Rails&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 13px;&quot;&gt;Pueden consultar mas informacion aquí:&amp;nbsp;&lt;a href=&quot;http://www.tucumanvalley.com/2010/05/17/2da-minicharla-tucuman-valley-temas-y-expositores/&quot;&gt;http://www.tucumanvalley.com/2010/05/17/2da-minicharla-tucuman-valley-temas-y-expositores/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/1018336014199371353/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://docodigo.blogspot.com/2010/05/se-vienes-las-2da-mini-charlas-tucuman.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/1018336014199371353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/1018336014199371353'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/2010/05/se-vienes-las-2da-mini-charlas-tucuman.html' title='Se vienen las 2da Mini-Charlas, Tucuman Valley'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3427651352535578972.post-4314598121210292662</id><published>2010-05-03T20:16:00.011-03:00</published><updated>2010-05-14T13:36:49.429-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Sesiones y subdominios en PHP</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.elwebmaster.com/wp-content/uploads/2008/05/php2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.elwebmaster.com/wp-content/uploads/2008/05/php2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Alguna ves programando me tope con subdominio y sessiones.&lt;br /&gt;
&lt;br /&gt;
El tema es que si iniciaba sesion poniendo &lt;i&gt;http://misitio.com/&lt;/i&gt; la sesion no valia, por ejemplo, para algun subdominio &lt;i&gt;http://misubdominio.misitio.com/&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
El problema se resuelve rapidamente con setear a PHP correctamente para que las sesiones las cree para un dominio en general.&lt;br /&gt;
&lt;br /&gt;
Hacemos al principio del script que se ejecutara en el subdominio: &lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;ini_set(&quot;session.cookie_domain&quot;,&quot;.misitio.com&quot;);
&lt;/pre&gt;No es necesarios que en los script que se ejecutaran en el dominio lleven eso, pero si en los scripts que se ejecutaran con un subdominio.&lt;br /&gt;
Esto hacemos en las paginas donde accedemos con un subdominio.&lt;br /&gt;
&lt;br /&gt;
Mas informacion sobre ini_set(); en:&amp;nbsp;&lt;a href=&quot;http://www.php.net/manual/es/function.ini-set.php&quot;&gt;&lt;b&gt;http://www.php.net/manual/es/function.ini-set.php&lt;/b&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/4314598121210292662/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://docodigo.blogspot.com/2010/05/alguna-ves-programando-me-tope-con.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/4314598121210292662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/4314598121210292662'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/2010/05/alguna-ves-programando-me-tope-con.html' title='Sesiones y subdominios en PHP'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3427651352535578972.post-6305765319819858682</id><published>2009-10-01T13:06:00.002-03:00</published><updated>2010-05-14T11:34:59.337-03:00</updated><title type='text'>Mi blog.</title><content type='html'>Bueno tome la iniciativa, empeze con mi blog. Lo hice en Blogger ya que deseaba probar primero antes de pagar mi propio espacio.&lt;br /&gt;
Mi nombre es Luis, y estudio Ingeniería en Computacion en la Universidad Nacional de Tucumán.&lt;br /&gt;
Creo que principalmente en este espacio postearé temas sobre desarrollo, especificamente Web. Pero quizás también, temas de Internet en general, Social Media, quizás tecnología, todo lo que me guste y pueda compartirlo con Uds.</content><link rel='replies' type='application/atom+xml' href='http://docodigo.blogspot.com/feeds/6305765319819858682/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://docodigo.blogspot.com/2009/10/mi-blog.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/6305765319819858682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3427651352535578972/posts/default/6305765319819858682'/><link rel='alternate' type='text/html' href='http://docodigo.blogspot.com/2009/10/mi-blog.html' title='Mi blog.'/><author><name>Luis</name><uri>http://www.blogger.com/profile/07018065733938685603</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry></feed>