pe1uca

joined 1 year ago
[–] [email protected] 4 points 2 days ago (2 children)

I'm not saying to delete, I'm saying for the file system to save space by something similar to deduping.
If I understand correctly, deduping works by using the same data blocks for similar files, so there's no actual data loss.

 

So, I'm selfhosting immich, the issue is we tend to take a lot of pictures of the same scene/thing to later pick the best, and well, we can have 5~10 photos which are basically duplicates but not quite.
Some duplicate finding programs put those images at 95% or more similarity.

I'm wondering if there's any way, probably at file system level, for the same images to be compressed together.
Maybe deduplication?
Have any of you guys handled a similar situation?

[–] [email protected] 3 points 5 days ago

I've only played P5 and currently P5R.
The RPG part is amazing, the story, combat, dungeon crawling, interactions, etc, and all the other comments people had already made.

My only con for it would be the strictness of the schedule to do the story. Yeah, it's also an interesting part of the game which differs from other RPGs, but it's frustrating you might permanently lose something because you planned it a bit off or selected the wrong dialog option with a confidant so you don't have enough points which makes you have to spend an extra day with them to increase their rank.
Either you follow a guide or you accept the idea of missing some parts of the history.

And even then with a guide I think I might as well not experience everything since I won't go to visit some of the places to hang out with confidants, only the main ranks and that's it.

Also, you can't focus on finishing a confidant because I think all of them have some requirement, or they are not available that day, so you need to do other stuff.
For example, Yoshida is only available Sundays, Kawakami IIRC is also only the last days of the week, but not weekends and only during the evening.

But I plan to also play P3 and P4 since the stories are so good.


My recommendation for the next post would be series of Monster Hunter, Paper Mario, or Kingdom Rush.

[–] [email protected] 19 points 5 days ago (1 children)

Well, seems they already had the vaping sensors implemented and they're just announcing the notifications implementation... How hard is to just build am android app that displays a list and a popup?

[–] [email protected] 7 points 1 week ago

but often lead developers to just display them in the frontend

Oh boy I feel this one.
My API is meant for scripting (i.e. it's for developers and the errors are for developers), but the UI team uses it and they just straight display the error from their HTTP request for none technical people which might also not get to know all the parameters actually needed for the request.
And even when the error is in fact in my code, and I sent all the data I need to debug and replicate the error, the users can't tell me because the UI truncates the response, so the user only sees something like Error in pe1uca's API: {"error":"bad request","message":"Your request has an error, please check th... (truncated). So the message gets truncated and the link to the documentation is also never shown .-.

[–] [email protected] 2 points 1 week ago

Don't know what are the changes since 7807 (which this one obsoletes) but this article helped me quickly understand the first one, hopefully it's still somewhat relevant.
https://lakitna.medium.com/understanding-problem-json-adf68e5cf1f8

[–] [email protected] 3 points 1 week ago

Think of a URL and its dots like folders in your drive where each can have different files in each of them even if they have the same name as another folder.
They're just written in reverse order.
(Also a whole lot of other differences and other technical details on how to actually make the site work, but for your question we can just keep at this)

So, you have the social root folder (Top Level Domain) which contains many sub folders, one of them is mastodon and another is piefed.
Each have their own files to render their UI and process the requests they receive, but they don't talk to each other, even when they might have some files and requests with the same name.
The same way you have in your home folder your documents, pictures, videos, downloads, etc.
And yeah, they can go even deeper, my lemmy instance is lemmy.pe1uca.dev, not just lemmy.world like for this community.
I could have mastodon.pe1uca.dev if I'd like.

[–] [email protected] 2 points 2 weeks ago (1 children)

This is one of the exceptions.
This reform will make judges be able to be voted by the people, and all the world knows the implications of that in Mexico's elections.
It also removes a lot of the requirements to the candidates.

Currently there are cases of people trying to get judicial protection against laws the executive is pushing which the legislature blindly approved since they were put in there by the ruling party. Now imagine if that ruling party was also deep into the judicial system, the people wouldn't have anyone to turn to ask for help.

And that's what investors are concerned about, investing in Mexico and losing everything because there's no one to stop what the president says.

[–] [email protected] 3 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

I had a similar case.
My minipc has a microSD card slot and I figured if it could be done for a RPI, why not for a mini PC? :P

After a few months I bought a new m2nvme but I didn't want to start from scratch (maybe I should've looked into nix?)
So what I did was sudo dd if=/dev/sda of=/dev/sdc bs=1024k status=progress
And that worked perfectly!

Things to note:

  • both drives need to be unmounted, so you need a live OS or another machine.
  • The new drive will have the same exact partitions, which means the same size, so you need to expand them after the copy.
  • PS: this was for a drive with ext4 partitions, but in theory dd works with the bytes so it shouldn't be an issue what fs you use.
[–] [email protected] 3 points 2 weeks ago

P5R, almost done with the 2nd palace.
I'm following a guide to experience everything in one play through since I've already played the original one and this one on PS4, now this is in PC.

 

I was using SQL_CALC_FOUND_ROWS and SELECT FOUND_ROWS();
But this has been deprecated https://dev.mysql.com/doc/refman/8.0/en/information-functions.html#function_found-rows

The recommended way now is first to query with limit and then again without it selecting count(*).
My query is a bit complex and joins a couple of tables with a large number of records, which makes each select take up to 4 seconds, so my process now takes double the time compared to as I just keep using found rows.

How can I go back to just running the select a single time and still getting the total number of rows found without the limit?

[–] [email protected] 52 points 3 weeks ago (2 children)

What?
Well, I can only speak for myself, I'm not here to follow users but communities.
And if someone wants to follow me I'd see it as kind of annoying for them seeing all the different topics I post and comment instead of something focused.

IMO the ability to see Mastodon interactions in Lemmy and vice-versa is quite annoying since they use the same protocol for different experiences.

[–] [email protected] 13 points 3 weeks ago (1 children)

I would if I'd be able to run my own models, it'd be better than having to connect to my server.
But AFAIK these features won't be available to all developers, so I'm guessing only Google apps will be able to properly use the potential of the phone.

[–] [email protected] 1 points 3 weeks ago (1 children)

Nice, that's mostly what I need!
The only thing missing now are the parameters needed to launch with the correct workout

 

I'm trying to configure some NFC tags to automatically open an app, which is easy, just have to type the package name.
But I'm wondering how I can launch the app in a specific activity.

Specifically when I search for FitoTrack in my phone I get the option to launch the app directly into the workout I want to track, so I don't have to launch the app, click the FAB, click "Record workout" and then select the workout.
So I want to have a tag which will automatically launch this app into a specific workout.

How can I know what's the data I need to put into the tag to do this?

Probably looking at the code will give me the answer, but this won't apply to closed source apps, so is there a way to get all the ways all my installed apps can be launched?

 

I'm using https://github.com/rhasspy/piper mostly to create some audiobooks and read some posts/news, but the voices available are not always comfortable to listen to.

Do you guys have any recommendation for a voice changer to process these audio files?
Preferably it'll have a CLI so I can include it in my pipeline to process RSS feeds, but I don't mind having to work through an UI.
Bonus points if it can process the audio streams.

 

cross-posted from: https://lemmy.pe1uca.dev/post/1434359

I was trying to debug an issue I have connecting to a NAS, so I was checking the logs of UFW and found out there are a lot of connections being blocked from my chromecast HD (AndroidTV) on different ports via the local IP.

Sometimes I use jellyfin, but that's over tailscale, so there shouldn't be any traffic over local IP, just over tailscale's IP.
But shouldn't have traffic right now since I wasn't using it and didn't have tailscale on.

The ports seem random, just sometimes they are tried two times back to back, but afterwards another random port is tried to be accessed.

After seeing this I enabled UFW in my daily machine and the same type of logs showed up.

So, do you guys know what could be happening here?
Why is chromecast trying to access random ports on devices in the same network?

 

cross-posted from: https://lemmy.pe1uca.dev/post/1434359

I was trying to debug an issue I have connecting to a NAS, so I was checking the logs of UFW and found out there are a lot of connections being blocked from my chromecast HD (AndroidTV) on different ports via the local IP.

Sometimes I use jellyfin, but that's over tailscale, so there shouldn't be any traffic over local IP, just over tailscale's IP.
But shouldn't have traffic right now since I wasn't using it and didn't have tailscale on.

The ports seem random, just sometimes they are tried two times back to back, but afterwards another random port is tried to be accessed.

After seeing this I enabled UFW in my daily machine and the same type of logs showed up.

So, do you guys know what could be happening here?
Why is chromecast trying to access random ports on devices in the same network?

 

I've only used ufw and just now I had to run this command to fix an issue with docker.
sudo iptables -I INPUT -i docker0 -j ACCEPT
I don't know why I had to run this to make curl work.

So, what did I exactly just do?
This is behind my house router which already has reject input from wan, so I'm guessing it's fine, right?

I'm asking since the image I'm running at home I was previously running it in a VPS which has a public IP and this makes me wonder if I have something open there without knowing :/

ufw is configured to deny all incoming, but I learnt docker by passes this if you configure the ports like 8080:8080 instead of 127.0.0.1:8080:8080. And I confirmed it by accessing the ip and port.

 

I mean, the price of the product is the same, I'm taking a loan for the duration of the credit but paying no interest?
What's the catch?
I can keep my money making a bit of interest instead of giving it right away and without increasing the price of what I was already planning to buy. When or why wouldn't I choose 0% credits?

 

I'm looking at my library and I'm wondering if I should process some of it to reduce the size of some files.

There are some movies in 720p that are 1.6~1.9GB each. And then there are some at the same resolution but are 2.5GB.
I even have some in 1080p which are just 2GB.
I only have two movies in 4k, one is 3.4GB and the other is 36.2GB (can't really tell the detail difference since I don't have 4k displays)

And then there's an anime I have twice at the same resolution, one set of files are around 669~671MB, the other set 191 each (although in this the quality is kind of noticeable while playing them, as opposed to the other files I extract some frames)

What would you do? what's your target size for movies and series? What bitrate do you go for in which codec?

Not sure if it's kind of blasphemy in here talking about trying to compromise quality for size, hehe, but I don't know where to ask this. I was planning on using these settings in ffmpeg, what do you think?
I tried it in an anime at 1080p, from 670MB to 570MB, and I wasn't able to tell the difference in quality extracting a frame form the input and the output.
ffmpeg -y -threads 4 -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -i './01.mp4' -c:v h264_nvenc -preset:v p7 -profile:v main -level:v 4.0 -vf "hwupload_cuda,scale_cuda=format=yuv420p" -rc:v vbr -cq:v 26 -rc-lookahead:v 32 -b:v 0

 

cross-posted from: https://lemmy.pe1uca.dev/post/1137911

I need to help auditing a project from another team.
I got the pointers on what's expected to be checked, but I don't have like templates for documents for what's expected from an audit report which also means I'm not sure what's the usual process to conduct an internal audit.
I mean I might as well read the whole repo, but maybe that's too much?

Any help or pointers on what I need to investigate to get started would be great!

 

I need to help auditing a project from another team.
I got the pointers on what's expected to be checked, but I don't have like templates for documents for what's expected from an audit report which also means I'm not sure what's the usual process to conduct an internal audit.
I mean I might as well read the whole repo, but maybe that's too much?

Any help or pointers on what I need to investigate to get started would be great!

 

cross-posted from: https://lemmy.pe1uca.dev/post/1136490

I'm checking this mini pc https://www.acemagic.com/products/acemagic-ad08-intel-core-i9-11900h-mini-pc

It says the M2 and SATA ports are limited to 2TB, but I can't imagine why that's the case.
Could there be a limit on the motherboard? On the CPU?
If most likely this is done in software (windows) probably it won't matter since I'm planning to switch to linux.

What I want to avoid is buying it and being unable to use an 8TB drive.

view more: next ›