Fabrice's web : CV · Blogs (⇢ Madrid · ⇢ Science · ⇢ Everything) |
---|
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!
I often need to clean out the proofing notes one makes for editors and co-authors in $\mathrm{\LaTeX}$ prose:
sopi works great except when it doesn't, in which case he just vomits an error message like this:
Say you have files like this:
lecture1.tex lecture2.tex lecture3.tex ... lecture13.tex lecture24.tex
and need to add a new lecture5!
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.
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...
This describes a hack to manually find the overlapping subtitles in a srt file (and do other more interesting things).
Say you want to extract the citation counts from someone's Google Scholar page (here from Jeremy Baumberg):
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.
I should be on Holiday! But I'm trying to finalize this animation for my perspective for Quantum:
Flash is no longer supported, maybe the worst thing to happen in 2021 (and there's a pandemic going on). Among some of the best things to go, the fantastic lightweight, efficient and elegant dewplayer to play mp3, which served us so well all this time! (the site says that "Dewplayer n'est plus, mais renaîtra, un jour. «When it's done»). You'd think mediawiki would offer tons of replacement. Strangely, it turns out to be quite difficult to find how to bring mp3 to your wiki! (see what's available). HTML5 is the solution.
Elena and Julia made a video-clip for Lastres de Mujer, one of Elena's songs (you can see it here). It consists of stop-motion animation of some of Julia's drawings that she arranges in a book. We shot pictures in rafales that we turned up into a movie following these simple steps.
Rendering a video is extremely lengthy. If you want to alter a little part of it, you certainly do not want to render the whole thing again. Here's what you can do instead.
Carlos Sánchez, who has all the talents, composed a song (El Vals del vampiro), for which Elena, in a sequence of events that I did not follow in details, came to compose the lyrics. They decided to make a stop-motion animation to release the piece on YouTube (you can see the result here). At this point, I got involved for the minor technical aspects of assembling the artwork (also from Elena) into the said animation. These are the steps I followed to do so, which I store here mainly for my own recollection.
If you're tight in space (e.g., for a conference abstract) and want all entries to read F. Author et al., BibTeX doesn't usually help you much (biblatex would allow that but the more common natbib doesn't). The easiest fix is to hack the .bst file!
Elena took various pictures of her drawing Maternidad and wanted to do a timelapse. This lists the steps to do so.
Papers increasingly come with a supplementary material. This is in principle good as providing all the gory details, except that often this is where the authors flush out what didn't fit in the allotted space of the main text, so supplementary of PRL, for instances, are particularly tough (as often required-reading)
When you upload your prose to arXiv, you typically want the supplementary to be there as well. That's not easy to do.
Each mediawiki web has a MediaWiki:Common.js page (see, e.g., that of Wikipedia) that runs java script on each page. That's a powerful tool (apparently to be deprecated at some point). Installation should be straightforward but for some reason, can sometimes be frustratingly painful, so I give a particular example that should work on its own.