If you're trying to install any flavor of Linux in a Lenovo laptop (in my case Lubuntu in a T430 Thinkpad) and all you get is a black screen, chances are that you have the "Secure Boot" option enabled in the BIOS. Just disable this option and you should ...

read more# Older articles

# Using a command line parameter to specify the name of a function to call

When running some Python experiments — where typically each experiment corresponds to run a simulation under some particular conditions — I find useful to be able to call a particular function from the command line. For example, if I define the functions

read more`exp_1`,`exp_2`, and`exp_3`, I want to be able to ...# Binomial Coefficients in NumPy/SciPy

For some reason finding how to compute the binomial coefficients using Numpy/SciPy is harder than it should (I couldn't find the answer in the first page of a google search).

The answer, though, is quite easy: just use

`scipy.special.binom`. For example:read more>> import scipy >> print scipy.special ...

# A patched mlabwrap

# Using NumPy masked arrays

In NumPy, masked arrays are quite handy. Say you want to find the index of the smallest positive entry of an array. Doing

`a[a>0].argmin()`doesn't work, because you're removing all the non-positive numbers from`a`, so you're computing`argmin`over the wrong array.Masked ...

read more# Fix error when opening a tex file using emacs 24

# On the Toponymy of the Coast of California

San Diego, Santa Catalina, San Pedro, where all these names come from? I learned about it reading “The Quark and the Jaguar: Adventures in the Simple and the Complex” by Murray Gell-Man. In 1602 Sebastian Vizcaino was given the mandate to map the coast of California. For each new place ...

read more

Page 1 / 1