Toots for thepanz@phpc.social account

Written by Emanuele Panz on 2025-01-31 at 22:33

Looking for #phpunit code coverage dark-themes, are you using it?

Did not find any native support from PHPunit's tools, just some drop-in custom.css files.

Found so far just 2 of them:

  1. https://github.com/chriswpage/phpunit-coverage-theme (updated 2024)

  1. https://github.com/Porthorian/phpunit-code-coverage-theme (updated 2022)

From my preliminary research: the coverage tool is using bootstrap v4, while a dark-mode was only introduced in v5.3.

I should not dig into that migration path, or should I? 😅

[#]php #darkmode #phpunit #codecoverage

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2025-01-22 at 21:05

When you try to identify the source of an issue, find the offending line... and trigger a "git blame" on it.

The commit mentions 15+ tickets as solved, and the commit itself is co-authored by 5 more people.

Why do people git-stash such enormous set of changes?

[#]git #gitstash

=> View attached media

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2025-01-19 at 20:29

Upgraded a #Symfony app from v5.4 to 6.4 in a couple of hours. Smooth process thanks to the recipes system and #Rector!

Well, some pitfalls are still around the corner, like (1) the split of the messenger-* component which dropped the doctrine transport, and (2) the new routing config via its recipe which by default uses #php Attributes.

The rest all smooth! Thank you all!

Sadly I discover that Rector did not rewrite #phpunit annotations to attributes, maybe because I use phpunit as phar? 🤔

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2025-01-02 at 22:58

Setting up a new smartphone for Friend#N: I am so disgusted to still see so many unwanted apps being forced to users, with no way to remove them on Android.

The Xiaomi's User Agreements, shown on first startup before any other setup, requires to accept that 15 apps will connect to internet and use your location.

Not sure why a service called "Landscape view", nor "frequent phrases" should be allowed (nor to be installed, in the first place)

Unfortunately #lineageos does not support it yet 😓

=> View attached media

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-12-17 at 22:21

Digging and implementing the Content-Security-Policy rules for a large luxury eCommerge.

The more I check the 3rd party services, the more I thank the authors of uBlock-Origin extension for Firefox, and NextDNS

[#]ublock_origin #firefox #CSP #NextDNS

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-12-13 at 17:07

Testing #grapheneos on Pixel 8, installation went smooth so far.

Will follow @stefano usage for sandboxing Google play services

But in the meantime: how can I get back the coloured icon themes? 😓 looks like it's one of the most asked question from GrapheneOS newbies

@GrapheneOS

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-12-05 at 15:51

Nice talk about Symfony's Dependency-Injection from @DaveLiddament : not just explaining how the DI works, but also showing how to implement SOLID principles in his code examples! Good job!!

[#]symfonycon #SOLIDprinciples

Still not sure why his Lasagna example from the first slides needs mushrooms, tho. Hope Italians are not triggered by that 😅

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-12-05 at 11:27

Really interesting talk about JsonEncoder component. Finally JSON streaming is getting mainstream and easier to be used!

Thank you @mtarld (not on Mastodon unfortunately)

[#]symfonycon #php #json

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-12-03 at 16:10

Getting ready for SymfonyCon in Vienna with my fellow Liipers, having fun at the #ikono exhibition.

Looks like @dbu and I cleared all missions of MetalSlug 3 there... Yes that game from the '80s 😅

[#]vienna #symfonyCon #liipway #metalSlug

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-11-09 at 21:54

Discovered today that the underground "technology" used by the TipToi pen and books from Ravensburger for kids, is same one that I used in my first thesis's project (15+ years ago).

It was back then an Anoto pen and ePaper, based on a 2D 'invisible' code dotted-pattern (OID) printed on the paper, that an IR reader transformed to coordinates and data.

The pattern can be printed together with images, texts without issues for the pen to just read the pattern.

[#]tiptoi #oid #ravensburger #anoto

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-10-29 at 08:23

Looking for help: does a multiline PHP attribute constructor fixer rule exists for php-cs-fixer?

I would like to transform attributes constructors into multiline, from:

   #[ORM\ManyToMany(targetEntity: Permission::class, inversedBy: 'group', fetch: 'EAGER')]
   private $permission;

To:

   #[ORM\ManyToMany(
       targetEntity: Permission::class,
       inversedBy: 'group',
       fetch: 'EAGER',
   )]
   private $permission;

[#]php #phpcsfixer #phpcs

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-10-04 at 22:42

"I recreated the server, now with encrypted disks, and restored the application. Can you check why it is not running?"

Spent considerable time checking the #Symfony, #caddyserver and #phpfpm configs: nothing could explain such errors, including not respecting any config change.

It was the usual suspect: #selinux, which was non properly configured

Bonus point: took the time to quickly upgrade to PHP 8.3 and Symfony 6.4; not bad for an application last deployed on December 2022 ☺

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-10-02 at 08:19

The new #Firefox upgrade to v131.0 broke the UI customization I added (multi-row tabs, close-icon, ..)

Quickly updated to the latest changes from https://github.com/MrOtherGuy/firefox-csshacks and it worked again like a charm

Kudos to MrOtherGuy for the great repository!

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-09-05 at 14:42

Found this in the neighbour's back garden, they can't remember the name of the plant, just that "the seeds come from a friend, who brought them from his homeland in Ivory Coast".

Their friends called them " Gombo fresh", but I am not sure of the pronunciation, nor the spelling 😅

Who can help identifying it? :)

[#]nature #guessthecrop #quiz

=> View attached media

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-08-25 at 09:59

Adventures in #homelab and #selfhosting : more RAM

Finally got 2nd-hand 2x8GB modules of SODIMM ram (#ewaste) for the #dell #wyse5070

They work fine, the system now recognises a total of 16GB dual channel memory

Next steps:

  1. getting a new power adapter as the BIOS locks the max CPU freq to 1.5GHz if not using an original Dell one

  1. Flash the #rlt9210 usb-c/nvme enclosures with the new firmware. Hope to fix cable issue and set zero-sleep time for NAS setup. Sadly I need a windows machine

=> View attached media

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-08-17 at 14:24

[#]Selfhosting next step: upgrade and expand

Got my 8GB RAM module and it is recognised by the Dell #wyse5070 (was lucky to get it for 7€, inc shipping)

Tested the internal USB split cable and it works, expanding to a total of 9 USB ports. Still need to check if they both work as USB-3.2

Waiting for the other 2x8GB ram modules to be delivered

SSDs, enclosures and OS installation are still missing ☺

[#]homelab #selfhost

=> View attached media

=> More informations about this toot | View the thread

Written by Emanuele Panz on 2024-08-09 at 16:38

Next steps int selfhosting: getting needed hardware

I had a few 2nd-hand shops saved-searches in place for RAM modules, finally happened to order the 8+8GB RAM modules for #dell #wyse5070 for cheap price

[#]nvme to #usb3 adapters have been ordered too for the #raidz1 setup I intend to create (disks still not bought, tho)

And getting quite convinced for #freebsd on #zfs and #bastillebsd for running the services

First time in the BSD world, I am coming! :D

[#]selfhosting #nas

=> More informations about this toot | View the thread

=> This profile with reblog | Go to thepanz@phpc.social account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/109352716547874743
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
663.975655 milliseconds
Gemini-to-HTML Time
6.443199 milliseconds

This content has been proxied by September (3851b).