Why does News.YC show xyz.domain.com as just domain.com? Eg:
blog.flickr.com
Though I notice that it sometimes does (abstractfactory.blogspot.com shows the full domain) and sometimes doesn't (james.hotornot.com shows as "hotornot.com").
blog.flickr.com
Here's the PHP I use to derive domain + subdomain: function getDomain($URL) { $Parsed = parse_url($URL); $Parsed = str_replace('www.','', strtolower($Parsed['host'])); return $Parsed; }
Not likely to be very helpful to PG, since HN is Lisp. Nonetheless, maybe someone else could use it.
blog.flickr.com is still Flickr. Obviously there can be problems with this, but it's generally true.