Better HN
topnewbestaskshowjobs
Log inSign up

jsingleton

3,046 karma · joined Apr 8, 2013 (13y ago) · 1,188 submissions

Author of ASP.NET Core 2 High Performance (Packt Publishing): unop.uk/book

I'm a developer, engineer, hacker and entrepreneur. My personal blog is at: unop.uk

[ my public key: https://keybase.io/jps; my proof: https://keybase.io/jps/sigs/O8UP6-fFcMSV4qZW8VA39-Z_NiV8JtLjKAk6cOH1O7A ]

Submissions

comment 6y ago · link · parent

Pi-hole® (network-wide tracker/ad blocking) set up as a WiFi repeater/extender. This improves WiFi coverage, allows switching between the unfiltered/filtered connections and forces all traffic through the filter from devices that try to evade it.

Part 2: https://unop.uk/pi-hole-extended-part-2

32.

Show HN: Raspberry Pi WiFi extender/router/ad-blocker to filter all DNS traffic(unop.uk ↗)

13 points · by jsingleton · 6y ago · 1 comment

comment 6y ago · link · parent

I made a similar setup with Home Assistant running on a low power Raspberry Pi 3A+ connected to a Xiaomi Mijia Bluetooth Low Energy temperature and humidity sensor (model code LYWSDCGQ). It takes a single AAA battery and it's lasted almost a year on one.

There's a ready-made Home Assistant component but I wrote up a guide on how to read the data from a Linux terminal on your laptop: https://unop.uk/xiaomi-mijia-bluetooth-temperature-and-humid...

I also have Volatile Organic Compounds / equivalent carbon dioxide (Sensirion SGP30) and Particulate Matter (Plantower PMS5003) sensors soldered up to a Raspberry Pi Zero W over I2C/UART for logging. It lasts quite a while on a USB battery so you can take it out and about. An ESP8266/ESP8285 would last longer but it's easy to log with a python script and the SD card gives you loads of storage. I haven't written this up yet but will if anyone is interested?

comment 6y ago · link · parent

This is a great long read (if you like log graphs) on how solar prices have dropped more than anyone predicted: https://rameznaam.com/2020/05/14/solars-future-is-insanely-c...

> This incredible pace of solar cost decline, with average prices in sunny parts of the world down to a penny or two by 2030 or 2035, is just remarkable. Building new solar would routinely be cheaper than operating already built fossil fuel plants, even in the world of ultra-cheap natural gas we live in now. This is what I’ve called the third phase of clean energy, where building new clean energy is cheaper than keeping fossil fuel plants running. Even in places like Northern Europe, by the later 2030s we’d see solar costs below the operating cost of fossil fuels, providing cheap electricity in summer months with their very long days in the high latitudes. These prices would be disruptive to a large fraction of already operating fossil fuel power plants – particularly coal power plants, that are far less able to ramp their power flexibly...

(hat tip to the Forge the Future newsletter: https://forgethefuture.substack.com/?no_cover=true)

I predict a lot of fossil plants will convert to simply providing inertia for grid stabilisation and charge for the service. They won't burn anything any more and may even demolish their stacks and cooling towers. They will just keep their generators and turbines connected to the grid as a big virtual flywheel to dampen spikes in demand / supply and maintain the AC frequency within tolerance.

comment 6y ago · link · parent

If anyone is interested in how to set up a network-wide tracker blocker then I've written some guides on how to configure Pi-hole as a router and Wi-Fi range extender. This means you can force all traffic through your custom DNS, even devices from Google and Amazon that don't respect DHCP.

https://unop.uk/pi-hole-extended-part-1/

https://unop.uk/pi-hole-extended-part-2/

It's still worth installing privacy add-ons to Firefox but this helps with some profiling intrusions in mobile apps and Chromecasts etc. It also helps protect your less technical family members a little, although it obviously can't keep them completely safe from surveillance. Education is an important aspect too.

comment 6y ago · link · parent

Huxley 2 is a CORS enabled cross-platform JSON ReST proxy for the GB NRE LDB WCF SOAP XML API (called Darwin). It supports both the Public Version (PV) and the Staff Version (SV). It's built with ASP.NET Core LTS, C# 8.0 and lots of abbreviations!

V2 is a reimplementation on ASP.NET Core, allowing Huxley to run on Windows, macOS and Linux. You can now use Huxley on any platform (pun intended)!

Demo server: https://huxley2.azurewebsites.net/

No token needed e.g.: https://huxley2.azurewebsites.net/all/old/1

Source code (EUPL 1.2): https://github.com/jpsingleton/Huxley2

Guide to set up an instance on Azure with Azure DevOps YAML pipelines: https://unop.uk/huxley-2-release/

37.

Show HN: Huxley 2 – .NET Core cross-platform GB rail live SOAP to JSON proxy(unop.uk ↗)

1 points · by jsingleton · 6y ago · 1 comment

38.

Source materials supporting Stripe's 2020 negative emissions purchases(github.com ↗)

1 points · by jsingleton · 6y ago · discuss

comment 6y ago · link · parent

Not a geographical map but https://oneplanet.com/ has a tool to visualise the connections in a sustainability plan.

40.

Oneplanet.com -Create, Manage and Publish Your Sustainability Strategy(oneplanet.com ↗)

1 points · by jsingleton · 6y ago · discuss

41.

Announcing .NET Core 3.1(devblogs.microsoft.com ↗)

3 points · by jsingleton · 6y ago · discuss

42.

Things to know about the Emissions Gap 2019(unenvironment.org ↗)

1 points · by jsingleton · 6y ago · discuss

43.

Visual Feature: The Emissions Gap Report 2019(unenvironment.org ↗)

1 points · by jsingleton · 6y ago · discuss

comment 7y ago · link · parent

The air quality in Westminster this week is excellent. :)

comment 7y ago · link · parent

This also covers CSV as well as APIs.

Links:

https://openapi.tools/

https://tools.ietf.org/html/rfc4180

While using the open API spec is good, I'd say the standardisation of CSV data will have more impact. More of the open data available is in the form of historic reports rather than real-time: https://data.gov.uk/ (e.g. https://data.gov.uk/dataset/27dd8d7f-c58b-4de3-bf0d-81058465...)

46.

How to Avert a Climate Catastrophe(gresham.ac.uk ↗)

1 points · by jsingleton · 7y ago · discuss

47.

Experimental hydrogen powered boat visiting London(ianvisits.co.uk ↗)

1 points · by jsingleton · 7y ago · discuss

48.

Lambeth Community Solar – Repowering(repowering.org.uk ↗)

1 points · by jsingleton · 7y ago · discuss

comment 7y ago · link · parent

Most people unfortunately stick with the default investments their employers choose. So funds will still have a big vote share even if a large number of concerned people switch, however it is a signal to them.

comment 7y ago · link · parent

This is a link to Bill Gates' recent comments.

However, with pension funds this is slightly different. Funds have a huge voice and customers switching investments can influence how they use their votes. It's very easy to do, so why not do this in addition to all the other things?

It's also less about removing funds from fossil fuels and more about putting your retirement savings to better work. If you move your fund to a "future world" style one then this provides capital to clean energy projects etc. The ethical funds I looked at even performed better historically than the standard ones, so it's win-win.

comment 7y ago · link · parent

Yes. The cost of action is dwarfed by the cost of inaction, but that cost is felt (not so) far in the future. It's a problem with short-term thinking creating a false economy and building up a huge debt.

comment 7y ago · link · parent

> Around 130 international banks, all present at the UN climate change summit in New York, have committed themselves to decrease their support and investments in the oil and gas sector...

Edit: If you want an action you can take then change your pension fund to an ethical one that doesn't invest in companies that do harm.

53.

Climate Neutral Certified(climateneutral.org ↗)

2 points · by jsingleton · 7y ago · discuss

54.

Enough Is Enough by Peak Design – Field Notes(journal.peakdesign.com ↗)

1 points · by jsingleton · 7y ago · discuss

55.

Flipping the Script on Climate Action(bcg.com ↗)

2 points · by jsingleton · 7y ago · discuss

56.

Digital ClimateStrike → Sep 20–27 – Digital Climate Strike Thanks(digital.globalclimatestrike.net ↗)

2 points · by jsingleton · 7y ago · discuss

comment 7y ago · link · parent

It's usually a good idea to wait for the patch release before updating. This applies to most software, including VS, VSC and .NET Core.

Being an early adopter sucks unless you're just testing it out. If it's your job then wait for it to stabilise and for the real-world bug fixes.

The next Long Term Support version of .NET Core will be 3.1. It should be out in November.

comment 7y ago · link · parent

It depends where your starting point is. Core bundles a lot of stuff together that was previously separate or just good practice. If you are familiar with MVC / WebAPI / EF / OWIN and already doing DI / Logging etc. then it's not much of a leap.

comment 7y ago · link · parent

I also have problems with VS resource usage. It appears to depend on what file type the focussed tab has open. It's still 32-bit, which can't help.

Never had perf issues with VSC, which is surprising considering it's web tech. It's a different class of app to VS but much nicer to use, and of course it's cross platform.

60.

Atlassian billionaire to announce net zero emissions target at UN climate summit(theguardian.com ↗)

1 points · by jsingleton · 7y ago · discuss

12345
40