HNHacker News
TopNewBestAskShowJobs

lbutler

236 karma · joined May 11, 2018

I make water distribution network models for water utilities.

Check out the software I make to help me build, run and calibrate models:

https://github.com/modelcreate/

https://github.com/lbutler/

https://epanetjs.com

luke at iterating dot ca

submissionscomments
lbutler··on Ask HN: What's your quarantine side project?
I've mostly been learning/practicing my French.

My wife is due to have our first child in six weeks and she is keen for our children to speak French and English.

Besides all the benefits of being bilingual, I mostly fear my wife and children will tease me in French with me none the wiser!

lbutler··on Ask HN: How come there is no example code for B2B-SaaS apps?
Have you considered Laravel Spark?

https://spark.laravel.com/

lbutler··on Ask HN: What interesting problems are you working on?
I simulate water distribution networks.

I create computer models of water networks and calibrate them so utilities can do what-if and growth scenario planning. (e.g. what happens if this pipe burst? how would the network cope with 20k new houses in 40+ years)

I'm also developing software to help water engineers build and run models, some of it opensource and some of it commercial.

I'm currently pushing most of my effort into an opensource javascript library to simulate water networks.

lbutler··on Show HN: Epanet-JS – Simulate a water distribution network in JavaScript
The core engine for this library is EPANET which the US EPA released in the public domain many years ago.

Extremely niche as I don't suspect there will be many engineers simulating water networks but every water utility will do this at some level.

Usually, utilities will use commercial applications such as InfoWater or WaterGEM which use the same engine and charge between $5-$20k per licence to water utilities.

I wanted to try and make the original C library easier to adapt to the web, so I compiled it to JavaScript and created an API that manages all the memory for you.

There are simple demos linked on the readme, and also some links to some larger React apps I've created.

lbutler··on How much are your US insurance premiums for self-employed people?
As a self-employed person who has lived in Australia, the UK and now Canada this thread is eye-opening.
lbutler··on The Great American Eye Exam Scam
When my wife needed new glasses, our benefits were capped at $400, including the eye exam. I can't remember the exact numbers, but after the exam, there was roughly $250 left, and all the glasses started around $400 in-store. After a few minutes getting the sales pitch and everything being framed as the gap payment, "Oh these will only cost you $150!" my wife said "Can I get my prescription, I'm going to go somewhere cheaper" and all of a sudden all the prices dropped in half. She ended up getting her pair without paying anything out of pocket.
lbutler··on The Great American Eye Exam Scam
> - One free eye exam each year covered by Medicare

Only if you're over 65! Otherwise its one exam every three years for a standard exam. [1]

It's been a while since my last check, but last time I went they did try upselling to some more advanced scan that wasn't covered by medicare.

Either way, still think we're doing something right in Australia but having this base coverage for everyone.

[1] https://www.humanservices.gov.au/individuals/subjects/whats-...

lbutler··on Tools I Recommend for Building Geospatial Web Applications
I would suggest starting with something static if you're just starting out. Best way to get a feel for how it works without having to worry about setting up a spatial database.

I used this article myself to learn: https://geovation.github.io/build-your-own-static-vector-til...

There are a couple more articles at the bottom of the awesome vector tiles I linked to before but haven't read them myself.

Reading through the list is good as well because it's a good overview of the whole ecosystem.

Edit: This article also shows a simple way to dynamically serve vector tiles directly from PostGIS. I didn't realise you could do it without the middlewear, time to look into doing it this way!

https://medium.com/nyc-planning-digital/using-the-new-mvt-fu...

lbutler··on Tools I Recommend for Building Geospatial Web Applications
If your data set isn't dynamic you don't even need a tile server. You can generate the tiles with tippecanoe [1] and serve them straight out of S3.

When things get too large you can keep them in the mbtile file and serve them out with an express app.

I've done it in a severless environment which scales well but would get crazy expensive for any high use.

[1] https://github.com/mapbox/tippecanoe

lbutler··on Tools I Recommend for Building Geospatial Web Applications
If you want to use vector maps you should also check out Mapbox GL JS. I use their tiles but can use other providers or generate and host your own, which I also do.

I've been making spatial apps for probably 8 years now and moved from Google maps and Leaflet towards vector maps and I don't think I'd ever go back.

https://github.com/mapbox/awesome-vector-tiles/

lbutler··on Ask HN: Germany vs. Canada for Tech Jobs?
If you wanted to springboard off one Citizenship to get into the US, you could go to Australia, and then you get access to the E3 visa.

Though as an Australian living in Canada and running a business here, I hope you would stay and reward the country that accepts you as a PR.

After having lived in the UK and also seen my countries hostility towards migration, it was a breath of fresh air to see how progressive the Canadian immigration process is.

lbutler··on I built a wind map with WebGL (2017)
I am just adding a second thanks for all the work you've done for the mapping community. I've made a decent amount of spatial apps over the years, and they wouldn't be possible without your work with Mapbox GL JS, Leaflet and the algorithms you've shared.
lbutler··on Founders: How did you come up with your startup ideas?
I scratched my own itch.

I've worked for about ten years as a civil engineer in the water industry; I create computer models of water networks for utilities. The software is expensive, and the UI/UX is terrible, typically of software for large corporations.

Part of building a model is calibrating it against real-life data, to do this you restricting valves or roughen pipes in the model. While a model simulation only takes a fraction of a second, validating results can take a minute or two because of the bad UI/UX.

I create a web app to simulate the water model in your browser and for it to run as you make changes with all the relevant data upfront.

https://calibrate.modelcreate.com/

I had a project with 80 hours set aside for calibration; I completed it all in 8 hours with my app.

I'm testing the market now to see if others would want to use it. If so, then I will look at commercialisation options and see if it's worth developing further. (Sorry for a LinkedIn post below, this is where all the civil engineers hang out, and I've already got some validation on it)

https://www.linkedin.com/posts/lukepbutler_water-infoworks-e...

Work long enough in an industry, and you will find endless ideas to work on, the only question is will people use them and also pay for it.

lbutler··on Squirrels Are the Number One Culprit for Animal Damage to Aerial Fiber
While we don't have squirrels in Australia, we're not immune to this problem either! Cockatoos, a native parrot, love chewing up our fibre lines.

https://www.nbnco.com.au/blog/the-nbn-project/a-uniquely-aus...

lbutler··on Drinking Water Is Staying in Pipes Longer
I build hydraulic models of water systems for UK utilities (but live in Canada), one of the things we look at in the model besides the performance of the network is the age of water.

In the UK, pipes are sized based on the needs of the domestic demand, while capacity for fire flow is not considered. While in North America the opposite is done, where the network, including capacity in tanks and pressure within the network, must take into account fire flow requirements. (The attached EPA document goes into this in more detail)

While a UK residential street may be supplied by a 100mm main, the same street in the US may need a 200mm main. That's a four-time increase in volume that needs to be turned over in the pipe for just a little street!

I have seen design documents for North American towns requiring flow rates of 50-90l/s to protect a single house. When I tell my colleagues in the UK about this they laugh and ask if I'm joking and if the fire bridge is aiming to simply flatten the house to stop the fire.

Pressures in North American networks are also higher than in the UK, once again to meet fire flow requirements, which leads to higher background leakage and bursts within the network.

High age of water is an issue that will affect most North American water systems regardless of if they are shrinking or growing.

lbutler··on Ask HN: How to become a remote contractor?
I lived and worked in Edinburgh for 2 years working as a contractor for an engineering consultancy, I had to eventually leave the UK because my visa was going to expire.

They were so desperate for skilled engineers in Scotland when it was suggested I could keep working remotely they jumped straight on it. I'm now working 100% remotely for them in Canada.

As others have suggested getting yourself into the contracting market in London and then going remotely can work if you're a developer with the right skills though it may be slightly slower then trying to find remote work first.

← PreviousPage 2 of 2