Saturday, May 4, 2013

Arduino IDE OPEN/SAVE problem in Ubuntu


Finally, Arduino UNO has arrived. I've downloaded IDE tool and tested some examples. But a serious problem appeared that gave me a headache! Open and Save feature stops with a Java NullPointer Exception!!!


Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: NullPointerException
at sun.awt.motif.MFileDialogPeer.setFont(Native Method)
at sun.awt.motif.MComponentPeer.initialize(MComponentPeer.java:182)
at sun.awt.motif.MComponentPeer.init(MComponentPeer.java:226)
at sun.awt.motif.MWindowPeer.init(MWindowPeer.java:103)
at sun.awt.motif.MDialogPeer.<init>(MDialogPeer.java:39)
at sun.awt.motif.MFileDialogPeer.<init>(MFileDialogPeer.java:24)
at sun.awt.motif.MToolkit.createFileDialog(MToolkit.java:263)
at java.awt.FileDialog.addNotify(FileDialog.java:265)
at java.awt.Dialog.conditionalShow(Dialog.java:887)
at java.awt.Dialog.show(Dialog.java:1035)
at java.awt.Component.show(Component.java:1584)
at java.awt.Component.setVisible(Component.java:1536)
at java.awt.Window.setVisible(Window.java:842)
at java.awt.Dialog.setVisible(Dialog.java:986)
at processing.app.Base.handleOpenPrompt(Base.java:649)
at processing.app.Base$3.actionPerformed(Base.java:906)



There was no answer even after some google searches. I was so disapointed that I setup Eclipse with AVR plugin to do my experiments. Examining the "AWT-EventQueue-0" error I looked for some environmental set relevant to AWT. I found that there was an AWT_TOOLKIT set. Unsetting this solved the problem!!!


$unset AWT_TOOLKIT
$arduino


Wednesday, May 1, 2013

Programmer for Atmel mCs

Waiting for my Arduino Uno to arrive, I had time to dig for an old project of mine, a mini-computer based on Atmel's 8252 microcontroller. I used LPT Paraller Port of my PC to flash the mC. For that purpose I wrote a cool application, called "LPT_Programmer". 
The schematic diagram for the Programmer Cable is shown below. It uses the SCK, MISO, MOSI and SS pins to flash the mC according to the technical datasheet.




The application can Download or Erase the Flash, read EPROM and Reset the mCu. The is also a Device Setup Feature and a communication Settings dialog box.


The application will be available to download very soon!

Wednesday, April 3, 2013

WinPostIt!


Hah, November 2004, some free time to do a very tiny and useful desktop "helper" in windows which can be used to write some notes in a convenient way.

This program can be downloaded from here!























www.myexpenses.gr



Τί είναι το www.myexpenses.gr;

Το myexpenses.gr είναι μια πολυχρηστική εφαρμογή διαδικτύου για την καταχώρηση των αποδείξεων και παρακολούθησης των εξόδων. Η βασική ιδέα στην οποία στηρίζεται η εφαρμογή είναι η γρήγορη εισαγωγή των αποδείξεων με κοινή χρήση των στοιχείων των καταστημάτων από όλους τους χρήστες της εφαρμογής. Η εύκολη εμφάνιση διαφόρων στατιστικών γραφημάτων των εξόδων των χρηστών ανά είδος και ανά κατάστημα για διάφορες χρονικές περιόδους καθώς και η δυνατότητα για εκτύπωση αναφορών για την Εφορία είναι μερικές από τις δυνατότητες της εφαρμογής.


Η εφαρμογή έχει φτιαχτεί με τέτοιο τρόπο ώστε οι καταχωρήσεις των αποδείξεων των χρηστών να είναι προσωπικές και με κανέναν τρόπο να μην είναι διαθέσιμες στους υπόλοιπους χρήστες της. Τα στοιχεία των καταστημάτων είναι κοινόχρηστα μεταξύ των εγγεγραμμένων χρηστών της εφαρμογής και δυνατότητα αλλαγών έχουν όλοι οι χρήστες.



Ενημέρωση: Η εφαρμογή έχει σταματήσει να λειτουργεί πλέον.


Tuesday, April 2, 2013

An advanced software tool for analyzing and interpeting Gardiotocograms


A post for a paper in 4th International Conference Neural Networks and Expert Systems in Medicine & Healthcare, Milos, Island, Greece, 20-22 June 2001....

ABSTRACT: Labour is a stressed procedure for both the fetus and the mother and a key issue for fetus surveillance is the detection of fetal distress. This paper describes a software tool that has been developed in order to monitoring fetus status by acquiring and processing the Cardiotocogram (CTG). This software tool establishes a communication between PC and the cardiotocograph, the medical device that records and prints out the Fetal Heard Rate and the Uterine Activity. Then, the software tool pre-processes the signal from the cardiotocographic device, artifacts are removed and non-signal parts (gaps) are filled utilizing an interpolation method. The more advanced part of the software tool includes the processing of CTG signal, extracting the characteristics of the signal such as baseline, variability, accelerations and decelerations. According to these characteristics, CTG can be evaluated and comments on the physiological or not status of the fetus can be done and giving an objective estimation on the health of fetus to the doctor.

Read paper here: PDF


Tuesday, January 15, 2013

Dos to Unix Text Converter for Windows

Back in 2003, a team of civil engineers from university ask from me an easy way to convert some output text files from a static-modelling tool (running in a Unix machine) to Windows format for post-processing. The problem was that they did want a text editor but just a simple drag'n'drop application for the conversion.
 For this purpose I created a small application called "Dos2Unix Converter" with line-termination autodetection, drag'n'drop, command line execution and Windows Explorer integration capabilities for Windows OS.

You can download the application, for free, here:



Once again: S.F.M.B.E.





Sunday, January 13, 2013

Game of life in Android!

"The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, alive or dead. Every cell interacts with its eight neighbours, which are the cells that are horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur:

  • Any live cell with fewer than two live neighbours dies, as if caused by under-population.
  • Any live cell with two or three live neighbours lives on to the next generation.
  • Any live cell with more than three live neighbours dies, as if by overcrowding.
  • Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

The initial pattern constitutes the seed of the system. The first generation is created by applying the above rules simultaneously to every cell in the seed—births and deaths occur simultaneously, and the discrete moment at which this happens is sometimes called a tick (in other words, each generation is a pure function of the preceding one). The rules continue to be applied repeatedly to create further generations."

"Conway was interested in a problem presented in the 1940s by mathematician John von Neumann, who attempted to find a hypothetical machine that could build copies of itself and succeeded when he found a mathematical model for such a machine with very complicated rules on a rectangular grid. The Game of Life emerged as Conway's successful attempt to drastically simplify von Neumann's ideas. The game made its first public appearance in the October 1970 issue of Scientific American, in Martin Gardner's "Mathematical Games" column. From a theoretical point of view, it is interesting because it has the power of a universal Turing machine: that is, anything that can be computed algorithmically can be computed within Conway's Game of Life."