Forgot your password?
typodupeerror

Comment: Encoding length (Score 1) 594

by ekc (#36974036) Attached to: The Most Expensive One-Byte Mistake

A C string can be as long as you want and never requires more than length+1 bytes of storage. A length+data scheme would need unlimited lengths to be as flexible with preferably a 1-byte overhead for short strings at least. I guess you could do something UTF-8-ish and add extra length bytes as needed for longer strings, but then you'd need a formula to figure out how much storage the string would require. Sounds a little messy to me.

Comment: OS X security features (Score 1) 312

by ekc (#36367832) Attached to: How Apple's iOS Went From Insecure To Most Secure

FTA: By comparison, Mac OS X has limited application-dependent sandboxing and no code signing, and it only partially implements ASLR.

I was under the impression OS X has had code signing since Leopard, though it's voluntary and not heavily adopted by third parties so far from the looks of it. Also, I noticed a slide in the WWDC 2011 keynote where application sandboxing was listed as a feature of Lion.

Comment: Re:5.5? Feh! (Score 1) 560

by ekc (#32676930) Attached to: 5.5 Earthquake Hits Canada; Felt in US Midwest, New England

What a bunch of wimps.

Here in southern California, a mere 5.5 would hardly even arouse anyone's interest. Probably make page 1 of the local section unless the Padres made a big trade; then it would be relegated to page 2.

I was in Kingston, Ont. (about 2 hours drive from the epicentre) eating my lunch on a picnic bench outside when people came rushing out of the office wide-eyed yelling, "Earthquake!" I didn't feel a thing. Honestly. If that was an earthquake, I've had bigger rumblings coming out of my stomach. Then again, I lived in Japan for a time. They know how to do earthquakes over there.

Thus spake the master programmer: "When a program is being tested, it is too late to make design changes." -- Geoffrey James, "The Tao of Programming"

Working...