HNHacker News
TopNewBestAskShowJobs

eadan

339 karma · joined March 19, 2018

submissionscomments
eadan··on Radiotrophic fungus
Paul Stamets is a fascinating person. You're right, the Star Trek character is named after him [0]. I remember hearing, perhaps in the Joe Rogan podcast, that he consulted for the show. He has a brilliant TED talk on the world-changing potential of fungi research [1].

[0] https://www.cbc.ca/news/canada/british-columbia/paul-stamets... [1] https://www.youtube.com/watch?v=XI5frPV58tY

eadan··on The German Tank Problem
People have used a similar strategy to estimate iPhone production [0].

[0] https://www.theguardian.com/technology/blog/2008/oct/08/ipho...

eadan··on The German Tank Problem
It's actually fairly straightforward to derive the estimators by hand [0]. It's just a bit tedious to do in a blog post.

[0] https://en.wikipedia.org/wiki/Discrete_uniform_distribution#...

eadan··on The German Tank Problem
I implement the Bayesian solution in pymc3 at the end [0].

[0] https://www.eadan.net/blog/german-tank-problem/#probabilisti...

eadan··on Write yourself a Git (2018)
When using argparse, I find subparsers [1] useful in these situations.

  import argparse
  
  def add_file(file):
      print('Added ' + file)
  
  def main():
  
      parser = argparse.ArgumentParser()
      subparsers = parser.add_subparsers(title='Sub Commands')
  
      # add parser
      add_parser = subparsers.add_parser('add', help='Add a file')
      add_parser.add_argument('file', help='File to add')
      add_parser.set_defaults(func=lambda args: add_file(args.file))
  
      args = parser.parse_args()
      args.func(args)

[1] https://docs.python.org/3/library/argparse.html#sub-commands
eadan··on Ask HN: Working remotely in Portugal for an Irish company
This is a serendipitous discovery! I'm also a data scientist working for an Irish company in the process of moving to Portugal. My email address is in my HN profile if you want to talk.
← PreviousPage 2 of 2