Running Mendeley 0.9.8 on Fedora 14 (x86_64)

Mendeley is a combination of a desktop application and a website which helps you manage, share and discover both content and contacts in research.

The Desktop version offers automatic extraction of document details, management of your papers with full text search, sharing and synchronization, among other features. The website provides an online backup of your library, a variety of statistics about your research behavior, a research network and a recommendation engine for papers that might interest you.

When I discover this application I thought it was awesome and wanted to use it for my own research needs. However, every time I tried to install it on my fedora (first fedora 13 and now fedora 14) I was presented with some problem: sometimes I couldn’t even start the application because Mendeley was unable to load libssl, although the library was packed with Mendeley Desktop for Generic Linux. When I was finally able to fix the problem linking the version of  libssl installed in the system, the application wouldn’t start due to a compatibility problem between the system’s libssl and the Qt libraries packed with Mendeley so I had to download the latest Qt for my system and remove the packed libraries in order to finally run application. However, there was another problem, I could explore my local library and add new papers but couldn’t synch that information with my account on the website… and it was like that for a long time, until today, when I decided to look for a solution again and this time I found it. Continue reading

Install Firefox 4 Beta 2 on Fedora 13

Mozilla just released Firefox j 4 Beta 2 with a cool set of features and I want to test it. I installed the first beta manually in my desktop pc running Fedora 13, but I was wondering if there is a better way. Fortunately, there is one: you can install Firefox 4 Beta 2 using Remi’s repo, here is how:

First you need to configure the repo, so you need to run the following snippet as root

[codesyntax lang=”bash”]

[/codesyntax]

Then you can install the beta release of firefox using:

[codesyntax lang=”bash”]

[/codesyntax]

You may need to anser ‘Yes’ to the question about if you want to import the GPG key for the repo. And… that’s all. now you can see for yourself what Firefox 4 Beta 2 can do.

Finally, this is not an update of the firefox package you probably already have installed, it only adds another entry to your Applications menu allowing you to run the new versión of Firefox.

You can see more information in Remi’s post and Remi’s repo configuration page.

Get height of a hidden element using jQuery

It’s known that hidden elements doesn’t take space in the document unless they are not really hidden but invisible, using visibility:hidden.

Sometimes you need to know something about a hidden element before you actually show it, let’s say the height property of a DIV element. You can easily get that property value making the element displayable but invisible, that way the element would take space in the document and you can get the height or any other property value that isn’t available while the element is hidden.

The following code is a small jQuery plugin that takes a function as argument. The plugin clones a jQuery element, make it displayable but invisible, then inserts the clone right after the original element, executes the function on the context of the cloned element and returns the function result. The clone is removed from the DOM after the passed function returns.

To solve the problem of the height property I explained above you could use the following code:

[codesyntax lang=”javascript”]

[/codesyntax]

How to add a GMail filter for multiple accounts

Let’s say you want to filter messages sent to [email protected] and [email protected] and apply the ‘MyCompany’ label to those messages. You may think that typing the following in the ‘To’ field of the filter will work:

[codesyntax lang=”text”]

[/codesyntax]

but it doesn’t. It doesn’t work with ; either.

In order to add multiple addresses to the filter you have to separate them with a | or wrap them in parentheses and use OR as the separator. The following are working examples:

[codesyntax lang=”text”]

[/codesyntax]

[codesyntax lang=”text”]

[/codesyntax]

The same can be applied when searching email.

Deshabilitar WP-SynHighlight en el contenido mostrado en los feeds

WP-SynHighlight es un plugin para WordPress que permite mostrar codigo fuente con sintaxis resaltada en el contenido de los posts. Este plugin hace uso de GeShi para resaltar el código y por tanto soporta todos los lenguajes soportados por GeShi.

Hoy estaba revisando como se ven los posts  en este blog cuando son leidos desde un  FeedReader como Google Reader o Liferea. El problema con resaltar el código con una solución del lado del servidor como WP-SynHighlight es que no importa como se acceda el contenido, WordPress siempre va a incluir en la respuesta una cantidad de elementos HTML con el mero objetivo de mejorar la presentación. Creo que cuando un usuario está leyendo el contenido a través de un FeedReader está mas interesado en la estructura y el contenido, no tanto su presentación, de otro modo iría directamente a la fuente. Así, enviar contenido con código fuente resaltado a quienes usan FeedReaders me parece innecesario porque a) sin las hojas de estilo utilizadas en el sitio fuente el contenido no aparece realmente resaltado y b) los elementos HTML que antes permitían resaltar el código ahora dificultan que el lector lo manipule: un simple copy-paste da como resultado código mal formado y numeros de línea entre las linea de código. Vea como evitarlo…