Author Archives: mz

Ubuntu on 64bit

Personal note

If you want to install a package that is only available in 32bit use the following option:

dpkg -i –force-architecture skype-debian_2.0.0.72-1_i386.deb

Update:

64bit is so really shiny brand new and totally unknown how could you expect to have java plugins and flash for firefox? The java bug is only 5 years old, man…. Otherwise see this Howto. No window icons though.

Networking and a HP Photosmart C5180

More a personal note, yet may be useful for others to know….

Today, our new printer, a HP Photosmart C5180, arrived. This printer combines printer, scanner and photocopier in a single unit, i. e. it is able to do any of these three tasks more or less. Well, good enough for us, is seems after some initial tests.

This printer can be connected to a router and hence scanning and printing is possible via the network. Nice, if you only have laptops and wireless lan. And here, the problems started….

Running the printer with a dynamic IP provided via DHCP from the router does not work reliable. Either the printer is never detected from the software installation process or is lost if the printer’s ip changes or the windows firewall blocks the address information send by the printer. It simply doesn’t work.

Workaround?

1) Assign a static IP to the printer

2) Print the network configuration of the printer via the corresponding menu option

3) Edit the /windows/system32/drivers/etc/hosts file and add the following line

192.18.x.x HPXX123

Here, replace the 192.18.x.x with the ip of the printer and HPXX123 with the printer name as shown on the configuration printout.

4) Then install the driver software. The basics are enough. The other applications are next to unusable or extremely bloated. 160 MB for a document viewer? Come on…

And in case you want to know, how to do this using dynamic ips, have a look at this german thread. (There is a translated version on the HP website somewhere)…. Mind boggling complex, no more comment…

PoelControl, AVRs und Elektronik…

Nach langer Zeit wieder ein Update der aktuellen Entwicklungen rund un AVRs, einer elektronischen Steuerung für den Pölbetrieb etc. Nicht alles ist für die Pölerei; einiges ist auch anderweitig seit längerem in Betrieb

PoelControl I

Zuerst einmal, die bereits im vorigen Post vorgestellte PoelControl I ist inzwischen vollständig funktionsfähig und hat bereits einige Monate aktiven Betriebs im Auto überstanden. Hier nochmal Bilder von vorne und auch der Platinenrückseite. 100% SMD 🙂

PoelControl I
PoelControl Backside

Mainbord Mega32

Da ich inzwischen Sensoren und Peripheriegeräte fast ausschließlich über Bussysteme wie I2C oder SPI betreibe und diese nicht direkt angeschlossen werden, wurde zum testen noch eine kleine Controller-Platine fuer den Atmel Mega32 gefertigt.

PoelControl I
PoelControl Backside

Strom, I2C, SPI, ISP, RS232 und ein kleiner I2C-Speicher. Mehr nicht. Zur Zeit wird hiermit an I2C-Master-Slave experimentiert.

PoelControl II

PoelControl II ist eine Master-Platine für eine automatisierte Pöl-Steuerung gedacht. Neben den Funktionen, die auch beim Mega32-Board vorhanden sind, ist hier weiterhin ein SD-Card-Slot vorhanden.

PoelControl I
PoelControl Backside

Die Signale für GALA (geschwindigkeitsabhängige Lautstärkeanpassung) wie auch die Drehzahl der Lichtmaschine können angeschlossen werden und sind mit den entsprechenden Interupt-Pins des AVR verbunden. Bleibt die Steuerung dauerhauft mit der Batterispannung verbunden, so können Peripheriegeärte durch den Controller abgeschaltet werden.

Input / Output

Letztlich wurden für einen anderen Anwendungszweck zwei kombinierte Input/Output-Platinen entwicklet. Beide sind über I2C ansteuerbar, bieten diverse LEDS, einen Speaker und ein Display zur Ausgabe von Statusinformationen. Über Tasten können Benutzerdirektiven abgesetzt werden.

PoelControl Backside
PoelControl I

Die linke Variante zeigt eine einfache Lösung mit einem 3×12-Zeichen I2C-fähigem Display und 3 Tastern. Die rechte Platine ist ein Graphikdisplay mit 128×64 Punkten, eigenem Atmel-Controller und, so gewünscht, oben genannten Anschlussmöglichkeiten für GALA, Lima und Co. Eine Ansteuerung dieses Displays über I2C, wobei der Controlller on Board als I2C-Slave fungiert, ist zur Zeit in der Entwicklung.

Support for Shallo-Panel-Meshes in MView

MView is a lighweight viewer for three dimensional models and supports a variety of model formats. OpenGL is used for rendering. Using Qt as UI framework the application is available for Windows, Unix and Mac and is published under the LGPL. For more information, see the project page.

As part of my work at the Chair of Naval Architecture at the University of Rostock support for the mesh format used by the potential flow code Shallo from HSVA was added to MView hence giving our students a flexible and free tool to verify panel meshes.


Example Shallo Mesh

As of some days ago these changes are incorporated into MView’s CVS repository – thanks Helmut – and will be part of the next release.

XsdImport and Owl2Java Plugins for Topbraid Composer

Topbraid Composer is a versatile, eclipse based tool to develop OWL ontologies. With the initial public relase of XsdImport and Owl2Java two additional plugins for Topbraid Composer are available for download.

From XSD to OWL…

XsdImport is a plugin for TopbraidComposer to convert XSD Schemas to OWL. Classes and Properties are created based on the XSD construct found in an XSD schema. Support for Semantic XML, custom namespaces and namespace prefix mapping as well as a flexible system for handling imports are implemented.

… and on to java or db4o

Owl2Java is a code generator to work with OWL ontologies from java. Ontologies are accessed natively via java classes, methods and attributes. A native interface for the object orierented database db4o with support for transparent persistence can be generated from the internal meta model. Where possible, the implementation adheres to the OWL DL standard and also offers some support for constructs that normally require a reasoner. F

QDL 0.4 released

QDL is a set of python script for the automatic download of current quotes for funds, shares etc. from websites. The results are mailed to the user perodically and can be imported in to quicken etc.

Version 0.4 is out. It includes some minor bugfixes as well as a second driver for boerse-online.de for cases where the old “bo” driver did not give any results because of data missing.

Announcing Owl2Java – A Java Code Generator for OWL ontologies

The elevator speech: Owl2Java is a code generator to work with OWL ontologies from java. Ontologies are accessed natively via java classes, methods and attributes. A native interface for the object orierented database db4o with support for transparent persistence can be generated from the internal meta model.

With version 0.5, I am happy to announce the first public release. This release contains

  • a fully working generator for the generation of a java API and hence allows transparent access to the data model stored in an OWL ontology
  • a working prototype to generate db4o compliant java classes with support for transparent persistence. A mapping script to copy OWL instances to the object database from db4o is generated automatically.

For more information see the project site.

Cups, Duplex and Multiple Copies

Ever tried to print multiple copies of a document with an uneven number of pages duplex? A couple of days ago, I did. On a HP Color Laserjet 3700 the results were nothing but disastrous (on windows also, btw 🙂

First I used the drivers recommended by the KDE print configuration utility, namely Postscript and Postscript + foomatic. Results?

  • With the default Postscript driver the collate function does not work i. e. the printer churns out 50 copies of the first sheet of paper followed by 50 copies of the second sheet followed … you get the drift.
  • With foomatic collate works yet there is the issue that all copies are added to a single document before being sent to the printer as duplex print job. For a 3 page document and 2 copies you end up with pages 1-2, 3-1, 2-3 hence making every second copy unusable.

The cups website and forum mentions some details about certain ppd-commands (cupsEvenDuplex and OrderDependency) to avoid the second behaviour yet there is no way to set these config options as end user. Editing the ppd files in /etc/cups/share wasn’t successful either.

The solution? Just use the plain old generic postscript driver! Tested as a last approach to the problem, this drivers works as one expects it.

PoelControl – Any News There?

PoelControl – ein Projekt zur Entwicklung einer elektronischen Steuerung für den automatisierten Betrieb mit Pöl – dämmerte den Winter über im Winterschlaf. Dennoch gab es einige Ergebnisse.

PoelControl I ist eine Anzeigeinstrument von Infos rund um den Pölbetrieb. Hiermit ist es möglich, alle für den Pölbetrieb relevanten Parameter wie Temperaturen, 2 Drücke (Ladedruck, Sog bzw. Druckabfall über einem Kraftstofffilter) sowie Tankpegel zu messen und anzuzeigen.

PoelControl I

Fokus der Entwicklung war hierbei eine minimale Baugröße, die nur unwesentlich größer als das eingesetzte Display ist. Dies wurde durch konsequente Verwendung von SMD-Komponenten erreicht. Der Anschluss erfolgt trotz Miniaturisierung mittels standardisierter Wannenstecker, so dass ein sicherer Kontakt gewährleistet ist.

Desweiteren ist ein Relaismodul fertig. 8 Relais (Belastbarkeit jeweils 5 A, I_total < 10 A) können über I2C gesteuert werden. Auf dem zweiten Bild sind RelaisBoard wie auch ein Board zur Meßwerterfassung gemeinsam zu sehen.

RelasiBoard

SensorBoard