@thomastospace@phpc.social avatar

thomastospace

@thomastospace@phpc.social

30 year old living in Limburg, The Netherlands.

Learning how to operate old Dutch windmills.

#PHP & #Symfony developer during the day. Has the life goal of finishing a side-project.

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

thomastospace, to php
@thomastospace@phpc.social avatar

I need some #PHP feedback on a test implementation of jwt token auth:

JWT tokens are valid forever, however we would like to invalidate all tokens when a user changes their password.

We've solved this by saving a random value at the user, and storing this in the token. Whenever the token is used, we check if this is the same. When a password gets changed, we also change this value, which then makes all old tokens invalid because they don't contain this value.

How does this sound to you?

thomastospace, to php
@thomastospace@phpc.social avatar

community. I'm wondering about a very old PHP memory.

When I just started out with PHP (PHP 5.1-5.3 era), I encountered a bug.

When I did some math in PHP, my browser crashed.
I then send the code to a friend, they ran it on their pc, and their browser also crashed.
When I changed the code, it didn't crash.

I've since then always wondered about this. My guess is I used x instead of *, and typed something like 'echo 3x5'. However, that still doesn't explain the crash to me.

Any ideas?

thomastospace, to random
@thomastospace@phpc.social avatar

Today I was at a themepark and for the first time ever, I rode a rollercoaster without holding my hands to something. I had them in the air! It's kinda funny that only in the recent years I've been going more on rollercoasters than before. Loving them more and more, and I know which ones I absolutely don't like!

Also love that themeparks have so many different styles close to each other. Some pictures attached!

An industrial style building, with girders in front. The building itself is rust colored, while the girders in front are grey.
A pathway made of stones. On the side the walls around it are from stone, with a building of stone and wood combined in the background. The pathway passes below it.

thomastospace, to random
@thomastospace@phpc.social avatar

Just published a blog!

My First Day with the Fairphone 5 - A “Review” from a Regular User

It was an interesting day switching to this new phone.

https://thomasto.space/first-day-with-the-fairphone-5/

@WeAreFairphone

thomastospace, to ubuntu
@thomastospace@phpc.social avatar

How is nowadays? Thinking of dual booting to Linux again, but the last time I worked with it, Wayland was new and I couldn't even screenshare windows with it.

Is this solved?

thomastospace, to php
@thomastospace@phpc.social avatar

Making PDF's in #PHP makes me cry.

thomastospace, to random
@thomastospace@phpc.social avatar

It has arrived! My Fairphone!

Of course, the last picture taken with every phone, is the picture of the box of the new phone.

thomastospace, to random
@thomastospace@phpc.social avatar

Google has started the 'Manifest V2 phase-out', which to put it in simple user-friendly words:

Google is phasing out features that make current adblockers work. uBlock Origin will not be able to block ads as effectively as before.

https://blog.chromium.org/2024/05/manifest-v2-phase-out-begins.html

Now, how to solve this? Well, there's one answer. Move to Firefox:
https://www.mozilla.org/en-US/firefox/new/

Firefox on Android is great as well, and supports adblockers as well!

thomastospace, to random
@thomastospace@phpc.social avatar

Are there any developers who have nailed using the Windows keymap for on Mac?

I'm used to Windows, but my work laptop is a Mac. I'm using the XWin keymap which fixes some things, but of course all the shortcut hints are still in 'Mac language', so I have no clue what to type when I look one up.

It's just pain.

thomastospace, to debian
@thomastospace@phpc.social avatar

Installed next to Windows.

While installing, it said it didn't detect another system. If there was one, select No. Then it asked me to select the drive with the system. Did that, installed.

I rebooted, still booted into Windows. No dualboot screen. Luckily I coul still boot into Windows.

I then checked my bios. In boot order, saw a Windows one + one with the drive name. Selected the one with the drive to check.

Now nothing will start and I can't even get into the bios anymore. Help?

thomastospace, to Minecraft
@thomastospace@phpc.social avatar

For my fellow players.

The Axiom mod is out on @modrinth !

If you used WorldEdit, this will likely replace that for you. It's way better, and it's closer to using 3d design software.

Their description: Axiom is an all-in-one tool for Minecraft editing. It merges the capabilities of 3D software with a sleek interface and an innovative toolset.

https://modrinth.com/mod/axiom

thomastospace, to vuejs
@thomastospace@phpc.social avatar

Recently I started on a #Vuejs project at my new job. I've only worked with #Angular before.

One thing I didn't like it first, turned out to be an unexpected strength. In Angular, each component has a separate template, typescript & sass file. In Vue.js this is all inside a single file! Ugly and hard to use I thought.

Instead, it's a blessing. When a component reaches 100-150 lines, it already feels like a large component. Any larger? Time to split it up. It helps keep code clean.

thomastospace, to php
@thomastospace@phpc.social avatar

In my adventures about Time in Programming, and specifically , I always thought that timezones were part of the system files, not part of PHP itself.

This was wrong, as I found out while reading the timezone database mailinglist, where @derickr posted the following:

“I have just updated the tzdb for PHP, and one of our tests started failing”

I'm loving how deep the hole of 'time in programming' is.

thomastospace, to random
@thomastospace@phpc.social avatar

I bought the new , and watching reviews, one thing is weird to me. The amount of software updates is hardly mentioned at all.

Fairphone 5: € 699, but 8 years of support. So € 87,38 a year.
Pixel 7A: € 499, with 5 years of support. So € 99,80 a year.

After all those years, alternative Android OS's are there as well. This phone can last 10+ years. Let's see how far I can take it.

thomastospace, to random
@thomastospace@phpc.social avatar

I just started a plain typescript project, and was too lazy for a docker setup so I just installed Node with apt and went on my way.

I installed Typescript, that went fine, but when trying to use it it gave a vague error.

Quick search fixed it, but... I'm amazed by the cause: Typescript didn't support the version of Node I had installed, which sure.. That's okay. But why didn't NPM tell me this? NPM does not have node version constraints?!?

🤯

thomastospace, to random
@thomastospace@phpc.social avatar

Build The Lanes, a YouTube channel about Dutch infrastructure, made a video about the worst intersection in The Netherlands: The Keizer Karelplein. The place where I got my driving lessons.

https://www.youtube.com/watch?v=CjPduPmTT58

And no, I've never been in the park in the middle of it. I never dared to pass that road.

thomastospace, to random
@thomastospace@phpc.social avatar

I'm happy to report my side project is done, but now I need to make a website for it and that's another side project.

Let's see if I can throw this together quickly 😅

thomastospace, to random
@thomastospace@phpc.social avatar

Lately I've been spending more time just doing whatever I want. So, I've controlled a Dutch windmill and I'm training for it to do it fully on my own!

A Dutch windmill running.

thomastospace, to random
@thomastospace@phpc.social avatar

@CommanderRoot
Hey. I'm wondering if you could either help reach a Twitch dev, or maybe know if more people have this.

Friend without Mastodon, MooseRef, has a channel and it's impossible to create clips there for everyone. ( https://www.twitch.tv/mooseref ). It just bugs out everytime. It fetches a 'ClipRawMedia' from the graphql api and that stays stuck on 'CREATING'.

I wonder if you know about this issue, or know how to get this to reach a dev, since regular twitch support isn't great for this.

thomastospace, to random
@thomastospace@phpc.social avatar

Since it's approaching almost a week of owning the , I'll be working on another blogpost.

What are your questions, or things you want to know about the ?

thomastospace, (edited ) to 3DPrinting
@thomastospace@phpc.social avatar

What program does everyone use to create models for #3Dprinting ?

I've used Fusion360 before, but the current free '10 model' limit is just weird to me and I prefer to save my files locally by default.

thomastospace, to rust
@thomastospace@phpc.social avatar

I'm learning some the last couple of days, mostly since it looked very complicated to me.

First thing I'm learning: All variables are immutable by default.

I'm a very happy programmer right now.

thomastospace, to php
@thomastospace@phpc.social avatar

Hey #php

Client of ours wants to do a pentest on the application. Of course, fine and I'm excited about the results.

However, do you do anything to prepare for this?

First time a client wants to do this, so unsure about the process.

thomastospace, to Eurovision
@thomastospace@phpc.social avatar

Favorites are Switserland, Czechia, Armenia, San Marino and of course, my own country, The Netherlands.

thomastospace, (edited ) to random
@thomastospace@phpc.social avatar

I've made a website for my little project: PlateBingo!

It's the game I wanted in my childhood. I loved seeing where cars were from! Drive around, and cross the countries cars are from off from the map.

I've wanted this to be a great website for ages, but in the end, releasing this is more important.

Check it out at https://platebingo.eu/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines