HNHacker News
TopNewBestAskShowJobs

michaelmcmillan

1,010 karma · joined June 5, 2012

https://michaelmcmillan.net
submissionscomments
michaelmcmillan··on “It’s hard to take risks if you don’t have a safety net”
It's not "what I think", it's what we know. One of the most well established facts in sociology is that IQ is the best predictor for life success: Firkowska-Mankiewicz, Anna, and Jerzyna Słomczyńska. Intelligence (IQ) as a Predictor of Life Success. https://www.jstor.org/stable/20628656

You reiterate my question in the second sentence: How do we weight these different privileges?

michaelmcmillan··on “It’s hard to take risks if you don’t have a safety net”
I guess you're smart enough to realize that was a typo :)
michaelmcmillan··on “It’s hard to take risks if you don’t have a safety net”
Induction gets you nowhere though: where did our privileged parents get their brains from? You're proving my point here: we inherit roughly 50% of our traits through our parent's genes.

I never claimed IQ was the best measure (surprised it looked like random noise though), but certainly our cognitive traits matter. So to my question: How do you distinguish that privilege from the privilege you got from your "class"?

Edit: Sorry if I came across snarky here, I appreciate your answer!

michaelmcmillan··on “It’s hard to take risks if you don’t have a safety net”
In which direction is causality flowing here, and how do you justify it? We didn't choose our brains––so how do we differentiate the privilege we got from our "class" from the traits we were born with?

Does privilege imply that you got it from your "class"? This seems like a classic nature/nurture fallacy.

michaelmcmillan··on A Tale of Query Optimization

    Then, for a small subset of data, I manually verified that all results were correct.
Where’s your test suite man? :)
michaelmcmillan··on Ask HN: What was your experience starting a tech consultancy?
Charge by the value you produce, not hours worked.
michaelmcmillan··on A 'Blockchain Bandit' Is Guessing Private Keys and Scoring Millions
Successfully guessing the correct combination on a padlock does not make it any less criminal when you decide to steal someone's bike.
michaelmcmillan··on Changes to Models S and X allow them to travel longer without larger batteries
A former Tesla employee, who worked on their IT infrastructure and whose NDA has expired, has revealed the technical shit show going on behind the scenes at Tesla. (I'm a Tesla fanboy as well, but this is scary).

https://twitter.com/atomicthumbs/status/1032939617404645376

michaelmcmillan··on You Don't Have to Like Assange to Defend Him
Congratulations on finding yourself in a bubble, where no argument can persuade you. Maybe you should watch the whole debate before declaring it one-sided.
michaelmcmillan··on You Don't Have to Like Assange to Defend Him
https://www.youtube.com/watch?v=UDnt_CYDiuE

This debate totally changed the way I look at Assange. So no, I don't have to defend him.

michaelmcmillan··on Paul Graham inspired the creation of Redis
A pattern is not specific to a language. Read again.
michaelmcmillan··on Paul Graham inspired the creation of Redis
I'll just take the opportunity to say how grateful I am that the idea of inventing Redis struck you -– regardless of how it originated. I use it all the time, both professionally and in my free time. Awesome piece of software. An idea is worthless by itself, execution is everything.
michaelmcmillan··on Paul Graham inspired the creation of Redis
Here's one I'm currently using in node (wrote it as another comment): https://news.ycombinator.com/item?id=19499799
michaelmcmillan··on Paul Graham inspired the creation of Redis
Hmm, I thought this pattern was really common? That is, appending everything to a file and reading back from the file when there's a reboot. I constantly use it when a database (or redis for that matter) is simply overkill for my use case.

Here's a 34 line implementation I use on a node production system. It writes struct-like JavaScript objects that represents events to disk. When reading it back I do a fold (or .reduce) to build the state.

And yes –– it could be way smarter (writing to memory and disk), but YAGNI has been working out pretty well so far.

  class EventStore {
    constructor(file) {
      this.file = file;
      this.cache = null;
    }
  
    async appendEvent(event) {
      // Purge the cache for entries since we mutated the store.
      this.cache = null;
      return new Promise((resolve, reject) => {
        createWriteStream(this.file, { flags: 'a' })
          .on('error', reject)
          .on('close', resolve)
          .end(`${JSON.stringify(event)}\n`);
      });
    }

    async readEvents() {
      if (this.cache !== null) {
        return this.cache;
      }

      try {
        const data = await readFile(this.file, 'utf-8');
        const lines = data.split('\n').filter(line => line);
        const events = lines.map(line => JSON.parse(line));
        this.cache = events;
        return events;
      } catch (error) {
        return [];
      }
    }
  }
michaelmcmillan··on The cortex is a neural network of neural networks
It is unlikely that our future scientific endeavours respect "What we know so far".
michaelmcmillan··on The cortex is a neural network of neural networks
Intelligent machines are not predicated on understanding the brain, necessarily.
michaelmcmillan··on Show HN: Expensive Chat – Pay one cent per letter
Hilarious! I just scraped all the domains and did nslookups on all of them to see which where expired. Then I registered the one with the largest area (milliondollarconnect.com occupied 1000 pixels) at x1, y1 = 710, 750 (the ad that looks like a glassy oval). Will report back on traffic.
michaelmcmillan··on WebDAV (2010)
Not all that related, but we found an exploit in Blackboard (the "virtual learning platform") by smuggling null bytes (0x00) via. their WebDAV protocol.

This made it possible to hijack other accounts, including our professors'. So we hacked our own grades and then reported it.

Blog post here: https://bustbyte.no/blog/how-we-hacked-blackboard-and-change...

michaelmcmillan··on U.K. Lawmakers accuse Facebook's CEO of leadership failure
Still a valid argument, nonetheless.
michaelmcmillan··on So you want to be a wizard
This was a really cool format for presenting your deck!
michaelmcmillan··on Who is horse_js?
This is journalism!
michaelmcmillan··on Powerful Photos of Life in the Old Glasgow Tenement Blocks – 1969-72
Read Enlightenment Now by Pinker!
michaelmcmillan··on A well-known URL for changing passwords
Allow me to change username/email while I'm at it!
michaelmcmillan··on Ask HN: Best Command-Line Applications?
nc - arbitrary TCP and UDP connections and listens

File transfer between machines:

    $ nc -l 1234 > filename.out
Using a second machine, connect to the listening nc process, feeding it the file which is to be transferred:

    $ nc host.example.com 1234 < filename.in
Or a simple web server:

    $ while true ; do nc -l -p 1500 -c 'echo -e "HTTP/1.1 200 OK\n\n $(date)"'; done
michaelmcmillan··on Show HN: Vespene – My new Python CI/CD and automation server written in Django
I would expect it has been easy, I’m talking about the way forward. I wish you the best of luck anyway!
michaelmcmillan··on Show HN: Vespene – My new Python CI/CD and automation server written in Django
Cool project! It strikes me that Django might not be the ideal for this project, have you thought about that? This logic [1] looks shoehorned into the framework.

[1] https://github.com/vespene-io/vespene/blob/master/vespene/mo...

michaelmcmillan··on Facebook Network Breach Impacts Up to 50M Users
I think they’ve been breached like this previously. What a mess.
michaelmcmillan··on TypeScript at Google
I share your view! Unfortunately, getting devs to write proper unit tests is – for whatever reason – difficult.

Types just smuggle themselves in with the rest of the program (granted they only cover a subset of the bugs tests do).

michaelmcmillan··on What's in a Production Web Application?
A lot of wisdom in there, but my god, why the overengineering? Keep it simple! You can serve hundreds of thousands of users only using Python's standard library (http.server and sqlite3 with an in-memory dict for caching).

Fewer pieces of the puzzle will let you quickly identify bottlenecks, instead of trying to anticipate them before everything breaks.

michaelmcmillan··on Xinu – A small, elegant operating system
Not mutually exclusive ;)
← PreviousPage 3 of 12Next →