New Amazon Product Advertising API V5 for Node

Previously I had written some node.js code that would taken an Amazon ASIN and store data related to the product in a Postgres database for use in some websites.

I noticed this had stopped working and after some investigation found the API I was using had been replaced with the new v5 version. More information about V5 can be found here.

This is a pretty major change and the API now returns JSON responses instead of XML.

Read More

Cooler Master TD500 Mesh ARGB Connector for Gigabyte Motherboard

I was trying to figure out how to connect the ARGB fans in the front of the Cooler Master TD500 Mesh case. I have a Gigabyte B550 Aorus Elite AX (revision 1.0) motherboard.

There is a cable that combines the 3 fans and has an output for the ARGB connector, but there is a 3 and a 4 pin cable. The 3 pin cable is labelled Gigabyte, while the other 4 pin cable is labelled "ASRock Asus MSI".

The Gigabyte B550 Aorus Elite AX onboard controller actually has a 4 pin ARGB. Apparently you can break things if you plug the wrong cables in, so I was a bit suspect.

Read More

Firebase Overview and Tips

What is Firebase?

Firebase was original a company that created what is now called the Firebase Realtime database. Google bought Firebase in October 2015 and expanded the scope of Firebase. Firebase is now a suite of products to help you create mobile apps and websites, so Firebase is a Backend-as-a-Service product.

Firebase appear to target their product at mobile app developers, but it also works with websites. Firebase APIs are provided for Web, Android and iOS.

Read More

Node Module Version Mismatch

I was getting this error message:

1
module.js:597 return process.dlopen(module, path._makeLong(filename)); ^ Error: Module version mismatch. Expected 48, got 57

This normally means you have changed your version of node and a package needs recompiling to match the version of node you are running.

Read More

WebStorm vs Visual Studio Code

Having used both VS Code and WebStorm, here are my opinions of how they compare, mainly in regards to TypeScript and React development. This is a fast moving field, but I'll try to update this as I gather more information.

IDE vs Editor

WebStorm is categorised as an IDE (integrated development environment) and VS Code is more of an editor, although VS Code has has some features you might associate with an IDE.

Read More

webpack React - It looks like you are using a minified copy of the development build

Problem: It looks like you're using a minified copy of the development build of React.

So you may have found this message in your console log like I did. There is a link to the react downloads explaining that you need to set NODE_ENV to production so you get the production version of React. This doesn't have some of the code that is useful for debugging in the development version.

You may also be surprised by this as you have tried to set NODE_ENV to production and it is not working.

Read More

Cycle.js FAQ

Some Cycle.js FAQ notes I threw together and will try rearrange that might help people using Cycle.js. Some of these are notes copied from the Cycle.js Gitter channel.

Why does Cycle.js code often have $ symbols in variables

The $ convention is used to signify a variable that is an Observable.

Read More

TypeScript Duplicate Identifier and Typings

If your TypeScript tsconfig.json is using "exclude" and Typings for your TypeScript definitions, you may run into duplicate identifier warning messages.

error TS2300: Duplicate identifier

This warning means you are probably including multiply copies of the same file, or a file is redefining the same definitions.

Read More