@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.

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/

Kovah, to webdev
@Kovah@mastodon.social avatar

First – Six principles for building simple, maintainable, web software

https://html-first.com/

Kovah, to internet
@Kovah@mastodon.social avatar

How cool is that? When I launched @cloudhiker two years ago, I never thought it would be possible to earn big money from it. Now I’m at 100€ !
Seems that people really love exploring the outside of social media and BigCorp. Cloudhiker will be there for them. 💪

hacdias, to random
@hacdias@fosstodon.org avatar

What companies, or products, do you feel like are doing something impactful? Or something you enjoy using?

Kovah,
@Kovah@mastodon.social avatar

@hacdias Not a product per se, but the team around Taylor Otwell building () and a dozen of related products, frameworks, packages and other free stuff really elevates building modern web applications. I enjoy building stuff with Laravel and wherever I looked, no other framework has a matching ecosystem.

Kovah, to random
@Kovah@mastodon.social avatar

Why is everybody celebrating ? Like, is it really appropriate to celebrate a shitty dating culture, trust issues and loneliness? I know nobody who confidently says he likes to be single, and celebrating "their day" is utter bullshit.

Kovah,
@Kovah@mastodon.social avatar

@alexandressi Share a photo of him/her. It's ! ☺️

Kovah, to random
@Kovah@mastodon.social avatar

The macOS Sonoma desktop backgrounds and video screensavers are 😍

Kovah, to Laravel
@Kovah@mastodon.social avatar

Every time I work with , I spend significantly more time reading and trying to understand the documentation, than with every other tool or framework. The amount of edge cases you run into is frustrating, and it feels like you are basically lost if your use case is just a bit special.
Can’t be the only one with these problems.

Kovah,
@Kovah@mastodon.social avatar

@emd @pboivin Just one example is that I more often than not, I get errors like "$this->newPost must not be accessed before initialization". A rather bland error and frustrating if you copy the exact code from the docs or other packages using Livewire, like Jetstream.
I'll start documenting the issues.

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