пятница, 18 мая 2012 г.

How to install readline for python ?

Some time ago I needed to run 'sudo easy_install readline' on my Ubuntu 11.04 machine.
But I had an error message.

For resolving that problem you should install the following packages:
- python2.7-dev (if python 2.7 is installed)
- libncurses5-dev

and try to run again the command:
sudo easy_install readline

пятница, 11 мая 2012 г.

Как узнать в git, на какой тег у вас сейчас переключена рабочая копия ?


На помощь приходит команда:
git log --decorate

Результатом будет что-то похожее на это:

commit a8662ef8bf021ea349dbf56970fd9f62f97093fb (HEAD, tag: test-live-0.0.2, tag: live-0.0.2)
Author: Vasya Pupkin <v.pupkin@gmail.com>
Date:   Fri May 11 09:25:15 2012 +0300

    Some message

commit 43a6228d4bf5839aa934b541c35d19b897b35056 (tag: live-0.0.1)
Author: Vasya Pupkin <v.pupkin@gmail.com>
Date:   Thu May 10 17:47:23 2012 +0300

    Some message



Если же вы сейчас свичнуты на один из коммитов ветки мастер, то вы увидите что-то такое:

commit ab39d94c48d4ef31bb2dbe16bce77c389c2c3c4d (HEAD, origin/master, origin/HEAD, master)
Author: Vasya Pupkin <v.pupkin@gmail.com>
Date:   Fri May 11 10:46:55 2012 +0300

    Some message

commit a8662ef8bf021ea349dbf56970fd9f62f97093fb (tag: test-live-0.0.2, tag: live-0.0.2)
Author: Vasya Pupkin <v.pupkin@gmail.com>
Date:   Fri May 11 09:25:15 2012 +0300

    Some message

commit 43a6228d4bf5839aa934b541c35d19b897b35056 (tag: live-0.0.1)
Author: Vasya Pupkin <v.pupkin@gmail.com>
Date:   Thu May 10 17:47:23 2012 +0300

    Some message