Posted by Elias

Hace algunos días terminé un portal en Drupal para un cliente, tuvimos contacto constante vía e-mail.

Hoy recibí un nuevo correo, y lo abrí esperando fuera algún requerimiento de cambios, o comentario acerca de alguna funcionalidad ya implementada, me decepcioné un poco al saber que era una cadena acerca del reciente altercado en Honduras.

Después de la decepción, me invadió un sentimiento: "¿Mi cliente es del tipo que utiliza los correos corporativos para enviar información no directamente relacionada con la relación de negocios existente entre nosotros?"

Ahora no sé si enviarle un correo pidiéndole que se abstenga de enviarme cadenas...

Posted by Elias

I prefer to see the line number when I open a file with Vi, to set this you have to create a file called .vimrc on your home folder, just open a terminal and type:

$ vi .vimrc

then hit the enter key and in the empty file write (after pressing "a" to start adding words:

set number
set filetype=php

then press ESC then write "wq" to write and quit the app and press enter.

Done, your Vi is now showing the line numbers and also formatting the files to make PHP easier to spot.

;)

And if you want to change the settings of the gVim app, just create a file called .gvimrc, once opened you can type:

colorscheme darkblue

to set the scheme you like the most.

Enjoy!

Posted by Elias

Ok then, after installing PHP, Apache, and all those services, I needed to install Symfony...

How? First of all I needed to install Subversion, by typing:

$ sudo apt-get install subversion

been there, install GIT also:

$ sudo apt-get install git-core gitk git-gui git-svn

Done, then you can get the latest Symfony, just change the directory to /usr/share/php5, then type:

/usr/share/php5$ sudo svn co http://svn.symfony-project.com/branches/1.2 symfony-1.2

Done! you have Symfony on your machine!

Posted by Elias

Ok, I'm a freaking newbie, so, how to install drupal on your machine when using LAMP?

You can use the previous post to install all the required services to get drupal running, but after that, you should follow this easy steps:

1) Download the files from the drupal.org site, I guess this link will work

2) Unzip the files on a folder, I renamed that folder as "Drupal6", you can use the "Extract here" option when you press the right button over the file, but also with the command: $tar -zxf drupal611.tar.gz

3) Then, copy the file to the location where you have Apache installed, usually just copyy the folder to /var/www/ by using the following command: $sudo cp -R Desktop/drupal6 /var/www /Desktop/drupal6

4) Done!! haha, that was really easy!!

Once you "installed" drupal you can go straight to the following lullabot tutorial to learn how to configure each of your drupal sites.

Posted by Elias

Elías: "Joaquín, para instalar drupal basta con que copie la carpeta descomprimida de drupal en mi carpeta www dentro de var?"
Joaquín: "(sin poner mucha atención) No como crees "
Elías: "mmm... bueno, vamos a investigar en internet..."
2 horas después...
Elías: "Joaquín, estaba viendo, en realidad basta con que copie la carpeta de Drupal y ya con eso puedo empezar a configurar cada uno de mis sitios, cierto?"
Joaquín: "Si, por?"
Elías: "¬_¬"
fín...

Posted by Elias

I've just reinstalled the nuew Ubuntu 9.04 on my notebook (a fresh installation) and suddenly I realized I needed to install all the services to get Drupal running, just needed this:

$ sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server

Done!

BUT, if you're attempting to use Drupal and use the Clean URL module, you should enable the "Rewrite" Apache module, by using the following command:

$sudo a2enmod

then, just type: rewrite

then restart the Apache service by typing:
$ sudo /etc/init.d/apache2 restart

and now we're done!!

Posted by Elias

After installing the SWF Tools module to upload and playback some SWF files in a site, I found I coulnd't upload files bigger than 8MB. At first I thought using FTP for the file upload, but the SWF tools does not allow the user to set the URL of the file. Instead trying a more elaborated solution, I just changed the following 2 values in my php.ini file:

upload_max_filesize=15MB
post_max_size=15MB

establishing the maximum amount of MB allowed per file attached to 15MB instead of the original 8MB.

Hope this works for you!

Posted by Elias
CSS is awesome
Hahaha, one of the best images I ever seen, vía product page. I totally want one of these.
Posted by Elias

Paraphrasing to Augusto Monterroso, I thought about an engineer's epitaph:

He wrote a programming languaje: They said he thought he was Dennis Ritchie
He wrote an operating system: They said he thought he was Linus Torvalds
He wrote a virus: They said he thought he was Robert Frankie Morrillo
He wrote a SQL languaje: They said he thought he was Don Chamberlin
He wrote a videogame: They said he thought he was Alexey Pajitnov
He stopped writing: They said he thought he was Bill Gates
He wrote an epitaph: They said he thought he was death

Posted by Elias

About giving a meaning to the web