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 10y ago · link · parent

An amazing journey from the distant edges of the universe (10^24) right down to subatomic particles (10^-16). A great demonstration of orders of magnitude, and a reminder of how small a part of space (both big and small) we occupy.

"This lonely scene, the galaxies like dust, is what most of space looks like. This emptiness is normal. The richness of our own neighborhood is the exception." - at 100 million light years

212.

Powers of Ten [video](youtube.com ↗)

3 points · by coderholic · 10y ago · 1 comment

comment 10y ago · link · parent

Details on the methodology are available here: http://w3techs.com/blog/entry/new_surveys_on_web_hosting_and...

214.

CloudFlare now has over 70% market share(w3techs.com ↗)

9 points · by coderholic · 10y ago · 2 comments

comment 10y ago · link · parent

They're not in the blog post, but they're in the full list with 1.2% market share (which happens to be the same as Linode's share): http://w3techs.com/technologies/overview/web_hosting/all

216.

Hosting Survey: GoDaddy #1, CloudFlare #2(w3techs.com ↗)

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

comment 11y ago · link · parent

It could use a single http lookup to http://ipinfo.io instead!

comment 11y ago · link · parent

Thanks for the tip. I've updated the comment to add the disclosure. Definitely not my intention to hide it though, it's clearly listed in my profile.

219.

HTTPie – a cURL replacement(github.com ↗)

19 points · by coderholic · 11y ago · 1 comment

comment 11y ago · link · parent

Not strictly a curl hack, but you can quickly get your IP geolocation details with curl and http://ipinfo.io (full disclosure, it's my service):

  $ curl ipinfo.io
  {
    "ip": "208.54.39.206",
    "hostname": "mce2736d0.tmodns.net",
    "city": "Los Angeles",
    "region": "California",
    "country": "US",
    "loc": "34.0522,-118.2437",
    "org": "AS21928 T-Mobile USA, Inc.",
    "postal": "90013",
    "phone": 213
  }
  
Or just your IP

  $ curl ipinfo.io/ip
  208.54.39.206
  
Or any other field (eg. city)

  $ curl ipinfo.io/city
  Los Angeles
  
Or lookup another IP

  $ 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.0838",
    "org": "AS15169 Google Inc.",
    "postal": "94040",
    "phone": 650
  }
Or a specific field for that IP:

  $ curl ipinfo.io/8.8.8.8/org
  AS15169 Google Inc.

comment 11y ago · link · parent

If you're interested in using the http://ipinfo.io API for this, so you don't have to worry about keeping your database up to date and you get additional details, let me know. I'd be happy to hook you up with a free unlimited plan specifically for this site.

comment 11y ago · link · parent

Amazing animation transitions on the buttons!

If you like this site you should also check out http://www.calm.com, which in addition to various ambient and nature sound/videos has guided meditation sessions.

223.

How a Russian Syndicate Scammed Us for $25K(empireflippers.com ↗)

54 points · by coderholic · 11y ago · 69 comments

comment 11y ago · link · parent

If you're interested in trying it out but don't know where to start then you might want to take a look at http://calm.com (I work there), or our mobile apps on android and ios (both called "calm").

comment 11y ago · link · parent

If you're interested in getting started with meditation, checkout http://calm.com, and our iPhone and Android apps (search the stores for "calm")

comment 11y ago · link · parent

Thanks for the recommendation. I just grabbed myself a copy of the 2005 edition from Amazon!

comment 11y ago · link · parent

That's interesting, I didn't know about these trusted authorities. Here are the IPs:

    $ curl -s https://gitweb.torproject.org/tor.git/plain/src/or/config.c | grep -Eo "([0-9]{1,3}\.){3}[0-9]{1,3}:" config.c | sed 's/://'
    128.31.0.39
    86.59.21.38
    194.109.206.212
    82.94.251.203
    131.188.40.189
    193.23.244.244
    208.83.223.34
    171.25.193.9
    154.35.32.5
    199.254.238.52
I get the same country list as you:

    $ cat ips | xargs -I% curl -s http://ipinfo.io/%/country | paste - ips | sort
    AT  86.59.21.38
    DE  131.188.40.189
    DE  193.23.244.244
    NL  194.109.206.212
    NL  82.94.251.203
    SE  171.25.193.9
    US  128.31.0.39
    US  154.35.32.5
    US  199.254.238.52
    US  208.83.223.34
And here are the organizations they're associated with:

    $ cat ips | xargs -I% curl -s http://ipinfo.io/%/org | paste ips -
    128.31.0.39 AS3 Massachusetts Institute of Technology
    86.59.21.38 AS8437 Tele2 Telecommunication GmbH
    194.109.206.212 AS3265 XS4ALL Internet BV
    82.94.251.203   AS3265 XS4ALL Internet BV
    131.188.40.189  AS680 Verein zur Foerderung eines Deutschen Forschungsnetzes e.V.
    193.23.244.244  AS50472 Chaos Computer Club e.V.
    208.83.223.34   AS40475 Applied Operations, LLC
    171.25.193.9    AS198093 Foreningen for digitala fri- och rattigheter
    154.35.32.5 AS14987 Rethem Hosting LLC
    199.254.238.52  AS16652 Riseup Networks

comment 11y ago · link · parent

I remember reading something very similar to this (but can't remember where, ha), where it said the important thing about reading is how if affects your general thinking rather than the individual pieces of information that you're likely to remember (or not).

I spent several years reading a ton of different books on economics and I can recall very few facts from those books, but it did and has completely altered my world view of many things.

pg's analogy of a program where you've lost the source code doesn't feel quite right, because you can't make modifications to the program without the code. Some sort of machine learning model seems more appropriate, where you've lost the original training data but can still update the model later with fresh data (a new book), and end up with a better/different model, but then lose that training data again.

comment 12y ago · link · parent

50% off any of the http://ipinfo.io geolocation API paid plans for 6 months. Offer valid until Dec 2nd:

https://ipinfo.io/pricing?coupon=blackfriday2014

comment 12y ago · link · parent

http://ipinfo.io API gets ~300M requests per month

comment 12y ago · link · parent

How did you make the demo? I'd love to put something similar on http://ipinfo.io

232.

Hacked for Android – The first mobile coding game(hackedapp.com ↗)

29 points · by coderholic · 12y ago · 4 comments

comment 12y ago · link · parent

Yes, and in fact you can just use sort's -u (unqiue) argument, and avoid uniq all together.

comment 12y ago · link · parent

A google for "japan government official website" turns up http://japan.kantei.go.jp. We can then use the ipinfo.io API to find out which network this is on:

  $ curl ipinfo.io/`dig +short japan.kantei.go.jp`
  {
    "ip": "202.32.211.142",
    "hostname": "No Hostname",
    "city": null,
    "region": null,
    "country": "JP",
    "loc": "35.6900,139.6900",
    "org": "AS2497 Internet Initiative Japan Inc."
  }
We can lookup more details at http://ipinfo.io/AS2497. It looks like lots of different organization share this network, including Coca-Cola, and a bunch of universities, so filtering based on this network is going to get us what we're after. You can also go to http://ipinfo.io/countries/jp and see all of the networks in Japan. There are a few that are government related, but there doesn't seem to be a main or single network that the government uses.

Things are easier in the UK where you have http://ipinfo.io/AS29214 (Houses of Parliament) or Ireland where you have http://ipinfo.io/AS15806 (Irish Government)

comment 12y ago · link · parent

You can absolutely customize your LP depending on the user's location by using http://ipinfo.io, eg:

  $.get("http://ipinfo.io", function (response) {
      if(response.country == "US") display_us_message();
      else if(response.country == "TR") display_turkey_message();
      else display_generic_message();
  }, "jsonp");
I'll send you a mail to see if you're proposing something else.

comment 12y ago · link · parent

Yes, experiencing the same from 67.188.232.131

comment 12y ago · link · parent

Here are details for all of the IPs in that doc:

  $ curl -s http://daserste.ndr.de/panorama/xkeyscorerules100.txt | grep -Eo "([0-9]+\.?){4}" | xargs -I% curl -s http://ipinfo.io/%
  {
    "ip": "193.23.244.244",
    "hostname": "No Hostname",
    "city": null,
    "region": null,
    "country": "DE",
    "loc": "51.0000,9.0000",
    "org": "AS50472 Chaos Computer Club e.V."
  }{
    "ip": "194.109.206.212",
    "hostname": "tor.dizum.com",
    "city": null,
    "region": null,
    "country": "NL",
    "loc": "52.5000,5.7500",
    "org": "AS3265 XS4ALL Internet BV"
  }{
    "ip": "86.59.21.38",
    "hostname": "No Hostname",
    "city": null,
    "region": null,
    "country": "AT",
    "loc": "47.3333,13.3333",
    "org": "AS3248 Tele2 Telecommunication GmbH"
  }{
    "ip": "213.115.239.118",
    "hostname": "No Hostname",
    "city": null,
    "region": null,
    "country": "SE",
    "loc": "62.0000,15.0000",
    "org": "AS2119 Telenor Norge AS"
  }{
    "ip": "212.112.245.170",
    "hostname": "No Hostname",
    "city": null,
    "region": null,
    "country": "DE",
    "loc": "51.0000,9.0000",
    "org": "AS24900 QSC AG"
  }{
    "ip": "128.31.0.39",
    "hostname": "belegost.csail.mit.edu",
    "city": "Cambridge",
    "region": "Massachusetts",
    "country": "US",
    "loc": "42.3646,-71.1028",
    "org": "AS3 Massachusetts Institute of Technology",
    "postal": "02139"
  }{
    "ip": "216.224.124.114",
    "hostname": "No Hostname",
    "city": "Aptos",
    "region": "California",
    "country": "US",
    "loc": "37.0082,-121.8777",
    "org": "AS40231 Ethr.Net LLC",
    "postal": "95003"
  }{
    "ip": "208.83.223.34",
    "hostname": "No Hostname",
    "city": "San Francisco",
    "region": "California",
    "country": "US",
    "loc": "37.7749,-122.4194",
    "org": "AS40475 Applied Operations, LLC",
    "postal": "94159"
  }{
    "ip": "128.31.0.34",
    "hostname": "moria.csail.mit.edu",
    "city": "Cambridge",
    "region": "Massachusetts",
    "country": "US",
    "loc": "42.3646,-71.1028",
    "org": "AS3 Massachusetts Institute of Technology",
    "postal": "02139"
  }

comment 12y ago · link · parent

Thanks!

comment 12y ago · link · parent

I launched http://ipinfo.io back in 2013 and when it hit 50M API requests a day early this year I decided to launch the paid plans, and it's been profitable ever since. It's now hosted across 2 providers in 3 different cities, and handles almost 100M requests per day with a p99 of less than 1s and p50 of less than 100ms. Expect more services and features later this year!

comment 12y ago · link · parent

Oh hey Andy - sorry, I forgot about the android version! Hope you're well! :)
1
789
13