tags: HTML, Tooling, Web

Reading View

Have you ever browsed websites using Microsoft Edge and seen the little reading book in the address bar? That is the reading view option and is an absolute brilliant tool as when it is enabled, it gets rid of all the junk on the page, changes the text size and colours and makes a reading experience so much better. Some sites seem to have it and some don’t, but why? What is the magic juice that is needed to get this enabled for your web sites?

A tale of two Edges

Yes there are two edges we need to worry about here. Firstly there is the out of the box Microsoft Edge that comes with Windows 10 and renders using EdgeHTML. Secondly there is the re-invented Edge that uses Chromium under the hood. Edge powered by Chromium is still in development, but you can get your hands on it by signing up to the Insiders Channels.

...more


tags: JavaScript, Web, Tooling

LibMan or Library Manager is a slim and fast package manager that comes with Visual Studio 2017 and 2019 that can be used to download and manage not only JavaScript, but also CSS.

Why use it?


Sometimes package managers such as npm seem to be a little overkill when all you are wanting is a simple JavaScript file downloaded and managed centrally within your project. I personally try and limit my npm packages as I find their reliance on external modules can sometimes break things and can bloat my project file structure somewhat. With Bower being wound down, it leaves a hole for simple package management which has been filled nicely with LibMan.

...more


tags: Web, HTML

HTML 5.2 is currently at the ‘Recommendation’ phase with the W3C, which means that slowly each item in the specification is being worked on to bring them to your browser (well the features that the vendors deem are important). One of these is the dialog element. Currently it can only be used in Chrome and Firefox if you set the flag ‘dom.dialog_element.enabled’ in about:config. There is no support in Edge…unless you are using the new Chromium based development version, in which case you are good to go.

...more


tags: C#, JavaScript, TypeScript

Some years ago I started a little library written in F# to perform calculations for astronomy. This was published on an open source platform hosted by Microsoft of which the name escapes me it was that long ago. I never did much maintenance with it for many years and it was just for learning about functional programming. Since then I have created the ObsPlanner website for astronomy which uses many hand written JavaScript routines as well as lots of C# code that do similar things to the JavaScript ones. Because of this I have created a repository on GitHub which I aim to build up over the coming months that is a cross language astronomical library for performing basic functions such as:-

...more