Javascript: What is a number?

Check if a value is a number? Simple task. Just do !isNaN(), right? Wrong! Assume we get an object that has multiple properties. For arguments sake, let’s say they might deliver numbers in integer or float and we need to parse them as numbers and they deliver other data of various types. It could be: { myNum: 1, value: "1", someVal: 1.5, a: true, b: [], c: NaN} Can we use isNumber() function? We could, but unfortunately it does not exist (yet)? ...

October 6, 2025 · 4 min

Developing for Old Browsers

This post is still a draft. Come back later. I have a Windows 98 SE virtual machine that I like to tinker with. I have Apache and PHP 5.1.X running on it. I have ansi.sys enabled MS-DOS terminal1, so I can have colors and create cool CLI apps2. I have VIM 7.3 installed in it.3 Surprisingly enough vim-plug and vim-airline work.45 This means we can have a very modern development expierience on Vim. Vim 7.3 has omni-completion (a type of intellisense) and JS syntax highlighting. For editing text files or keeping notes I also have Notepad++. 6 I also have webone installed. So I can connect to https sites. webone is a proxy that runs in a docker container that terminates the TLS connection. 7 ...

July 16, 2025 · 2 min

WPAIO.one - What Page Am I On?

I wanted to see if I could create and publish an app (website) in one day. This app had to have some practical value. An app to keep track of the current book I am reading (Tom Clancy’s Oath of Office). I do use a bookmark, but it is very thin and I wanted an app where I can enter the page I’m currently on. So I created https://wpaio.one

November 16, 2021 · 1 min

Local development is a joke (sometimes)

Local development has many benefits. When you can edit something on your local development machine and see the changes immediately (hot-reload), it makes the feedback loop smaller and makes development that much faster. Different toolkits have different ways of trying to solve local dev. Serverless Offline is a plugin for the Serverless Framework simulates AWS Lambda and other serverless providers to give a working offline version of that serverless app you are trying to create. So instead of calling e.g. https://12312321.execute-api.eu-north-1.amazonaws.com/dev you would call http://localhost:3000/. There is LocalStack which will emulate the whole AWS ecosystem. And most front-end frameworks have some sort of hot-reload enabled toolkit. ...

October 15, 2021 · 3 min