Fabrice's web : CV · Blogs (⇢ Madrid · ⇢ Science · ⇢ Everything)
HackerLogo.png

Blog: Hacks

This is a collection of tricks, scripts, one-liners, patches, hacks of all sort & anything related to computers and computing. Try at your own risks!

Emacs Proofing LaTeX

I often need to clean out the proofing notes one makes for editors and co-authors in $\mathrm{\LaTeX}$ prose:

Screenshot 20240518 132554.png

→ continue reading...

Debugging sopi

sopi works great except when it doesn't, in which case he just vomits an error message like this:

→ continue reading...

Moving numbered files to add one entry

Say you have files like this:

lecture1.tex
lecture2.tex
lecture3.tex
...
lecture13.tex
lecture24.tex

and need to add a new lecture5!

→ continue reading...

doi2bib or parsing doi into bibTeX entries

From about 2003, when I started to compile scientific references, till now, I have been entering references in my sci.bib bibTeX file by hand! That included 3549 entries according to bibtex-count-entries. This stops today.

→ continue reading...

bib2wiki or parsing bibTeX into mediawiki templates

In a previous post, I was discussing a prospective bib2wiki script to automatize the transcription of my bibTeX database to laussy.org (this website). This was over 10 years ago, so I forgot what I did back then. I had to do it again.

→ continue reading...

Overlapping subtitles in kdenlive

kdenlive uses a 25th of a second accuracy for the millisecond timestamp $t$, which thus becomes converted to the nearest integer $\lfloor{t/40}\rceil$ (there are forty fractions of 1/25s in a second). So if you have, say:

00:00:02,764 --> 00:00:03,705
So now...

→ continue reading...

Timestamps in srt files with Mathematica

This describes a hack to manually find the overlapping subtitles in a srt file (and do other more interesting things).

→ continue reading...

Extracting citation counts from a Google Scholar page

Say you want to extract the citation counts from someone's Google Scholar page (here from Jeremy Baumberg):

Screenshot 20230625 105122.png

→ continue reading...

Merging Columbus CSV files

To merge various tracks from the Columbus P-10 device so as to assemble a global picture of your whereabouts, one can follow the steps below.

→ continue reading...

CSV to GPX for Columbus P-10 Pro

However great GPSBabel can be, it still fails to be conversant with the great Columbus GPS logger. This is how we convert its CSV file to GPX.

→ continue reading...

« newest ‹ newer 20 ... oldest »