Glipper: A Fix to Ubuntu Clipboard Woes

KDE ships with Klipper by default, while Gnome has no built-in alternative. Though I prefer a little history, the absence of a clipboard manager isn’t the worst thing in the world. However, xclipboard forgets what you copied if you close the application from which you were copying, which is a serious annoyance and a usability issue for new as well as seasoned Ubuntu users.

Luckily the situation is easy to rectify. sudo apt-get install glipper, right-click on a panel, click “Add to Panel,” select the entry named “Clipboard manager” and click “Add.”

If you want to paste something other than the currently active copied text you can either select it from the Glipper icon or, if you prefer a more keyboard-based approach (like me), you can press Ctrl + Alt + C to pop-up a list of available items. Of course you could change that keyboard binding to anything you like.

The default settings are fairly sane, so unless you want to keep more than the last 20 copied items in memory you can leave it be.

Comments

Printers Waste Ink

Quelle surprise,” you might exclaim sarcastically, and you’d be right. However, as it turns out the waste is worse than you might expect. A few head cleanings and you’ve wasted more than twice as much ink than what comes in a single cartridge.

In round numbers, the cylinder is 40 mm ID and the cap is 20 mm tall. Volume of a cylinder is πr2h, so you’re looking at 25×103 mm3 of waste ink.

Seeing as how 1 mm3 = 0.001 ml, the tank currently holds about 25 ml of ink!

The printer has six cartridges. Assuming head cleanings drain an equal amount from each cartridge, that’s 4 ml apiece. Given that the large OEM ink cartridges come with 11 ml of ink, you can do the math: a third of a cartridge of each color just for head cleanings so far.

Assuming that the cartridges are at or around 11mL in my older Epson Stylus Photo R220 model as well, the amount of waste is likely very similar for my printer. I can’t find any indication of measurements, whether cubic or otherwise, on my cartridges: presumably because you’d realize just how little there is in those cartridges if it were indicated properly.

Combined with idiotic default settings that make you waste ink and paper, and ludicrous region restrictions that may make you waste ink, owning printers sure amounts to an awful lot of fun.

Comments

Dealing With cPanel: Setting Up a 301 Redirect to Your Main Domain And Preventing .htaccess Hell

cPanel is surprisingly ill-suited for managing domains. Rather than treating each domain as a separate entity, you get one main domain and various so-called add-on domains. The most annoying aspect of this is that it always creates a subdomain when you add a new add-on domain. There should be no such thing as an add-on domain, just a bunch of domains. cPanel has some features that help you work around these defects, but I wasn’t too thrilled with those. It now seems to automatically redirect the www-subdomain to your no-www domain and you can easily set up subdomains to redirect through the interface, but it doesn’t satisfy me.

Setting Up a 301 Redirect

Instead of having to bother with a plethora of settings in cPanel itself, I came up with the following to stick at the top of .htaccess. A quick look around on the Internet brought up Fayaz Miraz’s blog, but while the solution suggestion was close, it misses one crucial aspect: it only redirects from the main page as far as I can tell. This is fixed easily by the addition of $1 (i.e. everything that was added after the main page).

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{HTTP_HOST} !^fransdejonge\.com$
RewriteRule ^(.*)$ http://fransdejonge.com/$1 [R=301,L]

</IfModule>

Simply put, it matches all possible routes of approach (whether through www or through a subdomain of another domain) and if it’s not fransdejonge.com, it will 301 redirect to fransdejonge.com. The L means no further rewriting will occur after that rule. Mostly because it would just be inefficient, and partially because something else further down the line might mess things up.

Preventing .htaccess Hell

Another problem is that cPanel automatically creates a /public_html/addondomain directory. This is bad, because /public_html already contains a .htaccess file for the main domain. When accessing /public_html/addondomain, it would first parse the .htaccess file in /public_html before moving on and overriding it in /public_html/addondomain, and that’s assuming none of the rules in /public_html make anything go awry!

To prevent this kind of nightmare from occurring I took the simple precaution of creating a new directory /domains. This domain is contained in /domains/fransdejonge.com, for instance, and any other add-on or subdomains can reside in their own /domains/domain.com directory to prevent any added load from needlessly parsing .htaccess files.

Comments (1)

New URI

After nearly five years of being hosted at a subdomain of Lowter, this blog is now hosted on my own server. I would like to extend my gratitude to Ethan for hosting me all those years.

Comments

Feminism and Atheism

It’s amazing how often I see the same information posted on both the feminist and atheist blogs I follow. Religion is not good to women.

On a very related note, I would highly recommend anyone to read Infidel, the autobiography of Ayaan Hirsi Ali. These issues all come down to treating people equally and fairly regardless of sexuality, gender, race, religion or any other reason, but religion is often in direct opposition with those values. For illustration I’ll quote the devil of whom I just spoke:

Feminists need to be wary of the celebration of “cultural diversity” unless they want to inadvertently celebrate polygamy, child-marriage, marital rape, honor killings, wife beating, selective abortion of female fetuses and other traditions that are now legitimized in the name of culture.

To end this quick post I’ll link to some of my favorite atheist blogs.

  • Pharyngula, no doubt well-known to many. The amount of time he spends debunking quacks is to be admired – or to be pitied. Regardless, his blog is intelligent and provocative and an excellent source of rationality.
  • Friendly Atheist isn’t as entertaining as Pharyngula, but heck, not everything can be.
  • Heaving Dead Cats also hails from the US and telltales of living in a society that sounds like the 1950s to my Dutch ears.

I’ll end this post with Bill & Ted’s idiom, aka the Golden Rule: be excellent to each other.

Comments

Pancake Visions

Some of you may be aware that I often imagine things in random shapes that other people have trouble envisioning, sometimes even after I draw them out. On June 3rd my wife and I baked tiny pancakes, and here’s what I saw in two of them.

The first pancake that managed to attract my attention was an evil cat.

A face in a pancake.

This pancake also happened to be on the plate while taking a picture of the evil cat one, so I figured I’d demonstrate that I do indeed see something in just about anything.

Note, these are animated SVG images. At the time of writing they only render correctly in Opera and Webkit browsers, whereas Gecko displays a static image. Internet Explorer is served with fallback PNGs.

The SVGs now also render correctly in Firefox 4.

Comments

What Do Dinosaurs Eat for Breakfast?

It was a nice day in spring, almost 20 years ago. There was a dinosaur exhibition traveling around the world and for a couple of months it was closer to home, somewhere in the Netherlands. I don’t remember the name, the location or all that much about the exhibition at all. I do have some distinct memories of the fossilized bones of an apatosaurus (which my spell checker wishes to “correct” to brontosaurus), but I’m not quite sure if that was at the same exhibition. To cut the reminiscing about which bones belong to which exhibition short, however, let me continue with the story.

We got out of the car and walked to the entrance of the location hosting the dinosaur exhibition. The large banners showing pictures of artist’s impressions of dinosaurs and pictures of dinosaur skeletons already excited me, so I probably jumped around and said something like “Mom! Dad! Look, pictures of dinosaurs!” The ticket office was as boring as ticket offices patently are, but this didn’t dim my enthusiasm. As I struggled not to embarrass my parents by screaming loudly and enthusiastically about the dinosaur treasures awaiting us, my father finished buying our tickets. I probably still gained free entrance to most museums, exhibitions and the like in those days.

As we entered the exhibition, we didn’t immediately hit on all the bony goodness of fossils. It was merely a fairly boring main hall from which you could go in several directions to actually enjoy skeletal delight. However, there was a fake life-like tyrannosaurus rex at the other end of the hall. Although we’d come there to enjoy vertebrate fossils, I was quite willing to give reconstructions a chance, and besides it was the most real thing we’d seen so far. I asked my mother if I could enjoy the anonymous’ artist’s work, got permission, and sprinted toward the t-rex to gaze at the marvels of reconstruction in what was supposed to be some kind of natural (plastic) environment.

The first thing I noticed, while still running toward it, was that the skin looked surprisingly much like real lizards. I had expected it to look more plasticly, perhaps more similar to my own toy dinosaurs. I slowed down somewhat because the t-rex was starting to tower over me. I doubt it was any more than 1/5th the size of a real t-rex, but I was quite small myself. But before I had slowed down enough to stop the t-rex turned its head toward me. I froze. I thought a thousand things at once in the following less than half a second. Weren’t dinosaurs extinct? But this one looked awful realistic; that would explain a lot. The WNF was always talking about animals that could go extinct, is this – as it lowered its upper body toward me my mind entered a blank. Fight or flight kicked in. You want to fight? I’m here to save your ass from extinction, pal, so you better beha- the t-rex opened its mouth and roared. I doubt I ever ran as fast as I did right then and there. As I sought cover behind my parents the t-rex stopped roaring. “Mommy, daddy, that t-rex-” I said while I pointed at it with a shaking finger. My parents laughed, and both took one of my hands. My mother pointed out that the t-rex hadn’t come after me, and it had stopped moving or making any noise.

I wasn’t as eager to visit the exhibition anymore. That creepy dinosaur was guarding the entrance hall. However, my curiosity got the best of me, so it didn’t take my parents long to convince me to look at the mechanical dinosaur some more. After I carefully positioned myself behind my parents, we walked toward the theropod. When we were close enough, the t-rex repeated his earlier shenanigans in the exact same manner, a clear sign of a machine; unless by some fluke this were an autistic carnivore. After realizing that it was motion-triggered and only had a limited range of motion, I silently gawked at the awesomeness of the creators of the realistic t-rex.

Comments

What Is a Malamanteau?

The following article appeared on Wikipedia for a very short time due to a recent xkcd comic. It’s a reference back to Language Log, which references xkcd sometimes, but the reverse seldom happens.

A malamanteau (plural malamanteaux) is a neologism for a portmanteau created by incorrectly combining a malapropism with a neologism. It is itself a portmanteau of malapropism and portmanteau. In a less strict definition, a portmanteau of a malapropism with another word can also be considered a malamanteau. The contained malapropism must be typically a very common one, probably most people are not aware of, in order to be able to regain the meaning of a malamanteau.

A malamanteau often is created when somebody tries to use a neologism (alternatively, an idiom) but mistakenly confuses a word with another one. However, unlike a malapropism or an eggcorn, the fumbled word is not completely replaced, but merely transfixed to the new one. A famous example is: “misunderestimate” which was popularized by the 43rd President of the United States, George W. Bush. Probably it was intended to be “underestimate” but mistakenly jumbled with “misunderstand.”

Examples

  • Somebody describes his misunderstanding of what someone was saying by stating, “I misconscrewed it up.”
  • Somenone explains his inability to talk while being upset by saying he was “flustrated.”
  • A meaningful malamanteau is “ambiviolent,” as in: “Beatrix Kiddo in Kill Bill was ambiviolent. She didn’t know who to kill first.”

I was going to write more about it when I made this draft, but by now it’s two weeks later and I’ve lost interest. Booyah.

Comments

Intelligent Alien Life Does Exist, Otherwise They Would Have Contacted Us

This post is recycled, and was originally published on my former weblog on Saturday 2005-02-26 at 18:08:45. I tweaked some grammar and spelling here and there, but I resisted the urge to rewrite this entry almost entirely. I did not, however, refrain from commenting on myself. Sensitive souls beware: I added some brand new explicit content.


This is the only signature I had which really liked. [I guess I must really, really like it, for I still use it.] It looks like a quote from someone famous at first sight [(of course famous by no means implies not stupid)], or just a good old expression (you know, like “an apple a day keeps the doctor away”), but it is entirely a product of my brain. [Whoopee.] I don’t find that so very surprising all by itself; in what may be a form of narcissism, I say things I consider quotable quite often. [Saying quotable things sure is narcissistic. What's that? You meant I consider things I say quotable quite often, did you? Very well then, carry on. On a very related matter, I'm not so sure if stupid jokes like You've got the first pickle (when offering a few pickles) as a play on first pick is all that quotable, though.] But still, this particular “quote of my mind” has a sort of uniqueness over it. [Oh boy. If that means it's the magnum opus of my brain, I'm fucked.]

You should also know something about my browsing behavior to understand a bit about what happened when the quote came to me. I seldom browse with less than four pages open. [Even at the time that was a lie and you know it. I bet you rarely managed to browse with less than 10.] I basically just open what I find interesting and then read what I have opened one by one, or close it quickly if I see it is not what I expected it to be. [Most people, on the other hand, close pages they don't want to see as slowly as possible.] I also start writing a reply to something, to interrupt it by going to some other page, after which I will continue writing the reply. [You were also doing that while writing this post, weren't you?]

The situation where the general idea came into my mind was like this. I was filling in profile information on some site (I don’t remember which one, but it doesn’t matter) and I came to the signature part. I could use the quote which I made up with my Chicken avatar (“The chicken and the egg came at the same time”), but I wanted something new. [I'm sure that everybody knows what your Chicken avatar looks like.] Something catchy. So I decided to go to another site. Meanwhile, I could think about my signature.

It was quite a strange site I visited. A UFO related site, where they argued that UFOs actually were some kind of new technology from the Third Reich, whose descendants still resided on Antarctica. Utter nonsense and therefore enjoyable. [The perfect way to judge whether something is enjoyable.] But then suddenly this thought came into my mind, because of the combination between World War II and UFOs. [Suddenly, I wanted to kill myself.] Why haven’t aliens contacted us? If they’ve observed us they must have noticed the bloodbaths of Alexander, the expansion and fall of the Roman empire, the Conquistadors, Napoleon, and most important, World War II. So yes, obviously alien life is intelligent; if they weren’t, they would have contacted us. Intelligent alien life does exist, otherwise they would have contacted us. [Amazing!]

And there it was. The perfect signature. I had exactly the kind of bad quote I wanted my signature to be. I still like it. [I guess I can live with it for a while longer. Perhaps I should update it. Space dinosaurs do exist, otherwise they would not be extinct on earth.]

Comments

Opera and Link Targets

If you’re like me and you aren’t particularly fond of sites opening in new tabs without your explicit command, you might be interested in activating Opera’s Ignore Target setting. This setting “Unfortunately … also disables the window.open() method, breaking the functionality of many sites,” so you might prefer to utilize JKing’s UserJS which stops most links from opening in new windows.

On the other hand, you might prefer all links to external sites to open in a new tab. I recently wrote a script that does just that for someone on the MyOpera forum.

Comments

Older Entries »