Posts

About JSch open source project

4 min read

There are many, many open source, pure java implementation for the SSH/SFTP protocol. However, in my opinion, there are two of them that can be taken seriously. One of them is JSch, the other one is Trilead SSH. I will talk about my experience on the former one while implementing the RemoteTools framework for the Parallel Tools Platform for Eclipse.

JSch is one of the few (if not the only one) open source, pure Java implementation with the a complete implementation of the SSH specification, covering both SSH versions. It also covers less common ssh use cases, like High Performance Enabled SSH/SCP (although I have not yet seen a SSH server willing to easily support this). The JSch maintainers are very careful to adhere strictly to the ssh specification. They even refuse to implement workarounds for known issues for common ssh servers. They reply: “Ask your ssh server provider for a fix”. And I tend to agree with them.

Smaller font sizes for Eclipse on Linux

4 min read

This article describes some approaches to launch Eclipse on Linux with smaller font sizes and customized graphical user interface (GUI).

The modern desktop environments like KDE or Gnome use larger font sizes to enhance readability of screen contents. However, Eclipse, looks better with a clean design and small fonts.

Views like Package Explorer or Outline may contain very large listings of important information. Eclipse uses are not willing to waste precious space neither with large fonts nor with fancy window decorations.

Fixing Copy-Paste issues on Eclipse and KDE

4 min read

This article describes a solution to fix a long term issue (bug?) involving copy & paste when running Eclipse on KDE.

The problem

When launching Eclipse from KDE, one might experience several types failures with cut, copy and paste actions in Eclipse. The reported misbehavior is non-deterministic, but frequent enough to degrade user experience.

Inside the editor, specially the Java or C/C++ editor, selecting text and issuing the copy action (ctrl+c or equivalent menu entry) may not copy the select text to the clipboard (no text is copied).

Polling files on NFS shared directories

4 min read

These days we were implementing a distributed application where processes read startup information from a shared file stored in an NFS directory. Unfortunately, the approach did not work as expected, and we faced strange situations. After all, we learned that polling NFS shared directories can be quite tricky.

The original approach

Let me explain shortly the algorithm that was initially intended for the application. There is one master process and other N slave processes running on different machines. All of them are started nearly at the same time. But the slave processes must first wait for a file with instructions created and written by the master process.

Running eclipse based apps on Fedora 9 x86_64

2 min read

Many IBM applications are based on eclipse for i386 architectures. Just some examples: Lotus Notes, Sametime, Symphony, IES (IBM eclipse SDK). However, the Fedora 9 for x86_64 architectures does not install any 32 bits libraries anymore. How shall these applications now run on Fedora 9?

One one side, these applications were designed for Linux on 32 bit architectures. Therefore, they were build on the 32 bits eclipse framework that relies on several JNI (Java Native Interface) calls to 32 bit libraries. The most important library is the low level access to gtk API.

xfs forgetful?

2 min read

I have been using xfs for some months now. Somewhere I had read about advantages of xfs and got convinced that I should store my files on that file system (sorry, I don’t remember the references anymore).

Today it happened that, suddenly, eclipse complained that all the files I was editing did not exist anymore on the workspace and that the file view was out of sync with the file system. Probably, a bug of new Ganymede version, I thought. But in sequence, everything crashed: KDE, firefox, Sametime, Notes, …

Backing up DVD movies on Linux now useful

2 min read

For a long time I have been struggling on Linux to easily create backup copies of my favorite movies, until I finally found k9copy.

Before k9copy, backing up dvds was darkness

On one hand, there are many fancy video tools available for Windows. However, nearly all of them have some kind of embedded spyware or virus. On the other hand, Linux tools are all written for command line, and require a lot of expertise just to understand what they do.

Whats this? IOException: Write end dead

5 min read

I like Java very much. Nevertheless, there are things I cannot stand in Java. Sure, and one of them are undocumented exceptions from the Java API, that nobody can explain.

I will talk about “Write end dead” IOExceptions. What does this mean? Why did this happen? Even if googling around, it is difficult to find a clear answer.

This article is a full explanation to understand this exception and shows how to fix your code. Just continue reading…