Slashdot Mirror


User: c++0xFF

c++0xFF's activity in the archive.

Stories
0
Comments
820
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 820

  1. Browsing possible translations in Google Translate (where "union" refers to a labor union), the 4 letter word could be one of a few Slavic languages, or possibly Polish.

  2. Boost to the Rescue! on Love and Hate For Java 8 · · Score: 1

    Once again, Boost comes to the rescue! Provide a couple of operators, and it fills in the other ones you may want. Very well thought out, as most Boost libraries are -- for example, NaNs mean floating point numbers can't necessarily be given a strict ordering, so they provide "partially_ordered" if you need that.

    When it comes to efficiency, compilers are remarkably capable these days. I just ran a test with GCC 3.4.5. It optimized "a < b || a == b" to the exact same as it generated with "a <= b" (at -O1). Source code available on request, but just try it yourself.

    The lesson here: never make assumptions as to what is most efficient until you actually compile and see what happens. Instead, give the programmer the tools to make the code readable and maintainable, and then fix inefficiencies as you find them. "Premature optimization is the root of all evil." (Donald Knuth)

  3. Re:Simple explanation on Discovering NSA Code Names Via LinkedIn · · Score: 1

    But how do you know if NASA is supposed to be spoken as a word or spelled out? For the most part, this is determined by convention, but here's a rule of thumb:

    1) Anything that forms an actual word is spoken as a word
    2) 2-3 character acronyms are spelled out
    3) 4+ character acronyms are spoken as a word

    If you're creating long acronyms that can't be spoken as a word (HMMWV comes to mind), expect people to come up with a word that fits (Humvee).

  4. Re:Translation is a copyright owner's exclusive ri on Police, Copyright Industry Raid Movie Subtitle Fansite · · Score: 1

    I had to read many scripts in English class. An excruciating exercise, honestly (scripts aren't meant to be read, they're meant to be performed!).

    Fact is, scripts are in themselves useful. Not to you or me, but to some crazy nuts out there it has entertainment value. I guess they just perform it in their head or something.

  5. Re:Fuck 'em on Police, Copyright Industry Raid Movie Subtitle Fansite · · Score: 1

    No, dude. You pay exactly as much as you're willing to pay, no more. If it's not worth $150 to go to a concert, don't go. The problem is that the Market is willing to pay $150. Don't blame the labels or the artists for charging what others are willing to pay.

    Your "gag" is actually spot-on.

  6. Re:Fuck 'em on Police, Copyright Industry Raid Movie Subtitle Fansite · · Score: 1

    My hearing is fine, and I want subtitles, too.

    The art of diction is lost on many actors. It's amazing how much more dialog is understandable when you know what they're supposed to be saying.

    Add in loud special effects and noises in my home (kids, neighbor's A/C, etc), and it's nice to know what that word that you missed was.

  7. Re:Yes, all works are derivative. on Police, Copyright Industry Raid Movie Subtitle Fansite · · Score: 1

    I am a lawyer. I am not your lawyer. This isn't legal advice. Assume that I'm deliberately misleading you.

    Assuming you're misleading me ... does that mean I really can make a derivative without violating the Les Mis copyright? Now I'm confused...

  8. Re:paul revere on a bicycle on Electric Vehicles Might Not Benefit the Environment After All · · Score: 1

    15 lbs so far, 25 to go.

    And yes, changing what you eat is essential, too. The key, however, is not to "diet" ... but instead to change your lifestyle. So, I now bike to work whenever possible and go on longer recreational rides on the weekend. 100 miles per week, give or take. Smaller portions, with a good balance of carbs, fat, and protein. Plenty of fruit, vegetables, and whole grain.

    And, as long as I keep this up, and have no qualms about treating myself to periodic high-fat, high-sugar items.

    This is a lifestyle I can continue indefinitely: it's fun, and I'm not starving myself. (Just need to figure something out for the winter ... biking in the snow doesn't interest me all that much).

  9. Re:This is stupid on NSA Backdoors In Open Source and Open Standards: What Are the Odds? · · Score: 1

    Proper source: http://xkcd.com/221/

    But I'm guessing 90% of ./ already caught the XKCD reference.

  10. Re:paul revere on a bicycle on Electric Vehicles Might Not Benefit the Environment After All · · Score: 1

    That bio-feedback sensor only works if people pay attention to it. Unfortunately, way too many people eat way too much to begin with, and have a nice energy reserve that would power that bicycle for many, many miles (1 lb of fat is 3500 calories, which translates to something like 50 to 100 miles, depending on your riding style).

    For people who cycle to lose weight (like me), a bicycle is effectively a zero-emissions vehicle. For everyone else, it's the equivalent of riding a 700+ mpg vehicle that runs on fully-renewable biofuel. Even better if it's a recumbent with full fairings.

  11. Re: You keep using that word... on Proof Mooted For Heisenberg's Uncertainty Principle · · Score: 1

    Origin:
    before 900; Middle English mot ( e ) meeting, assembly, Old English gemt; cognate with Old Norse mt, Dutch gemoet meeting. See meet1

    Wow! I finally understand the term Entmoot. Thanks!

  12. Re:Bogus argument on Are You Sure This Is the Source Code? · · Score: 2

    First off, [Citation Needed]. This is simply not true from my experience. I've done this many times with GCC and produced identical output (or so diff says). One caveat: make sure you start from a clean directory structure each time, because your Makefile might list dependencies in different orders for the linker if not everything is recompiled, and I think that can produce different result. But this is the build system presenting different input to the compiler, not the compiler itself producing different output. Please provide a citation to set me straight, if my experience does not cover some other situation.

    However ... why should we be relying on the compiler to produce identical output in the first place? Shouldn't we instead be fingerprinting the source code and shipping that alongside (or even inside) the binary? That fingerprint would be enough to verify that their binary matches a certain revision of the code, regardless of whatever magic the compiler might do. (For extra bonus points, include the compile arguments in the fingerprint!)

  13. Re:an interesting paradox on Snowden Is Lying, Say House Intelligence Committee Leaders · · Score: 1

    Who says it's "all lies" ... that's not the claim coming from the article, at least. Just read the summary:

    He clearly has over-inflated his position, he has over-inflated his access and he's even over-inflated what the actual technology of the programs would allow one to do.

    Interpretation: he revealed secrets, but highly exaggerated some things along the way.

    Don't turn this into a black-and-white strawman.

  14. Re:Why is it odd? on Supreme Court: No Patents For Natural DNA Sequences · · Score: 2

    Discovering a new way of putting things together == patentable
    Discovering something that already exists == not patentable

    It doesn't matter if it's nature or prior art: if it already exists, is shouldn't be covered by a patent.

  15. Re:and if license picking were mandatory... on Your License Is Your Interface · · Score: 1

    This especially applies if your company refuses to use anything under a GPL license. Most projects would be more than willing to negotiate a different license for a small fee (and maybe even provide a level of support). The small fee gives your boss the impression that the software actually has value, instead of being "free crap" (a phrase I've heard management use).

    Everybody wins!

  16. Re:The Question on Major Advance Towards a Proof of the Twin Prime Conjecture · · Score: 1

    If the Answer is 42, then maybe you found the Question to Life, the Universe and Everything. Douglas Adams fans rejoice!

  17. Re:312 km coast to coast on Mars One Has 78,000 Applicants · · Score: 1

    The shortest distance between coasts in the US is San Diego to Jacksonville. 2092 miles. 3367 km. 43.2 meters per person.

    Meters, not centimeters.

    So, either we have a units problem, or it's the wrong country.

  18. Trolls can't read or write on Integer Overflow Bug Leads To Diablo III Gold Duping · · Score: 1

    Calm down! You missed the point entirely!

    My argument is not that signed values should be used instead of unsigned. My argument is that unsigned values don't help, and you need to look elsewhere for a solution.

    I find it fascinating that the financial industry can solve this, while the gaming industry seems to have so many issues. Part of it, I think, is that games allow much more flexibility in how money is used than you see in real life. Also, the fact that game money isn't real money means that mistakes aren't as important ... but now that line is blurred a bit. Don't trust a gaming company with real money (shocker, I know) .... these sorts of bugs are insanely common.

    Your an idiot and shouldn't be let near anything more complicated then a stick. A small one.

    Pardon me while I cry in the corner. "Your an idiot" ... priceless.

  19. Re:Confused on Integer Overflow Bug Leads To Diablo III Gold Duping · · Score: 1

    The 'x' is the problem. If you just make it a primitive type, then all you did was move the problem elsewhere. All intermediate values need to have the same checks.

  20. Re:Confused on Integer Overflow Bug Leads To Diablo III Gold Duping · · Score: 0

    Too bad you're an AC. This post is spot-on.

    Mixing signed and unsigned values can result in unexpected behavior. Trust me, don't mix them if you can avoid it.

    You get a bit of a larger upper range (2x more, not all that much really), while introducing a whole new set of problems at the bottom end (what if you underfow?).

    Avoid unsigned unless there's a good reason to use it. There are definitely good reasons -- it's a pain that Java got rid of unsigned! -- but avoid in general. Don't just use unsigned if your values are never supposed to go negative. If you need larger range, go to a larger data type.

  21. Re:Confused on Integer Overflow Bug Leads To Diablo III Gold Duping · · Score: 5, Insightful

    Integer underflow. Imagine a situation where a player has 100 gold and a bug in the code subtracts 101 gold for whatever reason. If you use a 32-bit unsigned integer, that player now has 4,294,967,295 gold. A 64-bit unsigned is even worse, of course.

    A simple if statement would catch this as well, right? But think of how often you do addition and subtraction (and everything else) throughout your code! Do you put an if around each one? Can you handle the error situation in each case? How do you ensure that you found every addition and subtraction, including future changes?

    A better solution is to make a Money class with well-defined operations, and throw an exception if you try to exceed the boundaries. Sounds easy ... but it has to be flexible enough to handle all situations (the class has to be used for all intermediate values -- it's no good to resort to an int, where problems might come back) while still being robust. ("I know, I'll use a class!" ... now you have two problems. "I know, I'll use exceptions!" ... now you have three.)

    This is not an easy problem to solve for non-trivial software, which is why bugs like this come up periodically.

  22. Re: every time i see "Ender's Game" on Ender's Game Trailer Released · · Score: 5, Interesting

    It's the deviations from the Hero's Journey that make a story interesting. The human brain is very good at looking for patterns; once a pattern is learned, the subtle changes away from the pattern are what provides the interest. This is how we distinguish faces, and it's why all Asians look alike to a westerner (the base pattern is tuned to one facial style, but Asian faces introduce more than just subtle differences from that pattern, which really throws things off).

    Also interesting reading, a list of examples of the Hero's Journey: http://en.wikipedia.org/wiki/List_of_monomyths

  23. Re:Climax on Ender's Game Trailer Released · · Score: 1

    Maybe the film will be nothing like the trailer, just like every other movie. I guy can hope, can't he?

  24. Re:Sequestration is a gimmick on FAA On Travel Delays: Get Used To It · · Score: 1

    Instead of cutting out the double cheeseburgers, we just removed all the tomatoes and lettuce. You know, the only parts that have any nutritional value.

    That's the point of the original comment in this thread, I believe.

  25. Re:So.... on Unanimous: Provo Utah Council Approves Google Fiber · · Score: 2

    Wikipedia says that Provo's population is 112,488. If you include surrounding communities it's 526,810 (but who knows how many of them would be reached). So, still not so good.