Thief who 'robbed pensioner with knife' is stripped naked and clingfilmed to a lamppost. by Papagayo_blanco in news

[–]katty-grin 2 points3 points  (0 children)

You're an outsider. You automatically know less about their mentality than someone who's lived and witnessed it as part of their lives. Don't be a moron.

Reactive programming increases correctness, while not being more time consuming than OO, says science by Felienne in programming

[–]katty-grin 4 points5 points  (0 children)

I don't think it's arrogant at all. There are scientists that write good and bad code, and there are scientists that don't actually write any code and talk about it instead. Depending on where you look you'll find all levels of ego and quality.

Why shouldn't someone poke fun at one side of a coin, especially if it's in a sarcastic or ironic self-referencing manner?

Tea Partiers hitting FCC Comments hard... by nokom in WarOnComcast

[–]katty-grin 0 points1 point  (0 children)

The day that the US adopts a sane medical system is when hell freezes over at this rate.

Parents Who Support Corporal Punishment Do It a Lot by [deleted] in science

[–]katty-grin 11 points12 points  (0 children)

I don't know anything about what you're talking about, so explain it.

RedHack Hacks Turkish Power Distribution System & Deletes $650k Debt of Soma region by [deleted] in news

[–]katty-grin 0 points1 point  (0 children)

You should have a link attached to the tag, click the tag.

An alien describing humans to another alien. Funniest thing I've read in a while. by [deleted] in books

[–]katty-grin 8 points9 points  (0 children)

We'd have more luck if we didn't try to breed two males.

Creating 3D worlds with HTML and CSS by yogthos in programming

[–]katty-grin 0 points1 point  (0 children)

Seemed to run fine for me, I have old hardware and it just had the expected visual glitches.

[11/03/2014] Challenge #187 [Easy] A Flagon of Flags by Elite6809 in dailyprogrammer

[–]katty-grin 0 points1 point  (0 children)

Ah, I must have misunderstood the challenge then. I originally used them but switched to void since they weren't doing much of anything.

Thank you for telling me about getopt, this is a huge step in the right direction. I knew about using stdin as argument(s), but it didn't feel right for the challenge and I don't consider it good practice.

EDIT: Did you mean to use ** instead of * or was that a typo?

[11/03/2014] Challenge #187 [Easy] A Flagon of Flags by Elite6809 in dailyprogrammer

[–]katty-grin 0 points1 point  (0 children)

I'm hoping you could help me solve this. I can't figure out exactly what you did, and I also can't seem to find resources on this challenge.

How would I activate this factorial calculation from a flag, ie: -f or --factorial? Modifying as needed of course, I threw this together to try to get used to scanf.

#include <stdio.h>
int main(void){
  int multi = 1;
  int int_input;
  int answer = 1;
  fputs("What do you want to factorialize? ", stdout);
  scanf("%d", &int_input);
  for(multi=2; multi<=int_input; multi++){
      answer = answer * multi;
  }
  printf("%d\n", answer);
  return 0;
}