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

If the code is GPL then shouldn't WhatsApp need to be open source? Or did they get a different license?

The only thing listed at https://www.whatsapp.com/android/ are some changes to qcom as per the LGPL.

comment 10y ago · link · parent

The github repo is the paper: https://github.com/Microsoft/checkedc/releases

comment 10y ago · link · parent

This also adds support for ChaCha20/Poly1305 cipher suites. Chrome has supported this for a while and it performs better on some mobile devices.

You can go to https://privacyinternational.org to test this. Then click the lock and go to more info to see the tech details.

comment 10y ago · link · parent

1.0.0 (Tools Preview 2) should be out the week of the 27th of June (in a fortnight's time).

605.

ASP.NET Core 1.0 Schedule(github.com ↗)

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

comment 10y ago · link · parent

The new portal is still lacking compared to the old one and they should have waited longer before pushing it IMO. I still find I need to go back to the old one for many things. Azure ML still uses the old portal.

If you need to try stuff in the future you could use BizSpark. The best way of not getting charged is not to provide payment information.

607.

Microsoft Orleans(dotnet.github.io ↗)

1 points · by jsingleton · 10y ago · discuss

608.

Official correspondence reveals lack of scrutiny of MI5's data collection(theguardian.com ↗)

2 points · by jsingleton · 10y ago · discuss

609.

A peek behind the curtain at GCHQ(bbc.co.uk ↗)

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

comment 10y ago · link · parent

I've been running the HTTPS Everywhere add-on and hadn't realised that this wasn't already a thing. As the post says, they have supported HTTPS for a while and this is just adding a redirection option so you don't need to resort to JS hacks. It doesn't say if they are using 301 redirects or HSTS headers, I'm guessing the former.

comment 10y ago · link · parent

In some cases it doesn't even connect with TLS due to some connection issue with GitHub / fastly and you need to set it to flexible (no encryption). I wonder if this new forced HTTPS redirect will change/break that?

I haven't quite worked out the rules yet but some GH pages allow full TLS on CF (but not strict cert validation obviously) and some require flexible. I think org pages need flexible (plain HTTP) but project ones support HTTPS (if on a subdomain)?

This update may change all that so will need to experiment again. If it does break things then any new sites after the 15th may not be able to be made to work. If using a CF page rule or HSTS headers to permanently redirect to HTTPS then this could be a problem.

comment 10y ago · link · parent

I thought this might be the case, but it doesn't stop people from believing you may be a high value target. So the good security practices are very prudent.

comment 10y ago · link · parent

Sounds like a good system. Having something easy that you will actually use is the most important thing.

There is no one-size-fits-all solution and it should clearly depend on the threat model. I can imagine why someone who could be expected to have the keys to CloudFlare's infrastructure might want to take extra care.

comment 10y ago · link · parent

As they run on AWS they may not even know if this happens, but that isn't the threat model addressed by this article.

comment 10y ago · link · parent

Nice visualisation.

The data source site (http://data.london.gov.uk) is really good too. Click the circles for more data. For example, the recycling one reveals air quality info. I can see why they won an ODI award (http://theodi.org/news/odi-2015-award-winners). Much better than the national one (https://data.gov.uk).

comment 10y ago · link · parent

The Swiss also have a railway inside the Eiger.

https://en.wikipedia.org/wiki/Jungfrau_railway

comment 10y ago · link · parent

No, I wasn't suggesting that you could implement the same high-performance System.String in IL, especially considering the assembly language used. I was just saying that there are many other things that can't be done in C# but are possible in .NET, using other languages.

BTW there is a typo: "passed in my the calling code" should probably be "passed in by the calling code".

I wonder if the new C# 6 string interpolation also uses string builder like format does. e.g.

  $"Name = {name}, hours = {hours:hh}"
https://msdn.microsoft.com/en-us/library/Dn961160.aspx

This post seems to suggest it uses concatenation, which may be bad for performance in some situations due to the immutability.

https://weblogs.asp.net/bleroy/c-6-string-interpolation-is-n...

comment 10y ago · link · parent

Nice post.

There are many things that aren't possible in C# but can be expressed in pure IL. Sigil [0] is an IL generator used in the high-performance JSON serializer Jil [1], which takes advantage of this.

https://github.com/kevin-montrose/Sigil

https://github.com/kevin-montrose/Jil

comment 10y ago · link · parent

I wonder if something based on RISC OS [0] would be more lightweight and boot quicker? I believe NOOBS is based on this and it loads very quickly. Linux is great but Raspbian may be overkill for something like this.

[0] https://www.riscosopen.org/content/downloads/raspberry-pi

620.

Screenly Open Source Edition(screenlyapp.com ↗)

1 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

I used to do the same [0], quite a while ago now, until I discovered Screenly Open Source Edition [1]. There are a lot of tweaks to get right, and it does video, images and web pages. I made a fork with basic authentication to the web administration interface [2], in case the network is not private.

This project does look interesting though. Last time I did this the Pi was a bit underpowered for some JavaScript heavy dashboards and the Wi-Fi was really flaky. Perhaps the Pi 3 has fixed these things but I haven't tried it.

[0] https://shutdownscanner.com/blog/posts/Raspberry-Pi-Digital-...

[1] https://www.screenlyapp.com/ose

[2] https://github.com/jpsingleton/screenly-ose

622.

Changes to Project.json(blogs.msdn.microsoft.com ↗)

2 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

These cuts have been really damaging and I don't think people realized how "the greenest government ever" was actually all the work of the Lib Dems. The current treasury led agenda is very short term thinking and pandering to NIMBY voters.

There's been a lot of fuss about solar, but the UK isn't really that sunny, especially when we use the most energy. The real tragedy is Carbon Capture and Storage combined with biomass. That was looking really promising before it was scrapped, as it can actually remove CO2 from the atmosphere.

comment 10y ago · link · parent

This is explained at: http://www.gridwatch.templar.co.uk

"As no solar PV to date is metered centrally, we cannot show real time figures on solar PV power yet. It appears only as a mid-day dip in overall demand, on the demand graph."

The French data does include solar: http://www.gridwatch.templar.co.uk/france

comment 10y ago · link · parent

The new Zero and upgraded camera could be very useful for this: https://www.raspberrypi.org/blog/zero-grows-camera-connector

comment 10y ago · link · parent

Good news. Hopefully it will actually RTM by the end of June.

I'm a little disappointed that http://dot.net is just a redirect to this and they're not hosting from that. :)

comment 10y ago · link · parent

RTM release end of June: https://blogs.msdn.microsoft.com/dotnet/2016/05/06/net-core-...

Discussion: https://news.ycombinator.com/item?id=11646343

comment 10y ago · link · parent

Not sure why this is here now but it's good timing. ASP.NET Core RC2 has just been released: https://blogs.msdn.microsoft.com/webdev/2016/05/16/announcin...

629.

Announcing ASP.NET Core RC2(blogs.msdn.microsoft.com ↗)

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

630.

Solar has a bright future in the UK despite Tory efforts to cloud the picture(theguardian.com ↗)

1 points · by jsingleton · 10y ago · discuss

1
202122
40