does shopping make you feel good?

July 18th, 2007

You hear all kinds of things about what shopping means to people. That it's comforting, therapeutic, liberating, exciting, or just plainly makes you feel good. While some of the epithets may be true, I cannot agree with the last one.

Of course, there are different "kinds" of shopping. But I mean the very special kind, the kind of thing where you go out and buy something you've wanted for a long time, or needed for a long time. It's supposed to be a relief and delight to get it. That kind of shopping.

Well, getting the item does feel good. But shopping for it doesn't. I can't stand that conversation with the salesman. My focus is that I want to make the best possible deal, I'm trying to concentrate hard to cover all the angles and foresee every possible scenario that may occur with the product. But that doesn't mean I know what to say. I think of one thing to ask, then another, then I draw a blank. I stand there for a while listening, hoping the guy has more stuff to say, anticipating another question to ask. Quite often, the guy wasn't really drawn into the conversation either (which I'm not very good at), so he answers my question and then he's waiting for me to pick up the thread again. Which I struggle with. It's really quite a stupid situation. I don't enjoy it in the least.

So that's one thing, conferring with the salesman. Then there's actually buying stuff. I just don't feel good about that either. I always feel guilty for spending the money. And the more it costs the more guilty I feel about it. As if anyone at the store would care enough to judge me for it, but it does make me feel uncomfortable.

Buying stuff online is actually a nice change. I don't have to talk to anyone. :)

eliminate mouse wheel clicks

July 14th, 2007

As much as the mouse wheel was a good idea, making it a clickable button was a *bad* idea. The mouse wheel is more sensitive than the left and right buttons, and it has too many jobs. Newer mice also do horizontal scrolling, which makes it even more flexible. Pushing down the mouse wheel to click has always been uncomfortable, for the simple reason that it *moves* in other directions beside down, it's not static.

When the mouse wheel was introduced, it was de facto a third button, and so the "natural thing" was to just make it that, adding to the scrolling functionality. Of course, the old Unix standard of mice also had three buttons, so that fits.

This button is important, because it's the Unix paste button, you use it all the time. In addition, Firefox made it its own, for opening links in tabs and for closing tabs. It has always bugged me that I had to use the mouse wheel button for that. Not enough to actually do something about it, but enough to bother me. :lazy:

So today I got the Logitech MX 400, where the mouse wheel button is actually harder to press in, and I decided to finally fix the problem. So here's what you do.

First you should know how many buttons your mouse has. You count every button, you also count scrolling (back, and forth, each count as a button). For example, my mouse has 9; the front two, a mouse wheel with 4 directions of scrolling, the mouse wheel button, and two side buttons. If you have some extra side buttons to use, you can use one of these as the paste button.

But you need to know which is which. Here's how:

$ xev

ButtonRelease event, serial 29, synthetic NO, window 0x2c00001,
root 0x61, subw 0x0, time 8209381, (102,133), root:(946,186),
state 0x100, button 1, same_screen YES

Here I started up xev, which brings up a little window. It prints lots of output about mouse and keyboard activity. When I move the pointer into the window and click, I get a piece of output like the above. Here I clicked the left front button, which is called button 1. In the same way, I find out that the mouse wheel button is number 2. While the side button I want to use as paste button is number 8.

Knowing this, I can remap the two buttons, switch their positions. Like so:

xmodmap -e "pointer = 1 8 3 4 5 6 7 2 9"

Here the numbers are sequential, except that 2 and 8 are swapped. Run this while X is running and you get the desired effect.

To make this permanent, you need to add it to your X session script. KDE is not very nice, because it doesn't give you an easy way to do it, so I just added the line to the startkde script (ugly hack):

...

xmodmap -e "pointer = 1 8 3 4 5 6 7 2 9"
# finally, give the session control to the session manager
# see kdebase/ksmserver for the description of the rest of the startup sequence
...

does ogg suck or does ogg support suck?

July 5th, 2007

So ogg is well known as the open format for audio and people seem to love it, it has broad support. To be precise, ogg is just a container format, so just the fact that a file is an ogg file doesn't tell you much more about it than a zip file tells you about its content.

On the video side of things, noone seems to use ogg. Even though it is an open and by all accounts free format, I very rarely come across ogg videos. And sadly when I do, often they are broken. Since Theora seems to be the most used codec for ogg video, I'm assuming they're all encoded in that format (I know I've never seen an ogg video not in theora, although I don't make a point of checking).

Common symptoms:

  • Timer is completely bonkers, saying a 20 minute video is several hours long and whatnot.
  • Video stream has lots of bugs, frame freezes.
  • Audio/video sync can be way off.

Case in point, download this video from Akademy. In mplayer and vlc alike the timer is confused, and the video stream freezes as well. This is the kind of problem I've seen a lot of times with ogg videos.

Now it may be a production mishap for this particular video. But I've seen these bugs with ogg a lot more than with other formats. In mplayer, even if you reindex the stream the timer still doesn't get it right. It tells me the video is 412:29:15 long.

So what is it? Is ogg/theora busted or is the implementation busted? Is the encoder so bad that it's impossible to produce a video without bugs? Or is the decoder buggy?

why are we all wearing suits?

June 30th, 2007

The suit is, with astonishing regularity and unbridled universality, the mode of attire for "significant" social occasions. Sorry, for males. Dare I ask what merit has granted this style of clothing the unquestioned acceptance and unique adoption? Is it the aesthetic quality? Is it the economic feasibility of acquisition compared to richer local traditions which value craft and ornamentation? Is it some kind of great compromise where disputes over our regional values have produced a lowest common denominator?

brad_pitt_suit.jpgSignificantly, Hollywood has given the suit an image outside weddings and funerals that represents top class fashion and coolness. More so than anything, it suggests to us that given the choice, Hollywood characters would choose to wear a suit. Why would suave characters whose plot does not dictate unto them a dress code choose to wear a suit, a style of clothing associated with private family occasions and tedious business meetings? Exactly, it doesn't fit. And I think Hollywood, not necessarily by itself, but certainly as a medium, has helped create that image of the suit as desirable clothing. It's mythological. Most people don't look anything like Brad Pitt in a suit.

Why do we wear a suit? It's not the least bit comfortable. It's not cheap. It doesn't make you feel liberated in any way (despite James Bond running around roof tops in it). It's a huge hassle to clean, because you can't just wash it. And it's the world's least customizable bit of clothing: every suit looks exactly the same. It leaves zero room for individuality. And we don't even look good in it. Unless you have a tailored suit, most people look rather awkward in a suit, and far removed from their normal style of clothing and their natural unrestrained motion. Like these guys...

men_in_suits.jpg

What about women? They are doing much better. They don't have this narrow mindset of one outfit that must be worn. Ask yourself this, in any formal social context, who is more interesting to look at, with respect to dress, the men? Who all look the same? Or the women?

what it is to be a geek

June 28th, 2007

The word geek gets thrown around a lot, with a slightly negative connotation. Actually the degree to which it is a negative term is determined by the social circle in which it is uttered. To some it is an insult, to others it's just a fairly neutral classification.

In any event, the term geek (as with many such labels) is a very bland and generic thing to call someone. What it means is a person who enjoys doing something on their own. Not a terribly discriminating term, is it? So if you're a person who can't stand to be alone for even a minute and possesses no creativity as to what you can do when people aren't available to spend time with you, then you are not a geek.

The geek classification often is linked to excellence in some field. If you spend a lot of time on something, which makes you a geek, you inevitably get quite good at it, which again cements your legacy of a geek. Of course, there's no other way to achieve the same thing, so if you want to excel at something, you have to spend a lot of time on it, and that amounts to an achievement.

For example, if you spend a lot of time learning a foreign language, then you're a language geek. If you spend a lot of time ice skating, that makes you an ice skating geek. So whatever you do to a certain level, you're a geek for doing it. And if you don't do anything to the extent that it establishes a pattern for which people call you a geek, then you won't be a geek. For instance, if you do *a lot* of different things for short periods of time, but never do anything for a long time, then won't be a geek. But, of course, you never do anything long enough to be good at it, so you don't accomplish anything.

If you think about when it is that people get assigned this label, it is precisely when they are engaged in doing something that doesn't involve the person announcing this fact. As such, it is perfectly possible to be a geek for doing something *with* people, just as long as it doesn't involve *everyone*. For instance, role playing geeks play in groups, and crackers (no, not white people called "crackers" by black people, I'm talking about the kind of crackers who break into computer systems) also associate with other crackers, because otherwise they would have no recognition for what they do. This is only a manifestation of the fact that people who are interested in something naturally seek out other people who are also into the same thing, to exchange information. It makes sense. So my first definition is actually too narrow, being a geek is *me* doing something that doesn't involve *you*.

So was the term geek originally a protest against exclusion? Was it a term that means why-can't-I-be-in-your-club? It might have been. Of course, not necessarily the word geek itself, words often originate in unexpected and random ways, but there are many words in many languages that mean roughly the same thing as geek.