Self Hosting Decap CMS
Recently I found myself wanting to rewrite The Irish Fighting Game Community’s homepage. Originally I had put it together primarily as a place to display our large number of discord servers but I found myself wishing for a solution with a blog posting element. So I set out to create a Hugo site with the functionality of the original react project but the functionality of a wordpress page (without all the bloat). Hugo obviously came straight to mind, with it’s lovely themes and easy posting abilities. But how was I supposed to let other people contributing without having to teach normies how to use git? ...
PostCSS Plugins in Vite & Ionic
Let’s install PostCSS Nesting (or any PostCSS Plugin) in our Vite based Ionic project! PostCSS Nesting over Native Nesting Native CSS Nesting is nearly here, but it’s going to be a little while yet before every user is able to render it, especially if you’re building an ionic app that targets “older” devices. So it’s probably wiser to continue using third party solutions for the forseeable future. I’ve always been a SASS user up until now, but the advantage of using PostCSS Nesting is that it uses the W3C CSS Nesting spec, so that when the time comes to target only devices that can handle CSS Nesting the switch should be as simple as uninstalling the plugins and deleting the config file. ...
CORS for Ionic 5 Apps
This guide is only for the GET method, but should get you on the right road for any method Why you need CORS for Ionic Capacitor apps When it came time to do my frame data JSON file fetching in Ionic 5 I was met with a sad realisation. I wouldn’t be able to take advantage of the fact that Cordova apps use a loophole in CORS to allow fetching from any source at all. ...
Another New Blog
I guess I’m just adding this out of necessity more than anything! Maybe I’ll use this one (lol). I’d love to have a compilation of every first blog post I’ve ever written and what percentage of my total blog posts they would amount to (spoilers: it’s a lot)
Telegram Bot Tutorial | Part Two
Bot Script and User Interaction To try out BobBot for yourself, head over to telegram.me/BobRossBot Last Time In the last post, I covered creating the bot in Telegram and setting up the webhook. In this post we’ll look at getting a script at the other end of that webhook and having your bot interact with the user. BobBot.php Our Bot is going to wait for a user to say /Bob, and then reply with a nugget of wisdom from Bob Ross. BobBot will be written in PHP, but your bot can be written in any language really! I might cover nodejs in a future post. However, I’ll assume you don’t need a walkthrough of PHP! Check out learnXinYMinute’s PHP docs for a quick run through. ...
Telegram Bot Tutorial | Part One
APIs and Webhooks To try out BobBot for yourself, head over to telegram.me/BobRossBot Intro Recently my friends and I migrated from Hangouts to Telegram for a multitude of reasons, but the most exciting one for me was the bot API. I’ve always wanted to put a bot into out chat for any number of reasons, and telegram finally offered me that opportunity. However, when I went to look over the API docs and the bot examples, I came away stumped. Admittedly, the API was usually only difficult to follow as this was my first time working with one, but the bot example was hilariously verbose. Hellobot is described as “A very basic example”, but there’s not a single comment in the code to help you figure out what’s going on. Beyond that, there’s just way too much going on if you’re trying to get started. ...