boltblog

How difficult is it to misuse the code you write?

Posted on July 15, 2011

I found these "misuse levels" over at technovelty, which they originally ripped from Rusty Russel's Bleeding Edge Page, which is a page you should definitely check out if you haven't.

Anyway, I found these "misuse levels" both hilarious to read and at the same time somewhat concerning, as I started thinking "Where does my code really go on this list?"

  1. Impossible to get wrong
  2. Compiler/linker won't let you get it wrong
  3. Compiler/linker warns if you get it wrong
  4. Simplest use is correct
  5. The name tells you how to use it
  6. Do it right or breaks at runtime
  7. Follow the convention and you will get it right
  8. Read the documentation and you will get it right
  9. Read the implementation and you will get it right
  10. Read the correct mailing list and you will get it right
  11. Read the documentation and you will get it wrong
  12. Follow the convention and you will get it wrong
  13. Do it right and it will break at runtime
  14. The name tells you how not to use it
  15. The obvious use is wrong
  16. Compiler/linker will warn you if you get it right
  17. Compiler/linker won't let you get it right
  18. Impossible to get right
Filed under: Rants No Comments

Norwegian Windows edition on suicide mission

Posted on October 23, 2008

So I downloaded this Debian netinstall image... and Windows went suicidal?

Filed under: Linux, Rants Continue reading

Vista file transfer estimates: WTF?

Posted on October 8, 2008

In Windows XP, it seemed like the estimated transfer time of files in a folder, when copying that folder from one place to another, was estimated purely based on the sum of the file sizes and the current transfer speed. It also seemed to have a preference for transferring the larger files first.

Filed under: Rants Continue reading

Motorized Madness

Posted on October 6, 2008

I rarely post just a link, but this casemod is just too awesome:

http://www.thebestcasescenario.com/forum/showpost.php?p=172860&postcount=377

Filed under: Rants No Comments

MySQL Cheat Sheet

Posted on October 5, 2008

My relatively short list of useful mysql commands

Filed under: Rants Continue reading

Screen size calculator

Posted on October 5, 2008

Today I found out I want to replace one of my 20" 4:3 LCD screens with a widescreen, to watch movies on a bigger surface. However, I didn't want to reduce my vertical screen space.

What I mean is that a 20" widescreen is, necessarily, shorter vertically than my 4:3 screen, meaning I get to see less of vertically oriented webpages, word documents, spreadsheets... basically everything except movies are designed for a screen with a relatively large vertical size.

Thus, getting a 20" widescreen was completely out of the question. So I grabbed my calculator, and then thought... why bother? Someone must have done this before.

Exactly. The link below provides a "TV Aspect Ratio Calculator", which works just as well for LCD screens. Using 20", 4:3 as input, my widescreen needs to be 24.5392 inches to fit my needs. Thus, we're going for 26" :)

http://www.nicetaco.com/tv.aspx

Filed under: Rants No Comments

SMS Message Recieved Confirmation – IMPLEMENT IT PROPERLY

Posted on July 4, 2008

Okay. If you have a cell phone, you've probably sent an SMS or two. I hate writing them, but sometimes they're useful. When you're on the subway and the connection goes in and out constantly, when you're in a meeting, sending something which needs to be remembered or simply when you need to say something to someone you can't stand talking to.

Filed under: Rants Continue reading

Yay. Blog.

Posted on June 25, 2008

Yes, I finally submit to the pressure. This is a blog. But I'm still not making a bloody facebook profile! Get off my back about it!

Filed under: Rants No Comments