The Case Against Screen Savers

August 30, 2007

I don’t use a screen saver because:

  • It distracts me.
  • It doesn’t let the CPU sleep, hence generating heat.
  • It provokes silly discussions like ‘OMFG, Wow, can you give me the .exe?’ [No, but here’s the .deb]

I use a power-off-monitor-after-two-minutes-of-inactivity scheme because:

  • I want the backlight to last longer.
  • I want it to save my kilowatts, not my ‘screen’.
  • If it kicks in while I’m in front of the PC, I know I must have been wasting time / day-dreaming.

Pragmatic, heh? 8-)

Long Hair…

August 30, 2007
  • looks great
  • lets you shake your head like a wet dog :P


  • takes more time to comb
  • feels really uncomfortable, especially under a {cap, hat, whatever}
  • seems to need washing more often
  • stands in the way of headphones

Visualizer for IOI2007/day1/flood

August 28, 2007

Here’s another visualizer for an IOI problem, flood this time. It’s a bit more complex than the others, since I had quite a hard time debugging this problem ;) Requires GD.

Source, Makefile, screenshot:

And now the #1 reason I like Linux: here’s an entire checker / evaluator for this problem, in a single line of commands for bash. It took no more than 2 minutes to get together.

for i in tests/*; do echo ––––––––––––––––––––––––––––––––––––––––– && SUFFIX=${i:15} && rm out && time ./flood.e <tests/$SUFFIX >out && cp tests/flood.out.$SUFFIX correct && rm correct_ && sort correct > correct_ && rm out_ && sort out > out_ && ll *_ && diff –q out_ correct_ || break; done

Visualizer for IOI2007/practice/chip

August 28, 2007

After doing it the first time, I got the hang of it and now I like doing visualizers a lot ;)

This is a quick-and-dirty one for the CHIP problem presented at IOI2007 during the practice session. I made it to also validate the solution, not only illustrate it. Requires GD to compile.

Here’s the source code, the Makefile, and the obligatory screenshot:

Quotes from ‘By the Light of the Moon’

August 26, 2007

Dean Koontz impressed me with his fantastic techno-thriller, ‘By the Light of the Moon’. Here are some quotes from the book:

  • Eternity yawned before her, a great swallowing maw, and she drifted fast, faster, faster still, into this internal immensity, toward oblivion.
  • Lots of people are hard, but not most. Most are just scared or lonely, or lost. They don’t know why they’re here or what’s the purpose, the reason, so they wind up half dead inside.
  • You can’t make life come together like a puzzle…

Read the rest of this entry »

Quotes from ‘Interview with the Vampire’

August 26, 2007

The first book of Anne Rice‘s ‘The Vampire Chronicles’ contains some sentences and ideas that caught my attention:

  • Evil is a point of view.
  • People who cease to believe in God or goodness altogether still believe in the devil.
  • …and so it goes back and back, nothing proceeding from nothing, until here is nothing! And we must live with the knowledge that there is no knowledge.
  • Hatred… that is passion… Revenge, that is passion..

Medals come in small DIFFs

August 26, 2007

Want to know just how big an idiot I am? Just look at the changes it took to transform a 10-point solution into a 100-point one. Sheesh.


I guess I can’t learn from other people‘s mistakes.

Life’s not meant to be easy;
Find justice for what you love…