Category Archives: Salt and pepper

From everything a little.


Out of the night that covers me,
Black as the pit from pole to pole,
I thank whatever gods may be
For my unconquerable soul.

In the fell clutch of circumstance
I have not winced nor cried aloud.
Under the bludgeonings of chance
My head is bloody, but unbowed.

Beyond this place of wrath and tears
Looms but the Horror of the shade,
And yet the menace of the years
Finds and shall find me unafraid.

It matters not how strait the gate,
How charged with punishments the scroll,
I am the master of my fate:
I am the captain of my soul.

publication list bibtex style (bst)

I needed to create a publication list for my dissertation. I wanted it to include the abstracts and be sorted descendant by publication date.

There is already an abstract.bst file that outputs the bibliography items with abstract, but it sort them by author. So that messed up my file, because I wasn’t the first author in all these publications. There is also a plainyr-rev.bst that sort the bibitems by year. So I combined them both to have a descendant-by-year-abstract-included output. This is the Bibtex Style File for Publication Lists with Abstract (descYrWithAbst.bst).

I use BibDesk to mantain my bibtex database. I created a Smart group that contains all the entries where I am an author. I have the tex view in the bottom panel, and in the BibDesk’s Preferences, I modify the Tex template like this:

\usepackage{url, gensymb} % include packages according to your needs
\title{Publication List}
\author{Juli\'an Villegas}

This method is convenient because it can be used to generate an well-formed HTML file without all the curly braces and such those the BibDesk includes. I’m using SimpleTeX4ht to generate the HTML file. The ‘Publications‘ page of this website was generated that way.

Hope it helps!

Mac Os X Snow Leopard and MySQL

I upgraded Mac Os X to the version 10.6.1 and I found that my mysql database stopped working, This is how I fix it:
Open a Terminal and type
sudo ln -s /usr/local/mysql-5.0.51b-osx10.5-x86/* /usr/local/mysql

Then, look for the MySQL icon in the System Preference panel and click it. Let it reopen (as the message says), and that’s it. Mysql is running as it was before upgrading the operative system.

Hope it helps.

Wanderlust for empowerment

I came across this website ( and I found it interesting. Although  it seems that these girls are just starting the website, I liked it because the posts are all related to what we can do to make a social change and are well written. In their words “ is a place to join in on the journey towards establishing social awareness within society.”

Go Girls!!!

printing password protected PDF files

Recently I needed to print a PDF file that I created a while ago. It happens that I put some stupid printing restriction and I couldn’t remember the password. After doing some research, I found that I didn’t need to pay for expensive software to override the password. This is what I did with ghostscript:

gs -sDEVICE=pdfwrite -sPAPERSIZE=a4 -sOutputFile=fileWithoutPassword.pdf -dNOPAUSE -dBATCH fileWithPassword.pdf


change according your needs…

Problem with Time Machine after changing boards

After changing the motherboard of my MacBook I needed to reset the configuration of Time Machine. I found this link very useful:

Summarizing you need to :

$ su -

$fsaclctl -p /Volumes/YourVolume -d
$ mv .theOldOne .theNewOne
$ xattr -w theNewOneWithSemicolons Backups.backupdb/YouMacName
$ fsaclctl -p /Volumes/
YourVolume -e

restart your laptop.