giovedì 29 maggio 2014

Latex - Reference capital title

While writing an latex article one issue that I faced regards the bibliography.
In particular, I was looking for a way to include a multiple reference such as [1-4] with the dash in the middle. To do that I found out two options:

  1. \usepackage[numbers,sort&compress]{natbib} % multiple reference
    That works but it has a small issue. I noticed that the "reference" title was written in lower case, left-aligned and not anymore in capital at it was before including this package.

    or
  2. \usepackage{cite} % for multiple references with the dash as separator
    This was the answer I was looking for.  
By the way to write multiple references:
\cite{ref1, ref2, ref3, ref4}

Another small hint. While writing:

\begin{thebibliography}{number}
*
*
\end{thebibliography}

the number represents how many \bibitem  entries you want to include. If this number if less than the real entries you will have a space formatting issue. 

Hope it helps.

giovedì 3 aprile 2014

Matlab function to c++ (one tip)

I'm not going to describe how to transform the MATLAB function to c++ code, there is a nice video that already explain how to do it, what is not explained is what  to do when you get an error while your typing the Matlab command
>>coder
??? Undefined function or variable 'coder'.

Struggling to understand what was the problem after a while I found out that was my Matlab version,
>> ver
-------------------------------------------------------------------------------------
MATLAB Version 7.9.0.529 (R2009b)
MATLAB License Number: xxxxxxxxx
Operating System: Microsoft Windows Vista Version 6.1 (Build 7600)
Java VM Version: Java 1.6.0_12-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
-------------------------------------------------------------------------------------

By installing a new version of Matlab
>> ver
---------------------------------------------------------------------------------------------
MATLAB Version: 8.2.0.701 (R2013b)
MATLAB License Number: xxxxxxxx
Operating System: Microsoft Windows 7 Version 6.1 (Build 7600)
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) Client VM mixed mode
---------------------------------------------------------------------------------------------

The problem is gone.
Hope this helps.

sabato 8 marzo 2014

Ranking '98 (Radio Onda Cero - Marzo 2014)

Soy un gran seguidor de la radio Onda Cero1. Cuando en las mañanas tengo que trabajar me encanta escuchar esta radio. Para mi que estoy en Europa es un horario excelente porque escucho con tranquilidad el "club 90" al aire desde las 4 a.m. hasta las 6 a.m. hora peruana.
El sabado 8 Marzo 2014 (feliz dia a todas las mujeres ^^ ) ha sido mandado en onda el ranking de el año 1998.
No estoy tanto deacuerdo con este ranking pero' bueno gustos son gustos no?
Personalmente me gustan mas las que hey marcando con "!".
Les dejo la lista (casi) completa2, espero les guste.
25 - Shakira - Ciega sordomuda !
24 - Chichi Peralta - Ciguapa
23 - Brother Louie (feat. Eric Singleton) - Modern Talking
22 - Enrique Iglesias - Cosas del amor
21 - Backstreet boys - Everybody
20 - Christian Meier - Quien sabe
19 - Fool's Garden - Lemon tree ! (dance remix version)
18 - Chayanne - Lo dejaria todo
17 - Space Girls - If you wanna be my lover
16 - Leon Gieco - Ojos con los Orozco !
15 - Dj Factoria - El chocho loco (remix version)
14 - Backstreet Boys - As long as you love me
13 - Fito Paez - El amor despues del amor
12 - Ilegales - Sueño contigo 
11 - Modern Talking - Cheri cheri lady
10 - Ricky Martin - Vuelve
9 - Nek - Laura no esta
8 - Chichi Peralta - Procura
7 - Batucada n2 - DJ Dero
6 - Alejandro Sanz - Amiga mia !
5 - Soda Stereo - Musica ligera !
4 - Ricky Martin - La copa de la vida
3 - Celine Dion - My heart will go on (with movie dialogues) !
2 - Modern Talking - You're my heart you're my soul
1 - El Chombo - Los Cuentos de la Cripta Parte 2

Les dejo tambien una playlist de youtube de estas canciones.

1 - Web Radio Onda Cero - Link
2 - La numero 7 era imposible de entender, era una cancion brasileña sin palabras. - gracias a blasterjaxx fernando por el link.

============================================================
Mas canciones en este link de youtube, canciones randoms de club 90 Onda Cero Peru'.
Gracias a blasterjaxx fernando por el link.