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

As others here are pointing out, with passive monitoring (i.e. Wireshark) you can't decrypt Perfect Forward Secrecy (PFS) traffic even if the private keys are known / later discovered. This is by design and is the great thing about ephemeral Diffie-Hellman key exchange. The private keys would only allow you to impersonate the server in an active attack, not decrypt a new direct connection.

The key is never transmitted (even in encrypted form), unlike with RSA. A good way of thinking about this is with a colour mixing analogy. I had a go at explaining this (with a Lego stormtrooper) here: https://unop.uk/understanding-encryption-and-key-exchange/

comment 10y ago · link · parent

Worth pointing out that Charles isn't free [0], unlike Fiddler. It used to be that on Mac/Linux you didn't have many choices but there is now a Beta of Fiddler for Mac and an Alpha for Linux (using Mono) [1].

[0]: https://www.charlesproxy.com

[1]: https://www.telerik.com/download/fiddler

comment 10y ago · link · parent

Fiddler is great. Hadn't heard of NetRipper. Will take a look, thanks.

Also worth considering is Microsoft Message Analyzer, which used to be Network Monitor (NetMon). https://blogs.technet.microsoft.com/MessageAnalyzer/

Edit: I should add that this isn't an endorsement, just another option. I only included MMA as a side-note in my recent book. I focussed on Wireshark and Fiddler to keep things simple.

274.

Which Windows laptop could replace a MacBook Pro?(theguardian.com ↗)

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

275.

ASP.NET Core 1.1 and Visual Studio for Mac – First Impressions(unop.uk ↗)

1 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

I think if you're writing property accessors manually then there should be an explicit private backing field. Otherwise there is just too much magic going on.

Normal auto-implemented properties are fine:

  public string LastName {get; set;}
As are read-only ones:

  public string LastName {get; private set;}
Yet, I feel that if you are writing logic in there then you should fully control it. Or else there is too much being done that is non-obvious and could cause problems down the line (for others or your future self).

However, they might be able to achieve something with data annotations that wouldn't be too magic. For example:

  [RaisePropertyChanged("Batina")]
  public string LastName {get; set;}
Tip: In VS you can just type "prop" then press tab to auto-generate the code for a class property. You can then easily auto-change this to a fully implemented version. This also works for "for" and "foreach" loops etc.

I haven't done much Java in a while but do you still have to write out all of your property accessors fully? Might not be too bad if the IDE can generate this code.

comment 10y ago · link · parent

As a Brit I was surprised when I received a reply on Twitter to a blog post I wrote [0] that said:

  ...in Germany nearly 80% of transactions are still cash - lots of places that simply don't take cards
Reading this thread that now makes more sense. We have it pretty good in the UK with contactless and chip & PIN (although I hear the Dutch have it better). I always feel the US is so backwards when I visit and they do the stripe & sign thing.

However, I still think there are many reasons cash should always be accepted. I won't repeat them here as they're covered in the post.

[0]: https://unop.uk/do-you-accept-cash/

278.

Kerry: 'Overwhelming majority' back US climate action(bbc.co.uk ↗)

1 points · by jsingleton · 10y ago · discuss

279.

Getting Started with C# and Cross‑Platform .NET on a Mac(unop.uk ↗)

3 points · by jsingleton · 10y ago · discuss

280.

Chagos Islanders will not be allowed home, UK government says(bbc.co.uk ↗)

1 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

Xamarin Studio didn't support .NET Core, so previously you had to use the CLI tools and an editor like VS Code. You could run ASP.NET MVC in XS (version 5, Core is effectively version 6) but this ran on Mono.

Visual Studio for Mac (aka XS vNext) does now support ASP.NET Core so there is less need for VS Code. The re-brand makes sense (it's not just for Xamarin now). However, Code runs on more platforms (Linux, ARM etc.) and is also used in the browser as part of Azure.

I wrote a better summary of the differences here: https://unop.uk/getting-started-with-c-sharp-and-cross-platf.... It's the last in a four part blog series about .NET on Mac.

comment 10y ago · link · parent

Wednesday, November 16th

10:00am - 12:30pm EST (15:00am - 17:30pm GMT): Keynotes by Scott Guthrie and Scott Hanselman

I suspect a big announcement about .NET on Mac. :)

283.

Connect 2016 [video](connectevent.microsoft.com ↗)

72 points · by jsingleton · 10y ago · 40 comments

comment 10y ago · link · parent

Unless you are accessing the Pi over SSH you will probably be using a GUI. VS Code will be running inside the window manager (LXDE). It's not something you run from a CLI.

The main version of NOOBS has X starting by default these days. Even the standard Raspbian image has a GUI, but you can use the lite version for headless servers (https://www.raspberrypi.org/downloads/raspbian/). This is similar to Ubuntu Server but different to NOOBS lite, which is just a small network installer.

comment 10y ago · link · parent

Ah OK, it was probably under embargo and got posted early by mistake. I've been to Connect(); before in a time zone ahead of the US and nothing gets announced in the morning until the US wakes up and the embargo is lifted.

Edit: FYI Connect(); is November 16th-18th starting 9:45am EST https://connectevent.microsoft.com

comment 10y ago · link · parent

It depends. I've been pretty happy with Xamarin for what I'm doing (a game [0]).

If you are using basic Xamarin then you will end up writing separate UI code for each platform, but you can still share business logic if you architect if well. Xamarin.Forms is different and lets you share the UI too.

Even with Forms, you will always have some platform specific code, but this is normally small. For example, some implementation details when using SQLite.

[0]: I'm writing about this starting with https://unop.uk/cross-platform-native-mobile-app-development...

comment 10y ago · link · parent

I couldn't get React Native working for Android (on either Mac or Windows) but I've been pretty happy with Xamarin. I've written a simple game in Xamarin.Forms that I will be posting about.

Purely by coincidence, I have four blog posts on this out this week. The first one (on React Native and Xamarin) is here: https://unop.uk/cross-platform-native-mobile-app-development...

comment 10y ago · link · parent

Strange, not sure if this is a bug or if MS published too early and retracted it?

Edit: Thanks for the tip BTW. I had linked to this from a blog post, but have now removed the dead link (https://unop.uk/cross-platform-native-mobile-app-development...).

comment 10y ago · link · parent

Yeah, for now you have to type the XAML but a designer is coming. There is a preview of a previewer but I couldn't get the one in VS to do anything. The XS previewer did work for me though. Make sure Android Studio / ADK is updated if only iOS is working.

290.

2016 'very likely' to be world's warmest year(bbc.co.uk ↗)

2 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

Good news and great timing!

I had a four part blog post series on Xamarin.Forms and .NET on a Mac planned for this week. Starting with this introductory post today: https://unop.uk/cross-platform-native-mobile-app-development...

comment 10y ago · link · parent

As I understand it, Visual Studio for Mac is simply a re-branded Xamarin Studio and will continue to be. It includes the improvements they had planned for the next release but I doubt they will do a rewrite.

I actually prefer Xamarin Studio over Visual Studio (on Windows) in some respects. For example, the Xamarin.Forms XAML previewer is much better. Looking forward to a full designer.

P.S. I've got a four part blog post series this week on Xamarin.Forms. Starting with this today: https://unop.uk/cross-platform-native-mobile-app-development...

293.

WMO: Five hottest years on record have occurred since 2011(bbc.co.uk ↗)

1 points · by jsingleton · 10y ago · discuss

294.

Tesla announces new gigafactory in European expansion(theguardian.com ↗)

3 points · by jsingleton · 10y ago · discuss

comment 10y ago · link · parent

I'd firstly pick a country and then look at job boards for that location. For example, assuming you mean abroad relative to the US, then I run https://cleanwebjobs.com, which is mostly UK based.

comment 10y ago · link · parent

Perhaps, but it's hard to prove either way. https://protonmail.com is a better domain though.

comment 10y ago · link · parent

I remember this from a few years ago. The only recent updates appear to be a change to the tutorial link.

If you haven't clicked through to the inspiration (http://www.coboloncogs.org/HOME.HTM) then it's well worth a look. Although the Rails page doesn't look like that any more, so it's not quite as funny.

comment 10y ago · link · parent

I think it's probably fine. It only pre-populates a form and doesn't automatically submit. It's also almost exactly the same as the official Bookmarklet that's linked to from the footer of most pages on HN: https://news.ycombinator.com/bookmarklet.html
1
91011
40