Report inadequate content

Mac, Tricks in Harecoded


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.

After downloading and uncompressing the .py script all you need is to:

Create a directory, e.g: A folder called "Flickr" in your Home dir:

mkdir ~/Flickr

And then call the script:

python ~/Flickr

After this a browser will be opened and Flickr will ask you to authorize Flickrtouchr, and that's it!

Now maybe you want to add this line to your crontab so you can run it periodically. The script will check if the files exists to prevent continuous download.


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.


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!

Because I did a script to overburn CDs and DVDs, and it's quite simple if you want to try it:

  • Save the following script inside a file with your prefered text editor or from the shell
  • Give it execution permissions
  • Create a folder named contents_to_overburn that will contain your overburned CD/DVD stuff
  • Copy anything you want to burn inside the folder
  • Execute the script from the terminal, so you can see what's happening, with: ./
hdiutil makehybrid -o tempfile contents_to_overburn/
hdiutil burn tempfile.iso
rm tempfile.iso
rm contents_to_overburn/*

At this point you have the CD burned and the folder emptied for a next use. Hope that works for you, enjoy. This script can be improved or even integrated with the OS X environment easily. If you feel like doing it, please share :)

See the Apple developer page for hdiutil for more information.


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. Rapidly browsed my default existing tones and I saw some AAC files, and I thought to myself... Isn't iTunes importing CD's by default in AAC format? .... and YES

So if you want to set as ringtone one or several mp3 files, open iTunes and go to:


and select Import using: AAC codec

Then select all the files you want to convert and select the menu:

Advanced -> Convert selection to AAC

Now you can send the converted files to your mobile via bluetooth/whatever, save the file, and set it as ringtone :)

NOTE: That works for my old but useful Nokia 6630 with GPS and TomTom. I don't know much about which manufacturers are accepting AAC format, maybe your mobile is even accepting MP3 directly as ringtone.


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:

  1. Asegurate que tu móvil tiene acceso a Internet
  2. En el menu del móvil dirigete a: Herramientas » Ajustes » Conexión » Paquetes de datos » Punto de acceso. Aquí debes tener Sin esta línea no conectarás.
  3. Ahora en tu mac, abre las Preferencias del sistema » Blueetoth. Selecciona tu móvil y pincha el botón Configurar (o pulsa sobre configurar nuevo dispositivo si todavía no lo tienes vinculado)
  4. Elige Acceder a internet mediante la conexión de datos del teléfono » Opción 2: Utilizar una conexión directa (GPRS, 1xRTT) tal y como se muestra en la imágen:
    detalle conexión
  5. Proporciona estos datos de conexión: Nombre de usuario: vodafone Contraseña: vodafone Cadena CID GPRS: *99***1# En el desplegable de script de módem, si tienes un teléfono nokia, lo más probable es que sea Nokia infrarred. Si tienes un modelo no soportado o un teléfono de otra marca que tampoco tiene un script de módem que funcione puedes mirar de descargar más scripts de y copiar los ficheros en /Library/Modem Scripts
    detalle conexión
  6. Con esto ya tendrías que poder conectarte (a un precio de escándalo), para hacerlo, vete a Aplicaciones » Conexión a Intenet
    detalle conexióndetalle conexión

Este procedimiento ha funcionado para un Nokia E61 y un 6630


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:

Starting script (

su postgres -c "/usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l ~/postgres.log start" (line wrapped)

Stop script (

su postgres -c "/usr/local/bin/pg_ctl -D /usr/local/pgsql/data stop" You need execute permissions in these scripts [by chmod 755] and you can invoke them with ./ and ./ commands within the terminal. Note that the postgres password will be prompted.