Follow me
-
Recent Posts
calendar
Recent Comments
- Stan on python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)
- Cormac on Pandas : how to compare dataframe with None
- LP on AWK: the substr command to select a substring
- jrab on python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)
- How to disable SSL verification for urlretrieve? – Peter's blog on python: certificate verified failed
Archives
Categories
Meta
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
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
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
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
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