@Kovah@mastodon.social avatar

Kovah

@Kovah@mastodon.social

I turn Pizza into Code and Photos. Creator of Cloudhiker, LinkAce, Game-Quotes.com & much more. #coding #php #gaming #photography #opensource #selfhosting

This profile is from a federated server and may be incomplete. Browse more on the original instance.

timo3000, to php

Sehe ich das richtig:

  • Für , eine nicht-designte Spaghetticode-Sprache, gibt's Hosting für 10.- pro Monat
  • Für , eine bewusst designte, produktive, All-Batteries-Included-Sprache kostet Hosting locker das Fünf- bis Zehnfache.
Kovah,
@Kovah@mastodon.social avatar

@timo3000 Bei Hetzner gibts gute kleine Server auf denen das läuft was du möchtest für 5€ im Monat. Wenn ARM kein Problem ist gibt es sogar mehr Leistung für das gleiche Geld.
Bin dort seit Jahren Kunde und extrem zufrieden.

Mit dem Link bekommst du 20€ Guthaben zum testen: https://hetzner.cloud/?ref=77Qtn2Mu0tDz

Kovah, to random
@Kovah@mastodon.social avatar

Today Cloudhiker received a huge update with many improvements for exploring. Let's call it Exploring 2.0. 🚀🚀🚀

Read more: https://cloudhiker.net/news/b47e62d3-a24c-49fe-b595-3d9e91f9759d

Kovah, to drama
@Kovah@mastodon.social avatar

Just finished watching movie and it’s definitely the of the decade. My god I didn’t know what the movie is about and I wish I could forget it. 😥 10/10!

Kovah,
@Kovah@mastodon.social avatar

@amadeus The Whale is especially hard to watch. You know it's a good drama if you have this dull feeling in your stomach... 😅

Kovah, to node
@Kovah@mastodon.social avatar

Is anyone else having issues with installing packages inside the official node:18 container?
Every install fails with "network request to https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz failed, reason: socket hang up", and it's always another package. 😓
NPM status is all green?!

Kovah, to random
@Kovah@mastodon.social avatar
Kovah, to Laravel
@Kovah@mastodon.social avatar

Does anyone know how to dispatch an event sent by to a component inside a test? 😕
When using some other generic component to dispatch the event, I receive a EventHandlerDoesNotExist exception.

denniskoch, to Laravel
@denniskoch@phpc.social avatar

Laravel 11 will reduce the skeleton of the app a lot. Not sure about all the changes, but I like the fluent configuration methods on the app. I'm just wondering why the bootstrap/ folder is still alive?

Someone already started a discussion. What do you think?

https://github.com/laravel/framework/discussions/47835

Kovah,
@Kovah@mastodon.social avatar

@denniskoch agree, I never ever changed anything in it, but I guess it’s needed for very special use cases.
I would remove it and move the cache folder inside into the storage directory.

Kovah, to PostgreSQL
@Kovah@mastodon.social avatar

Just use they said.

I just spent FORTY MINUTES trying to restore a database dump in Postgres. WHAT. THE. HELL?! 🤬

Why is modern tech so damn complicated?

Kovah,
@Kovah@mastodon.social avatar

@tomasv The problem is Postgres being super picky about how and what must/should be exported to be properly imported somewhere else. After I almost got the import working without any warnings of duplicate tables or relations, Postgres complained that the old user wasn't matching the new one, thus the import cannot be completed. I ended up changing my dev environment to match the prod system to be able to import that database.

Kovah,
@Kovah@mastodon.social avatar

@tomasv @ascherbaum As someone coming from MySQL, Postgres hard to use more often than it should be. And I'm pretty sure that the core devs have a strong opinion about why Postgres is the way it is.

Kovah,
@Kovah@mastodon.social avatar

@tomasv Well that's the joke: the schema is exactly the same. But I haven't found a way to export just the data and then export it into a database which is exactly the same. I juggled with --only-data, --clean and a couple of other options during export and import.
I'm using TablePlus, which seems to use pg_dump and pg_restore.

Anyway, this should not be a help thread. I got it working, but with a lot of headache. Maybe I'm too dumb, but I can't remember similar with MySQL databases.

Kovah,
@Kovah@mastodon.social avatar

@tomasv @ascherbaum Good to know, thanks for taking the time to investigate this further.
Maybe I can put together something and put it on my blog.

Kovah,
@Kovah@mastodon.social avatar

@tomasv @ascherbaum I've put together the rough time line and recreated the issues I had for the exact error messages. https://blog.kovah.de/en/2023/the-odyssey-of-a-postgres-restore/
The solution sounds rather trivial, but the journey to find it was exhausting.

Kovah,
@Kovah@mastodon.social avatar

@ascherbaum @tomasv Thanks for the long response. I feel like I understand only half of what you are trying to explain. 😕
I might be naive, but the user should not have to read pages of documentation just to copy data from one database into the other. It’s really just that and I can do this in MariaDB in like a minute.

Kovah,
@Kovah@mastodon.social avatar

@ascherbaum @sycobuny @tomasv I am not sure what template0 and template1 are, and why my database has some things in the last one.
I double checked how MySQL dumps are created. The resulting dumps drop a table if it exist, then create it, then the data is imported. I'm pretty sure it's been like that for years and it's working fine. I expected Postgres to behave the same, but obviously it works differently. Maybe it was my fault to not check how it's done in Postgres before.

Kovah,
@Kovah@mastodon.social avatar

@ascherbaum @sycobuny @tomasv Do you have a link to a good beginner-friendly explanation, what template0 and template 1 are and what they do? Would like to know more about that. 😊

dseguy, (edited ) to php French
@dseguy@phpc.social avatar

I'm still struggling to pick a side.

@ is too slow, because it merely hides the error.

?? looks dumb: it reads : if it is null, use null as default.

the if() command is long to type.

Kovah,
@Kovah@mastodon.social avatar

@dseguy I think it’s totally fine to have $variable ?? null in your code. It makes sure the variable has at least some value and is defined.

selea, to random

I should plug in my gaming computer

Kovah,
@Kovah@mastodon.social avatar

@selea Do it!

Kovah, to random
@Kovah@mastodon.social avatar

@Curlie I signed up a week ago and have not received the confirmation email. (Yes I checked spam) Also sent a mail to your admin contact address, but have not received any feedback. I guess it didn't reach you.
Is there something wrong with your email system? 🙁

Kovah, to random
@Kovah@mastodon.social avatar

Oh dear... just ordered a new system for my home "theater". Reference R-50M 5.1 bundle plus the Cinema 60 are going to replace a 20 year old budget Pioneer setup. I'm thrilled. 🤩🤩🤩

Kovah, to opensource
@Kovah@mastodon.social avatar

The lack of compensation in software is unsustainable.

https://trstringer.com/oss-compensation-broken/

Kovah,
@Kovah@mastodon.social avatar

@astrojuanlu Thankfully, I'm not directly affected by burnout right now, but I've been trough it before. And it's horrible. Being compensated for hard work can be a huge booster, but if merely anyone values you work to spend $10, all the hundreds of hours feel like a complete waste of time.

Kovah,
@Kovah@mastodon.social avatar

@ercanbrack Unfortunately, compensation is mostly not the first thing people think of when they start a passion project (like I did with LinkAce). When such a project becomes popular, it becomes more and more evident, that other people and companies expect open source software to be also free.
As I wrote in the other comment, it can be a huge booster if you a properly compensated, but in 95% maintainers are left alone with $5 donations from a couple of fans. 🤷

Kovah, to accessibility
@Kovah@mastodon.social avatar

Access & Use is a great resource for common issues on websites and how to solve them as the developer.

👉 https://accessuse.eu/en/

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