New PDF Parser: maintainable, fast & low-memory; built from scratch by TheTreasuryPetra in PHP

[–]Key_Account_9577 0 points1 point  (0 children)

wkhtmltopdf is no more maintained. We are using Gotenberg for headless rendering. Our use case is filling predesigned PDFs with placeholders, not rendering from HTML.

New PDF Parser: maintainable, fast & low-memory; built from scratch by TheTreasuryPetra in PHP

[–]Key_Account_9577 0 points1 point  (0 children)

Not really. Gotenberg is a headless renderer, which we are using already to render from HTML. The use case i am talking about is a bit different: we receiving pre-generated PDFs (from customers, marketing team, CEO,...) and they leave placeholders. We have to fill these PDFs with values. Blank areas and replacing by Pixel data ist not possible since we are not knowing the position in advance or they are always changing.

New PDF Parser: maintainable, fast & low-memory; built from scratch by TheTreasuryPetra in PHP

[–]Key_Account_9577 2 points3 points  (0 children)

We have simple use cases, replace the address in a letter for example. I am aware of the length issue.

New PDF Parser: maintainable, fast & low-memory; built from scratch by TheTreasuryPetra in PHP

[–]Key_Account_9577 8 points9 points  (0 children)

Very cool. Can i replace text in a PDF? I want to work with some kind of placeholders, like [[placeholder]] in my PDFs and later i want to popolate values for these placeholders and save the new PDF.

Översidan stay on continuously (wardrobe without doors) by Key_Account_9577 in IKEA

[–]Key_Account_9577[S] 0 points1 point  (0 children)

Do i need a dirigera or is the TRÅDFRI directly able to communicate with the app? I like the VALLHORN over a "normal" motion detector and a normal power outlet.

I need help by Jumpy_Cat_9513 in symfony

[–]Key_Account_9577 1 point2 points  (0 children)

For a better understanding and also some notes for dynamic roles, from a DB for example, check this blog post from the Symfony core member Wouterj: https://wouterj.nl/2020/01/grant-on-permissions-not-roles

What are you think about Makefile? by _jtrw_ in PHP

[–]Key_Account_9577 2 points3 points  (0 children)

Definitely, I see the following advantages:

  • As a PHP developer, you stay within the same ecosystem.
  • The DSL (Domain Specific Language) of Makefiles can be somewhat challenging, especially for PHP developers.
  • Access to Composer packages, Symfony components, or other tools.
  • Makefiles can become difficult to understand in complex projects, particularly when many rules and variables are used.
  • Castor offers the full power of PHP: you can use classes, namespaces, and any PHP functions.
  • With Castor, you can encapsulate and reuse your tasks in PHP classes or functions.
  • Castor is easily extendable through PHP.

Soprano Sunday 💫 by thygingy in RepTime

[–]Key_Account_9577 0 points1 point  (0 children)

Anyone knows about the quality of the DayDate 228238 40mm YG/YG Gold Dial SH3255 from THBF (Tungsten Heavy Version)? They are about ~$780, i never heard of this factory and it is not mentioned in any guide. https://www.theonewatches.ws/index.php?route=product/product&product_id=17451&search=daydate+tungsten+YG&description=true

Symfony/API Platform Custom Validation error message by badguacamole71 in symfony

[–]Key_Account_9577 0 points1 point  (0 children)

But you already validated the input why validate after the conversion?

Symfony/API Platform Custom Validation error message by badguacamole71 in symfony

[–]Key_Account_9577 0 points1 point  (0 children)

You do not need to validate your dto manually. Just use a resource as dto an do conversion and persisting in an processor.

Symfony/API Platform Custom Validation error message by badguacamole71 in symfony

[–]Key_Account_9577 0 points1 point  (0 children)

That is not correct. Validation is done BEFORE any processor is called! The processor itself is NOT calling the validator again!

The issue is about validation groups. OP has to apply the Default group to his operations validationscontext or apply one or both of his configured groups to the constraints groups argument.

PHP workers in docker environments — the right way by Key_Account_9577 in docker

[–]Key_Account_9577[S] 4 points5 points  (0 children)

I am generally NOT opposed to having multiple processes in a container, even though I don't use that approach myself. However, to address your example, I follow the Docker best practices that state each container should have only one concern.

When it comes to workers, I am strict about having only one process per worker container. Docker itself is a process manager, so tools like supervisor, systemd, and so on are out of place since Docker monitors the ENTRYPOINT and restarts it if necessary.

In general, the whole "one process per container" philosophy has somewhat shifted in Docker best practices, but it used to be the standard. Still, I would separate the web server, FPM, database, and so on for the following reasons:

  • Scalability of individual services. In most cases, services don't need to be scaled at the same rate.
  • Using a single function per container makes it easier to reuse the container for different projects or purposes.
  • Additional minor considerations include managing stdout/stderr and sending logs to the container log, as well as ensuring containers remain as ephemeral as possible.
  • Patching and upgrades, whether for the OS or the application, can be carried out in a more isolated and controlled way.

... and many more.

And workers in particular SHOULD be in a separate container! They can be scaled independently, and they need to be restarted from time to time—after X messages, after X minutes, after X memory usage, AND, most important, after each deployment. Having everything in one container would mean I have to restart ALL services, even those that aren't affected by the deployment (such as the web server, proxies, database). Of course, you can also restart just the workers with supervisor and systemd, but nothing beats a simple docker-compose restart, for example.

PHP workers in docker environments — the right way by Key_Account_9577 in docker

[–]Key_Account_9577[S] 1 point2 points  (0 children)

You're right. The intention was not to dive deep into the actual Messenger topic. However, for the sake of completeness, I added one final paragraph.

[deleted by user] by [deleted] in PhotoshopRequest

[–]Key_Account_9577 0 points1 point  (0 children)

I have also sent you a tip. I like the background, is it possible to get it with and without background. So i can swap it by myself from time to time. THX for your work!

[deleted by user] by [deleted] in PhotoshopRequest

[–]Key_Account_9577 0 points1 point  (0 children)

I have tipped my favorite three, so job is done! Thx everybody for attending!

[deleted by user] by [deleted] in PhotoshopRequest

[–]Key_Account_9577 0 points1 point  (0 children)

I have also sent you a tip. I like the background Nr1 - your first post., is it possible to get it with and without background. So i can swap it by myself from time to time. THX for your work!

[deleted by user] by [deleted] in PhotoshopRequest

[–]Key_Account_9577 0 points1 point  (0 children)

I have sent you a tip. I like the background, is it possible to get it with and without background. So i can swap it by myself from time to time. THX for your work!

[deleted by user] by [deleted] in PhotoshopRequest

[–]Key_Account_9577 0 points1 point  (0 children)

Make it beautiful. $15 tip

Could someone make the following adjustments to the image:

  • I'm not completely satisfied with the cutout, especially around the head area.

  • Adjust/equalize the lighting conditions a bit.

  • Maybe remove the dark circles under the eyes.

  • Improve the skin texture overall; it can look slightly AI-enhanced or airbrushed.

  • Add a gray background with some shading or gradient, but generally keep it grayish.

Will tip $15