Jul 30, 2014

How to collapse all project nodes in a the netbeans projects window

When you have a lot of projects open in netbeans and edited a lot of
files, it is hard to navigate.

By pressing <Ctrl>-<1> you get to the project window and by typing you can move the selection.

To collapse all project nodes it is a little bit tricky. I found the solution in
this bugfix 113278.

You have to be in the projects-Windows by pressing <Ctrl>-<1>.

There you are not allowed to have something selected -> press <Ctrl>-<Space>.

Now In the context-menu ( get it by pressing <Shift>-<F10> ) and <UP>-<UP> you get to the "Collapes All" Context menu entry, which closes
all nodes in the projects-window.

Jul 25, 2014

executing only one testcase with maven

During the testing call with maven all available testcases are executed.

mvn test

if you have problems with a testcase you can just execute this one testcase

mvn test -Dtest=<TestCase>

removing a package on a solaris global zone hangs with the message: ## Waiting for up to <300> seconds for package administration commands to become available (another user is administering packages on zone <Zonename>

Today the attempt of removing a package in the global zone of a solaris 10
system waited for an other administration task to complete.

This is the message:

## Waiting for up to &lt;300&gt; seconds for package administration commands to become available (another user is administering packages on zone &lt;Zonename&gt;

The problem is, that there is not running any administration task.

After truss'ing I got the hint of /tmp/.ai*lock* files. I removed the file
in the global, but this didn't have any success.

The solution was available here. In every zone-filesystem there is also
a /tmp/.ai*lock* file, which was dangling around from a killed pkg-command.


rm /zones/*/root/tmp/.ai* 

the pkgrm command succeeded.

awesome session on vJUG about Testing and refactoring Legacy Code

Most of the time on a busride during the vJUG sessions, so I view the
sessions most of the time offline :-(.

But the last one I viewed about "Testing and Refactoring of Legacy Code"
was awesome.

See it  @youtube:


Jul 22, 2014

How to search for files containing a text fragment in Fedora20/ Gnome 3.10.2

About a year ago, I posted about a function in Gnome Nautilus ( File manager ) in gnome, on how to search for files containing a text fragment.

But this function was removed. I didn't want to change the file manger
or use one from a different Desktop environment, so I used a shell script.

Now I found a solution or two ;-). Install gnome-search-tool, which supports the searching for the content and some more by  adding a Nautilus action

After searching in the software-repository, I found the package


After installing with
sudo yum install  nautilus-search-tool.x86_64 
and killing and restarting nautilus ( kill all running instances )
I got a context-menu entry, which starts the gnome-search-tool 
and you do not need to add an action.

After starting gnome-search-tool, the Folder to start searching in is set to
None. Selecting "Other" in "Look in Folder" opens a file browser selection dialog, which is presetted with the acutal selected directory in nautilus, which  can be taken over to the search.

Jul 21, 2014

maven and Testcase processing - skipping Tests or skipp building test classes

The maven default attempts to compile and execute testcases from
src/test, but if you want to skip the tests you can do this with

mvn install -DskipTests=true

but this compiles the test classes in your project. If you also want to
skip the compilation of the test classes you have to use

mvn install -Dmaven.test.skip=true 

Can't show the actual docker Containers as normal user

Since the last updates of fedora 20, I can't show the actual active docker container.

I always get a Permission denied on the socket:

$ docker ps
2014/07/21 09:37:32 Get http:///var/run/docker.sock/v1.12/containers/json: dial unix /var/run/docker.sock: permission denied

The former problem was that my account was not in the docker-group, but
now it's a different problem, because I'm in the group.

Found the workaround-hint in this Bug.( Different systemd versions for
actual configuration and running systemd )

Changing the group ownership of /var/run/docker.sock to docker allowed
me to view the containers again:

chown root:docker /var/run/docker.sock

Jul 13, 2014

Communication between two docker container

I started to use docker in my dev environment.

On my laptop are two containers, where on one is a java process running and on the second is a tomcat active, which offers the java process services
as WebServices.

On the WebService-Container I have to have the dynamic IP-Address of the
container, but this changes on every start.

The solution is to add the --link Option on starting the WebService Container.

This option sets some Environment variables, but what is much more of
use for me is the entry in the /etc/hosts filewith the name I can set in the --link option.

Now the WebService Container only needs to reference the hostname and
on every start with the --link Option, the new IP is inserted into the /etc/hosts.

sudo always asks for password, although I have inserted all commands for me.

On my laptop I'm the only user and have inserted my account in the
/etc/sudoers on Fedora 20.

But I still get the request for the password even I have inserted the following line :


after the available line for root

root    ALL=(ALL)       ALL

I lived some time with this, but now I know why I got always the password request:

 I'm also in the wheel group. After moving my config line at the end of the
file, I can now "sudo" without password request

Jul 4, 2014

switch between tabs by keyboard in nautilus ( Gnome Filemanager )

I'm running Fedora 20 and use nautilus as a filemanager frequently.

Navigating through huge directory trees by typing letter is sometimes

Here I use <Ctrl>-<s> and mark the desired directy with wildcards.
This is in my case much faster.

Switching between TAB's opened with <Ctrl>-<t> is  done with <Alt>-<[0-9]>

More Shortcuts can be found at http://askubuntu.com/questions/364595/how-to-switch-between-tabs-in-nautilus