Better HN
topnewbestaskshowjobs
Log inSign up

nodesocket

6,537 karma · joined Mar 10, 2011 (15y ago) · 4,332 submissions

Building a trading journal that helps investors log, tag, and review their trades and market insights with clarity. https://marketdiary.io

HN'er since 2011 when PG responded and was active.

Other companies: NodeSocket, Commando.io, Elastic Byte.

Living in Nashville, Tennessee. Charlie Munger "there are three ways to go broke... liquor, ladies and leverage."

  - GitHub: https://github.com/nodesocket
  - justin [at] HN-USERNAME {dot} com
Submissions

comment 10y ago · link · parent

Just finished watching the film Before The Flood and the representative from India's Centre For Science and Environment really frustrated and upset me. She was blaming US consumption as the source of the problem and how we don't practice what we preach. Our air is not poisonous, we don't have 300 million citizens without power living in poverty. The US has some of the best and greatest companies working on energy (see Tesla) and it is time India stop blaming the US and start putting in the work on their own.

See the following short clip from the film: https://youtu.be/90CkXVF-Q8M?t=36m2s

comment 10y ago · link · parent

Ummmmm this is business 101. Does "product-stickiness" make you feel less disgusted?

comment 10y ago · link · parent

Perhaps a product still in development today.

comment 10y ago · link · parent

I don't think the virtual esc key is going to be an issue. The placement actually seems more convenient than the current esc key location.

I am going to miss a regular USB port and MagSafe.

comment 10y ago · link · parent

Nice, great information. Google Cloud has the networking model right.

comment 10y ago · link · parent

Take it easy. Let's encourage others and give feedback, not nerd rage on them for releasing their first web app.

comment 10y ago · link · parent

Honestly, I am shocked they were able to raise at all. I've used Postmates and Cavier a few times, but as soon as Uber Eats released, I haven't used either since. I exclusively use Uber Eats now and use it more frequently than I ever used Postmates or Cavier.

I have to guess the investors (Founders Fund - Thiel) know something I don't, because seems like a lost battle from my porch.

comment 10y ago · link · parent

You really shouldn't need more than a handful of load balancers (may one or two in a few different availability zones for HA).

You can even pay Amazon and NGINX hourly using the NGINX Plus AMI[1].

[1] - https://aws.amazon.com/marketplace/pp/B00A04GAG4/

comment 10y ago · link · parent

Put your NGINX state file on a shared disk (NFS) between all load balancers (something like AWS Cloud File Storage).

comment 10y ago · link · parent

You populate backends using the dynamic upstream_conf which saves state to a state file (see [1]).

    # add a backend
    curl http://127.0.0.1/upstream_conf?add=&upstream=backend&server=10.0.0.1:8000

    # remove a backend
    curl http://127.0.0.1/upstream_conf?remove=&upstream=backend&id=1
[1] - https://www.nginx.com/blog/dynamic-reconfiguration-with-ngin...

comment 10y ago · link · parent

Consul is great, but couldn't you just simply use NGINX Plus (paid) and utilize the upstream_conf[1], state[2] and healthcheck[3] premium features?

Sorry for the long code block below, but it is a full working example that has automatic health checks (adds and removes backends automatically) and a dynamic backend configuration that is persisted to a state file.

    http {
        proxy_next_upstream error timeout http_502 http_504;

        match statusok {
            status 200;
            body ~ "200 OK";
        }

        upstream backend {
            state /etc/nginx/backend-state/backends;
            zone backend 256k;
            keepalive 20;
        }
    }

    server {
        # dynamic upstream
        location = /upstream_conf {
            upstream_conf;
            allow 127.0.0.1;
            deny all;
        }

        location / {
            proxy_connect_timeout 15s;
            proxy_http_version 1.1;
            proxy_set_header Connection "";
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;

            proxy_pass http://backend;
        }

        # health check
        location /internal-health-check {
            internal;

            proxy_connect_timeout 15s;
            proxy_http_version 1.1;
            proxy_set_header Connection "";
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;

            proxy_pass http://backend;
            health_check interval=3s fails=3 passes=5 uri=/health match=statusok;
        }
    }
[1] - https://nginx.org/en/docs/http/ngx_http_upstream_conf_module...

[2] - http://nginx.org/en/docs/http/ngx_http_upstream_module.html#... [3] - http://nginx.org/en/docs/http/ngx_http_upstream_module.html#...

comment 10y ago · link · parent

Recently just built and deployed an enterprise (on-prem) offering for my startup https://commando.io.

The single biggest problem by far was ripping/replacing 3rd party SaaS services that we use/pay for with native code. While building a SaaS it is wonderful to use 3rd parties to save time and complexity. Examples include Stripe (payments), Rollbar (error tracking), Intercom (support/engagement), Iron.io (queue and async tasks), Gauthify (two factor auth)... Howerver, when you go to on-prem often times the servers don't have a public interface, so your entire application has to work offline.

2nd tip. While it may seem like a good idea to create a separate branch in your repo for on-prem (i.e. enterprise branch), this is bad idea. It ends up being much better to just if/else in the master branch all over the place:

   if(enterprise) {
       // do something
   }
If/else in the master branch is what GitHub Enterprise does as well (at least was told so).

comment 10y ago · link · parent

This is a Windows phenomenon only right? I'd just restore from Time Machine and go along on my way.

comment 10y ago · link · parent

For me, it is not acceptable to leak sensitive information about high rank political figures. --bring on the downvotes--

comment 10y ago · link · parent

Congratulations on shipping 5.0.0!

I am still sad though that Elasticsearch continues to operate but RethinkDB shut down. Just shows, business is just as important as tech.

comment 10y ago · link · parent

Sorry if I am being naive, but who is making sure these e-mails don't have sensitive information in them? For example, password reset requests or I don't know... perhaps national security information.

comment 10y ago · link · parent

When your building e-commerce not supporting IE 8 and 9 is lost revenue, potentially a decent chunk.

comment 10y ago · link · parent

Doing XHR CORS with IE 8 and 9 is infuriating. At first you're tempted to think, ok I can just use XDomainRequest.

Well, XDomainRequest is extremely limited. You can only send text/plain content-types (no JSON). You can't specify custom request headers and the source page and server must be using the same scheme. Basically, XHR CORS on IE 8 and 9 are essentially not possible.

comment 10y ago · link · parent

I'm growing so tired and weary of complaining and the continuous cycle of outraged on the internet. The latest example is Apple and the new MacBooks.

Tim, this is why leadership of companies at the top by "committee" doesn't work. You need a strong leader (type A) that is a dictator to silence the masses and guide the company forward. Otherwise, you get a million different voices speaking up thinking they are somehow instantly experts in a field.

comment 10y ago · link · parent

I agree, 32GB RAM should be an option.

comment 10y ago · link · parent

Map "esc" to caps lock should work.

comment 10y ago · link · parent

The base model of the 13" with touch bar price increases from the current $1399 to $1799. That certainly surprised me and is substantial.

Also, why would anybody buy an air now? It is worse in every possible category.

comment 10y ago · link · parent

Nice writeup. I do think this quarter is a bit misleading because of the 139million emission credit. Howerver, I believe they've done just enough to move the needle and support investor confidence.

By the way, huge fan of HashiCorp Mitchell. ;-)

comment 10y ago · link · parent

Fact check.... I spent nearly a month in Stockholm in July. Stayed with friends and none of them got close to 1Gbps. In-fact speeds were similar to mine here in San Francisco (50 - 100Mbps).

comment 10y ago · link · parent

I'd be really curious to hear what specific buggy hardware or annoying features of OS X are an issue for you.

I'll be the first to admit, the innovation in terms of using the latest and greatest hardware and software technologies has not been there for Apple. However, this has been the case for a long time since Apple does something genius. They let other companies test new markets, built first to market products, watch them struggle, refine, and evaluate the market. Then, when the timing is just perfect, and a frenzy has been created they release a new product. Their products are like the Mercedes-Benz of cars. Sure, they aren't as fast and high performance as Ferrari or Lamborghini, but they are quality built, reliable, familiar to owners, and pleasant to drive.

comment 10y ago · link · parent

Wow, compared to what manufacture do you think makes the best hardware then? Seems like you've got a personal rage with AAPL.
1
104105106
145