Older blog entries for pedro (starting at number 93)

home, pgdn, pgup, end buttons not working in FF? it's a feature, not a bug.

For a while now, my home, end, pgup, and pgdn keys have not been working in firefox. It's been very frustrating. Turns out, it's caret browsing. It's a little too easy to turn on if you ask me.

Syndicated 2013-01-24 13:44:35 from off by one

Who wants serial killers when you can have much faster parallel killers? With Centronics ports!

Enjoy this treasure trove of nerd jokes. From the usual gang of idiots.

Syndicated 2013-01-17 23:09:20 from off by one

paper cut: adding nautilus folder bookmarks in Ubuntu 12.04

You used to be able to drag and drop folders to the "bookmarks" pane in Nautilus... but you can't any more. At least, I can't. However, you can add bookmarks using control-D -- from within the folder you wish to bookmark.

Syndicated 2013-01-03 16:16:52 from off by one

hey, I should do^H^H^H^H see if someone has done that

So you're diving through folders, looking for some files or data. Of course you're using Nautilus since you're running GNU/Linux and Gnome*. You get to your file, "ah ha, you found it" only to realize that you really wish you had a command line to slice and dice the file. What you'd love is to be able to just "open a terminal here". I just had that experience, and like usual (thanks to the long tail), someone else has already done this. If you're using Ubuntu (or possibly Debian) you can simply 'apt-get install nautilus-open-terminal'. Enjoy!

* No offense implied to anyone else, I'm just being silly.

Syndicated 2012-12-19 00:06:46 from off by one

Sometimes I can be a little too sensitive...

Case-sensitivity is a given in most *NIX and programming environments. But in your editors and tools, case sensitivity is a double-edged sword. Sometimes it's nice to have case-insensitive search so you can find every matching sequence, but just as often I end up getting "too many hits". And doing find and replace insensitively can be really annoying. If only there was a smarter way to manage case!

There is. vim has a neat feature called "smartcase" that searches insensitively if you use all lower-case, but searches case-sensitively if you include any capital letters in your search. So,

/foo

... would find "foo", "Foo", "fOO", etc., but

/Foo

... would only match on "Foo".

To enable smartcase, you also need to enable case-insensitivity. You can put this in your .vimrc:

set ignorecase " Do case insensitive matching

set smartcase " I'm sensitive, but not too sensitive.

However, if you want to do this on a case by case basis, you can do this in vim at runtime with :set ignorecase and :set smartcase. (:set nosmartcase and :set noignorecase will undo the option.) Happy hacking!

Syndicated 2012-10-16 19:05:03 from off by one

groan

Chemists at UCLA experiment with the reagents of the University of California. *badaboom*

Syndicated 2012-10-12 14:09:54 from off by one

one less paper cut

As a vi user who codes in a GNOME environment with sloppy keyboard habits (you'd think there wouldn't be that many of us, but... surprise!), I hate the GNOME default of having F1 bound to the help menu. I'm constantly hitting F1 when reaching for ESC, so I regularly get annoying help windows popping up.

For a long time, I assumed that it was the top-level GNOME help document -- you know, like "how to use GNOME." I'm still not sure if this was ever the case. But today, I noticed that it's actually showing me the help file for GNOME Terminal. I scoffed that I would actually care to read the help file for my terminal emulator.

The irony is that if I had read that annoying help file, I might have actually found the answer to my problem. You can disable it (and set a lot of other nice shortcuts) under Edit | Keyboard Shortcuts.

Syndicated 2012-10-11 17:26:21 from off by one

84 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!