Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror

Comment Re:Depends. (Score 1) 141

The new MacBook Pro Retina may have 2880 x 1800 resolution, but for software enginers it isn't much better than a 1440x900 screen because it doesn't fit more text (at a readable size) than this smaller resolution.

I disagree. The rMBP runs very nicely in "more space" mode, which is the equivalent of 1920x1200 mode. It's quite usable for smaller and still readable text.

Comment Re:Optimized for Macbook Air (Score 1) 189

A MacBook Air in typical use uses 10 to 20 Watts, but let's say for the sake of discussion that it uses the full 45 Watts of its power adapter. If you left it plugged in 24x7 for a month, drawing that much electricity, you would use about 33 kilowatts, or about $0.50 in electricity. So your figure of "If it saves you $50 in electricity per month" is off by a factor of 100 to 300.

Comment Re:trig (Score 1) 656

Actually, you need both. If you're doing angular acceleration, say, a ship that's firing thrusters to rotate around its center of gravity, then you have to keep the orientation of the ship as an angle (in radians, say), and also its angular velocity, and you apply its angular acceleration to that angular velocity. That part simply can't be done as pure Cartesian vectors. Then, when you fire forward thrusters, you take the angular orientation and convert that to a Cartesian vector which you use when applying the thrust force to obtain a Cartesian acceleration vector.

So most of the time (like 99%) you can simply use Cartesian vectors for everything. But you still need trig functions for some stuff. It's inescapable.

Comment Re:What's the difference? (Score 1) 268

You seem to be assuming that content decryption keys would be the same across all copies of a digitally downloaded item. I think that is a false assumption. If an upstream content provider encrypts each stream differently for different destinations (e.g., viewers), then it is irrelevant whether the DRM mechanism is implemented as closed-source or open-source software. You will need to know your unique key for that particular viewing in order to decrypt the content. The only thing open-source might buy you there is an easier time finding some algorithmic flaw in the encryption method. But that is highly doubtful, and even if it were to happen, the content provider could simply change the encryption method on you at any time to patch the hole.

Comment Re:What's the difference? (Score 1) 268

I don't think it's true that DRM in the browser requires a closed-source browser. If the content provider encrypted their content on a per-stream, per-user, per-viewing basis, then you could not simply redirect or strip off the DRM. You would atually need to purchase a one-use decryption key from the content provider.

Now, that doesn't prevent you from recording the content and redistributing it DRM-free, but certainly nothing in the above requires a closed-source model of any sort.

Comment Re:Confused (Score 5, Interesting) 160

You couldn't be more wrong. Signed ints are usually the best way to go in C/C++.

Actually, he's not wrong at all. He said signed integers don't behave in a very predictable manner, and he's right. Signed integers have undefined (actually, to be more precise, implementation-defined) behavior for mod and div of negative values. You cannot be sure whether -4 / 3 is -1 or -2, without knowing how your compiler implements it. Some round toward zero, others toward negative infinity. Recent drafts of C++ are trying to fix this.

Comment or sqlite (Score 5, Insightful) 241

As a general rule of thumb, if you need something lightweight, SQLite is the way to go. If you need something more powerful or sophisticated than that, PostgreSQL.

MySQL and spinoffs all occupy an uncomfortable middle ground. 99% of the small web sites which are built around MySQL don't need it.

Comment Re:I wrote a CFF renderer in C# (Score 4, Informative) 77

Well, no. Hints are metadata embedded in the font file which provide hints/clues to the rasterizer. The rasterizer then uses the hints to improve its own selective varying of the proportions. You can do selectively varying of proportions without hints. The hints just improve the process.

Finally, hinting is not the process of varying proportions. It's not even remotely that. Hinting is the process of adding hints to a font. A font designer takes a typeface and hints the font manually. Note that there are algorithms to assist with hint generation... hinting the hinting, if you will.

Slashdot Top Deals

Basic is a high level languish. APL is a high level anguish.

Working...