[Viking-devel] Modularization(plugin)... again

2018-08-21 Thread Guilhem Bonnefille
Hi,

Once again, I decide to work on modularizing Viking. I did relative
success already:
https://github.com/guyou/viking/tree/feature-plugins

In order to go one more step forward, I have to reduce the number of
occurrences of "#ifdef HAVE_XXX".

To do so, I identified two possible solutions.

1) convert Mapnik feature as a MapSource.
This will allow to move this *huge* feature as a dynamic plugin.

2) merge VikLayer and VikLayerInterface.
I think this is something I would made when I refactor part of viking,
years ago. But I was too young or too lazy. :-)
Doing such refactoring will allow to have all VikLayer based class as
dynamic modules.

3) anything else? Any idea?


But before doing this, I wish to be sure nobody is working on similar
feature or similar significant refactoring.

Other though: should we integrate modularization/plugin into 1.7 or 2.0?
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Waymarked Trails

2017-05-07 Thread Guilhem Bonnefille
Hi,

I added configuration example for Waymarked Trails in
https://sourceforge.net/p/viking/wikiallura/Maps/. Should we add these
to the example file delivered with Viking distribution?


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] RFC: Started work on pluginification

2015-10-28 Thread Guilhem Bonnefille
Hi,

Since my recent work on packaging Viking 1.6 for Debian, I realized
that pluginification is now really needed, at least to allow users
deciding which feature of viking is needed.

So, I started a feature branch for that work:
https://github.com/guyou/viking/tree/feature-plugins

This is a long-term work and it is quite in experimental stage
currently. But it stars working.
The current solution is based on raw dynamic libraries with the help of gmodule.
https://developer.gnome.org/glib/stable/glib-Dynamic-Loading-of-Modules.html

A possible future evolution of this work could be based on libpeas:
https://developer.gnome.org/libpeas/stable/

I did the most easier part, converting simple "modules" as plugins
like google, terraserver, bluemarble. Now, extension points should be
created in the core of viking in order to allow dynamic managment of
certain features, like menu entries.

Feel free to give it a try, review code and share feedback.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] [ANN] Debian package for Viking 1.6

2015-09-16 Thread Guilhem Bonnefille
Hi,

Bernd Zeimetz and I are really proud to announce the availability of a
Debian package for Viking 1.6.

It was released yesterday, so only available yet for "unstable" version.

https://packages.qa.debian.org/v/viking.html

Regards.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991=/4140
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Windows - Removing GPSBabel from the Viking Install

2014-10-06 Thread Guilhem Bonnefille
Hi,

I'm not a user of the Windows version of viking. But, as far as I
know, Windows users are generally less skilled than Linux ones (mostly
because unskilled users use the operating system already installed in
their computer). I fear that such user will not understand why viking
is not working after installation.

Can we package an old but already packaged version of gpsbabel?

I'm not familiar with the installer used to package viking for
Windows. If it's not too difficult, I would suggest to still package
gpsbabel within our package, plus an option to disable this component.
Doing so, Windows users will be able to install any version of
gpsbabel they want, but an unskilled user will have a functionnal
version of viking without any effort.

Am'I out of topic?


2014-10-05 15:28 GMT+02:00 Robert Norris rw_nor...@hotmail.com:
 Presently GPSBabel 1.4.4 is packaged with Viking for Windows.

 I plan to remove GPSBabel from Viking's windows packaging, so the 
 responsibility will be with the user to install it separately.
 I have code to enable the user to specify an alternate GPSBabel's runtime 
 location.
 By default Viking will attempt to use the normal locations for GPSBabel's 
 Windows install, so user's shouldn't need to do anything.

 GPSBabel 1.5 onwards uses Qt libraries internally so the DLL dependencies has 
 changed.
 It's not overly difficult to continue to distribute this version with Viking, 
 but I believe that should be the responsibility of the user.

 If there are no reasoned objections to this, I will upload the code and this 
 will be how Viking 1.6 will be packaged for Windows.

 NB: Being able to specify the location of GPSBabel may also make any MacOS 
 usage easier too.


 Be Seeing You - Rob.
 If at first you don't succeed,
 then skydiving isn't for you.
 --
 Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
 Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
 Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
 Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
 http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/



-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] U.S. Releases Enhanced Shuttle Land Elevation Data

2014-09-25 Thread Guilhem Bonnefille
Hi,

A friend of mine pointed me this news:
http://www.jpl.nasa.gov/news/news.php?release=2014-321

In short: U.S. will release a worldwide high-resolution DEM.
Currently, the worldwide data has a resolution of 3 arc-seconds (90m)
and the new dataset will have a 1 arc-second (30m) resolution. But
this is not already done.

Around this topic, I realized that Europe has an already
high-resolution dataset:
http://www.eea.europa.eu/data-and-maps/data/eu-dem
Does someone already worked on improving the vikdemlayer module to
allow a selection of such dataset?

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Relative paths (Was: Viking 1.5 Released)

2013-11-07 Thread Guilhem Bonnefille
2013/10/29 Robert Norris rw_nor...@hotmail.com

 Then to support relative paths, change to the directory when opening a
 .vik file but then simply return to the previous working directory (which
 it does not do ATM) so there no unintentional side effects.


I think/feel that playing with current working directory can have
hard-to-understand behaviors. I'm really not comfortable with such idea as
viking also uses more and more multi-threading.

What about simply modifying the code that compute the path of a file to
open from a .vik file? For example, using
g_path_is_absolutehttps://developer.gnome.org/glib/2.37/glib-Miscellaneous-Utility-Functions.html#g-path-is-absoluteto
decide if the path is absolute or not and concat the dirname of the
.vik
file if needed?

If you describe/commit a use case (I'm not sure to finelly understand the
issue), I can try to do the change myself.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Re: [Viking-devel] Export via GPSbabel

2013-11-05 Thread Guilhem Bonnefille
Between 04b23911c20c990968128920ad2252f529fb8f3d
and 2598086bbc61585ad4cb61ebd23b67fa09f00207 there is my change on autogen.


2013/11/5 Robert Norris rw_nor...@hotmail.com

 I can reproduce this on my Debian unstable system.

 I seems it's my commit 04b23911c20c990968128920ad2252f529fb8f3d, that
 breaks it, but only on a totally clean clone.

 How changing the .gitignore file and some text in the INSTALL file effects
 the build system is beyond me.

 I'm not quite sure why the INSTALL file is under our change control when
 one of the autotools things generates it.

 I will investigate further later on tonight.

 Be Seeing You - Rob.
 If at first you don't succeed,
 then skydiving isn't for you.


 
 Date: Tue, 5 Nov 2013 17:26:13 +0100
 From: wolfgang.zt...@web.de
 To: guilhem.bonnefi...@gmail.com
 CC: viking-devel@lists.sourceforge.net
 Subject: Re: [Viking-devel] Export via GPSbabel


 Guilhem Bonnefille wrote:

  Hi all,

 Hi Guilhem,

 which system are you working with?
 at least on fedora19 and ubuntu13.10 it doesn't work.


 *fresh* git clone: (ubuntu1310)
 git clone http://git.code.sf.net/p/viking/code viking_sf
 cd viking_sf
 ./autogen.sh
 ...
 config.status: error: cannot find input file: `src/Makefile.in'




 this is my last good compile:
 git clean -x -f
 git checkout 2598086bbc61585ad4cb61ebd23b67fa09f00207
 autogen.sh
 make
 sudo make install
 OK!


 -rwxr-xr-x 1 root root 4418832 Nov  5 17:23 /usr/local/bin/viking
 viking --version
 viking 1.5
 Copyright (c) 2003-2008 Evan Battaglia
 Copyright (c) 2008-2012 Viking's contributors


 kind regards
 Wolfgang




  Since few years, I always missed something in viking: the ability to
  directly export data into the file format expected by my device.
 
  After few days of work and few more days to hesitate, I finally
  pushed my changes into master.
 
  There is many things to do now. For example, allowing such export
  feature at the File-Export level. I also realized that this is one
  more export sub-menu entry. From the simple user point of view, a
  single Export dialog would certainly be better, allowing export to
  GPX, KML and any other file format known by gpsbabel or viking.
 
  A new refactoring needed for future.




 --
 November Webinars for C, C++, Fortran Developers
 Accelerate application performance with scalable programming models.
 Explore
 techniques for threading, error checking, porting, and tuning. Get the most
 from the latest Intel processors and coprocessors. See abstracts and
 register
 http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/





-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

[Viking-devel] Export via GPSbabel

2013-11-04 Thread Guilhem Bonnefille
Hi all,

Since few years, I always missed something in viking: the ability to
directly export data into the file format expected by my device.

After few days of work and few more days to hesitate, I finally pushed my
changes into master.

There is many things to do now. For example, allowing such export feature
at the File-Export level. I also realized that this is one more export
sub-menu entry. From the simple user point of view, a single Export
dialog would certainly be better, allowing export to GPX, KML and any other
file format known by gpsbabel or viking.

A new refactoring needed for future.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Re: [Viking-devel] can't build master

2013-10-04 Thread Guilhem Bonnefille
Thanks for the advise.
The issue seems related to commit
http://sourceforge.net/p/viking/code/ci/c6acf18ddc123a52e92f0757310cefc9292b46a7/

I suspect Robert Norris missed a file in his commit.


2013/10/4 Rob faorg-li...@yahoo.co.uk

 Hi,

 I don't seem to be able to build master:

 make[3]: *** No rule to make target `datasource_url.c', needed by
 `datasource_url.o'.  Stop.

 This file isn't present.

 thanks,
 Rob


 --
 October Webinars: Code for Performance
 Free Intel webinars can help you accelerate application performance.
 Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
 from
 the latest Intel processors and coprocessors. See abstracts and register 
 http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/




-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

[Viking-devel] [PATCH] Update autogen.sh

2013-09-29 Thread Guilhem Bonnefille
It seems that gnome-autogen.sh does not support recent automake versions.
In the same time, it seems that a more standard tool exists: autoreconf.

Signed-off-by: Guilhem Bonnefille guilhem.bonnefi...@gmail.com

---
 autogen.sh   | 48 
 configure.ac |  4 +++-
 2 files changed, 31 insertions(+), 21 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index a5b137d..e7faa52 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,24 +1,32 @@
 #!/bin/sh
 # Run this to generate all the initial makefiles, etc.
 
-srcdir=`dirname $0`
-test -z $srcdir  srcdir=.
-
-PKG_NAME=viking
-
-(test -f $srcdir/configure.ac \
-   test -f $srcdir/README \
-   test -d $srcdir/src) || {
-echo -n **Error**: Directory \`$srcdir\' does not look like the
-echo  top-level $PKG_NAME directory
-exit 1
-}
-
-which gnome-autogen.sh || {
-echo You need to install gnome-common module and make
-echo sure the gnome-autogen.sh script is in your \$PATH.
-exit 1
-}
-
-ACLOCAL_FLAGS=$ACLOCAL_FLAGS -I m4 REQUIRED_AUTOMAKE_VERSION=1.8 
USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh
+test -n $srcdir || srcdir=`dirname $0`
+test -n $srcdir || srcdir=.
+
+olddir=`pwd`
+cd $srcdir
+
+INTLTOOLIZE=`which intltoolize`
+if test -z $INTLTOOLIZE; then
+echo *** No intltoolize found, please install the intltool package 
***
+exit 1
+fi
+
+AUTORECONF=`which autoreconf`
+if test -z $AUTORECONF; then
+echo *** No autoreconf found, please install it ***
+exit 1
+fi
+
+if test -z `which autopoint`; then
+echo *** No autopoint found, please install it ***
+exit 1
+fi
+
+autopoint --force
+AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install 
--verbose
+
+cd $olddir
+test -n $NOCONFIGURE || $srcdir/configure $@
 
diff --git a/configure.ac b/configure.ac
index d1dad54..5e514d7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,9 @@ 
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,$GETTEXT_PACKAGE,[Gettext package name])
 
 AM_GLIB_DEFINE_LOCALEDIR(LOCALEDIR)
 
-AM_GLIB_GNU_GETTEXT
+AM_GNU_GETTEXT_VERSION([0.17])
+AM_GNU_GETTEXT([external])
+
 IT_PROG_INTLTOOL([0.35.0])
 
 AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
-- 
tg: (4f55650..) t/build/update-autogen (depends on: master)

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] [PATCH] Update autogen.sh

2013-09-29 Thread Guilhem Bonnefille
Hi all,

It is both a minor and a significant change to update the build system. So,
before applying this patch I prefer to have some review.


2013/9/29 Guilhem Bonnefille guilhem.bonnefi...@gmail.com

 It seems that gnome-autogen.sh does not support recent automake versions.
 In the same time, it seems that a more standard tool exists: autoreconf.

 Signed-off-by: Guilhem Bonnefille guilhem.bonnefi...@gmail.com

 ---
  autogen.sh   | 48 
  configure.ac |  4 +++-
  2 files changed, 31 insertions(+), 21 deletions(-)



-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

[Viking-devel] License dialog (Was: Viking 1.5 Plan to Release by Sept 6th)

2013-09-13 Thread Guilhem Bonnefille
Hi,

2013/9/13 Robert Norris rw_nor...@hotmail.com

 Well, I'm nearing completion for 1.5 - which will now be after this coming
 weekend - to give anyone a chance to use the latest source.

 There is one last item I would appreciate feedback on (with this patch
 attached) - this hasn't be applied to the code repository yet...

 Originally I noticed I had spelt license 'wrong' - I had used
 licence''. So I was just going to align the spelling, but then it got me
 thinking:

 Why do we introduce the About this License dialog, every time one adds a
 map?

 No other software as far as I know generates such a warning with an
 interruption to one's work flow.

 So instead I just shifted it to be an 'About' menu action from the map
 layer.

 Thus this license information is always available, which it wasn't before.


I introduced this About this license dialog. Originally, I do so because
it seems really really important to ensure user is informed about the
license related to data he works with. I don't know how other similar tools
treat such topic. I just know that some other tools working with license
(like Eclipse when you install plugins) insert a dialog where the user must
accept or decline license, even open-source related licenses.

It is good to have such info in a About menu, but this cannot be the only
solution as it is less informative: a not skilled user won't open such
dialog to discover subtilities of map's license, IMHO.

Perhaps can we keep an in-the-flow dialog, but storing the choice on disk
in order to avoid answering the same question again and again.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127iu=/4140/ostg.clktrk___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Re: [Viking-devel] Viking 1.5 Plan to Release by Sept 6th

2013-08-30 Thread Guilhem Bonnefille
If code is freezed, can I suggest to start translation process?
We have to update and upload viking.pot to launchpad.


2013/8/30 Robert Norris rw_nor...@hotmail.com

  I've updated the master source code in SourceForge with all the code
 changes now.

 Note if you have been following the code in SourceForge the git location
 has changed (beyond our control - part of the SourceForge update)

 It is now at

 git://git.code.sf.net/p/viking/code

 To change an existing clone, this command should point it to the right place:

 git remote set-url origin git://git.code.sf.net/p/viking/code


 TODO:

 Work on Windows build.
 Update User Guide for new/modified features.



 Be Seeing You - Rob. If at first you don't succeed, then skydiving isn't
 for you.

 --
 From: rw_nor...@hotmail.com
 To: viking-devel@lists.sourceforge.net
 Date: Fri, 23 Aug 2013 01:07:24 +0100
 Subject: [Viking-devel] Viking 1.5 Plan to Release by Sept 6th


 A brief message to let you know my plan, which is to release version 1.5
 in time for the OSM State of the Map gathering.

 It will include merging 5 branches on my github account (
 http://github.com/rnorris/viking/compare):

- TrackListhttps://github.com/rnorris/viking/compare/master...TrackList
**
-  
 TrackLabellinghttps://github.com/rnorris/viking/compare/master...TrackLabelling
**
-  
 StatusBarInfoControlhttps://github.com/rnorris/viking/compare/master...StatusBarInfoControl
**
-  
 DownloadDecompressionhttps://github.com/rnorris/viking/compare/master...DownloadDecompression
**
-  TransformUtils
https://github.com/rnorris/viking/compare/master...TransformUtils



 A few tidy up patches + of course the latest translations.


 Be Seeing You - Rob. If at first you don't succeed, then skydiving isn't
 for you.

 --
 Introducing Performance Central, a new site from SourceForge and
 AppDynamics. Performance Central is your source for news, insights,
 analysis and resources for efficient Application Performance Management.
 Visit us today!
 http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
 ___ Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel Viking home
 page: http://viking.sf.net/


 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/




-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

[Viking-devel] display of compiled in libraries

2013-08-27 Thread Guilhem Bonnefille
Hi all,

Just some though about the commit Quick hack method to enable display of
compiled in libraries

http://sourceforge.net/p/viking/code/ci/233921933ae1f117a1a7dce1bf395135b98e914e/


I'm not sure to understand why we need to display such technical info into
a dialog like About (IMHO designed for natural users, not skilled
ones).

What about simply displaying such information in standard output when debug
switch (-d) is active?

Furthermore, I'm quite sure we can improve details by using more Autoconf
variables. Could it be interesting to look at this?
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

[Viking-devel] Fwd: Norwegian maps

2013-08-19 Thread Guilhem Bonnefille
Hello list,

I transfer you a mail I received and took into account. I really like the
idea of using phone number prefixes for numbering contributed map sources.

-- Forwarded message --
From: Egil Hjelmeland pri...@egil-hjelmeland.no
Date: 2013/8/19
Subject: Norwegian maps
To: guilhem.bonnefi...@gmail.com


 Hi
I managed to add Norwegian map services to Viking. Here is my *maps.xml:*


objects
  object class=VikSlippyMapSource
property name=labelStatkart topo raster/property
property name=hostnameopencache.statkart.no/property
property
name=url/gatekeeper/gk/gk.open_gmaps?layers=toporaster2amp;zoom=%damp;x=%damp;y=%d/property
property name=id4700/property
  /object
  object class=VikSlippyMapSource
property name=labelStatkart topo/property
property name=hostnameopencache.statkart.no/property
property
name=url/gatekeeper/gk/gk.open_gmaps?layers=topo2amp;zoom=%damp;x=%damp;y=%d/property
property name=id4701/property
  /object
  object class=VikSlippyMapSource
property name=labelStatkart sjøkart/property
property name=hostnameopencache.statkart.no/property
property
name=url/gatekeeper/gk/gk.open_gmaps?layers=sjo_hovedkart2amp;zoom=%damp;x=%damp;y=%d/property
property name=id4702/property
  /object
/objects

(I opted for id = 47xx, matching phone country code for Norway)

I hope you will add this to
http://sourceforge.net/apps/mediawiki/viking/index.php?title=Maps#By_region.
I don't care to register as a wiki user for this single edit.

Best regards
Egil Hjelmeland.




-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

[Viking-devel] Gnome Maps and GeoClue 2

2013-08-04 Thread Guilhem Bonnefille
Hi,

Just a little email to share a recent discovery. The Gnome project started
a Maps application[1] and revive GeoClue[2].

[1] https://wiki.gnome.org/Maps
[2] http://cgit.freedesktop.org/geoclue

The first event brings a new competitor to viking, depending the goals of
the project. We can also consider the opportunity to revise the viking's
goals in order to avoid duplication and start collaboration with this
project. But we can stay as is and consider viking is a standalone
application, a Gtk application and not a Gnome application.

The second event can be the opportunity to add a new backend to viking. I
already have such an idea, but never bring it to reality.

Feel free to comment and advertise, any GPS or Map application is an
opportunity for viking to evolve.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

[Viking-devel] Renew routing feature: refine route, the video

2013-07-15 Thread Guilhem Bonnefille
Hi all,

Once again, a mail to inform I published a video. This time, this video
present a not yet published feature: the ability to refine a route. As
shown in the video, the main concept is to draw a simple route,
representing the expected journey, and then request a routing engine to
obtain a refined version of the journey.

http://youtu.be/DOVcPt7hiTU

I hope you will find some time to check this video as I need your feedback,
even before releasing code. One consideration is the name of the feature:
I called it refine but it is probably not user-friendly enough. So I'm
really interested in your opinions.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

[Viking-devel] Renew routing feature: directions routing, the video

2013-07-08 Thread Guilhem Bonnefille
Another video, to expose the Directions Routing feature.

http://www.youtube.com/watch?v=zhJWzIXMwbAhttps://www.youtube.com/watch?v=zhJWzIXMwbA

Feel free to comment or redo the video.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

[Viking-devel] [PATCH] Add function to refine a track from routing service

2013-06-23 Thread Guilhem Bonnefille
This patch add a menu entry for track/route in order to request a
refined version of the track/route.

The user is now able to plan a journey by creating a simple track/route
and then request a routing engine to refine this track/route.
This is a simple solution to extend route finder tool, adding 'via'
points in the journey.

Signed-off-by: Guilhem Bonnefille guilhem.bonnefi...@gmail.com

---
 help/C/viking.xml |4 ++
 src/vikroutingengine.c|   48 
 src/vikroutingengine.h|8 +++-
 src/vikroutingwebengine.c |  106 +
 src/viktrwlayer.c |   69 +
 5 files changed, 233 insertions(+), 2 deletions(-)

diff --git a/help/C/viking.xml b/help/C/viking.xml
index f07a11d..e434db0 100644
--- a/help/C/viking.xml
+++ b/help/C/viking.xml
@@ -2485,6 +2485,10 @@ Accept: */*
   listitemparathe part of the URL setting the end point 
location, parametrized in the spirit of C printf format, with 2 %s for 
coordinates (eg. amp;stop=%s,%s)/para/listitem
 /varlistentry
 varlistentry
+  termurl-via-ll/term
+  listitemparathe part of the URL setting via point location, 
parametrized in the spirit of C printf format, with 2 %s for coordinates (eg. 
amp;via=%s,%s)/para/listitem
+/varlistentry
+varlistentry
   termurl-start-dir/term
   listitemparathe part of the URL setting the starting point 
location for direction based routing, parametrized in the spirit of C printf 
format, with one %s for direction (eg. amp;start=%s)/para

para(Optional)/para/listitem
diff --git a/src/vikroutingengine.c b/src/vikroutingengine.c
index 5e20b4a..8da3af7 100644
--- a/src/vikroutingengine.c
+++ b/src/vikroutingengine.c
@@ -141,9 +141,13 @@ vik_routing_engine_class_init ( VikRoutingEngineClass 
*klass )
 
   routing_class = VIK_ROUTING_ENGINE_CLASS ( klass );
   routing_class-find = NULL;
+
   routing_class-supports_direction = NULL;
   routing_class-get_cmd_from_directions = NULL;
 
+  routing_class-refine = NULL;
+  routing_class-supports_refine = NULL;
+
   pspec = g_param_spec_string (id,
Identifier,
The identifier of the routing engine,
@@ -297,3 +301,47 @@ vik_routing_engine_get_cmd_from_directions ( 
VikRoutingEngine *self, const gchar
 
   return klass-get_cmd_from_directions( self, start, end );
 }
+
+/**
+ * vik_routing_engine_refine:
+ * @self: self object
+ * @vtl: layer where to create new track
+ * @vt: the simple route to refine
+ *
+ * Retrieve a route refining the @vt track/route.
+ *
+ * A refined route is computed from @vt.
+ * The route is compute from first trackpoint to last trackpoint,
+ * and going via all intermediate trackpoints.
+ *
+ * Returns: indicates success or not.
+ */
+int
+vik_routing_engine_refine ( VikRoutingEngine *self, VikTrwLayer *vtl, VikTrack 
*vt )
+{
+  VikRoutingEngineClass *klass;
+
+  g_return_val_if_fail ( VIK_IS_ROUTING_ENGINE (self), 0 );
+  klass = VIK_ROUTING_ENGINE_GET_CLASS ( self );
+  g_return_val_if_fail ( klass-refine != NULL, 0 );
+
+  return klass-refine ( self, vtl, vt );
+}
+
+/**
+ * vik_routing_engine_supports_refine:
+ * @self: routing engine
+ *
+ * Returns: %TRUE if this engine supports the refine of track
+ */
+gboolean
+vik_routing_engine_supports_refine ( VikRoutingEngine *self )
+{
+  VikRoutingEngineClass *klass;
+
+  g_return_val_if_fail ( VIK_IS_ROUTING_ENGINE (self), FALSE );
+  klass = VIK_ROUTING_ENGINE_GET_CLASS ( self );
+  g_return_val_if_fail ( klass-supports_refine != NULL, FALSE );
+
+  return klass-supports_refine ( self );
+}
diff --git a/src/vikroutingengine.h b/src/vikroutingengine.h
index a5da970..7762c73 100644
--- a/src/vikroutingengine.h
+++ b/src/vikroutingengine.h
@@ -45,9 +45,11 @@ typedef struct _VikRoutingEngineClass VikRoutingEngineClass;
 struct _VikRoutingEngineClass
 {
   GObjectClass object_class;
-  int (*find)(VikRoutingEngine *self, VikTrwLayer *vt, struct LatLon start, 
struct LatLon end);
+  int (*find)(VikRoutingEngine *self, VikTrwLayer *vtl, struct LatLon start, 
struct LatLon end);
   gchar *(*get_cmd_from_directions)(VikRoutingEngine *self, const gchar 
*start, const gchar *end);
   gboolean (*supports_direction)(VikRoutingEngine *self);
+  int (*refine)(VikRoutingEngine *self, VikTrwLayer *vtl, VikTrack *vt);
+  gboolean (*supports_refine)(VikRoutingEngine *self);
 };
 
 GType vik_routing_engine_get_type ();
@@ -56,7 +58,8 @@ struct _VikRoutingEngine {
   GObject obj;
 };
 
-int vik_routing_engine_find ( VikRoutingEngine *self, VikTrwLayer *vt, struct 
LatLon start, struct LatLon end );
+int vik_routing_engine_find ( VikRoutingEngine *self, VikTrwLayer *vtl, struct 
LatLon start, struct LatLon end );
+int vik_routing_engine_refine ( VikRoutingEngine *self, VikTrwLayer *vtl, 
VikTrack *vt );
 gchar

Re: [Viking-devel] Renew routing feature: stage 1

2013-04-21 Thread Guilhem Bonnefille
Hi,


2013/4/21 Robert Norris rw_nor...@hotmail.com

 
  As promised, I worked on revisiting the routing feature in order to
  allow many selectable engines.
 
  First commits:
  https://github.com/guyou/viking/tree/renew-routing
 
  Currently, I only introduced framework, revised Google routing and
  introduced OSRM. All these, just for Route finder tool.
 
  In a near future, I plan to add a generic class in order to allow
  describing services directly from configuration files (like maps
  feature). I also plan to add the hability to request a route from an
  existing route/track in order to allow route computation from more than
  2 points. And I also plan to rework the Acquire - Google Direction.
 
  But for now, I propose these first commits for review. If OK, we cann
  pull them in master branch.
 

 Looking good so far.

 Some minor issues I've commented on the code directly in github.


Thanks, I will rework as soon as possible.


 Presumably the Add a fixed combobox for string parameter isn't used yet,
 but you plan to?


Yes it is, in vik_routing_prefs_init (in second commit):
https://github.com/guyou/viking/commit/ecbe3e298f03f1663eabfc73ab8deb52ac4480fe#L6R66

Or at least, I tried to make it running and it works for me. Do you checked
the Routing preferences in the Edit-Preferences dialog?


 Can we put in a track description to say something like Route created by
 route engine


Yes.
Note that I noticed a feature I never used: the ability to open Google Maps
from a computed route. This feature needs necessarily a rewrite.


 Some other thoughts, which are not to do with your current work as these
 are existing issues:

 1. Make route finder button available all the time (probably have to move
 the tool into VikWindow)

 Then if no TrackWaypoint layer selected - then simply create one,
 otherwise use the one selected.
 This would be easier to use. (In fact this kind of applies to all the
 Create Item tools...)

 2. All the routes end up with name VIKING_RT001, maybe we can force unique
 names.



-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

[Viking-devel] Renew routing feature: stage 1

2013-04-20 Thread Guilhem Bonnefille
Hi,

As promised, I worked on revisiting the routing feature in order to allow
many selectable engines.

First commits:
https://github.com/guyou/viking/tree/renew-routing

Currently, I only introduced framework, revised Google routing and
introduced OSRM. All these, just for Route finder tool.

In a near future, I plan to add a generic class in order to allow
describing services directly from configuration files (like maps feature).
I also plan to add the hability to request a route from an existing
route/track in order to allow route computation from more than 2 points.
And I also plan to rework the Acquire - Google Direction.

But for now, I propose these first commits for review. If OK, we cann pull
them in master branch.

Happy hacking.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Re: [Viking-devel] [RFC] Geocaching: geotoad

2013-03-21 Thread Guilhem Bonnefille
2013/3/21 Robert Norris rw_nor...@hotmail.com


  [snip]
  Not yet tested geotoad.

 Feels a little quicker - it's own local caching mechanism is probably
 better the the geo*tools, but still takes a while overall.
 Would be nice to display the text feedback of progress in Viking.


Perhaps an add to acquire related dialog? Something like the progress
dialog of synaptic:
- main part of the dialog is a progress bar
- a folded part can be opened to display a text area with the raw output.


 Geotoad doesn't seem to write the final geocache to stdout only to a named
 file, but should be more cross platform than the geo*tools bash scripts.


Perhaps an add to geotoad directly. Something like the standard '-' as
filename.


 The other nice thing is at least it's one program.


Yes.


 I'd suggest changing to it and making Geocache part of the default build.
 (Then I won't forget to update the file when types change!)


Why not. Furthermore, we can certainly adapt dynamically the viking's UI
when geotoad is in PATH or not. Would certainly be better for user
experience and for packagers.


 I've attached the little hack to get Geotoad working with Viking, I hope
 that can start you off. It works for me.


Thanks. I will give an eye as soon as possible.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

[Viking-devel] [RFC] Geocaching: geotoad

2013-03-20 Thread Guilhem Bonnefille
Hi,

In order to provide fun to my children while hiking, I plan to play
geocaching.

I notice viking has some stuff in tools subdirectory. But it seems to be a
part of a dedicated project. Any reason for this? Why not simply use it as
gpsbabel, ie as a dedicated external project? Nevertheless, I noticed this
project is not in Debian archive. Probably need a help.

I also notice an other similar project, called geotoad:
https://code.google.com/p/geotoad/wiki/README#Command-Line_Syntax
I think geotoad is the one packaged for my N900 (yes, I also installed a
geocaching tool for my n900).

Perhaps can we give choice to user which backend tool he wants to use?

Note: I only test the tool packaged in viking. And it is really slow. Not
yet tested geotoad.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Re: [Viking-devel] Ubuntu PPA For Viking 1.4

2013-03-04 Thread Guilhem Bonnefille
Nice news. Two comments:

- How difficult it is to add Precise as target for the build? Precise is
the current LTS, so I think it could be usefull to provide recent viking's
package for this release.

- As I'm curious, I'm curious to read how you do that ;-)

2013/3/3 Robert Norris rw_nor...@hotmail.com



 
  For Ubuntu users (on the latest release [Raring]) simply issue these
 commands in a terminal:
 

 Ooops:   I mean    Quantal release ^ here.


 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_feb
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/




-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Re: [Viking-devel] Imminent Viking 1.4 Release

2013-02-06 Thread Guilhem Bonnefille
Hi Greg,

I think this is a recurrent question, each time a significant release is
approaching. Deciding if a software like viking needs or not a release
candidate cycle is an infinite debate. Last time, we discuss this topic, we
decided to avoid release candidates. Instead, we release the version when
it is ready and fix bugs in a following release. Last example is version
1.3.2.1.

If you want to prepare a little, I think you can already fetch the current
Git master branch. If you really prefer a pre-packaged tarball, I can send
you the current version. But, as far as I know, a significant release
related job is not job: writing the 1.4 part of file NEWS.
But, perhaps Robert has another point of view.

2013/2/5 Greg Troxel g...@ir.bbn.com


 When it's almost ready, can you make a candidate release tarball, using
 the same mechanism as you will use for the release, and put it up as
 viking-1.4rc0.tar.gz?  That way I can test the packaging path, and
 others can too, and we can fix anything small.



 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/




-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Re: [Viking-devel] [RFC] Releasing 1.4 before Christmas (Was: Some Thoughts on Viking 1.4 and Beyond.)

2013-01-03 Thread Guilhem Bonnefille
Happy new year!

Finally, I did not released a new version but worked on the routing feature.
1) I restored the current implementation based on Google only (patch
waiting review)
2) I started to redesign this feature in order to allow more than one
service provider (I wish to include routing service proposed by OSM related
projects)

Robert, I'm also available to prepare the new release with you.

2012/12/10 Guilhem Bonnefille guilhem.bonnefi...@gmail.com

 More thoughts.

 Previous release is around end of september (and 1.3 was released in
 april).
 Master branch currently host 200 changes.
 Robert has huge changes in his topic branches.

 What about releasing a 1.4 before Christmas? We will then use january to
 merge the significant changes.
 I think I have enough spare time to release before Christmas.


 2012/12/8 Robert Norris rw_nor...@hotmail.com:
  = Some Thoughts on Viking 1.4 and Beyond =
 
  * Upgrade sourceforge website to be the Allure platform - looks like
  everything we use should automigrate now?
   [MediaWiki should auto convert... (still I'll keep backups!)]
 
  * Integrate together my provisional work in
  https://github.com/rnorris/viking for a 1.4 release.
 
  * This is your chance to provide feedback about / test these features
 over
  the Christmas and New Year period.
 
  * Consider whether version 1.5 or 2.0 will follow much later in the
 year...
 
  = 1.4 version - January 2013 =
 
  * GPS Layer now uses a string for the Device Id rather than a number [1]
  (Branch: GPX-Route+Icons+Colour[2])
 
  * GPX Route Support [1] (Branch: GPX-Route+Icons+Colour [2])
 
  * TrackWaypoint Layer changes [1]: (in git master already)
  ** changes to Draw by Velocity mode parameters
  ** addition of waypoint font size
  ** addition of trackpoint size control
  ** addition of track arrows and arrow size control
 
  * Store a version number in the .vik file type [1]  (Branch:
  StagingPatches[2])
  ** small warning when loading an unsupported version
 
  * Start Assist for new users with some default settings [simple on/off
  preference]
  ** Single default map / location by www.hostip.info / auto download on
  ** Defaults to on for 'first time users' (if you already have Viking
  installed[2] then the mode defaults to off)
 
  * Datasource 'My OSM Traces'  (Branch:
 DatasourceRework+NewMyOSMTraces[2])
 
  * Optimizations  (Branch: OptimusPrime[2])
 
  * [1] Not forwards compatible - Viking 1.3 won't be able to read new
 files
  fully but IMHO fairly minor inconvenience
  * [2] See https://github.com/rnorris/viking
  * [3] Detection is via having an existing .viking/prefs file
 
  = 1.5 =
 
  * Undo (I have some working ideas on how to do this)
 
  * Switch to outputting Title Case Waypoint Symbols in GPX ( but for .vik
  files always lowercase )
  ** Symbol table to be in Title Case (as per Sven Eckelmann's work from 2
  years ago - which still can read in lower case symbols)
  ** Probably should store waypoint symbol index in VikWaypoint and only
  calculate this 'once' rather than doing the hash lookup on each redraw in
  viktrwlayer.c
  *** As I don't think the icon index changes during the lifetime of the
  program. Only change wp symbol index when the symbol is changed.  Might
 push
  this into the optimizations for 1.4
 
  * Other stuff as seen fit
 
  = 2.0 =
 
  Full Version number jump due to incompatibilities between 1.X and 2.0.
 
  The question is when to discontinue the 1.X line, maybe not even
 bothering
  with a 1.5 version???
  Opinions gratefully accepted.
 
  Version 2.0 should work with previous versions file data. 1.X will *NOT*
 be
  able to use any Viking 2.0 specifics:
 
  * Internal auto preferences/last used values
 
  * New version number in the .vik file type
 
  * Compressed (but still humanly readable) for common keys in a .vik file
  ** This can save around 1/4 file space as for a simple GPS track log
 these
  are repeated for *every* trackpoint
  *** 'latitude' - 'lat'
  *** 'longitude' - 'lon'
  *** 'trackpoint'-'trkpt'
  *** 'altitude'-'alt'
  *** 'unixtime'-'UTC' (http://en.wikipedia.org/wiki/Unix_time)
  *** maybe write float values as 9 decimal digit precision (as this is
 what
  comes out of GPSBabel) (see SF# Viking shouldn't change coords)
  *** [see if we can round display of altitude to whole numbers when
 practical
  - '123.00' doesn't look nice]
  ** Keep the old GPS Point export saving at 'version 1' with full key
 names
  (although I don't know any other software that uses this format...)
  ** Internal option to write .vik file at version 1 ?
 
  * As per request: SF#3023287
  ** Shift of map cache data default to $XDG_CACHE_HOME and file structure
 to
  match standard OSM TileServerRef/zoom/x/y.png file name
  *** Should mean you could sym link this cache other programs cache areas
  (e.g. TangoGPS / Marble? / JOSM? )
  *** Maybe make the 'Maps Directory' use directly the zoom/x/y when
 manually
  specified - so one can point it at a shared cache

[Viking-devel] [PATCH] Add a zoom selector on status bar

2012-12-08 Thread Guilhem Bonnefille
A single click on zoom indicator on status bar opens a zoom selector.
It seems quite natural to click on the indicator to change the corresponding
value. As zoom level is displayed on statusbar, a click on statusbar should
open a zoom selector.

This patch is inspired by ac4478f4c84881436cf9b25a0fa9dc30f889db63
Add a zoom combo box into the toolbar.

Signed-off-by: Guilhem Bonnefille guilhem.bonnefi...@gmail.com

---
 help/C/figures/zoom_status_popup.png |  Bin 0 - 11947 bytes
 help/C/viking.xml|7 ++
 src/vikstatus.c  |  141 +++---
 src/vikstatus.h  |3 +
 src/vikwindow.c  |   13 
 5 files changed, 135 insertions(+), 29 deletions(-)

diff --git a/help/C/figures/zoom_status_popup.png 
b/help/C/figures/zoom_status_popup.png
new file mode 100644
index 000..1ccc9a3
--- /dev/null
+++ b/help/C/figures/zoom_status_popup.png
@@ -0,0 +1,41 @@
+�PNG
+
+
IHDR!�pz^[pHYs��tIME�
��ztEXtCommentCreated with GIMPW� 
IDATx���w\G��gw�qwp��HۣQv�X���/�$*�(��ŠO��5���1 
*�l(�bR��;�n���\�;0yL�aޯ�7�3��|g����-T?�2J)(,�4:���Ç��c�
�ڵk'�ɰ5�:$6�5��`�a0�1k
���`0�%l�VBȲ,�0B333�|��q�0ϓ$)�)�2,Ų,�G�(J�aX�y�:1xk[x�`��՝:uR*��o�6��y�ԩSC�

���1bDRR�q(K�V�Z�*,,���=((h�̙e���{��iZ'k�͑��|�…�+W�f=z̘1�Ox��7SRR��M�ׯZ�*;;{׮]�.]���4�ڵky_R|�G+��!Ds�
 rss��}��Ġ��fHOO7���ɓ#GCsrr�
��fT�s���DZJ�eٴzKH?~|FFF}}}�Gv��}�izƌ˖-suu���L�,���A+++
+���0̮]�bcc���Ш�m�6�����1LsV��=���0��1�q��={�$''���
+
+
+bbb�?1���


r��k����r�//O�rss�r��X�fM\\\jj���Jܽ{�N��ӧ�PO�^�\\\�ܹ�M��cm!r#  
�bqDDDRR�c11qРAb�~D{{{��…���!�xk�444TUU 
k0�B�R�T*`ٲe��ᎎ�C�III���=y�� #F�$Y\\����
+��j
`iiiee���DZ�Krrr`�B�1bD``��;PVppprr��3g^{��'N$''���K�.%$$`Z�B��7y1��1x
�c����`��0�1�5��`�a0Xck���`���$-=��m���`��0�1lk
�y���A�B�a�0�6�q4M�X��D��-��\.7|E8E��R�i)
��j�z�ឞ�;v4���q�ɓ'#���G����(��Fh��W^y(���3g��ѻw���dld��6
�V�Zu;wfee �ϝ;7f��{�С�Ǐbqx�_�n�i�m��ǎ���9jԨ�'�4���r�c
�JKK!��#րaTm�X�.\�p����ap��D?W�8p� '''k�c/4
�Q���ŝ���bq���3fDGG��vss�իWTT-Z��F`;w�ܳgObbxf,n�\�}���n��y��}���Ջ$ɤ�$�eQ�a

��.4Moܸq�֭G�E�!�p���^�n]cc�V�EY»~���I��_���ݻK�.3f��?��-�DZ���X�f́~��7!�6�ŝ��+
e7o�D���o߮�'���₼��f�Z�lٸq�,���X�x�ĉ���8�v9w�܆
�9bU[�ō���IJJB��.\Xd 555##�VVV�P(І�q�`#�q�킢j� 
����X�lY�}r�ĉ={��r��{XnO�:u���
������'~�!�3�Xۥ��+��_~5
 88��ѣ���ˠ���G�
+��
Q*��7y�]��/6m��K�{��c/)x��0�1�5��`�a0Xck���`��0
��5��`�a0�1k��`�a0XcS���0�~F��P__���B�h)��D1/%d!�%�am�0
�q\mm���-~��cm�V۫W/è�ǥ��:�}���F�JJJbq����#Fx{{w��uݺuz�^(��h���{{{�;w[k�M���ڵkƎ��o�:u*b���'N�@Y׮]3f�СC322bbb6o޼e��E���i�bcc,X���SSSӿldWl�\�zuǎ2L_�|�G}4s�L���_QQLDll��a��̙��詩ٱcqqq999gΜ���Ap��ۂDZ6�^��9sftta�i,�q��eff�HvvvB�7ww���|tXlllϞ=�N׽{�+V466b;�q��!ܶm�H$2���bq��bq+�1c�DFFv��qРA/���w�u�T��b
+�Xۢ��`Ŋ���ht���k�Z�R)��V((K��
5j�V�ݼy�…�t�*L���v�څ�4(::k
��(���4M0�]�v�ڵ���u��`kk�P(rss���X�� 
OUZZ�ѣ:�Ü��==�RXcm���ƌbq�4���4x�`�X,�3Q���W�;vlҤI��N�8��j,˞9s����m�gGՎ���ӧ�!CRRR���s��I�Ȣ
6DFF
+����ԩnnn8���M�~��Glj�1������bq��g۶mC��CBBP��]�tqpp�ꫯ
$�9r�V�ݰa���ӷo_lۗ���61k��`�a0Xc����`��0�1
�5��`�a0Xck���`0Xc���~F���8N�ӡ��2�L�
!�i�a���JF�$���bY��y�X,�J�A`;�q��r�ԩ�}�zyy���Bzqq���ޥK�Je�3gF����ӭ[��k�
+���j���޷ow��9**���k��B���q322F�=i�$��Q/^��r�J�R׮]{��7^{�5�{˖-�7o�7�aV�Zs��˗/O�����h�X���u떧�gII���WII���=���9A��B�ٳg޽}���oQ4o��O�9r�Ⱥ���jk�c/.��QQQW�^]�hQDD�VK�*++mmm�A܄X܆0
s��Y�
��4�oذ���aaaA9r�a!�bK��XXX�dɒfg�;w�9���5�vIII�7o�
�w�ޱc�nذAH�F�ٲeˢE�:w�l����QdŤ�$___lg���ˬY��/_n�8��͗,Y��C��'O��F�I�
 c͚5���'N�ppp�F�kӔr�eI��y��ݝeY!Wp/A���
�pw�ƍcǎ8p@(iӦ��l{{{�R��6Ǵi�.\�0L@@��{��.]������
+�wII�L��D)��/^ܰa���ӅX�aÆAQ
}��[0/�wߚ�{��_~��-�I�}��h؉���2e���˗/�={6���١X�ӧO7��]]]m����{q5���X0�1
k��`�a0Xc����`��0�1
�5������{�0�6G�/�aPd��%IR$�G2�`ڢ���h�.y��֭��ֻ��$I�R��!�J��1mWc�=|���՜���\�܍t��0
S|��̩SBo���U-��i7���ՊU��b/o���/g
+ln!�MhBXW[PYZBr�F�C�4M�ϛ���Fsr��9���333�,���9�P%��
�|��y�'I�0���V��8���0/M�
+���;��8�f�'04���A��o#�Kp�[�n���F�uuu����A:v�x��y�~�…
���=�…��N�:տ�G�թ�hBCC�m�b3;��w;����$Ev
���w/�mǚǏ�t�Ҋ+�|�M�,�^Y\\�`���={���  
5�Xp���˗s;jԨ���Q�׏7nʔ)?��Ӿ}�O�\YY)�qk�z{{���k

Re: [Viking-devel] Some Thoughts on Viking 1.4 and Beyond.

2012-12-08 Thread Guilhem Bonnefille
 selection


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] [PATCH] Add tooltip to new zoom level combo

2012-12-01 Thread Guilhem Bonnefille
It is always usefull to have tooltip on GUI items.
It is mostly important here as there is no label to introduce
the function of the combo.

Signed-off-by: Guilhem Bonnefille guilhem.bonnefi...@gmail.com

---
 src/vikwindow.c |3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/vikwindow.c b/src/vikwindow.c
index f72b798..22bb63c 100644
--- a/src/vikwindow.c
+++ b/src/vikwindow.c
@@ -450,6 +450,9 @@ static GtkWidget *create_zoom_combo_all_levels ()
   gtk_combo_box_append_text ( combo, 8192);
   gtk_combo_box_append_text ( combo, 16384);
   gtk_combo_box_append_text ( combo, 32768);
+  /* Create tooltip */
+  GtkTooltips *tooltips = gtk_tooltips_new ();
+  gtk_tooltips_set_tip ( tooltips, GTK_WIDGET (combo), _(Select zoom level), 
NULL);
   return zoom_combo;
 }
 
-- 
tg: (d4a8b54..) t/gui/add-zoom-combo-tooltip (depends on: master)

--
Keep yourself connected to Go Parallel: 
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] OSM License Attribution Change? (ODBL)

2012-09-29 Thread Guilhem Bonnefille
2012/9/14 Robert Norris rw_nor...@hotmail.com:


 ATM The display side is OK as we show '© OpenStreetMap contributors'

 However on the dialog popup before showing a new map it displays:

 The map data is licensed: CC-BY-SA.

 Thus this depends on the definition of 'map data':

 * Normally 'map data' (or maybe just me) without further context is taken to 
 mean as the under pinning vector geo data. This is the data that OSM has 
 relicensed and is now ODBL.

 * However, Viking does not provide the vector geo data, so when we say 'map 
 data' this should be taken to mean the cartographic tiles - these are still 
 licensed CC-BY-SA.

 * Thus IHMO we do not need to change license statements.


 Of course IANAL applies as always!

 I have no plans to change this for the imminent 1.3.2 release.


 However it may be prudent to revise the wording for the 1.4 release to say 
 The tiles are licensed: CC-BY-SA.

 Possibly even more prudent to be more precise and have separate 'Tile' and 
 'Map Data' license statements since these have separate licenses.

 Any thoughts?

IMHO, the simple solution is the better: only revise the wording. The
reason is only tiles are downloaded by this code, license of data used
to draw this tiles does not matter. If we add something to download
data, we will have to use another wording and a reference to ODBL.

Related question: what about traces? Viking knows how to download
GPX traces from OSM servers. But I think we do not advertise about
license.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] GPSbabel and viking on windows

2012-09-06 Thread Guilhem Bonnefille
 is with the new File-Acquire-Acquire from GPS. In
 the following dialog, the GPS Protocol menu is empty. I do not
 reproduce this under Linux. Can someone running viking on windows 
 do
 the test? It is really simple, just open the dialog and report the
 available entries.

 I confirm the problem.
 And I wil add one : when you try to import a file with GPSBabel, the
 file type menu is also empty.
   
Thanks for confirmation. These lists are build with some gpsbabel
output. The command line use -^3 switch. Can you try to launch
gpsbabel with this switch on windows to check is availability?
   
 Windows builds really need some in-depth testing.
   
Certainly.
Perhaps adding some automatic test can help in this process. Here is a
really initial patch to verify gpsbabel. Currently, the patch include
only a dump tool, but in few hours (I'm at office), it will consist
on something checking that we retrieve what we expect. But I imagine
this single executable can already help to investigate.
   
--
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/
   
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. 
Discussions
will include endpoint security, mobile security and the latest in 
malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/
   
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. 
Discussions
will include endpoint security, mobile security and the latest in 
malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/
  
   --
   Live Security Virtual Conference
   Exclusive live event will cover all the ways today's security and
   threat landscape has changed and how IT managers can respond. 
   Discussions
   will include endpoint security, mobile security and the latest in 
   malware
   threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
   ___
   Viking-devel mailing list
   Viking-devel@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/viking-devel
   Viking home page: http://viking.sf.net/
  
  
   --
   Live Security Virtual Conference
   Exclusive live event will cover all the ways today's security and
   threat landscape has changed and how IT managers can respond. Discussions
   will include endpoint security, mobile security and the latest in malware
   threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
   ___
   Viking-devel mailing list
   Viking-devel@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/viking-devel
   Viking home page: http://viking.sf.net/
 
 
 
  --
  Guilhem BONNEFILLE
  -=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
  -=- mailto:guilhem.bonnefi...@gmail.com
  -=- http://nathguil.free.fr/

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http

Re: [Viking-devel] GPSbabel and viking on windows

2012-09-06 Thread Guilhem Bonnefille
 you don't succeed,
then skydiving isn't for you.
   
   

 From: rw_nor...@hotmail.com
 To: guilhem.bonnefi...@gmail.com; mathie...@gmail.com
 Date: Tue, 4 Sep 2012 18:59:32 +0100
 CC: viking-devel@lists.sourceforge.net
 Subject: Re: [Viking-devel] GPSbabel and viking on windows



 The '^' character is an escape character in DOS.

 Thus for windows it needs to be escaped itself: thus needs to be 
 -^^3 for Windows systems.


 Be Seeing You - Rob.
 If at first you don't succeed,
 then skydiving isn't for you.


 
 Date: Tue, 4 Sep 2012 11:44:26 +0200
 From: guilhem.bonnefi...@gmail.com
 To: mathie...@gmail.com
 CC: viking-devel@lists.sourceforge.net
 Subject: Re: [Viking-devel] GPSbabel and viking on windows


 Hi,

 2012/9/4 Mathieu mathie...@gmail.com:
  The other one is with the new File-Acquire-Acquire from 
  GPS. In
  the following dialog, the GPS Protocol menu is empty. I do not
  reproduce this under Linux. Can someone running viking on 
  windows do
  the test? It is really simple, just open the dialog and report 
  the
  available entries.
 
  I confirm the problem.
  And I wil add one : when you try to import a file with GPSBabel, 
  the
  file type menu is also empty.

 Thanks for confirmation. These lists are build with some gpsbabel
 output. The command line use -^3 switch. Can you try to launch
 gpsbabel with this switch on windows to check is availability?

  Windows builds really need some in-depth testing.

 Certainly.
 Perhaps adding some automatic test can help in this process. Here 
 is a
 really initial patch to verify gpsbabel. Currently, the patch 
 include
 only a dump tool, but in few hours (I'm at office), it will 
 consist
 on something checking that we retrieve what we expect. But I 
 imagine
 this single executable can already help to investigate.

 --
 Guilhem BONNEFILLE
 -=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
 -=- mailto:guilhem.bonnefi...@gmail.com
 -=- http://nathguil.free.fr/

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. 
 Discussions
 will include endpoint security, mobile security and the latest in 
 malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. 
 Discussions
 will include endpoint security, mobile security and the latest in 
 malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/
   
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. 
Discussions
will include endpoint security, mobile security and the latest in 
malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/
   
   
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. 
Discussions
will include endpoint security, mobile security and the latest in 
malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net

Re: [Viking-devel] GPSbabel and viking on windows

2012-09-04 Thread Guilhem Bonnefille
Hi,

2012/9/4 Mathieu mathie...@gmail.com:
 The other one is with the new File-Acquire-Acquire from GPS. In
 the following dialog, the GPS Protocol menu is empty. I do not
 reproduce this under Linux. Can someone running viking on windows do
 the test? It is really simple, just open the dialog and report the
 available entries.

 I confirm the problem.
 And I wil add one : when you try to import a file with GPSBabel, the
 file type menu is also empty.

Thanks for confirmation. These lists are build with some gpsbabel
output. The command line use -^3 switch. Can you try to launch
gpsbabel with this switch on windows to check is availability?

 Windows builds really need some in-depth testing.

Certainly.
Perhaps adding some automatic test can help in this process. Here is a
really initial patch to verify gpsbabel. Currently, the patch include
only a dump tool, but in few hours (I'm at office), it will consist
on something checking that we retrieve what we expect. But I imagine
this single executable can already help to investigate.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/


gpsbabel.patch
Description: Binary data
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Re: [Viking-devel] 1.3.1 Windows problems/bugs

2012-08-29 Thread Guilhem Bonnefille
Hi,

2012/8/28 Robert Norris rw_nor...@hotmail.com:
 I think it's probably due to commit f01eebd4992e8e28a74b9943b7a3597e4e3a95eb:

 Fix: Improve internal redrawing method.

 Should now have no race conditions / lock outs to be more reliable when 
 handling (e.g. downloading) multiple sources and redrawing the screen at any 
 time by using the appropriate gtk idle drawing methods for all updates.

 So I think it exposes something in GTK's 'idle redrawing' that doesn't redraw 
 fast enough on Windows, so it's not a simple bug to fix.

I'm unable to test this (no windows@home). So, I only review this
commit. I'm unable to do some experiment, but here are some though, in
the hope this can help finding the bug. I notice 3 changes in this
commit:
- introduction of thread communication via idle tasks
- a new redraw condition (in dem_layer_download_release)
- an optimisation to avoid locking GDK mutex recursively.

Without any more inputs or experiments, it's hard to identify what can
be wrong. I imagine that the most sensible change is certainly the
third one. I don't say this is the problem, I only point this si
certainly a sensible change.
I also notice that some critical sections, initialy protected by GDK
lock, have been reduced. But the newly exposed code seems thread safe,
or protected by other mutex (for example in dem_download_thread).

If more experiments confirm that this commit is guilty, I suggest to
try changing vik_layer_emit_update in order to always use
gdk_threads_add_idle.

PS: I also noticed that the following page have comment about win32
backend, but I do not understand how to interpret.
http://developer.gimp.org/api/2.0/gdk/gdk-Threads.html
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] 1.3.1 Windows problems/bugs

2012-08-28 Thread Guilhem Bonnefille
Hi,

2012/8/28 Mathieu mathie...@gmail.com:
 It ships with many supporting dlls, however I don't think there are any 
 changes (in version but the file dates have changed). Which points to the 
 Viking change.

 I personally don't use Windows for my personal projects, so from my limited 
 usage under Windows - it seemed to work - basically open a gpx, view a map.

 At least 1.2.1 is working for you.

 dll haven't changed between 1.2.1 and 1.3.1. They come from
 gtk+-bundle_2.22.1-20101227_win32.zip at GTK website (2.24 bundle is
 quite unstable yet)

 I can confirm the drawing bug when you try to expand a track and this
 bug appeared between 1.2.2 and 1.3.0 (never published on Sourceforge)
 A lot of changes were committed between 1.2.2 and 1.3.0 that apply to
 viewport redrawing. Any Idea Robert where I have to look for the bug?

Depending how difficult it is for you to run the compile-deploy-test.
A useful solution for this is git bisect.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Upgrade to Allura (was: Hosted Apps Retirement)

2012-07-18 Thread Guilhem Bonnefille
Hi all,

I've just read the last SourceForge announce. It seems that
SourceForge start an other big change: they improve their soffware to
Allura. Each project is currently free to migrate or not.

After a first read, it seems that the new version has a much more
fresh visual.
http://sourceforge.net/p/allura/wiki/Features/

I will try the upgrade for some of my old projects.
Give your opinions.

2012/7/3 Guilhem Bonnefille guilhem.bonnefi...@gmail.com:
 I forgot to add information: the hosted apps service is retire, so
 SourceForge invite us to host our apps ourselves in the Web service
 provided by SourceForge. This means we have to install a mediawiki,
 populate it and maintain it.

 2012/7/3 Guilhem Bonnefille guilhem.bonnefi...@gmail.com:
 Hi all,

 SourceForge plan to retire the hosted apps. This news concern our wiki
 instance. as a reminder, I moved an own wiki to hosted apps infra
 and now we have to do the reverse. :-(

 People interested in this topic can claim position here. ;-)


 -- Forwarded message --
 From: SourceForge.net Team nore...@sourceforge.net
 Date: 2012/7/3
 Subject: Hosted Apps Retirement
 To: guilhem.bonnefi...@gmail.com


 In case you missed it ...

 We wanted to be sure you were aware of some upcoming changes to the
 SourceForge project hosting service.

 One or more of your projects use the Hosted Apps service. On September 1,
 2012, the Hosted Apps service will reach the end of its life and be shut
 down. The reasons for this are discussed in the blog post, at
 http://sourceforge.net/blog/hosted-apps-retirement/  and in the wiki, at
 https://sourceforge.net/p/forge/community-docs/Hosted%20Apps%20Retirement/


 Over the coming days, we'll be publishing more documents about how to
 migrate your apps to your own project web space, so that none of your data
 is lost in this transition. We want to be sure that your project can
 continue to operate without interruption, so if you have any concerns,
 difficulty with migration, or just want to chat, please send us a note
 (communityt...@sourceforge.net).

 Please watch the wiki page
 (https://sourceforge.net/p/forge/community-docs/Hosted%20Apps%20Retirement/)
 for further updates about this process. We'll be back in touch as it gets
 closer to the deadline, or if anything about the plan changes.

 Thanks again for being part of the SourceForge community.

 --
 SourceForge.net has made this mailing to you as a registered user of
 the SourceForge.net site to convey important information regarding
 your SourceForge.net account or your use of SourceForge.net services.

 We make a small number of directed mailings to registered users each
 year regarding their account or data, to help preserve the security of
 their account or prevent loss of data or service access.

 If you have concerns about this mailing please contact our Support
 team per: http://sourceforge.net/support


 --
 Guilhem BONNEFILLE
 -=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
 -=- mailto:guilhem.bonnefi...@gmail.com
 -=- http://nathguil.free.fr/



 --
 Guilhem BONNEFILLE
 -=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
 -=- mailto:guilhem.bonnefi...@gmail.com
 -=- http://nathguil.free.fr/



-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Fwd: Hosted Apps Retirement

2012-07-03 Thread Guilhem Bonnefille
Hi all,

SourceForge plan to retire the hosted apps. This news concern our wiki
instance. as a reminder, I moved an own wiki to hosted apps infra
and now we have to do the reverse. :-(

People interested in this topic can claim position here. ;-)


-- Forwarded message --
From: SourceForge.net Team nore...@sourceforge.net
Date: 2012/7/3
Subject: Hosted Apps Retirement
To: guilhem.bonnefi...@gmail.com


In case you missed it ...

We wanted to be sure you were aware of some upcoming changes to the
SourceForge project hosting service.

One or more of your projects use the Hosted Apps service. On September 1,
2012, the Hosted Apps service will reach the end of its life and be shut
down. The reasons for this are discussed in the blog post, at
http://sourceforge.net/blog/hosted-apps-retirement/  and in the wiki, at
https://sourceforge.net/p/forge/community-docs/Hosted%20Apps%20Retirement/


Over the coming days, we'll be publishing more documents about how to
migrate your apps to your own project web space, so that none of your data
is lost in this transition. We want to be sure that your project can
continue to operate without interruption, so if you have any concerns,
difficulty with migration, or just want to chat, please send us a note
(communityt...@sourceforge.net).

Please watch the wiki page
(https://sourceforge.net/p/forge/community-docs/Hosted%20Apps%20Retirement/)
for further updates about this process. We'll be back in touch as it gets
closer to the deadline, or if anything about the plan changes.

Thanks again for being part of the SourceForge community.

--
SourceForge.net has made this mailing to you as a registered user of
the SourceForge.net site to convey important information regarding
your SourceForge.net account or your use of SourceForge.net services.

We make a small number of directed mailings to registered users each
year regarding their account or data, to help preserve the security of
their account or prevent loss of data or service access.

If you have concerns about this mailing please contact our Support
team per: http://sourceforge.net/support


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Hosted Apps Retirement

2012-07-03 Thread Guilhem Bonnefille
I forgot to add information: the hosted apps service is retire, so
SourceForge invite us to host our apps ourselves in the Web service
provided by SourceForge. This means we have to install a mediawiki,
populate it and maintain it.

2012/7/3 Guilhem Bonnefille guilhem.bonnefi...@gmail.com:
 Hi all,

 SourceForge plan to retire the hosted apps. This news concern our wiki
 instance. as a reminder, I moved an own wiki to hosted apps infra
 and now we have to do the reverse. :-(

 People interested in this topic can claim position here. ;-)


 -- Forwarded message --
 From: SourceForge.net Team nore...@sourceforge.net
 Date: 2012/7/3
 Subject: Hosted Apps Retirement
 To: guilhem.bonnefi...@gmail.com


 In case you missed it ...

 We wanted to be sure you were aware of some upcoming changes to the
 SourceForge project hosting service.

 One or more of your projects use the Hosted Apps service. On September 1,
 2012, the Hosted Apps service will reach the end of its life and be shut
 down. The reasons for this are discussed in the blog post, at
 http://sourceforge.net/blog/hosted-apps-retirement/  and in the wiki, at
 https://sourceforge.net/p/forge/community-docs/Hosted%20Apps%20Retirement/


 Over the coming days, we'll be publishing more documents about how to
 migrate your apps to your own project web space, so that none of your data
 is lost in this transition. We want to be sure that your project can
 continue to operate without interruption, so if you have any concerns,
 difficulty with migration, or just want to chat, please send us a note
 (communityt...@sourceforge.net).

 Please watch the wiki page
 (https://sourceforge.net/p/forge/community-docs/Hosted%20Apps%20Retirement/)
 for further updates about this process. We'll be back in touch as it gets
 closer to the deadline, or if anything about the plan changes.

 Thanks again for being part of the SourceForge community.

 --
 SourceForge.net has made this mailing to you as a registered user of
 the SourceForge.net site to convey important information regarding
 your SourceForge.net account or your use of SourceForge.net services.

 We make a small number of directed mailings to registered users each
 year regarding their account or data, to help preserve the security of
 their account or prevent loss of data or service access.

 If you have concerns about this mailing please contact our Support
 team per: http://sourceforge.net/support


 --
 Guilhem BONNEFILLE
 -=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
 -=- mailto:guilhem.bonnefi...@gmail.com
 -=- http://nathguil.free.fr/



-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] ESA SOCIS 2012

2012-06-13 Thread Guilhem Bonnefille
Hi,

2012/6/13 Mathieu mathie...@gmail.com:
 It has been discussed las year (but tool late) about the possibility
 for Viking to apply in the ESA Summer Of Code (SOCIS, worst project
 name ever in french !).
 I keep thinking that Viking is much more related to space (or space
 data product at least) than x264 or FFmpeg that were selected last
 year (or maybe I'm just biased due to my real job).
 Do you think we should apply to ES SOCIS and does one of you have
 enough free time to mentor a student?
 It could be a good opportunity to inject fresh blood into Viking. Some
 ideas of tasks for a student?

I definetively do not have enought time to drive a student (I think we
have to estimate 1 day per week). But... perhaps can I convince my
employer to give me some time to do the job. To convince my employer,
I have to propose valuable ideas. But once again, I currently do not
have enough time to work on this topic.

So, if you have such idea (a good topic for a student, not any good
idea for viking) post them here.

Of course, if someone else have definitevely the time to mentor the
student, I will retire my position for this mentoring and support the
other candidate.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] RIP msrmaps.com/terraserver; welcome CalTopo!

2012-05-10 Thread Guilhem Bonnefille
Master branch status: Map is now available via the global map.xml.

2012/4/29 Evan Battaglia gtoe...@gmx.net:
 Hi all,
 I happened to notice on msrmaps.com, which I believe we are currently using
 for Terraserver topos, that they are shutting down on May 1, 2012. Yeah, 2
 days from now. That's no good. For me, topo maps is what mostly using Viking
 with these days.

 But not to fear! I found an awesome source of USGS topo maps called CalTopo
 (http://caltopo.com/). They use the same scheme as
 Google/OSM/BlueMarble/most everything these days (mercator), so by watching
 the AJAX requests in my browser it was trivial to figure out the URL
 structure and add support to Viking. Not only that, from what I can tell,
 they are actually newer, better quality, and more accurate than old
 MSR/Terraserver topos!

 I contacted them about using their tiles. I'm a bit unclear on the license
 (if there is one?), because it isn't displayed on their home page, but what
 I mentioned what I wanted to do with them (use them to make my own custom
 topos for free redistribution) he said that was OK:

 Because the underlying data is public domain I don't know if I could
 actually prevent someone from reassembling the tiles into a map, but I
 wouldn't want to even if I could.  By all means feel free to do what you're
 describing.

 When I asked about using the tiles in Viking, he basically said go ahead:
 You guys should go ahead and use the tiles, and if bandwidth becomes a
 concern we can sort it out then.

 They also have support for forest service maps (don't look that much
 different but show campgrounds differently and such. Only available for some
 issues) and evidently aerial maps, but I haven't added either and haven't
 looked into the latter yet, but it should be trivial to add.

 Anyway, my commit to add support for it is here:
 https://github.com/evanbattaglia/viking/commit/799f073c1ff89f8cd904d39e364fb9d402bce844

 Tell me if anyone has any comments. I just copied the autotools stuff from
 BlueMarble, man that stuff is crazy :) I'm not sure how we're picking map
 source IDs these days, I just picked a random number that wasn't being used
 (29). Seems like these ids are kind of all over and hard to see what is
 being used...

 I've also attached a patch made with 'git format-patch master'. Or I guess I
 still have permissions to write directly to the SF git repo... haven't done
 it in a few years ...

 Evan

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/



-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] [PATCH] Add support for many extensions' configuration

2012-05-07 Thread Guilhem Bonnefille
Any comment?

2012/5/5 Guilhem Bonnefille guilhem.bonnefi...@gmail.com:
 Many extensions can be added through a simple configuration file.
 Currently, only user's home directory is used to load such configuration.

 This patch add support for some standard locations in system.
 The behavior can be affected by XDG_DATA_HOME and XDG_DATA_DIRS standard
 environment variables.

 Signed-off-by: Guilhem Bonnefille guilhem.bonnefi...@gmail.com


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] glib 2.32 changed g_debug behaviour

2012-05-07 Thread Guilhem Bonnefille
I'll push a simple fix.

2012/5/7 Robert Norris rw_nor...@hotmail.com:

 Hi,

 I encountered a matter with the debug viking's feature. We use g_debug
 function. But in glib 2.32, the g_debug behavior changed and all DEBUG
 messages are discarded, unless G_MESSAGES_DEBUG is set. So, viking
 -d no more work as its design was to mute DEBUG messages when -d is
 not set.

 Do you have idea to restore viking -d behavior?


 Hmm, annoying!

 What about:

 1. Replace all g_debug() calls to viking_debug()
 2. Create new function viking_debug() function in globals.c
 3. Make viking_debug() call g_debug() for glib versions  2.32, otherwise 
 just call g_print()


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/



-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] RIP msrmaps.com/terraserver; welcome CalTopo!

2012-05-05 Thread Guilhem Bonnefille
Humh... I revised my position. My patch now use XDG_DATA_HOME and XDG_DATA_DIRS.


2012/5/4 Guilhem Bonnefille guilhem.bonnefi...@gmail.com:
 2012/5/3 Robert Norris rw_nor...@hotmail.com:
 I already have a patch that add the following beahviour to viking:
 - loop over a given list of directory to look for the differents
 extension files (maps.xml, external_tools.xml, goto_tools.xml).
 - if $VIKING_CONFIG_PATH is set, it is parsed instead of a built-in list
 For the moment, I do not load maps*.xml files (next patch?).

 Again I would advocate trying to use appropriate $XDG_* env vars instead of 
 using a newly made up one

 Sorry, i did not replied to your previous mail. $XDG_* env vars seems
 nice. Nevertheless, I think it's not really clean to use such var env,
 while viking.conf is still located in .viking and not an XDG compliant
 directory.

 Now, it is time for fixing the patch:
 - which directories to definitively look for?
 - what exact data should we put in the soonly deployed maps.xml,
 external_tools.xml, goto_tools.xml?
 - where to deploy these files?


 For the directories to look for, I think $(pkgdatadir) as provided by
 autoconf/automake is the good one. Can someone confirm this option?
 For /etc related I will use @sysconfigdir@.

 For the data, I plan to ship all example given (we already have an
 example file) + all maps declared in wiki.
 Good idea? Too many data?

 I can't decide either way.


 And finally, at the install stage, I plan to deploy these data in
 @pkgdatadir@. I imagine it is the better for packagers. Note that this
 is the directory used by other Gtk application to ship their .ui
 files.

 Please, feel free to comment these choice. Note that before pushing, I
 will share my patch on this list before, for review.
 --
 Guilhem BONNEFILLE
 -=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
 -=- mailto:guilhem.bonnefi...@gmail.com
 -=- http://nathguil.free.fr/

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/



 --
 Guilhem BONNEFILLE
 -=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
 -=- mailto:guilhem.bonnefi...@gmail.com
 -=- http://nathguil.free.fr/



-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] [PATCH] Add support for many extensions' configuration

2012-05-05 Thread Guilhem Bonnefille
Many extensions can be added through a simple configuration file.
Currently, only user's home directory is used to load such configuration.

This patch add support for some standard locations in system.
The behavior can be affected by XDG_DATA_HOME and XDG_DATA_DIRS standard
environment variables.

Signed-off-by: Guilhem Bonnefille guilhem.bonnefi...@gmail.com

---
 Makefile.am |2 +-
 configure.ac|1 +
 data/Makefile.am|4 ++
 data/external_tools.xml |   21 +++
 data/goto_tools.xml |   33 +++
 data/maps.xml   |   78 ++
 doc/examples/external_tools.xml |   22 +++-
 doc/examples/goto_tools.xml |9 +--
 doc/examples/maps.xml   |   51 ++---
 doc/viking.xml  |   29 ++
 help/C/viking.xml   |9 ++-
 src/Makefile.am |4 ++
 src/curl_download.c |1 +
 src/dir.c   |  118 +++
 src/dir.h   |   31 ++
 src/file.c  |   34 +--
 src/file.h  |2 +-
 src/modules.c   |   46 +--
 src/preferences.c   |1 +
 19 files changed, 384 insertions(+), 112 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index ef31dde..b50ced2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = src test doc po help
+SUBDIRS = src test data doc po help
 
 INTLTOOL = \
intltool-extract.in \
diff --git a/configure.ac b/configure.ac
index 753f460..98d8368 100644
--- a/configure.ac
+++ b/configure.ac
@@ -348,6 +348,7 @@ AC_CONFIG_FILES([Makefile
 po/Makefile.in
  test/Makefile
  help/Makefile
+ data/Makefile
  doc/Makefile
  doc/examples/Makefile])
 if test x$enable_gtk_doc = xyes; then
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 000..a726185
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,4 @@
+pkgdata_DATA = maps.xml external_tools.xml goto_tools.xml
+
+EXTRA_DIST = \
+   $(pkgdata_DATA)
diff --git a/data/external_tools.xml b/data/external_tools.xml
new file mode 100644
index 000..493fd99
--- /dev/null
+++ b/data/external_tools.xml
@@ -0,0 +1,21 @@
+objects
+  object class=VikWebtoolCenter
+property name=labelLetuffe (Hiking)/property
+property 
name=urlhttp://beta.letuffe.org/?layers=0B000amp;lat=%samp;lon=%samp;zoom=%d/property
+property name=id42/property
+  /object
+  object class=VikWebtoolCenter
+property name=labelOsmose/property
+property 
name=urlhttp://osmose.openstreetmap.fr/map/cgi-bin/index.py?layers=B0Tamp;lat=%samp;lon=%samp;zoom=%d/property
+property name=id43/property
+  /object
+  object class=VikWebtoolCenter
+property name=labelNLS: Historic Map of GB/property
+property 
name=urlhttp://nls.tileserver.com?lat=%samp;lng=%samp;zoom=%d/property
+property name=id44/property
+  /object
+  object class=VikWebtoolCenter
+property name=labelYahoo! Maps/property
+property 
name=urlhttp://maps.yahoo.com/#lat=%samp;lon=%samp;zoom=%d/property
+  /object
+/objects
diff --git a/data/goto_tools.xml b/data/goto_tools.xml
new file mode 100644
index 000..2da6756
--- /dev/null
+++ b/data/goto_tools.xml
@@ -0,0 +1,33 @@
+objects
+  !-- Latitude and longitude are XML elements --
+  object class=VikGotoXmlTool
+property name=labelGeonames/property
+property 
name=url-formathttp://ws.geonames.org/search?q=%samp;maxRows=1amp;lang=esamp;style=short/property
+property name=lat-path/geonames/geoname/lat/property
+property name=lon-path/geonames/geoname/lng/property
+  /object
+  !-- Latitude and longitude are XML attributes --
+  object class=VikGotoXmlTool
+property name=labelName finder/property
+property 
name=url-formathttp://gazetteer.openstreetmap.org/namefinder/search.xml?find=%samp;max=1/property
+property name=lat-path/searchresults/named/property
+property name=lat-attrlat/property
+property name=lon-path/searchresults/named/property
+property name=lon-attrlon/property
+  /object
+  !-- Latitude and longitude are XML attributes (XPATH format) --
+  object class=VikGotoXmlTool
+property name=labelNominatim/property
+property 
name=url-formathttp://nominatim.openstreetmap.org/search?q=%samp;format=xml/property
+property name=lat-path/searchresults/place@lat/property
+property name=lon-path/searchresults/place@lon/property
+  /object
+  object class=VikGotoXmlTool
+property name=labelMapquest Nominatim/property
+property 
name=url-formathttp://open.mapquestapi.com/nominatim/v1/search?format=xmlamp;limit=1amp;q=%s/property
+property name=lat-path/searchresults/place/property
+property name=lat-attrlat/property
+property name=lon

Re: [Viking-devel] RIP msrmaps.com/terraserver; welcome CalTopo!

2012-05-04 Thread Guilhem Bonnefille
2012/5/3 Robert Norris rw_nor...@hotmail.com:
 I already have a patch that add the following beahviour to viking:
 - loop over a given list of directory to look for the differents
 extension files (maps.xml, external_tools.xml, goto_tools.xml).
 - if $VIKING_CONFIG_PATH is set, it is parsed instead of a built-in list
 For the moment, I do not load maps*.xml files (next patch?).

 Again I would advocate trying to use appropriate $XDG_* env vars instead of 
 using a newly made up one

Sorry, i did not replied to your previous mail. $XDG_* env vars seems
nice. Nevertheless, I think it's not really clean to use such var env,
while viking.conf is still located in .viking and not an XDG compliant
directory.

 Now, it is time for fixing the patch:
 - which directories to definitively look for?
 - what exact data should we put in the soonly deployed maps.xml,
 external_tools.xml, goto_tools.xml?
 - where to deploy these files?


 For the directories to look for, I think $(pkgdatadir) as provided by
 autoconf/automake is the good one. Can someone confirm this option?
 For /etc related I will use @sysconfigdir@.

 For the data, I plan to ship all example given (we already have an
 example file) + all maps declared in wiki.
 Good idea? Too many data?

 I can't decide either way.


 And finally, at the install stage, I plan to deploy these data in
 @pkgdatadir@. I imagine it is the better for packagers. Note that this
 is the directory used by other Gtk application to ship their .ui
 files.

 Please, feel free to comment these choice. Note that before pushing, I
 will share my patch on this list before, for review.
 --
 Guilhem BONNEFILLE
 -=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
 -=- mailto:guilhem.bonnefi...@gmail.com
 -=- http://nathguil.free.fr/

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/



-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] RIP msrmaps.com/terraserver; welcome CalTopo!

2012-05-03 Thread Guilhem Bonnefille
Oops... I forgive other: what about Windows and Mac users? Is there
something similar?

2012/5/3 Guilhem Bonnefille guilhem.bonnefi...@gmail.com:
 Hi,

 I already have a patch that add the following beahviour to viking:
 - loop over a given list of directory to look for the differents
 extension files (maps.xml, external_tools.xml, goto_tools.xml).
 - if $VIKING_CONFIG_PATH is set, it is parsed instead of a built-in list
 For the moment, I do not load maps*.xml files (next patch?).

 Now, it is time for fixing the patch:
 - which directories to definitively look for?
 - what exact data should we put in the soonly deployed maps.xml,
 external_tools.xml, goto_tools.xml?
 - where to deploy these files?

 For the directories to look for, I think $(pkgdatadir) as provided by
 autoconf/automake is the good one. Can someone confirm this option?
 For /etc related I will use @sysconfigdir@.

 For the data, I plan to ship all example given (we already have an
 example file) + all maps declared in wiki.
 Good idea? Too many data?

 And finally, at the install stage, I plan to deploy these data in
 @pkgdatadir@. I imagine it is the better for packagers. Note that this
 is the directory used by other Gtk application to ship their .ui
 files.

 Please, feel free to comment these choice. Note that before pushing, I
 will share my patch on this list before, for review.
 --
 Guilhem BONNEFILLE
 -=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
 -=- mailto:guilhem.bonnefi...@gmail.com
 -=- http://nathguil.free.fr/



-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] RIP msrmaps.com/terraserver; welcome CalTopo!

2012-05-02 Thread Guilhem Bonnefille
2012/5/1 Evan Battaglia gtoe...@gmx.net:
 You do not have to credit me on the two new files, they are yours. :-)
 Yeah, I just copy and paste files and don't give much thought to copyright
 notices :)

 I wasn't aware of the maps.xml file, but it is truly awesome, especially
 given how so many services use that same mercator
 OSM/slippymap/whatever-it's-called scheme. And great that users of today's
 versions of viking can use CalTopo just by editing that.


 In one hand, it seems to be a usefull freely
 available map. In the other hand, this is USA only related. Perhaps
 the hability to configure it is enough?
 I strongly advocate built-in support for topos, even if they are USA-only.
 Sure, I live in the USA, but hear me out: my main use of Viking is with
 topos, and I suspect there are many others who are the same way (for
 instance, a long long time ago, Reid Priedhorsky made some topo maps for an
 Escalante hiking trip with Viking). There is a big market for making your
 own custom topos: National Geographic TOPO
 (http://www.natgeomaps.com/topo_state.html ) sells for a ridiculous amount
 of money (like $50 for each state!), and there is also TopoFusion. And we
 can compete here. If Viking (as installed by 'apt-get install viking' in
 Ubuntu) comes shipped with support to make your own topo maps, I think it
 would increase the visibility and really show people what Viking can do.
 (I'm assuming the debian package is compiled with the default options). I
 don't think the one extra item in the menu that users from other countries
 may never use hurts much. If there were a really good Topo map source for
 only France or New Zealand or something, I wouldn't object to having it
 built-in, in fact I might be curious to see what the maps look like... and
 there are already tons of map sources compiled in that I don't use...

 Anyway, it does seem strange to me that I would have to add new code to get
 CalTopo in; I guess there's no global maps.xml file?

You're definitively right: this was a old open item on my todo list
since I added maps.xml feature. I imagine to put some files in
standard locations:
- /usr/share/viking/maps.xml (or something like that, depending on distribution)
- /etc/viking/maps.xml
Classicaly, the main difference is that /etc/viking/maps.xml is
editable by admin while /usr/share/viking/maps.xml is supposed to stay
untouched, only deployed by package.

But a question remains: what logic should we implement to offer
maximum power to user.

First logic: we only load a single file, the first one found:
- $HOME/.viking/maps.xml
- /etc/viking/maps.xml
- /usr/share/viking/maps.xml
This logic allows the user to overwrite all settings, keeping only the
most interesting for him.

Second logic: we load all files. The current internal management allow
to overwrite existing ids with new definitions.
The matter with this logic is that the list of supported maps provider
can be very long. In the other hand, this will allow the user to
discover new maps when upgrading the package, even if he already
defined a personnal maps.xml.

I'm not sure about the right option. And perhaps there is other
options. I think the second one is better.

And I imagine we can go further: load more than one file per
directory. For example, load maps.xml + maps_*.xml (or *_maps.xml).
Why? In order to allow packaging all map source in different files and
different package (one per country, for example viking-data-us.deb).
This way, the packagers and users will have lot of power with few
effort.


Any comment appreciated. I'm available to do such changes, but I need
a direction.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] RIP msrmaps.com/terraserver; welcome CalTopo!

2012-05-02 Thread Guilhem Bonnefille
2012/5/2 Evan Battaglia gtoe...@gmx.net:
 I'm not sure if you meant to email just me or forgot to hit 'reply all' to
 email the whole mailing list.

Oups... thanks for the advice.

 It doesn't matter too much to me. I think you're right the second options is
 slightly better. I'm guessing many people who use viking will be the sole
 users of their computers (like I am), so they can edit the /usr/share and
 /etc/ files directly themselves. One thing that would be nice would be the
 ability to use the global maps.xml file without doing a make install (i.e.
 it looks in the directory relative to where it is), but even that isn't
 really necessary, since I or a user can just copy it into his
 ~/.viking/maps.xml directory. It would be good to try and give as much
 visibility about this file as possible, though.

Humh, I do not really like the idea to load a local file silently. But
perhaps I'm wrong.

What do you think about adding a command line option to:
- specify a single .xml file
- specify a config directory
I think the second option is better and probably cover your expected use case.
A related question is What is the precedence of the file specified in
command line? I think common usage expect that command line option
are prior than $HOME config files, prior than /etc prior than
/usr/share.

Other idea is to add a VIKING_CONFIG_PATH variable environment. If
unset, built-in configuration path is
$HOME/.viking:/etc/viking:/usr/shar/viking. If set, the built-in is
not used and only the specified path are used. But perhaps should we
ALWAYS process the $HOME/.viking even when VIKING_CONFIG_PATH is set.

 On Tue, May 1, 2012 at 11:50 AM, Guilhem Bonnefille
 guilhem.bonnefi...@gmail.com wrote:

 2012/5/1 Evan Battaglia gtoe...@gmx.net:
  You do not have to credit me on the two new files, they are yours. :-)
  Yeah, I just copy and paste files and don't give much thought to
  copyright
  notices :)
 
  I wasn't aware of the maps.xml file, but it is truly awesome, especially
  given how so many services use that same mercator
  OSM/slippymap/whatever-it's-called scheme. And great that users of
  today's
  versions of viking can use CalTopo just by editing that.
 
 
  In one hand, it seems to be a usefull freely
  available map. In the other hand, this is USA only related. Perhaps
  the hability to configure it is enough?
  I strongly advocate built-in support for topos, even if they are
  USA-only.
  Sure, I live in the USA, but hear me out: my main use of Viking is with
  topos, and I suspect there are many others who are the same way (for
  instance, a long long time ago, Reid Priedhorsky made some topo maps for
  an
  Escalante hiking trip with Viking). There is a big market for making
  your
  own custom topos: National Geographic TOPO
  (http://www.natgeomaps.com/topo_state.html ) sells for a ridiculous
  amount
  of money (like $50 for each state!), and there is also TopoFusion. And
  we
  can compete here. If Viking (as installed I have a preference by
  'apt-get install viking' in

  Ubuntu) comes shipped with support to make your own topo maps, I think
  it
  would increase the visibility and really show people what Viking can do.
  (I'm assuming the debian package is compiled with the default options).
  I
  don't think the one extra item in the menu that users from other
  countries
  may never use hurts much. If there were a really good Topo map source
  for
  only France or New Zealand or something, I wouldn't object to having it
  built-in, in fact I might be curious to see what the maps look like...
  and
  there are already tons of map sources compiled in that I don't use...
 
  Anyway, it does seem strange to me that I would have to add new code to
  get
  CalTopo in; I guess there's no global maps.xml file?

 You're definitively right: this was a old open item on my todo list
 since I added maps.xml feature. I imagine to put some files in
 standard locations:
 - /usr/share/viking/maps.xml (or something like that, depending on
 distribution)
 - /etc/viking/maps.xml
 Classicaly, the main difference is that /etc/viking/maps.xml is
 editable by admin while /usr/share/viking/maps.xml is supposed to stay
 untouched, only deployed by package.

 But a question remains: what logic should we implement to offer
 maximum power to user.

 First logic: we only load a single file, the first one found:
 - $HOME/.viking/maps.xml
 - /etc/viking/maps.xml
 - /usr/share/viking/maps.xml
 This logic allows the user to overwrite all settings, keeping only the
 most interesting for him.

 Second logic: we load all files. The current internal management allow
 to overwrite existing ids with new definitions.
 The matter with this logic is that the list of supported maps provider
 can be very long. In the other hand, this will allow the user to
 discover new maps when upgrading the package, even if he already
 defined a personnal maps.xml.

 I'm not sure about the right option. And perhaps there is other
 options. I

Re: [Viking-devel] RIP msrmaps.com/terraserver; welcome CalTopo!

2012-04-30 Thread Guilhem Bonnefille
Hi Evan,

2012/4/29 Evan Battaglia gtoe...@gmx.net:
 [snip]
 Anyway, my commit to add support for it is here:
 https://github.com/evanbattaglia/viking/commit/799f073c1ff89f8cd904d39e364fb9d402bce844

 Tell me if anyone has any comments. I just copied the autotools stuff from
 BlueMarble, man that stuff is crazy :) I'm not sure how we're picking map
 source IDs these days, I just picked a random number that wasn't being used
 (29). Seems like these ids are kind of all over and hard to see what is
 being used...

 I've also attached a patch made with 'git format-patch master'. Or I guess I
 still have permissions to write directly to the SF git repo... haven't done
 it in a few years ...

I did not test your patch, simply read it.

You do not have to credit me on the two new files, they are yours. :-)

You can find a (quite) complete list of maps here:
http://sourceforge.net/apps/mediawiki/viking/index.php?title=Maps
Can be a good source to check if an internal id is free or not. You
can also describe your new source as a simple configuration. This can
allow people to use it even with an older version of viking.

About the integration of such map inside the viking code, I do not
have clear position. In one hand, it seems to be a usefull freely
available map. In the other hand, this is USA only related. Perhaps
the hability to configure it is enough?

Any opinion? How to decide wether a map as to be a built-in and when a
simple configuration is enough?

Best regards,
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] background jobs/threads limit?

2012-03-31 Thread Guilhem Bonnefille
I think a good improvement would be to use a threadpool per maps
provider. By this way, we can set the size of the pool for each maps
provider, without reducing downloading performances when using
multiple maps providers at the same time.

Other solution can be to use a richer transport layer: libsoup can
do many things libcurl can't.

2012/1/9 Robert Norris rw_nor...@hotmail.com:

I think am seeing what seems to be too many simultaneous downloads from
osm, but I'm not sure.
Where is the configuring for the max number of requests at once to some
site?  I would think this should be 2 or 4, but not more.   I am
wondering if I am getting throttled, and would like to set it to 1 - but
I don't see a preference.

 ATM The number of threads used is 10 and is not configurable (yet...)

 See background.c - a_background_init()

 Note these threads aren't just for maps, but for every background processing 
 eg DEMs  Waypoint image processing, so there is no control per background 
 type, let alone per map source.

 HTH.


 --
 Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
 infrastructure or vast IT resources to deliver seamless, secure access to
 virtual desktops. With this all-in-one solution, easily deploy virtual
 desktops for less than the cost of PCs and save 60% on VDI infrastructure
 costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/



-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] [PATCH] Fix: send VLP's update signal when adding a layer

2011-10-08 Thread Guilhem Bonnefille
The VikLayersPanel's update signal is not emited when a layer is
added (for example after a Copy-Paste action).

There is no reason for that, as adding a layer also upadtes the
VikLayersPanel.

Signed-off-by: Guilhem Bonnefille guilhem.bonnefi...@gmail.com

---
 src/viklayerspanel.c |   15 ++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/viklayerspanel.c b/src/viklayerspanel.c
index c739a00..aa89e9e 100644
--- a/src/viklayerspanel.c
+++ b/src/viklayerspanel.c
@@ -412,6 +412,12 @@ static void layers_popup_cb ( VikLayersPanel *vlp )
   layers_popup ( vlp, NULL, 0 );
 }
 
+/**
+ * vik_layers_panel_new_layer:
+ * @type: type of the new layer
+ * 
+ * Create a new layer and add to panel.
+ */
 gboolean vik_layers_panel_new_layer ( VikLayersPanel *vlp, gint type )
 {
   VikLayer *l;
@@ -420,12 +426,17 @@ gboolean vik_layers_panel_new_layer ( VikLayersPanel 
*vlp, gint type )
   if ( l )
   {
 vik_layers_panel_add_layer ( vlp, l );
-vik_layers_panel_emit_update ( vlp );
 return TRUE;
   }
   return FALSE;
 }
 
+/**
+ * vik_layers_panel_add_layer:
+ * @l: existing layer
+ * 
+ * Add an existing layer to panel.
+ */
 void vik_layers_panel_add_layer ( VikLayersPanel *vlp, VikLayer *l )
 {
   GtkTreeIter iter;
@@ -473,6 +484,8 @@ void vik_layers_panel_add_layer ( VikLayersPanel *vlp, 
VikLayer *l )
 else
   vik_aggregate_layer_add_layer ( addtoagg, l );
   }
+
+  vik_layers_panel_emit_update ( vlp );
 }
 
 static void layers_move_item ( VikLayersPanel *vlp, gboolean up )
-- 
tg: (06ee554..) t/fix/vlp-update (depends on: master)

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] [PATCH] Remove duplicate redraw

2011-10-08 Thread Guilhem Bonnefille
VikLayersPanel's actions fired from menu produce two redraw:
- one due to update signal
- another due to explicit redraw call in menu's callback functions

Signed-off-by: Guilhem Bonnefille guilhem.bonnefi...@gmail.com

---
 src/vikwindow.c |2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/vikwindow.c b/src/vikwindow.c
index 2cc7feb..f444b87 100644
--- a/src/vikwindow.c
+++ b/src/vikwindow.c
@@ -1343,7 +1343,6 @@ static void menu_copy_layer_cb ( GtkAction *a, VikWindow 
*vw )
 static void menu_cut_layer_cb ( GtkAction *a, VikWindow *vw )
 {
   vik_layers_panel_cut_selected ( vw-viking_vlp );
-  draw_update ( vw );
   vw-modified = TRUE;
 }
 
@@ -1351,7 +1350,6 @@ static void menu_paste_layer_cb ( GtkAction *a, VikWindow 
*vw )
 {
   if ( a_clipboard_paste ( vw-viking_vlp ) )
   {
-draw_update ( vw );
 vw-modified = TRUE;
   }
 }
-- 
tg: (67567a4..) t/fix/remove-duplicate-redraw (depends on: t/fix/vlp-update)

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Bug: New layer buton no more work

2011-10-07 Thread Guilhem Bonnefille
The New layer buton (with + icon) no more work: clicking on it
does not open the popup list.
It seems that the wrong commit is a229773ff51163cbc823001de34bd8c7833f9d49.

The matter (I think) is that path field cannot contains accelerator
character as it is used as path to retrieve widget later.
Furthermore, it seems that such construction is deprecated.

http://developer.gnome.org/gtk/2.24/GtkItemFactory.html#GtkItemFactoryEntry

PS: I was unable to understand what is expected to occur, how to use
the accelerator.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Help for translation (was: Help for translation of Windows installer)

2011-10-02 Thread Guilhem Bonnefille
Hi,

2011/10/2 Jordi Hortigüela jb...@earcon.com:
 I'm interested to translate viking to my local language Catalan, can anybody
 show me how to do that ?

Nice!
The viking's translation is done with Launchpad:
https://translations.launchpad.net/viking

Simply create an account and start to translate, directly on web page.

Then, we will pick the new translation before releasing new version of viking.

PS: are you running viking n GNU/Linux (or UNIX-like system) or Windows?
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] [PATCH] Replace Append entry with a toggle in Open dialog

2011-10-02 Thread Guilhem Bonnefille
Hi,

2011/10/2 Robert Norris rw_nor...@hotmail.com:


 if ( ! vw-open_dia )
 {
 + /* A toggle to decide if we have to open a new window or not */
 + GtkWidget *toggle = gtk_check_button_new_with_label (_(Open file in a new 
 window));
 + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), TRUE);
 + gtk_widget_show (toggle);
 +

 It would be better if this could be defaulted to FALSE when one hasn't opened 
 anything yet.

 eg:
 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), vw-filename != 
 NULL);

 Otherwise one starts viking (get a window), then go to open file - select a 
 file - get *another* window, unless you remember to uncheck the toggle.

You're rigth: as this patch removed Append menu entry and so solved
the possible inconsistency, we can restore the feature removed by the
previous patch.


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Google Maps

2011-10-01 Thread Guilhem Bonnefille
Hi,

2011/10/1 Jordi Hortigüela jb...@earcon.com:
 I use viking to build tracks for walking, biking whatever unfortunatelly all
 maps collection that comes with default with no cover my local area near
 Barcelona.

Did you give an eye to Bing maps? It is supported by viking and seems
to cover Barcelona.
Other supported maps:
http://sourceforge.net/apps/mediawiki/viking/index.php?title=Maps


 After reading several on viking and Google seems that is possible to
 configure Google maps TMS to work with viking anybody help me to setup this
 feature.

Google was supported. But this support was removed, as requested by
Google. Hack is probably still possible, but, please, talk about this
outside this ailing list.

 All other suggestions or workarounds are wellcome

Feel free to check an other map source.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Help for translation of Windows installer

2011-10-01 Thread Guilhem Bonnefille
Hi,

2011/9/30 Mathieu mathie...@gmail.com:
 Here is a spanish translation from one of my friend. Gracias Roberto.

Nice!
Can we have more details about Roberto? Using Git, I can give him
full attribution. I just need an email address. Furthermoe, this could
be certainly fair to add his email in the spanish.nsh file.

 Is it possible to add the strings to be translated manually to Viking
 launchpad to attract more translators?

I don't think so. I know how to send .po file to Launchpad, and I
don't think it supports anything else.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Import file via gpsbabel

2011-09-29 Thread Guilhem Bonnefille
2011/9/8 Guilhem Bonnefille guilhem.bonnefi...@gmail.com:
 2011/9/8 Robert Norris rw_nor...@hotmail.com:

 A. It is slightly annoying one may specify the 'file type' twice (especially 
 when it's a choice of over 150 kinds!)

 i.e. One goes into file selection dialog, chooses a filter, then picks a 
 file.
 But then need to set the file type to be used in our Import File dialog.
 Or vice versa - set a file type but then is not used as the filter when 
 actually picking a file.

 Obviously files can be called anything and have any file type - which we 
 have to tell gpsbabel.

 It might be better to order the Import File dialog like this:
 1. File Type
 2. Filename Selection
 3. Track/Route/Waypoint options

 Then on choosing the file type, this can auto set the default used for the 
 file selection.

 One matter: two lists are not simmetrical as some file types does not
 have file extension.

 IMHO, if we have to change part of this, we have to implement
 something that preset the file type when a file is selected.

Humh... not so easy to implement. I prefer to publish this feature as
is (not enought spare time for this topic).

 B. Be wary of the track/route/waypoint options not doing what you think they 
 should do!

 I thought if I deselected the waypoint or track options and opened a gpx or 
 kml file then I would *not* get that type of information.
 This does not seem to be the way GPSBabel works - especially on file 
 conversions - or the behaviour is dependent on the file format used.

 I think track/route/waypoint options mainly apply to the serial data formats 
 not the file conversions.

 Some options in order of difficulty:
 1. Add GUI visible statement that they only work on some file formats (but 
 which ones???)
 2. Remove these track/route/waypoint options
 3. Perform automatic post processing ourselves to remove the kinds of data 
 the user doesn't want.

 Yes, it seems that -t/r/w options do not already work the same way for
 all file type.

 For example, I use these options to convert magellan files to gpx and
 gpx to magellan format. I know I need these options to route
 gpsbabel to the right format to produce, as magellan does not mix
 track, route and waypoint in the same file.

It seems that the simpler (and so better) solution is to remove these
options. The user can remove data later, on TRW layer.

So, no need for these GUI option nor command line option.

 C. Importing files this way don't get stored into the recently opened file 
 list. [It would be difficult to open them as nothing is stored about what 
 type it is - it is possible an auto guess based on filename extension could 
 work for some but not all files.].

 I'm OK with not going into the recently opened list.

 Yes, it is currently an import, not a file openning.

Note that we can certainly register a complex GtkRecentData and
supporting a new command line option to import a file with a given
GPSBabel format.


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Documenting data loading

2011-09-28 Thread Guilhem Bonnefille
Hi,

I realise that viking's documentation does not clearly expose how to
load data. I'm thinking about Acquire menu or Open or Append.
But it is an important feature.

The matter is I don't know how to structure user manual.

Any suggestion ?
Structure or content is welcome.

Latest compiled user manual:
http://sourceforge.net/projects/viking/files/viking/1.2.1/viking.pdf/download
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Programme Viking

2011-09-25 Thread Guilhem Bonnefille
Hi John,

Please, note that it is better to send message to the viking's mailing
list. I CC to the list.

2011/9/24 Read John rentallre...@googlemail.com:
    Congratulations on a very useful programme,  there is only one thing I
 would very much like to see added. This is to enable the total length of a
 track to be calculated and shown on the printout.

    This feature is available on EasyGPS but that programme has not been
 adapted to run on Ubuntu which is my chosen operating system.

    Please let me know if you are able to include this calculation in an
 update.

I'm not sure to understand your need. The total length of a track can
be read on the 'Property' of the track: Rigth click on the track and
choose the right menu entry.


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Tiles get deleted in offline mode

2011-09-11 Thread Guilhem Bonnefille
Hi,

2011/9/11 Lixus Zoran g...@muellers.ms:
 I just noticed, that this bug is back in latest git trunk.

 I already filed a bug report and it got resolved, but it seems
 viking is now again deleting tiles if auto download map is enabled
 and there is no connection to the internet.

 Can one of the superusers please reopen this bug
 http://sourceforge.net/tracker/?func=detailaid=3042692group_id=83870atid=570954

 Thanks

 BTW: At the moment navit saved my live cause it can render osm maps on the 
 fly offline,
 but it lacks gpx way- trackpoin layer support.

Yes, navit is really usefull. I discovered it this year and played
with it this summer (on freerunner). For offline browsing, vector data
is *the* solution.

Concerning GPS logging, Navit can do the job: it is really
configurable, but not user friendly. The tracking is activated via the
configuration file, an run automatically in background, AFAIK.

Recently, I discovered MCNavi, an other offline OSM GPS, with tracking
solution. Perhaps a better alternative, depending what you need.
http://www.gps-routes.info/index.php?name=Contentpa=showpagepid=1

Please, note that I try to collect many related projects:
https://sourceforge.net/apps/mediawiki/viking/index.php?title=Links

 But who know, perhaps viking 2.0 will
 be able to render osm map tiles on demand.

There is some work on this direction:
http://repo.or.cz/w/viking/gosmore.git
Needs to be completed and, most of all, updated to current viking.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Tiles get deleted in offline mode

2011-09-11 Thread Guilhem Bonnefille
2011/9/11 Robert Norris rw_nor...@hotmail.com:

 
 Date: Sun, 11 Sep 2011 08:51:49 +0200
 From: g...@muellers.ms
 To: viking-devel@lists.sourceforge.net
 Subject: Re: [Viking-devel] Tiles get deleted in offline mode

 Hi,

 I just noticed, that this bug is back in latest git trunk.

 I already filed a bug report and it got resolved, but it seems
 viking is now again deleting tiles if auto download map is enabled
 and there is no connection to the internet.

 Can one of the superusers please reopen this bug
 http://sourceforge.net/tracker/?func=detailaid=3042692group_id=83870atid=570954


 This took a while but I think I understand this now (limited by my git fu 
 knowledge)

 The offending line is in download.c at line 241:
    g_remove ( fn ); /* couldn't create temporary. delete 0-byte file. */

 This was originally fixed by commit 4945e425d481ca7b9a4c6e00a8e11bff79d254a4 
 by Jocelyn back in 2010-09-13.

 *HOWEVER*, it appears that by the subsequent merging of the remote branch 
 'jocelyn/etag' on 2010-10-11 this somehow restores the offending line.
 [I don't quite understand how/why this line was restored but the second chunk 
 of the patch is kept - I can't seem to track an exact commit where it 
 actually changes!**]

 ** If anyone can find the exact reason / commit why this happened - please 
 explain as I would like to understand.

git bissect drives me to commit b529dc9c00bbafad3671e76e719277d4deecddbc
Exploring history, I also conclude that it is the first commit where
the bug came back.
But I do not understand how, as git show do not display such a change.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] [PATCH] Add support for any device known by gpsbabel

2011-09-10 Thread Guilhem Bonnefille
There is no specific reason to restrict the list of supported devices
to a small number. Now, we directly offer the ability to use any
device supported by gpsbabel.

Signed-off-by: Guilhem Bonnefille guilhem.bonnefi...@gmail.com

---
 src/datasource_gps.c |   47 +--
 1 files changed, 17 insertions(+), 30 deletions(-)

diff --git a/src/datasource_gps.c b/src/datasource_gps.c
index 3e6ccce..388a802 100644
--- a/src/datasource_gps.c
+++ b/src/datasource_gps.c
@@ -43,6 +43,8 @@
 
 static gboolean gps_acquire_in_progress = FALSE;
 
+static gint last_active = 0;
+
 static gpointer datasource_gps_init_func ( );
 static void datasource_gps_get_cmd_string ( gpointer 
add_widgets_data_not_used, gchar **babelargs, gchar **input_file );
 static void datasource_gps_cleanup ( gpointer user_data );
@@ -105,7 +107,6 @@ static gpointer datasource_gps_init_func ()
 
 static void datasource_gps_get_cmd_string ( gpointer user_data, gchar 
**babelargs, gchar **input_file )
 {
-  char *proto = NULL;
   char *ser = NULL;
   char *device = NULL;
 #ifndef USE_NEW_COMBO_BOX
@@ -119,22 +120,8 @@ static void datasource_gps_get_cmd_string ( gpointer 
user_data, gchar **babelarg
   
   gps_acquire_in_progress = TRUE;
 
-#ifdef USE_NEW_COMBO_BOX
-  proto = gtk_combo_box_get_active_text(GTK_COMBO_BOX(w-proto_b));
-#else
-  proto = gtk_combo_box_get_active_iter(GTK_COMBO_BOX(w-proto_b),iter);
-#endif
-  if (!strcmp(proto, Garmin)) {
-device = garmin;
-  } else if (!strcmp(proto, Magellan)) {
-device = magellan;
-  }
-  else if (!strcmp(proto, DeLorme)) {
-device = delbin;
-  }
-  else {
-device = navilink;
-  }
+  last_active = gtk_combo_box_get_active(GTK_COMBO_BOX(w-proto_b));
+  device = ((BabelDevice*)g_list_nth_data(a_babel_device_list, 
last_active))-name;
 
   *babelargs = g_strdup_printf(-D 9 -t -w -i %s, device);
   /* device points to static content = no free */
@@ -154,7 +141,6 @@ static void datasource_gps_get_cmd_string ( gpointer 
user_data, gchar **babelarg
 
 static void datasource_gps_off ( gpointer user_data, gchar **babelargs, gchar 
**input_file )
 {
-  char *proto = NULL;
   char *ser = NULL;
   char *device = NULL;
 #ifndef USE_NEW_COMBO_BOX
@@ -171,15 +157,12 @@ static void datasource_gps_off ( gpointer user_data, 
gchar **babelargs, gchar **
 return;
   }
   
-#ifdef USE_NEW_COMBO_BOX
-  proto = gtk_combo_box_get_active_text(GTK_COMBO_BOX(w-proto_b));
-#else
-  proto = gtk_combo_box_get_active_iter(GTK_COMBO_BOX(w-proto_b),iter);
-#endif
-  if (!strcmp(proto, Garmin)) {
+  last_active = gtk_combo_box_get_active(GTK_COMBO_BOX(w-proto_b));
+  device = ((BabelDevice*)g_list_nth_data(a_babel_device_list, 
last_active))-name;
+  if (!strcmp(device, garmin)) {
 device = garmin,power_off;
   }
-  else if (!strcmp(proto, NAViLink)) {
+  else if (!strcmp(device, navilink)) {
 device = navilink,power_off;
   }
   else {
@@ -333,6 +316,13 @@ static void datasource_gps_progress ( BabelProgressCode c, 
gpointer data, acq_di
   }
 }
 
+void append_element (gpointer elem, gpointer user_data)
+{
+  GtkComboBox *combo = GTK_COMBO_BOX (user_data);
+  const gchar *text = ((BabelDevice*)elem)-label;
+  gtk_combo_box_append_text (combo, text);
+}
+
 void datasource_gps_add_setup_widgets ( GtkWidget *dialog, VikViewport *vvp, 
gpointer user_data )
 {
   gps_user_data_t *w = (gps_user_data_t *)user_data;
@@ -340,11 +330,8 @@ void datasource_gps_add_setup_widgets ( GtkWidget *dialog, 
VikViewport *vvp, gpo
 
   w-proto_l = gtk_label_new (_(GPS Protocol:));
   w-proto_b = GTK_COMBO_BOX(gtk_combo_box_new_text ());
-  gtk_combo_box_append_text (w-proto_b, Garmin);
-  gtk_combo_box_append_text (w-proto_b, Magellan);
-  gtk_combo_box_append_text (w-proto_b, DeLorme);
-  gtk_combo_box_append_text (w-proto_b, NAViLink);
-  gtk_combo_box_set_active (w-proto_b, 0);
+  g_list_foreach (a_babel_device_list, append_element, w-proto_b);
+  gtk_combo_box_set_active (w-proto_b, last_active);
   g_object_ref(w-proto_b);
 
   w-ser_l = gtk_label_new (_(Serial Port:));
-- 
tg: (1611d03..) t/acquire/improve-gps (depends on: 
t/acquire/introspect-gpsbabel)

--
Malware Security Report: Protecting Your Business, Customers, and the 
Bottom Line. Protect your business and customers by understanding the 
threat from malware and how it can impact your online business. 
http://www.accelacomm.com/jaw/sfnl/114/51427462/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] [PATCH] Add support for any device known by gpsbabel

2011-09-10 Thread Guilhem Bonnefille
2011/9/10 Guilhem Bonnefille guilhem.bonnefi...@gmail.com:
 There is no specific reason to restrict the list of supported devices
 to a small number. Now, we directly offer the ability to use any
 device supported by gpsbabel.

 Signed-off-by: Guilhem Bonnefille guilhem.bonnefi...@gmail.com


Waiting for an improvement of the patch to import files, I suggest to
apply this patch. It use the previous patches to introspect gpsbabel
and discover the list of supported device.

A future path can certainly improve the dialog box to acquire data
from device. For example, adding track/route/waypoint options, or
other usefull options (I do not use this feature as my GPS device
implement usb_storage support).

Any comment?
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Malware Security Report: Protecting Your Business, Customers, and the 
Bottom Line. Protect your business and customers by understanding the 
threat from malware and how it can impact your online business. 
http://www.accelacomm.com/jaw/sfnl/114/51427462/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] [PATCH] Add support for any device known by gpsbabel

2011-09-10 Thread Guilhem Bonnefille
2011/9/10 Robert Norris rw_nor...@hotmail.com:


 A future path can certainly improve the dialog box to acquire data
 from device. For example, adding track/route/waypoint options, or
 other usefull options (I do not use this feature as my GPS device
 implement usb_storage support).

 Any comment?

 I have been working on this for a while see (newly published):

 https://github.com/rnorris/viking/commits/GPS-DataTypes

 [No routes yet...]


 However I was waiting to complete the Route support first:

 https://github.com/rnorris/viking/commits/GPX-RouteSupport

 I also have code for GPS Device Defaults stored in new preferences - but that 
 will have to be reworked now that the list of protocols is dynamic.

 I was also working on putting the Acquire menu into the trackwaypoint layer 
 menu (newly published):
 https://github.com/rnorris/viking/commits/TrackWaypoint-Acquire-GPSUp

 This will need addition for your File import method.

 Also I'm working on a GPS upload from the trackwaypoint layer.
 This involves reworking the all the GPS code and commonizing stuff, and is a 
 work in progress. (and better if route support changes applied first too).

Nice.

Following your previous comments, I will keep my ImportFile patch in
work-in-progress state for some time.

As other patches do not conflict, I propose:
- you push TrackWaypoint-Acquire-GPSUp onto master
- if ready, you push GPS-Device-Defaults onto master
- I push the needed patches for my Dynamic-Device-List (updating it if
you decided to push GPS-Device-Defaults)

All this job can be done in the week-end.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Malware Security Report: Protecting Your Business, Customers, and the 
Bottom Line. Protect your business and customers by understanding the 
threat from malware and how it can impact your online business. 
http://www.accelacomm.com/jaw/sfnl/114/51427462/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Import file via gpsbabel

2011-09-08 Thread Guilhem Bonnefille
Hi,

Thanks for all these comments.

2011/9/8 Robert Norris rw_nor...@hotmail.com:

 Some observations for further discussion and unfortunately larger (re)work.

When coding this feature, I also realized all the limits you spotted
about current implementation. But I imagined that it is significant
work to implement all this. So, I decided to create a simple solution,
perhaps not trivial for user, but simple.

Please, found some more details in-text.

 A. It is slightly annoying one may specify the 'file type' twice (especially 
 when it's a choice of over 150 kinds!)

 i.e. One goes into file selection dialog, chooses a filter, then picks a file.
 But then need to set the file type to be used in our Import File dialog.
 Or vice versa - set a file type but then is not used as the filter when 
 actually picking a file.

 Obviously files can be called anything and have any file type - which we have 
 to tell gpsbabel.

 It might be better to order the Import File dialog like this:
 1. File Type
 2. Filename Selection
 3. Track/Route/Waypoint options

 Then on choosing the file type, this can auto set the default used for the 
 file selection.

One matter: two lists are not simmetrical as some file types does not
have file extension.

IMHO, if we have to change part of this, we have to implement
something that preset the file type when a file is selected.

 B. Be wary of the track/route/waypoint options not doing what you think they 
 should do!

 I thought if I deselected the waypoint or track options and opened a gpx or 
 kml file then I would *not* get that type of information.
 This does not seem to be the way GPSBabel works - especially on file 
 conversions - or the behaviour is dependent on the file format used.

 I think track/route/waypoint options mainly apply to the serial data formats 
 not the file conversions.

 Some options in order of difficulty:
 1. Add GUI visible statement that they only work on some file formats (but 
 which ones???)
 2. Remove these track/route/waypoint options
 3. Perform automatic post processing ourselves to remove the kinds of data 
 the user doesn't want.

Yes, it seems that -t/r/w options do not already work the same way for
all file type.

For example, I use these options to convert magellan files to gpx and
gpx to magellan format. I know I need these options to route
gpsbabel to the right format to produce, as magellan does not mix
track, route and waypoint in the same file.

I have to check more.


But note we know which feature is supported by which file type. The
choice we have to decide is the scenario:
- do we filter the available options following the selected file type
- do we filter the available file types following the selected options

I'm not sure what an user will prefer.

 C. Importing files this way don't get stored into the recently opened file 
 list. [It would be difficult to open them as nothing is stored about what 
 type it is - it is possible an auto guess based on filename extension could 
 work for some but not all files.].

 I'm OK with not going into the recently opened list.

Yes, it is currently an import, not a file openning.

 D. Slight aside, but whilst in the area - we should probably use the '-p ' 
 option to override users gpsbabel .ini defaults.

 See http://www.gpsbabel.org/htmldoc-1.4.2/inifile.html

Thanks for this.

 
 Date: Wed, 7 Sep 2011 22:05:41 +0200
 From: guilhem.bonnefi...@gmail.com
 To: viking-devel@lists.sourceforge.net
 Subject: [Viking-devel] Import file via gpsbabel

 Hi,

 As many of you already know, viking uses gpsbabel for many features.
 Most of them concern format conversions. But, currently, only some
 formats are offered via viking. I not really know why viking does not
 support all formats supported by gpsbabel. And recently, I discovered
 that gpsbabel is able to list all the formats and options it knows.

 I made many changes on viking. Before merging them on viking's master
 branch, Any comments are welcome:
 http://repo.or.cz/w/viking/guyou.git/shortlog/refs/heads/import-via-gpsbabel


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Import file via gpsbabel

2011-09-07 Thread Guilhem Bonnefille
Hi,

As many of you already know, viking uses gpsbabel for many features.
Most of them concern format conversions. But, currently, only some
formats are offered via viking. I not really know why viking does not
support all formats supported by gpsbabel. And recently, I discovered
that gpsbabel is able to list all the formats and options it knows.

I made many changes on viking. Before merging them on viking's master
branch, Any comments are welcome:
http://repo.or.cz/w/viking/guyou.git/shortlog/refs/heads/import-via-gpsbabel

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Viking 1.2 released

2011-06-02 Thread Guilhem Bonnefille
.
* Improve previous fix: background calling code should control return value
* Fix: background calling code should control return value
* Fix: enforce background feature
* Fix compiler warnings from gcc 4.5.4
* SF#3178554: Fix Sun Studio build
* gtk_object_sink has been deprecated since gtk version 2.10, use
g_object_ref_sink() instead.

Translations:

* Updated tr Translation (sezaiyeniay )
* Updated ru Translation (Dmitri Bogomolov )
* Updated de Translation (eknus )
* Updated it Translation (Alessi Andrea )
* Updated cs Translation (Radek Stastny )
* Updated zh_CN Translation (英华 )

Contributors:

* Guilhem Bonnefille
* Mathieu Albinet
* Milan Jurik
* Rob Norris
* Sven Wegener

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Re: [Viking-devel] Viking 1.2 released

2011-06-02 Thread Guilhem Bonnefille
2011/6/2 Guilhem Bonnefille guilhem.bonnefi...@gmail.com:
 Viking 1.2 released.

As usual, I forgave to push the release related changes. Please, be
patient, I'm far from my desktop for the week-end.

But you can check the tarball version. ;-)

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] tile age 30s ???

2011-05-24 Thread Guilhem Bonnefille
2011/5/11 Greg Troxel g...@ir.bbn.com:

 The default for tile age seems to be 30s.  This seems way too short.
 While someone actively mapping in OSM might want to reload, it seems
 like map tiles are relatively static over that kind of timescale.  I
 have set the tile age to 604800s (1 week).    It seems rude to OSM to
 recheck tiles more often than once a day, or maybe once an hour.

I've just found the Tile usage policy of OSM. They request
downloaders use HTTP Expiry Header or 1 week age per default. We have
to change the value in Viking's code.

http://wiki.openstreetmap.org/wiki/Tile_usage_policy

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] git repositories?

2011-05-21 Thread Guilhem Bonnefille
I added links in README file and viking.doap file.
I also started a section on the wiki to list Git forks.

--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] [PATCH] Store ETAG in extended attributes

2011-05-21 Thread Guilhem Bonnefille
2011/5/21 Sven Wegener sven.wege...@stealer.net:
 If supported, store the etag values from downloaded tiles in extended
 attributes on the local files, instead of cluttering our maps directory
 with .etag files.

I really like the idea to let the filesystem store this information for us.
But how portable is this solution? What about windows (we have
significant number of users on windows)?

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] tile age 30s ???

2011-05-14 Thread Guilhem Bonnefille
2011/5/13 Robert Norris rw_nor...@hotmail.com:


The default for tile age seems to be 30s.  This seems way too short.
While someone actively mapping in OSM might want to reload, it seems
like map tiles are relatively static over that kind of timescale.  I
have set the tile age to 604800s (1 week).    It seems rude to OSM to
recheck tiles more often than once a day, or maybe once an hour.

For terraserver DRG and imagery, 1 week is perhaps too short - those
bits are quite static.

What's the motivation for 30s?  Would anyone object to changing it to 1
week?

 No idea why it was set to 30. Presumably because that's better than 1 second!

 I thought the default was changed, but double checking shows it was just 
 upping the max allowable value in gui preference.

 Maybe the value should be shown in days/hours.
 I mean how useful is it to set it to 54320 seconds? - what does that even 
 mean!

 Agreed 1 week is much better, although personally I use 1 day (86400s) which 
 might be better for OSM type usage.

Please, note that such SMALL delay was coupled with the ability to
check the status of files on remote without downloading it. So,
theorically, the load on server is quite reasonable. But it seems our
implementation of this part is perfectible.

Other note: due to theory of observation, the refresh frequency
should be more than twice the effective refresh on server. The better
example for this, is the case of a clock: the UI part should use a
timer less than half a second (for example 0,4 second) in order to
ensure the clock always displays the right value.
So, if you think tiles are refreshed once a day, you have to set a
value less than half a day. Example: with a 1 day delay, if tile is
changed in 1 day + 1 second, you will wait 2 days before having the
fresh tile.

Other note: how work web browsers about this? What is the delay used?

 Another alternative could be to have another tile age for 'non-volatile'* 
 maps such as mentioned: terraserver, bing, etc...
 *better name needed - stable?
 Which would default to something like a month.

Why not only zero, in order to only alow manual refresh?

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Request for comment for Bing maps support

2011-03-10 Thread Guilhem Bonnefille
Hi all,

I updated my bing-map branch. Now, the attributions are downloaded in
background, only when needed.

I know a possible issue: when attribution are downloaded, viewport is
not refreshed immediately.

2011/2/13 Guilhem Bonnefille guilhem.bonnefi...@gmail.com:
 Hi,

 As you certainly noticed, I sent some patches to the mailing list.
 These patches are my work for Bing maps support in viking. I think
 this work is quite complete: maps appear, logo and copyright are
 displayed. So I'm ready to commit them on master branch.

 Nevertheless, I took some shortcuts in these implementations (as
 commented on log messages).

 So, before commiting them, I prefer to expose them to your comments.
 Furthermore, you can experiment easily the resulting work by using the
 following branch:
 http://repo.or.cz/w/viking/guyou.git/shortlog/refs/heads/t/map/bing-maps
 This branch is managed with topgit, so it is quite complex. It is the
 reason why I pushed patches on the list: easier to comment.

 Happy testing!
 --
 Guilhem BONNEFILLE
 -=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
 -=- mailto:guilhem.bonnefi...@gmail.com
 -=- http://nathguil.free.fr/




-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Request for comments - my visison of 1.2

2011-03-07 Thread Guilhem Bonnefille
2011/3/3 Robert Norris rw_nor...@hotmail.com:

 In it there is a large change, I'm particularly keen on feedback about is the 
 highlight + improved select mode.
 http://github.com/rnorris/viking/tree/ImprovedSelectTracksWaypoints

Great idea. It is really appreciable to *SIMPLY* left click on a
way/track point to select it.

But I'm not sure about the user experience related to rigth clicking
on the viewport with select tool activated. The most disturbing effect
is the coupled selection of a trackpoint and its track.
But we can certainly apply this change, even with this effect.

Out of the scope of this change: I think we have to find an other way
to display selected element.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Viking 1.1 for Windows is available

2011-02-22 Thread Guilhem Bonnefille
Great. Thanks Mathieu.

2011/2/22 Mathieu Albinet mathie...@gmail.com:
 Hi all,

 Viking  1.1 for Windows is available for download on sourceforge.
 http://sourceforge.net/projects/viking/files/viking/1.1/viking-1.1_win_gtk.zip/download

 It needs some testing but everything I have played with seems to work
 perfectly (spot maps works!).

 Included GTK+ 2.22 , cURL 7.14 and Gpsbabel 1.3.6.
 Compiled with gcc 3.4.5

 Mathieu

 --
 Index, Search  Analyze Logs and other IT data in Real-Time with Splunk
 Collect, index and harness all the fast moving IT data generated by your
 applications, servers and devices whether physical, virtual or in the cloud.
 Deliver compliance at lower cost and gain new business insights.
 Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/




-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Index, Search  Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Request for comment for Bing maps support

2011-02-14 Thread Guilhem Bonnefille
2011/2/14 Robert Norris rw_nor...@hotmail.com:

 
 Date: Sun, 13 Feb 2011 11:27:50 -0800
 From: miker...@lacklustre.net
 To: viking-devel@lists.sourceforge.net
 Subject: Re: [Viking-devel] Request for comment for Bing maps support

 Quickie: the copyright notice is displayed twice if you enable
 auto-downloading of maps after you add the layer.

 To reproduce:

 1) add a new bing map layer
 2) copyright notice appears, click OK
 3) right click map, go to properties
 4) check autodownload maps, click OK
 5) copyright notice reappears


 I think you might mean the 'map license dialog' is shown more than once.

 This is not just in the Bing maps effort  - in fact it is shown any time one 
 changes the map layer properties, and thus is unfortunately in the 1.1 
 release :(

 The attached quick hack should solve the issue by maintaining an internal 
 flag per map layer about whether the license has been shown.

 May need to consider if this is best way to resolve this problem...

As usual, simple solution are the best. Please, apply your patch to
simplify user's life.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] [PATCH 1/3] Add logo support

2011-02-13 Thread Guilhem Bonnefille
Add support for logo, displayed in viewport.

Signed-off-by: Guilhem Bonnefille guilhem.bonnefi...@gmail.com
---
 src/vikmapslayer.c|4 
 src/vikmapsource.c|   14 ++
 src/vikmapsource.h|2 ++
 src/vikmapsourcedefault.c |   18 +-
 src/vikviewport.c |   44 
 src/vikviewport.h |4 
 src/vikwindow.c   |1 +
 7 files changed, 86 insertions(+), 1 deletions(-)

diff --git a/src/vikmapslayer.c b/src/vikmapslayer.c
index bf926f8..2fda822 100644
--- a/src/vikmapslayer.c
+++ b/src/vikmapslayer.c
@@ -848,6 +848,10 @@ static void maps_layer_draw ( VikMapsLayer *vml, 
VikViewport *vvp )
 const gchar *copyright = vik_map_source_get_copyright ( 
MAPS_LAYER_NTH_TYPE(vml-maptype) );
 vik_viewport_add_copyright ( vvp, copyright );
 
+/* Logo */
+GdkPixbuf *logo = vik_map_source_get_logo ( 
MAPS_LAYER_NTH_TYPE(vml-maptype) );
+vik_viewport_add_logo ( vvp, logo );
+
 /* get corner coords */
 if ( vik_viewport_get_coord_mode ( vvp ) == VIK_COORD_UTM  ! 
vik_viewport_is_one_zone ( vvp ) ) {
   /* UTM multi-zone stuff by Kit Transue */
diff --git a/src/vikmapsource.c b/src/vikmapsource.c
index 5378447..26e55ec 100644
--- a/src/vikmapsource.c
+++ b/src/vikmapsource.c
@@ -56,6 +56,7 @@ vik_map_source_class_init (VikMapSourceClass *klass)
klass-get_copyright = NULL;
klass-get_license = NULL;
klass-get_license_url = NULL;
+   klass-get_logo = NULL;
klass-get_uniq_id = NULL;
klass-get_label = NULL;
klass-get_tilesize_x = NULL;
@@ -117,6 +118,19 @@ vik_map_source_get_license_url (VikMapSource *self)
return (*klass-get_license_url)(self);
 }
 
+const GdkPixbuf *
+vik_map_source_get_logo (VikMapSource *self)
+{
+   VikMapSourceClass *klass;
+   g_return_val_if_fail (self != NULL, NULL);
+   g_return_val_if_fail (VIK_IS_MAP_SOURCE (self), NULL);
+   klass = VIK_MAP_SOURCE_GET_CLASS(self);
+
+   g_return_val_if_fail (klass-get_logo != NULL, NULL);
+
+   return (*klass-get_logo)(self);
+}
+
 guint8
 vik_map_source_get_uniq_id (VikMapSource *self)
 {
diff --git a/src/vikmapsource.h b/src/vikmapsource.h
index c0b80f3..2400fec 100644
--- a/src/vikmapsource.h
+++ b/src/vikmapsource.h
@@ -46,6 +46,7 @@ struct _VikMapSourceClass
const gchar *(* get_copyright) (VikMapSource * self);
const gchar *(* get_license) (VikMapSource * self);
const gchar *(* get_license_url) (VikMapSource * self);
+   const GdkPixbuf *(* get_logo) (VikMapSource * self);
 
guint8 (* get_uniq_id) (VikMapSource * self);
const gchar * (* get_label) (VikMapSource * self);
@@ -70,6 +71,7 @@ GType vik_map_source_get_type (void) G_GNUC_CONST;
 const gchar *vik_map_source_get_copyright (VikMapSource * self);
 const gchar *vik_map_source_get_license (VikMapSource * self);
 const gchar *vik_map_source_get_license_url (VikMapSource * self);
+const GdkPixbuf *vik_map_source_get_logo (VikMapSource * self);
 
 guint8 vik_map_source_get_uniq_id (VikMapSource * self);
 const gchar *vik_map_source_get_label (VikMapSource * self);
diff --git a/src/vikmapsourcedefault.c b/src/vikmapsourcedefault.c
index aa2357a..a85bba9 100644
--- a/src/vikmapsourcedefault.c
+++ b/src/vikmapsourcedefault.c
@@ -24,6 +24,7 @@
 static const gchar *map_source_get_copyright (VikMapSource *self);
 static const gchar *map_source_get_license (VikMapSource *self);
 static const gchar *map_source_get_license_url (VikMapSource *self);
+static const GdkPixbuf *map_source_get_logo (VikMapSource *self);
 
 static guint8 map_source_get_uniq_id (VikMapSource *self);
 static const gchar *map_source_get_label (VikMapSource *self);
@@ -42,7 +43,8 @@ struct _VikMapSourceDefaultPrivate
gchar *copyright;
gchar *license;
gchar *license_url;
-   
+   GdkPixbuf *logo;
+
guint8 uniq_id;
gchar *label;
guint16 tilesize_x;
@@ -79,6 +81,7 @@ vik_map_source_default_init (VikMapSourceDefault *object)
   priv-copyright = NULL;
   priv-license = NULL;
   priv-license_url = NULL;
+  priv-logo = NULL;
 }
 
 static void
@@ -95,6 +98,8 @@ vik_map_source_default_finalize (GObject *object)
   priv-license = NULL;
   g_free (priv-license_url);
   priv-license_url = NULL;
+  g_free (priv-logo);
+  priv-license_url = NULL;

   G_OBJECT_CLASS (vik_map_source_default_parent_class)-finalize (object);
 }
@@ -217,6 +222,7 @@ vik_map_source_default_class_init (VikMapSourceDefaultClass 
*klass)
parent_class-get_copyright =   map_source_get_copyright;
parent_class-get_license = map_source_get_license;
parent_class-get_license_url = map_source_get_license_url;
+   parent_class-get_logo =map_source_get_logo;
parent_class-get_uniq_id =map_source_get_uniq_id;
parent_class-get_label =  map_source_get_label;
parent_class-get_tilesize_x

[Viking-devel] Request for comment for Bing maps support

2011-02-13 Thread Guilhem Bonnefille
Hi,

As you certainly noticed, I sent some patches to the mailing list.
These patches are my work for Bing maps support in viking. I think
this work is quite complete: maps appear, logo and copyright are
displayed. So I'm ready to commit them on master branch.

Nevertheless, I took some shortcuts in these implementations (as
commented on log messages).

So, before commiting them, I prefer to expose them to your comments.
Furthermore, you can experiment easily the resulting work by using the
following branch:
http://repo.or.cz/w/viking/guyou.git/shortlog/refs/heads/t/map/bing-maps
This branch is managed with topgit, so it is quite complex. It is the
reason why I pushed patches on the list: easier to comment.

Happy testing!
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Releasing viking 1.1

2011-02-08 Thread Guilhem Bonnefille
 trackpoint edit altitude sensitivity to be re-enabled after it
has been disabled.
* Fix incorrect cut/copy of sublayers when accessed via the layers
panel buttons.
* Fix the List Dialog so that it does not become taller than the
screen when there are lots of entries.
* Fix some compiler warnings in viktrwlayer.c when configured to build
with --disable-alphabetized-trw
* Fix Resource leak detected by cppcheck 1.46
* Fix compiler warning in curl_download.c
* Fix compiler warning in vikmapslayer.c
* Fix compiler warning in vikwindow.c - use correct const typing.
* Fix compiler warnings - correct Widget / Window type.
* Fix memory leak when generating image file
* Fix: Improve XML reading error reporting
* Fix compiler warnings in osm.c
* Fix compiler warning in vikmapslayer.c
* Fix Waypoint  Track visibility issues.
* Fix SF#3104028: Default Color Background is incorrectly saved as
black into a new .vik file.

Translations:

* Updated fr Translation (Guilhem Bonnefille )
* Updated cs Translation (Radek Stastny )
* Updated hu Translation (György Balló )
* Updated es Translation (Colegota )
* Updated jv Translation
* Updated id Translation (Arief Setiadi Wibowo )
* Updated sv Translation (Erik Simmesgård )
* Updated nl Translation (asphyxia )
* Updated pt_BR Translation (Júlio Cezar Santos Pires )
* Updated es Translation (Patricio Carreño Mancilla )
* Updated hu Translation (György Balló )
* Updated zh_TW Translation
* Updated nb Translation
* Updated it Translation
* Updated da Translation
* Updated zh_CN Translation (Eleanor Chen )
* Updated de Translation (eknus )
* Updated el Translation

Contributors:

* Guilhem Bonnefille
* Rob Norris
* Robert Norris


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] String freeze for viking 1.1

2011-01-29 Thread Guilhem Bonnefille
Hi,

We plan to release viking 1.1 in next few days. So, I started to work
on translations. I uploaded current template (viking.pot) on
Launchpad. Translator can now improve translations on this platform.

https://launchpad.net/viking/
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Viking 1.0 released... what next?

2010-11-18 Thread Guilhem Bonnefille
Hi,

As you certainly noticed, I finally released the so famous 1.0
release. Thanks you all for the job done.
For many people, this is simply a new release between many others. But
such a version number brings many idea for future users.

Ok, so... what next?

I propose to support a really stable branch 1.0.z. So, if you need a
bugfix on this version, just post a mail on this mailing-list.

And so, I suggest to immediately starts to prepare the next release (1.1).
For this release, we already have many patches waiting.
In my basket, I have work around new generic source maps: TMS and WMS/WMS-C.
I also know Rob has many interesting features (his github account has
14 branches).
But I also have a significant change from dolphin-aria for GeoRef.
And certainly many others I don't remember or simply don't know yet.

As you see, many exciting changes.

Happy hacking.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Viking 1.0 released

2010-11-17 Thread Guilhem Bonnefille
Viking 1.0 released.

Download:
https://sourceforge.net/projects/viking/files/viking/1.0/viking-1.0.tar.gz/download

What is it?
===

Viking is a free/open source program to manage GPS data.
You can import and plot tracks and waypoints, show Terraserver maps
under it, add coordinate lines, make new tracks and waypoints, hide
different things, etc.

You can visit the project web site:
http://viking.sourceforge.net/

What's New?
===

Version 1.0 is the result of 7 years of work of a large team.
For this release, lot of work was done to obtain a version as stable as
possible. This special version will be supported for some time.
If you need a specific fix, we can provide a 1.0.z release.

New features since 0.9.96
* Add minimal translator-credits in About dialog
* Add documenters to About dialog

Fixes since 0.9.96
* Improve copyright holders
* Prevent crashes when downloading Expedia Maps.
* Fix extend track using magic scissors.
* Fix autodownloading while panning
* Fix Debian #599048: Segmentation fault when using gpsbabel
* Fix dem_gradient_colors allocation.
* Fix compiler warnings in preferences.c


Translations:

* Updated fr Translation (Jean-Paul GERST )
* Updated de Translation (eknus )
* Updated cs Translation (Radek Stastny )
* Updated it Translation (simone.sandri )
* Updated el Translation (aitolos )
* Updated de Translation (WillyTM )
* Updated cs Translation (Radek Stastny )
* Updated es Translation (Jonay )
* Updated en_GB Translation (issyl0 )


Contributors:

* Guilhem Bonnefille
* Rob Norris
* Sven Wegener


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Help needed on translation management

2010-11-15 Thread Guilhem Bonnefille
Hi,

As you probably know, viking is translated in many languages.

A recent change obsoletes many translation: we introduced accelerators
on many labels. This affect translation because reference string has
changed (it now contains underscore). This regression brings two
questions.

Ethical: should we adapt translated strings in unknown language?
My first idea is to review translations myself and report old
translations, inserting arbitrary underscore in the older string.


Technical: is there tools to help in this work?


An other alternative is to restore previous translations, without
modifications, and so, without accelerators. Is it good? Is there a
way to tag such translations in order to inform official translator
that something is imperfect? I have the feeling that it is better to
have translation without accelerators than no translation.
And once again: is there any tools to help in these activities?

Thanks for any help you will bring to me.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Downloading while panning

2010-10-19 Thread Guilhem Bonnefille
Hi,

Can you check again with current version of master branch?
With the commit 1c6a6010 I introduced a huge bug. I solved this bug in 01da6b4d.

Please, consider this fix.

2010/10/14 Sven Wegener sven.wege...@stealer.net:
 On Sun, 10 Oct 2010, Guilhem Bonnefille wrote:

 As I consider that this part of viking needs some redesign, I stay on
 a bypass solution for 1.0.
 Here is a simpler version of my patch.

 Hi,

 can you please apply the patch below. With your patch we only trigger an
 autodownload when starting panning. And panning with keyboard shortcuts
 doesn't work after pannung with the mouse.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Viking 0.9.95 and 0.9.96 for Windows

2010-10-12 Thread Guilhem Bonnefille
2010/10/12 Mathieu Albinet mathie...@gmail.com:
 I've just uploaded Viking 0.9.95 and 0.9.96 for windows (gtk included)
 to Sourceforge.

Great thanks Mathieu.


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Viking 0.9.96 released

2010-10-11 Thread Guilhem Bonnefille
Viking viking-0.9.96 released.

Download:
https://sourceforge.net/projects/viking/files/viking/viking-0.9.96/viking-viking-0.9.96.tar.gz/download

What is it?
===

Viking is a free/open source program to manage GPS data.
You can import and plot tracks and waypoints, show Terraserver maps
under it, add coordinate lines, make new tracks and waypoints, hide
different things, etc.

You can visit the project web site:
http://viking.sourceforge.net/

What's New?
===

A release candidate for 1.0.

New features since 0.9.95
* Use ETag to check fresh tiles
* Avoid uninitialized color value usage
* Add new menu entry in GPS Layer to delete the realtime information.
* Ensure GPS realtime information deleted when GPS Layer --Empty All is called.
* Improve Track Properties speed profile display for low speed
difference (e.g. walking) tracks.
* Use speed units in display of Track/Waypoint layer draw by velocity
config values, but maintain units as metres per second when read
from/saved to files.
* Add keyboard accelerators
* DEM layer properties tidy up.
* Simplify zoom status when xmpp and ympp are equal
* Use height units in the altitude readout for the cursor position on
the status bar.
* Use height units in display of DEM min / max elevation values, but
maintain units as metres when read from/saved to files.
* Add explicit linking against libz and libm
* Add warning when requested GObject type is unknown

Fixes since 0.9.95
* Fix memcheck errors
* Fix SF#3009431: Prevent Crash in Real Time Tracking GPS Mode 
Autodownload Maps.
* Fix display of rounded speed units scale markers in the speed profile.
* Fix small memory leak when downloading DEM data via the tool method.
* Fix cycle map URL
* Fix GType macro usage
* Fix compiler warnings
* Fix Track Draw by Velocity mode, so that individual track points are
coloured (as was the intention).
* Fix bug where older file was removed when network not present
* Fix: warning 'draw-mode' message does not display
* Fix incorrect limitation on source map id
* Prevent getting stuck in a near infinite loop when using Coord
layer, UTM mode and zoomed out to see the whole world.
* Prevent viewport tool selection/edit of trackpoint or waypoint when
the layer or sublayer is invisible.
* Prevent lock up in attempt to download maps along a track in UTM mode.
* Prevent zoom factor string displaying unnecessary .0s when it's a
whole number.
* Launchpad Bug #445374: Prevent crash when downloading maps along a
track, with Terraserver maps when in Mercator mode.

Contributors:

* Greg Troxel
* Guilhem Bonnefille
* Jocelyn Jaubert
* Jon Burgess
* Rob Norris
* Robert Norris


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Viking 0.9.96 released

2010-10-11 Thread Guilhem Bonnefille
Hi all,

As you can see, I released 0.9.96. I hope this version is the really
last one before 1.0. I plan this release for the end of the week, if
no major bug is found.

So, let's go, people, compile, cross-compile, test, double check... we
have to check this release as much as possible.

Happy testing!

PS: I released quite late for me (I'm tired). I hope I did not miss
something important. If so, pleae, let me know.

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Uninitialized color value being used

2010-10-11 Thread Guilhem Bonnefille
2010/10/12 Robert Norris rw_nor...@hotmail.com:

 Viking uses many gc's, thus the viewport it has specific background gc, which 
 is what the vik_*background* functions refer to.

 There can be only one 'background' overall for the viewport, so I suppose 
 this is why it is done this way.

 The gdk gc's themselves have foreground and backgrounds, however only the gdk 
 gc foreground is ever used (including gc's for trackpoints, ruler stuff, 
 etc...)

Thanks for this explanation.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Viking 0.9.96 released

2010-10-11 Thread Guilhem Bonnefille
2010/10/12 Guilhem Bonnefille guilhem.bonnefi...@gmail.com:
 PS: I released quite late for me (I'm tired). I hope I did not miss
 something important. If so, pleae, let me know.

Pfuu I forgot to push master branch. This is done now.


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] ETag integration

2010-10-10 Thread Guilhem Bonnefille
2010/9/26 Jocelyn Jaubert jocelyn.jaub...@gmail.com:
 Le 26 septembre 2010, Guilhem Bonnefille a écrit :
 The one I don't like is this one:
 http://repo.or.cz/w/viking/guyou.git/blobdiff/80e7bc44bcbadfbb6a9146d2ef8968f8f23d4e00..97f7e1e62e0fc17625c445e40f1b326e1402a3f6:/src/curl_download.c

 I replaced the \n by \0 in the string to make sure that there is no \n
 added in the headers sent to the server. in HTTP spec, two following \n
 marks the end of the headers section, which is why we must be sure that
 we don't add \n to the strings given to CURLOPT_HTTPHEADER.

 There might be a cleaner way to this than the one I used in this
 function...

I rework my change and published a new commit on my public etag branch.

Can you spot me the HTTP specifications?
What I understood (experimenting with viking): not two '\n' but the
classical '\r\n'.


-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Downloading while panning

2010-10-10 Thread Guilhem Bonnefille
As I consider that this part of viking needs some redesign, I stay on
a bypass solution for 1.0.
Here is a simpler version of my patch.

2010/9/30 Guilhem Bonnefille guilhem.bonnefi...@gmail.com:
 2010/9/25 Jocelyn Jaubert jocelyn.jaub...@gmail.com:
 In any case, your commit might be clearer if an argument to fonction
 draw_update() was added to propagate the information if we need a
 download or not. I don't really like global variables, but I
 understand why you have added one there :)

 Sure. But I'm really disapointed by current behaviour of viking.
 Panning is now smooth: it's good.
 But each XEvent trigger many file access, while we have a memory cache.
 IMHO, the matter is that the code checks and eventuallyrefresh file
 cache before simply using the memory cache.

 I think a better solution could be to always use memory cache and only
 check/refresh file cache for missing tiles.

 Any other idea?
 --
 Guilhem BONNEFILLE
 -=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
 -=- mailto:guilhem.bonnefi...@gmail.com
 -=- http://nathguil.free.fr/




-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/


pan_autodownload.patch
Description: Binary data
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Re: [Viking-devel] Multithread (Was: Plans for 1.0)

2010-10-08 Thread Guilhem Bonnefille
2010/10/7 Robert Norris rw_nor...@hotmail.com:


 2010/9/15 Robert Norris :
 I believe the best way would be a mutex in the struct _VikViewport which 
 could then control the access to gdk_draw_pixbuf inside the 
 vik_viewport_draw_pixbuf function.
 Maybe I'll do that too

 I spend some time to look at multithread aspect of viking. My limited
 skills (in viking internals and GTK/thread model) make me suspicious
 about many code part.

 I understood that Gtk signals are thread-safe as they are executed
 in the main thread (the one running mainloop).
 So, I think most of the background.c code can be refactored to use
 signals instead of gtk lock.
 Why? Currently, all downloader threads regularly locks mainthread (and
 other threads) simply to refresh the progress view.
 IMHO, some signals can be much better as the UI aspect will be managed
 by a single thread: the main one. This is mostly possible here because
 information to exchange between downloader and UI is really simple.

 I don't know, it mostly works so why bother changing it?

I have the feeling that we can improve both UI reactivness and tile downloading.

 A good reference:
 http://library.gnome.org/devel/gtk-faq/stable/x481.html

 ATM downloader threads naturally run out side of the GTK lock, thus 'signals' 
 from these threads in glib need to call gdk_threads_enter() before doing gtk 
 stuff.

What I understood is that gobject-signal is treated by
mainloop-thread. I also understood that the callback should use
gdk_threads_enter/leave, but only the main thread will be locked, not
download threads.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] [PATCH] Make more portable .vik file, as don't save the map cache directory if it's the map cache default directory.

2010-10-07 Thread Guilhem Bonnefille
2010/10/6 Greg Troxel g...@ir.bbn.com:
  user preference file (NOT a .vik) sets path to cached maps

  each map layer just uses a standard place in the path, and there's no
  config allowed.

It's an interesting point of vue. Currently, the map cache is
associated to the *instance* of a map layer, not the map layer itself
(as far as i know). For example, you can embed two Mapnik layers with
different caches.

As you spotted it, I think this is probably unecessary. A single cache
per map type or a global path for map cache would be certainly enough.
Other opinions?

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] Multithread (Was: Plans for 1.0)

2010-09-30 Thread Guilhem Bonnefille
2010/9/15 Robert Norris rw_nor...@hotmail.com:
 I would quite like the only known repeatable crash 
 https://sourceforge.net/tracker/?func=detailaid=3009431group_id=83870atid=570954
  about the map auto download and GPS auto following conflict to be solved too.
 I posted a bit about this on this mailing list a while ago.

I only retrieve the comment you made on the ticket. If there is any
other message about this topic, can you resent or send a URL to the
archive?

 I believe the best way would be a mutex in the struct _VikViewport which 
 could then control the access to gdk_draw_pixbuf inside the 
 vik_viewport_draw_pixbuf function.
 Maybe I'll do that too

I spend some time to look at multithread aspect of viking. My limited
skills (in viking internals and GTK/thread model) make me suspicious
about many code part.

I understood that Gtk signals are thread-safe as they are executed
in the main thread (the one running mainloop).
So, I think most of the background.c code can be refactored to use
signals instead of gtk lock.
Why? Currently, all downloader threads regularly locks mainthread (and
other threads) simply to refresh the progress view.
IMHO, some signals can be much better as the UI aspect will be managed
by a single thread: the main one. This is mostly possible here because
information to exchange between downloader and UI is really simple.

Looking at the code, I do not understood the meaning of the trigger
concept (between viklayer, vikwindow and vikviewport). Furthermore, I
have the feeling that it is not really thread-safe concept. But as I
don't understand, I can't be sure.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Downloading while panning

2010-09-30 Thread Guilhem Bonnefille
2010/9/25 Jocelyn Jaubert jocelyn.jaub...@gmail.com:
 In any case, your commit might be clearer if an argument to fonction
 draw_update() was added to propagate the information if we need a
 download or not. I don't really like global variables, but I
 understand why you have added one there :)

Sure. But I'm really disapointed by current behaviour of viking.
Panning is now smooth: it's good.
But each XEvent trigger many file access, while we have a memory cache.
IMHO, the matter is that the code checks and eventuallyrefresh file
cache before simply using the memory cache.

I think a better solution could be to always use memory cache and only
check/refresh file cache for missing tiles.

Any other idea?
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] [ETag] Memcheck error

2010-09-26 Thread Guilhem BONNEFILLE
2010/9/26 Jocelyn Jaubert jocelyn.jaub...@gmail.com:
 Le 26 septembre 2010, Jon Burgess a écrit :
 On Sat, 2010-09-25 at 23:30 +0200, Guilhem Bonnefille wrote:

 What I think happens is:
 1) We first do a request for a tile with an ETag and apply a custom
 header, this gets set into the conn-data-set.headers pointer
 2) The header gets freed, but the set.headers pointer is left as a
 dangling reference to the memory
 3) A subsequent request is generated for a tile without an etag so we
 do not overwrite the set.headers pointer and it keeps the old, invalid
 value and the HTTP request code tries to reference it.

 Yes, that makes sense, and that explains Guilhem's failure.

 I think that I never hit the bug because I'm using only Mapnik tiles,
 which uses etag, and not any other tile server that doesn't use etag.

 Guilhem: to make things clearer, curl uses the option
 CURLOPT_HTTPHEADER to add any header, and expect a valid string there.
 Viking also reuse curl from the previous call of curl_download(), which
 means that CURLOPT_HTTPHEADER wasn't cleared.

Here is my understanding.
We use curl in a multi-thread context. To optimize connection, we also
reuse curl's handles. We reuse the handle in the context of a single
thread. And a thread is fired for a single map source.

So, the matter occured only when, in a single request, we request a
fresh version of an already downloaded tile (with local etag value)
and a new tile (without local etag value).

Am I right?

 Btw, shouldn't we initialize _all_ curl options at each pass ? I think
 we can the same problem with other curl options that are initialized
 each time - like CURLOPT_TIMECONDITION or CURLOPT_TIMEVALUE. I will try
 to provide a patch to initialize everything.

If we are true, we have to reset all CURLOPT that can be set or not
set between two consecutive downloads.

-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/



--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


[Viking-devel] [ETag] Memcheck error

2010-09-25 Thread Guilhem Bonnefille
Hi,

I'm testing ETag branch.

I encountered some segfault. The segfault occurs in a
curl_check_header function, called by curl_easy_perform. With gdb I
found that the error is certainly due to memory corruption. So I ran
viking under valgrind. The latter reports that the matter is a read
from a freed memory.

But the most surprising is that the free occurs AFTER the context of the error:
- free at curl_download.c:216
- curl_easy_perform at curl_download.c:189
(line numbers can be incorrect as I played with code to understand).

So, I naturally think about multi-thread issue. But I do not
understand what can go wrong.

Any tip welcome.
-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] need gps software

2010-09-18 Thread Guilhem Bonnefille
Interesting project, but viking cannot help you. Perhaps people on the
list, but in private.

2010/9/17 A_ Navone navo...@hotmail.com:
 willing to pay 1K USD per installation
 need software for gps
 need to be able to define a route,
 send an alarm if route not walked
 and watch the movement realtime via web
 it should work with gps only devices
 with gsm data service and/or wifi
 it should work with google earth
 thx
 --
 Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
 http://p.sf.net/sfu/novell-sfdev2dev
 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/




-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


  1   2   >