Monthly Archives: July 2013

SVN: how to clean up a directory from unversioned files

Here is the command to delete all the files in a SVN directory that are not in the SVN server repository. The first part (svn status) returns all files with the ? tag (meaning they don’t belong to the repository). … Continue reading

Posted in Linux | Tagged | 1 Comment

R package dependencies: difference between imports, depends, suggests, enhances

When you want to assemble R codes into a package, you will need to write a file called DESCRIPTION. This file contains some metadata and keywords to be used and some keywords are definitely confusing (at least to me). Here … Continue reading

Posted in R, Uncategorized | Tagged | 1 Comment

Python: list of empty lists creates references not copy

In Python, you can create a list with an element repeated N times quite easily with the following syntax: >>> a = [1] * 5 >>> print(a) [1,1,1,1,1] >>> a = [1] * 5 >>> print(a) [1,1,1,1,1] Here we create … Continue reading

Posted in Python | Tagged | Leave a comment

GIT tutorial

I finally decided to use GIT for one of my new project. I know this sounds odd given that everybody nowadays seems to use it… Having used SVN for a while the transition should be smooth though. There are a … Continue reading

Posted in Software development | Tagged | Leave a comment

Entropy and information

In everyday parlance, entropy refers to the inevitable deterioration of a system (including a society). As you may remember from a physics course, there is a far more formal definition that originates from thermodynamics. I’ll spare you the equation but … Continue reading

Posted in Notes | Tagged | Leave a comment