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

# 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!

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

## 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.

## 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.

## Multipage extension for Inkscape

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

## Turning Mathematica lists into hashes

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

## Defining macros for Mathjax extension


## Positioning the frame of extension Anysite

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

## 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$

## 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

## 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

## Stripping extension from files

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

## 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!

## 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.

## Rescuing files: the last of them

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

## Remove portrait images

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

## Installing xv on ubuntu

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

## 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.

## Removing recursively special and accented characters in filenames

Don't use non-ASCII characters in filenames.

## LogGrid

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

## 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.

« newest ... older 20 › oldest »