![]() |
|
|
#1 (permalink) |
|
Registered Member
Join Date: Apr 2004
Posts: 9
|
Perl Module
I am writing some perl modules to perform all the functions trackns and mappoint voice scripts perform. Sorry but I hate vbscript and would rather work in perl. Also a perl version of stumbleverter wil be include. as a side note anyone have an email for the author of stumbleverter? I want to use his/her icons in my perl script. If there is interest I will post the modules.
Washu |
|
|
|
|
|
#2 (permalink) | |
|
Did you do the math?
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,008
|
Quote:
__________________
Thorn Sex and Violence. You can't enjoy one, if you don't survive the other. (And that works both ways...) |
|
|
|
|
|
|
#3 (permalink) | |
|
I amuse you?
Join Date: Dec 2003
Posts: 9,127
|
Quote:
Is this the same as Stumbverter? Try here. |
|
|
|
|
|
|
#7 (permalink) | |
|
root\.workspace\.garbage.
Join Date: Aug 2003
Posts: 4,755
|
Quote:
__________________
It's not Intelligent Design, it's peer pressure. ┌──────────────────────────────┐ ╞ NS Icons Explained|et hoc genus omne ╡ └──────────────────────────────┘ |
|
|
|
|
|
|
#8 (permalink) | |
|
perlmonk
Join Date: Jul 2004
Location: canadia
Posts: 57
|
We had a discussion about the current CPAN module for NetStumbler here: Realtime data input to MySQL - Perl and a few people seemed interested (me included!).
I am in the process of updating the 'perlstumbler' library called 'stumblelib.pm'. I have obviously re-used a bunch of code (I will be giving proper credit), but I have re-organized some of it, changed some formatting, standardize some of the logic, and finally I hope to remove some duplication. My goal is to have a module that is dedicated to the NetStumbler ns1 format. The perlstumbler program, and the CPAN module both do more than I require, and the CPAN module author even admits that his module is probably misnamed (in his readme): Quote:
My plan is to have the first version done by the end of this week. Thanks. Last edited by dwakeman : 05-04-2005 at 11:29 AM. |
|
|
|
|
|
|
#12 (permalink) |
|
perlmonk
Join Date: Jul 2004
Location: canadia
Posts: 57
|
Ok, I have wrapped up the first version of the module, and I have contacted the original two (marius and Sal Scotto) authors regarding it (a head's up).
I will release this here first so that people can try it out and send in any questions/comments/concerns. If you would like to try it out, you can download it here: http://www.perldev.org/project.cgi?pid=6 You can try the included test exe (if you don't have Perl) or Perl file by passing it an ns file, and it will create a csv file with the AP's in the ns1. v0.01! |
|
|
|
|
|
#13 (permalink) |
|
perlmonk
Join Date: Jul 2004
Location: canadia
Posts: 57
|
I have uploaded v0.02 of the module to my site (http://www.perldev.org/project.cgi?pid=6).
I have removed a bunch of duplication and cut down the module to six subroutines from fifteen. There are still two subroutines ( readGPSData and readAPData) that are only used to move you along in the NS1 file, they return nothing. My next job is to get rid of those two and handle the file position moving from the main readAPInfo subroutine. After that I will convert this to an OO interface allowing you to set parameters for parsing the file. Some ideas would be:
As I go I'll probably think of more ways to allow developers to interact with the module. But if anyone has any ideas, please let me know and I'll do my best to add them. dwakeman {at} gmail (dot) com. Thanks, Dave * I'm not sure exactly how NS creates these. I would assume it takes every single entry for an AP (you could have many), then does some averaging based on each entry. *shrug*, this is purely a guess right now. Last edited by dwakeman : 05-06-2005 at 12:35 PM. |
|
|
|
|
|
#14 (permalink) | |
|
Did you do the math?
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,008
|
Quote:
__________________
Thorn Sex and Violence. You can't enjoy one, if you don't survive the other. (And that works both ways...) |
|
|
|
|
|
|
#15 (permalink) | |
|
perlmonk
Join Date: Jul 2004
Location: canadia
Posts: 57
|
Quote:
I thought of something else to add to the module. I was reading about the problem some were having with corrupted NS1 files, and having to go through a manual trial and error process (http://members.netjunkies.net/streaker/repair_ns1.asp and http://www.frontiernet.net/~beakmyn/...le%20Recovery/) to try and save as many AP's as possible from the file. I want to see if I can get the module to try and automatically repair the file, or at least get as many good AP's as possible out. I was able to find someone's corrupted file here: Corrupted AP file but I was hoping I could get a second one (doesn't have to be huge) so I could make sure I was doing this properly. If someone has one and wouldn't mind, please email it to me (my email is above). Thanks, Dave |
|
|
|
|