How to backup Flickr into Amazon S3/Dropbox/Google Cloud/Drive...

The following recipe is an easy way to get your full Flickr account backed up in Amazon S3 or similar cloud storage. Unless you have a really good Internet connection at home or you are doing a backup of a small library the first thing to do would be to create a machine in the cloud, such as Digital Ocean or Amazon EC2 so you can have a high throughput. Once the process is finished you can destroy the machine and the whole operation will cost you a few cents.

Engineering culture for an Internet company

Hope you will bear with me improvising the definition of engineering culture as the ideas, attitudes, organization and behavior of the members of an engineering-driven company. Each one of the Internet companies we work in have an engineering culture, regardless of the awareness of their members (and managers). That's because a company is an ecosystem that operates under a series of individually-disconnected and collectively-connected principles that when placed together over time they become ideas, attitudes and behaviors conforming an Engineering culture: the reality on which the company operates and organizes itself.

OS X renaming using parameter expansion

When it comes to rename files via command line there is no rename utility under OS X without installing Homebrew. But I still never needed to install it since there is a lot you can do by just making use of the shell parameter expansion. The parameter expansion allows you to manipulate variables in a very convenient way and when mixed with the mv command you have an unstoppable renaming tool.

Merging two, three or more git repositories keeping the log history

If you ask anyone, merging several git repositories into a single one would usually be considered a bad strategy: as a rule of thumb, your code base should have several components isolated and then use a dependency manager (e.g: Composer) to bring them together. Nevertheless, there are always many different scenarios and with them come different use cases, weird situations or just plain normal activities that would justify this procedure. In any case if you ever need to merge several repos into one, and still want to keep the git history this is an easy way to do it.

Terminal tuning for Git developers in Mac

If you work with Git in the terminal there are some tweaks you might want to apply to your prompt for safer and faster coding. The following lines are part of my ~/.bash_profile file. I use it on Mac although that might work in Linux as well. You can copy and paste this code in your ~/.bash_profile (create it if it doesn't exist), save and open a new terminal to see the changes every time you save.

VCL's Varnish syntax highlighting for PHPStorm

If you are looking for Varnish syntax highlighting for PHPStorm, as per today, you won't find a plugin. This post is not publishing a plugin for proper vcl syntax highlighting but a quick hack to see some coloring. Given the fact Varnish configuration files are very similar to C I tried to associate the .vlc type to C files.  It is not rocket science but at least your eyes will hurt less.

Solved: Firefox and IE blocking font awesome (CORS)

It seemed today that Firefox was blocking the font files when using font-awesome and the web didn't work properly. But our friend Jorge from the Sphinxdev blog explained us a solution.. In order to enable automatically CORS when a TTF, OTF, EOT or WOFF file is detected you only have to create a .conf file insde /etc/httpd/conf.d with any name and paste inside: AddType application/font-woff woff AddType application/vnd.ms-fontobject eot AddType application/x-font-ttf ttc ttf AddType font/opentype otf AddType image/svg+xml svg svgz AddEncoding gzip svgz <FilesMatch "

Organizing git branches in logical folders

It is easier to find things when they are well organized. If you are a git user a good practice to name the branches would be to use descriptive names including slashes "/" (as in paths) where everything before the slash is the folder you want to use and then the logical name after it. If you use the fantastic git graphical interface SourceTree (free for Windows and Mac) then you will be able to navigate these branches using folders.

Automatically archive S3 backups to Amazon Glacier

Amazon S3 is an on-cloud storage service used in a variety of scenarios. On of these common scenarios is the one where you upload your server backups to S3 using any of the multiple convenient libraries and tools.  In the other hand, Amazon offers another service more oriented to data archiving and backup named Amazon Glacier. If you store a lot of data (and I am not talking about  a couple of GB) then you can save money using Glacier instead of S3.

Kill processes using string search

A lot of Linux distributions (and Mac) come with a handy command named pkill installed by default. This command is very useful to kill processes in a more natural way. Instead of doing a kill/killall based on the ID of the process or the binary name, you can just pass a string that appears in any part of the process list, including the parameters you used to start a service.

Force kill of processes in Windows

Sometimes Windows Tasks Manager is not able to kill an in-memory process. We try to close it several times with no luck :( For these frustration moments we can make use of a console command named TaskKill With TaskKill the pain ends simply with: taskkill /IM filename.exe /F More info about taskkill: http://technet.microsoft.com/en-us/library/cc725602.aspx

A true multiline regexp in PHP. The "I miss U" technique

The following regular expression matches tags that are opened and close in different lines, albeit can be used for any other purpose. It is also ungreedy, meaning that when the first closing tag is found the rest of equal tags will be ignored. It is very easy to remember and to apply, I call it the "I MISS YOU" technique, see the why in the regexp modifiers: misU  $html =<<<MULTILINE <p class="

Finding abusers. List of most frequent IPs in Apache log

Internet is full of malware and people with leisure time who will hammer your server with no good intentions, most of them will try to access well-known URLs looking for exploits of software like Wordpress (/wp-admin.php, /edit, etc...). If you monitor for a while your access_log it's easy to find out unwanted behaviour. If you want to get a list of the most frequent IPs in your Apache log the following command will get a list of those IPs sorted by number of requests: [root@www3 ~]# cat /var/log/httpd/access_log_20130620 | awk '{print $1}' | sort | uniq -c | sort -rn | head 912545 95.

Converting a CSV to SQL using 1 line in bash

The command line is very powerful and can do amazing stuff in one single line by pipelining a series of commands. This post is inspired after creating a line that mixed sed and awk, but with just only awk I'll show you an example on how to convert a CSV file to an SQL insert Let's take an input CSV named events-2013-06-06.csv with 16 columns per line. It looks like this: k51b04876036e2,192.

Migrating a Github repo to Bitbucket (or similar services)

Github is awesome. Bitbucket is awesome too. They are both excellent services, but Bitbucket has a plus: it's free for private repos. That's one of the reasons on why we decided to stop paying our $25/mo Github account for small projects and moved to Bitbucket. Although the Bitbucket guys have now a one-click "import from Github tool", the solution is so simple that I don't even think it is worth using it.

Rellenar una columna con Hash aleatorio en MySQL

Tenemos unos cuantos cientos de datos y queremos crear un hash para poder acceder a ellos de forma directa y cifrada. Imagina, por ejemplo, la típica tabla de usuarios en la que un campo contiene un hash para guardar en cookies y hacer el autologin por cookie. Al crear el nuevo atributo este queda vacío así que necesitarás esta pequeña consulta para generar códigos hash de forma aleatoria y muy rápida: UPDATE `users` SET autologin_hash = MD5(RAND()) WHERE autologin_hash IS NULL; Fácil eh?

Migrate Posterous without losing the images

It might seem very obvious to you that if you migrate from Posterous blogs to another service your images should be transitioned as well. If you want a free service (as Posterous was) there are only two options where you can migrate your Posterous to without writing all your posts one by one again: 1) Wordpress.com (but losing all the images) 2) Obolog.com (and keeping all the images) So, if you want your blog back including images the only option you have is Obolog.

Best web-based alternatives to Google Reader

If you are a Google Reader reader you have certainly seen the message that is going to disappear by July 1st 2013. If you read from mobile then plenty of cool apps like Flipboard you can use, but when it comes to a web-based interface these are the alternatives I found worth using. The first thing you should do before it is too late is to download a copy of your Google Reader feeds using Takeout Then take your time to pick another service, there are plenty.

Configure Compass,Sass,Less... in PHPStorm

PHPStorm 6 bundles a new feature called "File watchers" which enables Sass, LESS, SCSS, CoffeeScript, TypeScript transpilation. This option will compile your compass/scss/whatever files when the source file is saved (this is when you lose the focus or manually save). So, for the basic stuff you can stop using external programs and watchers likeCodeKit or LESS.app now. But of course unexpensive software like CodeKit is a must have if you are a frontend developer.

Features in PHP 5.4

We had to create a file upload form that allows a user to upload big files. In order to keep a good experience for the user we decided to show the progress bars. There are several ways of doing that but it came to my mind that PHP 5.4 had an improvement on file upload, making it easier now and wondered if I had the last excuse to upgrade the servers from 5.

Mails perdidos en Gmail por redireccionamiento [Solucionado]

El problema Seguro que no soy el único que tiene más de una dirección de correo electrónico. En muchas ocasiones, por orden o por practicidad, configuramos nuestras múltiples direcciones de correo electrónico para que podamos recibirlo en un mismo buzón. Cuando alguna de esas direcciones está configurada en Gmail, en ocasiones, podemos experimenter pérdida de mensajes. El motivo Gmail pasa todo el correo entrante por un motor de detección de correo sospechoso de ser no deseado.

A life explained in HTTP status codes

This is a made-up story of a life explained with HTTP status code. It was written up to down at once without much thinking, feel free to improve it! Status Code Event HTTP meaning 100 You are curious about her Continue 101 First time sex Switching Protocols 200 Love OK 201 She's pregnant Created 202 And you are the father Accepted 203 Were you looking forward it?

Apache RewriteCond -f check file exists solution

If your Apache virtualhost or htaccess configuration uses a rewrite condition (RewriteCond) in order to allow nice URLs, you should be aware that since Apache 2.2 the "check if file or exists" works a little bit different. Any of the following examples might have stopped working for you: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-s The solution to correct it is very simple, but I couldn't see it documented.

Convertir de ISO a UTF-8 por línea de comandos

Esta mañana he tenido que utilizar un .CSV generado desde Excel. Al acceder a él desde la línea de comandos me he encontrado que se perdían todos los acentos. Un problema ya clásico este de "los carácteres especiales". Gracias al comando 'file' he podido descubrir la codificación que Excel le da a nuestro fichero en el momento de hacer la exportación. >file nombre_fichero.csv nombre_fichero.csv: ISO-8859 text, with CRLF line terminators Lo único que he tenido que hacer es convertirlo en la misma terminal a UTF-8.

Textos grandes a partir de caracteres básicos en terminal

Estaba haciendo un script para automatizar el proceso de conexión a una base de datos, en producción. Uno de esos scripts que conviene usar con cuidad así que pensé en poner un aviso que se mostrara al ejecutarlo: [user~]$ cat prod_mysql.sh echo "CUIDAOOOOOOOOO!!!!!" mysql -h localhost -u user_prod -plucksoytuhijo main_data Pero al ejecutarlo pensé que ese aviso no era tan visible com me gustaría así que recordé una herramienta que usaba hace muchos años.

Llamadas cURL a través de distintas interfaces

Si tu servidor web dispone de varias interfaces de red y quieres que ciertas peticiones que haces con cURL salgan a través de una IP específica puedes modificar el flag CURLOPT_INTERFACE de cURL pásandole la IP. Un ejemplo tonto podría ser: ... // Todas mis interfaces de red: $interfaces = array( '91.121.157.41', '178.33.161.225', '188.165.128.67', '178.33.166.125', '178.33.163.125', ); // Salir aleatoriamente por una de ellas: $rand_interface = $interfaces[rand(0,count($interfaces)-1)]; curl_setopt($curl_handle, CURLOPT_INTERFACE, $rand_interface ); .

Copy/clone/duplicate a mysql database script

This is a simple script that duplicates your entire database. There are many ways in which you can take advantage of having an exact replica of your production database. In short, the behaviour of the script is the following (in this order, all piped): Delete the COPY database if possible to start with a fresh one Create the COPY database Dump the PRODUCTION database Inject the output of the dump into the COPY database Any errors during the process will be logged to the file defined as $ERROR.

Varnish allow/reject connections with IPs list (ACL)

In a web server you can use directives to deny the unwanted eye to look at your content. This is an example of how Apache would handle a virtual host that only accepts connections from a series of IPs, but in Varnish that won't work. Order Deny,Allow Deny from all # Barcelona IPs Allow from 89.140.xxx.xxx/27 # Japan IP Allow from 222.229.xxx.xxx/32 The reason that this won't work in Varnish is because the IP Apache is receiving is 127.

Evitar que Chrome lance a Google tu url como búsqueda

El problema Como desarrollador cada vez me siento más cómodo trabajando con Google Chrome pero hay una cosa que muchas veces me hace perder algo de tiempo: En ocasiones, al intentar buscar una url poco "normal", como puede ser en un dominio típico en un entorno de desarrollo, Chrome detecta que no es una url válida y la lanza contra Google en forma de búsqueda. Un ejemplo Queremos acceder a nuestra working copy con una url como ésta: development_area/test_script.

Determining the real client IP with Varnish (w/ X-Forwarded-For)

If you implement Varnish in your application one of the early things that you discover is that  any IP functionalities you had are now gone. Some examples are: GEOIP does not resolve the country Apache logs write 127.0.0.1 as request client IP (or another IP of your LAN) My own PHP logic cannot longer apply filters by IP Why? Well, it's easy to answer.

Puppet Syntax highlighting under Textmate

Add some color to your puppet scripts opened in TextMate! Fire this in a terminal: mkdir -p ~/Application\ Support/TextMate/Bundles git clone https://github.com/masterzen/puppet-textmate-bundle.git Puppet.tmbundle mv Puppet.tmbundle/ ~/Library/Application\ Support/TextMate/Bundles/ rm -fr Puppet.tmbundle And voilà!

Varnish VCL: Delete ALL cookies and other magic

This morning Javi Callón gave me a great introduction in few minutes to the Varnish in steroids world, I really appreciate it.  I'd like to share this snippet which might be very interesting for you if you are new to the Varnish magic too. This has been my first contact with Varnish ever, and I have to say I am quite amazed on how the application is responding now in terms of performance.

Simple Varnish Installation

The first thing to do is to make sure your application is passing the headers properly. At least you'll need this (in PHP): // Let's say Varnish caches for 12 hours: $cache_max_age = 60*60*12; header( "Cache-Control: public, must-revalidate, max-age=0, s-maxage=$cache_max_age" ); Varnish installation (CentOS/Redhat): RPM taken from https://www.varnish-cache.org/installation/redhat rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-3.0.el5.rpm After adding the package: yum install varnish If you have another Linux see in the link, is more or less the same.

Smarty: Concatenation of variables inside block parameters

In Smarty sometimes you need to concatenate 2 variables and pass it as a single variable inside a block. But the placeholder won't allow any expected PHP syntax You want to accomplish something like: {assign var="MYVAR" value=$variable1.$variable2} But, the dot in smarty is for array access, so, what about... {assign var="MYVAR" value=$variable1+$variable2} No. It does not work either. Ah! Let's try a modifier: {assign var="

Mantener la sesión abierta en iTerm (keep-alive)

Similarmente a como explicamos sobre cómo mantener la sesión activa en Putty, si queremos dejar la terminal abierta y que no se nos cierre con iTerm cada vez que vamos a hacer un café, comer, o liberar la próstata, hay que seguir estos sencillos pasos: Abrir Bookmarks -> Manage Profiles Desplegar Terminal Profiles y seleccionar Default Marcar When idle, sends ASCII code El valor de esta casilla por defecto es 0, pero lo podéis cambiar a cualquier otro código ASCII.

How to setup a remote development environment over SFTP (working copy)

This article explains how to setup the server and client to work with a remote working copy. To properly understand this post you should have read the previous post, When to setup a remote development environment over SFTP (working copy). To have the enviroment up and running you must setup once the server, and then apply the configuration of the client in every developer machine. But the client side is very simple and requires no installation at all.

When to setup a remote development environment over SFTP (working copy)

When a programmer has a local copy of the code and an environment fully functional where the web can be tested before going live, we usually call it a working copy. The action of moving/copying/putting this work in the final live server (a.k.a production server/environment) is called the deploy action. There are many ways of having a working copy up and running. We, the key stroker maniacs, use to work more or less with one of the following working copy configurations: No working copy.

Putty keep-alive session (mantener activa la sesión)

Cuando utilizamos putty como cliente ssh muchas veces nos encontramos que, tras un tiempo de inactividad, la sesión se cierra. Putty cuenta con una opción que nos permite envíar paquestes nulos, de forma automática, cada periodo definido de tiempo. De esa manera, putty, mantendrá la sesión activa. Antes de activar esta opción hay que tener en cuenta que, el sistema de cancelación automática de una conexión no es más que una medida de seguridad por lo que, en caso de conectarnos a sistemas "

Git log mejorado. Color y ramas dibujadas

Hace unos días me llegó un tweet de Dani con uno de esos regalos que hace de tanto en cuanto, que se acuerda de los amigos y te manda algo interesante. En este caso era un artículo en inglés de Filipe Kiss donde nos enseñaba como convertir el git log de terminal en algo con cara y ojos (hacer clic en imágen). He modificado  el comando original para que muestre el email en vez de los nombres, que tiene problemas en algunas terminales con los acentos.

Mysql: Llenar tabla con datos aleatorios (de una lista)

En alguna ocasión nos hemos encontrado con la necesidad de actualizar / insertar registors de una tabla con elementos aleatoris a partir de una lista. Esta operación es especialmente útil cuando queremos crear datos "dummy" para entornos de desarrollo. El ejemplo de este post es para MySql: UPDATE files f SET license_type = (SELECT ELT(0.5 + RAND() * 2, 'Free', 'Try' ) )

Cómo expulsar un CD o DVD atascado en Mac

Hoy he puesto un DVD en la unidad del Macbook y a través de los botones de eject era imposible sacar el CD. Mi portátil no tiene el clásico agujero para meter un clip y sacarlo mecánicamente. Lo que me ha funcionado finalmente es ejecutar desde la terminal: drutil tray eject Otras cosas que pueden funcionar son: Probar de expulsarlo desde la "Utilidad de Discos"

Volcado Mysql de municipios y provincias españolas y territorios UE

Son muchos los proyectos de Internet que necesitan una base de datos donde se muestra a los usuarios listados de provincias y municipios (caso España) o de regiones, departamentos, länder... (caso Europa). Esta información no suele estar disponible para su consumo rápido ya que hay que ir a las webs de los organismos oficiales, buscar los CSV (cuando funciona) y crear la base de datos. Así que hoy me he decidido a agrupar estas organizaciones territoriales cogiendo las fuentes de los organismos oficiales para que cualquier persona pueda descargar un volcado sql de muncipios, provincias y comunidades autónomas de España (formato Mysql) y otro volcado mysql de los países de la Unión Europea con sus regiones, departamentos, länder, estados federados o cualesquiera que sea su organización territorial.

Arreglar un Garmin Forerunner cuando no se enciende

Después de muchisimos kilómetros con el pulsómetro Garmin, hoy me he encontrado que no le daba la gana de arrancar, por mucho que pulsaba el power no respondía y justo lo había quitado del cradle donde había pasado algunas horas y aparecía el mensaje de carga de batería finalizada. Aún poniéndolo de nuevo en el cradle no arrancaba hasta que he hecho un soft reset: Para hacer un soft reset del Garmin hay que dejar pulsados unos instantes el botón Mode y el botón Lap simultáneamente.

¿Qué versión de Linux utilizo?

Hay muchas formas de saber qué versión de linux estás utilizando, prueba con alguna de estas: cat /etc/*-release cat /etc/*version cat /proc/version cat /etc/issue "Lo dejo aquí anotado porqué soy flojo de memoria para este tipo de cosas :)"

¿Funciona el Office en Mac?

Esa pregunta me resulta, realmente, odiosa. Es una de las típicas preguntas del usuario de PC que piensa migrar a Mac pero está preocupado por las compatibilidades. Si la pregunta fuera acerca de cualquier otro software no me molestaría tanto pero... precisamente ese... permite  que me justifique: Estaremos de acuerdo en que, Microsoft Office, es uno de los mejores productos de los que haya lanzado Microsoft. Su calidad se ha ido manteniendo actualización tras actualización desde 1989.

IP's que usa Facebook Open Graph

Queremos desarrollar una funcionalidad en nuestro proyecto web que intereactua con Facebook mediante el protocolo Open Graph. Facebook nos ofrece una herramienta de Debug para validar que, las entradas OG de nuestro site son las esperadas. Con añadir nuestra url en esa herramiento podemos ver un interesante informe. Cuando lanzamos cualquier tipo de acción desde nuestro site, desde el clásico "me gusta" a las más elaboradas "Custom Actions"

Google Drive ofrece hasta 16TB de espacio

Desde hace unos días corría por la web un rumor que decía que, Drive, podría ofrecer hasta 100Gb (pagando por ello, claro está). Justo veo que han actualizado su web de contratación de espacio. Cómo podéis ver en la captura, Drive ofrece hasta 16TB de espacio por 800$ al mes. Una verdadera animalada!. Dropbox ofrece hasta 1TB en su cuenta Teams por el mismo precio. Considero los precios de google muy competitivos además, gracias a su funcionamiento, es una alternativa muy interesante para compartir archivos.

Cómo borrar tags de Github

Si por ejemplo deseo borrar un tag llamado "1.0-stable-php-5.2" Borro en local: git tag -d 1.0-stable-php-5.2 Borro en el repositorio: git push origin :1.0-stable-php-5.2 Atentos a los dos puntos delante del tag al hacer el push. Actualización: He escrito el artículo dos veces, el original aquí: http://www.harecoded.com/borrar-tag-github-u-remoto-1612712 :P

Saltar a página siguiente en direcciones secuenciales

En muchas ocasiones, en un sitio web nos encontramos una url del tipo: http://url.ltd/path?id=XXXX Donde XXXX es un identificador. En ocasiones este identificador es la página que estamos viendo y, en otras, el id del propio elemento. Imagina, por ejemplo, una lista de perfiles de usuarios, donde el id fuera secuencial. Si quisieras verlos todos tendrías que ir cambiando este número o volviendo a la lista de usuarios y haciendo click en el siguiente.

Autocompletar hosts al escribir ssh en la terminal

Esta mañana mi compañero Borja me ha enseñado un pequeño truquito para olvidarse de los bookmarks en la terminal. Se trata de autocompletar el comando ssh con los hosts conocidos. De este modo, cuando escribes ssh en la terminal puedes darle al tabulador para que sugiera o escriba el resto de host por ti. Ejemplo: Existen múltiples maneras de hacer esto, leyendo configs con puertos y otras barbaridades, pero esta es realmente simple y efectiva y sin duda la que más me gusta.

Cómo borrar un tag de GitHub u otro remoto

No resulta muy obvio cómo se pueden eliminar los tags de Github. Incluso hay algunos tutoriales por ahí que no funcionan. Estos son los dos comandos que utilizo yo únicamente para borrar los tags que pongo y quito en el proyecto de SIFO en Github. El listado de tags del repositorio local se puede sacar fácilmente usando el comando git tag, por ejemplo: artomb@petekaner:~/htdocs/sifo$ git tag sifo-1.9 sifo-2.1 sifo-2.2 stable-php-5.2 stable-php-5.

Contar veces que se pide una URL (y las que no es esa URL)

Hay veces que queremos saber cuántas veces se ha pedido una URL en nuestro servidor y Google Analytics o otro servicio de monitorización basado en Javascript no está disponible. Entonces siempre podemos recurrir a la fuente original de datos, los logs de acceso (esos gran incomprendidos y frecuentemente abandonados) de Apache, Nginx o donde sea. Si por ejemplo queremos saber cuántas veces se ha pedido la página /abc.html en el mes de febrero (2012_02) y tenemos los logs segmentados por día, será tan sencillo como lanzar un: grep -c "

Merge Json files

With this small script you could merge some json files in a new one in json validated format.  The script uses each file name like array key. Look the example: file1.json: {"array1":["elem1","elem2","elem3"],"array2":["elem1","elem2","elem3"]} file2.json {"array3":["elem1","elem2","elem3"]}   Whit our script you could run: php merge_jsons.php file1.json file2.json > merged_jsons.json   Now you can open merged_jsons.json and look this: {"

Convert a CSV to JSON with PHP

Imagine a data list dumped in a plain text file (e.g: CSV) and you need to convert it to JSON format. You could use this simple php script to do such task. It's the simplest version but from here you can customize it to fit your requeriments. Usage: php script_name.php file_to_convert.csv > result.json The script: $csv = file_get_contents( $argv[1] ); $csv = explode("\n", trim($csv) );

Activar y cambiar los colores de la terminal + Prompt

Ya uses iTerm, Terminal o cualquier otra herramienta en Mac, para ver y tunear los colores de tu terminal basta con editar el fichero ~/.bash_profile e incluir lo siguiente: export CLICOLOR='true' export LSCOLORS="gxfxcxdxbxegedabagacad" Y conseguirás algo parecido a esto: La primera línea activa los colores, la segunda dice qué colores usar. Cuando guardes el fichero y abras de nuevo la terminal ya verás los colores. Si no te gustan siempre puedes poner los tuyos usando esta referencia: a black b red c green d brown e blue f magenta g cyan h light grey A block black (gris oscuro) B bold red C bold green D bold brown (amarillo oiga) E bold blue F bold magenta G bold cyan H bold light grey x color por defecto Además, puedes cambiar la apariencia y modificar tu prompt añadiendo a continuación en tu .

Cómo hacer un sparse checkout en Git

Si quieres hacer clone de un proyecto parcialmente y no llevarte todo el árbol es muy sencillo. Si todavía no tienes los ficheros es tan sencillo como: Crear una carpeta e inicializar Git Activar sparse checkout Decirle qué carpetas queremos Añadir el repo remoto Traer los ficheros con pull Traducido en un ejemplo y sus comandos, pongamos que queremos descargar el fantástico PHP framework SIFO.

Move a SVN repository to Git with the whole commit history

It is in your mind, like a worm that eats away the apple, "I have to switch to Git". And one day it happens and you realize that it was not that diffcult. I started using Git as my local repository, but still using SVN as the central repository with git itself thanks to the git svn set of commands. After some time I decided to entirely move the vast majority of projects from SVN to Git but of course not by creating a new fresh and empty repository but importing the whole svn commit history, as if the commits were made using Git itself ten years ago.

Upload an existing Git repository to a remote GitHub, Bitbucket, Beanstalk...

These are the steps I followed to upload my existing local git repository to a new Bitbucket repository while keeping the whole commit history. You can use this simple steps to move your source code to GitHub, Beanstalk or any other repository you like, commands are just the same. I put as example Bitbucket because you can have unlimited private repositories for free. How to do it... Register to bitbucket for free, add your SSH key, and create an empty repo.

Instalar PHP 5.3 en CentOS

Me tienen contento! Hace muchísimo que deberían haber incluído la versión de PHP 5.3 en los paquetes php por defecto de CentOS, pero parece que se van a quedar con la 5.2 hasta el fin de los tiempos. Ofrecen la versión 5.3 como un paquete separado (php53), lo que implica desinstalar PHP y librerías asociadas para reinstalar la 5.3 con este paquete distinto (incompatible con el anterior claro). Así que, no pudiéndome aguantar más y con mono de namespaces, funciones lambda y toda la pesca, he migrado mi CentOS 5.

Synchronize your VIM configuration across different machines

If you are a Vim user, chances are that you also work with several machines, and you spread the same configuration over them. I do share my vim configurations between Windows, Mac and Linux and store the same configuration for all the environments in my Dropbox folder. The idea is to have a central place where I can manage all my Vim installations, and then link it. Easy as that.

GMAIL: Bulk deleted emails based on date

When I created my gmail account, there was a counter giving you everyday more space. They "sold us" the product as if you never had to delete email again. By looking at that counter it seemed that by now I should have more than a Terabyte of data, truth is that after many years I have less than 8GB. Although it's a lot of space for the email, if you have automatic notifications, reports, and so on.

Conectar por SSH sin password (autenticación de clave pública)

Para conectar a un servidor remoto por SSH sin usuario ni contraseña todo lo que hace falta es compartir una clave entre cliente y servidor. Los pasos son muy sencillos: Asegurarse que la carpeta .ssh existe en el servidor al que nos queremos conectar Crear una clave RSA en la máquina cliente (la que se conecta): ssh-keygen -t rsa Cuando se te pida por un password, dale al enter sin poner ninguno (este es el propósito del artículo, sin passwords) Copiar la clave pública en el servidor:

Comando `tree` para Mac

Existe una utilidad llamada "tree" en Windows y Linux que sirve para ver un listado de directorio en un formato ASCII un poco más agradable a la vista. Si no quieres bajarte los MacPorts para esta pequeña utilidad lo más fácil es crear un script de una línea y enlazarlo en /bin para poder llamarlo directamente. El comando en cuestión es este: find . -print | sed -e 's;[^/]*/;|--;g;s;--|; |;g' Ahora, para utilizarlo a troche y moche basta con pegar su contenido en un fichero en cualquier ubicación.

Delete keys by pattern using REDIS-cli

I do store a lot of statistical data in Redis, storing information on what users do and behave every day, week, month and so on... But storing a huge amount of data in memory has a little drawback: memory is cheap and fast, but is finite. From time to time (e.g: cron job) I need to clean up the house because there is too much memory filled that is no longer interesting to keep it.

How to backup your full Flickr account (script)

Why you would like to copy all your images stored at Flickr to your computer? Well, maybe you want to browse them later offline, maybe you want to stop paying your PRO account, or to keep them just in case... In any case, Flickrtouchr is a simple command-line script to backup Flickr. You don't need to know python or programming at all. A couple of lines in the Terminal and that's it.

Cómo cambiar la extensión a múltiples ficheros desde terminal (unix shell)

Para renombrar la extensión de muchos ficheros a la vez en la terminal, se puede hacer con la siguiente línea: for file in *.phtml ; do mv $file `echo $file | sed 's/\(.*\.\)phtml/\1tpl/'` ; done Esto cambiaría todas las extensiones phtml por tpl del directorio en que lo lanzéis. Cambiando la parte en negrita por vuestra extensión favorita ya funcionaría. Lo que hace la línea es buscar todos los archivos que cumplen la condición *.

Writing complex regular expressions

Regular expressions are usually hard to read and understand. Even if you have a lot of experience in the subject chances are that when you revisit one of these that you wrote some time ago, it is very difficult to catch up. Several days ago, a very smart guy at work named Zoltán, recommended us to write complex regular expressions sepparating each logical part in a different line and also comment every single line.

No funciona el pulsómetro o GPS del Garmin Forerunner?

Tengo un Garmin Forerunner 305 GPS que utilizo para salir a correr. Un día el pulsómetro dejó de funcionar correctamente, primero empezó a espaciarse el ritmo de los latidos hasta que finalmente (en un par de días) el reloj no llegaba ni a sincronizarse, problema: no detecta los latidos del corazón. Si que detectaba sin embargo los pulsómetros de mis amigos. para añadir más elementos a esta fiesta, uno de estos mismo amigos, tenía un problema con el GPS:  El dispositivo Garmin GPS no detecta los satélites.

Cómo revertir los cambios de una revisión en SVN

Si eres usuario de subversion te habrá pasado alguna vez que después de hacer commit y probar posteriormente el código has visto que debes volver a una versión anterior y dejar el código tal y como estaba en una versión anterior. No todos los clientes gráficos disponen de la opción de "reverse merge", pero en la terminal es muy sencillo de hacer... Imaginemos que en la revisión 1190 subí unos cambios que hicieron el código inestable y deseo dejar el código tal y como estaba en la revisión 914, entonces haría:

How to create a patch and apply it with subversion

If you want to create a patch with svn you only have to type in the terminal something like: svn diff yourproject > yourproject.patch Where yourproject is the folder containing the modified source code. Then, to restore the patch (apply the changes stored in patch in a new working copy), copy the patch file yourproject.patch in the machine where you want apply the patch and "

Las mejores series de tv (2011-2015)

Me encanta ver un par de capítulos de alguna serie antes de ir a dormir. Con el tiempo he visto un montón de ellas, desde grandes tramas como Breaking Bad a series para simplemente echar unas risas como Modern Family.  A continuación muestro un top de mis series favoritas, algunas de ellas todavía en curso y otras que han finalizado para no volver nunca jamás. No significa que sean las mejores del mundo, sinó de las que he visto las que más me han gustado.

Ocultar los ficheros .svn de la web

Si utilizas subversion para trabajar y tienes un checkout en tus carpetas públicas de la web es peligroso que la gente pueda navegar a través de tu directorio oculto .svn, ya que puede contener información que comprometerá la seguridad de tu site. Prueba a acceder a http://tuservidor.com/.svn para ver si es tu caso. Para denegar la visita de los ojos curiosos (error 403) y que nadie pueda entrar, en el apartado virtualhost de tu Apache incluye esto:

Exportar una consulta de Mysql en un fichero CSV

Si tienes una tabla o consulta que quieres exportar a CSV tienes dos maneras muy fáciles de hacerlo. La primera es dentro de la consola mysql utilizando después del SELECT la opción INTO OUTFILE. Esto escribirá en el fichero externo que indiques el contenido de la consulta. La segunda opción es desde la propia línea de comandos utilizando la opción "Batch". Diferencias entre método 1 y 2: El primero permite especificar la terminación de las líneas en el csv así como si quieres comillas en cada campo.

Best distraction-free writing programs

I am not a writer, but as many other mortals a lot of times I need to write long documents or put my ideas alltogether. For anyone who works with a computer and needs to write text in a non-distracting environment these tools will be very useful. These programs usually are full-screen and only let you see the text you are typing, and usually plain text (without any formats). It might sound simple or even ridiculous, but I am more productive when I stop receiving notifications and being tempted of clicking on that little red number showing unread email or any other procastinators.

Get the absolute path in a bash script. Linux and BSD/Mac

¿Have you ever needed to get the absolute path to a script in a bash script? Here I explain how to set in a variable the current absolute path to the executed script and to its folder as well. When it comes to development I work under Mac, but when I publish my work I do it usually under Linux. It happens sometimes to me that I create bash scripts that don't work in one or the other system.

Musica online gratis y sin anuncios

Desde hace ya bastantes meses vengo usando Grooveshark. Un servicio de streaming que te permite escuchar la música que quieras de forma gratuita, que a diferencia de Spotify en su versión gratuita no ponen cortes publicitarios, cosa que se agradece enormemente. Grooveshark solo muestra un banner en un lado del reproductor web, por lo que se puede dejar abierto en segundo plano y seguir con otras cosas. Hoy he descubierto además PlayListNow, un servicio que ofrece música en función de lo que estés haciendo en ese momento.

Instalar PHP 5.3 en MAMP

Actualización: La nueva versión de MAMP ya trae PHP 5.3 por lo que ya no es necesario hacerlo a mano. Bájate la última versión! Hola, A día de escribir este post MAMP viene con la versión 5.2.11 de PHP por lo que no se pueden utilizar muchas de las funciones interesantes que tiene la nueva versión, yo concretamente quería utilizar funciones de fecha como DateTime::createFromFormat() y los namespaces. Para solucionarlo he hecho lo siguiente

Pasar enlaces Youtube a un punto de tiempo específico

Muchas veces pasamos enlaces de Youtube donde la parte interesante no llega hasta cierto punto. Puedes pasar a tus colegas el enlace para que salte directamente a un minuto y segundo que tu quieras. Si por ejemplo quieres que un video empieze en el minuto 1 y el segundo 2 tan sólo tienes que añadir al final: #t=1m02s Delante de la m los minutos y delante de la s los segundos.

"Unicomp Customizer" mechanical keyboard review

Among all the facts that remind me that I am getting old, one of them is chatting with other fellows about the technology we were using back when we started working at our first jobs. It has been 16 years since then in my case, and I sometimes find myself talking about how it was like working with a 386 and 4mb of ram, typing lots of text in such a fantastic wordprocessor as it was Wordperfect, switching from Windows 3.

Reset iTerm preferences to default

If you have messed up your iTerm application preferences you can aways return to the factory settings by deleting your iTerm preferences file. Just delete the following file: rm ~/Library/Preferences/net.sourceforge.iTerm.plist This will delete your profiles, very useful when you have remapped keys and you can't remember how to go back.

Restore broken hard disk creating an image with Ubuntu

If your boot partition has been damaged and you cannot boot Ubuntu you still might be able to recover your hard disk and save your data by making an image. All you need is the Ubuntu LiveCD and Partimage, an excellent tool for making backups, or the SystemRescueCD. Here you'll find a detailed explanation on how to use partimage as well: http://www.psychocats.net/ubuntu/partimage

Instalar Memcache en Mac

Instalar el demonio de memcached en Mac no es tan complicado como parece siguiendo estos sencillos pasos. Primero de todo asegúrate que tienes todos los requisitos Requisitos para instalar Memcached Un compilador GCC. No te asustes! Viene instalando las XTools de Mac si es que ya no las tienes Descargarte el script de instalación desde topfunky Instalación del servidor Memcached Abre una terminal i navega hasta la ruta donde te has descargado el script.

TortoiseSVN for Ubuntu Linux: The real alternative

I have posted several articles regarding subversion in this blog. If you ask me one thing I like in Windows, then I only have one answer: Tortoise SVN client. This small application is the only thing I love in Windows, for anything else, I'd rather user Mac or Linux. But now, there is a Linux alternative to Tortoise SVN called RabbitVCS. I've tried it and it works pretty well. This project, formerly NautilusSVN, looks really well and is inspired in the windows tool.

All ISO-639 language codes for MySQL

If you ever needed a mysql table with all the languages detailed in the ISO-639 language codes, here it is. I took the list from the registration authority and created the table in Mysql. There are 21 languages that have alternative codes for bibliographic or terminology purposes. In those cases I took the bibliographic ones. The script contains the 2 and 3 letter ISO-639 language codes, as well as the English and French names of the languages.

Fill: Smarty PHP plugin to fill variables in string (sprintf brother)

Today I quickly created a plugin for Smarty to fill variables inside a string (subject) using the passed parameters as variable names. I use this specially while constructing URLs because my addresses are translated and they "subjects" are always variables. This plugin does nearly the same you could do with the sprintf modifier, but I placed this behaviour inside a function. The "subject" defines the string containing the pattern to be filled and containing the vars to be filled, and the variables are any string surrounded by your preferred delimiter (defaults to %).

Teclados mediacenter para el comedor

Actualmente dispongo de un ruidoso PC de DELL con la última versión de Ubuntu que utilizo a modo de media center en el comedor de casa. Estoy contentísimo de como funciona, pero para manejarlo tengo uno de los teclados más grandes de la historia (uno de esos que tienen botones hasta para tirar de la cadena del baño remotamente) junto con otro ratón que me desespera al uso. El teclado no lo puedo perder porque es grandioso, pero el ratón lo pierdo casi a diario (además que funciona realmente mal), asi que harto de la situación me dispongo a buscar una teclado con ratón/trackpad integrado para el comedor (también debería cambiar el PC por un Mac Mini, menos bulto y más majo, pero eso ya es otro tema).

Evitar que se abra iTunes al conectar el iPhone o Ipod

Esto es una chorrada, pero si sincronizas tu dispositivo con más de un ordernador y te interesa que al enchufarlo no se abra el iTunes hay que seguir estos sencillos pasos (esto vale para Windows y Mac): Enchufar el iPhone (o iPod) al ordenador En el iTunes, en el menú de la derecha, hacer click en el dispositivo Quitar la marca de la casilla "Sincronizar automáticamente al conectar este iPhone"

Dirty Twitter

Fuck! I can't believe there is a service out there that filters all the world tweets and presents only the dirtiest ones... The offender site is called Cursebird, and that is his job plus it does it well. So we all will have to watch our sayings more than ever...

non-RDBM distributed databases, map/reduce, key/value and cloud computing

I've been playing recently with several distributed databases with the aim of choosing the best solution for my needs. Since there isn't much documentation on the web with a general overview on the subject, I write here some comments, thoughts and my humble experience. Hope it's usefull for you, this document is not a comparison of performance, or a "mine is bigger than yours",  just some ideas ;) My background

Cómo reproducir ficheros .RMVB en Ubuntu

Los ficheros .rmvb no se pueden reproducir por defecto en Ubuntu, esta extensión es para los de tipo RealMedia Variable Bitrate, pero instalando los códecs de Mplayer los podrás abrir sin problemas. Lo primero que debes instalar, aunque no sea intuitivo es la librería libstdc++5, para hacerlo o bien abre Synaptic ( Sistema -> Administración -> Gestor de Paquetes )  y haz doble click sobre libstdc++5 o ejecuta en la terminal:

SVN merge for Mac OS X

If you want to merge branches in your projects using a Mac OS X, you'll probably miss how straightforward is to do that with the TortoiseSVN client. Mac has many SVN-fashioned clients where you can fall in love when you see the GUI, but when it comes to do a merge it seems that all they have forgotten to include support for it. I haven't seen any free or comercial application for Mac that integrates all the subversion commands in the same tool without pain.

"ipconfig /flushdns" para Mac OS X

Desde el lanzamiento de Mac OS X Leopard (de esto ya hace unos cuantos días) que ya no funciona el comando lookupd -flushcache que utilizábamos para invalidar la caché de DNS de Mac. Este comando, que era el equivalente mac de ipconfig /flushdns de Windows ahora se ejecuta usando: dscacheutil -flushcache Lo dejo aquí anotado porqué soy flojo de memoria para este tipo de cosas :)

Spotify, escuchar música online. Competencia de Last.fm

Llevo unos días probando Spotify, gracias a una cuenta beta gratuita que me dió mi compañero de trabajo Rufino . Para quienes no hayan oído hablar de Spotify es un reproductor de música en streaming (es decir, la música no está en tu ordenador, sino en sus servidores). Hay que bajarse el programa, que de momento está disponible sólo para Mac y Windows (Linux a través de Wine). La aplicación promete mucho (no he probado la de pago), pero lo que se se puede hacer con la versión gratuita incita a usar el programa en su forma completa.

Borra 10 amigos de Facebook y llévate una Whopper gratis

Sí, sí, como los has leído. Sacrifica 10 de tus amigos en Facebook por una hamburguesa. Así de absurdo. Hoy me encuentro en un artículo de CNET que los señores de Burger King han lanzado una campaña de márketing viral que consiste en instalarse una aplicación de Facebook y borrar 10 de tus amigos. La han bautizado Whopper Sacrifice, y según parece, al acabar el sacrificio te dan un cupón válido para una Whopper gratis (un cupón por cuenta Facebook).

El fin de las fotos movidas en el iPhone, con Darkroom

Se acabó que las fotos del iphone salgan movidas! Si tienes un pulso tan bueno como el mío te habrás encontrado más de una vez que haces varias tomas de fotografías y siempre te sale la foto desenfocada o movida. Pero tu tienes paciencia y tiras la misma foto 40 veces hasta que sale bien. El simple hecho de pulsar el botón de fotografiar hace que esa mínima presión nos mueva el objetivo y adiós foto.

El todo o nada para Palm: presentación de Nova en el CES de 2009

De todos es conocido que Palm, la inventora del concepto pda que por tanto tiempo dominó el nuevo mercado que tan bien supo crear, atraviesa por una situación muy, muy difícil después de varios años de ir a la deriva. Tras un sistema operativo excelente pero inestable y vetusto (PalmOS) que no ha sabido renovar en 5 años, una línea de smartphones Treo legendaria pero que ya no puede con la competencia y fiascos como el Foleo, Palm lleva dos temporadas sobreviviendo a base de sacar el enésimo smartphone Treo con Windows Mobile, inferior a los demás en diseño, tamaño y prestaciones.

Shoutcast para iphone/ipod touch, espectacular app de radio por Internet

  Ya tengo mi primera app esencial para iphone/ipod touch de este año 2009: Shoutcast. Se trata de una de las mejores aplicaciones de radio por Internet (junto a last.fm), ofreciendo más de 25.000 emisoras de todo el mundo y con una interfaz de usuario fantástica para interactuar con ellas. Con tantas emisoras, no es nada difícil encontrar aquel tipo de música que busquemos para un momento dado: por ejemplo, buscad 'turk' y Shoutcast os ofrecerá al momento un montón de emisoras de radio turcas, tanto las más comerciales como aquellas perlas en forma de música étnica del país.

La actualización de software de Mac se cuelga

Ya es la segunda vez que el sistema operativo me dice que hay nuevas actualizaciones disponibles y que necesito reiniciar el ordenador, y cuando lo hago, la barra de progreso se detiene mientras está "Configurando la instalación". Para salir de ahí tengo que cerrar a lo béstia (dejar pulsado unos segundos el botón de encendido). Pues bien, según parece el problema es que los ficheros de actualización descargados están corruptos o incompletos y basta con borrar todos los contenidos de la carpeta /Library/Updates.

Incluir programas externos en Eclipse, Dreamweaver, VIM o Notepad++

Es muy útil incluir otros programas o macros propias dentro de los editores que utilizamos cada día para desarrollar. A veces necesitamos validar nuestro código con otro programa, ya sea lanzándolo en un navegador determinado, pasándolo por un script propio, etc... En mi caso particular tengo un conjunto de scripts que verifican que el código sigue unas determinadas reglas de formato, de este forma el código siempre sigue unos determinados patrones.

Más herramientas para Textmate

Siguiendo la línea lanzada por Albert, vamos a ver un par de nuevas herramientas que nos facilitarán todavía más el uso de Textmate. "Open in Textmate", abrir en Textmate desde el Finder Se trata de un icono/lanzador muy útil para colocar en el omnipresente Finder, mediante el cuál podemos abrir cualquier fichero/directorio en Textmate. Sólo hay que arrastrar el fichero (o grupo de ficheros) o directorio/s encima de este nuevo icono, y automáticamente se nos iniciará Textmate usando la selección que le hemos pedido.

Textmate: Plugins de PHP, Smarty y Subversion

Textmate es sin duda uno de aquellos editores para Mac OS X de los que hacen quitarse el sombrero. Como muchos otros editores, Textmate también soporta plugins (Bundles les llaman) y se pueden instalar un montón de ellos. Para los programadores y webmasters que trabajan con PHP hay dos Bundles de especial utilidad: los que permiten Autocompletion para Smarty y Autocompletion para PHP. Para instalarlos simplemente hay que ejectuar en una terminal:

Subversion (svn) 1.5 para Mac OS X

Si utilizas distintos sistemas operativos y en ellos utilizas versiones distintas de subversion te habrás encontrado alguna vez con el mensaje de error: svn: This client is too old to work with working copy '.'; please get a newer Subversion client Si eres usuario de Mac y te ha pasado esto, o simplemente necesitas un cliente svn 1.5 para mac puedes descargarte la última versión de SCPlugin que ya incluye soporte para la 1.

Iphone europeo libre y sin permanencia con Symio

Parece que los señores de Simyo (del que ya hemos dicho alguna cosa) están vendiendo en su portal los Iphone liberados al módico precio de 599€ Esto va a ser divertido: Veremos lo que hace Movistar al respeto y como empieza el carrusel de precios de iphone segunda mano. De momento parece que symio no le está dando demasiado bombo... Yo seguiré con mi teléfono antediluviano, pero para el que tenga ganas de gastar: https://www.

Grabar y ejecutar macros en Vim

Quizá VIM sea un editor para freaks, no lo vamos a discutir, pero la verdad es que bien conocido nos puede ahorrar mucho tiempo en hacer las tareas diarias. En este post, explicamos rápidamente como grabar una macro y reproducirla N veces. Si por ejemplo queremos eliminar de un listado de ficheros de un proyecto las imágenes, podemos hacer algo como: q (Con esto entramos en modo de grabar)

GnomeDo: Quicksilver/Launchy para Gnome (Linux)

Si hace ya mucho tiempo hablamos de Katapult, un lanzador para KDE, ahora damos el turno a Gnome, con el GnomeDo.  Al igual que en Quicksilver, se pueden descargar varios plugins interesantes que amplían las funcionalidades básicas del programa, que no son simplemente limitarse a abrir documentos y programas tecleando parte de su nombre. Lo que más me gusta de estos programas (sin duda el mejor, la versión original de Mac, Quicksilver) es como uno se olvida de navegar por los menús y los sistemas de ficheros.

Calidad de servicio de Symio. Ranking operadoras movil

He estado en todas las compañías de teléfono móvil que hay disponibles en este país (bueno, la del Carrefour y la de Pepe no las probé). Con todas he tenido algún problema: Problemas de facturación excesiva con Movistar, publicidad no solicitada aún estando dado de baja de este "servicio", Vodafone que me cobra a números que no llamo, accesos a internet que no realizo (en tramos perfectos de 1h a las tantas de la madrugada), falta de cobertura en Orange, publicidad no solicitada otra vez, mensajes de números de alta tarificación, llamadas nocturnas para venderme una moto.

Borrar muchas fotos en Flickr

Parece que los amigos de Flickr no lo han puesto fácil si quieres eliminar un álbum entero... Hoy me he encontrado que quería borrar más de 400 fotos y me ha costado un ratito ver cómo se hacía, ya que la opción de Eliminar Álbum no borra las fotos, sólo la agrupación, y hacerlo de una en una, pues... como que no. Así que para hacerlo: Entra en organizar En la barra de navegación del pié, selecciona el álbum que quieras borrar Arrastra las fotos que quieras al área central Desplega el menú de arriba del todo Editar fotos Eliminar Si borras muchas fotos el proceso puede ser bastante lento.

Cómo mover un proyecto en Eclipse

A veces necesitamos mover un proyecto de una unidad a otra, o de un volumen a otro, ya sea que estamos en Windows, Linux o Mac. Tenemos configuradas muchísimas opciones, como los workspaces, las carpetas ignoradas, librerías externas, codificación, etc, etc... y no queremos pasar 2 horas más redefiniendo. Así que deja de hacer la danza del fuego y bailar descalzo sobre las brasas, no es difícil si tienes unas pocas cosas en cuenta.

¡Hola Nexoblogs! Ya estamos aquí.

Harecoded lleva varios años online contando historias relacionadas principalmente con la tecnología, combinando artículos en español (los menos)  y en inglés. Hoy hemos dado un paso adelante y migramos nuestro antiguo sistema wordpress al gestor de contenidos OboLog, formando parte de la red de blogs Nexoblogs. De esta forma, pasamos a formar parte de una gran comunidad y aprovechamos las fantásticas funcionalidades que ofrece OboLog. Con este cambio, aprovechamos para publicar el nuevo diseño y nos marcamos como objetivo publicar más artículos en español ya que nexoblogs es una red de habla hispana.

How to watch and record TV with a PC Ubuntu linux

Catalan speakers see: "Com veure la TV amb Ubuntu" There are many alternatives when we speak of media centers, but I can't figure out anything other than a computer. It offers all the functionallity you could want in a well-known interface. That's why I have a PC in the living room, I browse the Internet using my TV (using an HDMI cable) and now I record stuff when I am not at home.

Automatix for Ubuntu 8 is dead

Today I read on the GetAutomatix Forum that Getautomatix for Ubuntu has been discontinued. That's sad news since we were all pretty used to it. Everything outside-the-box was installed with a single click and was a great improvement for the end-user experience. Now I can only hope that someone will resume the development with a new project. These guys are now working only for the distro Pioneer Warrior. The original message by the authors is:

Gestión de la batería en Macbook, con SmartSleep

Si quieres ahondar más en el ahorro de energía de tu mac, en vez de de conformarte con las opciones por defecto del sistema, puedes instalar SmartSleep.prefPane. Una utilidad que te permite configurar qué debe hacer el ordenador cuando está inactivo, pero teniendo en cuenta la batería restante.  Si por ejemplo a tu portátil le queda un 20% de batería probablemente querrás que el ahorro sea el máximo, mientras que cuando está por encima preferimos algo menos de ahorro y no sufrir los continuos apagones.

Exitazo de la primera PHP Barcelona Conference

Pues sí, el sábado 23 de Febrero celebramos la primera PHP Barcelona Conference, y fue todo un exitazo: de participación, de organización (no se nos descuajaringó la agenda), las instalaciones (Bocanord) eran fantásticas así como los medios que pusieron a nuestra disposición; la mejor sala del complejo, un equipo de proyección de cine y buena voluntad a raudales. Por mi parte, quedé muy contento con mi presentación "Optimización de aplicaciones PHP - Client Side"

Primera Barcelona PHP Conference

El Sábado 23 de Febrero tendré el placer de realizar una presentación en la Primera Barcelona PHPConference. La verdad es que alegra (y acojona) que haya tenido tanto éxito de participación... ¡Nada menos que 150 asistentes en la primera convocatoria! Estoy seguro que nos lo vamos a pasar fantásticamente, haremos bastantes contactos a nivel personal y profesional y podremos sobre todo vernos las caras algunos de los que estamos en este mundillo del PHP por estos lares catalanes.

File List: Utilidad para renombrar ficheros en lote para Mac OS X

De la mano de Many Tricks nos llega esta excelente utilidad gratuita para renombrar archivos en lote llamada File list. Nos permite hacer las tareas básicas de renombrado de ficheros, como cambiar la extensión, cambiar mayúsculas/minúsculas, añadir un número secuencialmente en los ficheros, reemplazar las apariciones de un texto, hacer tareas de ordenación o crear nuestras propias expresiones regulares... y siempre nos permite previsualizar el resultado final antes de hacer "

Moving to a Macbook core 2 duo

I have owned 5 laptops for the last 6 years, which are a lot of laptops if you ask me... From a Toshiba Satellite with DSTN screen, going next to an IBM Thinkpad 600x and owning only macs since then: Powerbook G4 550 titanium, Powerbook G4 1Ghz 12" and, since yesterday, a shinny (second handed) Macbook 2 Core Duo. All those machines were bought second handed and sold consequently. I have been lucky enough with all of them to never consider buying a new (from stores) laptop.

Good news for Christmas

Well, this has not been a good year overall for me, but it seems it might end a little better than it started... FIATC, my burned car's insurance company is doing a straight good job, so I will get a fair compensation for my car's lost, hopefully over the next week. Hurrah! Now that it seems 70% of the cash invested in my poor 2 years old Honda Civic is going to be restored, I am looking for some candidates to choose the car that will drive my ways everyday.

Burned out

Sadly, the subject of this post is not related in any way to the console game. Following is the actual state of my beloved car (as of beautiful, useful and non problematic), a 2005 Honda Civic which always worked like a charm. The Civic was correctly parked in front of my house when yesterday at 3am the car next to him started burning and the flames took by assault my car as well: this is known as the "

Installing Firefox 3 beta on Ubuntu Gutsy, with Firebug!

If you want to test the Firefox 3 new features on your Ubuntu Gutsy installation, but don't want to loose all the Firebug niceties for developing web apps, here are some quick and dirty steps: $ sudo apt-get install Firefox-3.0 (upgrades/downgrades to kernel 2.6.20... weird!)  Go to the Fireclipse site and download Firebug-1.1.0b10.xpi. This is a modified version from the firebug original, compatible with Firefox 3.  Open Firefox 3, install the xpi by drag & drop to the firefox window.

Are you addicted to all things Apple?

Here you are a survey regarding addictness to Apple... I have only scored 56%, but I know I can make it better :-) 56%How Addicted to Apple Are You? We actually have at home an iMac 20", powerbook 12", ibook G3 13", ipod touch, ipod nano 2nd generation, ipod 4g 20Gb... It sums up 6 Apple items. I know we are in the middle low range of Apple fetishers, so... How many Apple products do you own?

Linux web development. Test web sites in Internet Explorer inside Linux

IE: We hate it, but our customers don't know anything else... So, we must test how Internet Explorer renders our websites. It's a bit unpractical to boot from another partition, or change your machine for testing. There are a couple of useful practices: Install a Virtual Machine for Linux, such as Virtualbox with a windows XP in it Install IE5, IE5.5 or IE6 as a linux standalone application with IEs4Linux I have a Windows XP with 128MB RAM for Internet Explorer 7 testing inside my VirtualBox for linux.

Recovering space on an iphone or ipod touch

When you decide that it is worth to risk your ipod touch's warranty in order to install a vast number of third party apps, you are sure to end filling up all the space dedicated to the ipod operative system. This ain't good for a lot of reasons: you won't be able to install new software and some will fail (as of YouTube not being able to create its cache files).

Quicksilver goes opensource

The excellent launcher (and much more) Quicksilver that Mac users have been using for so long has been opensourced. This is great news, since more developers can join the product and improve it and extend it. My hope is that someone will make a cross-platform version, or other projects like Launchy or gnome-launch will add more features thanks to quicksilver knowledgebase. The code can be reached via Google Code.

ipod touch first impressions, a great experience so far

A few days ago I said: ipod touch, I'll pass on this one. Can you guess what happened next? Well, it is pretty obvious... I bought one. I was extremely happy with an ipod nano 8Gb I bought 2 weeks ago, but a colleague of mine came to the office with a shinny new ipod touch, bought at the Apple store. One touch that had no TFT contrast problems, one touch jailbreaked with lots of apps, one touch with a terminal, ssh access and even an ebook reader.

Nautilus subversion integration tool. Execute SVN commands with Gnome scripts

I have been using subversion (svn) for years from the command line... But some months ago I changed my job and I started using windows environments. And I must admit TortoiseSVN is the best GUI SVN client i've seen ever before. While my needs are satisfied in Windows with TortoiseSVN and in Mac OS X with SCPlugin and SvnX, I was lacking a subversion tool to manage my files while exploring files in my Ubuntu (nautilus file explorer).

Upgrade to Ubuntu Gutsy not so smooth and udevd 100% cpu usage

I upgraded my dell computer at work from Ubuntu Feisty to Ubuntu Gutsy, but I have to say that this time the upgrade went far less smoother than previous ones. The process halted the computer at some point in time, I had to start it up again, and in the end I lost all my compiz - beryl configurations (3d desktop, effects), which I have not been able to recover by now.

Automatic keylock for windows mobile smartphone edition

I'm having some fun testing a Samsung i600 (a.k.a. Blackjack) windows mobile smartphone edition. I will probably sell it to someone else who has more respect for Microsoft software, but the Samsung hardware is top notch nonetheless, and I'm liking the device more and more. Samsung tries very hard to disguise windows on this mobile, and the result is very good, frankly. Just like Nokia's Symbian 3rd edition mobiles, this Samsung i600 comes with no automatic keylock, which is INSANE.

Como se formatea un Samsung SGH-i600v

Para formatear un teléfono (hard reset) samsung sgh i600v como los que proporciona Vodafone, hay que hacer un ejercicio de dedos muy interesante. Primero de todo apagar el teléfono, y a continuación pulsar simultáneamente TODO esto: Arriba Ok (si tienes un dedo gordo pues ya están estos dos) Número 0 Botón volver (el del lateral debajo de la rueda)  Sin soltar todo esto dejar pulsado el botón de encendido (igual necesitas un pié)  Te saldrá un mensaje con una tipografia de dudosa seriedad indicándote que presiones el número 1 si quieres seguir con la broma.

Ipod touch, I'll pass on this one

Last week I sold my 30Gb ipod video for a bargain prize, just anticipating the shinny acquisition of a new generation ipod. I was never very happy with the ipod video anyways, being the main gripe its short battery life, which could only handle 2 hours of video playback and no more than 10 hours of music. I was never able to abstract from this issue, always observing the battery meter on the screen.

Overburning script for Mac OS X, Record large films in Mac

If you use the Finder burning tool to create your CDs, or an application that doesn't support overburning (surpass a little bit the CD or DVD maximum size) I am sure that some time you got anrgy. Sometimes are films, sometimes it's just one more song in the CD library you are creating... The thing is that you have 703MB and you cannot burn a 700MB CD. It won't happen again!

XRAY: Bookmarklet para desarrolladores web

Hoy he descubierto XRAY, un bookmarklet que funciona para Firefox, Safari, Camino o Mozilla y que permite ver las propiedades de un elemento de la pantalla haciendo click sobre él. No es para nada comparable a FireBug o el Safari WebKit pero puede resultar igualmente interesante. Por su naturaleza de bookmarklet, no es necesaria ninguna instalación, sólo hace falta arrastar el vínculo que ofrecen desde la web a la barra de herramientas del navegador.

Spartans and their laconic phrases

From the Wikipedia: A "Laconic phrase" is a very short or terse statement, named after Laconia, an area of modern and ancient Greece. Laconians focused less on the development of education, arts, and literature. Some view this as having contributed to the Laconian characteristically blunt speech. The Spartans were especially famous for their dry wit, which we now know as "laconic humour" after the region and its people. This can be contrasted with the "

Amazon S3: un servicio bueno, bonito y barato pero nada práctico.

Recientemente compré (y luego cancelé) una cuenta de Amazon Simple Storage Service (Amazon S3). Un espacio de almacenamiento virtual, digámosle un disco duro, a un precio muy competitivo. Con S3, pagas tan sólo lo que usas. En dos conceptos diferentes: por espacio que consumes al mes, y por peticiones que recibe el servidor. Para hacernos una rápida idea de los precios, si tenemos que almacenar unos 10GB nos costarían 1,5$ al mes.

Screencast: Cómo capturar tu escritorio Linux en una película

Si quieres grabar una película para enseñar al mundo lo que estás haciendo en tu escritorio Linux, necesitas recordMyDesktop, una aplicación que te permite capturar la sesión en formato video utilizando los formatos abiertos OGG Vorbis y theora. Aunque se puede utilizar desde la línea de comandos también están disponibles dos versiónes gráficas (GTK y PyQT). Si utilizas la versión 7.04 de Ubuntu (Fesity) puedes instalarlo usando el comando:

Google Desktop for Linux

As a mac user at home, I've depended for a long time upon Spotlight to find stuff in my computer. Not the perfect solution, but at least does the trick. As an Ubuntu Linux user at work, I tried Beagle a long time ago but it was too unstable for my tastes... and never came back. Now comes along Google Desktop for Linux, with a lot of politeness and power. Hurrah!

How to convert MP3 to AAC, or how to set MP3 as ringtone in your mobile phone

As if I were a teenager, yesterday I found an mp3 song that I hadn't heard in maybe ten years and a smile came to my face when I imagined that it could be played in my mobile when I need a loud tone (I am on of those who preffer having it silent all the time) So I passed the MP3 directly to the mobile but it failed, the mobile can play it but can't be set as ringtone.

Subtle differences between Safari for Windows and Mac?

I have tested Safari for Windows during ONE minute, but I think I have seen it all.... While I was testing a layout in progress for a new site (appareantly was working in all browsers) I found a subtle difference.... Nothing to worry about, though (sorry for the small image): Shame on you Apple!

Introspección gadgetera

A raíz de unos artículos (1 y 2) muy interesantes del compañero Serantes, 'gadgetero' e inductor de compras donde los haya, me he puesto también a pensar en mi relación con los aparatos electrónicos que pueblan mis estanterías y mochila... Viene a ser una excusa cualquiera para autoanalizarme, para realizar una introspección aunque sea sólo en esta pequeña parcela de mi vida. Como David, realizaré un breve análisis donde colocaré en dos zonas bien diferenciadas los dispositivos electrónicos que uso en la actualidad:

Servicios web basados en REST

Os dejo un enlace a un fantástico artículo de mi compañero Oriol Jiménez sobre servicios web basados en REST. Desde luego, cómo se agradece cuando la gente no se limita a postear sobre un tema a la ligera, sino que en cambio se moja y dedica unas horillas de su vida a explicar con todo lujo de detalles lo que considera de interés para los demás.

A fantastic rss reader: readermini.com

I have been searching for a good rss reader since I switched my Nokia N800 for a Nokia 770, as the latter doesn't come with a default application for handling news feeds. And since I had already found a truly perfect image viewer, this became the last software I needed to complete what was a fantastic mobile computer by the way. I am a big fan of Google Reader, to the point that I stopped using Netnewswire, one of the best Mac OSX apps in my opinion.

Cómo reiniciar o resetear un ipod colgado

Si se te ha colgado el iPod (la pantalla se ha quedado encendida y no responde a nada) tienes que seguir estos pasos: Bloquearlo (pestaña hold) y desbloquearlo Mantener pulsados el botón central (el del medio) y el menú a la vez por almenos 6 segundos A mi hoy me ha funcionado :) El artículo original de apple aquí

Basic and simple iptables configurations for home users

OpenBSD has been always my prefered distribution when I have to install a firewall based on a *NIX machine. The PF rules are what I am used to see. But last year I had to write several configurations for a debian machine using iptables which I am not really used to. Since I tend to forget these things, I paste here a basic configuration, if you want to use it, paste this in your desired starting script.

Comentarios a la presentación de Steve Jobs en la Apple WWDC 2007

Las expectativas respecto a las novedades que Steve Jobs iba a desvelar ayer en la conferencia para desarrolladores de Apple que tiene lugar estos días eran tan altas que parece que algunos se han quedado con mucha hambre todavía... hambre de hardware. Y es que Steve presentó durante largo rato el nuevo Mac OSX Leopard y habló al final de la sesión de ciertos aspectos del iPhone (que en breve se comercializará en EEUU), pero dada la gran cantidad de rumores respecto a nuevo hardware que habían estado circulando los últimos meses por la blogsfera mac, parece que se quedó bastante corto.

Un slogan desacertado?

Hoy he entrado en la web de apple para consultar precio del dock del iPod y me he econtrado con esto:  Aunque en el site de apple debajo del slogan hay una imágen clarificadora con dos portatiles a diferente resolución de pantalla es inevitable que a todos nos venga a la cabeza la competencia. O es que soy yo que tengo una mente sucia? A ver lo que dura :)

Browsing MySQL databases inside Eclipse without having a local mysql server or client

EclipseSQL is an aid to people programming with databases. Allows to make queries, browse tables, change structures and all the common operations performed in databases. This is how it looks like: The application can be downloaded as a standalone (screenshot) although since I am using eclipse to develop PHP (PDT plugin) and Java code, what I find more interesting is the plugin version. By installing the plugin another "View" called SQL is available, where you can browse the databases.

Why I Changed my brand new Nokia N800 For a 770 (and something more)

Nokia had a relative success selling the first incarnation of its Internet tablet concept: the Nokia 770. Quietly and without much advertising, the company managed to grab the attention of a lot of geeks (mostly in the Linux domain) who quickly saw a device full of software hackabilities (a.k.a. possibilities). That is exactly the level of attention that Palm pretends/needs to make the Foleo the start of a successful line of products, but if they do not opensource its.

De conferencias con una Psion 5mx

Hace unos días tuve la oportunidad de asistir a la PHP Conference 2007 spring edition celebrada en Stuttgart, Alemania. Dada la experiencia de conferencias anteriores, sabía al 100% que no quería llevar un portátil a las sesiones... Lo he hecho otras veces y odio tener que arrastrar los kilos de tecnología a todas partes para usarlos sólo en contadas ocasiones. Pero sobre todo, odio la dependenia que provoca de los enchufes.

Automatic code formatting for PHP in your editor or CVS/SVN

PhpCodeBeautififier is a free tool for PHP programmers that formats PHP files to get a nice presentation and keeps the programmer sanity. We all programmers have our own way of representing code lines, but when the code is shared amongst many programmers it has to be formatted following some conventions. PhpCodeBeautifier allows you to specify those patterns you'd like to follow and it will format every file for you. The idea is simple, you continue on being that little unchangeable typer and delegate the "

Quicksilver substitute for windows

Some time ago I published an article about an application similar to quicksilver in Linux. Now, after changing my job to another company and being forced to use Windows, the first thing I did was looking for a launcher to quickly open documents and applications. The result was a skinnable program with a simple interface called Launchy . It's free. With that app, I open a new category in this blog called Windows: I would never believed that i were going to do this :| Enjoy Launchy.

Difficult to implement a GTD system on PalmOS... too many choices!!!

These last days I am trying to be very serious about implementing GTD on my Treo 650. This is something that I have been wanting to do for quite some time, but I have been delaying as it demanded to sit for a while and start playing with different strategies to find a system that suits my needs and makes me comfortable with the organizational burden. There are several applications on Palm devices that can help us with this GTD implementation: outliners (shadow plan, bonsai comes to mind), project managers (progect), wiki apps (note studio), time managers (Datebk), plain vanilla apps (Palm To Do, Calendar, Contacts), etc.

A free good cross-platform CSS editor

There are many applications where you can edit your Cascading Style Sheets (CSS) in Linux, Windows or Mac, but specifically in my Ubuntu I haven't found an application like CSSED (GTK). It supports auto-completion, really useful wizards, color pickers, preview and a long etcetera. You can go directly to the download page and see specific instructions for Gentoo, BSD, Mac OS X (via Fink), Windows ... or if you are an ubuntu or debian user just type in a terminal (or through the synaptic manager):

Como conectarse a internet con un móvil symbian y Ubuntu

En un artículo anterior hablábamos sobre cómo conectarse a internet con un móbil nokia 3G y macintosh. Esta vez, nos conectaremos desde un linux (Ubuntu 6.10). Primero de todo el móbil tiene que estar bien configurado para hacer de módem. Estos pasos son los mismos que ya hemos explicado anteriormente, en cuanto a Linux, para no andar instalando más software del que viene por defecto usaremos el programa wvdial. Manos a la obra.

Your Logitech webcam in OS X

Tired of chatting or using Skype without video? For all of us who didn't have an Apple's iSight camera it's possible to use almost any PC USB webcam with Macam. Macam is a driver for USB webcams on Mac OS X. It allows hundreds of USB webcams to be used by many Mac OS X video-aware applications. Macam installation is very easy, you only have to copy the Macam component under /Library/Quicktime in your system.

Gmail en Nokia e61

Hace tiempo que no publicaba, pero os aseguro que esta vez ha sido por una buena causa... estoy configurando mi nuevo gadget, un Nokia e61, que finalmente y por lo que estoy viendo va a conseguir una cosa impensable... ¡desterrar de mi vida los dispositivos PalmOS! Falta muy poco para que eso ocurra, un par de aplicaciones no más, pero ya no hay vuelta atrás :-) Prometo hacer un review más adelante, cuando tenga una base estable de aplicaciones instaladas, ya que no quiero publicar la enésima versión del artículo "

Cómo conectarse a Internet con un móvil symbian vodafone y OS X

Si te quieres conectar a internet utilizando tu móvil Vodafone via blueetooth (también es posible hacerlo vía infrarrojos, aunque es más lento que el caballo del malo) aquí van algunas observaciones antes de que te empiezes a tirar de los pelos: Asegurate que tu móvil tiene acceso a Internet En el menu del móvil dirigete a: Herramientas » Ajustes » Conexión » Paquetes de datos » Punto de acceso. Aquí debes tener airtelnet.

Passion & progression

Please, let me allow myself to take this graph out of context and publish it here with a slightly different meaning: Without passion, there is no way to excel on anything in this life.

How to disable the opening of XTerm when you start X11 on OS X

Some applications like OpenOffice II, in OS X, run under X11 platform. Due to this, when you open this type of applications the X11 environment starts, opening by default XTerm terminal. To avoid this behaviour you have to edit, by hand, the init file of X11. This file is placed under /etc/X11/xinit/xinitrc and the only thing you have to do is to comment the line where it starts XTerm, that is#xterm

Xubuntu: I've lost the menu!!

Don't panic! It seems to be common to lose the right-button menu when you open the menu editor (I had a 'Segment violation' error). To recover it, open a terminal, and type: cp /etc/xdg/xfce4/desktop/menu.xml ~/.config/xfce4/desktop/menu.xml That's all. If you have problems because the directory doesn't exist, create it first: mkdir ~/.config/xfce4/desktop

RSS Readers: NetNewsWire free alternative

I've tried several free RSS readers but the commercial NetNewsWire always seemed better to my opinion. Recentlly, I discovered Vienna which could be a great substitute. Tab navigation, smart folders, styles.... I'll give it a long try :)

Comments closed

Fed up of deleteing spam, I decided to disable comments for a while. I will open only comments on a few posts.

Essential applications for Mac OS X

Recently I installed from scratch a couple of machines, and as long I were needing my applications I generated this list of essential ones: Quicksilver Free. Quicksilver is a launcher. When you call Quicksilver through the key combination Ctrl+space and you start typing, it suggests an application, document or file that contains that letters you typed in any place. Then you can open it, send it by email, reveal it on Finder and a long long etc.

Ubuntu: Play mp3, extract RAR files, install the java plugin... and much more

Recentlly I posted on How to play mp3 with ubuntu and now I am posting how to do it again but also: How to install the Java Plugin How to install the Flash Plugin How to play windows videos RealPlayer Extract RAR files, ACE files and 7-Zip files Enable the Num Lock at system startup Install microsoft fonts and much much more... The solution arrives by installing EasyUbuntu

A little Ajax library that makes a difference

It is a typical situation in the web developing arena that when a new technology emerges so strongly as Ajax or the so called Web 2.0 have done, programmers tend to use it to their last consequences. So we may go from a nearly 100% server side-processing-with-pages-refresh paradigm to establish multiple HTTPRequest petitions on every little interaction between the visitors and our application, to better serve their user experience. But as some people have warned us before (on uk.

Quicksilver for Linux

Quicksilver is for me the most useful application in the OS X environment. Few days ago someone shown me the same concept ported to Linux: Katapult. It's a long way to walk for Katapult to become as much powerful as Quicksilver is, but it gives to Linux users a very useful functionallity. Despite Katapult is a KDE application I've been running it in Ubuntu (Gnome) without trouble. If you want to install it (ubuntu): sudo apt-get install katapult In the picture you can see how I started typing "

How to play MP3 with Ubuntu

It's usual to find many distributions without MP3 support due to licensing issues. If you have MP3 files and don't know how to play them do the following: Open the terminal Type sudo gedit /etc/apt/sources.list Remove comments to packages (This is erasing the # characters in lines starting with ##deb) Save changes and close gedit Update the packages sudo apt-get update Install the mulitmedia codecs: sudo apt-get install gstreamer0.

Palm universal keyboard y sus malos drivers

Ya ha pasado más un mes desde que destrocé la pantalla de mi Tungsten C en un muy desafortunado golpe que tuve contra una pilona anti-coches, en lo que estaba siendo un agradable paseo por la zona comercial de Dublín. No me di cuenta de las consecuencias del golpe hasta que llegué al hotel, pero nada más encender la pda ví que la cosa no tenía solución. Consultando el servicio técnico de Palm a través de su web encontré que una sustitución de pantalla la cobran a unos 180 euros, prácticamente lo que cuesta otra TC en el mercado de ocasión (que de hecho es de donde la había adquirido).

Obfuscate e-mails in PHP

Exactly one year ago, I was complaining to one of my clients ISP about the increasing volume of spam those people were receiving lately. The ISP answered me with some not particularly useful advices, except for one: they had inspected my client's website and had found that the contacts section had a list of clean e-mail addresses, happily standing there to the delight of some spammer's spider bot. I had put them there in the good-old format mailto:dontphunk@withmyheart.

Ubuntu doesn't come with sshd by default

I've been stuck to Mandriva (formerly Mandrake) as my preferred Linux distro for over 2 years with a positive experience while testing dozens of different distros all that time. Today is one of those days and I decided to switch to Ubuntu (just to see what's out of the Matrix) My first suprise with Ubuntu is that didn't come with the SSH server service installed, essential for me since I transfer files using SFTP.

Going to the cinema is fustrating...

Audience in cinemas has fallen in the last year... myself included. The prices are too high, there is a lot of advertising before the film (as if it were public TV) and usually lacks of cleaness and silence.... A funny article to read by James R. Stoup

Happy new year 2006!!!

All the harecoded team want you to have a happy new year 2006 full of peace, health, love, money and... more geekery :)

Spirited Away

With Sprited Away [author, MacUpdate] you specify the maximum time of inactivity for your applications. When a program has been inactive for such a time it is automatically hidden by spirited away, so you don't have many annoying windows visible on the screen. If there is any application you don't want to behave like this you only have to exlcude it in the top bar menu (See right image) Spirited away doesn't have Dock icon nor interfere visually in any other place

I've lost my del.icio.us inbox entries

This morning del.icio.us was down for maintenance. Some hours after I went back to my inbox to read my daily colleagues entries... BUT NOTHING WAS THERE!! I had a lot of them... Are they going to appear again? Update (dec, 19): del.icio.us worked for a while but now there is an odd message: Due to the power outage earlier in the week, we appear a number of continued hiccups. We've taken everything offline to properly rebuild and restore everything.

Increase the ibook display resolution with a 2nd monitor

When you plug an iBook 12" to an external monitor you get two duplicated screens. As they are duplicated, the maximum resolution is imposed by your iBook, this is 1024x768 pixels, no matter your second monitor can do 1600x1200. I bought an iBook 12" because it's really portable and lightweight, but for intensive work, a 1024x768 pixels resolution is absolutely not healthy . We need a solution! That's how i'd like to work:   iBook LCD TFT Monitor Usable screens Before solution 1024x768 1024x768 1 After solution 1024x768 1280x1024+ 2 In order to remove duplication to let your 2nd monitor work with freedom you have to make some changes in the System Preferences/Screens panel, under the tab Align.

Desktop interface elements... unite!

I am one of those who prefer desktop interface consistency rather than having every couple of applications with different interface looks, depending on the gui framework they are built upon. Variety is the spice of life, but not on a computer desktop, please. Mac OS X has always 'suffered' from this diversity of gui presentations, like the rest of Unix variants, and Tiger is even worse. We have some metal apps (Finder, Safari, .

Mandrake: adding RPM repositories from your local disk

Adding a local folder to the urpmi database is easily done using the urpmi.addmedia command. If this folder is filled with RPMs that you got from somewhere when you attempt to run urpmi.addmedia, an hdlist.cz file will be searched. If you don't have this file the addmedia will fail. To solve this little problem, open a shell and generate the hdlist.cz: # su # cd /path/to/RPMs # genhdlist

Installing and configuring PostgreSQL server on Mac

You can use the Fink package system to install postgresql if you are already using Fink (inside a terminal: sudo fink install postgresql and then configure the server). OR you can install postgresql, with the clean solution offered by Marc Liyanage. I prefer the 2nd option. If you also choose that, follow carefully the installation instructions and you'll have PgSQL working in minutes. If you'd like to have 2 scripts for manually starting and stoping the database create the files:

Installing PHP5 on Mac OS X [1 minute]

Autumn is the worth conferences season for us. It seems that every autumn brings the interesting subjects and this November we (Manuel and myself, Albert) are attending at the PHP Conference 2005 held in Frankfurt, Germany. Last year was the Plone Conference 2004. Since we are a couple of sick men, when we assist to a software conference we need to take with us a laptop (mac os x) having pre-installed the matter.

U*Blog: blog posting from the pda

U*Blog is a fantastic application for publishing content in blogs from your palm device. It quickly shows it is well thought out, with clear functionalities and uncluttered interface. And best of all, it is freeware. U*Blog supports MovableType, Metaweblog and Blogger API compliant bloggers, which covers pretty much all the systems out there. This is my configuration for posting to a wordpress blog: Name: harecoded Type: MovableType User: myuser Pwd: mypwd Host: www.

Real statistics on your site using AWStats

It is surprising how much information you can get from your readers activity. I like asking my server what country you come from, how much did you stay in the last visit, how did you arrive here, what is the most viewed page, how much bandwidth I am wasting, what spiders are coming in, what keysearches made you arrive here, why am I getting 404 errors.... and a long long etcetera.

BloGTK :: Update your weblog from your desktop

BloGTK is a weblog client that allows you to post to your weblog from Linux without the need for a separate browser window. This means that you can forget the Wordpress administration area (just to give an example of weblog) BloGTK is compatible with many blogs using the XMLRPC. When configuring the application you only have to pass the absolute path where your xmlrpc file is and start writing. So now you can work offline and when you finish writing the post, simply click on the "

Configuració de Mac OS X per veure el programari en català

A la versió Tiger del sistema Mac OS X no es va incorporar finalment el sistema operatiu en català. Tot i aixó, hi ha programari de tercers que està localitzat al català. Per veure'l en el vostre idioma peró, cal que feu una sola vegada les instruccions que a continuació us proporcionem. Si ja us sentiu molt cómodes amb el mac, i per no fer-vos esperar més, cal que entreu a les preferències del sistema / internacional i escolliu el català com el primer idioma de la llista.

Grouping folders on Finder

If you are using Finder it is possible to group all the folders instead of have them separated by the 'name sort' effect by doing a little hack. Open finder and go (press Option+G to go directly) to /System/Library/Frameworks/ApplicationServices.framework/ Versions/A/Frameworks/LaunchServices.framework/Versions/ A/Resources/Spanish.lproj (text wrapped intentionally fo fit the page) and change Spanish.lproj by your used language. Then drag and drop Localized.strings to your favorite text editor and add in the translation of "

How to disable annoying security warnings in Safari

In order to forget the annoying security warning in Safari after every application download, you should install Taboo and paste this in a terminal: defaults write com.ocdev.taboo ShouldDisplaySecurityWarnings -bool NO

Installing X11 on Tiger

If you need X11 on Tiger for running applications like OpenOffice, WingIDE... you'll need the installation DVD or image. Mount it and install the package: System/Installation/Packages/X11User.pkg It's also available when you install Tiger under the advanced option, but hey,don't waste more time looking for a download on apple site, the Panther days are over. Stop surfing the net. There is nothing to download. Go look on your shelf for the installation DVD and there you'll find the X11User.

Migrated to Wordpress

This site has been moved from Textpattern to Wordpress, the templates system has been completely rewritten. The appearance of the site is nearly the same and minor changes have done. The blog has started!

About us

Manel Aguilar and Albert Lombarte met back in the studying days. Although they took different paths in life after computer studies they have found themselves sharing companies a couple of times. They work now as managers but despite not being very much in contact they keep sharing different web projects, and of course, same interest in gadgetry, apple stuff, spanglish perfectioning, beer consuming, just to mention some of them. They live in Barcelona, Spain where they enjoy an excellent climate with their wives and kids.

Script for compressing files with gzip within the terminal with date

This is a simple bash script to compress in tar.gz (gzip) format a file or folder appending date to file name. Save this file as gzip.sh and give it execution permissions. From terminal i could be: chmod 755 gzip.sh This script does the following: Checks if you passed exactly 2 arguments Compresses your source Adds the date on the resulting filename Optionally changes permissions of your filename (uncomment line chown and put the desired user:group) Script: #!