Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    M

    Mikito Takada

    blog.mixu.net · Personal blog · on HN since 2010

    Mikito Takada writes about node.js, JavaScript patterns, benchmarking, WordPress setup and the startup mindset.

    Visit blogHN submissions
    Web DevelopmentProgrammingStartups
    What HN says

    HN commenters link his node.js event loop explanation to clarify how Node handles requests, plus his WordPress multisite and SSH tunneling guides.

    Stats for nerds
    19HN people shared it
    17linked in comments
    86story points
    Jun 2016last shared
    2010people per year2016

    Top posts on HN

    1. 1
      Understanding the node.js event loop
      9 people · 61 points · first shared 2011 · 3 comments on HN
    2. 2
      Essential Node.js patterns and snippets
      1 person · 7 points · first shared 2011 · Discussion on HN
    3. 3
      Javascript, node.js and for loops
      2 people · 6 points · first shared 2011 · Discussion on HN
    4. 4
      Writing about technical topics like it’s 2012
      2 people · 4 points · first shared 2012 · Discussion on HN
    5. 5
      Learning node.js: my experiences and helpful resources
      1 person · 2 points · first shared 2011 · Discussion on HN
    6. 6
      Using Open Source Software in projects: Beware of the passionate liars
      1 person · 2 points · first shared 2010 · Discussion on HN
    7. 7
      4 simple ways startup people deceive themselves
      1 person · 2 points · first shared 2010 · Discussion on HN
    8. 8
      How to deploy web applications using Mercurial
      1 person · 1 points · first shared 2010 · Discussion on HN
    9. 9
      Performance benchmarking a node.js backend
      1 person · 1 points · first shared 2011 · Discussion on HN
    10. 10
      How to watch hulu videos via ssh tunneling
      1 person · first shared 2012

    What HN people wrote when they linked it

    • blhackApr 2012

      First: node is freaking amazing. I've been writing python CGI on Apache for the last few years, but can easily see myself moving to:

      nginx -> Static html/javascript/images/css

      node.js -> API

      Apache -> old Python CGI stuff I still want (beautiful soup, for instance)

      To me, this stack is a lot more comfortable, and is a lot faster.

      ----

      Here are a couple of things that this tut misses.

      1) You need to talk to your database. This will become immediately apparent when you try to do anything. You can google around, which will lead you to stack overflow, or you can just listen to me right here and use "mysql".

      npm install mysql

      Easy.

      2) Callbacks. This is freaking huge. node will not make any sense to you if you do not understand this. For instance, if you have a function called "get_username()" (Hi! I have a function called get username, I'm speaking from a mistake I made about this!), and you call it like this:

      username = get_username();
      res.write("Hi, you are: " + username);
      res.end("buhbye!");

      Your page is just going to crash because username is undefined. This is because node is nonblocking. It doesn't wait for get_username() to return before continuing...meaning your server will end before get_username() finishes.

      This is a problem.

      So what you need to do won't make sense at first (and maybe I'm doing this wrong, correct me if I am).

      you would do:

      get_username(res);

      and then you would have:

      function…

    • TerrettaJun 2010

      If someone has a recommendation on the best method of configuring this for multiple domains (not subdomains) on a cloud host, I'd appreciate the pointer.

      I've found this:
      http://blog.mixu.net/2010/05/17/setting-up-multisite-wordpress-3-0-with-multiple-different-domains/

      Which references this:
      http://www.interconnectit.com/840/wordpress-3-0-multisite-with-multiple-domains-setup/

      These assume you can edit your Apache conf, and many cloud hosts don't support that.

    • latchkeyFeb 2013

      I think we are saying the same thing. When I say 'it is still only processing one request at a time', I'm referring to my code execution, not the async stuff or anything else within Node.

      I found this to be a good explanation...

      http://blog.mixu.net/2011/02/01/understanding-the-node-js-event-loop/

    • feralmoanJan 2012

      nginx supports http1.1 reverse proxying as of a few weeks ago http://wiki.nginx.org/HttpProxyModule

      Mikito Takada (Zendesk) has some really helpful information regarding socket.io + haproxy specific workarounds via http://blog.mixu.net/2011/08/13/nginx-websockets-ssl-and-socket-io-deployment

    • lobo_tuertoAug 2012

      I know this is a bit different, but maybe you could modify it a bit so you don't need sshuttle?

      http://blog.mixu.net/2009/05/05/how-to-watch-hulu-videos-via-ssh-tunneling/

      Just make your server listen for ssh on port 80 or 443, and then tunnel away!

    • vectorEQJun 2016

      This might be interesting for you. Sorry not Node expert myself, but it seems to touch some of your question.
      http://blog.mixu.net/2011/02/01/understanding-the-node-js-event-loop/

    Related

    Niko Matsakissmallcultfollowing.com221 people

    Towards a Rust Foundation

    Niko Matsakis
    Personal · last shared 2026
    2ality2ality.com267 people

    Temporal: Getting started with JavaScript's new date time API

    2ality
    Personal · last shared 2026
    Atlassian Developer Blogdeveloper.atlassian.com115 people

    A better pull request

    Atlassian Developer Blog
    Company · last shared 2026
    DailyJSdailyjs.com112 people

    Backbone.js: Hacker's Guide

    DailyJS
    Publication · last shared 2017
    codeburst.iocodeburst.io174 people

    Google’s Flutter = React and Java Swing

    codeburst.io
    Publication · last shared 2023
    Yogthosyogthos.net45 people

    Why I'm Productive in Clojure (2013)

    Yogthos
    Personal · last shared 2026
    Takipi Blogblog.takipi.com42 people

    Java Micro Frameworks

    Takipi Blog
    Company · last shared 2018
    Pony Fooponyfoo.com54 people

    The Controversial State of JavaScript Tooling

    Pony Foo
    Personal · last shared 2022