Coder Social home page Coder Social logo

vicb / visugps Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 4.0 11.49 MB

View GPS tracks on Google Maps and J2ME live tracking

Home Page: http://www.victorb.fr

Java 16.52% C++ 0.56% CSS 0.24% ActionScript 43.13% JavaScript 12.77% PHP 19.24% Gnuplot 5.80% HTML 1.74%

visugps's People

Contributors

abarcellona avatar johnstevenson avatar vicb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

visugps's Issues

New IGC spec breaks HFDTE format

Hi,
The new IGC specification ( http://www.fai.org/downloads/igc/FRTS_4 ) breaks the HFDTE format by changing it to HFDTEDATE:DDMMYY,NN

Essentially all H-records are formatted the same now (ie name and value separated by a colon) because the HFFXA record has been dropped. Note that the ,NN part is the flight number on the day and is optional for Non-IGC FRs (though they forgot to mention that).

I provided manolis with some patches for Leonardo, which included your vg_parser.php. I changed the regex at line 57 to handle this:

    if (preg_match('/(?:HFDTE(?:DATE:)?)(\d{2})(\d{2})(\d{2})/mi', $trackFile, $m)) {
        $trackData['date']['day'] = intval($m[1]);
        $trackData['date']['month'] = intval($m[2]);
        $trackData['date']['year'] = intval($m[3]) + (($m[3] > 60)?1900:2000);
    }

Rather than do a PR, I am reporting it here as BlueGps.java will also need modifying.

Do not block when uploading to Doarama

ref

<?php

ob_end_clean();
header("Connection: close");
ignore_user_abort(true); // just to be safe
ob_start();
echo('Text the user will see');
$size = ob_get_length();
header("Content-Length: $size");
ob_end_flush(); // Strange behaviour, will not work
flush(); // Unless both are called !
// Do processing here 
file_put_contents('finish.txt', date('His'));
sleep(3);
file_put_contents('finish.txt', 'done ' . date('His'), FILE_APPEND);
echo('Text user will never see');

http://stackoverflow.com/questions/138374/close-a-connection-early/14950738#14950738

PHP background processing does not work with IE

Switch to a 2 requests process for DoArama:

  • The main request would create the visualisation (so that we have the DoArama url),
  • An XHR request would upload the fixes (if not yet uploaded)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.