Archive for December, 2006

Latex: Numbered Subsubsections

Sunday, December 17th, 2006

LaTex lets you break the document down into chapters, sections, subsections, subsubsections and paragraphs. By default subsubsections and paragraphs are not numbered or included in the table of contents. Sometimes this might be desirable. However, I usually find that in cases when I do not need them numbered, I usually never use them (ie. my documents are broken down by chapter, section, and subsection only). At other times, when I desire more granularity, I actually want subsubsections to show up in the TOC and have distinctive headings and numbers.

To enable this you will need to put 2 lines of code somewhere in your preamble:

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

The first line enables numbering of subsubsections. The second line includes subsubsections in the table of contents.

Btw, if you need to break down your document even more you can switch 3 to 4 in these lines to enable numbering for paragraphs.

New Yahoo TV Listings

Sunday, December 17th, 2006

I absolutely hate the new Yahoo TV Listings page. Usually, when you use some spiffy AJAX to dynamically load content it improves user experience. But somehow Yahoo web design team found a way to make it do exactly the opposite.

Essentially, they divided the page into boxes of 10 channels. When the page first loads, you see the first 10. Then if you want to scroll down you get a nice AJAX progress bar which notifies you that the next 10 channels are loading. Your browser kinda freezes up for a second and scrolling becomes jerky and delayed, so you end up waiting for the loading to stop. Finally, you scroll down, and you get another loading dialog. So if you want to check the listings for channels in the 50-60 range you need to look at 5-6 loading screens. Absolutely brilliant!

Of course now you can scroll the content sideways without reloading the page. This would actually be kinda cool, but unfortunately only your current 10-channel box scrolls this way dynamically. All the other boxes stay the same until you scroll up or down. Then you get more loading bars.

Absolutely worst user experience ever. In the past I used the Yahoo listings because they were simple, intuitive and quick. Perhaps they didn’t have the Web 2.0 polish, but who needs fancy AJAX on a TV listing page? Now the usability of the site is close to zero.

Sigh… Time to find a new place where to get my local TV listings. Any suggestions?

A Scanner Darkly

Sunday, December 17th, 2006

I finally saw it. Here is the review:

A Scanner Darkly

I never really finished the Philip K. Dick novel, on which this movie was based. I remember starting it, and then for some reason putting it away half way through. I never really went back to finish it, nor did I ever really want to.

So I figured that watching the movie will help me decide to dig out the book, and finally get done with it. From what I heard the movie is relatively faithful to the original. I don’t remember much detail anymore, but what I saw on screen seemed to parallel the book quite closely.

It’s hard to describe the impression you get after watching this movie. Its a little bit like a strange dream that seems relatively vivid when you are dreaming it, but then turns out to be bleak, and just plain odd when you wake up. That is essentially “A Scanner Darkly”.

If you want to see a movie about the destructive effects of drugs on people’s lives this is probably not what you are looking for. I have seen much more disturbing and shocking portrayals of drug addiction elsewhere.

In ASD you simply see campy, vacuous, half dazed vegetative existence of bunch of Substance-D addicts. They don’t really do anything exciting. In fact they hardly do anything, except talking and popping pills now and then.

If they were all a little bit younger, you would think that you are watching a sitcom about a bunch of college kids. Their biggest life dilemmas are things like figuring out how many gears does their new bicycle have, or making a home made gun silencer from duct tape.

The only indication that this is not a bunch of campy sitcom roommates is the fact that their minds are slowly deteriorating. Most of the character suffer from some subtle form of psychosis, paranoia or hallucinations.

But if you expect a psychological thriller or tightly plotted, mind boggling drama you might also be disappointed. There is not much drama, suspense or excitement in this movie. Things just happen, sort of in a subdued daze. It is more of a Kafkaesque experience than anything else. The rotoscoping technique used to film the movie really helps to reinforce this dream-like experience.

Things just happen to Bob Arctor and most of the time he is powerless to do anything about it. In fact, he can hardly make sense of his own life, because of the damage Substance D has done to his brain. It’s as if his fate has been sealed, and preordained and only thing he can do now is to go with the flow, and try to understand what is going on around him.

The viewer in a way has to share his fate, being dragged through the faded dreamscape of Substance-D addicted America.

My rating: 3.5 stars
***1/2

What did you think about it?

3 AM Windows Reboot

Saturday, December 16th, 2006

Yesterday I felt like crap. I haven’t been getting much sleep lately so I decided to call it a night and went to bed early. I think I fell asleep the instant my head hit the pillow. Only to be brutally woken up 2 hours into my nap, by freaked out Ark.

Apparently he decided that someone is hacking us, and that I need to get out of bed and do something. I decided that best course of action would be for me to go back to sleep and for Ark to STFU, but he was not happy with that. Sigh… Apparently he was sitting there watching a movie, when all of a sudden the the 2 windows boxen in the room decided to reboot simultaneously. At that point he was ready to run upstairs to disconnect the cable modem and kill the wireless.

So I dragged myself out of bed, logged in, pulled up the Event Viewer and showed him this:

Windows Update Forced Reboot

Apparently Microsoft decided to push one of their mandatory install automatic updates at 3am today. It doesn’t really matter that both machines were set up to “download and then prompt for install”. They still went ahead and did it. Ark was like:

“Dude, they can just remotely reboot your machine like that?”

Yeppers - gotta love Microsoft for that. This is one of those friendly reminders that you don’t really own a windows box. You lease it from Bill Gates, and he is the one who can decide when it is best to install OS upgrades - not you. Funny how that works, eh?

But this is nothing. Just wait to see what Vista will be able to do without your permission!

Comment Spammers Suck

Friday, December 15th, 2006

I’m currently being hit by some sort of Zombie swarm averaging 20-30 posts a day. They are all coming from different IP’s and trickle in at different times. There are maybe 5-6 different patterns that repeat over and over again, simply with different keywords. Here are some of the most common ones:

Markus…

It was quite useful reading, found some interesting details about this topic. Thanks…

love me…

I Googled for something completely different, but found your page…and have to say thanks. nice read….

wiki wiki…

Interesting post. I came across this blog by accident, but it was a good accident. I have now bookmarked your blog for future use. Best wishes. Adrianne Curry….

Do you recognize these? Most of them don’t even have any significant spam payload in them. I’m guessing half of this stuff is just a training barrage trying to sneak past the filters.

What worries me is that somehow most of their posts clear my CAPTCHA without any problems. So far, 99% gets killed by AKISMET but in the last few days 3 or 4 comments slipped through. They got stuck in the moderation queue though, and I was able to classify them as spam.

Still this is a little disconcerting. So I’m trying out a new thing: a plugin called Bad Behavior. It is supposed o automatically profile and block known spambot activity. Let’s see how that pans out.

If you experience any issues posting comments, please shoot me a short email. My contact info is on the Contact Me page.

Update 12/15/2006 06:45:53 PM

3+ hours since installation, and I already had 40+ spam attempts blocked, and my Akismet queue is uncharacteristically empty. Nice! Let’s hope this plugin won’t affect regular users.