Sunday, 25 May 2008

Adieu, my crappy bike

This last days haven't been plenty of good news. Nothing horrible, fortunately! At first, I had my £80-worth dodgy bike stolen. Not a big loss, for the bike itself was a failure, but it hurts having something unfairly taken away. It hurts less than the first time, though. Now, I already bought on-line a proper lock, for it was partially my bad, and my toy-lock one's, if the thief considered it was so straightforward to steal the bike that it was worth doing within the college premises, under the eye of a (useless) CCTV. As soon as it arrives, I'll decide which bike to buy next (possibly new, since now I fear to aliment the stolen bike market by buying a used one).

Second thing, we are yet other victims of the house market, because the landlady decided to sell, fearing the plummeting house prices, and the mortgage market turmoil (I noticed that scattering here and there terms like plummeting and turmoil makes my sentence sound like the Economist!). Moral: we may be kicked out in a couple of months, and no similar houses are available in this gloomy period on the market. Who knows... Anyway, the perspective buyers that came yesterday seemed very nice and I'd be relatively happy for them to buy the house.

Tuesday, 6 May 2008

Embedding fonts in PDF with GhostScript

In a period in which I hardly have the time to breath, after having spent my birthday working, the only thing I have to annotate here is a very useful link to solve a bad problem of conference organisers: font embedding in pdfs.

In practice, the command to embed fonts is:
gs -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=letter -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile=figures/Mprime-new.pdf -f figures/Mprime.pdf
and it works perfectly.