pe1uca

joined 1 year ago
MODERATOR OF
[–] pe1uca@lemmy.pe1uca.dev 13 points 1 month 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.

[–] pe1uca@lemmy.pe1uca.dev 1 points 1 month 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

[–] pe1uca@lemmy.pe1uca.dev 3 points 1 month ago

I don't know why it needs internet access and why the first thing it tries to do is connect to an IP TV site, and because it can't it crashes.
Can't trust that, hehe

[–] pe1uca@lemmy.pe1uca.dev 7 points 1 month ago

I don't think RSS is suited for getting more than just the latest entries in a feed.
What you're looking for is handled by the API which includes pagination.

[–] pe1uca@lemmy.pe1uca.dev 6 points 1 month ago

I wonder how this is going to work with comments turned off, I mean since I guess these notes will be public and maybe users are going to use them as some sort of comment section.

[–] pe1uca@lemmy.pe1uca.dev 1 points 2 months ago

It depends what you need to configure.
I'm using this library to move around the camera https://github.com/JurajNyiri/pytapo
For anything else, AFAIK, yeah, you'd need to re-enable internet access.

[–] pe1uca@lemmy.pe1uca.dev 8 points 2 months ago

I'm not completely sure I understand what you want to do, I can share some tips.

With FreshRSS you can get the RSS feed of a youtube channel and receive notifications, but YT only gives you the latests 15 or 20 videos, so you won't get older videos, only newer ones.
From this URL https://www.youtube.com/@rossmanngroup you need to transform it to something like this https://www.youtube.com/feeds/videos.xml?channel_id=UCl2mFZoRqjw_ELax4Yisf6w
You can automate it with an extension in FreshRSS.

Or if you want you can use tubearchivist which will process the channel and download the videos to process them and index them.

[–] pe1uca@lemmy.pe1uca.dev 31 points 2 months ago (1 children)

I love playing Dwar Fortress, I've spent hours and hours in there.
The game is free from the developera site, the download is only 15MB.
If you want to support them you can buy it in steam, the listed requirements is 500MB of storage, I assume since this version has a tile set.

I've also put so far 400 hours in oxygen not included, I think it uses around 2GB of storage.

And to me, any monster hunter game its worth its price, I've bought each game and played it for minimum 200 hours each, I think I reached 500 in on of them.
Tho the newer ones are pretty heavy for their respective platforms. Also triple-A game price.

[–] pe1uca@lemmy.pe1uca.dev 6 points 2 months ago

NFC payments with Google wallet, in theory if your bank provides the service in their app, you could still use this kind of payment, haven't tried it tho.
Also I only found a developer for which their games don't work, it's the developer of guardian tales.

Aside from that, with sandboxed play services there hasn't been any difference since I migrated to GOS.

[–] pe1uca@lemmy.pe1uca.dev 9 points 2 months ago (2 children)

Text to speech is what piper is doing.
What I'm looking for is called voice changer since I want to change a voice which already read something.

That's exactly what I want: "the thing in the Darth Vader halloween masks" but for linux, preferably via CLI to ingest audio files and be able to configure it to change the voice as I want, not only Darth Vader.

[–] pe1uca@lemmy.pe1uca.dev 2 points 2 months ago (2 children)

I don't want to manage piper voices, I can handle that directly in my file system as I only have a few.
The issue is none of the ones I've found are good for me, so what I need is something to change the voice once it has been generated by piper.

[–] pe1uca@lemmy.pe1uca.dev 3 points 2 months ago (1 children)

I haven't completely looked into creating a model for piper, but just having to deal with a dataset is not something I look forward to, like gathering the data and all of what this implies.

So, I'm thinking it's easier to take an existing model and make adjustments to fit a bit better on what I would like to hear constantly.

17
submitted 11 months ago* (last edited 11 months ago) by pe1uca@lemmy.pe1uca.dev to c/programming@programming.dev
 

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

I'm cross-posting it here to check if you guys know or if you have an idea which would be the best community to ask.

I'm trying to add the audio of a video to another one so I can have multiple tracks for my media service (Jellyfin).

The issue is the new track doesn't have any sound, it's just there with the proper metadata but it's just mute.
I tried playing it with Jellyfin and with VLC.
The original audio tracks play fine.

This is my command.

ffmpeg -i .\3.english.mkv -i .\3.french.mp4 -c copy -map 0 -map 1:a:0 -y .\3.mix.mkv

I also already tried adding -c:a:1 ac3 since this is the format of the audio in the mkv file.

The data of the original audio of the mkv is

Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      title           : English
      BPS-eng         : 384000
      DURATION-eng    : 02:21:42.176000000
      NUMBER_OF_FRAMES-eng: 265693
      NUMBER_OF_BYTES-eng: 408104448
      _STATISTICS_WRITING_APP-eng: mkvmerge v25.0.0 ('Prog Noir') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-23 09:18:58
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

The data of the file I'm trying to inject from the mp4 is

Stream #0:1[0x2](fre): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
    Metadata:
      creation_time   : 2014-04-17T18:14:55.000000Z
      handler_name    : movie.track_2.aac
      vendor_id       : [0][0][0][0]

do you guys have any idea of what might be the issue?

I also tried extracting the audio to a file and the aac file works fine, it's just when adding it to the mkv which doesn't work.

 

I'm trying to add the audio of a video to another one so I can have multiple tracks for my media service (Jellyfin).

The issue is the new track doesn't have any sound, it's just there with the proper metadata but it's just mute.
I tried playing it with Jellyfin and with VLC.
The original audio tracks play fine.

This is my command.

ffmpeg -i .\3.english.mkv -i .\3.french.mp4 -c copy -map 0 -map 1:a:0 -y .\3.mix.mkv

I also already tried adding -c:a:1 ac3 since this is the format of the audio in the mkv file.

The data of the original audio of the mkv is

Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      title           : English
      BPS-eng         : 384000
      DURATION-eng    : 02:21:42.176000000
      NUMBER_OF_FRAMES-eng: 265693
      NUMBER_OF_BYTES-eng: 408104448
      _STATISTICS_WRITING_APP-eng: mkvmerge v25.0.0 ('Prog Noir') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-23 09:18:58
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

The data of the file I'm trying to inject from the mp4 is

Stream #0:1[0x2](fre): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
    Metadata:
      creation_time   : 2014-04-17T18:14:55.000000Z
      handler_name    : movie.track_2.aac
      vendor_id       : [0][0][0][0]

do you guys have any idea of what might be the issue?

I also tried extracting the audio to a file and the aac file works fine, it's just when adding it to the mkv which doesn't work.

 

I've seen a lot of people mentioning EQ bank to have the emergency save since it offers 2.5% interest.

Just recently knew about wealthsimple with 4% https://www.wealthsimple.com/en-ca/spend

So I'm wondering if you guys know any drawback on saving in wealthsimple instead of EQ.

 

Est-ce que c'est CEHI en français ? Désolé, j'ai encore besoin d'utilizer un traducteur.

La banque EQ semble être la meilleure avec 2,5 %.
Mais WS donne 4%
Alors, je me demande pourquoi il n'y a pas plus de gens qui recommandent WS et recommande toujours le QE.

Y a-t-il quelque chose que je ne vois pas dans le WS? Dans la section "X", on peut lire "Remarque : Wealthsimple n'est ni une banque ni un membre de la SADC", cela pourrait-il être la raison?

 

J'ai vu quelque part un 11,5 % mais je ne suis pas sûr

Contexte: Si je n'ai pas atteint le maximum de mon CELI, devrais-je y mettre mon argent pour les dépenses mensuelles?
Ou puis-je les conserver sur des comptes d'épargne normaux? Juste pour ne pas avoir à me soucier des droits de cotisation.

 

Is there any firefox extension to process SRT or WebVTT files to show subtitles in any page? Not just video streaming sites.

Context: I have some subtitle files for some podcasts, so the site is only playing audio. I'm using podverse.fm
It'll be great to have something similar to lyrics sections in some music players to follow along the audio while reading.

 

In an API I have there's a requirement to use an authentication method other than OAuth2 or any kind of token generation which requires making an extra HTTP call.

With this in mind there's this https://www.xml.com/pub/a/2003/12/17/dive.html
I've only stored passwords as hashes and used functions like password_verify to know the user sent the proper credentials without actually knowing the password stored in DB.
WSSE requires to encrypt with SHA1 the credentials being sent, which means the API needs to retrieve the password in plain text to recreate the digest and compare it to the one sent by the user.
So, how should I be storing this password if the code needs it to recreate the hash?
Should I have something like a master password and store them encrypted instead of hashed?


Most of the information I've found about WSSE is very very old, and some implementations have it marked as deprecated, do you know any other type of standard authentication where the user can generate the token instead of having to make an extra HTTP call?

 

Is normal soap all I need?

Recently I read rinsing the chicken usually spreads more the bacteria we're trying to kill by cooking it, and I've been doing this in the sink.

So I'm wondering if even without rinsing the chicken the knives, cutting boards, even just my hands touching the raw chicken could be also spreading bacteria after washing them with only soap.

 

I just attached a new volume to my vps and usually I follow the instructions provided using parted and mkfs.ext4 but I decided to try ZFS.

The guides I've found online are all very different and I'm not sure if I did everything correct to know the data will be safe.
What I mean is running lsblk -o name,size,fstype,type,mountpoint shows this

NAME     SIZE FSTYPE   TYPE MOUNTPOINT
vdb      100G          disk
└─vdb1   100G ext4     part /mnt/storage
vdc      100G          disk
├─vdc1   100G          part
└─vdc9     8M          part

You can see the type and mountpoint of the previous volume are listed, but the ZFS' ones aren't.

Still I can properly access the ZFS pool I created and I also already copied some test data.

root@vps:~/services# zpool list
NAME         SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
local-zfs   99.5G  6.88G  92.6G        -         -     0%     6%  1.00x    ONLINE  -
root@vps:~/services# zfs list
NAME         USED  AVAIL     REFER  MOUNTPOINT
local-zfs   6.88G  89.5G     6.88G  /mnt/zfs

The commands I ran were these ones

parted -s /dev/vdc mklabel gpt
parted -s /dev/vdc unit mib mkpart primary 0% 100%
zpool create -o ashift=12 -O canmount=on -O atime=off -O recordsize=8k -O compression=lz4 -O mountpoint=/mnt/zfs local-zfs /dev/vdc

Does this look good?
Should I do something else? (like writing something to fstab)

The list of properties is very long, is there any one you recommend I should look into for a simple server where currently non-critical data is stored?
(I already have a separate backup solution, maybe I'll check to update it later)

14
Custom voice input service (lemmy.pe1uca.dev)
submitted 1 year ago* (last edited 1 year ago) by pe1uca@lemmy.pe1uca.dev to c/android@lemmy.world
 

Is there any keyboard which lets you configure the service used for voice input?
I'd like to set an URL to a selfhosted service to send my voice to be processed which then will return the transcription.

If no keyboard exists for this any app would do.
The idea is the app lets you stream the audio to the given service and will receive the response and show it for you to edit, similar on how google keyboard has the voice input.

Bonus points if it's open source :P

 

I'm not sure in which community to ask this, if you know of a better one let me know.

I already have squid proxy working, if I set up my browser or curl to use the proxy all sites work properly.
But when I try to make a request with axios it doesn't work.

Here are the logs of squid
The first two lines are successful google connections are from a browser.
The 3rd line is a successful to google using curl.
The 4th line is a successful to ipify using curl.
The last two ones are the ones from node using axios

squid_proxy  | 1693406310.165  12043 127.0.0.1 TCP_TUNNEL/200 56694 CONNECT www.google.com:443 - HIER_DIRECT/142.250.217.132 -
squid_proxy  | 1693406310.166  10681 127.0.0.1 TCP_TUNNEL/200 47267 CONNECT apis.google.com:443 - HIER_DIRECT/142.250.176.14 -
squid_proxy  | 1693406325.551    497 127.0.0.1 TCP_TUNNEL/200 24778 CONNECT www.google.com:443 - HIER_DIRECT/142.250.217.132 -
squid_proxy  | 1693406336.829    403 127.0.0.1 TCP_TUNNEL/200 7082 CONNECT api.ipify.org:443 - HIER_DIRECT/64.185.227.156 -
squid_proxy  | 1693406361.410  12590 127.0.0.1 TCP_MISS/503 4358 GET https://api.ipify.org/? - HIER_NONE/- text/html
squid_proxy  | 1693406361.889    385 127.0.0.1 TCP_MISS/502 3948 GET https://www.google.com/ - HIER_DIRECT/142.250.217.132 text/html

The errors sent to axios are these:

# ipify
[No Error] (TLS code: SQUID_TLS_ERR_CONNECT+GNUTLS_E_FATAL_ALERT_RECEIVED)
SSL handshake error (SQUID_TLS_ERR_CONNECT)  
This proxy and the remote host failed to negotiate a mutually acceptable security settings for handling your request. It is possible that the remote host does not support secure connections, or the proxy is not satisfied with the host security credentials.  

# google
The system returned: [No Error]

My code looks like this

const axios = new Axios({
	proxy: {
		host: proxyIP,
		port: proxyPort,
		protocol: 'http'
	}
});

const ip = await axios.get('https://api.ipify.org?format=json');
console.log(ip.data);


const res = await axios.get('https://www.google.com');
console.log(res.data);

Any idea what might be happening?

I'm not sure if axios handles the connection in a different way since the logs from the browser show CONNECT and axios shows GET, but maybe that's because it's failing to actually connect and it only logs the request method.

 

I have an implementation for an internal API, the requirement is to implement some sort of basic authentication instead of oauth (generating a token).

Do you think there's any difference between using just an API key vs using a client id + secret?
For what I see it'd be just like saying "using a password" vs "using a user and a password".

view more: ‹ prev next ›