Main > Free Download Search >

Free oziexplorer gps software for linux

oziexplorer gps

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 62
Wellenreiter 1.9

Wellenreiter 1.9


An easy to use, GTK/Perl-based wireless sniffer/scanner with enhanced features. more>>
Wellenreiter is a gtkperl program that makes the discovery and auditing of 802.11b wireless networks as easy as possible.
For discovery of the accesspoints / networks / ad-hoc cards, Wellenreiter has an amazingly easy to use scanner window, which searches for any accesspoint within the range of the scanning device.
It detects and differentiates essid broadcasting and non-broadcasting wireless networks. The manufacturer is detected by the devices MAC address. WEP and BSS / IBSS detection is also implemented.
Detecting essids of non-broadcasting networks is possible and gps support is also built in (Requires gpsd). Wellenreiter is the first Wireless scanner that does not need to be configured anymore.
Its amazing autodetection takes care about taking the correct cardtype and using the right comands. Lucent/Orinocco, Cisco and Prism2/2.5 (WLAN-NG drivers) based Cards are supported now. NO, hosap drivers actualy dont work in this version, stay tuned for that.
The Networks with a red symbol are "non-essid-broadcasting" ones. This means the accesspoint does not send out the essid network name for security reasons.
Non-broadcasting networks can be only detected by using the raw-sniffing mode. Green symbols are shown for a broadcasting network.
The distinction between WEP/cleartext sending accesspoints is indicated by the word "ON" or "OFF" and a little open or closed lock icon. AD-Hoc stations (BSS) have different icons than real accesspoints (IBSS).
Channels that are holding new objects are colored red until you select it. The pkt indicator on the right side of the listview alternates between the two characters "+" and "*". When it alternates, this accesspoint is sending traffic.
So its a traffic indication. If you click on an object in the treeview you will get the detail window. This window refresh after a while. Keep it open to see arp and dhcp traffic.
Use the logwindow to take care of all your findings and the trafficwindow to see what packets are coming in. Oh, one word about saving, it automaticly saves a dump and a savefile to your homedrive.
Main features:
- Cisco based cards
- Lucent based cards
- Prism2 based cards (Wlan-ng drivers only)
Enhancements:
- Added the Userguide in the docs diretory.
- Raised the packetcapture lenght from 400 to 65535 wich should not truncate anymore.
- Still adding some smaller fixes. Added a patch for better detection of prism2 based PCI and usb cards.
- Choose card window fixed.
- IBSS/ESS text in window is now correct, sorry for that.
<<less
Download (0.51MB)
Added: 2005-09-19 License: GPL (GNU General Public License) Price:
1525 downloads
PloneWorldKit 0.1

PloneWorldKit 0.1


PloneWorldKit project is an out-of-the-box GIS for the Web. more>>
PloneWorldKit project is an out-of-the-box GIS for the Web.
PloneWorldKit is a mapping solution for ZOPE Plone.
It is built around the worldkit engine and makes annotating fairly easy.
worldKit is an easy to use and flexible mapping application for the Web (a lightweight GIS). Its a SWF-based app, configured by XML, and with data fed by RSS.
Main features:
- Ubiquitous use in the Flash Player and with RSS feeds.
- Highly configurable look and feel. Can use images for marking annotations.
- Integrates with weblogging tools, and any software producing RSS.
- Annotations updated in the background, live.
- Displays photos within the map.
- Zoom & Pan. Integrates with Zoomify for high resolution images.
- Accepts input for Collaborative Cartography.
- Annotations are categorizable. Javascript interface for GIS layer functionality.
- Connects annotations for GPS track routes.
- ntegration of worldKit as a content type (Map)
- Complete TTW (Through The Web) configuration of worldKit attributes
- ZCatalog based XML and RSS generation (config.xml, rss.xml)
- 3 annotation content types (Node, Line, Polygon)
- Base classes for content type developers
- Categorization of annotations TTW
- Time Navigation out of the box using "modified" index
<<less
Download (0.24MB)
Added: 2006-11-01 License: GPL (GNU General Public License) Price:
1088 downloads
OpenGTS 1.5.2

OpenGTS 1.5.2


OpenGTS is a full-featured GPS tracking system that includes the OpenDMTP server. more>>
OpenGTS (Open GPS Tracking System) was spawned from the need for a simple web-based platform that can provide GPS tracking for entry-level commercial enterprises, and demonstration environments, however OpenGTS is highly configurable and scalable to larger enterprises as well.
OpenGTS not only supports the data collection and storage of GPS Tracking and Telemetry data from remove devices, but also includes full-featured web-based authentication and GPS mapping support.
Main features:
- Web-based authentication: Users can log-in and view their own Account and Device information.
- Customizable web-page decorations: The top, bottom, and sides of each web-page can easily be customized to fit a specific motif.
- Customizable menu options: Customized menu options can be made available for specific requirements.
- Customizable mapping service: OpenGTS comes installed with a working Google Maps interface, however, other mapping service provides can easily be integrated with minimal effort.
- GPS tracking device independent: While some coding will be necessary, OpenGTS can be integrated to work with any available remote GPS tracking device.
Enhancements:
- This release includes support for addition GPS tracking devices and full Sendmail support including user authentication and SSL.
- Account users can now be administered from the Web interface UI, including specification of user access control lists.
<<less
Download (0.45MB)
Added: 2007-08-05 License: The Apache License 2.0 Price:
818 downloads
Geo::Spline 0.16

Geo::Spline 0.16


Geo::Spline is a Perl module to calculate geographic locations between GPS fixes. more>>
Geo::Spline is a Perl module to calculate geographic locations between GPS fixes.

SYNOPSIS

use Geo::Spline;
my $p0={time=>1160449100.67, #seconds
lat=>39.197807, #degrees
lon=>-77.263510, #degrees
speed=>31.124, #m/s
heading=>144.8300}; #degrees clockwise from North
my $p1={time=>1160449225.66,
lat=>39.167718,
lon=>-77.242278,
speed=>30.615,
heading=>150.5300};
my $spline=Geo::Spline->new($p0, $p1);
my %point=$spline->point(1160449150);
print "Lat:", $point{"lat"}, ", Lon:", $point{"lon"}, "nn";

my @points=$spline->pointlist();
foreach (@points) {
print "Lat:", $_->{"lat"}, ", Lon:", $_->{"lon"}, "n";
}

This program was developed to be able to calculate the position between two GPS fixes using a 2-dimensional 3rd order polynomial spline.

f(t) = A + B(t-t0) + C(t-t0)^2 + D(t-t0)^3 #position in X and Y
f(t) = B + 2C(t-t0) + 3D(t-t0)^2 #velocity in X and Y

I did some simple Math (for an engineer with a math minor) to come up with these formulas to calculate the unknowns from our knowns.

A = x0 # when (t-t0)=0 in f(t)
B = v0 # when (t-t0)=0 in f(t)
C = (x1-A-B(t1-t0)-D(t1-t0)^3)/(t1-t0)^2 # solve for C from f(t)
C = (v1-B-3D(t1-t0)^2)/2(t1-t0) # solve for C from f(t)
D = (v1(t1-t0)+B(t1-t0)-2x1+2A)/(t1-t0)^3 # equate C=C then solve for D

<<less
Download (0.020MB)
Added: 2007-05-18 License: Perl Artistic License Price:
890 downloads
Imagero Reader 2.0.0 RC3

Imagero Reader 2.0.0 RC3


Imagero Reader is a Java library for reading image files. more>>
Imagero Reader is a Java library for reading image files. Supported file types include BMP, GIF, TIFF, PNG, JNG, MNG, JPEG (including 12-bit grey), PSD, PBM, PGM, PPM, TGA, EPS, EPSI, and EPSF.
The following RAW file types are also supported, at least partially: MRW, CRW, NEF, DCR, and DNG. It can read thumbnails, read metadata (IPTC, EXIF, and XMP), edit metadata, get image width and height, get the number of images contained in a file, define an area to read, add a ProgressListener, choose an image channel to read, set a scale factor, set subsampling (JPEG only), and read an image (or channel) directly into an array.
Supported file types are:
- BMP 1, 4, 8, 16, 24 and 32 bit uncompressed; 4 and 8 bit compressed
- GIF
- TIFF 1, 4, 8, 16, 32, 48 and 64 bit per pixel; bilevel, grayscale, palette, RGB, CMYC, Cie Lab, YCrCb color spaces; CCIT1D, G3, G4, ZIP, JPEG, LZW and PackBits compression
- PNG, JNG, MNG
- JPEG inclusive CMYC and 12-bit grey
- PSD
- PBM, PGM, PPM
- TGA
- read embedded images from EPS, EPSI, EPSF
Supported RAW files:
- MRW
- CRW*, CR2*, THM
- NEF*
- DCR*
- DNG*
- Full resolution image cant be yet read, but thumbnail, preview and metadata can be read.
Main features:
- read thumbnails
- read/edit metadata
- any metadata contained in ImageResourceBlock ( PSD, JPEG, TIFF) and ImageFileDirectrory entry ( TIFF, NEF, DNG, DCR) can be edited full control over JPEG metadata
- get image width and height
- get number of images, contained in file
- define an area to read
- add a ProgressListener
- estimate JPEG compression/quality
- read an image channel
- set a scale factor
- set subsampling (JPEG only)
- read an image (or channel) directly into an array
- easy IPTC handling with IPTCParser and IPTCEditor
Whats New in 1.9.6 Stable Release:
- The EPS parser was partially rewritten and made more generic and easy to use.
- It may be used now to parse nearly every kind of data (as a programmable parser).
- Thumbnails are read from AI (Illustrator) files.
- Disc based image caching was implemented (but is beta).
- New methods were added to TiffUtils: insert IFDEntry, remove IFDEntry, and create and insert IFDEntry with IPTC data.
- Two utility classes were added for creating and adding EXIF and GPS data to TIFF images.
- An important bug in XMPApp1 concerning wrong field length was fixed.
Whats New in 2.0.0 RC3 Development Release:
- It is possible to write TIFF images now. TiffWriter can currently write RGB, ARGB, CMYK, and grayscale (8 bit) images.
- Supported compression schemes are uncompressed, PackBits, and ZIP.
- Bugfixes were made.
<<less
Download (1.1MB)
Added: 2007-08-07 License: Free for non-commercial use Price: $60
1252 downloads
phpExifRW 0.3

phpExifRW 0.3


phpExifRW provides an Exif reader & writer. more>>
phpExifRW provides an Exif reader & writer.
vinSMSIndia is a simple PHP class that allows you to send free SMS messages to Indian mobile users.
Main features:
- Read Exif Information
- Extract and display emdedded thumbnails
- Add Comments to files.
- Transfering EXIF information from one file to another.
Enhancements:
- Better code. Cleaner several un-wanted code.
- Added several additional tags that show GPS information.
- Fixed Shutter Speed value calculation
- Fixed Aperture value calculation
- Fixed Special characters in Make & Model
- Support for following Cameras added:
- OLYMPUS OPTICAL CO.,LTD -> C3000Z
- NIKON D2H
- Canon 300D
<<less
Download (0.021MB)
Added: 2007-04-16 License: GPL (GNU General Public License) Price:
929 downloads
comserv 1.4.3

comserv 1.4.3


COMSERV is a program that allows you to talk to a network terminal server such as a Xyplex MAXserver 1600. more>>
COMSERV is a program that allows you to talk to a network terminal server such as a Xyplex MAXserver 1600.
The handy thing about this program is that the client side of the connection does not need to know anything about how to talk to the terminal server. COMSERV handles the connection details. Thus, you can use existing programs like tip to talk to devices attached to your network terminal server without any modification.
Also, you can use COMSERV to turn your Unix computer itself into a terminal server and serve up its own local serial ports over the network for remote systems to access. This is handy if you have several systems lying around and you want to utilize devices attached to their serial ports.
My primary motivation for writing this program was to expand the I/O capabilities of my FreeBSD home computer. I have many serial devices that I want to connect to my PC which include my modem, Palm Pilot, GPS, various micro-controllers, my EEPROM programmer, and other computers and printers. But with only two serial ports on my PC, I became annoyed at having to reach around the back of my computer and swap cables every time I wanted to plug in a different device. [I think all inventions are the product of the laziness of the inventor :-)] So I searched eBay and found a couple of these Xyplex terminal servers that looked promising, I bid on them, got them, and began hacking.
The only problem with using this type of device for serial expansion, is that if you use a program like tip on Unix (tip is a very basic but functional program to connect directly to a serial port), it expects to be able to open the serial port by opening a /dev/xyz device file that corresponds to a real serial device. The Xyplex, on the other hand, communicates to the Unix system via an ethernet network. In order to talk to one of the serial ports on the Xyplex, you need to establish a TCP/IP connection between your Unix computer and the Xyplex device at a particular TCP port. The TCP port you connect to determines which Xyplex serial port you connect to. For the Xyplex 1600, serial port 1 is TCP port 2100, serial port 2, is TCP port 2200 and so on.
Unfortuneately, tip, and programs like it, have no idea how to establish a TCP/IP connection to the Xyplex in order to transfer data to and from a serial device connected to the Xyplex.
This is what COMSERV does. COMSERV creates a set of pseudo-tty device files that are palatable to tip and other programs. COMSERV opens the master side of the pseudo terminal and the client program (tip in this case) opens the slave side. Data written on the slave endpoint comes out on the master endpoint and vice-versa. This mechanism establishes a connection between the client program and COMSERV. COMSERV then uses TCP/IP to establish a connection to the network terminal server.
Thus, data originating from the client program is written to the slave tty where is read by COMSERV. COMSERV then writes the data to the network socket to the Xyplex, which then passes it on to the designated serial port. Data originating from the serial device attached to the Xyplex takes the reverse path.
Only one instance of COMSERV is required to be running on your system to handle all of your network terminal servers (it can handle as many terminal servers and ports as the speed and resources of your system allows). COMSERV is designed to handle many connections in this fashion, and does so by multiplexing between them using asynchronous device and socket I/O.
While I wrote COMSERV to talk to a Xyplex MAXserver 1600, it should work with other manufacturers products as long as they follow a similar API. The Xyplex devices that I have are 16 port devices that connect serial devices to an ethernet network.
If COMSERV sounds useful to you, feel free to download and use it. The program is provided in source form, so you will need to extract it and compile it. If you use FreeBSD, simply do the following:
% cd /usr/ports/comms/comserv
% make install
I use it on FreeBSD 4-STABLE. I dont currently know of any outstanding bugs, but if you find and fix any bugs, please send me your fixes so that others can benefit from them as well.
If you do decide to use COMSERV, please note the accompanying license. In a nutshell, you can use it without restriction as long as you credit me and keep the copyright notice intact. If you happen to like it, feel free to send your thanks, letting me know. If you dont like it, let me know why, perhaps I can improve it. If you improve it, please send me your changes and Ill see about integrating them so that others can benefit from your improvements.
Enhancements:
- Implement a power of 2 backoff and retry for failing connections with a maximum 10 minute wait. This keeps from filling up the logs with failed repeated attempts.
<<less
Download (0.029MB)
Added: 2006-07-05 License: GPL (GNU General Public License) Price:
1211 downloads
802.11b Network Discovery Tools 0.1

802.11b Network Discovery Tools 0.1


802.11b Network Discovery Tools is a gtk tool to scan for 802.11b networks using wavelan/aironet hardware. more>>
802.11b Network Discovery Tools is a gtk tool to scan for 802.11b networks using wavelan/aironet hardware and Linux wireless extensions. It includes the ability to log coordinates of found networks from a GPS device that is NMEA-compatible, and can be linked to a serial port.

It currently logs the WAP MAC to a database, along with the frequency the AP uses and link quality info. aside from that, you can also connect a Garmin GPS receiver and snarf that data. Im just using GPS::Garmin, which currently doesnt support NMEA, and i didnt feel like writing another NMEA library, so maybe ill do that later. for now, youll have to
have your GPS receiver sending data in GRMN/GRMN.

To install the program, you should just have to run "make install" as root.

Just run perlskan, or /usr/local/bin/perlskan *** AS ROOT ***

ive included a small perl program called "catdb" thatll just print the contents of the database in very hard-to-read format.

To examine the db further, you can either write a program to use the PSkan::DB module to examine the database (very simple, its just a Tie::Hash module). to iterate through the database, all you have to do is:

tie(%foo, PSkan::DB);
while(($key, $data) = each %foo) {
...
}
untie(%foo);

it doesnt get much easier.
<<less
Download (0.034MB)
Added: 2006-06-27 License: GPL (GNU General Public License) Price:
1230 downloads
PyGpsWeb 0.1.0

PyGpsWeb 0.1.0


PyGpsWeb is an online GPS (Global Positionning System) data editor. more>>
PyGpsWeb is an online GPS (Global Positionning System) data editor. PyGpsWeb allows you to view and edit waypoints, routes, and tracks. It is free software, released under the terms of the GPL.

ScreenshotNo, this is not vaporware. Far from being finished, but the basis are here.

I need this to view and/or edit points and path, imported and/or exported to a lightweight GPS device.

This is because I run a lot. Basically I could do this with GPSMan, but the idea is to do this with a web application, using interesting technologies like Python, PostGreSQL / PostGIS, itools, UMN MapServer, Mozilla / XUL and Google Maps. My purpose is to fit my needs as well as to have fun and prove myself that I can code this kind of things 8-)
<<less
Download (0.12MB)
Added: 2005-11-23 License: GPL (GNU General Public License) Price:
1431 downloads
OpenDMTP 1.2.8 (Java Server)

OpenDMTP 1.2.8 (Java Server)


OpenDMTP is a highly configurable and extensible protocol for communicating with mobile devices. more>>
The "Open Device Monitoring and Tracking Protocol", otherwise known as OpenDMTP, is a protocol and framework that allows bi-directional data communications between servers and devices (clients) over the Internet and similar networks.
OpenDMTP is a highly configurable and extensible protocol for communicating with mobile devices.
OpenDMTP is particularly geared towards Location-based information (LBS) such as GPS, as well as temperature and other data collected in remote-monitoring devices. OpenDMTP is small, and is especially suited for micro-devices such as PDAs, mobile phones, and custom OEM devices.
We saw a need for a communications protocol that allowed high-latency, low-bandwidth (HL/LB) devices to transmit location data to monitoring-systems. Because these devices often have limited network connectivity, the protocol needed to be small and efficient. Example devices include mobile phones, PDAs, OEM micro-devices (alarm systems, temperature monitors, etc.), and more.
There are many mobile GPS tracking devices on the market today with their own closed proprietary protocols. Searching the web for open protocols revealed only a few available for transferring data (including GPS information) between devices. However these solutions are generally designed for non-mobile applications and/or lack some of the low-bandwidth, configurable, and extensible features that mobile applications require.
Main features:
- Small Footprint: Mobile devices typically have limited resources on which to run client code (ie. memory, processor speed). An open protocol designed with this in mind should be optimized to allow efficient implementation and should easily support devices such as PDAs, mobile phones, GPS monitoring devices, and other OEM micro-devices.
- Network Efficient: Mobile devices typically have limited network connectivity, and in some cases data communication can be quite expensive (e.g. satellite). Because of this the protocol needs to be efficient in its dialog between the client and server. The communication needs to be optimized such that the necessary information can be conveyed with a minimum number of bytes in the least amount of time.
- Bi-directional: Some devices can support two-way communication (ie. GPRS, or other socket based connections), while others may only support one-way communication (ie. some satellite communication systems). With this in mind, a protocol should be designed to support both duplex (two-way) and simplex (one-way) communication.
- Transport Media: Differrent mobile applications will have their own unique way of communicating data back to the server. Some may use GPRS, or socket based communication, others may use satellite communication, while still others may use other forms of wireless communication, such as BlueTooth. The design of the protocol should be able to encompass all such transport media types, regardless of the type of transport in use.
- Flexible Data Encoding: Most types of transport media allow for the transmission of binary encoded data. However, there may be some forms of media for which an ASCII encoded data packet is much better suited. A protocol designed with this in mind should be able to support both types of data encoding.
- Configurable Messages: Due to the broad range of data types used in mobile applications, the protocol should be flexible enough to define standard messages, yet still allow custom messages within the framework.
- Extensible: Not every mobile application is the same. Some require special handling and may have various types of inputs and outputs. A protocol designed for mobile applications should insure that the framework can be easily extended to incapsulate the specific needs of the device.
- Industry Compatibility: Having an open protocol insures better compatibility between different client devices and service providers.
- Reference Implementation: Having a reference implementation that showcases the major features of the protocol provides an easy starting point on which developers can add their own features and platform specific implementation without having to worry about how data gets from the client to the server.
OpenDMTP was specifically designed to suit all these needs, especially "Small Footprint" and "Network Efficiency". The typical data plan for GPRS communication, for instance, is usually 1Mb per month. OpenDMTP was designed to optimize packet encoding to allow the collection of GPS information packets once every 3 minutes, 24 hours a day, 30 days a month, and still stay under the 1Mb data plan limit.
While XML is very extensible, it fails the "Small Footprint" and "Network Efficiency" requirements. Thus, it was discounted as a viable protocol solution. Many mobile devices do not have the resources necessary to be able to provide full XML parsing functionality. And an XML packet may need to be several hundred bytes in length just to send a few bytes of actual data. This alone would make the solution cost prohibitive for high-cost transport media such as satellite.
OpenDMTP also includes a full-featured commercial quality reference implementation to jump-start development.
Enhancements:
- NEW: Minor optimizations made to message logging.
- FIX: Log file now properly displays account/device on client connection.
<<less
Download (0.21MB)
Added: 2007-03-16 License: The Apache License 2.0 Price:
954 downloads
 
Other version of OpenDMTP
OpenDMTP 1.2.3Location-based information (LBS) such as GPS, as well as temperature and other data collected ... available for transferring data (including GPS information) between devices. However these
License:The Apache License 2.0
Download (0.50MB)
834 downloads
Added: 2007-07-13
License:The Apache License 2.0
Download (0.22MB)
1200 downloads
Added: 2006-07-14
Net::GPSD 0.35

Net::GPSD 0.35


Net::GPSD is a Perl module that provides an object client interface to the gpsd server daemon. more>>
Net::GPSD is a Perl module that provides an object client interface to the gpsd server daemon.

SYNOPSIS

use Net::GPSD;
$obj=Net::GPSD->new;
my $point=$obj->get;
print $point->latlon. "n";
or
use Net::GPSD;
$obj=Net::GPSD->new;
$obj->subscribe();

Net::GPSD provides an object client interface to the gpsd server daemon. gpsd is an open source GPS deamon from http://gpsd.berlios.de/.

For example the get method returns a blessed hash reference like

{S=>[?|0|1|2],
P=>[lat,lon]}

Fortunately, there are various methods that hide this hash from the user.

<<less
Download (0.015MB)
Added: 2007-04-04 License: Perl Artistic License Price:
936 downloads
Flight Navigation Planner 104

Flight Navigation Planner 104


Flight Navigation Planner project is a tool for making flight plans based on known airports. more>>
Flight Navigation Planner project is a tool for making flight plans based on known airports.

Flight Navigation Planner lets you make flight plans based on known airports, navaids, fixes, or cities.

You can use the sectional charts, wacs, or the vector/terrain planning charts.

It calculates headings, winds, time, and fuel. It features Airways-based Auto-Routing, Climb and Descent calculations (a/c type based), Fuel Stop Planning, Auto-Route around MOAS and Restricted Airspace, Hi-Res Weather Radar Overlay, Viewing of current sectional, wac, and IFR charts, the ability to see a route over TFRs, detailed nexrad radar overlays over your routes, Terrain Profiles with cloud ceilings, and the ability to upload flight plans to GPS.
<<less
Download (1.2MB)
Added: 2006-10-13 License: GPL (GNU General Public License) Price:
1112 downloads
Simple components for Ada 2.5

Simple components for Ada 2.5


Simple components for Ada is a simple component library for Ada. more>>
Simple components for Ada library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
As a special exception, if other files instantiate generics from this unit, or you link this unit with other files to produce an executable, this unit does not by itself cause the resulting executable to be covered by the GNU General Public License.
This exception does not however invalidate any other reasons why the executable file might be covered by the GNU Public License.
Enhancements:
- Functions Is_In were added for doubly-linked webs and lists. GPS project files were added for GNAT users.
<<less
Download (0.37MB)
Added: 2007-05-20 License: GMGPL (GNAT Modified GPL) Price:
898 downloads
DateTime::Precise 1.05

DateTime::Precise 1.05


DateTime::Precise can perform common time and date operations with additional GPS operations. more>>
DateTime::Precise can perform common time and date operations with additional GPS operations.

SYNOPSIS

use DateTime::Precise;

use DateTime::Precise qw(:TimeVars);

# Constructors and ways to set time.
$t1 = DateTime::Precise->new;
$t2 = DateTime::Precise->new(1998. 4. 3 12:13:44.054);
$t3 = DateTime::Precise->new(time() - 100.23456);
$t4 = DateTime::Precise->new(1998.04.24);
$t1->set_localtime_from_epoch_time;
$t1->set_gmtime_from_epoch_time(time + 120.987);
$t1->set_from_datetime(1998.03.23 16:58:14.65);
$t1->set_time(YDHMS, 1998, 177, 9, 15, 26.5);

# This is the same as $d3->set_from_datetime(...)
$t3->dscanf("%^Y.%M.%D %h:%m:%s", "1998.03.25 20:25:23");
if ($msg = $d1->dscanf("%~M", $input)) {
print "error: $msgn";
print "Must enter a three-letter month abbrev.n";
}

# Get different parts of the time.
$year = $t3->year;
$month = $t3->month;
$day = $t3->day;
$hours = $t3->hours;
$minutes = $t3->minutes;
$seconds = $t3->seconds;
($year, $day_of_year) = $t3->get_time(Yj);

# Print times and dates.
print $t2->asctime;
print $t2->strftime(%T %C%n);
print $t2->dprintf("%^Y.%M.%D %h:%m:%s"); # datetime
print $t2->dprintf("%~w %~M %-D %h:%m:%s CST %^Y"); # ctime

# Copy times.
my $t4 = $t2->copy;

# Set one time object to the same time as another: set $t3 equal to $t2.
$t3->clone($t2);

# Find the difference between two times.
$secs_from_midnight = $t4 - $t1;
$secs_from_midnight = $t4->diff($t1);

# Add seconds, days, months, etc to time.
$t1 = $t4 + 3600; # $t1 is now an hour after midnight
$t1->inc_month(2); # add two months to $t1
$t1->floor_month; # set $t1 to the first of the month
$t1 -= 0.25; # subtract 1/4 of a second from $t1

# Can compare and sort DateTime::Precise.
print "Its late!!!" if ($t1 > $t4);
@sorted = sort @birthdays; # normal comparisons work fine

# Get the GPS weeks, seconds and day.
$gps_week = $t1->gps_week;
$gps_seconds = $t1->gps_seconds;
$gps_day = $t1->gps_day;
($gps_week, $gps_seconds, $gps_day) = $t1->gps_week_seconds_day;

<<less
Download (0.034MB)
Added: 2007-08-09 License: Perl Artistic License Price:
807 downloads
MMDS::Properties 1.902

MMDS::Properties 1.902


MMDS::Properties Perl module contains flexible properties handling for MMDS. more>>
MMDS::Properties Perl module contains flexible properties handling for MMDS.
use MMDS::Properties;
my $cfg = new MMDS::Properties;
# Preset a property.
$cfg->set_property("config.version", "1.23");
# Parse a properties file.
$cfg->parsefile("config.prp");
# Get a property value
$version = $cfg->get_property("config.version");
# Same, but with a default value.
$version = $cfg->get_property("config.version", "1.23");
# Get the list of subkeys for a property, and process them.
my $aref = $cfg->get_property_keys("item.list");
foreach my $item ( @$aref ) {
if ( $cfg->get_property("item.list.$item") ) {
....
}
}
The property mechanism is modelled after the Java implementation of properties.
In general, a property is a string value that is associated with a key. A key is a series of names (identifiers) separated with periods. Names are treated case insensitive. Unlike in Java, the properties are really hierarchically organized. This means that for a given property you can fetch the list of its subkeys, and so on. Moreover, the list of subkeys is returned in the order the properties were defined.
Property lookup can use a preset property context. If a context ctx has been set using set_context(ctx), get_property(foo.bar) will first try ctx.foo.bar and then foo.bar. get_property(.foo.bar) (note the leading period) will only try ctx.foo.bar and raise an exception if no context was set.
Design goals:
- properties must be hierarchical of unlimited depth;
- manual editing of the property files (hence unambiguous syntax and lay out);
- it must be possible to locate all subkeys of a property in the order they appear in the property file(s);
- lightweight so shell scripts can use it to query properties.
METHODS
new
new is the standard constructor. new doesnt require any arguments, but you can pass it a list of initial properties to store in the resultant properties object.
new
clone is like new, but it takes an existing properties object as its invocant and returns a new object with the contents copied.
WARNING This is not yet a deep copy, so take care.
parsefile file [ , path [ , context ] ]
parsefile reads a properties file and adds the contents to the properties object.
file is the name of the properties file. This file is searched in all elements of path (an array reference) unless the name starts with a slash. Default path is . (current directory).
context can be used to designate an initial context where all properties from the file will be subkeys of.
For the detailed format of properties files see below.
get_property prop [ , default ]
Get the value for a given property prop.
If a context ctx has been set using set_context(ctx), get_property(foo.bar) will first try ctx.foo.bar and then foo.bar. get_property(.foo.bar) (note the leading period) will only try ctx.foo.bar and raise an exception if no context was set.
If no value can be found, default is used.
In either case, the resultant value is examined for references to other properties or environment variables. Such a reference looks like
${name}
${name:default}
name can be the name of an environment variable or property. If name is found in the environment, its value is substituted and the expansion process continues, re-examining the new contents, until no further substitutions can be made. If a non-empty value exists for the property name its value is used in a similar way. Hence an empty value for a property will be ignored. If no value can be found, the default string (not to be confused with the default parameter) will be returned.
As an additional service, a tilde ~ in what looks like a file name will be expanded to ${HOME}.
The method result_in_context can be used to determine how the result was obtained. It will return a non-empty string indicating the context in which the result was found, an emptry string indicating the result was found without context, or undef if no value was found at all.
get_property_noexpand prop [ , default ]
This is like get_property, but does not do any expansion.
gps prop [ , default ]
This is like get_property, but raises an exception if no value could be established.
This is probably the best and safest method to use.
get_property_keys prop
Returns an array reference with the names of the (sub)keys for the given property. The names are unqualified, e.g., when properties foo.bar and foo.blech exist, get_property_keys(foo) would return [bar, blech].
expand value [ , context ]
Perform the expansion as described with get_property.
set_property prop, value
Set the property to the given value.
set_properties prop1 => value1, ...
Add a hash (key/value pairs) of properties to the set of properties.
set_context context
Set the search context. Without argument, clears the current context.
get_context
Get the current search context.
result_in_context
Get the context status of the last search.
Empty means it was found out of context, a string indicates the context in which the result was found, and undef indicates search failure.
dump [ start [ , stream ] ]
Produce a listing of all properties from a given point in the hierarchy and write it to the stream.
stream defaults to *STDOUT.
dumpx [ start [ , stream ] ]
Like dump, but dumps with all values expanded.
<<less
Download (0.40MB)
Added: 2007-06-08 License: Perl Artistic License Price:
870 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5