All Posts By

admin

Deploying Next.js on Heroku

Photo by Ankush Minda on Unsplash Ref: https://medium.com/@jacoboakley/deploy-a-next-js-app-on-heroku-69bcb01db1b7 Make sure you add this “start” script to your package.json. Without this “start” script, when Heroku spins up your site, it won’t correctly connect you next app to the port…

Continue Reading

Custom hook for data fetching

This post is based on information on customer hooks and data fetching provided by others such as Robin Wieruch (https://www.robinwieruch.de/) and Kent Dodds (https://kentcdodds.com/blog/how-to-optimize-your-context-value). This is a customer hook to fetch energy market data from…

Continue Reading

Next.js and SVG images

To use SVG images inline in Next.js apps install babel-plugin-inline-react-svg add the following .babelrc file to the root of your app restart your app import SVG as react component Reference: https://github.com/flaviogranero/svg-components-example  

Continue Reading

AI bias – Benedict Evans

Twitter thread from Benedict Evans.¬†¬†https://twitter.com/benedictevans/status/1098047158593277952 When a machine learning system mistakenly diagnoses an imminent failure in a hydroelectric generator because the manufacturers of the telemetric sensors constituted an unrecognised skew in the training data ……

Continue Reading