Muddling Thru
-
Install JSPM packages from the local file system during development
NPM has npm install <folder>. JSPM requires more work. Link a project... cd <project-root> jspm link github:some/[email protected] -y ...then install from that link cd <other-project- … more
-
Three tsconfig properties that tell the compiler which files to compile
As of today, there are six tsconfig property definitions. Three specify which files the compiler will compile. files If no 'files' or 'include' property is present in a tsconfig.json, the compiler … more
-
JavaScript method syntax and chaining Promises
Live demo promise .then((bar) => { return do_this(bar); }) /* 1: YES */ .then(function(bar) { do_this(bar); }) /* 2: NO */ .then(function (bar) { return do_this(bar); }) /* 3: YES */ . … more
-
Create TypeScript definition files from an existing JavaScript library.
We've encountered the excellent oidc-client-js and would like to create its TypeScript definition file. Here has been our approach. Open PowerShell. Enter the src directory. Run this: Get- … more
-
Choosing what to learn: an analogy to investment portfolios
The field of computer programming is vast, it's hard to know what to learn. An experienced programmer (thank you Warren) suggested an analogy to financial investment: low, medium, and high risk. Here … more
-
Explicity list aurelia.json dependencies in package.json
There is a known bug, in which npm does not install module dependencies. A workaround is to explicitly list them as top-level dependencies. Here is a script that transfers dependencies from aurelia. … more
-
HP Officejet 6500A - Scan on Windows 10
Install the HP Officehet 6500A drivers. Install HP Scan and Capture from the Windows Store. Note: if we only do step (1) above, we will still NOT be able to scan with either Windows Fax and Scan ( … more
-
PowerShell: Compare two directories with slighly different naming conventions.
Quick Copy / Paste Answer This works for a specific use case in which the two directories are src and test\unit, and in which the suffix to ignore is .spec. (dir .\src\ | % { $_.BaseName } ) | … more
-
Some Surface Pro 4 Questions and Answers
How to remove a Windows 10 Compatibility Assistant notice: "This app is no longer available." How to extend the battery life of the Surface Pro 4 beyond about two hours. more
-
Being a consultant: some guidelines on managing client relationships.
Confidentiality. Avoid talking about your clients' business and especially avoid talking about your clients' plans. Instead, speak in vague terms. E.g. Saying "I am exploring multiple opportunities … more