vicb / visugps Goto Github PK
View Code? Open in Web Editor NEWView GPS tracks on Google Maps and J2ME live tracking
Home Page: http://www.victorb.fr
View GPS tracks on Google Maps and J2ME live tracking
Home Page: http://www.victorb.fr
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.
http://victorb.fr/visugps/php/vg_proxy.php?trackid=2792&load=0 returns an empty track.
Seems to be due to the speed array that contains "NaN"s.
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
Switch to a 2 requests process for DoArama:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.