lonesomeCat

joined 2 weeks ago
[–] lonesomeCat@lemmy.ml 1 points 5 hours ago

Reinstalled the xfce build, everything works well, except my controller tho

[–] lonesomeCat@lemmy.ml 1 points 1 day ago (2 children)

Both bash and fish are returning incorrect password upon trying to execute any command with sudo

[–] lonesomeCat@lemmy.ml 1 points 1 day ago (1 children)

It says incorrect password, I'm pretty sure it is entered correctly

[–] lonesomeCat@lemmy.ml 1 points 1 day ago

I've tried

exec dbus-run-session -- startlxqt

Nothing changed

I also tried

exec lxqt-session

It ran a broken session with no panel, I tried to sudo from there but it also said incorrect password

[–] lonesomeCat@lemmy.ml 1 points 1 day ago (2 children)

I looked up void docs, the only recommended thing I found was enabling elogind :/

 

I installed LXDM and LightDM, I couldn't login from the DM in either cases, so I decided to run LXQt using startx which worked, except I couldn't sudo from the terminal emulator inside LXQt, while I was able to sudo normally in tty, I've tried enabling elogind, nothing changed, my user is in the wheel group and my system is up to date

[–] lonesomeCat@lemmy.ml 9 points 1 day ago

Not even close, Proton is a translation layer from Win32 API to whatever works similar for Linux, SDL just gives a higher level API of lower level stuff, like instead of using Xorg/Wayland directly, you get a nicer cross platform API that does the job well

[–] lonesomeCat@lemmy.ml 2 points 3 days ago (1 children)

I'm not, but shouldn't this be an easy task ootb in Laravel?

 

I have the following migration:

(Schema::create('user_images',function(Blueprint $table){ $table->id(); $table->binary('image'); $table->unsignedBigInteger('user_id'); $table->foreign('user_id')->references('id')->on('users'); });)

And the following corresponding model:

`class UserImage extends Model { protected $fillable=[ 'image' ];

public function user():BelongsTo{
    return $this->belongsTo(User::class);
}

}`

I am trying to create new UserImage records with UserImage::create but it is always failing, I am sending the image data using curl:

curl -v -F image=@$1 $URL/api/users -H "Accept: application/json"

I have tried so many things but I got different SQL-related errors, I am not sure how am I supposed to encode the image data to get them stored, I know that accessing $request->image returns only a temporary path of the image on the HDD.