Better HN
topnewbestaskshowjobs
Log inSign up

notzorbo2

14 karma · joined Oct 24, 2015 (11y ago) · 5 submissions

Submissions

comment 11y ago · link · parent

You keep quoting this article, but ..

The sources are dubious (wired and telegraph). Experts quoted in the article claim its impossible, including the lead engineer of the boeing thrust management system:

> Whether it’s possible to create this condition by issuing a command from a passenger seat is a different matter, however. Soucie and others who WIRED spoke to agree with Boeing that this isn’t possible. But unlike Boeing, they provided clearer details explaining why. > >Peter Lemme, who was a lead engineer on Boeing’s thrust-management system for eight years until 1989, says the system provides the auto-throttle function that actually controls the engine thrust, and doesn’t allow the throttles for the engines to operate independently of one another.

You claim it's been "proven not to be the case". Extraordinary claims require extraordinary evidence. So far I've seen nothing from this Roberts guy. Sounds like he's just full of shit.

comment 11y ago · link · parent

You seem to be getting a lot of flack from people with 20-20 hindsight. For what it's worth, I have made the exact same assumptions you have when generating internal unique IDs in a distributed system purely for tracking purposes. The only difference was that mine was in Python and I got lucky that its random implementation uses a mersenne twister.

comment 11y ago · link · parent

This happens pretty often in the Python world. There's a bit of an unwritten rule to leave implementation details public that would be private in other languages. Many libraries simply don't bother with prefixing privates with '_' and just leave things undocumented that you probably shouldn't touch/use.

One notable example is importing libraries in your code automatically exposes them to the caller.

    $ cat lib.py
    import re
    
    def somefunc():
        pass

    $ python
    >>> import lib
    >>> lib.re
    <module 're' from '/usr/lib/python2.7/re.pyc'>
Many packages also do `import *` from files which polutes the package namespace with all kinds of stuff you really don't want in there. For example, the popular Requests package:

    >>> import requests
    >>> requests.logging
    <module 'logging' from '/usr/lib/python2.7/logging/__init__.pyc'>
The logging module is not a public part of requests' API. It's just there because requests uses it internally.

So to answer your question, I'd say it's just common practice. If it's undocumented in Python, you should pretend it doesn't exist.

comment 11y ago · link · parent

> Any Markdown editor worth its salt should have a permanent live preview

Perhaps devd¹ with livereload is a good option here?

¹) http://corte.si/posts/devd/intro/

comment 11y ago · link · parent

  You’re the one who
  must decide who’s
  to live and who’s to die.
  You’re the one who gives his
  body as a weapon of the
  war—and without you all
  this killing can’t go on.
That's from the Donovan song "Universal Soldier" (original by Buffy Sainte-Marie). Looks like some historian published it as a “mystery poem” in the Smithsonian magazine[1], not realizing it was just quoting song lyrics.

¹ http://buffysainte-marie.com/?p=809