Share |

Hang-Man Bug

If your system inexplicably hangs …..

one reason might be you are trying to initialize a java.awt class on a server that does not run X.

Fun fact: I just read about this the other day on the forum for the library I am using and for which I need these awt-classes for!

. . . → Read More: Hang-Man Bug

Exception Handling

When I started working one and a half years ago, I knew a lot less about software development than I know now. This does not necessarily imply that I know everything now. But I think in the meantime I have learned a lot.

The latest acquisition in the field I made through my . . . → Read More: Exception Handling

it’s my what?

yes it is 27@27 ;-)

ssh-agent

So that I will not have to search for a fix for this again.

The xsession must be started as a client of the ssh-agent. For this a file .xsession (plus ln -s .xsession .xinitrc) is needed with the following contents:

#!/bin/sh SESSION_PROC_ID=$$ ssh-agent $HOME/.xsession.ssh

Secondly I copied the global /etc/X11/xinit/xinitrc to /home/yashima/.xsession.ssh. Then . . . → Read More: ssh-agent

The “Keywords for Better Code” Initiative

The Do’s of programming. My favorite “code” improving keywords are:

# final: makes sure I don’t do stupid assignments, in combination with the compiler warnings “this variable may not have been assigned” a very valuable tool # finally: close files, connections and clean up despite errors happening! # throw (note: not throws!): exception handling, . . . → Read More: The “Keywords for Better Code” Initiative