Saturday, October 17, 2015

Should we use Skype?

Jack Wallen on mentions Ekiga and Linphone as primary alternatives for Skype. He says that “the major caveat to using any of these clients is that they cannot make calls to Skype users (as Skype uses an undisclosed, proprietary protocol)”. He correctly names some reasons why even people like me use Skype: “Even though Skype was purchased by Microsoft, it still remains one of the most user-friendly VOIP clients available. And considering Skype’s user-base, it is often considered the de facto standard software for the task. That doesn’t mean Skype is your only choice. Yes, Skype works on Linux (and, for the most part, works really well); but for those who’d rather choose an option that’s open source (or simply not Microsoft-owned), I present to you a few possible options to satisfy your VOIP needs.”

He does not mention several reasons for not using Skype, like security concerns or a vendor-locked history of your calls.

Using Git to fetch and merge Hamza’s work

(I continue to learn how to use Git)

Hamza pushed yet another commit (13860692) to his Lino repository, and I would like to merge it to my master (and afterwards check whether he is correctly reported as the author of this commit).

Here we go:

$ git fetch hamza
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), done.
   12259ec..0d86592  master     -> hamza/master

$ git merge hamza/master
Updating d6aff39..0d86592
 docs/tested/diamond2/django17.rst       |  7 +++--
 docs/tested/dynamic.rst                 |  6 +++-
 docs/tested/e006.rst                    |  2 +-
 docs/tutorials/addrloc/index.rst        |  6 +++-
 docs/tutorials/de_BE/index.rst          |  6 +++-
 docs/tutorials/polls/mysite/index.rst   |  8 +++--
 docs/tutorials/watch_tutorial/index.rst |  6 +++-
 lino/api/                     |  5 ++-
 lino/api/                       |  4 +++
 lino/core/                   |  3 +-
 lino/core/                       | 55 ++++++++++++++++++++++++---------
 lino/modlib/jinja/             |  6 +++-
 12 files changed, 88 insertions(+), 26 deletions(-)

Oops, that was more than one file!

Yes of course, it took all changes to Lino which Hanza has made during he started to work on #38.

Some of them are indeed good changes:

  • Calling django.setup() in lino/api/ and lino/api/ seems a great idea

  • The change in lino/core/ is good.

Some are less good, but it will be more efficient that I merge them and then “adapt” them myself as I suggested (and then explain why):

  • I don’t like the changes in docs/tested/dynamic.rst and docs/tested/e006.rst because AFTER17 is just a temporary name (we will remove it as soon as all production sites have been migrated). I’d rather suggest two methods lino.core.model.Model.meta_get_fields() and (and the latter should have a shortcut rt.get_models() in lino/api/

  • Concerning the changes in lino/core/ I don’t yet know whether I like them.

But it contains some changes which Hamza probably wanted to undo before I merge them:

  • The change in docs/tested/diamond2/django17.rst is an accidental no-op.

  • The changes in docs/tutorials/addrloc/index.rst etc where you replace initdb_demo by syncdb turned out to be wrong

So for the moment I undo the whole merge:

$ git reset --merge ORIG_HEAD
(py27)luc@doll:~/work/lino$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

nothing to commit, working directory clean

Hamza might do this (without warranty):

$ git checkout docs/tested/diamond2/django17.rst
$ git checkout docs/tutorials/addrloc/index.rst
$ git checkout docs/tutorials/de_BE/index.rst
$ git checkout docs/tutorials/polls/mysite/index.rst
$ git checkout docs/tutorials/watch_tutorial/index.rst
$ git commit -m "undo changes about initdb_demo"
$ git push

Or (maybe better) I must find out how to do this myself…