@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 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 random
@thomastospace@phpc.social avatar

First update for the is out with several camera improvements & new security patch.

Now, the camera improvements are below usability, so I'm not sure if the camera is now even better or just easier to use. 🤔

thomastospace,
@thomastospace@phpc.social avatar

@derickr Unfortunately there were no pictures/videos allowed at the concert, so I couldn't try it out.

It did make the concert a lot better though!

thomastospace, to random
@thomastospace@phpc.social avatar

@ian Hey. Would it be possible to change the post size limit from the default 500 to a 1000? Sometimes I have to limit what I post a bit 😅

thomastospace,
@thomastospace@phpc.social avatar

@ian I'll stick around! I prefer the people here over a higher character limit. 🙂

outofcontrol, to Laravel
@outofcontrol@phpc.social avatar

TIL that although it’s been around for at least 5 versions of , we can do this:

if (App::runningUnitTests()) {  
 // Code to include in only tests  
}

if (!App::runningUnitTests()) {  
 // Code to exclude in tests  
}

when running tests. Works in as well, of course.

thomastospace,
@thomastospace@phpc.social avatar

@outofcontrol We need a tag or something for these things.

If you exclude certain code from tests, you're not testing anymore. I'm shocked this is even in a framework.

thomastospace,
@thomastospace@phpc.social avatar

@outofcontrol I expect it to work like this:

You have a service that uses something provided by Laravel Scout that can do the full-text search. You inject this in the constructor.

In your test, instead of injecting this service, make a mock of this service. Your class still thinks it's interacting with the class from Laravel Scout, but it's a fake object.

You then verify that your class sends the correct data to the mock service, and your mock service sends back a response to your class.

thomastospace,
@thomastospace@phpc.social avatar

@outofcontrol Could you show the code where you use the methods? Or is it private code?

thomastospace,
@thomastospace@phpc.social avatar

@outofcontrol Hmm, interesting. I don't use any unit testing on migrations. Guess that's what is causing the difference.

thomastospace,
@thomastospace@phpc.social avatar

@outofcontrol For unittests, I don't. Those only test a single class.

Besides that, we have Application Tests, which cover the whole request flow, so those do touch the database.

Integration tests we currently don't have.

https://symfony.com/doc/current/testing.html#types-of-tests

thomastospace,
@thomastospace@phpc.social avatar

@outofcontrol These conversations are always fun and educational!

Still afraid of seeing App::runningUnitTests in code ever though 😅

thomastospace, to random
@thomastospace@phpc.social avatar

Yesterday I started writing a blogpost on my first day with the . I'll publish it in the next few days, one problem though: I don't have a blog yet! Luckily Wordpress is super easy to install!

It's been an interesting few days with the so far. Favorite so far:
When inserting the simcard, I had to open up the back and remove the battery. This was super easy and smooth, and the feeling of joy I got because I could finally do this again after all these years was amazing.

voidedmain, to random
@voidedmain@craftodon.social avatar

good morning! :thx:

thomastospace,
@thomastospace@phpc.social avatar

@voidedmain Good morning!

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,
@thomastospace@phpc.social avatar

@wertercatt Yes! I ordered it about 2 weeks ago when it released.

thomastospace,
@thomastospace@phpc.social avatar

@derickr I certainly will! First trial will be tonight, since I'm visiting a concert. Should be a great test for the camera.

thomastospace,
@thomastospace@phpc.social avatar

@melroy Yesss! Enjoy it!

thomastospace, to LGBTQ
@thomastospace@phpc.social avatar

If you're ever gonna watch a Rollercoaster Tycoon video, make it this one.

Marcel Vos made a video where he fills a park full of LGBT+ flag colored rides & decoration. It looks absolutely amazing.

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

Skoop, to random
@Skoop@phpc.social avatar

Looking forward to doing my DDD talk at in Brussels! https://live.symfony.com/2023-brussels-con/schedule

Who will I see there?

thomastospace,
@thomastospace@phpc.social avatar

@Skoop Me! Excited to finally go to a conference again.

voidedmain, to random German
@voidedmain@craftodon.social avatar

Kein Stream heute :patpat: mentally bisschen down aktuell, und die Trolle im gestrigen Stream waren halt nicht hilfreich :pewpew:

Wir sehen uns morgen, hoffentlich :alexheart:

thomastospace,
@thomastospace@phpc.social avatar

@voidedmain Sorry to hear about the trolls in stream!

Rest well, and hope tomorrow will go smoothly ❤️

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,
@thomastospace@phpc.social avatar

@pierstoval What launcher do you use? Most launchers help with installing Fabric (like MultiMC and Prism).

After installing Fabric, you need to add the latest Fabric Api (see below) and this mod to the /mods/ folder.

Fabric API is basically a shared library for Fabric mods. You can download it here:
https://modrinth.com/mod/fabric-api

If you need any help, feel free to ask (@ or DM here or on the Symfony slack 🙂 )

thomastospace,
@thomastospace@phpc.social avatar

@pierstoval Happy it worked out!

Never heard of Legacy Launcher, that's a new one for me!

nullagent, to acab

So, funny story. Every cop's body cam is basically an AirTag. I did a talk at DEFCON explaining how you can detect and ID police body cams with your phone.

https://blog.dataparty.xyz/blog/snoop-unto-them/

thomastospace,
@thomastospace@phpc.social avatar

@nullagent Super cool talk. Also got the rfparty app. Gonna be a lot of fun!

Small feature request: It would be great to see devices in a list view as well. Currently have 9 devices around me, but since they're on top of each other, I can't see them individually.

outofcontrol, to random
@outofcontrol@phpc.social avatar

Settling into again… I noticed 2 things that irk me:

  1. I understand why, but it would be so nice to use my own cloud service for the Firefox Sync settings.
  2. Why are Firefox data collection settings opt-out? They should be opt-in. I get why they do it, but it’s wrong.

Yes, much much much better than Chrome, but some room for improvement perhaps? If anyone has suggestions regarding sync settings, please post.

thomastospace,
@thomastospace@phpc.social avatar

@ianh @cmdrmoto Oh that's so cool!

I have some of my own small things at @ubernauten , but nothing big.

Kinda fun though, I wouldn't do HASS (I assume Home Assistant) since that runs the risk of me becoming IT support in my own home 😂

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