Error: main.ts is missing from the TypeScript compilation.

This is one of those blog posts where I want to provide a reference to my future self and anyone else who encounters this problem. The problem presents itself when trying to build (via ng build or ng serve) your Angular application and you see the following error. ERROR in ./src/main.ts Module build failed: Error: <path\to\>src\main.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the ‘files’ or ‘include’ property.

Read more

Yahtzee State Machine

So this is one part release announcement, one part tech fan boy rant. I’ve just released a new app/game. It isn’t an original, it is an implementation of the dice game Yahtzee. At the moment it doesn’t feature a computer opponent, it is designed to be played with two people on the same device. I may add a computer player at some point. In any case, you can check out the game at https://yahtzee.

Read more

Dice 6.0 Released

I don’t normally make posts when I release new versions of my various apps and tools, but since this app probably has the widest use, I figured I probably should to explain the changes. The app I’m referring to is my Dice PWA at https://dice.cbate.com There are three main changes. The first is that you no longer need to shift-click or press and hold the dice to lock them. Just click on them.

Read more

Cloudflare Workers

As a father of two young boys I don’t find myself with a lot of free time to work on personal projects and when I do have the time I rarely have the energy. So while I spend a fair bit of time learning about new tech I’d like to play with, finding time to do so isn’t easy. Even in a lockdown it seems. Or at least that was the case until this weekend.

Read more

Social Distancing

If you haven’t heard the term social distancing by now I’d be quite surprised, as it comes hand in hand with the current COVID-19 outbreak. People need to stay at home and avoid close contact with others. And from what I’ve seen online, a lot of people are having a hard time with that. For most people, human contact is important. They feel isolated at home without being able to go out.

Read more

Creating an iA Writer template on the iPad

Earlier I mentioned that I was going to try and create a custom preview for my blog articles. Well I did. It wasn’t particularly hard but it was a bit tedious since I wrote the template on the iPad itself. To start with I needed to grab a copy one of my rendered article pages. That proved to be tricky since Mobile Safari and other mainstream iOS browsers don’t let you view source.

Read more

Working with Shortcuts

More success in the blogging automation front. I spent some time playing around with the Shortcuts app which is now standard as part of iOS 13. If you haven’t played with it, I recommend checking it out. It is reminiscent of Automator on the Mac in that it allows you visually combine functional blocks linking inputs and outputs to create a script which you can trigger manually or based on some event.

Read more

Blogging on an iPad

I bought my first iPad in 2010, back at iPad 1 when it was first released. And I still have it and it still works… sort of. I say sort of because it is stuck on iOS 5.5 and it very difficult finding any apps or games which work, other than the ones which are already on there. It is amazing how far things have come since then, particularly in the web development space, where I spend most of my time.

Read more

New Beginnings

Happy New Year everyone. I didn’t add much to this site in 2019, but I’m hoping to improve that this year. And to that end I’m writing this entry on my new iPad Pro. How will that help? I’m not really sure yet, but I’m looking forward to seeing if I can create a workflow which will allow me to get content from my brain onto the web in a faster and smarter way.

Read more

Go go go (aka. Advent of Code 2019)

Last year I participated in a programming competition in which I attempted to solve a daily problem by writing a little program to process input and get a result. To punish myself further, I decided to try writing the programs in a different language each day. The problem with that approach was that apart from any languages I was already familiar with, I didn’t get a chance to appreciate any of them.

Read more