Aurelia allows for a pretty flexible routing configuration. Your main router can call views which themselves contain sub-routers.
But how do you pass data into those sub-routes? What if your main router gets some data from the server that you don't want to re-get for every sub route?
Let's define a couple of routes, details and payments:
Tuesday, 5 March 2019
Tuesday, 4 September 2018
Destructuring assignments in TypeScript
This is a really quick post to show some examples of destructuring assignments in TypeScript.
First, what is a destructuring assignment in JavaScript?
First, what is a destructuring assignment in JavaScript?
Tuesday, 7 February 2017
MSMQ between two computers
According to Wikipedia, Microsoft Message Queuing or MSMQ is a message queue implementation developed by Microsoft and deployed in its Windows Server operating systems since Windows NT 4 and Windows 95. It's a super-easy method of Inter-Process Communication in Windows.
Recently I wanted to use Hangfire to coordinate jobs across internal and external web servers, but Hangfire has a 15s delay thanks to it's use of polling SQL Server. You can use Redis or MSMQ to reduce that delay to "instantaneous", but these are two separate computers, so how do they communicate using MSMQ? There are a few gotchas, as you'll see below!
Labels:
C#,
Hangfire,
IPC,
Message Queues,
MSMQ,
SQL Server
Friday, 27 January 2017
Aurelia and select2
Aurelia - a great JavaScript framework for web development - but it's still in it's early stages so sometimes documentation isn't verbose enough and third party libraries haven't been integrated properly
meet
Select2 - The jQuery replacement for select boxes.
meet
Select2 - The jQuery replacement for select boxes.
Tuesday, 5 April 2016
Windows isn't phoney 8.1
Windows Phone 8.1. Do you use it or ignore it?
After dropping my old phone and using a cheap replacement Lumia for a couple of weeks, here are my impressions of windows phone 8.1 in a nutshell:
It looks impressive. Features on paper are excellent and the minimal UI is cleaner, more grown up, easier to see and coherent unlike other major operating systems.
It promises a lot, with things like continuum, if you can upgrade to windows 10.
After dropping my old phone and using a cheap replacement Lumia for a couple of weeks, here are my impressions of windows phone 8.1 in a nutshell:
It looks impressive. Features on paper are excellent and the minimal UI is cleaner, more grown up, easier to see and coherent unlike other major operating systems.
It promises a lot, with things like continuum, if you can upgrade to windows 10.
Labels:
Continuum,
Lumia,
Mobile,
Windows,
Windows Mobile,
Windows Phone 8.1