Stupid Things

Do not name your .py file like a library you are going to use.

.../user$ python
 Traceback (most recent call last):
 File "", line 4, in
 import curses
 File "/Users/user/Documents/python/", line 6, in
 stdscr = curses.initscr()
 AttributeError: 'module' object has no attribute 'initscr'

This is an example of a typical “between chair and keyboard”-error.

Java Installations on Windows 7

As usual, something does not work right away, and you lose those two or three hours to wander the Internet looking for useful solutions.
This time it’s the turn of Java, the java media framework package for Windows.
On Windows 7, I launched the executable, but nothing appears, then rerun several times, but still nothing appears.
I gave up and start doing other things, for ten minutes more or less, and then about 4 or 5 installers of the JMF came up on screen. Nice!

Also I remember that on Windows 7 I recently had problems with Java installations, for Matlab7.0.

The problem shared by this type of installation is a problem of compatibility of the jdk (IMHO) with Windows 7.

0. Right-click the executable installation and select the voice file properties, and then go to the compatibility section
1. tick the box to use the mode compatibility
2. choose the compatibility with Windows Vista Service Pack 2 (the really-working  compatibility option for this kind of things)
3. make sure you launch the executable as an administrator

In the end, installation starts where it didn’t started before (for matlab 7), and starts instantly (instead of waiting tens of minutes ) for JMF.
I hope that this will come in handy in some way.


This ‘trick’ also works for Tomboy notes, typical note-app for linux, also available for windows after installing gtk#