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

OK, I'll write a blog post about this, but it effectively boils down to use something standard that you can run yourself or on another provider.

For example on AWS, using RDS (MySQL, PostgreSQL, SQL Server) or ElastiCache (memcached, redis) is fairly low lock in. You can run all of these yourself or use another cloud. Azure offers a similar hosted redis service for instance.

However, something like Lambda or DynamoDB can't be run elsewhere.

Similarly, on Azure if you use their Machine Learning PaaS system then you are pretty locked in. Yet you could easily move a website to appharbor or elastic beanstalk. Or just run your own server (VPS, IaaS, EC2 etc.)

422.

Spectacle allows you to organize your windows without using a mouse(github.com ↗)

2 points · by jsingleton · 10y ago · discuss

423.

Spectacle – Move and resize windows with ease(spectacleapp.com ↗)

2 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

Azure looks like the only major one you missed. I've used both AWS and Azure a lot. The best one will obviously depend on your use case but if you avoid lock in it shouldn't matter too much. I may write more on this if people are interested.

AWS comparison: https://azure.microsoft.com/en-us/campaigns/azure-vs-aws/

They have more regions than AWS (30 vs 13):

https://azure.microsoft.com/en-us/regions/

https://aws.amazon.com/about-aws/global-infrastructure/

The naming is a bit funny though:

https://unop.uk/azure-eu-regions-naming-confusion/

Someone here thought this was due to using UN regions.

425.

Sharing Authorization Cookies Between ASP.NET 4.x and ASP.NET Core 1.0(hanselman.com ↗)

2 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

To an extent, technology (and the internet in particular) has made the world a smaller place and reduced the significance of borders. I heard a lot of arguments during the campaign around immigration and jobs but they didn't talk about the impact of technology.

I could write more but I'd just be repeating the blog post I wrote recently (https://unop.uk/automation-and-remote-jobs/). The video in there is worth a watch if you're interested in the early days of Silicon Valley.

427.

Show HN: Huxley (JSON Proxy for GB Trains Live Info SOAP API) – Staff Version(unop.uk ↗)

6 points · by jsingleton · 10y ago · discuss

428.

Carboncounter – Cars evaluated against climate targets(carboncounter.com ↗)

3 points · by jsingleton · 10y ago · discuss

429.

New MIT app: check if your car meets climate targets(theguardian.com ↗)

1 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

You can click the example path links on the page to try this out using my demo server (https://huxley.apphb.com).

There's also a blog post with more details here: https://unop.uk/huxley-staff-version

It's open source and the code is here: https://github.com/jpsingleton/Huxley

431.

Show HN: Huxley (HTTP JSON Proxy for UK Realtime Trains SOAP API) Staff Version(huxley.unop.uk ↗)

2 points · by jsingleton · 10y ago · 1 comment

comment 10y ago · link · parent

Thinking about this a bit more, there's an interesting startup opportunity in matching the supply and demand of charging points. Some sort of sharing economy marketplace for renting out your parking spot that has an EV charging point.

comment 10y ago · link · parent

Nice find! That probably explains it.

The UK names still aren't great, even if they sound reasonable in isolation (Cardiff - West, London - South). They have fixed the map though.

comment 10y ago · link · parent

One issue could be that you need somewhere to charge it. A lot of properties (particularly in the UK) don't have off-street parking and you need to park on the road. So even if you own the building you can't install a useful charging point.

However, there's a Tesla Model S and a couple of Nissan Leaf EVs parked on a road near me and they must be getting charged somewhere. Perhaps at work?

comment 10y ago · link · parent

Microsoft themselves seem to be making it less relevant as a web app server. ASP.NET Core is cross-platform (I wrote a book on this) and SQL Server 2016 is coming to Linux. I guess they will focus on Azure for this market but Windows Server would still be useful in the back office for email and domain admin.

436.

Shutdown Scanner Is Shutting Down(unop.uk ↗)

1 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

I've found latency in the UK can be about a third lower than Ireland. I used Bytemark for testing in my recent book but Azure have UK regions now [0] and DO have had a London DC for a couple of years [1]. AWS UK is currently just "coming soon" [2] but Werner has said "end of 2016 (or early 2017)" [3].

[0] https://unop.uk/azure-eu-regions-naming-confusion

[1] https://www.digitalocean.com/company/blog/introducing-our-lo...

[2] https://aws.amazon.com/about-aws/global-infrastructure

[3] http://www.allthingsdistributed.com/2015/11/aws-announces-uk...

438.

Augmented Climbing Wall(augmentedclimbing.com ↗)

1 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

Using the best structure is a good idea but simple LINQ is very readable if performance isn't a big concern.

BTW I cover this in my recent book: https://www.packtpub.com/mapt/book/Application%20Development...

You could try code samples and benchmarks: https://github.com/PacktPublishing/ASP.NET-Core-1.0-High-Per...

comment 10y ago · link · parent

Here's the original post that explains how they got the numbers: https://gds.blog.gov.uk/2013/10/21/how-many-people-are-missi...

Looks like this was removed after a few years: https://github.com/alphagov/frontend/pull/944

I'd like to see the data over that period and see what the JS stats are like today.

comment 10y ago · link · parent

As with any engineering problem, there is usually a trade-off involved. Premature optimization is bad but software does need to be fast enough to start with and flexible enough to be improved later.

You don't want to code yourself into a corner by accident. It's fine to knowingly take on technical debt, as long as you have a plan to fix it in the future. Even if this is never required.

I always try to take a pragmatic approach, as things are usually not as binary as these simple rules of thumb assume. The real world is typically very nuanced, which is why engineering can sometimes seem like more of an art than a science, and why experience is so valuable.

Shameless plug - I hope this attitude comes across in my book that focuses on web application performance issues: "ASP.NET Core 1.0 High Performance" (https://unop.uk/book/).

comment 10y ago · link · parent

Seconded that cache-invalidation is hard. This may be a cliché, but it really is hard.

Implementing a cache may be easy but debugging a cache, or particularly the interactions of multiple caches (some outside of your control) certainly isn't. I've encountered these problems on many projects and also written about them in detail for my recent book.

comment 10y ago · link · parent

The Firefox source viewer (not the developer tools DOM viewer) does validation. It will highlight bad tags in red and if you hover over them it shows the error.

444.

Day of the Programmer(en.wikipedia.org ↗)

8 points · by jsingleton · 10y ago · discuss

445.

How to profit from your data and beat Facebook at its own game(newscientist.com ↗)

2 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

I would imagine better performance and a lower boot time. NOOBS boots far faster than Raspbian and still has full networking.

You also get less artefacts if the system is designed for this purpose. You are less likely to see cursors, modal dialogue boxes, crash dumps/notifications, window chrome/frame or other unwanted UI elements. Admittedly, this is more a problem with Windows (for example, BSODs and Windows 10 upgrade pestering). I regularly notice public display screens where something is broken in this way.

Perhaps the latest browsers don't support RISC OS though, which could be an issue for very modern sites. It looks like this idea is for a frame buffer approach so you could render the page in the cloud and just push the resulting image. It would be sensible to have a local cache anyway in case the network dies.

447.

Upgrade to macOS Sierra(apple.com ↗)

4 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

Displaying a full screen web page on a Raspberry Pi is such a common use case, I'm surprised there isn't built-in support. Something really lightweight based on RISC OS (like NOOBS is) would be great.

I wrote up some of the options at https://unop.uk/adding-basic-authentication-to-screenly-ose but they all seem to run on a full Rasbian stack.

comment 10y ago · link · parent

Classic ASP with JScript always reminds me of node. How things cycle back around...

comment 10y ago · link · parent

If you're just starting to learn then it probably doesn't matter too much. ASP.NET MVC and ASP.NET Core are very similar. WebForms (if that is what you mean by Classic - not pre .NET JScript/VBScript) is different, and horrible.

The MVC pattern is the same and you will be learning C# and Razor for both. The differences are in the details but many of the skills will be transferable. For example, the way bundling and minification are done is now different (built-in before and now JavaScript runners like gulp).

Shameless plug; I cover these difference in my book "ASP.NET Core 1.0 High Performance": https://unop.uk/book

1
141516
40