Rob's Blog

Jack of all trades, master of... some

Author

Robert Macauley

The best way to schedule a huge number of tasks with Node and node-cron.

Part 1: Finding the limits of scheduling jobs with Cron and Node. Hopefully, this will be informational and not turn out to be the ramblings of a mad developer, it will either serve as a great case study or as… Continue Reading →

How to store large files for use in a web application?

It’s a common issue with web application architecture, you have a requirement to store and have access to large files, what’s the best way to do this? There’s three obvious routes to go down Store the file in a filesystem… Continue Reading →

Installing brain.js

If you get an error like “Install Error: Can’t find Python executable”, you may need to install windows build tools, the command to run is npm –add-python-to-path=’true’ –debug install –global windows-build-tools You may then hit some issues with TSLint and… Continue Reading →

writeFile, createWriteStream + writing to .json causes node crash

When using the fs module to write to files, sometimes you’re going to write to a JSON file. const contentStream = fs.createWriteStream(            “./src/utilities/corpus/corpora/” + fileName + “.txt”,            {flags: “a”}        ); or fs.writeFile(     “./src/utilities/corpus/corpora/” + fileName + “-master.json”     , JSON.stringify(masterList)     , (err) => {          if (err) { throw err; }         console.log(“Data written to file”);     }); I’ve found that this can cause what seems like node to crash out… Continue Reading →

graphQL cache

There are a few schools of thought on this graphQL as an api gateway, meaning you can leaverage the restful http cache… but you have to build a restful api too cache at the resolver level, which could be done… Continue Reading →

GraphQL basics

This is my introduction to graphQL, and at the moment just a dump of working code

Webpack, Bootstrap/Reactstrap and CSS Modules harmony

Seeing a few debates and helping a few people with this subject, I thought I would put my 2 cents onto digital paper. So to me, the problem starts because you want the speed and robustness that bootstrap offers, but… Continue Reading →

React and Bootstrap guide and tips

work well together although really you don’t want to use bootstrap javascript as thats changing the dom which you want to leave to react, Reactstrap – suggested react-bootstrap – with care as stuff like the navbar toggler doesnt work without… Continue Reading →

Node, Express, Websockets, React, Redux = Magic

Guide on web sockets in React and Redux

Monolithic Vs Microservices Architecture: Where to start?

I’m sure you’ve read at least five articles titled: the Monolithic Vs Micro services architecture… and if this is your first one, then I’d probably suggest first watching Mastering Chaos – A Netflix Guide to Microservices to get a good… Continue Reading →

© 2020 Rob's Blog — Powered by WordPress

Theme by Anders NorenUp ↑