Re: [Flightgear-devel] Built-in Svn client code crashing

2013-10-03 Thread James Turner

On 3 Oct 2013, at 12:38, Saikrishna Arcot saiarcot...@gmail.com wrote:

 Just to check, is the built-in SVN code effectively replacing the 
 external SVN code (from libsvn-dev), or does it add something?

Replaces it - one of the big motivations is that the libsvn dependency is 
becoming increasingly complex to support. (Since libsvn depends on APR, amongst 
other things)

In Git now, all references to libsvn are gone - we always use the built-in 
code, and based on some limited feedback the crashes are gone. More testing is 
of course welcome.

Regards,
James

--
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___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] GPS - merge request

2013-10-03 Thread Dirk Dittmann
Hi James, 

The improved-issue1164 is ready.
https://gitorious.org/fg/dirks-flightgear/source/778cc8c6a0abb88a1238850376ea2374358fd887:

Dirk

Am Dienstag, 1. Oktober 2013, 21:37:58 schrieb James Turner:

 - please make a helper function for the great-circle XTK error function,
 with some sane name like 'greatCircleCrossTrackError'. And please include a
 full URL to the aviation formulary link, for future readers of the code.
 
 (You already did this in one place I think)
done
 
 - where you only want course OR distance, SGGeodesy has some convenience
 wrappers (I realise in most places in this patch you do want both). This is
 just to improve readability right now (avoids useless 'az2' declarations),
 but in the future we might be able to do less work if only one value is
 needed.
done
 
 - Please squash commits, rebase -i is your friend - so all the evolution of
 the LegController should probably be squashed together. Similary the adding
 and removing of _mode_node will disappear with some squashing.
done
 
 - Avoid UTF-8 degree symbols in comments, it might upset some compilers. We
 recently had an issue with the older GCC on Jenkins rejecting UTF-8 BOM
 marker.
done
 
 - I would prefer arithmetic terms in conditions to *always* be
 parenthesised, we've had some bad bugs due to this, so:
 
   if (a  (b + c))
 
 NOT
 
   if (a  b + c)
 
 - Where boolean conditional get complex, I often like to create explicit
 bools, so instead of:
 
   if ((some complex test)  (some other complex test)  ((another 
 thing) 
||
 (still more)))
 
 I think it's more readable to do:
 
   bool answerOfTest1 = some complex text
   bool answerOfTest2  = some other complexTest
   …
 
   if (answerOfTest1  answerOftest2  …)
 
done
 The compiler will get rid of the bool vars, although you might force
 evaluation of more terms depending on how smart you the optimiser is, but
 you force yourself to give each boolean expression a name, like
 'isWithinOverflightDistance' or 'isWithinInterceptAngle'. As a result it
 becomes much easier for someone else to evaluate the conditional logic and
 decide if they agree with it or not. If the boolean test is used more than
 once, make it into a helper method - grep-ing for methods names is*() and
 has*() in the codebase points to many of these.
 
 In general it looks pretty good though, let me know if you're happy to make
 the above changes or need any help (especially if you're new to git rebase
 -i, it can do terrible things)
 
 Kind regards,
 James

--
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
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] GPS - merge request

2013-10-03 Thread James Turner

On 3 Oct 2013, at 17:35, Dirk Dittmann dirk.dittmann@gmail.com wrote:

 The improved-issue1164 is ready.
 https://gitorious.org/fg/dirks-flightgear/source/778cc8c6a0abb88a1238850376ea2374358fd887:

Thanks, looks good and pushed.

Unfortunately I now need to fix the route-path code to subdivide long legs 
along the great-circle course, since currently the map shows a visible 
difference at the midpoint of legs. But, that's a bug I'm glad to have :)

Kind regards,
James

--
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___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Simgear ,mathlib.c line 1 65

2013-10-03 Thread Alan Teeder
Re  commit ad83e70cf5983c7b307847aa2cb92c40e42bc534
Author: James Turner
Date:   Thu Oct 3 17:40:17 2013 +0100

Extend built-in Nasal math.

James

Sorry, but MSVC does not have a round function. ;(


Alan

--
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
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Simgear ,mathlib.c line 1 65

2013-10-03 Thread James Turner

On 3 Oct 2013, at 22:20, Alan Teeder ajtee...@v-twin.org.uk wrote:

 Sorry, but MSVC does not have a round function. ;(

Yes, C99 is a cutting-edge spec :) 

I'll add a replacement for MSVC, thanks for spotting my mistake.

Kind regards,
James

--
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___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] GPS - merge request

2013-10-03 Thread Pedro Morgan
http://wiki.flightgear.org/Talk:Nasal_Style_Guide


On Thu, Oct 3, 2013 at 9:38 PM, James Turner zakal...@mac.com wrote:


 On 3 Oct 2013, at 17:35, Dirk Dittmann dirk.dittmann@gmail.com
 wrote:

 The improved-issue1164 is ready.

 https://gitorious.org/fg/dirks-flightgear/source/778cc8c6a0abb88a1238850376ea2374358fd887:


 Thanks, looks good and pushed.

 Unfortunately I now need to fix the route-path code to subdivide long legs
 along the great-circle course, since currently the map shows a visible
 difference at the midpoint of legs. But, that's a bug I'm glad to have :)

 Kind regards,
 James



 --
 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
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


--
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___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Simgear ,mathlib.c line 1 65

2013-10-03 Thread Pedro Morgan
Can I make a suggestion..

What I want to do is create a simg...@freeflightsim.org as an user.
The idea is to knock out the latest bleeding edge docs and changes to
simgear..
Example is here..
http://docs.freeflightsim.org/simgear/

But I prefer a sub domain..

On the server,
Doxygen is installed and parses and knocks out the documentation..

This included the dependancies etc..

So the Question I am really getting down to is..
1) can I create a jenkins-docs-slave..
every push in simgear or fg etc, triggers build..

2) the build if succesful,, would be immeadeate on said webbsite...
So LIVE DOCS time... ;-)

The end goal for me.. and my objective..
... The area is vast of FlightGear.. and so many parts..
... eg OSG, sqlite, openGl, osg, simgear, files as xml, inages, vectors,
blobs, terrasynv, live update with udp, http, socket et all..

3) I figured out hoe to interlink all the parts.. Twice
- first pass is for simgear to build and create index, then fg and create
index
-  run again as one will depend upind the other by then..

and then.. U get the whole html blob..
On the decicated..
its  and nginx config to a static site as user simgear
eg
listen {
  simgear.freefligtsim.org simgear.flighgear.org;
 root /home/simgear/jenkings/build_html/
 index index.html
}

So its automatically build at each commit trigger..

Does that make sense james..
Not sure what to do re double build..
Expected its on the dedicated and paths between accounts.. or alike..

The only latest doxygen is an user on machine also, so compiled to latest
version..


Pete




On Thu, Oct 3, 2013 at 10:53 PM, James Turner zakal...@mac.com wrote:


 On 3 Oct 2013, at 22:20, Alan Teeder ajtee...@v-twin.org.uk wrote:

 Sorry, but MSVC does not have a round function. ;(


 Yes, C99 is a cutting-edge spec :)

 I'll add a replacement for MSVC, thanks for spotting my mistake.

 Kind regards,
 James



 --
 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
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


--
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___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel