Posts

WordPress Custom REST API Endpoints With Spaces

I have been working on quite an ambitious WordPress project that has a lot of custom REST API endpoints to work alongside an Aurelia SPA application running on top of WordPress. In this project, I am working with a location JSON file which is 34mb in size. Returning the entire file contents would be a disaster, so I created an endpoint with the ability to search this endpoint. As you might have learned if you are reading this, search queries can sometimes have spaces.

Working With slot & au-slot in Aurelia 2

In Aurelia 2, we have a couple of different ways of working with slotted content. If you are familiar with Web Components, the slot element is a placeholder that can have content projected into it, the common use for this is reusable components. In Aurelia 1, we had support for the slot element and could project almost anything we wanted inside of it, but there were limitations (as per the spec) which meant it wasn’t always the best tool for the job.

HP Reverb G2 Virtual Reality Headset Review

The HP Reverb G2 is easily the most exciting virtual reality headset that you can buy in 2021. Furthermore, it is also one of the more affordable options. When evaluating virtual reality headset options, I considered the more established VR names first: HTC, Valve and Oculus. HP was admittedly low on the ladder of options until I did some digging into the HP Reverb G2. You will probably hear about this in every review, but the most impressive thing about the Reverb G2 is the screen resolution and audio quality. While it only has a 114-degree field of view, don’t let that trick you into thinking more expensive options are necessarily better because they offer larger FOV.

Parler comes back online, but should you trust it?

Fool me once, shame on you, fool me twice, shame on me. It looks like after being dropped by Amazon Web Services and other providers, Parler is back online (sort of) with a message. I guess step one of the revival process for Parler was finding a web host who would take them and handle the scale Parler was running at. I have no idea who is hosting Parler (maybe they are hosting themselves), but the site does not appear to be fully operational just yet.

Roland TD-17KVX Drums Review

When I’m not writing JavaScript or brewing beer, I’m an avid guitarist and drummer. I’ve been playing guitar for a while, but drums are somewhat new to me. My first electronic kit was a Roland TD-1KV, an excellent beginner kit to see if I actually stuck to drumming before pursuing something more expensive. It’s a compact kit I found myself growing out of quickly. When assessing my next kit, I knew I would stick to playing electric, so I could play quietly any time of the day and record without needing to mic anything up.

Parler is gone, will it ever return?

The free-speech alternative to Twitter called Parler has finally gone down after Amazon said it would be pulling the plug on hosting the controversial platform that houses a wide variety of people from self-taught experts to self-described patriots. If you are not sure why Parler went down, it comes down to the platform being used to organise the Capitol Hill attack and forcing the hand of tech companies to reconcile with the part they played in all of it. The platform was being used to organise all kinds of terrible things, and the community as a whole leant quite heavily into toxic territory.

It's barely been a month and I am already bored with Cyberpunk 2077

When Cyberpunk 2077 was released, I, like many others, was excited to finally get this game we first saw seven years ago. The game was eventually released, and to say that it was a disaster would be putting it lightly. While non-next-gen console gamers got the short end of the stick, those of us on high-end consoles and beefy gaming PCs could play the game, but it was littered with more bugs than a cheap motel.

Inferred bindable properties in Aurelia 2

About a year or so ago in the internal Aurelia core team chat, I raised an idea for inferred bindings. A lot of the time I find myself binding to values that have the same name as the bindable property. The idea is simple, say I have a custom element that has a bindable property called products, I would then most likely do something like the following: It has always felt a bit redundant to me that I am specifying a property and then more often than not passing in a value of the same name. Well, after raising this again in the Aurelia core team chat, I was shocked to discover that this has been implemented.

Social media platforms finally deplatform Donald Trump, but is it too little, too late?

Donald Trump has been notorious for spewing hate from his Twitter account long before he became the president. A history of vile attacks including racism and fat shaming. After the violent attacks on the U.S. Capitol building in Washington D.C and some Tweets, Twitter first issued Trump with a 12-hour temporary ban and then subsequently a permanent ban, also limiting access to other accounts including the official @POTUS account. Joining in, Facebook has also suspended Trump indefinitely from Facebook and Instagram (not outright banned like Twitter). For a bigger lol, even Shapchat has banned Donald Trump amongst others who have temporarily suspended the sale of Trump merchandise including PayPal and Shopify. The “DonaldTrump” subreddit was also removed over on Reddit.

2021 is saved: It looks like Thrice have begun work on a new album (or concept albums)

Palms was released in 2018 and Thrice fans have been eagerly awaiting news of a follow-up album. Obviously, in between the release the world has completely gone down the drain with the pandemic and the political situation in the US being so volatile. In a recent Tweet by frontman Dustin Kensrue, he showed work being done on some Thrice demos The work continueth… pic.twitter.com/Oq3EWLmJGl — Dustin Kensrue (@dustinkensrue) January 5, 2021 We know Dustin is working on new Thrice material because someone asked in a reply and he responded in the most Dustin way possible with a Schitt’s Creek gif referencing the word Thrice.