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

TIL GitLab runs on Azure. If your CI servers or deployment targets are also on Azure then the latency should be pretty low (assuming you get the correct region). Good to know.

I moved from AWS to Azure years ago. Mainly because I run mostly .NET workloads and the support is better. I've recently done some .NET stuff on AWS again and am remembering why I switched.

comment 9y ago · link · parent

You can get both. I recently bought a twin pack containing one of each. The optical one is marketed as "toast proof" so you can put it near the kitchen and the alpha source one is claimed to be more sensitive.

Radioactive ones are usually cheaper but come with plenty of warnings about not disassembling or ingesting the source. Best to have a mix spread around the home. It's also well worth having a CO alarm if you have non-electric heating/cooking.

comment 9y ago · link · parent

^ trace route (tracert/traceroute)

comment 9y ago · link · parent

This one is very nice. It shows the actual positions and routes.

comment 9y ago · link · parent

This map is interesting too: https://www.us.ntt.net/about/network-map.cfm

It shows some overland links as well but it doesn't show intermediate hops. For example, you can see from other maps that most Pacific cables stop off in Hawaii.

You can match the nodes to entries in a trace root log. I did this for a chapter (on network latency and performance) in my last book.

216.

MagicMirror² is an open source modular smart mirror platform(github.com ↗)

1 points · by jsingleton · 9y ago · discuss

comment 9y ago · link · parent

I wonder if there is some confusion between .NET Standard and .NET Core. As .NET Standard 2.0 is a thing but I can't find any official reference to .NET Core 2 yet. Obvious, this will eventually come but it's not on the roadmap yet as far as I can see.

https://github.com/aspnet/home/wiki/roadmap

https://blogs.msdn.microsoft.com/dotnet/2016/07/15/net-core-...

Disclaimer: I've not been paying as close attention as I did last year when writing my book on .NET Core (https://unop.uk/book/). So I may just have missed something.

Edit:

I've found some more info: https://github.com/dotnet/core/blob/master/roadmap.md#ship-d...

  Milestone 	 	Release Date
  .NET Core 2.0 	Spring 2017
  .NET Standard 2.0 	Spring 2017
This is weird as I had previously heard this would be v1.2. Perhaps it is but it's now a major bump rather than a minor one. Either a breaking change or to tie in with .NET Standard?

I guess this means it won't stay aligned with the ASP.NET Core versions now?

I spend time writing a helpful comment and the thread gets flagged. :(

comment 9y ago · link · parent

This makes sense as System.Drawing (aka GDI+) was mainly used for WinForms and has never been supported for web servers. I suspect Mono ported it to support their Windows Forms port.

It may just work on Windows but it won't keep working when used server-side in a web app. MS specifically recommend against using it in ASP.NET. I learned the hard way what happens if you ignore the warnings when I was supporting a site that did this.

Edit: I wrote about image optimization and resizing in chapter four of my book on ASP.NET Core - https://unop.uk/book/

comment 9y ago · link · parent

Great work. Seriously. Keep it up.

comment 9y ago · link · parent

Re-post from the AWS thread (https://news.ycombinator.com/item?id=13442022).

That's a good high-level list, although the comparisons don't always match up. For example, I'd say Traffic Manager is more like Route 53 than ELB (which only works within a region).

If you're after something a bit more in-depth (but covering less services) then I wrote a three part series last year. It may be a little out-of-date, but most of it still applies. Azure now supports MySQL, for example.

1: https://unop.uk/on-aws-vs-azure-vendor-lock-in-and-pricing-c...

2: https://unop.uk/on-aws-vs-azure-vendor-lock-in-and-pricing-c...

3: https://unop.uk/on-aws-vs-azure-vendor-lock-in-and-pricing-c...

Edit: Should that "puts da" be on that page?

comment 9y ago · link · parent

Unless you have a good reason to then I would recommend against rolling your own (with any library). Use an existing cloud service that specializes in it.

comment 9y ago · link · parent

The almost immediate modal pop-up on those pages is pretty annoying. It's just as easy (if not easier) to close the page rather than the overlay.

The problem with these intrusive tactics is literally the next thread on HN right now: https://news.ycombinator.com/item?id=13439828

comment 9y ago · link · parent

You're welcome. I'm glad it's useful. It's a community effort so feel free to submit a PR or an issue.

P.S. There used to be a separate website but since GH broke how pages work the domain now just redirects to the repo.

comment 9y ago · link · parent

Nice post. Looks like I'll need to update the compatibility list: https://github.com/jpsingleton/ANCLAFS#image-manipulation

NB: You shouldn't use System.Drawing in a web app. It can lead to memory leaks and lots of pain. Even the newer WPF equivalents are not safe for use on a web server.

comment 9y ago · link · parent

That's a good high-level list, although the comparisons don't always match up. For example, I'd say Traffic Manager is more like Route 53 than ELB (which only works within a region).

If you're after something a bit more in-depth (but covering less services) then I wrote a three part series last year. It may be a little out-of-date, but most of it still applies. Azure now supports MySQL, for example.

1: https://unop.uk/on-aws-vs-azure-vendor-lock-in-and-pricing-c...

2: https://unop.uk/on-aws-vs-azure-vendor-lock-in-and-pricing-c...

3: https://unop.uk/on-aws-vs-azure-vendor-lock-in-and-pricing-c...

Edit: Should that "puts da" be on that page?

comment 9y ago · link · parent

Slice media player: http://fiveninjas.com

Edit: Old blog post with tech details: https://www.raspberrypi.org/blog/creating-and-kickstarting-s...

comment 9y ago · link · parent

I'm sure there is another new version in the works. They always keep very quiet about it so as not to damage sales of the current version.

Who would have bought a Pi 2 knowing how quickly there would be a Pi 3? There could be a Pi 4 out next week for all we know, unlikely though.

comment 9y ago · link · parent

No, I've not used one. I believe it's designed to be primarily an offline media player.

As the Pi sucks at I/O, the idea is that you mount the HDD directly over USB and transfer files to it from a regular computer. Network transfers would be very slow due to the Pi bottleneck.

comment 9y ago · link · parent

Not personally. The only thing I've seen use a CM is the Slice media player: http://fiveninjas.com

I wonder if it can be easily upgraded to the new CM.

comment 9y ago · link · parent

Their blog post has more info: https://www.raspberrypi.org/blog/compute-module-3-launch/

I posted this link earlier but it didn't attract much interest.

231.

Compute Module 3 Launch(raspberrypi.org ↗)

15 points · by jsingleton · 9y ago · discuss

232.

EFF Encrypt the Web [video](youtube.com ↗)

1 points · by jsingleton · 9y ago · discuss

233.

Encrypting the Web(eff.org ↗)

3 points · by jsingleton · 9y ago · discuss

comment 9y ago · link · parent

It can be a good use case, to increase the number of concurrent users you can serve. See my comment elsewhere in this thread.

You should still be able to output an ID when using async/await. It just means that the calling thread can do something else while it waits for the DB to get back to it. Execution will resume in the same place.

As mentioned elsewhere in this thread, for a distributed system you can use GUIDs to remove a immediate dependency on the DB. You can adopt eventual consistency and merge later, but this adds lots of complexity. If you do go down this route, add the GUIDs as an additional key and stick with something sequential for PKs, to avoid clustering issues.

comment 9y ago · link · parent

I would argue that async/await is far more important for native applications. I've seen plenty of apps doing significant work on the UI thread and hanging. Making it easy for developers to run things in the background is great for performance. Web browsers automatically add a level of asynchronous interaction.

It's also important on a web server but it won't improve performance for a single user in isolation. As you say, it allows more requests to be serviced concurrently. This won't speed up an individual request unless the server is already heavily loaded.

Edit: You don't need to build two library APIs. You can just build an Async method as the default implementation then have a blocking call to that as the synchronous method. I believe that all new MS APIs are now Async by default.

comment 9y ago · link · parent

It's not that complex but I think it's just that .NET naming and versions are currently quite confusing. I did a lot of reading on this for the book I wrote and I still find I need to double-check things.

I guess this is what you get when you try and munge three platforms together. Package support is very important for uptake and many library authors were waiting for some stability. I found this out when researching the support matrix at https://anclafs.com.

If you look at the volume of MS docs on this you would be forgiven for thinking it's complicated:

https://blogs.msdn.microsoft.com/dotnet/2016/09/26/introduci...

https://github.com/dotnet/standard/blob/master/docs/faq.md

https://docs.microsoft.com/en-us/dotnet/articles/standard/li...

https://blog.xamarin.com/net-standard-library-support-for-xa...

237.

Building a Web App in React and ASP.NET Core – Part 2(unop.uk ↗)

1 points · by jsingleton · 9y ago · discuss

comment 9y ago · link · parent

To save a click, the live demo is at: https://reactube.com

239.

Show HN: A mobile-friendly London transport status page written in React(github.com ↗)

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

comment 9y ago · link · parent

Unfortunately, those are the official colours: https://tfl.gov.uk/tube-dlr-overground/status/
1
789
40