Monthly Archives: May 2011

Skype video missing under linux

Tweet In principle in the options->advanced section you should have a section called video devices If not, then quit Skype, and create this environmental variable

Restart Skype and go to options->advanced->video devices that should be available now. Tested under … Continue reading

Posted in Linux | Tagged , | Leave a comment

What is Virtualenv

Tweet Virtualenv is a tool to create isolated Python environments. Its usage could be very useful when dependencies and versions are tricky. Imagine you have an application that needs version 1 of a library, but another application requires version 2. … Continue reading

Posted in Python | Tagged , | Leave a comment

Mount an ISO file under linux with bchunk

Tweet The tool bchunk can be used to mount an ISO file. Under Fedora 9, you could use it as follows. First, you need to install it:

bchunk converts a .cue (and its pair-wise .bin) file into an iso … Continue reading

Posted in Linux | Tagged , | Leave a comment

Combine AWK and SED to create symbolic links

Tweet The unix tools AWK and SED are very powerful tools to manipulate files and perform text processing tasks. It’s true that the syntax is not always very intuitive but it can help you in performing task in a single … Continue reading

Posted in Linux | Tagged , | 1 Comment

Gallery of picasa album using cooleye plugin (photos from croatia)

Tweet

Posted in photos, wordpress | Tagged | Leave a comment

AWK: the substr command to select a substring

Tweet Under Linux, the awk command has quite a few useful functions. One of them, which is called substr, can be used to select a substring from the input. Here is its syntax: substr(s, a, b) : it returns b … Continue reading

Posted in Linux | Tagged | 8 Comments

Python: string substitution using dictionaries

Tweet A nice way to populate a string with values is to use a dictionary, which can be defined outside of the print statement. The standard way is to write

Another way using dictionaries is as follows:

This … Continue reading

Posted in Python | Tagged | 1 Comment

How to install a local WordPress (Linux Ubuntu)

Tweet This blog (in French) provides an article that explain how to install a local version of WordPress (Linux Ubuntu) (Le Blog de Lise).

Posted in Computer Science, Linux | Tagged | Leave a comment

SED: how to add a line at the top of files

Tweet Imagine, you have a set of ReST files, and you want to add the statement “author: your name” at the top of each of them. First, identify the files you want to edit and pipe them to sed:

Continue reading

Posted in Linux | Tagged | Leave a comment

Missing package in rpy2 (ggplot2)

Tweet When using rpy2, the python implementation of R, I quickly came up with the issue of having missing packages (e.g., ggplot2) With a fresh installation of rpy2 (and R-core), if you type the following code in your python shell: … Continue reading

Posted in Computer Science | Tagged , | 3 Comments