HNHacker News
TopNewBestAskShowJobs

samcrawford

1,347 karma · joined April 12, 2013

Based in London, UK.

Email: samcrawford at Google's mail service.

submissionscomments
samcrawford··on Show HN: Trail Router – generate running routes that prefer greenery and nature
Thanks! Cycling is on the to-do list. But I'm conscious it probably wouldn't just be a single category - there would need to be separation for road cycling and mountain biking.

The routing algorithm does already prefer roads with low speed limits, but there is definitely more that could be done in this space (e.g. a slider to set a preference to avoid higher speed roads). It also depends on the availability of speed limit data (I use the OpenStreetMap database).

samcrawford··on Show HN: Trail Router – generate running routes that prefer greenery and nature
I actually have. Watch this space - there should be direct route syncing to Garmin and Suunto before terribly long. In the meantime, you can export routes to GPX/KML files already.
samcrawford··on Show HN: Trail Router – generate running routes that prefer greenery and nature
Author here. Trail Router is a running route planner that prefers greenery and nature in the routes it generates, and biases against busy roads. It can generate round-trip routes that meet a specified distance, as well as point-to-point routes.

I've written a detailed blog post about how Trail Router works here: https://trailrouter.com/blog/how-trail-router-works/

I developed this because I am (or was...) a frequent traveller for work, and I like to run wherever I visit. But I don't enjoy running on busy main roads, and I found that without careful and time consuming route planning that is often what would end up happening if I didn't know the area. Trail Router is my solution to this problem.

After a previous discussion (https://news.ycombinator.com/item?id=23177351) received quite a lot of attention, dang reached out to suggest I post a Show HN to reach a wider audience. I've addressed some of the original feedback too - for example, you can now prefer hills in your routes, as well as avoid them.

samcrawford··on Has GitHub been down more since its acquisition by Microsoft?
Independent of whether it's been down more frequently since the acquisition, I find Github's status page reporting to be lacking. It's also quite generous with definitions of outages and downtime.

For example, on June 22nd they had an issue whereby half of their nameservers were responding with an empty answer for queries for github.com. A very nice explanation is here: https://news.ycombinator.com/item?id=23605409. So for roughly half of users (including myself) this would have manifested itself as a complete outage. It also lasted for a good couple of hours. Yet on their status page it's listed as a 46 minute degradation only.

So relying on their status page reporting to draw conclusions about availability (as Statusgator seems to) will mean that an overly optimistic picture of availability is presented.

samcrawford··on GitHub Is Down
I only posted this because I had some immediate insight into the nature of the issue - i.e. one of Github's two DNS providers seems to be having issues. Someone less familiar with DNS could learn a little by running the commands I put in the original post and seeing how the results differ. It might also be interesting to see how the reality of the issue translates into their eventual status page update.

In general though, I absolutely agree that generic 'X is down' messages with no further information are pointless.

samcrawford··on If you are a static maps user, I'd like your opinion on my free alternative
I'm getting a Heroku error when hitting the demo URL
samcrawford··on Show HN: Find journalists, bloggers and webmasters covering your niche
I like the concept, and signed up to give it a try. I searched for "running route builder", and after about 15 minutes it just showed "Error". I'm keen to actually give it a try though if this can be corrected!
samcrawford··on Adobe to remove Flash Player from web site after December 2020
On point 2: socket programming hasn't caught up to the same level of performance as Flash had. Try sending or receiving gigabits per second with WebSockets. In my own tests last year on reasonably modern hardware with a 10Gbps Intel NIC, Chrome was the worst performer (around 3Gbps before the CPU was completely saturated), and Edge was the best at around 5.5Gbps. I didn't compare with Flash last year to be fair, but historically it was much better. A native app on the same hardware was generating 10Gbps over the network at <20% CPU usage.
samcrawford··on Linux 5.7
Already being discussed here (10 hours ago, and with a lot more comments): https://news.ycombinator.com/item?id=23375003
samcrawford··on Ask HN: What's your quarantine side project?
Undo button is now live!
samcrawford··on Ask HN: What's your quarantine side project?
An undo button will be added soon, you're not the first to ask.
samcrawford··on Ask HN: What's your quarantine side project?
So far I'm still within the free tier, so nothing at all.
samcrawford··on Ask HN: What's your quarantine side project?
Thanks very much for the kind words! I wasn't sure if others would find the technical details of this topic interesting (it's my first foray into GIS work), but it sounds like they would, so consider a blog post in the works.
samcrawford··on Ask HN: What's your quarantine side project?
Thanks! In rough order of priority:

* Add sliders for setting greenery and hills preferences (so you can _prefer_ hills, rather than just avoid them)

* Add support for preferring particular surfaces (e.g. tarmac vs trail)

* Add support for creating distance-specific round-trip routes that pass through one or more waypoints (at the moment you can only specify a start/stop location for round-trip)

* Sometimes round-trip routing suggests some very complex routes which would be hard to follow when running. Some work could go into simplifying such cases.

* Improve the UI/UX, it's still quite fiddly, especially on mobile

More distant:

* Cycling support

* Native mobile apps (there are already mobile apps for Trail Router, but they're basically WebViews)

* Offline routing support in the mobile app?!

* Direct sync'ing of routes to watches/Strava would be nice, but there's no open APIs for this yet.

If you have any other suggestions feel free to chip in!

samcrawford··on Ask HN: What's your quarantine side project?
Thanks! There is an option in the settings menu to "Avoid hills", and in the not-too-distant future that will become a slider that allows you to prefer hills or avoid them.

It's not open source yet, but I might open it up in the future. There's a donate link hidden away in the About page. Any donation would be much appreciated, and would help with the server costs (it needs a huge amount of RAM to store the whole planet's data).

samcrawford··on Ask HN: What's your quarantine side project?
I wrote a long reply to someone on the Graphhopper forum who was trying to do similar to you. This may be helpful: https://discuss.graphhopper.com/t/can-someone-make-a-video-t...

I'll probably write a blog post on how it's built though - there's quite a lot going on under the hood!

Supporting cycling is a possibility for the future. I don't think you'd want to absolutely exclude non-cycleways (as it might make many routes impossible), but you could certainly weight very heavily against them and show on the map which parts of the route were dedicated to cyclists vs which were not.

samcrawford··on Ask HN: What's your quarantine side project?
Detailed answer here: https://trailrouter.com/about/#the-route-being-suggested-inc...

There is a setting in Trail Router to "Avoid Potentially Unsafe Roads" which makes it much more conservative about road choices.

It uses OSM data for routing information, but this is quite poor for pedestrian safety (particularly in the US it seems, where some 'secondary' roads are very safe, and others are death traps). There are specific tags for foot access and sidewalks, but they are rarely used outside of cities. Crossing the I-95 should only be done if there's a bridge going over it, it should never take you across the lanes of traffic (!). If it does, please do email me a link to the route if you don't mind.

samcrawford··on Ask HN: What's your quarantine side project?
Thanks! It's already supported. On the left-hand menu, click on the share/forward icon, and there's an export to GPX and KML option there.
samcrawford··on Ask HN: What's your quarantine side project?
Oops, that was broken in a recent base map layer update. Fixed now. Sorry!
samcrawford··on Ask HN: What's your quarantine side project?
I'll publish the source on Github later today and will reply here. It's a very simple Java app, which scrapes and extracts page content using Jsoup.
samcrawford··on Ask HN: What's your quarantine side project?
I have two:

1) Trail Router (https://trailrouter.com) - This is a running route planner that favours greenery and nature in the routes it generates. It can generate point-to-point or round-trip routes that meet a specified distance. I developed this because I am (or was...) a frequent traveller for work, and want to run in nice areas rather than by horrible busy roads when I'm visiting somewhere new. Naturally, the utility of this tool is limited at the moment for people stuck in lockdown!

2) Fresh Brews (https://twitter.com/FreshBrews_UK) - I've been touring the UK's finest craft beer breweries from my own home in recent weeks. New beer releases sell out very quickly and I was frequently missing out. Fresh Brews is a simple bot that monitors the online shops of my favourite breweries and posts when a new beer is released to the shop, or an item comes back into stock.

samcrawford··on Ask HN: Is your company sticking to on-premise servers? Why?
Cost is the sole reason for us as well. We have ~600-700 dedicated servers around the globe, and generate a lot of egress traffic (~20PB/mo). We last ran the figures a year or so ago, and it'd cost us around 13-15x in network costs alone.

A common thread of a lot of the replies to this post is network traffic costs. If one of the cloud providers can figure out a way to dramatically (and I mean at least 10x) reduce their network transfer pricing, then I think we'll see a second wave of companies adopting their services.

samcrawford··on Google Pixel Buds
"Get real-time translations right in your ear". This immediately made me think of the babelfish from Hitchhiker's Guide. Looking forward to reading some reviews of these.
samcrawford··on Valve and HackerOne: how not to handle vulnerability reports
I've reported one bug to HackerOne so far, which was a bug with Wordpress that allowed you to access the title of unpublished posts. Months went by with no reply, despite clear demonstrations of how it could be exploited.

Eventually I demonstrated the attack on Techcrunch's site to a Techcrunch reporter, showing him the titles of their upcoming news stories for the coming week, including embargoed news. They got in touch with HackerOne/Wordpress and it finally got resolved a month or two later.

I don't feel like HackerOne added anything positive to the mix, other than a layer of confusion/delay.

samcrawford··on Launch HN: Fly.io (YC W20) – Deploy app servers close to your users
We use StackPath in a similar capacity to the one being pitched here. They support both containers and VMs, and have a very good spread of locations. Their heritage is a CDN - they were formerly MaxCDN and Highwinds - so their connectivity to eyeball networks is excellent.

We had some minor reliability issues with the edge platform early on, but their support and responsiveness was excellent.

We are very happy with them!

samcrawford··on Project Svalbard, Have I Been Pwned and its ongoing independence
Having been through a similar process with KPMG (that ended similarly), I can confirm that they operated on a retainer basis and it did need to be re-upped from time to time. The vast majority of their remuneration was a success fee though. This is pretty standard for the industry.
samcrawford··on AMD Launches Ultra-Low-Power Ryzen Embedded APUs
Our company provides network measurement devices and services (typically used on the internet). We benchmark internet connections, effectively. With some internet connections exceeding 1Gbps these days, we need hardware capable of measuring above 1Gbps. Here's an article that describes our use of this 10Gbps SOC in a little more detail: https://samknows.com/blog/arris-and-virgin-media-test-new-10...
samcrawford··on AMD Launches Ultra-Low-Power Ryzen Embedded APUs
We use the Marvell Armada 8k SOC (quad core ARMv8, clocked at 1.6GHz) in an embedded board. We can sustain 10Gbps TCP throughout to the CPU on that with around 60% CPU usage on a single core. Bear in mind that these are all large packets (1500 bytes), and it's much harder to achieve this will small packets.

I'd be pretty surprised if at the 1.5GHz part couldn't handle the same.

samcrawford··on Let's Encrypt Has Issued a Billion Certificates
I don't mean to nitpick, but exponentially? Really?
samcrawford··on Cloudflare silently deleted my DNS records
I'm on their free plan and have never had an issue. They also send me warnings letting me know I'm at 50% of my free usage, which is a nice touch.
← PreviousPage 3 of 7Next →