Category Archives: I Love Open Source

Guake

In the first installation of this series I told you, that I think that the command line is the second important tool, to get you faster with your Ubuntu usage. Actually the command line is the most powerful toy you can use in the Linux world. Today I want to show a terminal emulator that has its root in the ego-shooter Doom.
Most Ubuntu-Rockstars have always a terminal window opened, that enables them to punch in some useful and time saving commands. The drawback of this method is that the terminal is just another application on the desktop and could be hidden behind some different app or could be minimized, that you have activate it via the window list.
An nice alternative is Guake.

Install It

To install Guake you have to download this package from their website and then install it via the Gedebi installer. As with Gnome-Do you should add Guake to your autostart list.
After you installed Guake you should hit the systray icon with your right mouse button and choose preference. In the preferences dialog you should set the hotkey for the roll down. I use the Menu-key, because I have no further use for it.

Use It

You can imagine Guake like a roller shutter that covers the other windows as you hit the hotkey.

Now you are free to type in some commands.
As soon as you hit the hotkey again Guake rolls up.
In contrast to Gnome-Do Guake is not of much use unless you are familar with the command line. If you are not using the command line already, you should change that as soon as possible. You can find a short introduction here and a useful sheat-cheat here.

Discover the opportunities and rock Ubuntu today.

GNOME-DO

I want to write a little series about how I use Ubuntu and what I got used to speed up my work with Ubuntu. This article is written for people who have just migrated to Ubuntu or Linux and as well for more experienced users. These series is based on my personal experience.

The first episode will be about Gnome-Do. Gnome-Do speeds up my work like no second application. At most the command line is as useful for me.

Install It

First you have to install Gnome-Do.
First you have to add

## gnome-do
deb http://ppa.launchpad.net/do-core/ubuntu hardy main
deb-src http://ppa.launchpad.net/do-core/ubuntu hardy main

to your “/etc/apt/sources.list”. After that you type in the commandline:

sudo aptitude update
sudo aptitude install gnome-do gnome-do-plugins

Use It

To open the folder “Businessplan” (screenshot) on my computer I just have to press WIN+Space, type “bus” and then hit Enter. Boom, the folder opens immediately. The same way you can start programs, twitter, create Tomboy-Notes and much more. Best you add Gnome-Do to your autostart today.

Discover the opportunities and rock Ubuntu today.

Pyjamas Open Source Framework – and little things I learned about it.

I am currently learning Pyjamas, the Python to Javascript compiler. This means writing Javascript without knowing Javascript.
I am at the very begining of my journey. As the title suggests, I will post tiny bits of what I learned about Pyjamas and what I think could be useful to others, too.
This is a living post, I will add content when I learn something new.

How to place the content of an Pyjamas app everywhere you want

Create div in your html-template, where you want to place your app

<div id="my-app"></div>

Then call the div in your python code like this:

RootPanel("my-app").add(MyWidget(.....))

How to connect a button to a method in the same class

If you want to connect a button to a method:
Don’t do:

class Example:

  def __init__(self):
    ...
    self.exButton = Button("Add", self.exMethod)

    ...

   def exMethod(self):
    ...

Instead do:

class Example:

  def __init__(self):
    ...
    self.exButton = Button("Add",self)

    ...

  def onClick(self, sender):
    if sender == self.exButton:
    self.exMethod()

  def exMethod(self):
    ...

This way should not only used with buttons, but it should also used with any other widget from Pyjamas.

Update Your Pyjamas Installation

If your are using Pyjamas-0.5 update to to the newest version of Pyjamas!
I had some trouble to get the web2py example running. At the the end it came out the problem was Pyjamas-0.5. So update now!

Now back to learning…