Olissipo

joined 2 years ago
[โ€“] Olissipo@programming.dev 9 points 4 months ago

Yes. From their v0.0.1 blog post:

We plan to publish such a tagged release every month. For now, we are adopting a simple release process where we will use a recent nightly build and perform additional manual testing to identify issues and regressions before tagging and publishing the binaries.

 

A maintainer's anouncement when it was uploaded to unstable/Sid

Plasma 6.5 uploaded to unstable and building. Most common architectures are already there and more niche ones are coming.

https://deb.li/plasma

Expect the migration to testing/forky somewhere next week.

I checked the packages and they have all migrated to 6.5, as of today.

[โ€“] Olissipo@programming.dev 6 points 5 months ago (1 children)

Don't forget to stock up on Rooster of Barcelos towels when you visit Portugal

Dining table with a towel depicting several Roosters of Barcelos in large scale. They are somewhat realistic depictions of real roosters, expect they have large combs that fall to their back like hair

(yes, that's the same rooster in Nando's logo)

 

You can now jump to a CSS custom property's definition from within the var() function in style rules.

On clicking the arrow here:

You get jumped to where it's defined, and it's briefly highlighted.

The events tooltip in the Inspector now shows a badge besides custom events, making it easier to differentiate them from built-in events.

I think it's the "User-defined" badges I circled:

Full release notes

[โ€“] Olissipo@programming.dev 13 points 7 months ago (1 children)

The OP on Mastodon shared screenshots of the replies (can't tell if they were originally in the forum post, or if it's a DM):

https://nextcloud.aztinet.eus/s/sxqEDJDZGp7a9rx

[โ€“] Olissipo@programming.dev 57 points 7 months ago (26 children)

The post on Mastodon has a screenshot of the post edit history:

Screenshot of a forum post, showing the versions before and after an edit. The sentence "I am queer, I am technically a furry too" was edited into "I am technically a furry too"

And a copy-pasted response from a moderator (the most relevant bit):

So in my opinion, if your intention was to show political support for diversity, you should avoid using this flag. This will allow us to refuse the use of a flag for instance saying 'non-queer', If we allow your flag, then we have to admit also other similar political flags, both supporting and opposing diversity.

1
PHPStorm discount code (programming.dev)
submitted 9 months ago* (last edited 9 months ago) by Olissipo@programming.dev to c/php@programming.dev
 

I have a 20% discount code for PHPStorm.

It's only for new subscriptions, only for an individual license, and expires on July 17.

They explicitly mention we can share the discount code with someone.

Anyone interested?

[โ€“] Olissipo@programming.dev 4 points 10 months ago* (last edited 10 months ago) (1 children)

Funny you call it magic, what actually does the conversion is Imagick.

In my project I have it integrated in the upload process. You upload a PNG/JPG and it does its thing. Since it's written in PHP (my project), and PHP has an extension to call Imagick, I didn't need to write any complicated code.

You can see on this page if your programming language of choice has any integration with Imagick.

But there's always the command line interface. Depending on your process it may be easier to create a script to "convert all images in a folder", for example.

[โ€“] Olissipo@programming.dev 4 points 10 months ago* (last edited 10 months ago) (3 children)

but 2KB vs 200KB is paltry on even a terrible connection in the 2000s).

You still need to resize the images and choose the right ones (even if only for the device's performance).

So we might as well do that small extra step and add conversion to the process.

What I really wish is that we could get more browsers, sites, and apps to universally support more modern formats to replace the overly bloated terribly performing and never correctly pronounced animated formats like GIF with something else like AVIF, webm, webp (this was a roughly ~60MB GIF, and becomes a 1MB WEBP with better performance), or even something like APNGโ€ฆ

Isn't that the users' fault? And of the websites for allowing those huge GIFs.

Apparently browsers have supported MP4 for a long time.

https://caniuse.com/mpeg4

[โ€“] Olissipo@programming.dev 7 points 10 months ago (2 children)

Even using the highest compression levels, barely any difference. Not worth it

If I understand correctly gzip, brotli and similar are best used to compress text.

Font files also shouldn't be compressed. A TTF file compresses a bit, but a WOFF2 file will be even smaller than that (and WOFF2 also doesn't compress well). So might as well use WOFF/WOFF2

[โ€“] Olissipo@programming.dev 2 points 10 months ago

For most of the images that I tried you can only see differences with the images side by side. It's really subtle.

I do have one example for which my config must be bad, compresses a lot but introduces a lot of noise

[โ€“] Olissipo@programming.dev 1 points 10 months ago

In case you still can't load the image, for the largest width the JPG file has 229.9KB, WEBP has 123.5KB, AVIF has 72KB.

[โ€“] Olissipo@programming.dev 74 points 10 months ago* (last edited 10 months ago) (41 children)

I'm working on a project which generates images in multiples sizes, and also converts to WEBP and AVIF.

The difference in file size is significant. It might not matter to you, but it matters to a lot of people.

Here's an example (the filename is the width):

Also, using the <picture></picture> element, if the users' browsers don't support (or block) AVIF/WEBP, the original format is used. No harm in using them.

(I know this is a meme post, but some people are taking it seriously)

 

June 17, 2025

  • 13:30โ€“19:00 CET/CEST
  • 07:30โ€“13:00 EST/EDT
  • 11:30โ€“17:00 UTC
 

My TLDR is:

  • Their team was using PHP

  • Before doing a complete re-write they evaluated other languages

  • Rust ruled out due to cost/benefit, being the fastest in the list, but also the most complex

  • PHP kept as the main language because:

    • The ecosystem is mature
    • The PHP/Symfony (and Roadrunner) stack meets their high-performance needs
  • Inertia: their team "already had extensive experience" in it

  • They already integrated Go in some microservices

  • They aren't locked to PHP, and will continue to evaluate these programming languages and others

1
submitted 2 years ago* (last edited 2 years ago) by Olissipo@programming.dev to c/wordpress@lemmy.world
 

This might not be new, I hadn't dealt with WordPress/WooCommerce in a while.

Currently (v8.8.2) in a new WooCommerce installation the "Checkout" page is created using blocks, like so:

<!-- wp:woocommerce/checkout-payment-block -->
<div class="wp-block-woocommerce-checkout-payment-block"></div>
<!-- /wp:woocommerce/checkout-payment-block -->

(...)

The problem

This might introduce breaking changes to the plugins and themes you normally use. For example, I couldn't add a new field - programatically or using a plugin.

The fix

Remove the blocks and revert to using the shortcode:

[woocommerce_checkout]

[โ€“] Olissipo@programming.dev 0 points 2 years ago

Not a fan of datalist:

  • Barely works in Firefox (need to click again after initial focus);
  • Doesn't work at all in Firefox mobile (if there is some magic to show the options, I don't know what is);
  • In Chromium and Safari mobile (tested through appetize.io), I don't like how similar it is to a select:

Somewhat liked Chrome's implementation in Android:

view more: next โ€บ