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

151.

Taking an API Side Project to 250M Req/day with a $0 Marketing Budget(blog.ipinfo.io ↗)

3 points · by coderholic · 9y ago · discuss

comment 9y ago · link · parent

Heh so true - I've seen "dead butterflies" at least 3 times since reading this this morning! Enlightening and frustrating in equal measure!

comment 9y ago · link · parent

I heard Zuck give a talk where this came up. If I remember correctly, his board said he should take the money. He replied that all he'd want to do after selling FB would be to start another social network, so why not just keep working on the one he'd already got?

It wasn't amount the money.

comment 9y ago · link · parent

https://ipinfo.io - single person business that does over 250 million API requests a day, and generates good revenue.

comment 9y ago · link · parent

Right. I use doordash all the time, and pay $5 - $10 for delivery. It gives me occasional status updates on my delivery, but no real time tracking. I'd love to see this in doordash, and if it costs them $0.04 from the $5 fee it seems like a no brainer. Same for so many other similar services.

156.

The Curious Case of AS12389(bgpmon.net ↗)

3 points · by coderholic · 9y ago · discuss

comment 9y ago · link · parent

Here are more details on the AS that's doing the hijacking: http://ipinfo.io/AS12389

They have 78 other ASNs too (search for Rostelecom at http://ipinfo.io/countries/ru)

comment 9y ago · link · parent

It's not done because it'd mean less profit for the airline.

comment 9y ago · link · parent

https://letsencrypt.org/ - it works, and it's free!

comment 9y ago · link · parent

It was in reply to a comment mentioning how much the author has struggled, and my comment points that he had even more to deal with, with the tragic death of his son. Why is it crass, genuinely?

comment 9y ago · link · parent

The New York times article a few days ago was pretty bad, and I expect that made the scandals much more mainstream

comment 9y ago · link · parent

There seems to be a new scandal every day currently, and has been for a few weeks now since the Susan Fowler story broke: https://www.susanjfowler.com/blog/2017/2/19/reflecting-on-on...

comment 9y ago · link · parent

And his son (Chris in the book) was murdered in San Francisco!

comment 9y ago · link · parent

Even if you could fingerprint the location accurately, how do you know I'm there now, vs. capturing all of the information when I was there and replaying them later?

A much easier problem than "are you really where you say you are?" is "are you likely to be sending me fake locations?", which is hard to do with a single location update, but if the user is moving rapidly, or in geographically distant locations across multiple updates it's much easier to catch.

comment 9y ago · link · parent

"There are only two hard problems in CS : 1. Naming things. 2. Cache invalidation. 3. Off-by-one errors"

comment 9y ago · link · parent

Is that true? I've never read the SEC rules or looked into this in detail but my understanding was that information sharing only becomes a problem if you actually trade on that information (ie. insider trading). I didn't know the rules actually tried to limit what was shared. How does that work with employees etc, who will almost certainly have access to a lot of preferential information and many also be investors or significant shareholders? Would love to know more!

comment 9y ago · link · parent

Or if an API works for you, https://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.3860,-122.0840",
      "org": "AS15169 Google Inc.",
      "postal": "94035",
      "phone": "650"
    }

    $ curl ipinfo.io/8.8.8.8/org
    AS15169 Google Inc.
And ASN details are available on the web, eg https://ipinfo.io/AS15169

comment 9y ago · link · parent

For https://ipinfo.io I use:

    - helpscout
    - chartmougal
    - fastmail
    - github
    - Travis
    - hookfeed
    - AWS

169.

SpeedSmart.net Wireless network comparison(speedsmart.net ↗)

2 points · by coderholic · 9y ago · discuss

comment 9y ago · link · parent

Nice ipinfo.io mashup! This whole part

    dig +short myip.opendns.com @resolver1.opendns.com | xargs -I {} echo "ipinfo.io/"{} | xargs curl | grep loc | cut -d: -f2 | sed "s/,$//"
can be simplified to

    curl ipinfo.io/loc
which gives you exactly the same information, per https://ipinfo.io/developers

But ip geolocation usually gives you city or zipcode level accuracy, which may or may not be good enough to get an accurate uber estimate depending on how big your city/zip area is.

comment 9y ago · link · parent

I started playing with Google's BigQuery today, and it has StackOverflow and HN and GitHub datasets that make pulling data like this relatively trivial. I've been super impressed with it. Examples here: https://cloud.google.com/blog/big-data/2016/12/google-bigque... and some more at https://cloud.google.com/bigquery/public-data/stackoverflow

I just quickly hacked together this query which pulls out all amazon URLs in post answers:

    SELECT REGEXP_EXTRACT(body, r'[^a-z](http[a-z\:\-\_0-9\/\.]+amazon[a-z\:\-\_0-9\/\.]*)[^a-z]') AS link, COUNT(1)
    FROM [bigquery-public-data:stackoverflow.posts_answers] 
    GROUP BY 1 ORDER BY 2 DESC LIMIT 20
It takes 5 seconds to run - over ALL stackoverflow answers!

comment 9y ago · link · parent

This is great news. The reason we support IPv6 lookups but only over IPv4 connections on https://ipinfo.io is because we use AWS with VPC, which hasn't historically supported IPv6. Except many sites/services to add IPv6 now that were previously limited by this.

comment 9y ago · link · parent

The only mention of Mayer I can find is

> Each of David Filo, Eddy Hartenstein, Richard Hill, Marissa Mayer, Jane Shaw and Maynard Webb has indicated that he or she intends to resign from the Board effective upon the Closing, and that his or her intention to resign is not due to any disagreement with the Company on any matter relating to the Company’s operations, policies or practices.

Which indicates that she'll resign from the board, but doesn't say anything about her resigning as CEO. Is that just left off here because it doesn't require SEC disclosure, or is it a possibility that she'll stay?

comment 9y ago · link · parent

Just deployed a fix for this.

comment 9y ago · link · parent

JSON on back button issue fixed

comment 9y ago · link · parent

Thanks - great to have you as a customer!

comment 9y ago · link · parent

Cool thanks - I'll look into what might be causing the back button behavior.

> Im sorry but setting up a cronjob to download maxmind + include jars into project seems easier and faster than incorporating a third party web service.

Sure, if you've got the required sysadmin and dev skills, and a server to host the file. Not everyone does.

We also return additional data beyond geolocation, such as the ASN and hostname, and have additional optional fields such as company name and domain, and carrier details. You could download multiple databases and do it locally, but it's even more effort.

> about speed, since you call such a database yourself most likely, you are not gonna be faster than local lookup

Oh sure - it's not quicker than a local lookup - it's quicker than _other_ IP geolocation APIs.

comment 9y ago · link · parent

I'll send you an email!

comment 9y ago · link · parent

Thanks for reporting the back button issue. I've also seen this occasionally, but haven't seriously looked into it. Is this Chrome, or another browser?

> if I understand this correctly, ipinfo is basically a lookup in a db? What is the advantage of this over a local lookup, say with maxmind or similar?

There are 2 parts to that.

1) What's the advantage of using an geolocation API over a local database?

It's simpler. There's no need to download a database, or to remember to update it. You can call it from anywhere.

2) Why use ipinfo.io over other geolocation APIs?

The main 2 reasons are speed and reliability.

i) Reliability - we have multiple servers in auto-scaling groups all around the globe with auto-fail-over, and an excellent uptime record

ii) Speed - our API is designed to be extremely fast. We have servers on both US coasts, Germany and Singapore with geoDNS to route your request to the closest servers to reduce latency even further

comment 9y ago · link · parent

You can use as much CPU as you like - it was just a configured alert. I thought they were enabled by default, but perhaps not (you can turn them on at https://manager.linode.com/linodes/settings/).

I did initially add additional capacity at Linode, but eventually outgrew that. It'd been a long journey from the original Linode VPS to the current setup :)

1
567
13