React applications (created via npm "create-react-app") will contain source map files in the build output folder for compiled css and js files. These enable anyone to see readable / debuggable front end code (tsx files) in the developer toolbar. If you need to disable source maps in a PROD environment, but still have the ability … Continue reading How to disable source maps in a react app but re-enable for debugging a prod environment
Handle large JavaScript processing tasks without blocking UI
Some time ago I created an angularjs data table to display large amounts of data (>150,000 objects), with a search field that can perform fuzzy search (using fusejs) against some of the fields at every keystroke, not just when pressing enter. Every keystroke would cause the UI to lock up for a few seconds before … Continue reading Handle large JavaScript processing tasks without blocking UI
PowerApp error when flow triggered by button: InvokerConnectionOverrideFailed
PowerApp error: TestFlow.Run failed: { "code": "InvokerConnectionOverrideFailed", "message": "Failed to parse invoker connections from trigger 'manual' outputs. Exception: Could not find any valid connection for connection reference name 'shared_sharepointonline' in APIM tokens header." } Resolution: When flow is added to PowerApp e.g. a button, the PowerApp stores a "definition" of the flow (i.e. what it … Continue reading PowerApp error when flow triggered by button: InvokerConnectionOverrideFailed
JSON diff and merge (JavaScript)
Recently i had a scenario where angular and react based forms were storing data in a single field (multiline plain text field in a SharePoint list storing stringified JSON data). I needed to make it possible for multiple users to edit different parts of the form at the same time but this would mean if … Continue reading JSON diff and merge (JavaScript)
Limit asynchronous queries in javascript – job queue with configurable thread limit
I had a scenario where multiple queries were required to fetch data, first in nodejs fetching from a web service, and later querying SharePoint lists exceeding 100,000 items for display in a data table. I created the QueueRunner javascript class to be able to queue up a large amount of work (such as 20 large … Continue reading Limit asynchronous queries in javascript – job queue with configurable thread limit
IoT Chicken Shed (Arduino, Wifi)
Features Control the door and check how much water is left through a basic website hosted on the chip itself (HTML, and RESTful) Prevent over-closing or over-opening Can recover from power cut outs Can recover from wifi chip reboots or network disruption Flash LED every few seconds to indicate that the door is closed Fox proof: Can't … Continue reading IoT Chicken Shed (Arduino, Wifi)
Advanced Search Web Part – using drop down lists instead of plain text boxes
I've wanted to use dropdown lists in the advanced search property restrictions for a long time, so i created a web part to allow it (SearchExtension web part). It can be found on codeplex: http://spsearchextension.codeplex.com/ How it works: On page load the web part locates the advanced search box and passes its client ID to … Continue reading Advanced Search Web Part – using drop down lists instead of plain text boxes