Archive for April, 2012

ZSH tricks

Monday, April 30th, 2012

ZSH logoFor a while now I’ve been wondering how to do the equivalent of jot (which generates a list of numbers) in ZSH. It’s pretty obvious that ZSH could do such a thing, but how? Jot isn’t installed by default, and I am lazy. Lazy enough to never look into it.

For a change, I did. Success! Here is one way to do it, which is sort of elegant:
while (( i++ < 10 )) { echo i is $i; }
Do note the remarks on the above link: playing around with the syntax might kill it quickly.
Using repeat might be neater, but that's only when you just need to iterate (and not keep track of the iteration).

Gnome tidbits

Wednesday, April 25th, 2012

Gnome logoJust came across 2 tidbits. One wasn’t enough to post, but two… I had to ;-)

1. Remove annoying “hover over me” scrollbars

(From WebUpd8.)

In the newer versions, Gnome did away with the scrollbar. There is this scroll-hint which, if you hover over it, changes into something with buttons. Which you cannot click, because the exact center of the two buttons (up/down or left/right, depending on vertical/horizontal scrolling) is projected below your mouse.
It is annoying. It confuses me every single time. But, the good news: it is not necessary.

  • Fix 1: sudo echo "export LIBOVERLAY_SCROLLBAR=0" > /etc/X11/Xsession.d/80overlayscrollbars
  • Fix 2:
    1. apt-cache search 'liboverlay-scrollbar', and remember these packages (e.g. as $PKG-TO-DELETE),
    2. sudo apt-get remove overlay-scrollbar $PKG-TO-DELETE.

The search gets around the problem of slightly different package names (version number changed) between Ubuntu 11.04/11.10/12.04.
On a related note: stop putting your version number in the package name!

Split Nautilus window in two for easy moving

(From a Slashdot comment)

Either fix ought to work. The first leaves the packages and modifies behaviour, while the second nukes the functionality. Haven’t tried either yet, curious though.

Ever need to move a file from one place to another?
Open Nautilus (i.e., “Places”). In the window, press F3.
Ta – (explitive deleted) – daaaa!

Wish I had known that sooner.

Thunderbird’s “get mail” button broken?

Wednesday, April 25th, 2012

Thunderbird logoI’m quite happy about Thunderbird (mail reader). Yes, I’ve had my struggles with it (as those of you who follow this blog know), but in the end, it all works.
All?
Almost all.

There is one button, no matter how hard I try, I cannot get to work.
You see, Thunderbird has a “Get mail” button. And I press it and press it, but do I get mail? nooooo….. ;-)

Updating Thunderbird on Ubuntu

Sunday, April 15th, 2012

Thunderbird logoMy Ubuntu 11.04 at home was still running the old Thunderbird. The old, end-of-support-almost-reached Thunderbird. Time to fix that. Lessee, open Thunderbird and look for “update”… nope.
Hmms, get updates for Ubuntu then? … nope.
Hmms. Okay, let’s do this the hard way. Download the new TB, run it… hey, that looks a lot like my old TB! “Help > About”… it is my old TB?! WTH?!
Okay, turning to the Google for more updates.
Aaah, here’s how it’s done: tell your system updater to include packages from Mozilla, and then it should work.
Test one: err, nothing to update?
Test two (a few days later, different package-address included): still nothing??
You know what, this is silly.

And just when I was ready to give up:

  • sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
  • sudo apt-get update && sudo apt-get install thunderbird

Apparently, there are all sorts of mozilla-related valid words (e.g., combinations with “security” and “release”) you can enter after “ppa:”. Some of them work , but don’t update your system. Such as the aforehinted mozilla-security-ppa and mozilla-release-ppa. This one does.

@Mozilla: is this really necessary? Just provide some sort of warning with pointer to the right location in the non-updating PPA’s, would you?

Backblogging again

Sunday, April 15th, 2012

Things that happened recently:

  • The Queen visited Luxembourg, and the Univ.
    I was there for some of it. The Queen sat in a direct line between me and the photographers. So yes, there are pictures. Yes, I am visible in the background. Yes, there is at least one published photograph of me yawning or looking away or something equally embarrassing. And no, no links. If you want to see embarrassing material, go find it yourself.
  • Easter in Poland.

    Seriously: a White Easter? I can just hear Bing Crosby sing it: “and may all your Eazzterzerzzzz / Be white”. Apart from that: great fun to meet Agnieszka’s family. Her brother & sister-in-law are great people — actually that goes for the whole family — and her nephew and niece are adorable. Spent a tiny amount of time in Warsaw, most in Gdansk. It was soo cold there. And they don’t even eat three eggs for Easter?! Well I did anyway :)
    Which reminds me: review! (was working on it there, but didn’t finish yet)

A Gig ain’t what it used to be…

Sunday, April 1st, 2012

The other day, my desktop at the office got a memory upgrade: from 4 to 16 gig. So, after this glorious update, I booted my computer and clicked the system properties to see how much memory was reported. 14.8 Gb.
Le huh? 1.2 Gb evaporated? Still quite some improvement, but whatever happened to the 1.2 Gb? Local helpdesk: “that’s normal nowadays”.

??

In a second story: I bought another USB stick of 32 Gb. Plugged it in just now, and checked available disk space. 29.8 Gb.
Le poep?!?! 2.2 Gb down the drain??

So guess what:

  • 16 * 1000 * 1000 * 1000 = 14.9 * 1024 * 1024 * 1024
  • 32 * 1000 * 1000 * 1000 = 29.8 * 1024 * 1024 * 1024

This is probably old news to some people, but it’s news to me. It feels like underhanded tactics. I feel robbed!