27
A Linux version planned ? (programming.dev)
submitted 2 days ago by [email protected] to c/[email protected]

Hi,

A little question for the devs of CoMaps. Is a build for Linux (.appimage) is planned ? 🙏

Thanks.

3
submitted 1 month ago by [email protected] to c/[email protected]

cross-posted from: https://programming.dev/post/31472627

Hi Raspberry Pi Community,

I would like to use radio remote's control to trigger an events on my Raspberry pi.

I guess I'll go with 433Mhz as I believe they are the most common available ?

So I will need a 433Mhz RX/TX Module to connect on the GPIO, so far I get it...

But how properly secure the communication between those remotes and the RPI to avoid any anyone to sniff the transmitting and replay it. In other words spoof it.

Wubba Lubba dub-dub...

8
submitted 1 month ago by [email protected] to c/[email protected]

Hi Raspberry Pi Community,

I would like to use radio remote's control to trigger an events on my Raspberry pi.

I guess I'll go with 433Mhz as I believe they are the most common available ?

So I will need a 433Mhz RX/TX Module to connect on the GPIO, so far I get it...

But how properly secure the communication between those remotes and the RPI to avoid any anyone to sniff the transmitting and replay it. In other words spoof it.

Wubba Lubba dub-dub...

2
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]

Hi,

I'm using (like a lot of us, I presume ) Mozilla MDN

But I just discover that they display advertise :'(

Damn that think (MDN doc) is run by committer (I did post few thing on it) and they display advertise ! f**king hell ! Can I have my cut 💵 then ?

beside jokes, do you know good (decentralized ?) alternative to mdn docs ?
Thanks.

11
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]

Hi,

I've discover haml and pug [^1] ( both web template engine )

It's totally Pytonic ! ( and make even more sense to use it with python rather than JS 🤮 )

I've look, if it exist for Python, but so far, I've found only

The first, only convert pug into another template :/
The second, didn't pass the alpha version.
The third, require dependence, not maintained etc.. \

So I didn't found a Python package that could do haml/pug to html directly, without too much dependence...

For example:

From

html
  head title Example for Python discuss
  body
    h1 Hello world
    p This is a paragraph.

To

<html>
  <head>
    <title>Example for Python discuss</title>
  </head>
  <body>
    <h1>Hello world</h1>
    <p>This is a paragraph.</p>
  </body>
</html>

Do you know if such thing exist ?
If not, I will build my own (FLOSS). ( I'm open to any advice to do so :) )

Thanks

[^1]:Pug is a template engine heavily influenced by Haml and implemented with JavaScript 🤮 for Node.js

3
submitted 8 months ago by [email protected] to c/[email protected]

cross-posted from: https://programming.dev/post/21294559

Hi,

I'm following my previous post
How encrypt email with a GnuPG public key ? [ solved ]

So I managed to encrypt the email body with GnuPG public key.. But I don't figure how I can do the same for the title ?!
ThunderBird manage it.. any idea how ?
asked on Official Thunderbird forum

Thanks.

12
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]

Hi,

I'm following my previous post
How encrypt email with a GnuPG public key ? [ solved ]

So I managed to encrypt the email body with GnuPG public key.. But I don't figure how I can do the same for the title ?!
ThunderBird manage it.. any idea how ?
asked on Official Thunderbird forum

Thanks.

[-] [email protected] 2 points 9 months ago* (last edited 9 months ago)

instead of using a library I can directly use subprocess with gnupg but in both case it seem gnupg require to import the public key to the keyring !? I don't want that.

11
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]

Hi,

I'm already using

from smtplib import SMTP_SSL
from email.message import EmailMessage

To send emails.

Now I would like to be able to encrypt them with the public key of the recipient. ( PublicKey.asc )

an A.I provide me this

import smtplib
from email.message import EmailMessage
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.ciphers.aead import AESGCM

# Load the ECC public key from the .asc file
with open('recipient_public_key.asc', 'rb') as key_file:
    public_key_bytes = key_file.read()
public_key = ec.EllipticCurvePublicKey.from_public_bytes(
    ec.SECP384R1(),
    public_key_bytes
)

# Create the email message
msg = EmailMessage()
msg.set_content('This is the encrypted email.')
msg['Subject'] = 'Encrypted Email'
msg['From'] = '[email protected]'
msg['To'] = '[email protected]'

# Encrypt the email message using the ECC public key
nonce = bytes.fromhex('000102030405060708090a0b0c0d0e0f')
cipher = AESGCM(public_key.public_key().secret_key_bytes)
ciphertext = cipher.encrypt(nonce, msg.as_bytes(), None)

# Send the encrypted email
server = smtplib.SMTP('smtp.example.com')
server.send_message(msg, from_addr='[email protected]', to_addr='[email protected]')
server.quit()

# Save the encrypted email to a file
with open('encrypted_email.bin', 'wb') as f:
    f.write(ciphertext)

I like the approach, only one "low level" import cryptography

but the code seem wrong. if the body has been encrypted as ciphertext I don't see this one included while sending the email.

How are you doing it ? or do you have good tutorial, documentations ? because I found nothing "pure and simple" meaning not with of unnecessary stuff.

Thanks.

[-] [email protected] 2 points 9 months ago

I might found a workaround IPFS + OpenTimestamps

[-] [email protected] 2 points 9 months ago

Are the File Sharing and Voice and Video Calls are E2EE ?

0
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]

cross-posted from: https://programming.dev/post/19958073

Hi,

I'm looking for a solution to archive files in a decentralized system. that would meet those requirement:

  • FLOSS
  • date-stamp the upload of the file.
  • immutable storage ~ WORM
  • anonymous (like TOR)

I was considering IPFS but it does not date-stamp the upload :'( you can make a description-file but this is unreliable, as you can set any date..

I'm lost between hyphanet.org and Freenet.org ?!
are those the same project ?

According to A.I:

Hyphanet is focused on secure, private, and efficient communication and data sharing, with an emphasis on enabling users to monetize their data while maintaining control over their data sovereignty.

is that true ? I can't found the information on their website...

3
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]

Hi,

I'm looking for a solution to archive files in a decentralized system. that would meet those requirement:

  • FLOSS
  • date-stamp the upload of the file.
  • immutable storage ~ WORM
  • anonymous (like TOR)

I was considering IPFS but it does not date-stamp the upload :'( you can make a description-file but this is unreliable, as you can set any date..

I'm lost between hyphanet.org and Freenet.org ?!
are those the same project ?

According to A.I:

Hyphanet is focused on secure, private, and efficient communication and data sharing, with an emphasis on enabling users to monetize their data while maintaining control over their data sovereignty.

is that true ? I can't found the information on their website...

19
submitted 9 months ago by [email protected] to c/[email protected]

Hi,

I would like to change the owner of a directory on the sdcard /sdcard/aDirectory

I have a terminal installed on my Android 10 (LineageOS 17) com.android.terminal

sudo is not present so I use su and it works.

su
#Terminal was granted Superuser rights

cd /sdcard
chown 10:10 aDirectory
#I don't get any error message.

stat aDirectory
#Uid (0/root)

So the owner stay root no matter what I'm doing, any ideas ?

1
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/[email protected]

Hi everyone,

I have something like this

<div id="container">

    <div>
        <div class="foobar"></div>
    </div>

    <div>
        <div class="foobar"></div>
    </div>

    <div>
        <div class="foobar"></div>
        <div class="barfoo"></div>
    </div>

    <div>
        <div class="foobar"></div>
    </div>

    <div>
        <div class="foobar"></div>
    </div>

<div>

I would like to select all the #container > div (the childs of container)

that do not have a div.barfoo in their childs.

is it possible with CSS ?

I'm at

#container> div :not(div.barfoo) {} 

but this is not working, and will select anyway #container > div > div

Any ideas ?

[-] [email protected] 2 points 11 months ago
setfacl -m m:r aFile
#re set the mask

solve the problem, but the question is: why the F**** this is happening !?

[-] [email protected] 2 points 1 year ago

I've received a lot of reactions on the original post: https://programming.dev/post/10465121

But if someone is involved with the development of Thunderbird I think this is worth reading: https://programming.dev/comment/7677398

For my part I will use the OpenPGP sigin tools for now.

Cheers.

[-] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Thank you all for your quick reactions !!

To summarize if I want to use the PDF built-in signing I will need to convert my OpenPGP into a X.509 cert otherwise I can simply use the OpenPGP file signing

I want to stick to the UNIX Philosophy especially:

Write programs that do one thing and do it well.

So I will use the OpenPGP signing tool :)

Thanks !

[-] [email protected] 2 points 2 years ago

Indeed, but in AOSP there is no GMS and that already better !

[-] [email protected] 3 points 2 years ago

Has I found nothing, I've write a piece of code in Python 🐍 ! and compile it for Windows..

[-] [email protected] 3 points 2 years ago

Thank you @[email protected] Seem great, I'll keep it for later :)

But not for what I need now, as

Mutt is a small but very powerful text-based mail client for Unix operating systems

and it's a "full" client, I need just the SMTP functionality.

[-] [email protected] 2 points 2 years ago

ok I manage to send my post ! (it look like a lemmy bug... , do you know where to report it ? )

it seem that lemmy didn't support the following

[-] [email protected] 3 points 2 years ago

and weirdly, I can post here...

view more: next ›

Rick_C137

0 post score
0 comment score
joined 2 years ago