Optimizing Java for AWS Lambda

AWS Lambda is a serverless computing platform that lets you run your code without provisioning or managing servers. Java is one of the supported programming languages for AWS Lambda, which makes it a great choice for many applications. However, to get the best performance from your Java-based AWS Lambda functions, you’ll need to follow a…

Disable tests when using AWS SAM Build

Before I start, disabling tests as part of your build pipeline is bad – I don’t recommend it. However, in this scenario, sam builds, especially when running sam sync –watch can take a bit of time, and the feedback loop (write some code, and quickly see it running) can be several minutes, rather than seconds…

Install GraalVM and Native-Image on an M1 Mac (Java11)

This is a quick guide on installing GraalVM on your M1 Mac – this guide also works for x86_64 Macs also. This will install GraalVM for Java11 – different Java versions are available here: https://github.com/graalvm/graalvm-ce-builds/releases Install GraalVM using Homebrew Give GraalVM permission to run Install using sdkman SDKMAN is a brilliant tool, you can install…

NPM: Maximum call stack size exceeded

You may have cloned a project and tried running ‘npm install’ only to find the following error message: There’s multiple ways I’ve found to fix this: The Safe ways: Force clear the NPM cache: Rebuild: Remove node_modules: The Nuclear way: As always, I hope this fixes your problem!

Scraping Imgurl.com for images!

Like most of the code I write these days in my spare time, It’s usually for a little bit of fun! This time, I just wanted to get a random bunch of images from Imgurl.com to collect some “memes”. I’ll warn you now, the internet is not a nice place. People upload all sorts of…

Centovacast – Getting Listener Statistics via MySQL

We ran into a little issue with our Centovacast installation last month. It turns out, that if you have a few large radio stations using the same server, the MySQL Database tables get rather full (20 million rows), and when trying to pull the data back into the Centovacast interface was causing some issues (timeout…

Basic Steam RCON Example (Rust)

After spending time over Christmas coding a tool to query Steam servers for information. I’ve now been taking the next steps… Sending data to a Steam server! For this example, I’m going to be using a Rust Dedicated Server, to send a simple command, then in future posts show how I sent scheduled commands (such…

Querying Source Servers with PHP : Part 2

So I have my JSON data which contains all the query information which was returned from the Source Query Protocol. I’m storing it as a flat JSON file – the reason being (as discussed in my last post) is simply due to speed (or the assumption it would be faster). I don’t want to be…