Vimperator – a firefox add-on


For my daily text editing and programming work, I’m using vim. Great editor suitable for almost every purpose.

There is a Firefox add-on out now for changing the browser interface to behave like a vim interface. It advertises itself that you can even throw away your mouse. First I was curious if that’s gonna even work, but it does and I’m very happy with it. Although, I’m still using my mouse for browsing. It saves time not touching the mouse in a few cases, though. A few key features I use every day:

Following links

You press the ‘f‘ key and vimperator hints all links on the current webpage. No you press either the first letters of the link label or a number associated with the link.

Navigating on a website

You can just use the normal arrow keys for browsing, but there is more. As usual you can use ‘j‘ and ‘k‘ for scrolling up and down, as well as ‘space bar‘ for jumping a page down, or ‘gg‘ for jumping to the top, or ‘GG‘ for jumping to the bottom.

Text editing

Remember editing text areas without using your favourite editor? The times are over: Press CTRL+i in insert mode (you’re automatically in insert mode when inserting text on an input field or text area) and vimperator fires up a vim. Very handy for editing large amounts of text in textareas.

Opening URLs

Just press ‘o‘ to open a new url, or ‘O‘ to use the current URL. You can easily open the url in a tab by using ‘t‘ or ‘T‘ instead. You can use yank and paste as well. Just pressing ‘y‘ on an opened web site, yanks the URL. If you’re already a URL in the buffer, press ‘p‘ and the browser opens the link (like the middle mouse click). Very handy.

You can also use tab for completing commands or URLs. For example you want to open the website you opened yesterday, but you only remember a few letters, You type: ‘o‘, enter ‘foo‘ and press tab. Vimperator shows a list of URLs matching your string. You can now tab and enter to the match and open the URL.

Navigating between tabs … err… buffers πŸ˜‰

Jumping between tabs is like jumping between buffers in vim. Use CTRL+n or CTRL+n for jumping to the next and previous tabs. It’s similar to jumping in the history of visited pages: use CTRL+i or CTRL+o for back or forward in the history.

That are the commands are use almost everyday for browsing. There is support for more features like macros and quickmarks and so forth. So if you’re using vim everyday, give it a go. IMHO it’s worth the speed for browsing you get.

Before I forget: In case you need help to the features, use ‘:help‘ as usual for browsing the online help.


The skipper and the fish

I watched Trawlermen on SBS yesterday. The documentary is about the work of a number of trawler crews based in Peterhead/Ireland. I have two quotes from the documentary which I found really interesting. It can be applied probably to any other business including writing software.

The skipper said: “Without my crew I’m nothing, because I can’t catch the fish all by myself.” The crew in turn said: “We have to trust the decisions made by the skipper. He leads us to the best fishing grounds which in turn brings the most money for the fish.”

So for now, all the people out there who think they can always do it better on their own, think about this documentary.

Bad News are Good News


Playing on is fun.

I’m playing on from time to time. It’s a funny online game of a prediction stock market. People creating questions for upcoming events and you can bet how this event will proceed in real.

For example: Who will be the new American president? Obama or McCain? Now it comes to all the news who’ve been floating around. Who will make it. That pushes the chances between Obama and McCain to various percentages. Say, for example, you startΒ  at a 12% probability that Obama makes it, while everyone sets on McCain. The more likely Obama will win the race the more money you will make if you sell your stocks. If you wait until the end when the question is settled, you earn the most money.

But don’t forget: It’s all play money πŸ˜‰

GAH – The stupid online postage stamp

I ordered a paket of shoes from an online shop. Now I want to send them back and the online shop uses an automatic postage stamp provided by DHL.

The yellow fields in the top right corner are buttons which trigger a 'print' on your standard printer.

The yellow fields in the top right corner are buttons which trigger a

You can download a PDF, which can only be opened by Adobe Acrobat or any PDF reader who understands Javascript. What you don’t expect, are Javascript buttons in the upper right corner, which actually start a print job. I mean, you’re looking at a document with a reader, not an application to start print jobs. That’s why the ‘print’ button of the reader application is for. Isn’t it?

So, all of a sudden, I clicked randomly in the PDF to get rid of the stupid ‘Muster’ letters, which make it difficult to see the actual postage stamp. After I closed the reader, I noticed that there happened something. The printer was already printing like hell and the terminal showed me the following debug output:

Auftrags-ID ist milhouse-107 (1 Dateien)
Auftrags-ID ist milhouse-108 (1 Dateien)
Auftrags-ID ist milhouse-109 (1 Dateien)
Auftrags-ID ist milhouse-110 (1 Dateien)
Auftrags-ID ist milhouse-111 (1 Dateien)

My own stupidity

signEven as an experienced Linux user I sometimes fall into traps which reveals my own stupidity.

I tried to setup my smime configuration today to use it with my mailer. The command involved in it was smime_keys. This command had a little bug. A small workaround was posted on the debian bugs mailinglist:

vsauer@zaphod: ~ > ln -s . "~"
vsauer@zaphod: ~ > l -tr "~"

The workaround just creates a link to your own home directory to fool the smime_keys program (What a stupid hack actually).

What happened now, was the fact, that I stopped fixing the not working smime_keys program, because I had other things todo. I removed the link I created by using the workaround above:

rm -rf ~

Everyone who know how to interprete this command can laugh now πŸ˜‰ Fortunately I was lucky – phew.

Blogged with the Flock Browser

Tags: ,

Nonsense Article: Asylum Debunks 10 Gross Food Myths – Asylum

by JD LasicaI stumbled over an article today: Asylum Debunks 10 Gross Food Myths – Asylum | For All Mankind.

Point 5: “Don’t swim for at least a half-hour after eating.” and further:

While your mother led you to believe that digestion diverts blood flow and oxygen from the limbs to the stomach — increasing the likelihood of cramping up and potentially drowning — today’s accredited experts agree that the body holds more than enough oxygen to service both the stomach and the skeletal muscles.

What they’re not telling is: After eating out in a snack bar, you don’t want to do your laps in the swimming-pool. If you do, it can end up in indigestion, cramps or throwing up.

I propose that the authors of this article eat a steak before doing 100m in the swimming pool as fast as they can. I guess they’ll literally think this through πŸ˜‰

Blogged with the Flock Browser photo by by JD Lasica

Tags: , , , ,