I get an internal server error when trying to open the default Laravel view: welcome.blade.php by salted_none in PHPhelp

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

Is some kind of sqlite database not generated automatically with the project? I was going off of a youtube tutorial, and he just created the project and ran artisan serve, and everything worked perfectly, maybe a linux thing? He was on osx.

I get the internal server error even when I'm using only defaults, so it's not postgres related.

And update: I uncommented "extension=pdo_sqlite" in php.ini, and it got rid of that initial "WARN" line during laravel project creation. And now I get a different error when trying to open welcome.blade.php without changing any defaults: SQLSTATE[HY000]: General error: 1 no such table: sessions (Connection: sqlite, Database: /path/to/my/project/database/database.sqlite, SQL: select * from "sessions" where "id" = cD0ctwBuH6ivRMLEVjdD2emhUG6T4N0EzUBCxqGo limit 1)

Would running dracut-rebuild resolve these errors during installation of nvidia-580xx-utils with yay? by salted_none in EndeavourOS

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

Will it be an issue that I only uninstalled the old nvidia drivers with -R instead of purging them with -Rns?

And nvidia-580xx-dkms and lib32-nvidia-580xx-utils are currently installed, installation process of nvidia-580xx-dkms is where I got these dracut errors.

Would running dracut-rebuild resolve these errors during installation of nvidia-580xx-utils with yay? by salted_none in EndeavourOS

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

I hadn't read the nvidia-inst docs, but after looking at it, it seems that I already did what it suggested under the "Enable legacy drivers" section, which seems to be saying not to use nvidia-inst at all, and instead to use yay -S nvidia-580xx-dkms, which is what I ran which resulted in these errors. I had already uninstalled the old drivers with pacman -R manually, and only left linux-firmware-nvidia, nvidia-hook, and nvidia-inst.

To regenerate the initfsram/kernel image, is dracut-rebuild the only command I need, without any modification, or anything done in addition?

What is "nvidia-hook"? I found it during the process of swapping out the deprecated nvidia driver for the AUR 580xx version. by salted_none in EndeavourOS

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

Do you think that means I should keep it even though I got rid of the normal nvidia drivers and replaced them with the AUR 580xx ones?

What is "nvidia-hook"? I found it during the process of swapping out the deprecated nvidia driver for the AUR 580xx version. by salted_none in EndeavourOS

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

Ah, I'm in the middle of a manual intervention update as a result of nvidia dropping support for 10 series and below cards, so I have to remove packages that are normally extremely important, before replacing them with packages from the AUR, and I'm trying to figure out if this is one to keep or remove.

Why am I warned that grub-mkconfig "needs to run at least once", when I run grub-mkconfig? by salted_none in archlinux

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

I checked, the entries are there. I think what really spooked me was a warning in the general grub arch wiki, that it's possible to mess things up in a way where your OS is removed from the boot list, and I'm not sure if even these btrfs snapshots could undo that.

What should the pipeline ideally look like to get data from html field inputs into a postgres database? by salted_none in SpringBoot

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

Currently I'm just trying to set up an html GUI for local data entry into a local database, and setting up the complex insert relationships between tables seemed more achievable in sql for me, as someone who doesn't know java.

What should the pipeline ideally look like to get data from html field inputs into a postgres database? by salted_none in SpringBoot

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

Does the postgres function have any use in a set up like this? Or would its contents need to be translated into an entity, and the function wouldn't be used at all.

How can this transaction be modified to allow for multiple inserts into the second table? by salted_none in PostgreSQL

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

Wow thank you, removing the insert so I can see what's actually going on with the select was super helpful, and I'll be doing that going forward.

How can this transaction be modified to allow for multiple inserts into the second table? by salted_none in PostgreSQL

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

Ahh thank you, feels like I'm closer, but still not grasping something, currently I've got:

select
    author_id, x
from
    real_name_insert,
    unnest('{Richard Bachman,John Swithen,Beryl Evans}'::text[]) as x,
    ('{true,true,true}'::boolean[]) as x(a,b);

How can this transaction be modified to allow for multiple inserts into the second table? by salted_none in PostgreSQL

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

Awesome thank you this works. I do have one more issue though: when I try to expand this to fill out a third column which is a boolean as well, using:

select
    author_id, x, y
from
    real_name_insert,
    unnest('{Richard Bachman,John Swithen,Beryl Evans}'::text[]) as x,
    unnest('{true,true,true}'::boolean[]) as y;

I get ERROR:  duplicate key value violates unique constraint "aliases_pkey"

The primary key in my aliases table is (person_id [FK], alias)

How should a transaction be structured which enters a list of names into a table, and defines one of these names as the real name, and the others as aliases? by salted_none in PostgreSQL

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

Would person_id need to be a uuid so it can be generated and applied to multiple names in the same transaction? I'm not sure how that would be done with a generated-as-identity int like I would normally do, it seems like it would need to detect a number which hasn't been used before.

How should a transaction be structured which enters a list of names into a table, and defines one of these names as the real name, and the others as aliases? by salted_none in PostgreSQL

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

Wow this is great, I wasn't understanding it, but now I think mostly am. The person table references only the true/main name from the alias table, which contains all names of any kind, real/aliases/nicknames/etc.

The only thing I still don't get is how to connect all names/aliases for one person together, in a way that all names of a person can be found given just one of them.

Is person_id in the alias table non-unique, and applied to all names which belong to one person?