just another web log

02 Jun 2024:
removing the moss from my quest 2 thumbstick

I hadn't been using my Quest 2 VR setup for a while, when I remembered I had bought a game(*) ages ago.

Of course all I could do when booting the device up after so long was run multiple updates. All my operations were by hand tracking.

The next day when everything was updated, I tried loading the game ... and remembered why I had stopped playing :(

The Left control stick was jumping all over the place and favouring the down direction. This made the game unplayable, as I desperately tried to stop my character jumping off the bottom of the screen.

Disassembling the Thumb-stick was surprisingly easy and didn't even need a screwdriver. Though a number of Spludgers were employed. A blast of compressed air and quick prayer was all I could do before reassembling. There didn't seem to be anything removed or changed so I was pleasantly surprised when the game worked flawlessly!!

That game being Moss 2, a 3D platformer where you are partnered with a mouse. You can not only control the character, but also interact with the environment.

Moss 2 is bigger, better and more immersive. In the original Moss you felt like the VR left you as an outsider looking into an aquarium. Moss 2 seats you squarely inside each environment and you can physically look in any direction and find more.

Moss 2 screenshot from Quest 2

I like Moss 2 and will be continuing to play it until I have 100% completion on the story and collectables.

(*) Slightly concerning, I found another game in my library that I have bought and never installed...

02 Jun 2024:
trial and error d20 printing

3D printing my own D20

3D printing for D&D

What could be simpler? I had already printed custom characters, a dice tower, a few tentacles, dragon heads and brains.

3D printed monk photo

3D printed dragon head photo

3D printed dice tower photo

Early attempts

D20s are in fact icosagons and in Blender you can add one by selecting an Ico Sphere and setting the subdivisions to 1. Now all that is left is to add the numbers to the faces...

I ended up creating a whole video (unreleased) on how to align and then cut out numbers. To make life easy these were all "20" :D

D20 print failures photo collection

Printing mostly worked, but the bottom most face would always come out squished.

D20 face print failure photo

But if D20s are just icosagons then they must be a simple symmetrical shape built from triangles. I can print each face separately, ensuring there is no "squished" areas. Easy!

Something is wrong. I tried various routes to create 20 sided shapes from basic triangles and 3 sided pyramids, but they never quite fit once printed.

A three-sided pyramid is called a tetrahedron or a triangular pyramid. I printed a lot of tetrahedrons, small, big, long, short. They almost fit together, but there was always a noticeable gap. Printing errors could not account for the consistency of this gap.

By now now I was very frustrated. Every step of this process should have been simple! I could see the icosagon in Blender, what if I cut it up rather than build it up? I sliced away all the faces until a single tetrahedron was left, easy...?

Printed five out and ... the print was bit messy, it didn't fit!! Back in Blender I used the measure-it plugin and there was a slight difference in two of the segments.

D20 tetra edge measurement screenshot

Printed again, but this time larger and with T, B, L, R engraved on the four faces. The larger print helped hide any imperfections and they fit together !!

D20 orange tetras photo

This story is not yet finished and strangely the "B" faces all appear fine, no squishing.

01 Jun 2024:
know your buckets

Know your Buckets!

Many Devs use Locastack to emulate an AWS S3 instance when developing locally, but rarely need to interact with it outside of code. Today I needed to see all the files in all the Buckets in my local dev.

awslocal s3api list-buckets

Shows me all the buckets and

awslocal s3 ls s3://EXAMPLE-BUCKET-NAME

Shows me all the files in a single bucket called EXAMPLE-BUCKET-NAME .

But what if I want ALL the files in ALL the buckets and sub folders?

awslocal s3api list-buckets | jq '.Buckets[].Name' | sed -re 's/"(.+)"/s3 ls "s3:\/\/\1" --recursive --human-readable/' | xargs awslocal

Which basically, gets all the buckets, parses out the names, builds a parameter string for each bucket name asking of the recursive list of files and sends that to the Locastack command awslocal . awslocal is an alias for the standard aws command but prefixed with the Locastack address, to avoid you having to add it to every command.

Once again jq is my weapon of choice to parse JSON data.

loading results, please wait loading animateloading animateloading animate
[More tags]
rss feed



flog archives

Disclaimer: This page is by me for me, if you are not me then please be aware of the following
I am not responsible for anything that works or does not work including files and pages made available at www.jumpstation.co.uk I am also not responsible for any information(or what you or others do with it) available at www.jumpstation.co.uk In fact I'm not responsible for anything ever, so there!