10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm new to Linux (Ubuntu 16.04), and very new to BASH scripting. I have a Numato 8-channel USB GPIO device, which is a DAQ that appears in the system as a serial port. In Linux it appears as ttyACM0. I can easily manipulate a GPO with, for example:
echo "gpio set 7" > /dev/ttyACM0
...followed... (12 Replies)
Discussion started by: Chalk-X
12 Replies
2. Shell Programming and Scripting
Hi,
I'm having a xml file with multiple xml header. so i want to split the file into multiple files.
Sample.xml consists multiple headers so how can we split these multiple headers into multiple files in unix.
eg :
<?xml version="1.0" encoding="UTF-8"?>
<ml:individual... (3 Replies)
Discussion started by: Narendra921631
3 Replies
3. Shell Programming and Scripting
Hi Everyone,
I'm new here and I was checking this old post:
/shell-programming-and-scripting/180669-splitting-file-into-several-smaller-files-using-perl.html
(cannot paste link because of lack of points)
I need to do something like this but understand very little of perl.
I also check... (4 Replies)
Discussion started by: mcosta
4 Replies
4. Shell Programming and Scripting
Hello everybody,
I have a double mission with some XML files, which is pretty challenging for my actual beginner UNIX knowledge. I need to extract some strings from multiple XML files and create a new XML file with the searched strings..
The original XML files contain the source code for... (12 Replies)
Discussion started by: milano.churchil
12 Replies
5. Programming
I have problem with C programming. I want to send & receive data through serial communication. I send data(command) to device to get data from device but when receive data, it can't get altogether of data.
It get only some data. What should I do to get altogether of data?
If all of... (7 Replies)
Discussion started by: noppon_s
7 Replies
6. Shell Programming and Scripting
Hi,
I have gps receiver log..its giving readings .like below
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GPSD,R=1
$GPGSV,3,1,11,08,16,328,40,11,36,127,00,28,33,283,39,20,11,165,00*71... (3 Replies)
Discussion started by: gudivada213
3 Replies
7. UNIX for Dummies Questions & Answers
hi all,
this might be a silly question, but...
a few years ago, i bought a Nortech Navigation E-GPS010. this is a car/hand-held GPS unit that, for a while, worked pretty well. in fact, it still works well. the map version on my GPS is dated 2006, so i thought i'd upgrade; however, the crappy... (10 Replies)
Discussion started by: jmd9qs
10 Replies
8. UNIX Desktop Questions & Answers
Hi, I would need to read an xml element from an xml file to a local variable. Please could you help me with a shell script to get so? Considering that I have a file called file.xml like below:
<header>
<description>This is the description</description>
<content>This is the... (2 Replies)
Discussion started by: oscarmon
2 Replies
9. UNIX for Dummies Questions & Answers
hello friends,
While in the process of writing device drivers,
i am facing problem in reading and writing device registers.I got base address of those mapped device registers. Can i add offset of those registers to that Base address to get access of those... (1 Reply)
Discussion started by: sriram.ec
1 Replies
10. UNIX for Dummies Questions & Answers
hi everybody,
i am working in device drivers.As a beginner to this field ,i dont know how to read or write device files. Will copy_to_user and copy_from_user help me?
I have created a device file using mknod command .Can anybody help me in this regard :confused
thanks in advance
sriram (1 Reply)
Discussion started by: sriram.ec
1 Replies
VIKING(1) [FIXME: manual] VIKING(1)
NAME
viking - program to manage GPS data
SYNOPSIS
viking [-d | --debug] [-V | --verbose] [file...]
viking [-h | --help]
viking [-v | --version]
DESCRIPTION
Viking is a free/open source program to manage GPS data. You can import and plot tracks and waypoints, show OpenStreetMap (OSM) maps and/or
Terraserver maps under it, add coordinate lines, make new tracks and waypoints, hide different things, etc. It is written in C with the
GTK+ 2 toolkit, available for Linux, other POSIX operating systems, and Windows, and is licensed under the GNU GPL.
Homepage: http://viking.sf.net
This manual page was written for the Debian(TM) distribution because the original program does not have a manual page.
viking is a program to manage GPS data
OPTIONS
file
Specify file to load at start.
-d, --debug
Enable debug output.
-V, --verbose
Enable verbose output.
-?, --help
Show help options.
-v, --version
Show version.
EXTENDING VIKING
Currently, viking has some extention points based on configuration files. The file format is heavily inspired by the GtkBuilder file
format: you specify the class of the GObject to build and set its properties. Technically, it is a XML file containing a "objects" root
element. Inside this element, you set a collection of "object".
Here is an example:
<objects>
<object class="ClassName">
<property name="property_name1">Property value</property>
<property name="property_name2">Property value</property>
</object>
...
<objects>
You can find more examples in the documentation part of the distribution.
Map Source. It is possible to add new map's sources. The file is ~/.viking/maps.xml. An example of the file in the distribution
doc/examples/maps.xml. The VikSlippyMapSource allows to declare any map's source working like OpenStreetMap. It supports the following
properties:
id
this is an integer and should be unique as it used to identify the map source
label
the text displayed in the map's source selection dialog
hostname
the server's hostname (eg. "tile.openstreetmap.org")
url
the parametrized address of the tile, in the spirit of C printf format, with 3 "%d" fields for X, Y and Z (zoom level) (eg.
"/%d/%d/%d.png")
The VikTmsMapSource allows to declare any TMS service. It supports the following properties:
id
this is an integer and should be unique as it used to identify the map source
label
the text displayed in the map's source selection dialog
hostname
the server's hostname (eg. "tile.openstreetmap.org")
url
the parametrized address of the tile, in the spirit of C printf format, with 3 "%d" fields for X, Y and Z (zoom level) (eg.
"/%d/%d/%d.png")
The VikWmscMapSource allows to declare any WMS or WMS-C service. It supports the following properties:
id
this is an integer and should be unique as it used to identify the map source
label
the text displayed in the map's source selection dialog
hostname
the server's hostname (eg. "tile.openstreetmap.org")
url
the parametrized address of the tile, in the spirit of C printf format, with 4 "%s" fields for bounding box coordinates (eg.
"/coord=%s,%s,%s,%s")
Go-to search engines. It is possible to add new new search engines for the "Go-To" feature. The file is ~/.viking/goto_tools.xml. An
example of the file in the distribution doc/examples/goto_tools.xml. Currently, there is a single object class available: VikGotoXmlTool.
Such feature allows to declare any search engine using a XML format as result. The related properties are:
label
the text displayed in the Go-To dialog
url-format
the parametrized address of the query, in the spirit of C printf format, with a single "%s" field (replaced by the query string)
lat-path
XML path of the latitude (eg. /root/parent/elem)
lat-attr (optional)
name of the attribute (of previous element) containing the latitude
lon-path
XML path of the longitude (eg. /root/parent/elem)
lon-attr (optional)
name of the attribute (of previous element) containing the longiude
As a facility (or readability) it is possible to set both path and attribute name in a single property, like an XPath expression. To do so,
simply set both info in lat-path (or lon-path) in the following format: /root/parent/elem@attribute.
External tools. It is possible to add new external tools. The file is ~/.viking/external_tools.xml. An example of the file in the
distribution doc/examples/external_tools.xml. Currently, there is a single object class available: VikWebtoolCenter. Such feature allows
to declare any Webtool using a logic based on center coordinates and zoom level value. The related properties are:
id
this is an integer and should be unique as it used to identify the tool
label
the text displayed in the menu entry
url
the parametrized address of the tile, in the spirit of C printf format, with 3 "%d" fields for X, Y and Z (zoom level) (eg.
"http://hostname/%d/%d/%d.png")
FILES
~/.viking/maps.xml
File containing definition of map sources.
See previous section for details.
~/.viking/goto_tools.xml
File containing definition of "Go-to" services.
See previous section for details.
~/.viking/external_tools.xml
File containing definition of external tools.
See previous section for details.
~/.viking/viking.prefs
Preferences for viking.
~/.viking/cookies.txt
File hosting cookies used by viking.
~/.viking-maps/
Map cache of tiles downloaded by viking.
AUTHOR
This manual page was written by Ralf Meyer ranfyy@gmail.com for the Debian(TM) system (but may be used by others). Permission is granted to
copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by
the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
COPYRIGHT
Copyright (C) 2007 Ralf Meyer
Copyright (C) 2010 Guilhem Bonnefille
[FIXME: source] 2008-05-02 VIKING(1)