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!
Makeindex, $\mathrm{\LaTeX}$'s historical index-building engine, is irritatingly buggy. One recurrent problem that plagues the output from careless index makers is that of duplicated entries:
A sore to the eye!
If you want to refer to images in Mediawiki the way you would in a $\mathrm{\LaTeX}$ document, you can use this cheap trick of mine...
It's a pain that konqueror opens two panels by default in 'filemanagement' mode. I always have to close one by hand.
We find that algebraic sums of decay rates are fairly common, which make a notation such as $\gamma_{\widetilde{ij}}=i \gamma_a + j\gamma_\sigma$ useful (e.g., $\gamma_{\widetilde{31}}=3\gamma_a+\gamma_\sigma$). This is, however, a bit of a pain to typeset:
(e.g., $\gamma_{\widetilde{31}}=3\gamma_a+\gamma_\sigma$)
In emacs, this regexp substitution allows to transliterate \gamma_{31} into the widetilde form:
Replace regexp (default _{\([0-9][0-9]\)} -> _{\\widetilde{\1}}):
For Christmas, it's nice to feature a goody on one's website to participate to the overall merrier atmosphere. A favorite and immemorial web touch is the snow fall. It used to be popular on UNIX boxes as well though it apparently isn't so standard nowadays. As for the good old web, we like to use Scott Schiller's snowstorm, bringing snow to the web since 2003.
If you look at what computers can do in terms of storing data, you feel sort of safe.
It's $2^{32}-1$ files (that makes 4 294 967 295) for NTFS, only 4 194 304 for FAT32 and a minuscule 65 536 for FAT16 which is however obsolete, while exFAT reads "Nearly Unlimited" [1].
That's a pretty concrete problem: I have multiple .tex file which include .eps extensions. I have converted all the postscript (old fashioned) stuff into brand new converted pdf, now calling figure.eps by figure.eps.convto.pdf.
This piece of code says the $\mathrm{\TeX}$ files about that daring move:
perl -pi -w -e 's/\\includegraphics(\S+)pics\/(\S+)\}/\\includegraphics$1fig\/$2\.convto\.pdf\}/g;' *.tex
This is the title I gave to this "kinetic digital sculpture" of mine, filed to the Wolfram Tweet-a-Program program:
I have upgraded my extension wz (named after Walter Zorn) to support more features of this great library that provides tooltips.
I am migrating from Evan Miller's extension of Google Maps, which is now archived (obsolete) to Pavel Astakhov's version, MultiMaps.
I am upgrading laussywiki to MediaWiki 1.22.1, mainly to support the new citation templates from wikipedia. They are great and I want a better/more thorough and more consistent quotation system.
Inkscape has a multipage extension: http://sourceforge.net/projects/inkscape-pages. Thanks to its authors: Cosmin Popescu!
Here is a short hack to turn Mathematica lists into hash tables.
\(\newcommand{\pt}{\partial_t}\)With MathJax, you can use \newcommand in enclosed $...$ characters to define a macro in any given page (e.g., \newcommand{\pt}{\partial_t} turns $\pt$ into $\pt$). If you want a popular macro to be defined once and for all, without having to include the definition each time, you have to declare it in a Config.js file.
This is a trivial patch of MediaWiki Extension:Anysite to shift x-wise the included frame.
I would like to quote references in MediaWiki from a $\mathrm{B{\scriptstyle{IB}}\TeX}$ (.bib) file.
The key indexing scheme I use is:
Movies downloaded from a mac bearing the .mov extension may fail to reproduce the video on other platforms (linux, windows, etc.), although the sound would still be played correctly. Most linux players will content to play the audio on a black screen. Xine complains about an unknown 'm2v1' codec. That's this hint which brought me to Carlos Aranda's blog