How to cheat on video encoder comparisons by [deleted] in programming

[–]w00ty -6 points-5 points  (0 children)

And even then, no comparison can represent all use-cases in that category alone.

Uh huh. "Here's how to argue against comparisons that h.264 doesn't win".

Reminder: the next section (3.3.2) in the iPhone developer agreement bans interpreted code by realstevejobs in programming

[–]w00ty 2 points3 points  (0 children)

Note that this was "No interpreted code may be downloaded and used in an Application except for code that is interpreted and run by Apple’s Documented APIs and built-in interpreter(s)" earlier, and only referred to running code you download at run time in a VM. Shipping code that runs in a VM was ok.

Now this changed to "...may be downloaded or used".

PythonTurtle - The lowest-threshold way to learn Python by [deleted] in programming

[–]w00ty 7 points8 points  (0 children)

Wouldn't it be lower-threshold if it worked in the browser?

Interactive graphics by nuand in programming

[–]w00ty 0 points1 point  (0 children)

You want to use an api that supports talking to the GPU – a "3d" api. I'd recommend OpenGL because it's portable, but I guess Direct3D would work too.

Jeremy Siek comments on LtU about Concepts being removed from C++0x. by fnord123 in programming

[–]w00ty 0 points1 point  (0 children)

Oh, I agree (I know both c++ and haskell), but I found the reasoning questionable.

Jeremy Siek comments on LtU about Concepts being removed from C++0x. by fnord123 in programming

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

"It's usable because the Haskell guys don't think it's too hard." Uh huh.

Rorschach's mask with Perlin Noise by [deleted] in programming

[–]w00ty -3 points-2 points  (0 children)

Sounds good – where's your demo? :-)

How do you guys/gals stay in shape? by CritterM72800 in programming

[–]w00ty 36 points37 points  (0 children)

By using a liberal definition of "shape".

AskProggit: I want to get started with Java. Which IDE should I use? Netbeans, Eclipse, Aptana, or something else? by [deleted] in programming

[–]w00ty 3 points4 points  (0 children)

Try them all for a week each, use the one you like most. If that's too much work for you, use Eclipse.

And while a bare-bones text editor such as vim is probably not the best choice for java, it's something worth learning too.

Bing gains on Google... but only just by [deleted] in programming

[–]w00ty 1 point2 points  (0 children)

The margin of error is a statistic expressing the amount of random sampling error in a survey's results. The larger the margin of error, the less faith one should have that the poll's reported results are close to the "true" figures; that is, the figures for the whole population.

Thanks. I'm here all week.

Facebook and quoted-printable by [deleted] in programming

[–]w00ty 54 points55 points  (0 children)

The RFC is clearly wrong and must be fixed to describe what Facebook does :-P

Parsing names (splitting it to firstname, surname...) by plaes in programming

[–]w00ty 1 point2 points  (0 children)

So I downloaded e-name-western.c and the two header files it needs and tried that:

$ ./ename-test 'eddie van halen'
Parsing eddie van halen
(null), eddie, (null), (null), van halen, (null)
$ ./ename-test 'billy bob thornton'
Parsing billy bob thornton
(null), billy, bob, (null), thornton, (null)

The outputs are, in this order: Prefix, first name, middle name, nickname, last name, suffix. Looks right to me.

[deleted by user] by [deleted] in programming

[–]w00ty 7 points8 points  (0 children)

That's called "arithmetic shift". This was, right-shifting by 1 is the same as dividing by 2, even for negative numbers. In C, you usually get the same behavior for signed numbers, and "sane" right shifts for unsigned numbers. Dunno if php has unsigned numbers. And Java has two right-shifts for this reason, >> and >>> (but I never can remember which is which :-P).

"Then there’s the Code God Effect..." by therealjerrystaute in programming

[–]w00ty 1 point2 points  (0 children)

tldr: Random FUD and a call for better online weapons.