Archive for 2006

milk after the day

November 8th, 2006

Jerry is absolutely right. It terrifies me. I was gonna have some cereal today and for some reason or another it's been a while since I had milk. I still had a carton in there, pretty full. But when I saw the date on it, it was two days past the expiration date. I actually glanced at the container, saw the date, put it back in the fridge, went back to my room to check the date on the computer and decided "no way". I've seen bad milk in the past, it curdles, awful stuff. For added drama, the brand I usually get was actually sold out, so this carton was another brand I hadn't tried before. It tasted remarkably..... alike. But that doesn't mean I was going to take a chance on it past the date. I poured it out into the sink, it actually looked perfectly fine. But two days is way past the accepted standard, even when I have milk on the day I'm sort of thinking "did they mean noon or 8pm?", it already makes me uneasy.

I may be liberal on some things, but on milk past the date I'm definitely conservative.

software suspend, oy vey

November 7th, 2006

It is so damn annoying to spend hours trying to fix something which appears to be so simple (and which happens to work perfectly on that other OS) without even getting anywhere. Software suspend has been problematic in linux for years, and that's really why I've never insisted on fixing it on my laptop. But enough is enough, and today I decided I was going to fix it once and for all. Easier said that done.

Like I said, it has been years since people started trying to get this working and there's now tons of howtos and personal stories about what they did and what worked. Of course, just about everything that people say is model specific and what works for one laptop is not sure to work for any other etc. The number of options alone underlines that problem. But it seems that the most widely used (or should I assume the method that has the widest catchment area) is suspend2. So I started out with that, suspend2-sources, setting up the kernel etc. Of course, the more refined your setup is, the more pain you are about to receive. I have a nice framebuffer with a boot screen, which I dumped along the way just to simplify things.

suspend2 in my case was incredibly flaky. Hibernating would work once, the next time it would freeze at "Doing atomic copy" and I'd have to hard boot. I experimented a lot in the console with this, not being able to find any combination of settings that worked reliably. There is a log file for the application, but even setting the logging verbosity to the maximum would only print what it was doing before actually suspending (and then nothing about why the suspending itself failed). Adding fglrx to the equation, as I had feared, was a definite suicide move. Attempting to hibernate with fglrx loaded would consistently kernel panic (is that a verb yet? let's make it one!) and there's no way (that I'm aware of) to keep X running while unloading fglrx.

So much for suspend2. Then there's still Software Suspend. I don't recall having tried this before, somehow it was always described as obsolete and not recommended. The thing is that suspend2 comes with scripts and a bunch of config files, suspend[1] doesn't, so it wasn't too clear how to actually suspend the system. Trying to hibernate with suspend[1] was not a great deal more successful, hibernation seemed to work, but resuming was not always blissful. Again lots of hard boots and I was getting really sick of it. Reading what people had said about my particular video card didn't seem to help at all.

Then I came across suspend to ram in /sys/power/state (which is actually what I wanted, rather than hibernation which requires you to go through grub and all). It turns out this method actually resembles the Windows suspend, you suspend, screen goes blank, power is cut. Then you press the power button, desktop appears right away. Perfect. This isn't software suspend at all (which seems to focus on hibernation), this is acpi sleep. I still need the suspend2-sources, but I can disable everything called 'software suspend'.

At last, after hours of trial and error, scrambling for information on google and reading outdated documentation, I had found the answer. This suspend-to-ram works beautifully even with fglrx (unlike suspend2's 'to-ram' function which never worked for me once). So now I wanted to map this function to a spare button I have on my keyboard and mapping aside, this was a lot harder than expected.

The suspend function is a simple echo mem > /sys/power/state, but, of course, it takes root privileges. This works fine on the command line, but putting that line into a script just didn't work, the screen would go blank, but power wasn't cut, it was as if it waited for the command to terminate first. How ridiculous! So while people had just put that line into a suspend script, it wasn't working in my case. I finally landed on using

sudo bash -c "echo -n mem > /sys/power/state" &

in combining sudo with & to make sure it wouldn't wait for termination. And this put into /usr/local/bin/suspend.sh, mapped to my spare keyboard key actually works now, I finally have software suspend (or sleep, or whatever you call it) working as it should. There's no hibernation, which doesn't bother me as I don't need it.

There's still a small hitch when running suspend.sh in the console. When resuming, the screen is just blank. I can start X and this will make the video card start drawing, which brings the display back to life. Then if I kill X, I have my console visible again. I don't know if this has to do with using a framebuffer or something else, but I can live with it, suspending in X is the whole point of this anyway.

So if you have a Dell Inspiron 6400, here's a suspend-to-ram method that works-for-me (and will probably be outdated by the time you find it, making it useless to you). Enjoy!

UPDATE: No, it's definitely broken. I don't think my soundcard handles suspend very well (or at least the driver doesn't seem to), so I can't suspend if I want my sound working after resuming. Of course, in Windows it works without a hitch. :lazy: Meanwhile, I still have no software suspend..

Michael Jackson is a woman (?)

November 5th, 2006

I used to be a huge Michael Jackson fan as a kid, my room was plastered with his posters, I had all the albums, I listened to his music _all the time_. In 1993, he was on tour and I badly wanted to go to the concert in Oslo. One Saturday morning, at about 8am, my friend and I had just left Oslo S and we were heading for a record store. The line from the entrance almost encircled the entire block and finally we arrived at the end of the line. We were an hour early, quite a few people had gotten there ahead of us. Literally minutes later we witnessed the line grow incredibly fast, we couldn't even see the end anymore as it was wrapped around the last corner of the block. At 9am, the doors opened and the tickets went on sale. We got ours and it felt pretty amazing knowing we would be going to a live performance.

The problem with these concerts, of course, is that there are way too many people, and when you're 12 years old and pretty damn short, it's pretty much a given you're not going to get much out of pushing your way to the front of the pack. We actually grabbed our seats at the very back, the stadium where the concert was had this grassy hill on one side and we sat there quite comfortably. (Seeing wasn't a problem either with huge screens on either side of the stage showing what was happening.)

I haven't been to anything like that concert. Michael Jackson had a reputation for amazing live shows, people who didn't even like his music would go just to see it. Years later I would meet people who had been there and who still remembered it. Of course, for me it was just unbelievable. Not all of the concerts had the same format, but in Oslo he performed quite a lot of old and new songs, and the music, the scenography, the atmosphere - indescribable. Best concert I've ever seen by a mile.

So with my background, I'd say I know Michael Jackson pretty well (even though it has been over a decade since I listened to his music). And among all the things that are said about the guy, the one thing I don't understand is how some people say "he looks like a woman". (This is more of a throwback to the past, after the last surgeon butchered his face I haven't heard people say it anymore.) It's just hard to imagine women would take a look at him and say "yeap, he's one of us". How exactly does he look like a woman? :confused: Is it the long hair? Is long hair the only thing you need to have to be a woman? I mean he doesn't dress like a woman, does he?

michael_jackson_dress.jpg

Since when is that women's fashion? Do you see a pink blouse? Red bows in his hair? A tank top? Purple sunglasses? Lipstick? I don't get it. Is it the hair then? Do women think anyone with long hair is a woman? How can that conviction not have backfired at least once in life? I can just see it now, working out at the gym, you spot another woman working on some machine.

"How you doin' girlfriend, haven't seen you around here before.. "
*guy turns around*
"Whoa! Sorry, sir."

yanni.jpg

So do all men with long hair look like women? Does Yanni? Well, the moustache may be a tip off, it nothing else. Who else looks like a woman? Oh, I know.

willie_nelson.jpeg

Check out the long hair!! That's a woman if I ever saw one.

calling it a 'she'

November 4th, 2006

Ugh. Annoying habit. Or isn't it even a habit? I think it's more of a passion. Something people don't do without actively thinking about it every time.

I have a clear recollection of my history teacher back in high school doing it. He was extremely passionate about history, we got the impression he was up at night reading history books. When he described the Bolshevik revolution to us, he did so in astounding detail, how a bunch of guys traveled across town, what they were wearing, what route they took through St. Petersburg. *That* guy used to refer to countries as 'she'. When he did, his eyes lit up a little.

But that's not all, guys say that all the time. Yeah, *guys*. Imagine a woman ogling over a brand new car, "isn't she beautiful?". No, that doesn't happen. It's always guys, as if they're picturing whatever it is they see as a female form that they worship.

Let's set the record straight here. A car is not a she, it doesn't have a gender. It's an it. A country is an it, a plane is an it, a computer is an it, got it? Enough of this stupid wishful personification of things that aren't people.

mealy mangos

November 4th, 2006

What the hell? :wth: Is it a sign that they're not ready or beyond ripe or what? By the color I'd say they're a bit raw, but certainly within the reasonable standards. It's rare to pick up a mango that is *just* right. But even if they aren't quite ready, they can be a bit hard and not as tasty, but I've never had a mealy mango before. :lazy: