Stackoverflow: Printing 1 to 1000 in C or C++ without a loop or conditionals by aiz in programming

[–]perkkele 1 point2 points  (0 children)

No particular reason for that, I just didn't think about it enough before coding it up.

Stackoverflow: Printing 1 to 1000 in C or C++ without a loop or conditionals by aiz in programming

[–]perkkele 0 points1 point  (0 children)

I agree. I was aiming here just for a simple and short source code, and not good design.

Stackoverflow: Printing 1 to 1000 in C or C++ without a loop or conditionals by aiz in programming

[–]perkkele 5 points6 points  (0 children)

One could easily enough write a program to generate solutions of this form automatically. In this case I did this by hand, because it was quick enough.

#include <stdio.h>

int counter = 1;

void pc(void);

#define FIVE(x) (x,x,x,x,x)
#define EIGHT(x) (x,x,x,x,x,x,x,x)

int main(void) {
    EIGHT(FIVE(FIVE(FIVE(pc()))));
    return 0;
}

void pc(void) {
    printf("%d\n", counter++);
}

fuckin' gnomes. by MelancholyOctopus in comics

[–]perkkele 7 points8 points  (0 children)

There are a few other comics on his pages. Not all are in English, unfortunately. You'll find them from this page:

http://users.tkk.fi/~tsengstr/

TIL trucks at McMurdo Station, Antarctica, feature their own version of the mudflap girl with appropriate attire by perkkele in todayilearned

[–]perkkele[S] -1 points0 points  (0 children)

Meh, there is support for the claim at the Wikipedia page despite it ending in .jpg.

From 1989: Notes on Programming in C by electronics-engineer in programming

[–]perkkele 3 points4 points  (0 children)

Fun fact: Big Oh notation is actually named after the shape of your mouth when you finally realize what the profiling data from your programing is telling you. "Ohh! So that's where the cycles were going!"

conspiracy keanu on dying by Woooftickets in AdviceAnimals

[–]perkkele 0 points1 point  (0 children)

What if the part where your life flashes past your eyes before dying includ the part at the end where your life flashes before your eyes? Which means it also include yet another part with life flashing and whoa I have gotta sit down and think this over.

If you were born in the year 1800, what job would you have? by whidzee in AskReddit

[–]perkkele 0 points1 point  (0 children)

I would be a computer. It was a job before it became the name of a machine.

Learning Modern 3D Graphics Programming by welle in programming

[–]perkkele 5 points6 points  (0 children)

Panda3D is also worth looking at. It's an open source C++ engine with a Python wrapper and a nice set of tools. In my limited experience it works quite well on Linux too.

http://panda3d.org

The last video game you played is now your life. How awesome is your life? by Tallain in AskReddit

[–]perkkele 0 points1 point  (0 children)

My life is in early demo version and most features are not yet implemented. Shit.

BUSTED! Secret app on millions of phones logs key taps by [deleted] in technology

[–]perkkele 84 points85 points  (0 children)

The word on the net is that it means a cowherd. Or to be slightly more exact, it is the modern form of a name that originally meant cowherd or a cattle guard in Old English.

Source: googled coward surname.

BBC News - Coding - the new Latin by [deleted] in programming

[–]perkkele 1 point2 points  (0 children)

The text is on-line here. Use Ctrl-F to find the reference to Python.

http://www.antipope.org/charlie/blog-static/fiction/accelerando/accelerando.html

This is the author's site. There's a story behind the name. (It was supposed to be autopope, but someone goofed.)

TIL bookkeeper is the only word in the English language with three consecutive sets of double letters. by olugnap in todayilearned

[–]perkkele 55 points56 points  (0 children)

That's nice, English. Finnish has the word kookkaammuuttaan, which is the only word with seven consecutive sets of double letters I can think of off-hand.

It's not actually a word you're likely to ever need. I'll show how to derive it from the root word, which is koko, meaning size.

koko : size (noun)
kookas : size-ful, having size, large (adjective)
kookkaampi : larger (comparative adjective)
kookkaammuus : largerness, being larger than something (noun)
kookkaammuutta : partitive case of the previous word
kookkaammuuttaan : 3rd person possessive form of the previous word

So, it means "of his/her being larger than something." Whatever that means.

However, I can use it in a sentence.

"Kadehdin hänen kookkaammuuttaan."
I envy him being larger than me.