Open Data with Open Source
Posted: May 16, 2010 Filed under: Uncategorized | Tags: opendata, opensource Leave a comment »I’ve been helping the folk at Portobello Marine Lab make some of their scientific data available on the web.
Like many research institutions they have data on paper and in files on individual PC’s or a departmental server. Often this data has potential that is unlocked by making it more widely available.
The new http://marineinfo.otago.ac.nz/ website publishes data, from 60 years of reaserch, about the Lab’s reference collection of preserved marine specimens, Dr Elizabeth Batham’s card index of information, photos and illustrations of local species , and a database of theses and other miscellaneous publications from the Lab.
More data will be added in the coming months along with interactive maps.
The data is searchable and may be downloaded. Re-use of the data is encouraged with the data licensed on Creative Commons ShareAlike terms.
Open Source tools were used to build and power the web site: Django, Python, PostgeSQL, PostGIS, Firefox, Firebug, Python Imaging Library, Apache, Ubuntu, Mercurial.
.
Think Python
Posted: April 25, 2010 Filed under: Uncategorized | Tags: opensource, programming, python Leave a comment »This looks pretty good. An introduction to programming using Python. You can also get hard copy at Amazon.
Maemo Development – Getting Started
Posted: January 3, 2010 Filed under: Uncategorized | Tags: maemo, n900, opensource, scratchbox, sdk Leave a comment »As complete beginner in programming Maemo devices, I was looking for an easy way to get started. Currently C++ is the only officially supported language for Maemo development. The Maemo SDK provides the tools and the Scratchbox sandbox environment. Scratchbox is a fairly full-featured Linux development environment and includes tools like like gdb, valgrind, ltrace and strace. Setting up the SDK is a fair amount of work. However, there is a pre-built virtual machine for VMware with the SDK and ESBox IDE all set up an ready to go. Still, all this is not exactly a dive-right-in toolset.
Fortunately there is a simpler way – Python. The N900 has Python 2.5.4 and Xterm, vi and PyMaemo. This provides all you need to get started. Just type in a program and you’re in business. Here’s the hello world app from the PyMaemo documentation
import gtk
import hildon
def hello(widget, data):
print "Hello World!"
def main():
program = hildon.Program.get_instance()
window = hildon.Window()
program.add_window(window)
window.connect("delete_event", gtk.main_quit, None)
button = hildon.Button(gtk.HILDON_SIZE_AUTO, hildon.BUTTON_ARRANGEMENT_VERTICAL, "Hello world!")
button.connect("clicked", hello, None)
window.add(button)
window.show_all()
gtk.main()
if __name__ == "__main__":
main()
To run the Python program, use this command at the shell prompt.
run-standalone.sh python2.5 helloworld.py
Now typing on the N900 keyboard isn’t realistic. The Komodo IDE I use on the Mac has the ability to edit remote files via scp. Once you install the OpenSSH server on the N900 you’re in a position to directly edit files on the device with Komodo.





