Re: [GSoC] Week 3 (Native Bluetooth support)

2015-07-14 Thread Jef Driesen
Dirk, Sorry for the slow response. Been busy with real life. On 2015-06-17 16:45, Dirk Hohndel wrote: I don't know which other apps use libdivecomputer, but the ones that I know about... Subsurface: happy to implement a Bluetooth backend, happy to use the existing libdivecomputer communication

Linux USB-to-serial driver ch341 not supported?

2015-07-14 Thread G Miller
Love the subsurface program. I bought a Suunto Zoop cable from Amazon: "USB download DIY cable Suunto Zoop Vyper Vytec Mosquito HelO2 works with Subsurface and Dive Log" at Amazon link http://www.amazon.com/gp/product/B00SYZIJXI?psc=1&redirect=true&ref_=oh_aui_detailpage_o01_s00 Sold by a Bulg

Re: [PATCH] Bluetooth support for Android

2015-07-14 Thread Thiago Macieira
On Monday 13 July 2015 23:53:56 Claudiu Olteanu wrote: > I attached some patches which can be used to fix the issues > related to Bluetooth connectivity on Android platforms. > > On Android, a connection to a service cannot be established > using a port. The first patch should fix this issue usi

Re: More Location Fixes.

2015-07-14 Thread Davide DB
Guys I could not follow you trough all the exchanges. I'm not sure I understood everything hence I'm not able to recap the workflow as I promised. I'm convinced that most of the misunderstanding originate from the fact that emails are the wrong tool for this. Tomaz save us all :) _

Re: [PATH] try to make people happy.

2015-07-14 Thread Tomaz Canabrava
On Tue, Jul 14, 2015 at 6:51 PM, Tomaz Canabrava wrote: > > From 8ae0b10a7de447d3e34d071c8e0d0dc89fafe505 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 14 Jul 2015 19:09:37 -0300 Subject: [PATCH 8/8] Fix selecting the first index The way a QCompleter works is that it grabs whatever

Re: More Location Fixes.

2015-07-14 Thread Rick Walsh
Good morning, On 15 Jul 2015 7:11 am, "Linus Torvalds" wrote: > > On Tue, Jul 14, 2015 at 1:19 PM, Tomaz Canabrava wrote: > > > >> If I start writing "Blu" and it auto-completes to "Blue Corner", then > >> an interface that says "but you mustn't choose that name, because that > >> will screw up

[PATH] try to make people happy.

2015-07-14 Thread Tomaz Canabrava
From 109fab3285bc116bde056ba40c9f33255fdce503 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 14 Jul 2015 18:43:47 -0300 Subject: [PATCH 7/7] Offer an option to just complete the text Make the kids fight no more. Signed-off-by: Tomaz Canabrava --- qt-models/divelocationmodel.cpp | 5

Re: More Location Fixes.

2015-07-14 Thread Linus Torvalds
On Tue, Jul 14, 2015 at 1:19 PM, Tomaz Canabrava wrote: > >> If I start writing "Blu" and it auto-completes to "Blue Corner", then >> an interface that says "but you mustn't choose that name, because that >> will screw up your GPS coordinates" is a horrible interface. > > uh... that's not what's h

Re: GSoC Status - Week 7 (VPM-B)

2015-07-14 Thread Robert C. Helling
Jan, > On 13 Jul 2015, at 22:53, Jan Darowski wrote: > > This week I wrote a Boyles law compensation and checked all the > calculations to find the root of the differences of results against > the original implementation. > > I found that there is a difference between the code and papers in one

Re: More Location Fixes.

2015-07-14 Thread Robert C. Helling
> On 14 Jul 2015, at 22:07, Linus Torvalds > wrote: > > On Tue, Jul 14, 2015 at 12:56 PM, Dirk Hohndel > wrote: >> [lots of things in capital letters] Gentlemen, as I said earlier, due to lack of time I did not fully read and understand the previous discussion (in

Re: GSoC Status - Week 7 (VPM-B)

2015-07-14 Thread Jan Darowski
Yes, I've seen this link first time you sent it. Parameters are not the problem here. We have a different tissue saturation calculation method, so results differ a little bit at the beginning of the ascent. So the first stop is a little bit later (6m), It has a big influence on the total deco time

Dive Location Management: getting a bit tired of it.

2015-07-14 Thread Tomaz Canabrava
Okay - those are the patches I did yesterday + today. Dirk asked me to focus on something else, so those are the patches that I did. I'll try to implement davide's mockup for the full dive site management later. From 39401bb643ef5bd959d0553341f203f828f2f0bc Mon Sep 17 00:00:00 2001 From: Tomaz Can

Re: More Location Fixes.

2015-07-14 Thread Tomaz Canabrava
On Tue, Jul 14, 2015 at 5:07 PM, Linus Torvalds < torva...@linux-foundation.org> wrote: > On Tue, Jul 14, 2015 at 12:56 PM, Dirk Hohndel wrote: > > > > If you pick a dive site from the list that is CLEARLY marked as having a > > GPS location and for most normal users will even be CLEARLY marked w

Re: More Location Fixes.

2015-07-14 Thread Linus Torvalds
On Tue, Jul 14, 2015 at 12:56 PM, Dirk Hohndel wrote: > > If you pick a dive site from the list that is CLEARLY marked as having a > GPS location and for most normal users will even be CLEARLY marked with > taxonomy data. So there is nothing confusing here. You picked a site with > GPS data. You g

Re: More Location Fixes.

2015-07-14 Thread Dirk Hohndel
On Tue, Jul 14, 2015 at 12:34:27PM -0700, Linus Torvalds wrote: > On Tue, Jul 14, 2015 at 12:15 PM, Dirk Hohndel wrote: > > > > Now I fly to Hawaii and go diving. I run the companion app. I am one of > > the people who first download the GPS fixes before they start editing the > > dives. > > You

Re: More Location Fixes.

2015-07-14 Thread Linus Torvalds
On Tue, Jul 14, 2015 at 12:15 PM, Dirk Hohndel wrote: > > Now I fly to Hawaii and go diving. I run the companion app. I am one of > the people who first download the GPS fixes before they start editing the > dives. You realize that in many places you can't even do this? Because you may not have i

Re: More Location Fixes.

2015-07-14 Thread Dirk Hohndel
On Tue, Jul 14, 2015 at 11:51:40AM -0700, Linus Torvalds wrote: > On Mon, Jul 13, 2015 at 4:42 PM, Dirk Hohndel wrote: > > > > 1. empty location field > > 1.1. no GPS data (so that means we had no dive site, I guess) > > 1.1.1, user types in name, picks one of the completions > > 1.1.2. user types

Re: More Location Fixes.

2015-07-14 Thread Linus Torvalds
On Mon, Jul 13, 2015 at 4:42 PM, Dirk Hohndel wrote: > > 1. empty location field > 1.1. no GPS data (so that means we had no dive site, I guess) > 1.1.1, user types in name, picks one of the completions > 1.1.2. user types in name, doesn't pick one of the completions > ... So quite frankly, I thi

Re: build fails: -DSSRF_CUSTOM_SERIAL / dc_serial_t

2015-07-14 Thread Lubomir I. Ivanov
On 14 July 2015 at 16:54, Dirk Hohndel wrote: > On Tue, Jul 14, 2015 at 01:02:42PM +0300, Lubomir I. Ivanov wrote: >> hello, >> >> i'm building libdc from the latest: >> git://subsurface-divelog.org/libdc > > which branch? master or Subsurface-testing or something else? > >> i've noticed that -DSS

Re: More Location Fixes.

2015-07-14 Thread Davide DB
On Tue, Jul 14, 2015 at 4:45 PM, Dirk Hohndel wrote: > > So the summary of those last couple of cases should be > > If the user picks an existing dive site from the auto completion no > existing data in that dive site is changed, but if that dive site has no > GPS data, then that data may be added

Re: More Location Fixes.

2015-07-14 Thread Dirk Hohndel
On Tue, Jul 14, 2015 at 04:33:12PM +0200, Davide DB wrote: > On Tue, Jul 14, 2015 at 4:24 PM, Dirk Hohndel wrote: > > > > This will require a significant amount of code change / code addition. > > I'm not saying it can't be done, but I'm not sure we'll have it in the > > next version. > > CANCELL

Re: More Location Fixes.

2015-07-14 Thread Davide DB
On Tue, Jul 14, 2015 at 4:24 PM, Dirk Hohndel wrote: > > This will require a significant amount of code change / code addition. > I'm not saying it can't be done, but I'm not sure we'll have it in the > next version. CANCELLED >> >> BRANCH #FOUR >> >> >> >> 1. empty location field >> >> >> >>

Re: More Location Fixes.

2015-07-14 Thread Dirk Hohndel
On Tue, Jul 14, 2015 at 04:05:57PM +0200, Davide DB wrote: > On Tue, Jul 14, 2015 at 3:27 PM, Dirk Hohndel wrote: > > > > And like it or not, our preferences do matter a bit > > here. > > Absolutely unnecessary statement. Nah - the occasional reminder that there are people here who have certain

Re: More Location Fixes.

2015-07-14 Thread Dirk Hohndel
On Tue, Jul 14, 2015 at 03:52:39PM +0200, Davide DB wrote: > > Happy Bastille day all, > > Happy Bastille to you :) I hear from my history teachers that it was a very happy day for the people at the Bstille back then as well... > > If the dive already has gps data, I can't see the value of autoc

Re: More Location Fixes.

2015-07-14 Thread Davide DB
On Tue, Jul 14, 2015 at 4:16 PM, Dirk Hohndel wrote: > > Scenario. I keep doing boat dives to the same sites (we'll be in Palau the > fourth time this fall and I bet we'll go back to the Blue Corner and many > other sites we've been to frequently). I use the phone app to track GPS > points, anyway

Re: More Location Fixes.

2015-07-14 Thread Dirk Hohndel
On Tue, Jul 14, 2015 at 11:40:06PM +1000, Rick Walsh wrote: > > > > BRANCH #THREE > > > > 1. empty location field > > > > 1.2. GPS data (e.g. from Subsurface web service - dive site with no name) > > 1.2.1. user types in name, picks one of the completions > > > > Use cases #3 is more complicated. I

Re: More Location Fixes.

2015-07-14 Thread Davide DB
On Tue, Jul 14, 2015 at 3:27 PM, Dirk Hohndel wrote: > > And like it or not, our preferences do matter a bit > here. Absolutely unnecessary statement. I'm not trying to impose my view but just contributing with my view for the sake of a better application. >> BRANCH #FIVE >> >> 1. empty locatio

ok, who was that joker...?

2015-07-14 Thread Dirk Hohndel
Someone just tried to sign up for a cloud account with subsurf...@hohndel.org - the mailing list address :-) Those people with IP addresses in Germany... which ISP does reverse lookup to mwn.de, anyway? Ahhh, some googling shows that's IP addresses that the Ludwig-Maximilians-Universitaet Muenchen

Re: build fails: -DSSRF_CUSTOM_SERIAL / dc_serial_t

2015-07-14 Thread Dirk Hohndel
On Tue, Jul 14, 2015 at 01:02:42PM +0300, Lubomir I. Ivanov wrote: > hello, > > i'm building libdc from the latest: > git://subsurface-divelog.org/libdc which branch? master or Subsurface-testing or something else? > i've noticed that -DSSRF_CUSTOM_SERIAL is need so that: > rc = hw_ostc_parser_c

Re: More Location Fixes.

2015-07-14 Thread Davide DB
On Tue, Jul 14, 2015 at 3:40 PM, Rick Walsh wrote: > Happy Bastille day all, Happy Bastille to you :) > > If the dive already has gps data, I can't see the value of autocompleting > the name based on other names, unless the options are limited to sites at > about the same location, or sites tha

Re: GPS positions with companion app

2015-07-14 Thread Dirk Hohndel
On Tue, Jul 14, 2015 at 07:30:00AM +0200, Salvador Cuñat wrote: > Good morning. > > The gps import has worked fine for me with last dives. > > ... > processing gpsfix @ "lun. 13 de jul. de 2015 9:34 " which is withing six > hours of dive from "lun. 13 de jul. de 2015 10:01 " until "lun. 13 de jul

Re: More Location Fixes.

2015-07-14 Thread Rick Walsh
Happy Bastille day all, On 14 Jul 2015 11:10 pm, "Davide DB" wrote: > > On Tue, Jul 14, 2015 at 1:42 AM, Dirk Hohndel wrote: >> >> >> So that's 16 scenarios so far... who can think of more? >> > > Hi Dirk, > Examples by Linus caught me off guard. > At this point I really do not know what's the c

Re: More Location Fixes.

2015-07-14 Thread Dirk Hohndel
On Tue, Jul 14, 2015 at 03:10:30PM +0200, Davide DB wrote: > On Tue, Jul 14, 2015 at 1:42 AM, Dirk Hohndel wrote: > > > > > So that's 16 scenarios so far... who can think of more? > > > > > Hi Dirk, > Examples by Linus caught me off guard. > At this point I really do not know what's the correct b

Re: More Location Fixes.

2015-07-14 Thread Davide DB
On Tue, Jul 14, 2015 at 1:42 AM, Dirk Hohndel wrote: > > So that's 16 scenarios so far... who can think of more? > > Hi Dirk, Examples by Linus caught me off guard. At this point I really do not know what's the correct behavior. I thought we depict possible scenario more than one month ago but th

Re: GSoC Status - Week 7 (Customizable prints)

2015-07-14 Thread Lubomir I. Ivanov
On 14 July 2015 at 15:08, Gehad Elrobey wrote: > > > On Tue, Jul 14, 2015 at 2:01 PM, Lubomir I. Ivanov > wrote: >> >> On 14 July 2015 at 14:51, Gehad Elrobey wrote: >> > >> > >> > On Tue, Jul 14, 2015 at 1:46 PM, Lubomir I. Ivanov >> > wrote: >> >> >> >> On 14 July 2015 at 14:43, Lubomir I. Iv

Re: GSoC Status - Week 7 (Customizable prints)

2015-07-14 Thread Gehad Elrobey
On Tue, Jul 14, 2015 at 2:01 PM, Lubomir I. Ivanov wrote: > On 14 July 2015 at 14:51, Gehad Elrobey wrote: > > > > > > On Tue, Jul 14, 2015 at 1:46 PM, Lubomir I. Ivanov > > wrote: > >> > >> On 14 July 2015 at 14:43, Lubomir I. Ivanov > wrote: > >> > On 14 July 2015 at 14:38, Gehad Elrobey >

Re: GSoC Status - Week 7 (Customizable prints)

2015-07-14 Thread Lubomir I. Ivanov
On 14 July 2015 at 14:51, Gehad Elrobey wrote: > > > On Tue, Jul 14, 2015 at 1:46 PM, Lubomir I. Ivanov > wrote: >> >> On 14 July 2015 at 14:43, Lubomir I. Ivanov wrote: >> > On 14 July 2015 at 14:38, Gehad Elrobey wrote: >> >>> >> >>> 3) i get no text / data in the tables under the profiles. c

Re: GSoC Status - Week 7 (Customizable prints)

2015-07-14 Thread Gehad Elrobey
On Tue, Jul 14, 2015 at 1:46 PM, Lubomir I. Ivanov wrote: > On 14 July 2015 at 14:43, Lubomir I. Ivanov wrote: > > On 14 July 2015 at 14:38, Gehad Elrobey wrote: > >>> > >>> 3) i get no text / data in the tables under the profiles. could this > >>> be a bug on my end? > >>> > >> > >> I am not s

Re: GSoC Status - Week 7 (Customizable prints)

2015-07-14 Thread Lubomir I. Ivanov
On 14 July 2015 at 14:43, Lubomir I. Ivanov wrote: > On 14 July 2015 at 14:38, Gehad Elrobey wrote: >>> >>> 3) i get no text / data in the tables under the profiles. could this >>> be a bug on my end? >>> >> >> I am not sure why this happens, it works correctly for me, can you send me >> the dive

Re: GSoC Status - Week 7 (Customizable prints)

2015-07-14 Thread Lubomir I. Ivanov
On 14 July 2015 at 14:38, Gehad Elrobey wrote: > > > On Tue, Jul 14, 2015 at 1:29 PM, Lubomir I. Ivanov > wrote: >> >> On 14 July 2015 at 13:19, Gehad Elrobey wrote: >> > >> > On Jul 14, 2015 12:15 PM, "Lubomir I. Ivanov" >> > wrote: >> >> >> >> On 14 July 2015 at 00:16, Gehad Elrobey wrote: >

Re: GSoC Status - Week 7 (Customizable prints)

2015-07-14 Thread Lubomir I. Ivanov
On 14 July 2015 at 14:29, Lubomir I. Ivanov wrote: > On 14 July 2015 at 13:19, Gehad Elrobey wrote: >> >> On Jul 14, 2015 12:15 PM, "Lubomir I. Ivanov" wrote: >>> >>> On 14 July 2015 at 00:16, Gehad Elrobey wrote: >>> > >>> > Should I convert the dive profile to QImage during previewing only or

Re: GSoC Status - Week 7 (Customizable prints)

2015-07-14 Thread Gehad Elrobey
On Tue, Jul 14, 2015 at 1:29 PM, Lubomir I. Ivanov wrote: > On 14 July 2015 at 13:19, Gehad Elrobey wrote: > > > > On Jul 14, 2015 12:15 PM, "Lubomir I. Ivanov" > wrote: > >> > >> On 14 July 2015 at 00:16, Gehad Elrobey wrote: > >> > > >> > Should I convert the dive profile to QImage during pr

Re: GSoC Status - Week 7 (Customizable prints)

2015-07-14 Thread Lubomir I. Ivanov
On 14 July 2015 at 13:19, Gehad Elrobey wrote: > > On Jul 14, 2015 12:15 PM, "Lubomir I. Ivanov" wrote: >> >> On 14 July 2015 at 00:16, Gehad Elrobey wrote: >> > >> > Should I convert the dive profile to QImage during previewing only or >> > should >> > I convert it during actual printing also w

Re: GSoC Status - Week 7 (Customizable prints)

2015-07-14 Thread Lubomir I. Ivanov
On 14 July 2015 at 13:19, Gehad Elrobey wrote: > > On Jul 14, 2015 12:15 PM, "Lubomir I. Ivanov" wrote: >> >> On 14 July 2015 at 00:16, Gehad Elrobey wrote: >> > >> > Should I convert the dive profile to QImage during previewing only or >> > should >> > I convert it during actual printing also w

Re: build fails: -DSSRF_CUSTOM_SERIAL / dc_serial_t

2015-07-14 Thread Lubomir I. Ivanov
On 14 July 2015 at 13:02, Lubomir I. Ivanov wrote: > hello, > > i'm building libdc from the latest: > git://subsurface-divelog.org/libdc > > i've noticed that -DSSRF_CUSTOM_SERIAL is need so that: > rc = hw_ostc_parser_create (&parser, data->context, data->deviceid, 0); > works in libdc_buffer_par

Re: GSoC Status - Week 7 (Customizable prints)

2015-07-14 Thread Lubomir I. Ivanov
On 14 July 2015 at 13:20, Lubomir I. Ivanov wrote: > On 14 July 2015 at 13:19, Gehad Elrobey wrote: >> >> On Jul 14, 2015 12:15 PM, "Lubomir I. Ivanov" wrote: >>> >>> On 14 July 2015 at 00:16, Gehad Elrobey wrote: >>> > >>> > Should I convert the dive profile to QImage during previewing only or

Re: GSoC Status - Week 7 (Customizable prints)

2015-07-14 Thread Lubomir I. Ivanov
On 14 July 2015 at 00:16, Gehad Elrobey wrote: > > Should I convert the dive profile to QImage during previewing only or should > I convert it during actual printing also which will affect the printing > quality? > i can't build ATM, but i think the logic here is a bit wrong: https://github.com/G

build fails: -DSSRF_CUSTOM_SERIAL / dc_serial_t

2015-07-14 Thread Lubomir I. Ivanov
hello, i'm building libdc from the latest: git://subsurface-divelog.org/libdc i've noticed that -DSSRF_CUSTOM_SERIAL is need so that: rc = hw_ostc_parser_create (&parser, data->context, data->deviceid, 0); works in libdc_buffer_parser() (libdivecomputer.c) with the extra argument. i understand t

Re: OSTCTools import support

2015-07-14 Thread Salvador Cuñat
Hi Anton, i'm on the phone, so expect every kind of sintax errors. El 12/07/2015 20:53, "Salvador Cuñat" escribió: > > > > > > Looks like the first byte is a version(?) marker to. 0x64 in the old > > files in dives/ and 0x65 in the ones posted on the forum. > > > > Yes it's correct, but this byte