Better HN
topnewbestaskshowjobs
Log inSign up

coderholic

2,752 karma · joined Mar 1, 2009 (17y ago) · 378 submissions

British software engineer living in Seattle, previously 5 years in the SF Bay Area.

Founder at https://ipinfo.io. Formerly Calm.com, Facebook, Lightbox and Mendeley. Father of 3.

You can get in touch via ben.m.dowling@gmail.com or follow me at https://twitter.com/coderholic

    $ curl ipinfo.io/8.8.8.8
    {
      "ip": "8.8.8.8",
      "hostname": "google-public-dns-a.google.com",
      "city": "Mountain View",
      "region": "California",
      "country": "US",
      "loc": "37.3860,-122.0840",
      "org": "AS15169 Google Inc.",
      "postal": "94035",
      "phone": "650"
    }
Submissions

comment 9y ago · link · parent

Interesting. Can you contact me with your IP address at ben@ipinfo.io and I can look into what might be going on here?

comment 9y ago · link · parent

I launched http://ipinfo.io a few years ago. The API gets over 250 million requests a day, and is profitable. I left my job at CTO of calm.com at the end of last year to focus on it fulltime. There's more of the backstory here: https://getputpost.co/from-side-project-to-250-million-daily...

comment 9y ago · link · parent

NewSQL has a specific meaning: https://en.wikipedia.org/wiki/NewSQL

comment 9y ago · link · parent

Yeah exactly this. Rate limiting isn't free. It's almost certainly more expensive to rate limit than to statelessly respond with the time.

comment 10y ago · link · parent

Link from profile: http://lafolie.co/

comment 10y ago · link · parent

It doesn't (first result is openDNS, second is google):

    $ dig -tA twitter.com @208.67.222.222

    ; <<>> DiG 9.8.3-P1 <<>> -tA twitter.com @208.67.222.222
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63973
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;twitter.com.			IN	A

    ;; ANSWER SECTION:
    twitter.com.		0	IN	A	199.59.148.82
    twitter.com.		0	IN	A	199.59.149.198
    twitter.com.		0	IN	A	199.59.148.10
    twitter.com.		0	IN	A	199.59.150.7

    ;; Query time: 14 msec
    ;; SERVER: 208.67.222.222#53(208.67.222.222)
    ;; WHEN: Fri Oct 21 11:53:40 2016
    ;; MSG SIZE  rcvd: 93

    $ dig -tA twitter.com @8.8.8.8

    ; <<>> DiG 9.8.3-P1 <<>> -tA twitter.com @8.8.8.8
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 47295
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;twitter.com.			IN	A

    ;; Query time: 13 msec
    ;; SERVER: 8.8.8.8#53(8.8.8.8)
    ;; WHEN: Fri Oct 21 11:53:47 2016
    ;; MSG SIZE  rcvd: 29

comment 10y ago · link · parent

You're right, it's definitely a bit of a rip-off, but

1) The Ministry of Sound logo is imitation of an official government ministry logo anyway, eg https://www.gov.uk/government/organisations/the-office-of-th... or https://www.gov.uk/government/organisations

2) The Ministry of Sound changed their logo: http://www.underconsideration.com/brandnew/archives/new_logo...

comment 10y ago · link · parent

You're definitely not a weirdo edge case, I think we all feel something like that around email, facebook notifications etc, and it's something we very consciously want to avoid in our product.

Each Daily Calm session is available for that day only, so you either listen to it or you don't. If you do come back to the app every day there's something fresh for you if that's what you'd like (you can of course to a regular session too). If you don't use the app on any particular day, no big deal, there's no backlog of content for you to stress about catching up with!

comment 10y ago · link · parent

[Disclosure: I'm CTO at Calm]

With Calm, there's new content every single day with our Daily Calm meditation. We've got more daily content coming soon too.

In addition to the content people also like us for our tracking features and daily reminders, which people consider valuable.

comment 10y ago · link · parent

Yes, it's @n. This is linked from the article: https://medium.com/@N/how-i-lost-my-50-000-twitter-username-...

comment 10y ago · link · parent

For good reason though. From Crockford:

> I removed comments from JSON because I saw people were using them to hold parsing directives, a practice which would have destroyed interoperability. I know that the lack of comments makes some people sad, but it shouldn't.

via https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaG...

comment 10y ago · link · parent

He does:

> Vulnerability is here. Falling valuations. Layoffs. Shifting geography.

He also isn't saying the winter is coming, but that things might be changing and we should be prepared if they do

> To reiterate, I’m suggesting preparing to make good decisions if the rules change drastically.

comment 10y ago · link · parent

Calm - https://www.calm.com/jobs | San Francisco, CA | full time | ONSITE

We're looking to hire an awesome engineer to lead development of our website, calm.com. Ideally you're a generalist with a passion for the frontend and great eye for beautiful designs and interfaces. As lead engineer on the website you'd get to decide what technologies are appropriate going forward, and have a huge amount of influence over both the technology and product direction of the website. Your influence will extend beyond just the website though, and as an early engineer at Calm you'll have get to have huge impact on the company. Email ben@calm.com if you'd like more details!

comment 10y ago · link · parent

They do click on the ad, and then they buy something. The parent is saying they don't care how many people click, they only care how many people buy (a subset of those that click).

comment 10y ago · link · parent

You can use https://ipinfo.io - either search at https://ipinfo.io/countries/us, or use the API (note the org field):

    $ curl ipinfo.io/`dig +short facebook.com | head -n1`
    {
      "ip": "69.171.230.68",
      "hostname": "edge-star-mini-shv-17-prn1.facebook.com",
      "city": "Menlo Park",
      "region": "California",
     "country": "US",
      "loc": "37.4590,-122.1781",
      "org": "AS32934 Facebook, Inc.",
      "postal": "94025"
    }
See https://ipinfo.io/developers for more details

comment 10y ago · link · parent

https://ipinfo.io/AS32934

You can also confirm this is the only ASN for Facebook by searching for Facebook at https://ipinfo.io/countries/us

comment 10y ago · link · parent

Yes, http://ipinfo.io/AS32934. True for most organizations: http://ipinfo.io/countries/us

comment 10y ago · link · parent

That might be the case for some companies and corporate profits, but certainly not all or even most. To give one example, Facebook's profits in 2015 were almost $4 billion. They share their carbon footprint details, and other environmental impact details at https://www.facebook.com/green/. Their environmental impact is small, and their profits enormous.

comment 10y ago · link · parent

Version that's possible to read:

"Rockefeller was relentless in ferreting out ways to cut costs. During an inspection tour of a Standard Oil plant in New York City, for instance, he observed a machine that soldered the lids on five-gallon cans of kerosene destined for export. Upon learning that each lid was sealed with 40 drops of solder, he asked, "Have you ever tried 38?" It turned out that when 38 drops were applied, a small percentage of the cans leaked. None leaked with 39, though. "'That one drop of solder', said Rockefeller,...'saved $2,500 the first year; but the export business kept on increasing after that and doubled, quadrupled--became immensely greater than it was then; and the saving has gone steadily along, one drop on each can, and has amounted since to many hundreds of thousands of dollars"' (Chernow 1998, pp. 180-81). Over the course of his career at the helm of Standard Oil, "Rockefeller cut the unit costs of refined oil almost in half" (Ibid., p. 150).

comment 10y ago · link · parent

There's also federal tax, which is around 25%. You then pay state tax on top. I moved to the US from the UK, and the total tax is roughly the same.

comment 10y ago · link · parent

It's a good question. I've been in touch with Maxmind's legal team before and they were happy with what we were doing, but that was before we had started building out our custom data.

My thoughts are:

1) We're not modifying the maxmind DB. We download their MMDB file and leave it completely untouched. Our code basically does something like this:

    if ip in custom_db
        return custom_db[ip]
    else
        return maxmind_db[ip]
2) Our database is openly available via our API. Anyone can access it without needing to signup etc.

They're the principles I've been operating under, but I'm not a lawyer, and I'll definitely go consult with one to get a definitive answer on where I stand with this. If it turns out that we're not meeting the license terms then we'll certainly make whatever changes necessary to ensure we do.

comment 10y ago · link · parent

That's one of the raw sources that go into the network data. There's also the routing tables (without which you can't always match ASNs to netblocks), other datasets, and a bunch of custom scripts that post-process the data, performing cleanup, heuristic matching and more. And then putting it all into a data format that supports handling 250 million requests a day, and serving over 90% of them in less than 10ms.

comment 10y ago · link · parent

Yeah, lots of custom data. See https://ipinfo.io/data for an overview

204.

From side project to 250M daily requests(medium.com ↗)

87 points · by coderholic · 10y ago · 15 comments

comment 10y ago · link · parent

You could try http://calm.com, or the Calm app (disclosure: I work at Calm)

comment 10y ago · link · parent

Updated.

comment 10y ago · link · parent

Thanks. I'll update the example.

comment 10y ago · link · parent

Yes we offer various different downloadable datasets. Reach out to ben@ipinfo.io or use our contact form if you'd like more details.

209.

Show HN: Ipinfo.io – ip details api(ipinfo.io ↗)

8 points · by coderholic · 10y ago · 4 comments

comment 10y ago · link · parent

Very nice UI! If you're looking for something similar via an API you can try my service http://ipinfo.io:

    $ curl ipinfo.io/8.8.8.8
    {
      "ip": "8.8.8.8",
      "hostname": "google-public-dns-a.google.com",
      "city": "Mountain View",
      "region": "California",
      "country": "US",
      "loc": "37.3845,-122.0881",
      "org": "AS15169 Google Inc.",
      "postal": "94040"
    }

    $ curl ipinfo.io/8.8.8.8/org
    AS15169 Google Inc.
    
It also supports lookup of IPv6 addresses (but not IPv6 connections, due to AWS). See http://ipinfo.io/about for more details
1
678
13