@filtoid@hostux.social
@filtoid@hostux.social avatar

filtoid

@filtoid@hostux.social

Developer based in Luxembourg, currently working on learning Rust and working with Kubernetes.

https://electrocatstudios.com
https://github.com/filtoid
https://m.youtube.com/channel/UC1m6P72nySpB3lKWDYGVipw

This profile is from a federated server and may be incomplete. Browse more on the original instance.

filtoid, to random
@filtoid@hostux.social avatar

Big shout out to Okta for not calling your 2fa app "authenticator", anyone who does this is a douche bag, makes it very difficult to search in the apps list, you basically have to learn the icons.

The process goes as follows:

  1. login to some service
  2. log into your authenticator app - but we won't tell you which one
  3. open them all until the correct one is revealed
  4. rue the day I chose IT as a career, tree surgeons don't have to put up with this nonsense (I assume)
filtoid,
@filtoid@hostux.social avatar

@ima corporate or provider restrictions (eg, Google for Google stuff) , I try to use a particular one when I have the choice.

filtoid, to rust
@filtoid@hostux.social avatar

I've been writing a game using Yew (Rust) and I decided to try and make it a desktop app using Tauri, it was so easy. Like two or three commands to get it all set up and a bit of config manipulation. Highly recommend it, fits really neatly into the project.

I'll do a live stream again soon where I'll wrap the Wizard Game (Virtua Cop clone in 2d) to demonstrate how to do it.

In the meantime I recommend checking out:
https://tauri.app/

#rust #yew #gamedev

filtoid, to rust
@filtoid@hostux.social avatar

Tonight's live stream was a lot more successful. I was recreating the work from the last one that got missed by me not hitting Go Live.

The stream is using Rust and Yew with HTML5 Canvas to create a simple rail-shooter. A combination of Virtua Cop and Magicka. Next one will be on Saturday and hopefully will start to get more interactive.

https://youtube.com/live/xhV10DZar5s

#Rust #Yew #GameDev #Livestream

filtoid, to random
@filtoid@hostux.social avatar

Disaster on the live stream this evening, I forgot (or didn't notice) the "Start Stream" button on the YT interface, it showed the preview which I thought was the actual stream.

Always remember to press the button on both OBS and the YT interface, just a little hint to others out there who hopefully won't make the same mistake.

I'm going to have to redo it all now, but I will because I set out to only update the game on live stream and I intend to stick to that.

filtoid, to programming
@filtoid@hostux.social avatar

It's been a while since I uploaded a video, but I was inspired by the incredible project from https://twitter.com/ which can be seen here:
https://github.com/bgstaal/multipleWindow3dScene/tree/main

Basically I wanted to recreate the finger-gun standoff from The Office (US).
Short Version of Video (no code): https://youtu.be/PWleuHm86Pc
Long Version: https://youtu.be/g-t_awPnnks

#programming #tutorial #opensource #javascript #html

filtoid, to rust
@filtoid@hostux.social avatar

Attended the 2nd (and my first) Rust for Lunch talk, organised by @hds , very interesting, and very accessible to those who, like me, work remotely. The lunch part is probably most accurate for European or African timezones.

https://lunch.rs

Next one is 2024-01-24

#rust #meetup

filtoid, to random
@filtoid@hostux.social avatar

My least favourite feature of #linkedin is the ability to deliver notifications about upcoming events that have passed, truly top-notch stable door bolting.

filtoid, to rust
@filtoid@hostux.social avatar

I have hit a problem in #Rust while trying to create a WASM front end (Yew) and connecting it to a server (Tonic). I'm trying to use tonic-web-wasm-client to do gRPC calls between that front end and the back.

The problem I have is the library insists that nothing is returned but it shows up in the browser network tab (although Firefox doesn't believe there's a payload, other browsers do). The server is definitely being hit and accepts the request and responds as expected.

filtoid, (edited )
@filtoid@hostux.social avatar

I created an example to demonstrate https://github.com/filtoid/tonic-web-wasm-client-example

If anyone can offer any assistance or something I may not have thought of (at this point User error, ie. My mistake, seems most likely but am happy for any input. ) I would be very grateful

filtoid, (edited )
@filtoid@hostux.social avatar

@pasties thanks for the response. There was a cors issue so I just turned it off (there's a flag), I did wonder if doing so caused some weird code paths, I'll have a look at the underlying library path and see if that could be the issue, thanks :)

Edit: oath -> path

filtoid,
@filtoid@hostux.social avatar

@pasties You were correct. I had enabled a NoCors option on the client, and needed to update the backend to use Tonic-web (in place of vanilla Tonic) to work with WASM, and I needed to remove the NoCors from the client, as well as enabling "very_permissive()" on the Cors on the backend. Is "it's always Cors", the new "it's always DNS" :D

Now I've made the gRPC work I can get back to what I was originally doing and making a web version of a game project I'm working on :D

filtoid, to bevy
@filtoid@hostux.social avatar

Have spent a lot of time today figuring out how the #Rapier physics engine works today - in order to run test simulations without a #Bevy frontend (for a server component of a game I'm working on). I made a little app to draw the results (written to csv) This is the working version of the output. #Rust #Gamedev

filtoid,
@filtoid@hostux.social avatar

For comparison here is a version of the "Broken" physics implementation:

filtoid,
@filtoid@hostux.social avatar

Found an even more broken one 😂

filtoid,
@filtoid@hostux.social avatar

@mo8it I'm afraid I don't mind recognize either of those things. And it was a good guess on the sign, as it turns out I was offsetting the collider from the rigid body by the location, which made some really weird things happen the further away from the origin the body started.

I'm going to look up the other things you mentioned.

filtoid,
@filtoid@hostux.social avatar

@mo8it so I looked it up and the Lennard-Jones potential is a lot lower level than I was going with it. The physics library I'm using is Rapier2d (and 3d, eventually), which I don't think covers that level of interaction, as I understand it's a fairly simply vector and impulse based system.

filtoid, to genart
@filtoid@hostux.social avatar

Someone on YouTube suggested looking into recreating some cool slime mold simulation algorithms, as part of looking into implementing the full algorithm I've had a go at creating some spreading and randomised code, resulting in the following. #generativeart created with #rust as part of the on-going YouTube series, Generative Art in Rust

Lines move from the center of the image spreading outwards in a rough circle, the lines are slightly randomised so give the impression of lightning, zig-zagging towards the nearest edge. Once the lines extend all the way from the centre they all fade out at the lines begin to redraw from the start. The whole animation loops infinitely.

filtoid,
@filtoid@hostux.social avatar
filtoid, to rust
@filtoid@hostux.social avatar

After a big refactor of the code, to make it more sane, I've made a new animation, this time it's a swirling color vortex. I've also created a video to go along with it. I'll reply to this toot with an example output, but if you fancy having a go yourself you can download the code and run it, there is even a Dockerfile and script to help you run it without installing any dependencies.

https://youtu.be/K3X3WfidD4Y

#rust #rustlang #generativeart

filtoid,
@filtoid@hostux.social avatar

This is one possible output from the code/application. It uses a random number generator to add some variation so it will be different every time you run it. The code is open source so you can tweak it or change it to make your own version.

#rust #generativeart

Several differently colored squares move in circles around a center point. The circles have a slight variation in their actual center point giving it a look of a vortex. Each square leaves a decaying trail as it orbits it's center point.

fell, to random
@fell@ma.fellr.net avatar

I just disovered a weird bug on Samsung phones. Apparently, they replace "Ballot Box" automatically with the emoji for "Ballox Box with Ballot".

🗳 U+1F5F3 "Ballot Box with Ballot", this should be a physical ballot box.

☐ U+2610 "Ballot Box", this should be just a square.

How does this render on your end?

filtoid,
@filtoid@hostux.social avatar

@fell one plus Nord, this is how it renders for me.

filtoid, to random
@filtoid@hostux.social avatar

What better way to spend my week off than generating gifs with Rust. Hoping to make a video on the process soon - and I will be sharing the code too, once it's cleaned up a bit.

A green dot moves across the screen in a sine wave pattern leaving a trail of fading green dots behind it. The pattern repeats infinitely.

filtoid,
@filtoid@hostux.social avatar

@fell according to the docs on the gif library I'm using it should be setting the frame length to 10ms (I've even tried forcing it), not really sure why it's rendering as is. I will definitely be looking into it tho. I've had much smoother results with rendering the MP4 and then converting to gif.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • bokunoheroacademia
  • rosin
  • DreamBathrooms
  • osvaldo12
  • mdbf
  • everett
  • magazineikmin
  • ethstaker
  • khanakhh
  • Youngstown
  • slotface
  • GTA5RPClips
  • Durango
  • kavyap
  • anitta
  • thenastyranch
  • InstantRegret
  • cubers
  • tacticalgear
  • lostlight
  • tester
  • modclub
  • cisconetworking
  • normalnudes
  • Leos
  • HellsKitchen
  • relationshipadvice
  • sketchdaily
  • All magazines