Re: Facebook support

2015-05-01 Thread Dirk Hohndel
I pushed a fix. I vaguely remember that this didn't work on Android...

/D

-- 
Sent from my phone

 On May 1, 2015, at 18:33, Tomaz Canabrava tcanabr...@kde.org wrote:
 
 Id go for removing the ifdef. Why should se support without Facebook?
 
 
 On Fri, May 1, 2015, 10:10 Robert C. Helling hell...@atdotde.de wrote:
 Hi,
 
 it seems the move to cmake somehow broke the Facebook integration: It seems 
 it is ifdefed with variable FBSUPPORT but even setting this from 
 CMakeList.txt is not enough as somehow this does not pick up 
 qt-ui/socialnetworks.cpp /.h and thus linking fails.
 
 What do I have to do to make cmake compile that?
 
 Best
 Robert
 ___
 subsurface mailing list
 subsurface@subsurface-divelog.org
 http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
 ___
 subsurface mailing list
 subsurface@subsurface-divelog.org
 http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: Facebook support

2015-05-01 Thread Tomaz Canabrava
Id go for removing the ifdef. Why should se support without Facebook?

On Fri, May 1, 2015, 10:10 Robert C. Helling hell...@atdotde.de wrote:

 Hi,

 it seems the move to cmake somehow broke the Facebook integration: It
 seems it is ifdefed with variable FBSUPPORT but even setting this from
 CMakeList.txt is not enough as somehow this does not pick up
 qt-ui/socialnetworks.cpp /.h and thus linking fails.

 What do I have to do to make cmake compile that?

 Best
 Robert
 ___
 subsurface mailing list
 subsurface@subsurface-divelog.org
 http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


[PATCH 2/2] Use dynamic sample interval on divelogs.de export

2015-05-01 Thread Miika Turkia
Rounding always up should give us sensible sample interval as EON Steel
adds extra samples.

Signed-off-by: Miika Turkia miika.tur...@gmail.com
---
 xslt/divelogs-export.xslt | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt
index 7ae3423..8a0b792 100644
--- a/xslt/divelogs-export.xslt
+++ b/xslt/divelogs-export.xslt
@@ -222,7 +222,10 @@
 SAMPLEINTERVAL
   xsl:choose
 xsl:when test=$special = 1
-  xsl:text10/xsl:text
+  xsl:variable name=samples
+xsl:value-of select=count(//sample/@time)/
+  /xsl:variable
+  xsl:value-of select=ceiling($duration div $samples)/
 /xsl:when
 xsl:otherwise
   xsl:variable name=first
-- 
2.1.0

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


[PATCH 1/2] Have the dive duration in variable for further use

2015-05-01 Thread Miika Turkia
Signed-off-by: Miika Turkia miika.tur...@gmail.com
---
 xslt/divelogs-export.xslt | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt
index f912feb..7ae3423 100644
--- a/xslt/divelogs-export.xslt
+++ b/xslt/divelogs-export.xslt
@@ -22,12 +22,17 @@
 TIME
   xsl:value-of select=@time/
 /TIME
-DIVETIMESEC
+
+xsl:variable name=duration
   xsl:call-template name=time2sec
 xsl:with-param name=time
   xsl:value-of select=@duration/
 /xsl:with-param
   /xsl:call-template
+/xsl:variable
+
+DIVETIMESEC
+  xsl:value-of select=$duration/
 /DIVETIMESEC
 LOCATION
   xsl:value-of select=location/
-- 
2.1.0

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


OSTC Tools support

2015-05-01 Thread Willem Ferguson
When we say Subsurface supports OSTC Tools, what exactly does this mean? 
Is OTC Tools the regular download
software for OSTC? I see its divided into 3 parts with separate 
functions, some of it overlapping with Subsurface.


I am trying to figure out what should go into the user manual with 
respect to this topic.


Currently the only vaguely relevant text is in section 11 of the manual 
(Configuring your dive computer).


Is there anyone with an OSTC who can help?
Kind regards,
willem

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: OSTC Tools support

2015-05-01 Thread Salvador Cuñat
Hi Willem.

2015-05-01 17:23 GMT+02:00 Willem Ferguson willemfergu...@zoology.up.ac.za
:

 When we say Subsurface supports OSTC Tools, what exactly does this mean?
 Is OTC Tools the regular download
 software for OSTC? I see its divided into 3 parts with separate functions,
 some of it overlapping with Subsurface.


OSTCTools is a set of tools windows based.  HW didn't developed software
for their devices, except a little bootloader for firmware updates.   While
Subsurface and other softwares which support OSTC devices tend to be
universal, OSTCTools only supports OSTC computers.
One of the tools is used download dives from the computer and store them in
individual files one dive per file.  It just do that, almost raw downloaded
data,  no gear, no notes ...  It's not a true diving log.

What Subsurface does is just import this files into its own regular format,
so a user can import to subsurface  any dive he had previously downloaded
with this software, but, off course, the user will need to add data to the
import as the OSTCTools files only have computer related data.

In the manual, I think, this should only be mentioned as another file
format supported for import with a warning about the information
limitations, and, may be, a recomendation about selecting every file to
import in a single operation instead of picking them one by one.

Is there anyone with an OSTC who can help?

 Well, I'm proud owner of a OSTC-2N   };-)

If you want to try it,  there are two samples in the dives directory the
*.dive files.

Regards.

Salva.
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: How about 4.4.2?

2015-05-01 Thread Dirk Hohndel


 On May 1, 2015, at 09:09, Miika Turkia miika.tur...@gmail.com wrote:
 
 On Thu, Apr 30, 2015 at 10:05 AM, Dirk Hohndel d...@hohndel.org wrote:
 On Wed, Apr 29, 2015 at 11:26:57AM -0700, Dirk Hohndel wrote:
 I just merged our libdc branches with the latest upstream from
 libdivecomputer. More precisely, Subsurface-4.4 branch was merged, but
 Subsurface-testing was rebased, so that one will require a force pull. Jef
 has done some good work recently and added support for a few more dive
 computers.
 
 So if I were to make a 4.4.2 release with the latest libdivecomputer code
 included... are there any other fixes in master that I absolutely should
 back port?
 
 I know that I'd take a couple of my Uemis fixes as Uemis support in 4.4.1
 is actually rather broken :-(
 
 Anything else?
 
 The multi-dive editing seems to be broken also in v4.4-branch.
 (Overwrites tags that are different from the displayed dive.)

I think I fixed that... Wasn't that before 4.4?

I'm on my phone, will look into this later. Definitely something we should fix 
for 4.4.2

/D
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: How about 4.4.2?

2015-05-01 Thread Miika Turkia
On Thu, Apr 30, 2015 at 10:05 AM, Dirk Hohndel d...@hohndel.org wrote:
 On Wed, Apr 29, 2015 at 11:26:57AM -0700, Dirk Hohndel wrote:
 I just merged our libdc branches with the latest upstream from
 libdivecomputer. More precisely, Subsurface-4.4 branch was merged, but
 Subsurface-testing was rebased, so that one will require a force pull. Jef
 has done some good work recently and added support for a few more dive
 computers.

 So if I were to make a 4.4.2 release with the latest libdivecomputer code
 included... are there any other fixes in master that I absolutely should
 back port?

 I know that I'd take a couple of my Uemis fixes as Uemis support in 4.4.1
 is actually rather broken :-(

 Anything else?

The multi-dive editing seems to be broken also in v4.4-branch.
(Overwrites tags that are different from the displayed dive.)

miika
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: OSTC Tools support

2015-05-01 Thread Willem Ferguson

On 01/05/2015 19:44, Salvador Cuñat wrote:

Hi Willem.

2015-05-01 17:23 GMT+02:00 Willem Ferguson 
willemfergu...@zoology.up.ac.za 
mailto:willemfergu...@zoology.up.ac.za:


When we say Subsurface supports OSTC Tools, what exactly does this
mean? Is OTC Tools the regular download
software for OSTC? I see its divided into 3 parts with separate
functions, some of it overlapping with Subsurface.


OSTCTools is a set of tools windows based.  HW didn't developed 
software for their devices, except a little bootloader for firmware 
updates.   While Subsurface and other softwares which support OSTC 
devices tend to be universal, OSTCTools only supports OSTC computers.
One of the tools is used download dives from the computer and store 
them in individual files one dive per file.  It just do that, almost 
raw downloaded data,  no gear, no notes ...  It's not a true diving log.


What Subsurface does is just import this files into its own regular 
format, so a user can import to subsurface any dive he had previously 
downloaded with this software, but, off course, the user will need to 
add data to the import as the OSTCTools files only have computer 
related data.


In the manual, I think, this should only be mentioned as another file 
format supported for import with a warning about the information 
limitations, and, may be, a recomendation about selecting every file 
to import in a single operation instead of picking them one by one.


Is there anyone with an OSTC who can help?

Well, I'm proud owner of a OSTC-2N   };-)

If you want to try it,  there are two samples in the dives directory 
the *.dive files.


Regards.

Salva.


Salva,
Thank you for your kind response. I know nothing at all about the HW 
dive computers.


It looks like the OSTC2 has a miniUSB port. I would assume, with 
Subsurface, as with other dive computers, one selects Import - Import 
from dive computer. Then, in the download panel, one selects Heinrichs 
Weikamp and (in your case) OSTC 2N. I am not sure if Subsurface 
automatically sets the correct mount point. Then, If one selects 
Download, the profile is loaded into Subsurface. Until here, it is more 
or less the standard procedure with most dive computers. The profile is 
shown.


Now, if you say there are more than one file that needs downloading, 
exactly what do you mean? Are there many files, one for each dive? What 
do you mean by import in a single operation?. Or do you mean importing 
the dive files NOT from the OSTC2 but from a file on disk or some other 
media? When I import the sample file, there is no HW option in the 
dropdown list at the left bottom of the import dialogue. I need to 
select All file formats and then I can see the file and the import 
goes smoothly. The imported file has a lable Imported from OSCTS Tools.


A few specific questions:
1) I assume one can download dives directly from the OSTC without 
involving OSTC Tools. Is this correct?
2) Is it normal to import dives from OSTC Tools? It looks to me that the 
OSCTC tools route becomes relevant if one wants to import a whole dive 
log comprising many dives that were downloaded from the dive computer 
onto some other disk or computer. Is this correct?
3) Then I deduce that the OSTC Tools divelog on disk comprises mare than 
one file? Is this correct?
4) If so, do they represent different dives? Or do they represent 
different data (perhaps profile on one file, other dive information in 
another file?)
5) How does one tell Subsurface to load all the files in a single 
option? With a simple selection of several files in the file selection 
panel using Ctl-click or Shift-click?


I tried opening one of the OSTC dive logs with a text editor and it 
appears to be binary data. But it looks like Subsurface immediately 
recognises the file as OCTC.


We really need a OSTC item on the dropdown list of the file import panel.

I apologise I sound so really stupid, but I am not close to anyone with 
this equipment.

Kind regards, and thank you again for your time.
willem

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


dive site management

2015-05-01 Thread Jan Mulder

I'm seeing some strange behavior with respect to dive site management.

Starting Subsurface (current git master), my profile toolbar is 
disabled, ie. cannot select the icons. Now click  manage  (the dive 
site), and the top bar shows you are editing a dive site; which is 
wrong because I did not enter  or change any data yet (so it should show 
only the close button). Hit cancel. Now, the profile toolbar is 
enabled. However, when selecting an other dive, the divelist gets 
disabled (unselectable). Notice that I click trough a divelist having 
populated coordinates.


I know, this sounds like a bug report, but is surprises me that is has 
not yet been reported, and there are no recent code changes is this area.


So my question at this point: can some reproduce this behavior?

best,

--jan

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: Error during Compilation

2015-05-01 Thread Alangi Derick
Thanks very much, i am installing the missing stuffs now.
Regards
Alangi Derick Ndimnain


On Fri, May 1, 2015 at 1:19 PM, Dirk Hohndel d...@hohndel.org wrote:


 On May 1, 2015, at 05:05, Alangi Derick alangider...@gmail.com wrote:

 Hello,
  I had errors while trying to compile subsurface.

 Please read through what you pasted. It quite clearly and explicitly tells 
 you that you are missing several required packages. sqlite3, Qt5, libxslt, 
 libzip

 Are you still on that obscure Debian fork? I doubt you'll get things to work 
 there. It's not intended as a development platform for modern ui applications

 /D
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Want to subscribe

2015-05-01 Thread ahmed ALAA
I want to subscribe to the mailing list but I have a problem

-- 
Ahmed Alaa Mohamed
Student At Ain Shams University
Faculty of Engineering
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: Want to subscribe

2015-05-01 Thread Alangi Derick
Can you address the problem that you are facing?
Regards
Alangi Derick Ndimnain


On Fri, May 1, 2015 at 12:40 PM, ahmed ALAA ahmedalaa3307...@gmail.com wrote:
 I want to subscribe to the mailing list but I have a problem

 --
 Ahmed Alaa Mohamed
 Student At Ain Shams University
 Faculty of Engineering


 ___
 subsurface mailing list
 subsurface@subsurface-divelog.org
 http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: Want to subscribe

2015-05-01 Thread Dirk Hohndel


 On May 1, 2015, at 04:40, ahmed ALAA ahmedalaa3307...@gmail.com wrote:
 
 I want to subscribe to the mailing list but I have a problem

You are subscribed. Otherwise your email would not have gone through to the 
mailing list

/D
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: Want to subscribe

2015-05-01 Thread Alangi Derick
Exactly. From all indication, it shows he is subscribed. So maybe he
should just check again his credentials for log in. He might be
inputting something wrong.
Regards
Alangi Derick Ndimnain


On Fri, May 1, 2015 at 12:50 PM, Dirk Hohndel d...@hohndel.org wrote:


 On May 1, 2015, at 04:40, ahmed ALAA ahmedalaa3307...@gmail.com wrote:

 I want to subscribe to the mailing list but I have a problem

 You are subscribed. Otherwise your email would not have gone through to the 
 mailing list

 /D
 ___
 subsurface mailing list
 subsurface@subsurface-divelog.org
 http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: Want to subscribe

2015-05-01 Thread ahmed ALAA
Thanks for help.

On Fri, May 1, 2015 at 1:53 PM, Alangi Derick alangider...@gmail.com
wrote:

 Exactly. From all indication, it shows he is subscribed. So maybe he
 should just check again his credentials for log in. He might be
 inputting something wrong.
 Regards
 Alangi Derick Ndimnain


 On Fri, May 1, 2015 at 12:50 PM, Dirk Hohndel d...@hohndel.org wrote:
 
 
  On May 1, 2015, at 04:40, ahmed ALAA ahmedalaa3307...@gmail.com
 wrote:
 
  I want to subscribe to the mailing list but I have a problem
 
  You are subscribed. Otherwise your email would not have gone through to
 the mailing list
 
  /D
  ___
  subsurface mailing list
  subsurface@subsurface-divelog.org
  http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface




-- 
Ahmed Alaa Mohamed
Student At Ain Shams University
Faculty of Engineering
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Error during Compilation

2015-05-01 Thread Alangi Derick
Hello,
  I had errors while trying to compile subsurface. Below is a link
to the error on pastebin.com so if there are any helps or suggestions,
i will be very happy.

http://pastebin.com/tS1Zmut5

Regards
Alangi Derick Ndimnain
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: Error during Compilation

2015-05-01 Thread Dirk Hohndel


 On May 1, 2015, at 05:05, Alangi Derick alangider...@gmail.com wrote:
 
 Hello,
  I had errors while trying to compile subsurface. 

Please read through what you pasted. It quite clearly and explicitly tells you 
that you are missing several required packages. sqlite3, Qt5, libxslt, libzip  

Are you still on that obscure Debian fork? I doubt you'll get things to work 
there. It's not intended as a development platform for modern ui applications

/D
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Facebook support

2015-05-01 Thread Robert C. Helling
Hi,

it seems the move to cmake somehow broke the Facebook integration: It seems it 
is ifdefed with variable FBSUPPORT but even setting this from CMakeList.txt is 
not enough as somehow this does not pick up qt-ui/socialnetworks.cpp /.h and 
thus linking fails.

What do I have to do to make cmake compile that?

Best
Robert
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface