Slashdot Mirror


User: tzot

tzot's activity in the archive.

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

Comments · 344

  1. Re:what I did on Learning Programming In a Post-BASIC World · · Score: 1

    Um. One would write this class:

    class Accumulator:
            def __init__(self, value=0):
                    self.data = value
            def add(self, other):
                    self.data += other

    because an Adder is just

    my_adder= value.__add__

    or

    import functools, operator
    my_adder= functools.partial(operator.add, value)

  2. Re:what I did on Learning Programming In a Post-BASIC World · · Score: 1

    > Without a doubt, python should be the goto language for newb, wannabe programmers. Pssst - see what I did there.

    http://entrian.com/goto/

    One of the best April fools' prank I've seen; just like that April Fools' day, when Google announced the eternally expanding storage space for GMail. They're still expanding.

  3. Re:what I did on Learning Programming In a Post-BASIC World · · Score: 1

    I really believe you should also mention that in Python there is the following option:

    from __future__ import braces

  4. Re:what I did on Learning Programming In a Post-BASIC World · · Score: 1

    if a != b: do something; and even more;

    or

    if(a!=b):do_something;and_even_more;

    These are valid python statements. You can also (and typically do) omit the final semicolon. You talk about a requirement that isn't exactly what you think it is.

    And you mean "utter nonsense" to and for you. Many a programmer have erroneously added an indented second line to a braceless C if-statement (usually somebody else's code), expecting the obvious. Of course, you might say that you are a very thorough programmer and you'd never make this misteak, and those that did are not worthy of the "programmer" title, but then you would justify my point at the start of this paragraph.

    PS since I don't want to make you run to the python documentation just to find another ugly construct, here is some help:

    if a!=b: do_this
    else: do_that

    Ugly, I know. Nobody in their right mind does that, though, and python isn't the only language that, if insisting enough, one can write attrocities in.

  5. Re:Tablets != Desktops on Tom's Hardware Dissects Ubuntu 11.4's Interface and Performance · · Score: 1

    It is a sad day, indeed, when a "unix user" can't click on a drop down box at login and see what other options are there. "Ubuntu Classic? Hm. Let me click that."

  6. Re:Speed on Massive Explosion On the Sun · · Score: 1

    I assume it's in fast forward; given the size of the Sun itself, the gas seems to move/expand at relativistic speeds or faster (light needs ~4.64 seconds to run along a Sun diameter).

  7. Re:Let me say on Voyager Set To Enter Interstellar Space · · Score: 1

    > Although, there are a few things that could be done to improve some reliability, even in old c++. Although I'm sure there might be difficulties with platforms other than x86. Like using -1 instead of 1 as "true". Thereby having all 1's set instead of a single bit which, in theory, could change.

    Consequently using 0 as "false". Thereby having all bits reset when a single bit, in theory, could change.
    Where's the reliability in that?

    That's why you use triple identical systems and select as result the majority's vote.

  8. Re:AAHAHAH!! on An Autonomous Sailing Robot To Clean Up Oil Spills · · Score: 1

    > And how much can one such an "eel" carry? Coke can of oil? No... no this will not do.

    Um. Of course this will not do. This is a prototype. Nobody intends to unleash countless prototype-sized Protei into the sea. Their target is to make 10-20 m long Protei.

    Just read their site, and then you can try to come back with other failings of larger Protei in order to validate your unbased initial "this will not do".

  9. Re:Nope on Ask Slashdot: Huge Digital Media Libraries · · Score: 1

    > I'm guessing getfattr is in the core-utils-american metapackage?

    You're mean. Mean.

  10. Re:Uh... on Mirah Tries To Make Java Fun With Ruby Syntax · · Score: 1

    What a hypocrite!

    Were you this negative about the Queen before she made you a Sir?

  11. Re:What does $1/W mean? on Ariz. Team Seeks Fossil-Fuel Cost Parity, Using Solar Energy Concentrators · · Score: 1

    > In the US, only the kilowatt is a unit of energy.

    I thought that a watt was a unit of power, not energy, everywhere in the world. Power multiplied by time (e.g. the kilowatt-hour unit) is energy.

  12. Re:skynet on Ants Build Cheapest Networks · · Score: 1

    No, Jeopardy-player Watson.

  13. Re:Energy requirements? on The Prospects For Lunar Mining · · Score: 1

    While I agree that "selenothermal" would be more consistent, mixing greek and latin to produce words is quite common in English ("heterosexual" comes to mind, there are many other examples).

  14. Re:Idle? on Doctor Marries Doctor's Daughter, TARDIS Explodes · · Score: 1

    Your typical random soap opera has no time-travelling paradoxes, and the typical DNA related questions in soap operas is "who's the father?", not "who's not the same person in this marriage?" so the answer to both your questions is "no". There's already a BadAnalogyGuy username here, so you might consider taking a TotallyUnfortunateAnalogyGuy username for you. Try cars next time.

    Even if you understood what almost everyone found funny and geek-worthy news, you're obviously way past the point of admitting it, and my answer here won't help either.

  15. Re:Pixelated Nudity on Playmate Photo From Apollo 12 Up For Auction · · Score: 1

    I thought it was "Alas, I'm dying beyond my means" while sipping champagne.

  16. Re:Idle? on Doctor Marries Doctor's Daughter, TARDIS Explodes · · Score: 1

    No, celebrity gossip would be that Mila Kunis intended to go on vacation with Macauley Caulkin but she absent-mindedly left him back (and even that would hide a minor geek-friendly joke).

    You see, the summarized issue here is: "Except that the Doctor's daughter was a clone of the Doctor, which meant that she really was Who. So a newer Doctor is marrying an older Doctor's daughter, who is a clone of the newer doctor, but only has half the DNA of the older Doctor", which is very geek-worthy news.

    Unless you don't see, of course.

  17. Re:Doctor, doctor on Doctor Marries Doctor's Daughter, TARDIS Explodes · · Score: 1

    > Doctor, doctor, give me the news. I got a bad case of lovin'... who?

    Exactly.

  18. Re:The customer is not always right in Greece on Apple Support Company Sues Customer For Complaint · · Score: 1

    The conclusion is that Alex was kind of disabled (can I say "responsibility-challenged"?), so he had a right to park there in the first place, so the blame was on the guy that deflated the tire. Ergo, not Alex' fault. :)

    (Yes, I'm Greek too, and I'm using sarcasm; forgive my taking the liberty, the word being greek and all...)

  19. Re:Anonymous Coward on Apple Support Company Sues Customer For Complaint · · Score: 1

    > Apple has nothing to do with this. This company is a third-party repair shop with a certification to work on Apple hardware and purchase spare parts.

    - Apple has *nothing* to do with this.
    - Apple *certified* the repair shop to work on Apple hardware.

    See what I did there? I know what you meant, but I also know what you wrote. Yes, the title is slanderous; no, Apple has a share of the responsibility.

    A third-party repair shop could be the only after-sales connection between Apple and a customer. What exactly are the criteria for Apple to certify a repair shop? And what procedures are defined, ensuring that the third-party service stands up to the challenge set by Apple's highly-valued customer satisfaction?

  20. Re:The things that must never be said... on Our Lazy Solar Dynamo — Hello Dalton Minimum? · · Score: 1

    I bet you speak from first-hand experience. Or isn't your first name Valentine?

  21. Re:This is the 21st century for Frak's sake on Stargate Universe Cancelled · · Score: 1

    > ...before we finally get away from the middle man?

    You mean with something like this, I presume?

    http://www.pioneerone.tv/

  22. Re:good on Stargate Universe Cancelled · · Score: 1

    I see you said nothing about the "All you zombies"... er, loop (or it might not be a loop, but I have zero knowledge of naval or boy-scout terminology in English.)

  23. Re:Has the NYT bailed already? on Designer Arrested Over Anonymous Press Release · · Score: 1

    Dude... fix *your* fonts.

  24. Re:Do not want on Aging Reversed In Mice · · Score: 1

    > there are already 6 billion of us here, and that number will only increase, and there are only so many mouths we can feed & bodies we can clothe

    Sword sales could be dramatically increased, though, accompanied by epic duels in various places around the world.

  25. Re:Unless on Gold Nanoparticles Turn Trees Into Streetlights · · Score: 1

    "Numb and number", directed by Georg Cantor. Not that big a hit in the box office.