Since a few months I’ve done away with using the Gnome main menu. Instead I use Gnome Do. I removed the bottom toolbar long ago, because always use alt-tab.

I’m not using the top toolbar much either. It was just taking up valuable screen space. I contains only the notification area and a logout button. I was looking at a way to remove it completely. The answer came in the Compiz widget layer. By placing it on the widget layer, fullsize windows actually fill the full screen, but the notification area is still available for applications who need it.

To move Gnome panel to the Widget layer, open ‘CompizConfig Settings Manager’ and enable ‘Widget Layer’. Go to tab ‘Behaviour’ and add the following text for the ‘Widget Windows’ field:

(class=Gnome-panel & type=Dock)

The desktop will now be completely clean:
Desktop clean

With we can display the widget layer, where the panel is found:
Desktop Widgets

PS. The widgets you see on the widget layer are screenlets. Ubuntu has the screenlets package in the universe repository.

 

How to get a file extension in PHP:

1
$ext = pathinfo($file_name, PATHINFO_EXTENSION);
$ext = pathinfo($file_name, PATHINFO_EXTENSION);

How to get a file extension in Perl:

1
my $ext = ($file_name =~ m/([^.]+)$/)[0];
my $ext = ($file_name =~ m/([^.]+)$/)[0];

How to get a file extension in Ruby:

1
ext = File.extname(file_name)
ext = File.extname(file_name)

How to get a file extension in Bash:

ext=${file_name##*.}
name=${file_name%.*}

How to get a file extension in Python (thanks to Jensen):

import os
ext = os.path.splitext(file_name)[1]


Got more? Please post a comment.

 

This article was written for the first generation iPhone. It might not work with the iPhone 4.

The iPhone only plays well with iTunes and not with other Music Players like Amarok. However after hacking the iPhone, there is a way around this. When OpenSSH is installed on the iPhone, we can use sshfs to mount the filesystem of the iPhone on our PC and copy the music.

This article assumes your working with Ubuntu (or Debian), but it’s almost similar for other distributions.
Continue reading »

 

I was getting a lot of hassle from eclipse after updating to ubuntu feisty. Finally I found the problem. I was running GNU java VM (GIJ) as default, while eclipse is build to run with the SUN java VM. The GIJ is only Java 1.4 and it therefor not working correctly.

Run the command `java -version`. And if you get the following, it’s no good:
java version “1.4.2″
gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5)

Just install the SUN java packages (using apt) and then run `update-java-alternatives -s java-1.5.0-sun`. When you run `java -version` now, you should read:
java version “1.5.0_11″
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Server VM (build 1.5.0_11-b03, mixed mode)

Now re-install eclipse and it will run like a charm.

Continue reading »

 

Eclipse seems to break more often than ‘Mr glass’ in Unbreakable. But simply reinstalling isn’t a strait forward task either. When uninstalling, the tool bar breaks (k, thats fixed with a restart), but more importantly eclipse won’t start again. You get a message stating that an error is logged in ~/.eclipse/configuration/1177584905255.log (filename changes).
Continue reading »

Questions? Just ask!

About the author

Hi, I'm Arnold Daniels. How nice that you like to know a bit more about little old me :).

I've spend a big part of my life behind a computer (and not playing games). I've learned a lot about databases, programming and system administration especially on. the LAMP stack (Linux, Apache, MySQL & PHP).

Have a look at what I'm working on now!
© 2012 Jasny · web development Suffusion theme by Sayontan Sinha