Category Archives: Uncategorized

sphinx raise a WARNING: Duplicate explicit target name:

Sphinx is a great tool for developers who want to write nice documentation about their software. I actually use it also to take notes or write about other stuff. From time to time I have a warning such as : … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

pypi upload failed due to non-existent authentication information

After trying to upload a package on Pypi website using python setup.py sdist upload I got this error message: Submitting dist/XXX-0.7.5.tar.gz to https://upload.pypi.org/legacy/ Upload failed (403): Invalid or non-existent authentication information. error: Upload failed (403): Invalid or non-existent authentication information.Submitting … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

git synchronisation of a forked repository

Let us assume you have forked a repository (from https://github.com/project/repository_name). You now have a local version at a given time of the repository repository_name. git pull https://github.com/project/repository_name cd repository_namegit pull https://github.com/project/repository_name cd repository_name Time flyes and you come back to … Continue reading

Posted in Uncategorized | Leave a comment

Starting with docker and creating an image with ipython

On my fedora box, I followed the instructions from the official web page: https://docs.docker.com/installation/fedora/ sudo yum -y install docker sudo systemctl start docker sudo systemctl enable docker sudo docker run -i -t fedora /bin/bashsudo yum -y install docker sudo systemctl … Continue reading

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

How to update a forked repository (github)

I followed those steps and it worked like a charm using github interface assuming there was no changes between the fork and main repository Open your fork on GitHub. Click on Pull Requests. Click on New Pull Request. By default, … Continue reading

Posted in Software development, Uncategorized | Tagged , | 1 Comment

Moving from SVN to git: $Id:$ equivalent

In SVN (and CVS), you could include special strings such as $Id:$$Id:$ and after a commit, the revision number would appear after “Id:”, which was a convenient way to retrieve the revision for instance in a print statement. Apparently, with … Continue reading

Posted in Software development, Uncategorized | Tagged | 1 Comment

Migrating from a Subversion repository to GitHub

I’ve just moved a SVN repository to github. I was a bit afraid of spending time and lost the history but fortunately, I came upon this great post http://www.samaxes.com/2013/11/move-from-svn-to-git/ , followed the instructions and it worked almost like a charm. … Continue reading

Posted in Uncategorized | Leave a comment

perl: define a module to be called in another script

First, define a module. The module must be in a path reachable by perl (e.g., local directory). Then, to make a script a valid package, you need to proceed as follows: Rename the perl script with the extension .pm It … Continue reading

Posted in Uncategorized | Tagged | Leave a 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: ValueError: unknown locale: UTF-8

When installing bioservices (a python package) using pip or easy_install, I got this error Mac OS X 10.7 – Lion: ValueError: unknown locale: UTF-8ValueError: unknown locale: UTF-8 Although the installation is successful, the error will appear as soon as we … Continue reading

Posted in Uncategorized | Leave a comment