Follow me
-
Recent Posts
calendar
December 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 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
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
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
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
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
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
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
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: 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