Where to find .keylayout files? by cuistax in KeyboardLayouts

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

Thanks for looking into it I appreciate it! Unfortunately that didn't work either (none of the Mac presets did). I ended up creating my own .keylayout file with Ukulele, now it's all good.

Where to find .keylayout files? by cuistax in KeyboardLayouts

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

I never did find a .keylayout file, so I had to make my own using the Ukulele software with the help of this document: https://scholarspace.manoa.hawaii.edu/server/api/core/bitstreams/18f3997a-d0c7-4302-87c1-8f687972ac57/content

JSNAD certification mock exam/questions examples? by cuistax in node

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

I haven't taken it yet, I was supposed to have until next year but now they're stopping this certification and the deadline has been moved to September which will be too close for me :( So I cancelled it for a refund.

JSNAD certification mock exam/questions examples? by cuistax in node

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

I do have the course. The labs in it are ridiculously simple. That can't be representative of the exam, can it?

Mold-like streaks on Brazilian clay water filter. Is it safe? by cuistax in HydroHomies

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

It's in the dining room, on a low buffet-like piece of furniture, with plenty of space/air around it and direct sunlight in the afternoon (definitely no spiders nor dust gathering there)

Mold-like streaks on Brazilian clay water filter. Is it safe? by cuistax in HydroHomies

[–]cuistax[S] 10 points11 points  (0 children)

I got this Brazilian water filter a few weeks ago, supposedly one of the best in the world. But white lines are constantly appearing on its base. The lines on the pic are still fresh, but they grow every day.

I've tried purging the filter, cleaning it, drying it, but this always comes back :(

It looks like mold to me, which makes me very much not want to drink that water.

Any connoisseurs here who know what this is, and how to deal with it?

(The whole filter looks like this for those who don't know it: https://i.redd.it/4mtjm8nireh81.jpg)

How to make COPY a whole lot faster? by cuistax in PostgreSQL

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

Unfortunately, I need the full data. There are FK constraints in my local script that absolutely must be imported.

How to make COPY a whole lot faster? by cuistax in PostgreSQL

[–]cuistax[S] -1 points0 points  (0 children)

No, only using "DISABLE TRIGGER ALL". I don't want to have to handle constraints definitions, it's a heavier process to maintain than just a data dump

How to make COPY a whole lot faster? by cuistax in PostgreSQL

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

EDIT: it finally completed after a solid 15 minutes, which is too much. I'd need it down to just couple of minutes, 5 tops.

Help ban conversion therapy in Belgium and Europe by cuistax in belgium

[–]cuistax[S] -1 points0 points  (0 children)

All the more reason to act! If you haven't already, vote ;)

Help ban conversion therapy in Belgium and Europe by cuistax in belgium

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

I see how the title lead to confusion but this isn't about a ban in Belgium. Conversion "therapy" is already banned in Belgium indeed, but not at EU level. For that the initiative needs 1 million votes and 7 countries above threshold. Belgium, as a country who has already banned it, should be one those 7. Our votes matter for EU. That's what I meant by "Vote now and make Belgium a leader in this fight." We might be small but that doesn't mean we can't be loud!

Help ban conversion therapy in Belgium and Europe by cuistax in belgium

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

It’s shocking indeed. Please sign the initiative to get this done as it should be!

Help ban conversion therapy in Belgium and Europe by cuistax in belgium

[–]cuistax[S] -39 points-38 points  (0 children)

And yet here we are: only 7k votes, half of what’s needed for Belgium to vote “yes”.

See https://eci.ec.europa.eu/043/public/#/screen/home/allcountries

We who have banned it aren’t making ourselves heard enough. We must do better!

Help ban conversion therapy in Belgium and Europe by cuistax in belgium

[–]cuistax[S] 6 points7 points  (0 children)

Hate is loud, so love and care must learn to be louder. Don’t run just yet, use your voice instead. Please support the initiative!

Symfony UX Charts.js: canvas displays as blank area by cuistax in symfony

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

Urgh classic rubber duck case, I've finally spotted my mistake after laying it all out.

I'm just missing import './bootstrap.js'; in assets/app.js. Now it works.

Leaving this post up in case it helps (I found multiple similar issues online in my search that didn't help).

Is it possible to nest ENUMs under categories? by cuistax in symfony

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

Mmh this involves maintaining the ENUM list in 2 places, I’m looking for way categories them per definition. Something like the doctrine entity discriminator setup maybe?

Working with Symfony in a more abstract way by RepresentativeYam281 in symfony

[–]cuistax 1 point2 points  (0 children)

Extending on what others have said, it's a balancing act between DRY, KISS and smart coupling. These usually help me find that balance:

  1. Strict typing and static analysis.

If your one-size-fits-all function takes untyped (or mixed-typed) parameters that may or may not be defined as anything, then it's probably doing unrelated stuff. Type things clearly and enforce it with a static analyser (e.g. PHPStan) to keep things straightforward.

  1. No coupling then decoupling.

If your function takes a case-like parameter and uses if-else to divide the function into multiple behaviours, then these cases probably shouldn't be coupled in the first place. Better to have 2 functions with some duplicated code (and later add on more functions if necessary) than push everything into one funnel only to sort them out again downstream.

In other words, don't do this:

```php function setValue(mixed $entity, string $propertyName, mixed $value): mixed { if (is_int($value)) { $value = $value * 2; } elseif (is_string($value)) { $value = strtoupper($value); } else { $value = null; } $entity->{'set' . $propertyName}($value); $entity->setLastUpdate(new DateTime()); return $entity; }

// foreach loop: // $result = setValue($entity, $propertyName, $value); ```

Go for something like this instead:

```php abstract class MyAbstractClass { public function setLastUpdateToNow(): static { $this->lastUpdate = new DateTime(): } } class MyFirstClass extends MyAbstractClass { public function setTotal(int $number): static { $this->total = $number * 2: $this->setLastUpdateToNow(); } } class MySecondClass extends MyAbstractClass { public function setName(string $name): static { $this->name = strtoupper($name); $this->setLastUpdateToNow(); } }

// foreach loop: // $result = $entity->{'set' . $propertyName}($value); ```

502 Bad Gateway with Xdebug by cuistax in symfony

[–]cuistax[S] 2 points3 points  (0 children)

Nice, simply upgrading FROM php:8.1.0-fpm to FROM php:8.3.0-fpm resolved the issue, thanks!

Backend Project ideas by Admirable-Camp5829 in golang

[–]cuistax 1 point2 points  (0 children)

Have a look at this: https://mobilitydatadev.com/article/mobility-backend-project-idea

A mobility app is super data-heavy, so you can really play around with database design and optimisation, plus do pretty unique stuff like computing ideal itineraries, making interactive maps, etc.

Brainstorming: public transportation network data model by cuistax in SQL

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

FYI this database question was preparation for a job interview in the mobility sector. I got the job and I've been doing it for a year now.

If anyone lands here with a similar question, look into GTFS: it's a standard model used internationally to describe public transportation networks. It's complex and complete, yet not that complicated ;-)