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!

Wikilog titles and links

The Mediawiki Wikilog extension needs a hack to display title properly on our site.

→ continue reading...

From maps to multimaps

I am migrating from Evan Miller's extension of Google Maps, which is now archived (obsolete) to Pavel Astakhov's version, MultiMaps.

→ continue reading...

Mediawiki 1.22.1, lua, Scribunto and templates from Wikipedia

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.

→ continue reading...

Multipage extension for Inkscape

Inkscape has a multipage extension: http://sourceforge.net/projects/inkscape-pages. Thanks to its authors: Cosmin Popescu!

→ continue reading...

Turning Mathematica lists into hashes

Here is a short hack to turn Mathematica lists into hash tables.

→ continue reading...

Defining macros for Mathjax extension

\(\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.

→ continue reading...

Positioning the frame of extension Anysite

This is a trivial patch of MediaWiki Extension:Anysite to shift x-wise the included frame.

→ continue reading...

A simple way to quote from bibTeX in MediaWiki

I would like to quote references in MediaWiki from a $\mathrm{B{\scriptstyle{IB}}\TeX}$ (.bib) file.

The key indexing scheme I use is:

name-of-first-authortwo-last-digits-of-year-of-publication⇿$\alpha$

→ continue reading...

The nightmare of using a mac

I tried to install an open source software (kdenlive) on a Mac. For this, I had to install macports. For this, I had to install Xcode. For this, I had to register as a Mac OS developer

→ continue reading...

Convert QuickTime .mov file to mpeg

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

→ continue reading...

Stripping extension from files

The following command allows a variety of useful operations on files based on stripping their extension:

→ continue reading...

Commenting on blog posts

I hadn't really realized that the possibility for readers to comment on our blog was in fact disabled. Now, this should be remedied. Please say hello!

→ continue reading...

Mediawiki Extension News

I have installed Duesentrieb's Mediawiki Extension:News to keep an up-to-date record of what is new on our website.

→ continue reading...

Rescuing files: the last of them

A friend encountered a silly bug which wiped an entire folder of data (which bug?).

→ continue reading...

Remove portrait images

This little script removes images which appear to be in the portrait format (tweak it for your own needs).

→ continue reading...

Installing xv on ubuntu

The following (originally from someone Kurt [1]) works like a charm:

→ continue reading...

We have mouse rollover!

One of our most cherished goodies in our original website was the mouse rollover, or tooltip. Something like that (roll over!)...

We had to surrender this option when we turned to MediaWiki, since there was no good support for it and, until a few minutes ago, nothing close enough to what we wanted.

Now the situation has changed.

→ continue reading...

Removing recursively special and accented characters in filenames

Don't use non-ASCII characters in filenames.

→ continue reading...

LogGrid

I put here a Mathematica module to generate a logarithmic grid of points between given lower and upper bounds.

→ continue reading...

Restoring corrupted Mathematica notebook

When you have a corrupted Mathematica notebook, which happens more often than not, you can use the wonderful Corruption.m package from Lou D'Andria.

→ continue reading...

« newest ... older 20 › oldest »