vendredi 27 décembre 2019

Netvibes clear cache

http://www.netvibes.com/?reset_cache=1

jeudi 7 novembre 2019

update cctools in macport

I had errors when I try to update cctools within macport.
Here is the solution:

sudo port uninstall cctools
sudo port clean cctools
sudo port install cctools

And now all is ok !

vendredi 20 septembre 2019

Python defaults

    To make this the default IPython or IPython3 (i.e., the version run by the
    'ipython' or 'ipython3' commands), run one or both of:
    
        sudo port select --set ipython py35-ipython
        sudo port select --set ipython3 py35-ipython
  py35-qtpy has the following notes:
    QtPy will work with one of the following backends: pyqt5, pyqt4, pyside2,
    and pyside. If multiple backends are available on your system, pyqt5 will be
    used unless you set the QT_API environment variable.
  py35-sip has the following notes:
    py35-sip is available under a PSF license with one addition: 
    
        4. Licensee may not use SIP to generate Python bindings for any C or
           C++ library for which bindings are already provided by Riverbank. 
    
    GPL-2 or GPL-3 licenses are also available. For details see
    /opt/local/share/doc/py35-sip/LICENSE [-GPL2 -GPL3]
  python35 has the following notes:
    To make this the default Python or Python 3 (i.e., the version run by the
    'python' or 'python3' commands), run one or both of:
    
        sudo port select --set python python35
        sudo port select --set python3 python35
  python36 has the following notes:
    To make this the default Python or Python 3 (i.e., the version run by the
    'python' or 'python3' commands), run one or both of:
    
        sudo port select --set python python36

        sudo port select --set python3 python36

lundi 12 août 2019

Managing locally a Time Machine backup

Time Machine can use a NAS server to save its backups. But then it can be very very slow.
When you need to save a large amount of information, it is better to connect the disk directly on the Mac, and open the xxx.sparsebundle image where is located the backups.

Stop saves in timemachine.

Then in terminal, do:
sudo tmutil setdestination
and drag from finder the disk that is shown. You will have something like:
sudo tmutil setdestination /Volumes/xxxxx

Then press enter, and in timemachine, said save now

When it will be done, connect again the disk to the NAS

Curating Endnote database

When entering references in Endnote, some errors can be unintentionally entered.
To detect them, export the database in text format with RIS format, and search these pattern using grep:
# Search for a space at the end of the title:
^TI  - .+ $
# Search if first names have been entered without space
^AU  - .+[A-Z][A-Z]

lundi 1 juillet 2019

python, gcc, clang versions

Not always easy to know what are the versions that will be run. I add here some informations:

  py27-spyder has the following notes:
    To make the Python 2.7 version of spyder the one that is run  when you
    execute the commands without a version suffix, e.g. 'spyder', run:
    
    sudo port select --set spyder spyder-27
  py35-spyder has the following notes:
    To make the Python 3.5 version of spyder the one that is run  when you
    execute the commands without a version suffix, e.g. 'spyder', run:
    

    sudo port select --set spyder spyder-35

For gcc, situation is not very clear either:

(base) belinda:bin marcgirondot$ cd /usr/local/bin/

(base) belinda:bin marcgirondot$ gcc-7 --version
gcc-7 (Homebrew GCC 7.4.0_2) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(base) belinda:bin marcgirondot$ gcc-9 --version
gcc-9 (Homebrew GCC 9.1.0) 9.1.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(base) belinda:bin marcgirondot$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix

InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin


jeudi 7 mars 2019

Snapz Pro sur un système français

Par défaut, lorsque Snapz pro d'Ambrosia Software tourne sur un système pour lequel il n'est pas localisé, il se met par défaut en russe !

Pour l'avoir en anglais, d'abord quitter l'application en passant par le moniteur d'application, faire un clic droit sur le nom de l'application et ouvrir le paquet.

Ouvrir le dossier Contents/Resources.

Dupliquer le dossier en.lproj et renommer le en fr.lproj

Redémarrer Snapz pro... et c'est bon.

Vous pouvez même vous amuser à traduire les chaînes de caractères en français.