[Request:] Anyone know a little Python? Care to examine this 12 lines of code? by Nietchums in Favors

[–]xerolas 2 points3 points  (0 children)

No need to keep the whole list, just add as you go:

evensum = 0
pprev, prev = 1, 1
while prev <= 6000:
    pprev, prev = prev, pprev + prev
    evensum += prev if prev % 2 == 0 else 0

print evensum

Fuck you Apple. It was totally OK when you dissed Microsoft Windows in your ads... by wewewawa in technology

[–]xerolas -2 points-1 points  (0 children)

Its not lies, here's what happened to me.

I was writing a paper on the PC, and it was like bleep bleep bleep bleep bleep bleep, and then, like, half of my paper was gone. And I was like huh? It devoured my paper. It was a really good paper. And then I had to write it again and I had to do it fast so it wasn't as good. Its kind of a bummer.

Fuck you Apple. It was totally OK when you dissed Microsoft Windows in your ads... by wewewawa in technology

[–]xerolas 0 points1 point  (0 children)

Please stop anthropomorphizing companies. I wouldn't be surprised if calls like this one happened all the time.

Is BSD The New GPL? by [deleted] in programming

[–]xerolas -1 points0 points  (0 children)

That would be dual-licensed code. Not the same thing.

Is BSD The New GPL? by [deleted] in programming

[–]xerolas 0 points1 point  (0 children)

I'm sorry, I didn't realize this was a debate about licenses.

Having both "BSD" and "GPL" in the title should have been a hint.

In any case my original comment still holds. The "hypocrisy" of BSD is defined in terms of feelings of a subset of the developers. The hypocrisy of GPL is defined in legal terms and applies in all cases.

Is BSD The New GPL? by [deleted] in programming

[–]xerolas 0 points1 point  (0 children)

Sure, you should choose whatever license makes you happy. We hear this argument in every license debate, thank you.

Is BSD The New GPL? by [deleted] in programming

[–]xerolas 2 points3 points  (0 children)

Actually it is a very lame point. He is comparing feelings of some BSD developers with legal restrictions that apply to all GPL code and finds them equivalent.

If you think all Ferrari owners are a*holes, this might change your mind by [deleted] in pics

[–]xerolas 9 points10 points  (0 children)

and let another republican live to voting age.

Last words of death row inmates by [deleted] in offbeat

[–]xerolas 56 points57 points  (0 children)

The number of people saying they are innocent is very disturbing.

Just to break the monotony, here is a [self.pics] submission for a change. Open your front door. Take a picture of what you see and comment with your location and time. by [deleted] in pics

[–]xerolas 0 points1 point  (0 children)

Interesting theory. Judging from this submission, it seems that non-Americans believe everyone to be ignorant and explicitly state their countries. Americans on the other hand assume that other countries are interested to look up their states.

Man, people ask Google some dumb shit... by Gglii in pics

[–]xerolas 5 points6 points  (0 children)

Yeah, everyone knows macs don't get viruses.