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

Ben Cruachan is great and free if you come by train. The walk up to the top is good on a nice day but not easy. I went in the summer and there's a photo at the bottom of this blog post: https://unop.uk/mobile-gb-rail-live-departure-boards/

comment 9y ago · link · parent

This is the output of part 1 in a tutorial series, which is here: https://unop.uk/building-a-web-app-in-react-and-asp-net-core...

243.

Show HN: A London Underground Tube Status Board Written in React(reactube.com ↗)

2 points · by jsingleton · 9y ago · 4 comments

comment 9y ago · link · parent

Nuclear power stations are surprisingly boring. It's mostly solid state, relatively quiet and inaccessible (for obvious reasons). I went on a trip to Dungeness (Kent) and it looks like you still can[0] along with 6 others.

For pumped storage there is Dinorwig[1] (North Wales) and Cruachan (West Scotland). If you arrive by public transport you can get a free tour of the Cruachan pumped storage hydro plant.

[0]: https://www.edfenergy.com/energy/education/visitor-centres

[1]: http://www.electricmountain.co.uk/

[2]: http://www.visitcruachan.co.uk/

Edit:

There's a photo at the bottom of this blog post from my visit to Cruachan last summer: https://unop.uk/mobile-gb-rail-live-departure-boards

If you're in the French Alps then you could visit Grand'Maison on a bad weather day: http://www.musee-edf-hydrelec.com/

comment 9y ago · link · parent

I was talking to a CERN physicist once who joked that the reason for the LHC winter shutdown was because France needed heating. It's probably more to do with economics but it's almost true. France has a lot of cheap nuclear power in the summer, and only limited pumped storage capacity to cache it with.

comment 9y ago · link · parent

https://energyuse.eu is an interesting study in how online discussion can help. It's part of an EU trial that I'm on (https://www.decarbonet.eu).

comment 9y ago · link · parent

This is a very pretty map! It shows that location is important but time is also an interesting domain. You can do your bit by running appliances at the best time. This is a post I made on https://energyuse.eu (part of an EU trial I'm involved with - https://www.decarbonet.eu).

Saving energy in general is a positive step. For example, we've just bought a new freezer and dishwasher with better energy ratings and these will save money over their lifetimes. However, when is the best time to run a wash to save the most CO2e?

Unless you are on an Economy 7 style tariff or have solar panels then when you use power has no effect on how much it costs you. If you are, then at night or in the middle of the day is better, respectively. Dynamic demand to grid signals isn't ready for consumer adoption yet but you can look at the information manually if you want to use power at less demanding times.

The grid frequency[0] is a reasonable indicator but is pretty technical. There are other, easier to understand, data sources available:

- Earth Notes: GB Grid Intensity[1] gives a simple traffic light indication

- GridCarbon[2] is a real-time carbon intensity app (CO2 Modeller[3] is from the same guys)

- MyGridGB[4] shows similar data on the web (and includes Solar data[5])

By avoiding peak time you may not save money but you can save carbon.

[0]: http://www2.nationalgrid.com/uk/Industry-information/electri...

[1]: http://www.earth.org.uk/_gridCarbonIntensityGB.html

[2]: http://gridcarbon.uk

[3]: http://www.co2modeller.info

[4]: http://www.mygridgb.co.uk

[5]: https://www.solar.sheffield.ac.uk/pvlive

comment 9y ago · link · parent

Server-side rendering is absolutely fine. The only caveat I would add is that if you want to change some functionality to a client-side JavaScript app later then having dynamically generated HTML will make this harder. For example, if you want to make it work offline in the future then you will probably have to rewrite the presentation layer.

Razor views in ASP.NET Core are really nice (disclaimer, I wrote a book on this so I'm obviously biased). However, if you are making a Single Page App then you will need to stick to HTTP APIs (returning JSON, not HTML). The controllers in Core can easily do both now that MVC 6 and Web API 2 are merged and the same thing.

The only exception to this is for an initial rendering of your app server-side, so that the browser gets populated HTML on the first load and there is something to see immediately. For example, using ReactJS.NET you can load the same model into your Razor view that you return from your API and pre-render it using view helpers.

If you're interested then I wrote more about this today: https://unop.uk/react-and-asp-net-core/

P.S. Has this whole thread been hidden or flagged?

comment 9y ago · link · parent

Full disclosure - my book on making high performance web apps (in ASP.NET Core) is one of these: https://www.packtpub.com/application-development/aspnet-core...

250.

Packt Publishing $5 eBooks and Videos(packtpub.com ↗)

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

251.

Security vulnerabilities fixed in Firefox 50.1(mozilla.org ↗)

2 points · by jsingleton · 9y ago · discuss

252.

Android Things(developer.android.com ↗)

6 points · by jsingleton · 9y ago · discuss

253.

Announcing Updates to Google’s Internet of Things Platform(developers.googleblog.com ↗)

5 points · by jsingleton · 9y ago · 2 comments

comment 9y ago · link · parent

FYI there's a summary and video on the root domain: https://h4ck1t.com

Edit:

Turn your speakers down when you play the video if you don't like modem sounds.

This game looks fun. Reminds me a little of Uplink from 2001 (https://www.introversion.co.uk/uplink/).

comment 10y ago · link · parent

First traffic, now this. Next up, how busy is your train?

It's not clear how they get the data for this. Assuming it's the same tech as for minor road traffic then it probably uses Google's location services on Android devices.

256.

Tech firms seek to frustrate internet history log law(bbc.co.uk ↗)

205 points · by jsingleton · 10y ago · 164 comments

257.

UK government could force ISPs to block adult sites without age verification(bbc.co.uk ↗)

58 points · by jsingleton · 10y ago · 81 comments

258.

Google will now tell you whether a bar or shop is busy in real-time(theguardian.com ↗)

28 points · by jsingleton · 10y ago · 13 comments

259.

Pioneers: #MakeYourIdeas(raspberrypi.org ↗)

4 points · by jsingleton · 10y ago · discuss

260.

Pioneers – Raspberry Pi(raspberrypi.org ↗)

2 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

Shadow-banning / hell-banning happens on HN too, but you're right that it's not a very nice way of moderating. Obviously, it's worse if it also gets you in trouble with the state. Manipulating people's view of the world is pretty dishonest in any case though.

I'm sure China would love to hide posts that mention 'Fatty Kim the Third' [0]. If you control the discourse then you can control what people think. We've seen this in both the UK and US recently. Russia have an agency dedicated to false information with sockpuppet accounts on social media [1] and the US has done related activities [2]. I'm sure other countries and interest groups have similar institutions. If you have an official integrated tool to do this work then it becomes so much easier. Worrying times.

[0]: http://www.reuters.com/article/us-china-northkorea-internet-...

[1]: https://www.theguardian.com/world/2015/apr/02/putin-kremlin-...

[2]: https://www.theguardian.com/technology/2011/mar/17/us-spy-op...

comment 10y ago · link · parent

A bit off-topic but the image used suggests that MS have officially adopted the ninja cat riding a flame-breathing unicorn meme [^0]. They even added special emoji to Win 10 [^1].

[^0]: http://www.windowscentral.com/here-microsoft-ninja-cat-wallp...

[^1]: http://blog.emojipedia.org/ninja-cat-the-windows-only-emoji/

comment 10y ago · link · parent

Ja. See also the borrowed word Zeitgeist, literally time-ghost but more accurately the 'spirit of the age'.

264.

SUSE Linux Enterprise Server for Raspberry Pi(raspberrypi.org ↗)

1 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

Ben has been once of the main external contributors to Kestrel and is a big reason of why it's so fast. Great work! I have no idea how he manages to do all of this and write a game at the same time.

https://www.techempower.com/blog/2016/11/16/framework-benchm...

https://www.techempower.com/benchmarks/#section=data-r13&hw=...

comment 10y ago · link · parent

MS have listened and pushed back EOL to mid 2018. Looks like they are still trying to encourage upgrades to Win 10 though.

From https://support.microsoft.com/en-us/kb/2458544:

> The Enhanced Mitigation Experience Toolkit

> We have listened to customers' feedback regarding the January 27, 2017 end of life date for EMET and we are pleased to announce that the end of life date is being extended 18 months. The new end of life date is July 31, 2018. There are no plans to offer support or security patching for EMET after July 31, 2018. For improved security, we recommend that customers migrate to the latest version of Windows 10.

comment 10y ago · link · parent

Not sure of the specifics. Java SE is now included with the official OS (Raspbian/NOOBS) [0]. When the Pi first launched you had to use the soft FP version of the OS or Java wouldn't work but this had a significant performance penalty. They added official support for hard FP a few years ago [1]. I believe the .NET issue was similar in that the VM (CLR i.e. JVM) didn't support the hard FP version of the OS. FP on the Pi processor is a bit weird and a non-standard implementation from what I've read.

P.S. In researching this post I noticed that one of my projects (a globe wake lamp) has been included in the latest project book (p108) [2]. First I've heard of this! This is actually an old version and there is a newer write-up on my blog [3].

[0]: https://www.raspberrypi.org/downloads/noobs/

[1]: https://www.raspberrypi.org/blog/oracle-java-on-raspberry-pi...

[2]: https://www.raspberrypi.org/magpi-issues/Projects_Book_v2.pd... [pdf]

[3]: https://unop.uk/pi-glowbe-mark-2/

comment 10y ago · link · parent

Nice work. It will be great to use ASP.NET Core on a Pi with official support.

I tried .NET out on the Pi using Mono, years ago when it was relatively new but after the software floating point OS was deprecated. The weird hardware floating point CPU made it pretty much unusable. Even simple things like DateTime objects would fail to work correctly.

Similar issues were in Java IIRC but they had a special build of that. I think Sony had a fixed build of Mono but I haven't tried it. It will be good to have official .NET support outside of Win 10 IoT.

1
8910
40